1"use strict";(self.webpackChunktrf_frontend=self.webpackChunktrf_frontend||[]).push([[6188],{4076(e,t,a){a.d(t,{A:()=>s});a(96540);var n=a(74848);const s=({title:e,subtitle:t,jobTitle:a,backUrl:s,children:c,classes:l})=>(0,n.jsx)("div",{className:`trf-header ${l||""}`,children:(0,n.jsx)("div",{className:"trf-header__inner",children:(0,n.jsxs)("div",{className:"trf-header__body align-items-start align-items-sm-center flex-column flex-sm-row",children:[(0,n.jsxs)("div",{className:"trf-header__content",children:[(0,n.jsx)("h2",{className:"trf-header__title",children:e}),(t||a)&&(0,n.jsxs)("span",{className:"trf-header__subtitle",children:[t,a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("br",{}),a]})]})]}),(0,n.jsx)("div",{className:"trf-header__actions mt-3 mt-sm-0",children:c})]})})})},55668(e,t,a){a.d(t,{k:()=>n.A});var n=a(4076)},63536(e,t,a){a.d(t,{A:()=>s});a(96540);var n=a(74848);const s=({classes:e,imgSrc:t,title:a,subtitle:s,subtitleClasses:c,children:l,showBeta:i})=>(0,n.jsx)("div",{className:`action-bar ${e}`,children:(0,n.jsx)("div",{className:"action-bar__inner",children:(0,n.jsxs)("div",{className:"action-bar__body",children:[t&&(0,n.jsx)("div",{className:"action-bar__icon",children:(0,n.jsx)("div",{className:"image",style:{backgroundImage:`url(${t})`}})}),(0,n.jsx)("div",{className:"action-bar__content",children:(0,n.jsxs)("div",{className:"action-bar__content__header",children:[(0,n.jsxs)("div",{className:"d-flex align-items-center",children:[(0,n.jsx)("h3",{className:"action-bar__title",children:a}),i&&(0,n.jsx)("div",{className:"action-bar__beta-btn",children:"Beta"})]}),(0,n.jsx)("span",{className:`action-bar__subtitle ${c}`,children:s})]})}),(0,n.jsx)("div",{className:"action-bar__actions text-right",children:l})]})})})},63187(e,t,a){a.d(t,{F6:()=>o,FI:()=>i,Jt:()=>c,T3:()=>d,Wv:()=>m,bE:()=>l,nI:()=>u,rZ:()=>s,yJ:()=>r});var n=a(55278);const s=(e,t={})=>new Promise((a,s)=>{n.A.get(e,t).then(e=>{a(e.data)}).catch(e=>{a({data:null,error:e})})}),c=(e,t={})=>new Promise((a,s)=>{n.A.get(e,t).then(e=>{a(e.data)}).catch(e=>{a({data:null,error:e})})}),l=async(e,t,a={})=>await n.A.post(e,Object.assign({},t),a),i=async(e,t,a={})=>await n.A.patch(e,Object.assign({},t),a),r=async(e,t,a={})=>await n.A.put(e,Object.assign({},t),a),o=async(e,t,a={})=>await n.A.patch(e,Object.assign({},t),a),d=async(e,t)=>await n.A.post(e,t,{headers:{"Content-Type":"multipart/form-data"}}),u=async(e,t)=>await n.A.post(e,t,{headers:{"Content-Type":"multipart/form-data"}}),m=async e=>await n.A.delete(e)},97977(e,t,a){a.d(t,{$1:()=>u,LI:()=>o,RW:()=>c,Ss:()=>s,UP:()=>r,XI:()=>m,f3:()=>i,jH:()=>h,tC:()=>l,vF:()=>d});var n=a(63187);const s=e=>(0,n.bE)("web/talent-account-settings/personal-info",e),c=e=>(0,n.bE)("web/talent-account-settings/profile-info",e),l=e=>(0,n.bE)("web/talent-account-settings/tax-details",e),i=e=>(0,n.bE)("web/talent-account-settings/reset-password",e),r=()=>(0,n.Wv)("web/auth/deactivate"),o=()=>(0,n.Wv)("web/auth/delete"),d=()=>(0,n.Jt)("user/setting/notification"),u=e=>(0,n.bE)("user/setting/notification",e),m=(e,t)=>
1(0,n.bE)("web/talent-account-settings/verify-new-email-update",{otp:e,email:t}),h=e=>(0,n.Jt)("/user/invoices?page="+e)},65315(e,t,a){a.d(t,{A:()=>i});a(96540);var n=a(3433),s=a(32485),c=a.n(s),l=a(74848);const i=({title:e,subtitle:t,backLink:a,className:s})=>{const i=(0,n.Zp)();return(0,l.jsxs)("div",{className:c()("column-content__header",s),children:[(0,l.jsx)("div",{className:"column-content__back",onClick:()=>{a&&i(a)},children:(0,l.jsx)("i",{className:"fa fa-angle-left","aria-hidden":"true"})}),(0,l.jsx)("h3",{className:"column-content__title",children:e}),(0,l.jsx)("span",{className:"column-content__subtitle",children:t})]})}},86188(e,t,a){a.r(t),a.d(t,{default:()=>v});var n=a(96540),s=a(71468),c=a(55668),l=a(63536),i=a(61784),r=a(97977),o=a(57546),d=a(3901),u=a(42946),m=a(74848);const h=e=>{const[t,a]=(0,n.useState)(1),[s,c]=(0,n.useState)(!1),{mutate:l,isPending:h}=(0,o.U)(r.UP,{onSuccess:async e=>{a(2),c(!0)}}),b=()=>{e.onClose(s)};return(0,m.jsx)(i.A,{show:e.show,className:"deactivate-account-modal text-center",children:(0,m.jsxs)(i.A.Body,{children:[(0,m.jsxs)("div",{className:"modal__container",children:[(0,m.jsx)("button",{type:"button",className:"close",onClick:()=>b()}),1===t&&(0,m.jsx)(d.h,{className:"mb-2"}),2===t&&(0,m.jsx)(u.h,{className:"mb-2"}),1===t&&(0,m.jsx)("h5",{className:"modal-heading",children:"Are you sure you want to deactivate your account?"}),1===t&&(0,m.jsx)("p",{className:"modal-sub-heading",children:"Deactivating your account means your profile will be removed from theright.fit. You can re-activate your account at any time by logging in."}),2===t&&(0,m.jsx)("h5",{className:"modal-heading",children:"Your account has been deactivated."}),2===t&&(0,m.jsx)("p",{className:"modal-sub-heading",children:"You can reactivate your account by logging in."})]}),1===t&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("button",{type:"button",className:"btn btn-block text-danger btn-rounded text-uppercase btn-trf-outline-danger mb-2",onClick:l,disabled:h,children:["deactivate my account",h?(0,m.jsx)("span",{children:(0,m.jsx)("i",{className:"ml-2 fa fa-spinner fa-pulse"})}):null]}),(0,m.jsx)("button",{type:"button",className:"btn-trf-outline-black btn-rounded d-block text-uppercase w-100",onClick:()=>b(),children:"go back"})]}),2===t&&(0,m.jsx)("button",{type:"button",className:"btn btn-yellow btn-rounded text-uppercase",onClick:()=>b(),children:"OK"})]})})};var b=a(13838);const x=e=>{const[t,a]=(0,n.useState)(1),[s,c]=(0,n.useState)(!1),{mutate:l,isPending:h}=(0,o.U)(r.LI,{onSuccess:async e=>{a(2),c(!0)}}),x=()=>{e.onClose(s)};return(0,m.jsx)(i.A,{show:e.show,className:"delete-account-modal text-center",children:(0,m.jsxs)(i.A.Body,{children:[(0,m.jsxs)("div",{className:"modal__container",children:[(0,m.jsx)("button",{type:"button",className:"close",onClick:()=>x()}),1===t&&(0,m.jsx)(d.h,{className:"mb-2"}),2===t&&(0,m.jsx)(u.h,{className:"mb-2"}),1===t&&(0,m.jsx)("h5",{className:"modal-heading",children:"Are you sure you want to delete your account?"}),1===t&&(0,m.jsx)("p",{className:"modal-sub-heading",children:"Deleting your account is permanent and cannot be undone. If you only want to delete your account temporarily, select \u201cDeactivate Account\u201d instead."}),2===t&&(0,m.jsx)("h5",{className:"modal-heading",children:"Your account has been deleted."})]}),1===t&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(b.$n,{theme:"outline-danger",onClick:l,disabled:h,isLoading:h,children:"delete my account"}),(0,m.jsx)("button",{type:"button",className:"btn-trf-outline-black btn-rounded d-block text-uppercase w-100",onClick:()=>x(),children:"go back"})]}),2===t&&(0,m.jsx)("button",{type:"button",className:"btn btn-yellow btn-rounded text-uppercase",onClick:()=>x(),children:"OK"})]})})};var j=a(8204),g=a(49376),p=a(65315);const v=()=>{const e=(0,j.A)(),t=(0,s.wA)(),[a,i]=(0,n.useState)(!1),[r,o]=(0,n.useState)(!1),d=a=>{a?(e.clearAllSession(),t((0,g.y4)())):(i(!1),o(!1))};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(c.k,{classes:"bg-transparent",title:"Settings",subtitle:""}),(0,m.jsx)("div",{className:"main-column",children:(0,m.jsx)("div",{className:"main-column__inner mt-0",children:(0,m.jsx)("div",{className:"column-content",children:(0,m.jsxs)("div",{className:"column-content__inner",children:[(0,m.jsx)(p.A,{title:"Deactivate or Delete Account",subtitle:"Temporarily or permanently remove your account from theright.fit",backLink:"/talent/account"}),(0,m.jsx)(l.A,{title:"Deactivate Account",subtitle:"Deactivating your account means your profile will be removed from theright.fit. You will be unsearchable and uncontactable through the platform. You can re-activate your account at any time.",subtitleClasses:""}),(0,m.jsx)("button",{className:"btn btn-block text-danger btn-rounded text-uppercase btn-trf-outline-danger mb-5",onClick:()=>i(!0),children:"deactivate account"}),(0,m.jsx)(l.A,{title:"Delete Account",subtitle:"Deleting your account is permanent and cannot be undone. Once your account has been deleted, your profile, collabs, chat history, and all other data will be deleted forever. ",subtitleClasses:""}),(0,m.jsx)(b.$n,{theme:"outline-danger",onClick:()=>o(!0),children:"DELETE account"})]})})})}),(0,m.jsx)(h,{show:a,onClose:d}),(0,m.jsx)(x,{show:r,onClose:d})]})}},3901(e,t,a){a.d(t,{h:()=>i});var n,s,c=a(96540);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},l.apply(null,arguments)}var i=function(e){return c.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none",viewBox:"0 0 32 32"},e),n||(n=c.createElement("g",{fill:"#0C0C0C",clipPath:"url(#a)"}
1,c.createElement("path",{d:"M18 22a2 2 0 1 1-4 0 2 2 0 0 1 4 0M15.42 8c-.77 0-1.38.649-1.332 1.416l.54 8.626a.667.667 0 0 0 .665.625h1.414a.667.667 0 0 0 .665-.625l.54-8.626A1.333 1.333 0 0 0 16.58 8z"}),c.createElement("path",{fillRule:"evenodd",d:"M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16M16 2.667C8.636 2.667 2.667 8.637 2.667 16S8.637 29.333 16 29.333 29.333 23.363 29.333 16 23.363 2.667 16 2.667",clipRule:"evenodd"}))),s||(s=c.createElement("defs",null,c.createElement("clipPath",{id:"a"},c.createElement("path",{fill:"#fff",d:"M0 0h32v32H0z"})))))};a.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.