PageSourceSearch

https://app.loopcv.pro/js/4521.0a8c4be5.js

js loopcv.pro collected 2026-09-25 14:57:49 UTC 26,925 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkloopcv_dashboard"]=self["webpackChunkloopcv_dashboard"]||[]).push([[4521,5661],{62769:(e,t,s)=>{s.d(t,{A:()=>d});var i=s(20641);function a(e,t,s,a,n,o){return(0,i.uX)(),(0,i.CE)("input",{type:"file",style:{display:"none"},ref:"fileInput",accept:"application/pdf, .doc, .docx, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document",id:"uploader",name:"cvUpload",onChange:t[0]||(t[0]=t=>e.$emit("regular-upload",t))},null,544)}var n=s(40387);const o={methods:{click(){this.$refs.fileInput.click()},reset(){(0,n.iz)(this.$refs.fileInput)}}};var r=s(66262);const l=(0,r.A)(o,[["render",a]]),d=l},74048:(e,t,s)=>{s.d(t,{A:()=>D});var i=s(20641),a=s(53751),n=s(90033),o=s(43312),r=s(52939),l=s(43091);const d={class:"col-12"},c={class:"text-h6 ma-4"},u={class:"row"},h={class:"col-md-6 col-sm-12"},m={class:"col-md-6 col-sm-12"},p={class:"d-flex"};function g(e,t,s,g,v,f){const y=(0,i.g2)("app-icon");return(0,i.uX)(),(0,i.CE)("div",d,[(0,i.Lk)("form",{onSubmit:t[6]||(t[6]=(0,a.D$)(((...e)=>f.updatePassword&&f.updatePassword(...e)),["prevent"]))},[(0,i.Lk)("div",c,(0,n.v_)(e.$t("profile.password.title")),1),(0,i.Lk)("div",null,[(0,i.Lk)("div",u,[(0,i.Lk)("div",h,[(0,i.bF)(l.W,{type:f.passwordType,autocomplete:"new-password",label:e.$t("profile.password.new"),modelValue:v.model.password,"onUpdate:modelValue":t[1]||(t[1]=e=>v.model.password=e),variant:"outlined",error:!!v.errors.password,"error-messages":v.errors.password,onChange:t[2]||(t[2]=e=>f.validate("password"))},{"append-inner":(0,i.k6)((()=>[(0,i.bF)(o.D,{icon:"",variant:"text",color:"grey darken-1",onClick:t[0]||(t[0]=e=>v.hidePassword=!v.hidePassword)},{default:(0,i.k6)((()=>[(0,i.bF)(y,{name:v.hidePassword?"eye":"eyeOff"},null,8,["name"])])),_:1})])),_:1},8,["type","label","modelValue","error","error-messages"])]),(0,i.Lk)("div",m,[(0,i.bF)(l.W,{type:f.confirmPasswordType,autocomplete:"new-password",label:e.$t("profile.password.retype"),modelValue:v.model.passwordConfirmation,"onUpdate:modelValue":t[4]||(t[4]=e=>v.model.passwordConfirmation=e),variant:"outlined",error:!!v.errors.passwordConfirmation,"error-messages":v.errors.passwordConfirmation,onChange:t[5]||(t[5]=e=>f.validate("passwordConfirmation"))},{"append-inner":(0,i.k6)((()=>[(0,i.bF)(o.D,{icon:"",variant:"text",color:"grey darken-1",onClick:t[3]||(t[3]=e=>v.hideConfirmPassword=!v.hideConfirmPassword)},{default:(0,i.k6)((()=>[(0,i.bF)(y,{name:v.hideConfirmPassword?"eye":"eyeOff"},null,8,["name"])])),_:1})])),_:1},8,["type","label","modelValue","error","error-messages"])])]),(0,i.Lk)("div",p,[(0,i.bF)(r.h),(0,i.bF)(o.D,{rounded:"",color:"primary",height:"42",loading:this.spinning,type:"submit"},{default:(0,i.k6)((()=>[(0,i.eW)((0,n.v_)(e.$t("profile.password.submit")),1)])),_:1},8,["loading"])])])],32)])}var v=s(30861),f=s(66278),y=s(65472),w=s(1436),C=s(54485);const $=y.d.user,k={name:"changePassword",data(){return{model:{password:"",passwordConfirmation:""},errors:{},hidePassword:!0,hideConfirmPassword:!0,spinning:!1}},watch:{status(e){switch(e){case $.status.FailureUpdatePassword:this.spinning=!1,this.$notify({message:this.$t("error-has-occurred"),type:"danger"});break;case $.status.SuccessUpdatePassword:this.spinning=!1,this.$notify({message:this.$t("your-password-has-updated"),type:"success"});break}}},computed:{...(0,f.L8)("user",{getUser:$.getters.getUser,getStatus:$.getters.getStatus,getLoading:$.getters.getLoading}),email(){return this.getUser?.email},status(){return this.getStatus},loading(){return this.getLoading},passwordType(){return this.hidePassword?"password":"text"},confirmPasswordType(){return this.hideConfirmPassword?"password":"text"},validationSchema(){return v.Ik().shape({password:v.Yj().required(this.$t("password-is-required")).min(8,this.$t("password-8-characters")),passwordConfirmation:v.Yj().oneOf([v.KR("password"),null],this.$t("passwords-confirmation"))})},isAdminOrManager(){return this.getUser.role==w.X.ADMIN||this.getUser.role==w.X.MANAGER||this.getUser.role==w.X.SupportAgent},clientId(){return this.$route.params.clientId}},methods:{validate(e){this.validationSchema.validateAt(e,this.model).then((()=>this.errors[e]="")).catch((t=>this.errors[e]=t.message))},async updatePassword(){try{this.spinning=!0,await this.validationSchema.validate(this.model),this.isAdminOrManager&&this.clientId?await C.A["partner.childUser.changePassword"](this.clientId,{password:this.model.password}):this.$store.dispatch($.actions.UpdatePassword,this.model.password)}catch(e){return e.inner.forEach((e=>{this.errors={...this.errors,[e.path]:e.message}}
1)),void this.$notify({message:e.toString().replace(/^ValidationError:\s*/i,""),type:"danger"})}finally{this.spinning=!1}}}};var b=s(66262);const _=(0,b.A)(k,[["render",g]]),D=_},52312:(e,t,s)=>{s.r(t),s.d(t,{default:()=>de});var i=s(20641),a=s(90033),n=s(43312),o=s(55494),r=s(99311),l=s(62082),d=s(11332),c=s(50852),u=s(91743),h=s(26861),m=s(67318),p=s(43091);const g={key:0,class:"row"},v={key:1,class:"row"},f={class:"col-12"},y={class:"text-h6 ma-4"},w={class:"send-email-without-cv-setting ml-3 mt-4"},C={class:"send-email-without-cv-header"},$={class:"send-email-without-cv-title"},k={class:"send-email-without-cv-description"},b={class:"send-email-without-cv-setting ml-3 mt-4"},_={class:"send-email-without-cv-header"},D={class:"send-email-without-cv-title"},V={class:"send-email-without-cv-description"},E={class:"row"},A={class:"col-12 my-5"},I={class:"text-h6 ma-4"},U={style:{"font-weight":"500"},class:"mb-1"},S={class:"text-body-2 text-grey-darken-1"},P={class:"text-body-2 text-grey-darken-1 mt-2"},W={class:"d-flex flex-wrap align-center mt-4",style:{gap:"12px"}},T={style:{"font-weight":"500"}},L={key:0},M={key:1},x={key:2},F={key:2,class:"my-4"},X={class:"my-4"},B={class:"mb-4"},O=["innerHTML"],R={class:"d-flex flex-column flex-sm-row justify-end"};function Y(e,t,s,Y,G,H){const N=(0,i.g2)("ChangePassword"),j=(0,i.g2)("ListCVsPresentation"),z=(0,i.g2)("CVInputElement"),J=(0,i.g2)("router-link"),Q=(0,i.g2)("base-mailto"),K=(0,i.g2)("SetCVToAllLoopsDialog");return(0,i.uX)(),(0,i.CE)(i.FK,null,[H.showChangePassword?((0,i.uX)(),(0,i.CE)("div",g,[(0,i.bF)(N)])):(0,i.Q3)("",!0),H.showCvs?((0,i.uX)(),(0,i.CE)("div",v,[(0,i.Lk)("div",f,[(0,i.Lk)("div",y,(0,a.v_)(e.$t("cvs")),1),(0,i.bF)(j,{cvs:this.cvList,canDelete:!0,deletingCvId:G.deletingCvId,"can-set-default":!this.loadingSetDefaultCV,"can-rename":!0,onDeleteCv:H.deleteCV,onSetDefaultCv:t[0]||(t[0]=t=>e.$refs.setToAllLoopsDialog.open(t)),onRenameCv:H.renameCv},null,8,["cvs","deletingCvId","can-set-default","onDeleteCv","onRenameCv"]),(0,i.bF)(n.D,{class:"ml-3",variant:"tonal",onClick:t[1]||(t[1]=t=>e.$refs.fileInput.click()),disabled:G.uploading,loading:G.uploading},{default:(0,i.k6)((()=>[(0,i.eW)((0,a.v_)(e.$t("SelectCV.button")),1)])),_:1},8,["disabled","loading"]),(0,i.Lk)("div",w,[(0,i.Lk)("div",C,[(0,i.Lk)("h3",$,(0,a.v_)(e.$t("Profile.sendEmailWithoutCv")),1),(0,i.bF)(m.N,{class:"send-email-without-cv-switch",modelValue:G.sendEmailWithoutCV,"onUpdate:modelValue":[t[2]||(t[2]=e=>G.sendEmailWithoutCV=e),H.saveSendEmailWithoutCV],color:"primary",loading:G.savingSendEmailWithoutCV,"hide-details":""},null,8,["modelValue","loading","onUpdate:modelValue"])]),(0,i.Lk)("p",k,(0,a.v_)(e.$t("Profile.sendEmailWithoutCvDescription")),1)]),(0,i.Lk)("div",b,[(0,i.Lk)("div",_,[(0,i.Lk)("h3",D,(0,a.v_)(e.$t("Profile.shareCvWithRecruiters")),1),(0,i.bF)(m.N,{class:"send-email-without-cv-switch",modelValue:G.shareMyData,"onUpdate:modelValue":[t[3]||(t[3]=e=>G.shareMyData=e),H.saveShareMyData],color:"primary",loading:G.savingShareMyData,"hide-details":""},null,8,["modelValue","loading","onUpdate:modelValue"])]),(0,i.Lk)("p",V,(0,a.v_)(e.$t("Profile.shareCvWithRecruitersDescription")),1)]),(0,i.bF)(z,{ref:"fileInput",onRegularUpload:H.handleRegularUpload},null,8,["onRegularUpload"])])])):(0,i.Q3)("",!0),(0,i.Lk)("div",E,[(0,i.Lk)("div",A,[(0,i.Lk)("div",I,(0,a.v_)(this.$t("Profile.account_manager")),1),H.showAdminTokenGenerator?((0,i.uX)(),(0,i.Wv)(o.J,{key:0,flat:"",border:"",class:"pa-3 ma-2 mb-4 text-subtitle-1"},{default:(0,i.k6)((()=>[(0,i.Lk)("div",U,(0,a.v_)(e.$t("profile.adminToken.title")),1),(0,i.Lk)("div",S,(0,a.v_)(e.$t("profile.adminToken.description")),1),(0,i.Lk)("div",P,(0,a.v_)(e.$t("profile.adminToken.warning")),1),(0,i.Lk)("div",W,[(0,i.bF)(n.D,{color:"primary",variant:"tonal",elevation:"1",loading:G.generatingAdminToken,disabled:G.generatingAdminToken,onClick:H.generateAdminToken},{default:(0,i.k6)((()=>[(0,i.eW)((0,a.v_)(e.$t("profile.adminToken.generate")),1)])),_:1},8,["loading","disabled","onClick"]),(0,i.bF)(n.D,{variant:"tonal",elevation:"1",disabled:!G.adminToken,onClick:H.copyAdminToken},{default:(0,i.k6)((()=>[(0,i.bF)(h.w,{class:"mr-2",size:"18"},{default:(0,i.k6)((()=>t[8]||(t[8]=[(0,i.eW)("md:content_copy")]))),_:1}),(0,i.eW)(" "+(0,a.v_)(e.$t("profile.adminToken.copy")),1)])),_:1},8,["disabled","onClick"])]),G.adminToken?((0,i.uX)(),(0,i.Wv)(p.W,{key:0,class:"mt-4 admin-token-field",label:e.$t("profile.adminToken.fieldLabel"),"model-value":H.maskedAdminToken,readonly:"",variant:"outlined",density:"compact","hide-details":""},null,8,["label","model-value"])):(0,i.Q3)("",!0)])),_:1})):(0,i.Q3)("",!0),this.isUserPartner?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.Wv)(o.J,{key:1,flat:"",border:"",class:"pa-3 ma-2 mb-4 text-subtitle-1",onClick:t[4]||(t[4]=e=>G.showDeleteAccountDialog=!0),disabled:H.subscriptionIsActive},{default:(0,i.k6)((()=>[(0,i.Lk)("div",T,(0,a.v_)(this.$t("Profile.delete_account")),1),H.subscriptionIsActive?((0,i.uX)(),(0,i.CE)("i",L,(0,a.v_)(this.$t("Profile.error_active_subscription")),1)):H.isTrialSubscription?((0,i.uX)(),(0,i.CE)("div",M,(0,a.v_)(this.$t("Profile.deleteTrialAccount")),1)):((0,i.uX)(),(0,i.CE)("div",x,(0,a.v_)(this.$t("Profile.delete_permanently")),1))])),_:1},8,["disabled"])),this.isUserPartner?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",F,[(0,i.eW)((0,a.v_)(this.$t("Profile.manage_loops"))+" ",1),(0,i.bF)(J,{to:"/loops"},{default:(0,i.k6)((()=>[(0,i.eW)((0,a.v_)(this.$t("page.loopsList")),1)])),_:1}),t[9]||(t[9]=(0,i.eW)(". "))])),(0,i.Lk)("div",X,[(0,i.eW)((0,a.v_)(e.$t("profile.supp
1ortRequests"))+" ",1),(0,i.Lk)("i",null,[(0,i.bF)(Q,{email:H.supportEmail},null,8,["email"])]),t[10]||(t[10]=(0,i.eW)(". "))])])]),(0,i.bF)(c.p,{modelValue:G.showDeleteAccountDialog,"onUpdate:modelValue":t[7]||(t[7]=e=>G.showDeleteAccountDialog=e),"max-width":"700"},{default:(0,i.k6)((()=>[(0,i.bF)(o.J,null,{default:(0,i.k6)((()=>[(0,i.bF)(r.r,{class:"text-h5 pl-6 pt-4 title-responsive"},{default:(0,i.k6)((()=>[(0,i.eW)((0,a.v_)(e.$t("profile.delete.title",{brand:e.$store.getters.brand})),1)])),_:1}),(0,i.bF)(l.O,{class:"text-body-2 text-grey-darken-2 py-0"},{default:(0,i.k6)((()=>[(0,i.Lk)("div",B,[(0,i.Lk)("span",{innerHTML:e.$t("profile.delete.sure",{email:H.email})},null,8,O)]),(0,i.bF)(p.W,{color:"primary",modelValue:G.emailValidation,"onUpdate:modelValue":t[5]||(t[5]=e=>G.emailValidation=e),label:e.$t("profile.delete.email")},null,8,["modelValue","label"])])),_:1}),(0,i.bF)(d.S,null,{default:(0,i.k6)((()=>[(0,i.Lk)("div",R,[(0,i.bF)(u.B,{cols:"12",sm:"auto",class:"mb-2 mb-sm-0"},{default:(0,i.k6)((()=>[(0,i.bF)(n.D,{block:"",onClick:t[6]||(t[6]=e=>{G.showDeleteAccountDialog=!1,G.emailValidation=null}),variant:"tonal",elevation:"1"},{default:(0,i.k6)((()=>[(0,i.eW)((0,a.v_)(e.$t("cancel")),1)])),_:1})])),_:1}),(0,i.bF)(u.B,{cols:"12",sm:"auto"},{default:(0,i.k6)((()=>[(0,i.bF)(n.D,{variant:"tonal",elevation:"1",color:"error",block:"",onClick:this.deleteAccount},{default:(0,i.k6)((()=>[(0,i.eW)((0,a.v_)(e.$t("profile.delete.yes")),1)])),_:1},8,["onClick"])])),_:1})])])),_:1})])),_:1})])),_:1},8,["modelValue"]),(0,i.bF)(K,{ref:"setToAllLoopsDialog",onConfirmSetDefault:this.setDefaultCV},null,8,["onConfirmSetDefault"])],64)}var G=s(74048),H=s(76062),N=s(77029),j=s(59635),z=s(40387),J=s(62769),Q=s(9531),K=s(66278),q=s(65472),Z=s(39308),ee=s(99018),te=s(1436),se=s(54485),ie=s(77551),ae=s(96655);const ne=q.d.user,oe={components:{ChangePassword:G.A,PricingPlans:H["default"],ListCVsPresentation:N.A,CVInputElement:J.A,SetCVToAllLoopsDialog:Q.A,Input:Z.pd},props:{model:{type:Object,default:()=>({})}},data(){return{spinning:!1,showDeleteAccountDialog:!1,emailValidation:null,errors:{},cvs:[],uploading:!1,deletingCvId:null,loadingSetDefaultCV:!1,sendEmailWithoutCV:!1,savingSendEmailWithoutCV:!1,shareMyData:!1,savingShareMyData:!1,adminToken:null,generatingAdminToken:!1}},computed:{...(0,K.L8)("user",{getUser:ne.getters.getUser,userLoaded:ne.getters.getLoading,isUserPartner:ne.getters.isUserPartner,getStatus:ne.getters.getStatus,getUserLoaded:ne.getters.userLoaded,getCvs:ne.getters.getCvs,getUploadedCV:ne.getters.getUploadedCV}),showChangePassword(){const e=this.isAdminOrManager&&!this.clientId;if(e)return!0;const t=this.$store.getters.configs?.microsoftSSO?.enabled;return!t},showCvs(){return this.isB2C||this.isManagedUser},isB2C(){return this.$store.getters.isB2C},status(){return this.getStatus},connectedUser(){return this.getUser},cvList(){return this.getCvs.filter((e=>"generated-draft"!==e.type))},supportEmail(){return this.$store.getters.configs.supportEmail},brand(){return this.$store.getters.brand},email(){return this.getUser?.email},currentPricingPlan(){return this.getUser?.pricingPlan},pricingPlansData(){return this.$store.getters.pricingPlansData},subscriptionIsActive(){if(!this.currentPricingPlan)return!1;if(!this.$store.getters.configs?.showPricingPlans)return!1;const e=this.pricingPlansData.find((({index:e})=>e===this.currentPricingPlan));return!!e&&0!==e.cost},isTrialSubscription(){return"trial"===this.getUser?.subscriptionStatus},isAdminOrManager(){return this.getUser.role==te.X.ADMIN||this.getUser.role==te.X.MANAGER||this.getUser.role==te.X.SupportAgent},showAdminTokenGenerator(){const e=this.getUser?.role===te.X.ADMIN,t=e&&!this.clientId;return t},clientId(){return this.$route.params.clientId},isManagedUser(){return this.isB2B&&(this.clientId||this.getUser?.role==te.X.MANAGED_USER)},isB2B(){return this.$store.getters.isB2B},maskedAdminToken(){if(!this.adminToken)return null;const e=String(this.adminToken),t=6,s=4,i=12;if(e.length<=t+s+1)return e;const a=e.slice(0,t),n=e.slice(-s);return`${a}${"*".repeat(i)}${n}`}},created(){this.listCVs()},async mounted(){try{if(this.isAdminOrManager&&this.clientId){const e=await se.A["user.get"](this.clientId);return this.sendEmailWithoutCV=e?.sendEmailWithoutCV||!1,void(this.shareMyData=e?.shareMyData||!1)}this.sendEmailWithoutCV=this.getUser?.sendEmailWithoutCV||!1,this.shareMyData=this.getUser?.shareMyData||!1}catch(e){this.sendEmailWithoutCV=this.getUser?.sendEmailWithoutCV||!1,this.shareMyData=this.getUser?.shareMyData||!1}},watch:{getUser:{deep:!1,handler(e){this.isAdminOrManager&&this.clientId||(this.sendEmailWithoutCV=e?.sendEmailWithoutCV||!1,this.shareMyData=e?.shareMyData||!1)}}},methods:{async saveSendEmailWithoutCV(){this.savingSendEmailWithoutCV=!0;const e={sendEmailWithoutCV:this.sendEmailWithoutCV,clientId:this.clientId};try{await this.$store.dispatch(ne.actions.UpdateInfo,e),this.getUser?.onboardingCompleted||await this.$store.dispatch(ne.actions.OptimisticUpdateOnboardingStep,{field:"profileDetails",value:!0}),this.$notify({message:this.$t("Generic.Messages.Success.update_profile"),type:"success"}),await this.$store.dispatch(ne.actions.RefreshUserData)}
1catch(t){this.$notify({message:t?.data?.error||t?.message,type:"danger"})}finally{this.savingSendEmailWithoutCV=!1}},async saveShareMyData(){this.savingShareMyData=!0;const e={shareMyData:this.shareMyData,clientId:this.clientId};try{await this.$store.dispatch(ne.actions.UpdateInfo,e),this.getUser?.onboardingCompleted||await this.$store.dispatch(ne.actions.OptimisticUpdateOnboardingStep,{field:"profileDetails",value:!0}),this.$notify({message:this.$t("Generic.Messages.Success.update_profile"),type:"success"}),await this.$store.dispatch(ne.actions.RefreshUserData)}catch(t){this.$notify({message:t?.data?.error||t?.message,type:"danger"})}finally{this.savingShareMyData=!1}},async deleteAccount(){try{if(this.emailValidation===this.email)if(1==this.getUser.pricingPlan){const e=await this.$store.dispatch(ne.actions.DeleteUser);"OK"===e&&(this.$notify({message:this.$t("Generic.Messages.Success.delete_account"),type:"success"}),this.showDeleteAccountDialog=!1,await this.$store.dispatch(ne.actions.SignOut),this.$router.push("/login"))}else"trial"===this.getUser.subscriptionStatus?this.$notify({message:this.$t("Profile.deleteTrialAccount"),type:"danger"}):(this.showDeleteAccountDialog=!1,this.$notify({message:this.$t("Auth.Error.delete_account_has_plan"),type:"danger"}));else this.$notify({message:this.$t("Auth.Error.wrong_email_text",{email:this.emailValidation}),type:"danger"})}catch(e){this.$notify({message:e.message||this.$t("Generic.Messages.Error.common_error",{email:this.supportEmail}),type:"danger"})}},async deleteCV(e){if(null!==this.deletingCvId)return;this.deletingCvId=e;const t={userId:null,cvId:e};try{await this.$store.dispatch(ne.actions.DeleteCV,t),this.$notify({message:this.$t("Profile.success_delete_cv"),type:"success"})}catch(s){let e=this.$t("Profile.failure_to_delete_cv",{email:this.supportEmail});"cv-connected-to-active-loop"===s?.data?.error&&(e=this.$t("errors.cannotDeleteConnectedCV")),this.$notify({message:e,type:"danger"})}await this.listCVs(),this.deletingCvId=null},async renameCv({cvId:e,fileName:t}){try{const s=this.isAdminOrManager&&this.clientId?this.clientId:null;await(0,ie.il)(e,t,s),this.$notify({message:this.$t("cvBuilder.cvRenamedSuccessfully"),type:"success"})}catch(s){this.$notify({message:s?.message||this.$t("Generic.Messages.Error.common_error",{email:this.supportEmail}),type:"danger"})}finally{await this.listCVs()}},async generateAdminToken(){if(!this.generatingAdminToken){this.generatingAdminToken=!0;try{const e=await ae.Lf.generateAdminToken();this.adminToken=e?.token||e?.data?.token||null,this.$notify({message:this.$t("profile.adminToken.generated"),type:"success"})}catch(e){this.$notify({message:e?.data?.error||e?.message||this.$t("Generic.Messages.Error.common_error",{email:this.supportEmail}),type:"danger"})}finally{this.generatingAdminToken=!1}}},async copyAdminToken(){if(this.adminToken)try{if(navigator?.clipboard?.writeText)await navigator.clipboard.writeText(this.adminToken);else{const e=document.createElement("textarea");e.value=this.adminToken,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}this.$notify({message:this.$t("profile.adminToken.copied"),type:"success"})}catch(e){this.$notify({message:e?.message||this.$t("errors.unexpected"),type:"danger"})}},getDefaultCvErrorMessage(e){const t=e?.data?.message||e?.data?.error||e?.message;return t&&"User not found"===t?this.$t("errors.cvDefaultUserNotFound"):null},async setDefaultCV(e){this.loadingSetDefaultCV=!0;try{const t={cvId:e,userId:this.isAdminOrManager&&this.clientId?this.clientId:null};await this.$store.dispatch(ne.actions.SetDefaultCv,t),this.$notify({message:this.$t("Profile.success_set_default_cv"),type:"success"})}catch(t){const e=this.getDefaultCvErrorMessage(t);this.$notify({message:e||t.message||this.$t("Profile.failure_set_default_cv",{email:this.supportEmail}),type:"danger"})}finally{this.loadingSetDefaultCV=!1}},async listCVs(){try{this.isAdminOrManager&&this.clientId?await this.$store.dispatch(ne.actions.GetCVs,this.clientId):await this.$store.dispatch(ne.actions.GetCVs)}
1catch(e){this.$notify({message:e.message||this.$t("Generic.Messages.Error.common_error",{email:this.supportEmail}),type:"danger"})}},handleRegularUpload(e){this.fileUpload(e.target.files[0])},async fileUpload(e){if(e)if((0,z.Ni)(e.name)){if(this.cvs&&this.cvs.length>0&&this.cvs.some((t=>t.fileName===e.name)))return this.$notify({message:this.$t("errors.sameFileName"),type:"danger"}),void this.$refs.fileInput.reset();if(e.size>j.Ts)this.$notify({message:this.$t("Generic.Messages.Error.file_size",{size:(0,ee.I)(e.size)}),type:"danger"});else try{this.uploading=!0;const t=this.isAdminOrManager&&this.clientId?this.clientId:null,s={file:e,clientId:t},i=await this.$store.dispatch(ne.actions.UploadCv,s);this.$refs.setToAllLoopsDialog.open(i.cvId)}catch(t){this.$notify({message:t.message||this.$t("errors.unexpected"),type:"danger"})}this.$refs.fileInput.reset(),this.listCVs(),this.uploading=!1}else this.$notify({message:this.$t("errors.shouldBePdfOrWord"),type:"danger"})}}};var re=s(66262);const le=(0,re.A)(oe,[["render",Y],["__scopeId","data-v-f21736ac"]]),de=le},6175:(e,t,s)=>{s.d(t,{r3:()=>y,qY:()=>v,DV:()=>g,ZJ:()=>f});var i=s(20641),a=s(43312),n=s(95851),o=s(36839),r=s(4759),l=s(21070),d=s(95841),c=s(1224),u=s(50953),h=s(81094),m=s(72636),p=s(14675);const g=Symbol.for("vuetify:v-window"),v=Symbol.for("vuetify:v-window-group"),f=(0,h.j)({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>"boolean"===typeof e||"hover"===e},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...(0,n.u)(),...(0,l.X)(),...(0,d.yx)()},"VWindow"),y=(0,m.RW)()({name:"VWindow",directives:{Touch:c.U},props:f(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:s}=t;const{themeClasses:n}=(0,d.NX)(e),{isRtl:l}=(0,r.IA)(),{t:c}=(0,r.Ym)(),h=(0,o.dB)(e,v),m=(0,u.KR)(),f=(0,i.EW)((()=>l.value?!e.reverse:e.reverse)),y=(0,u.IJ)(!1),w=(0,i.EW)((()=>{const t="vertical"===e.direction?"y":"x",s=f.value?!y.value:y.value,i=s?"-reverse":"";return`v-window-${t}${i}-transition`})),C=(0,u.IJ)(0),$=(0,u.KR)(void 0),k=(0,i.EW)((()=>h.items.value.findIndex((e=>h.selected.value.includes(e.id)))));(0,i.wB)(k,((e,t)=>{const s=h.items.value.length,i=s-1;y.value=s<=2?e<t:e===i&&0===t||(0!==e||t!==i)&&e<t})),(0,i.Gt)(g,{transition:w,isReversed:y,transitionCount:C,transitionHeight:$,rootRef:m});const b=(0,i.EW)((()=>e.continuous||0!==k.value)),_=(0,i.EW)((()=>e.continuous||k.value!==h.items.value.length-1));function D(){b.value&&h.prev()}function V(){_.value&&h.next()}const E=(0,i.EW)((()=>{const t=[],n={icon:l.value?e.nextIcon:e.prevIcon,class:"v-window__"+(f.value?"right":"left"),onClick:h.prev,"aria-label":c("$vuetify.carousel.prev")};t.push(b.value?s.prev?s.prev({props:n}):(0,i.bF)(a.D,n,null):(0,i.bF)("div",null,null));const o={icon:l.value?e.prevIcon:e.nextIcon,class:"v-window__"+(f.value?"left":"right"),onClick:h.next,"aria-label":c("$vuetify.carousel.next")};return t.push(_.value?s.next?s.next({props:o}):(0,i.bF)(a.D,o,null):(0,i.bF)("div",null,null)),t})),A=(0,i.EW)((()=>{if(!1===e.touch)return e.touch;const t={left:()=>{f.value?D():V()},right:()=>{f.value?V():D()},start:e=>{let{originalEvent:t}=e;t.stopPropagation()}};return{...t,...!0===e.touch?{}:e.touch}}));return(0,p.C)((()=>(0,i.bo)((0,i.bF)(e.tag,{ref:m,class:["v-window",{"v-window--show-arrows-on-hover":"hover"===e.showArrows},n.value,e.class],style:e.style},{default:()=>[(0,i.bF)("div",{class:"v-window__container",style:{height:$.value}},[s.default?.({group:h}),!1!==e.showArrows&&(0,i.bF)("div",{class:"v-window__controls"},[E.value])]),s.additional?.({group:h})]}),[[(0,i.gN)("touch"),A.value]]))),{group:h}}})},91926:(e,t,s)=>{s.d(t,{m:()=>y,w:()=>f});var i=s(20641),a=s(53751),n=s(95851),o=s(36839),r=s(76928),l=s(27066),d=s(30599),c=s(1224),u=s(50953),h=s(81094),m=s(72636),p=s(94717),g=s(14675),v=s(6175);const f=(0,h.j)({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...(0,n.u)(),...(0,o.TX)(),...(0,r.f)()},"VWindowItem"),y=(0,m.RW)()({name:"VWindowItem",directives:{Touch:c.A},props:f(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:s}=t;const n=(0,i.WQ)(v.DV),c=(0,o.aO)(e,v.qY),{isBooted:h}=(0,l.K)();if(!n||!c)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const m=(0,u.IJ)(!1),f=(0,i.EW)((()=>h.value&&(n.isReversed.value?!1!==e.reverseTransition:!1!==e.transition)));function y(){m.value&&n&&(m.value=!1,n.transitionCount.value>0&&(n.transitionCount.value-=1,0===n.transitionCount.value&&(n.transitionHeight.value=void 0)))}function w(){!m.value&&n&&(m.value=!0,0===n.transitionCount.value&&(n.transitionHeight.value=(0,p.Dg)(n.rootRef.value?.clientHeight)),n.transitionCount.value+=1)}function C(){y()}function $(e){m.value&&(0,i.dY)((()=>{f.value&&m.value&&n&&(n.transitionHeight.value=(0,p.Dg)(e.clientHeight))}))}const k=(0,i.EW)((()=>{const t=n.isReversed.value?e.reverseTransition:e.transition;return!!f.value&&{name:"string"!==typeof t?n.transition.value:t,onBeforeEnter:w,onAfterEnter:y,onEnterCancelled:C,onBeforeLeave:w,onAfterLeave:y,onLeaveCancelled:C,onEnter:$}})),{hasContent:b}=(0,r._)(e,c.isSelected);return(0,g.C)((()=>(0,i.bF)(d.M,{transition:k.value,disabled:!h.value},{default:()=>[(0,i.bo)((0,i.bF)("div",{class:["v-window-item",c.selectedClass.value,e.class],style:e.style},[b.value&&s.default?.()]),[[a.aG,c.isSelected.value]])]}))),{groupItem:c}}})},1224:(e,t,s)=>{s.d(t,{A:()=>h,U:()=>u});var i=s(94717);const a=e=>{const{touchstartX:t,touchendX:s,touchstartY:i,touchendY:a}=e,n=.5,o=16;e.offsetX=s-t,e.offsetY=a-i,Math.abs(e.offsetY)<n*Math.abs(e.offsetX)&&(e.left&&s<t-o&&e.left(e),e.right&&s>t+o&&e.right(e)),Math.abs(e.offsetX)<n*Math.abs(e.offsetY)&&(e.up&&a<i-o&&e.up(e),e.down&&a>i+o&&e.down(e))};function n(e,t){const s=e.changedTouches[0];t.touchstartX=s.clientX,t.touchstartY=s.clientY,t.start?.({originalEvent:e,...t})}function o(e,t){const s=e.changedTouches[0];t.touchendX=s.clientX,t.touchendY=s.clientY,t.end?.({originalEvent:e,...t}),a(t)}function r(e,t){const s=e.changedTouches[0];t.touchmoveX=s.clientX,t.touchmoveY=s.clientY,t.move?.({originalEvent:e,...t})}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:e=>n(e,t),touchend:e=>o(e,t),touchmove:e=>r(e,t)}}function d(e,t){const s=t.value,a=s?.parent?e.parentElement:e,n=s?.options??{passive:!0},o=t.instance?.$.uid;if(!a||!o)return;const r=l(t.value);a._touchHandlers=a._touchHandlers??Object.create(null),a._touchHandlers[o]=r,(0,i.HP)(r).forEach((e=>{a.addEventListener(e,r[e],n)}))}function c(e,t){const s=t.value?.parent?e.parentElement:e,a=t.instance?.$.uid;if(!s?._touchHandlers||!a)return;const n=s._touchHandlers[a];
1(0,i.HP)(n).forEach((e=>{s.removeEventListener(e,n[e])})),delete s._touchHandlers[a]}const u={mounted:d,unmounted:c},h=u}}]);
2//# sourceMappingURL=4521.0a8c4be5.js.map

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.