1import{a as C,a8 as V,A as H,C as z,D as U,c as b,V as O,w as a,b as t,e as h,h as o,j,t as w,u as n,q as G,i as J,aS as Y,R as r,k as _,ag as M,ah as Z,ai as Q,B as X,n as I,Y as N,am as R,ay as K,az as x,aA as ee,aB as ae,o as f,z as te,bf as ie,aq as se,X as le,r as oe,ad as re,aI as ne,a7 as ue}from"./index-DljKbM12.js";import{_ as de}from"./qapa-tab.vue_vue_type_script_setup_true_lang-C9UHStAM.js";import{_ as me}from"./qapa-layout-tabs-DGrjr4fj.js";import{u as pe}from"./use-sticky-KbjQH8LR.js";import{a as ce}from"./number-utils-C7e1YZT7.js";import{_ as fe}from"./qapa-phone-number-text-field.vue_vue_type_script_setup_true_lang-V6M2loiY.js";import{_ as be}from"./search-location-autocomplete.vue_vue_type_script_setup_true_lang-BxiMZpBY.js";import{S as ve}from"./score-progress-BYDH8zJN.js";import{A as _e}from"./avatar-widget-DH5sPyZr.js";import{i as Ee,t as ye}from"./search-adress-helper-DrGwr0hh.js";import"./qapa-chip-Cs3_Tc9B.js";import"./VChip-Ckxhgt-w.js";import"./qapa-mobile-transition-BS2RQ5aM.js";import"./masks-BynAV8IF.js";import"./VSelect-BrbhO4U2.js";import"./qapa-file-input.vue_vue_type_script_setup_true_lang-Du8PMdxz.js";import"./use-drag-drop-BRa-6aJb.js";import"./upload-file-name-lm3C3X9m.js";const Re={key:0},Ae={class:"text-body-2"},he=C({__name:"mobile-applicant-header",setup(B){const{t:p}=V(),g=X(),d=H(z,g),A=I("mobileEditDialog"),m=I("mobileEditForm"),$=I("searchAddressEditDialog"),c=I("searchAddressEditForm"),v=N(null),u=N(null),S=N("");function k(){var e;(e=A.value)==null||e.open()}async function s(){var e;if((await m.value.validate()).valid)try{return await d.patchApplicantContacts({mobile:v.value}),(e=A.value)==null||e.close(),R.success()}catch(i){return K(i,x.MOBILE_PHONE_ALREADY_USED)?(S.value=v.value,await ee(),await m.value.validate(),R.failure()):R.failureWithError(i,p("base.profile-resume.mobile-applicant-header.une-erreur-est-survenue-mobile"))}else return R.failure()}function l(){var e,i;(e=A.value)==null||e.close(),v.value=((i=d.applicant)==null?void 0:i.mobile)??null}function E(){var e;(e=$.value)==null||e.open()}async function y(){var e;if((await c.value.validate()).valid)try{return await d.patchApplicant({address1:u.value.address1,administrativeAreaLevel1:u.value.administrativeAreaLevel1,administrativeAreaLevel2:u.value.administrativeAreaLevel2,latitude:u.value.latitude,longitude:u.value.longitude,locality:u.value.locality,location:u.value.location,postalCode:u.value.postalCode,timeZone:u.value.timeZone}),(e=$.value)==null||e.close(),R.success()}catch(i){return R.failureWithError(i,p("base.profile-resume.mobile-applicant-header.une-erreur-est-survenue-adresse"))}else return R.failure()}return U(()=>{var e;v.value=((e=d.applicant)==null?void 0:e.mobile)??null,u.value=Ee(d.searchAddress)?ye(JSON.parse(JSON.stringify(d.searchAddress))):null}),(e,i)=>{const D=j,q=Y,T=ae("i18n-t"),W=fe,F=Q,P=Z;return f(),b(O,null,{default:a(()=>[t(h,{cols:"12"},{default:a(()=>[t(O,{"no-gutters":""},{default:a(()=>[t(h,{cols:"4"},{default:a(()=>[t(_e,{size:80,mobile:""})]),_:1}),i[4]||(i[4]=o()),t(h,{cols:"8"},{default:a(()=>[t(O,{"no-gutters":""},{default:a(()=>[t(h,{cols:"8",id:"mobile-col"},{default:a(()=>[t(D,{id:"edit-mobile-button",variant:"text",onClick:k},{default:a(()=>[o(w(n(ce)(n(d).applicant.mobile)||e.$t("base.profile-resume.mobile-applicant-header.numero-de-mobile-a-renseigner")),1)]),_:1})]),_:1})]),_:1}),i[3]||(i[3]=o()),t(O,{"no-gutters":""},{default:a(()=>[t(h,{cols:"12",class:"pl-4 text-body-2"},{default:a(()=>[o(w(e.$t("base.profile-resume.mobile-applicant-header.en-recherche-de-mission")),1)]),_:1}),i[2]||(i[2]=o()),t(h,{cols:"12",id:"search-address-col",class:"pt-0"},{default:a(()=>[t(D,{id:"edit-search-address-button",variant:"text",onClick:E},{default:a(()=>[o(w(n(d).searchAddress&&n(d).searchAddress.locality||e.$t("common.a-completer")),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),i[6]||(i[6]=o()),e.$appDomainConfig.feature.score?(f(),G("div",Re,[J("div",Ae,[t(T,{keypath:"base.profile-resume.mobile-applicant-header.plus-votre",tag:"span"},{score:a(()=>[t(q,{normal:"",to:{name:n(r).DASHBOARD_SCORE}},{default:a(()=>[o(w(e.$t("base.profile-resume.mobile-applicant-header.score")),1)]),_:1},8,["to"])]),_:1})]),i[5]||(i[5]=o()),t(ve)])):_("",!0)]),_:1}),i[9]||(i[9]=o()),t(n(M),{ref_key:"mobileEditDialog",ref:A,class:"mobile-edit-dialog",title:e.$t("base.profile-resume.mobile-applicant-header.modifier-mon-numero-de-title"),onClosed:l},{default:a(()=>[t(F,{ref_key:"mobileEditForm",ref:m},{default:a(()=>[t(W,{modelValue:v.value,"onUpdate:modelValue":i[0]||(i[0]=L=>v.value=L),class:"mobile-phone-number-field",label:e.$t("common.numero-mobile"),"prepend-inner-icon":"mdi-cellphone",hint:e.$t("base.profile-resume.mobile-applicant-header.le-numero-de-telephone-hint"),"duplicate-phone-number":S.value,"mobile-only":"",required:""},null,8,["modelValue","label","hint","duplicate-phone-number"])]),_:1},512)]),actions:a(()=>[t(P,{class:"validate-mobile-button mt-n6",action:s},{default:a(()=>[o(w(e.$t("common.valider")),1)]),_:1})]),_:1},8,["title"]),i[10]||(i[10]=o()),t(n(M),{ref_key:"searchAddressEditDialog",ref:$,class:"search-address-edit-dialog",title:e.$t("base.profile-resume.mobile-applicant-header.modifier-ma-ville-de-title")},{default:a(()=>[t(F,{ref_key:"searchAddressEditForm",ref:c},{default:a(()=>[t(be,{class:"search-location-field",modelValue:u.value,"onUpdate:modelValue":i[1]||(i[1]=L=>u.value=L),label:e.$t("base.profile-resume.mobile-applicant-header.en-recherche-de-mission"),required:""},null,8,["modelValue","label"])]),_:1},512)]),actions:a(()=>[t(P,{class:"validate-search-address-button mt-n6",action:y},{default:a(()=>[o(w(e.$t("common.valider")),1)]),_:1})]),_:1},8,["title"])]),_:1})}}}),Te=C({name:"ProfileView",__name:"profile",setup(B){te({meta:[{name:"robots",content:"noindex, nofollow"}]});const{t:p}=V(),g=ie(),d=le(),A=oe(),{applicantModule:m,baseTopStickyOffset:$}=pe(),{header:c}
1=re(),v=ue(()=>!!m.referrals&&m.referrals.length>0);function u(s,l=32){return s.length>l?s.slice(0,l)+"â¦":s}function S(){var s,l;return(s=m.applicant)!=null&&s.firstName||(l=m.applicant)!=null&&l.lastName?`${m.applicant.firstName} ${m.applicant.lastName}`:p("base.views.profile.profil")}async function k(){if(g.smAndDown.value)switch(d.name){case r.PROFILE_RESUME:c.value.name=p("base.views.profile.parcours-title");break;case r.PROFILE_INFO_AND_SUPPORTING_DOCUMENTS:c.value.name=p("base.views.profile.justificatifs-personnels-title");break;case r.PROFILE_REFERRALS:c.value.name=p("base.views.profile.references-title");break;case r.PROFILE_REVIEWS:case r.PROFILE_MOBILE_REVIEWS:c.value.name=p("base.views.profile.evaluations-title");break;case r.PROFILE_SETTINGS:c.value.name=p("base.views.profile-mobile-menu.parametres-title");break;case r.PROFILE_MOBILE_MENU:c.value.name=p("base.views.profile.compte-title");break;default:m.fetchScore(),c.value.name=u(S())}g.mdAndUp.value&&d.name===r.PROFILE&&await A.replace({name:r.PROFILE_RESUME})}return se(()=>d.name,()=>k()),U(async()=>{k(),await m.fetchReferrals()}),(s,l)=>{const E=ne,y=de;return f(),b(n(me),{"x-lg-and-up-margin":"","size-md-and-up":"266px","sticky-offset":n($),"parent-route-name":n(r).PROFILE},{mobileHeader:a(()=>[t(he)]),tabs:a(()=>[s.$vuetify.display.smAndDown?(f(),b(E,{key:0})):_("",!0),l[0]||(l[0]=o()),t(y,{title:s.$t("base.views.profile.parcours-title"),subtitle:s.$t("base.views.profile.mon-parcours-et-competences-subtitle"),to:{name:n(r).PROFILE_RESUME}},{underline:a(()=>[s.$vuetify.display.smAndDown?(f(),b(E,{key:0})):_("",!0)]),_:1},8,["title","subtitle","to"]),l[1]||(l[1]=o()),t(y,{title:s.$t("base.views.profile.justificatifs-personnels-title"),subtitle:s.$t("base.views.profile.essentiels-pour-pouvoir-travailler-subtitle"),to:{name:n(r).PROFILE_INFO_AND_SUPPORTING_DOCUMENTS}},{underline:a(()=>[s.$vuetify.display.smAndDown?(f(),b(E,{key:0})):_("",!0)]),_:1},8,["title","subtitle","to"]),l[2]||(l[2]=o()),v.value?(f(),b(y,{key:1,title:s.$t("base.views.profile.references-title"),subtitle:s.$t("base.views.profile.valoriser-mes-experiences-subtitle"),to:{name:n(r).PROFILE_REFERRALS}},{underline:a(()=>[s.$vuetify.display.smAndDown?(f(),b(E,{key:0})):_("",!0)]),_:1},8,["title","subtitle","to"])):_("",!0),l[3]||(l[3]=o()),s.$vuetify.display.mdAndUp?(f(),b(y,{key:2,title:s.$t("base.views.profile.evaluations-title"),to:{name:n(r).PROFILE_REVIEWS}},null,8,["title","to"])):_("",!0),l[4]||(l[4]=o()),s.$vuetify.display.smAndDown?(f(),b(y,{key:3,title:s.$t("base.views.profile.compte-title"),subtitle:s.$t("base.views.profile.reglages-et-aide-subtitle"),to:{name:n(r).PROFILE_MOBILE_MENU}},{underline:a(()=>[t(E,{class:"mb-3"})]),_:1},8,["title","subtitle","to"])):_("",!0)]),_:1},8,["sticky-offset","parent-route-name"])}}});export{Te as default}; 2//# sourceMappingURL=profile-52DZyAMl.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.