PageSourceSearch

https://laposte.net/assets/LostPasswordPageContactTypeSelection-BNzQ3P_S.js

js laposte.net collected 2026-09-24 08:42:10 UTC 3,749 bytes, 1 lines download raw bytes

1import{_ as k,u as N,b as g,an as y,H as z,aC as D,l as F,a as U,au as c,c as j,w,aw as H,M as h,r as o,F as O,aD as b,az as f,o as v,e as M,f as l,d as t,m as I,p as d,t as m,v as S,g as C,a8 as R,k as _,h as E,x as q,y as L,z as G,at as W,ap as J,A as K,B as Q}from"./main-CquFTi0V.js";import{u as X}from"./unload-warning-DraGX8ui.js";import{g as Y,u as Z}from"./lost-password-service-BZMELt-o.js";import{A as ee}from"./AsyncLoadingComponent-C0mt-HFp.js";import"/conf/env.js";import"./TheSpinner-C62YLq_b.js";const ae={class:"centered-form"},oe={key:0,for:"firstOption",class:"radio-container"},te=["value"],se={key:0,for:"secondOption",class:"radio-container"},re=["value"],ne={__name:"LostPasswordPageContactTypeSelection",setup(ie){N({title:"Mot de passe oublié – Laposte.net"});const n=L({ipOption:""}),s=g({mail:{contact:null,recoveryType:y.EMAIL},sms:{contact:null,recoveryType:y.SMS}}),p=g(!1),r=L({error:!1,errorMessages:{global:null}}),$=z.withMessage("Merci de sélectionner une méthode de mise à jour du mot de passe.",D),x=G(()=>({ipOption:{empty:$}})),i=F(x,n,{$rewardEarly:!0});async function P(){try{return await Z(n.ipOption.recoveryType.description),!0}catch(e){return e instanceof h?await o.push("/maintenance"):e instanceof O?await o.push("/non-autorise"):e instanceof b?await o.replace({name:f.noContact}):e instanceof J?await o.push("/erreur"):e instanceof K||Q(e)?(r.error=!0,r.errorMessages.global=e.message):await o.push("/erreur"),!1}}const B=async()=>{if(!(p.value||(r.errorMessages.global=null,r.error=!1,!await i.value.$validate()))){if(p.value=!0,r.error=!await P(),r.error){p.value=!1;return}"selectedContact"in c().passwordRecovery&&await o.replace({name:f.contactConfirmation})}},T=async()=>{try{await Y()}catch(e){e instanceof h?await o.push("/maintenance"):e instanceof O?await o.push("/non-autorise"):e instanceof b?await o.replace({name:f.noContact}):await o.push("/erreur")}},{loading:A}=U(async()=>{await T(),s.value.mail.contact=c().otherRecoveryOptions.hasMailOption&&c().otherRecoveryOptions.obfuscatedEmail,s.value.sms.contact=c().otherRecoveryOptions.hasSMSOption&&c().otherRecoveryOptions.obfuscatedPhoneNumber});function V(){o.push(W)}return X(),(e,a)=>(v(),j(H,{"show-banner-photo":!1},{default:w(()=>[M(ee,{loading:l(A)},{default:w(()=>[a[4]||(a[4]=t("h1",null,"Modifier votre mot de passe",-1)),a[5]||(a[5]=t("h2",null,"Choisissez la méthode de mise à jour du mot de passe",-1)),t("form",{id:"modify-password",name:"modify-password",method:"post",autocomplete:"off",novalidate:"",onSubmit:I(B,["prevent"])},[t("fieldset",ae,[d(t("p",{class:"error-group"},m(r.errorMessages.global),513),[[S,r.error]]),d(t("p",{class:"error-group"},m(l(i).ipOption.empty.$message),513),[[S,l(i).ipOption.$error]]),t("div",null,[s.value.mail.contact?(v(),C("label",oe,[d(t("input",{id:"firstOption","onUpdate:modelValue":a[0]||(a[0]=u=>n.ipOption=u),type:"radio",name:"firstOption",value:s.value.mail,onBlur:a[1]||(a[1]=u=>l(i).ipOption.$validate())},null,40,te),[[R,n.ipOption]]),_(" Recevez un code par e-mail sur votre adresse secondaire "+m(s.value.mail.contact),1)])):E("",!0)]),t("div",null,[s.value.sms.contact?(v(),C("label",se,[d(t("input",{id:"secondOption","onUpdate:modelValue":a[2]||(a[2]=u=>n.ipOption=u),type:"radio",name:"secondOption",value:s.value.sms,onBlur:a[3]||(a[3]=u=>l(i).ipOption.$validate())},null,40,re),[[R,n.ipOption]]),_(" Recevez un code par SMS sur votre mobile "+m(s.value.sms.contact),1)])):E("",!0)])]),M(q,{"centered-form":"","has-return":"","progress-disabled":l(i).$invalid||p.value,"return-text":"Retour à l'accueil",onTriggerReturn:V},null,8,["progress-disabled"])],32)]),_:1},8,["loading"])]),_:1}))}},fe=k(ne,[["__scopeId","data-v-781cf322"]]);export{fe as default};

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.