PageSourceSearch

https://laposte.net/assets/SubscriptionChoicePage-BPlyXpHd.js

js laposte.net collected 2026-09-24 08:41:51 UTC 2,661 bytes, 1 lines download raw bytes

1import{_,u as C,a as k,O as x,M as u,r as t,F as p,U as m,c as L,w as d,I as P,b as f,o as n,d as a,m as S,e as v,n as B,f as E,g as l,i as M,h as U,p as h,P as g,x as V,y as A,Q as F,G as I}from"./main-CquFTi0V.js";import{A as N}from"./AsyncLoadingComponent-C0mt-HFp.js";import"/conf/env.js";import"./TheSpinner-C62YLq_b.js";const z={key:0,class:"success-group"},G={key:1,class:"error-group"},T={class:"checkbox-container"},q={class:"checkbox-container"},D={__name:"SubscriptionChoicePage",setup(J){C({title:"Gestion des abonnements – Laposte.net"});const o=f({commercial:{type:Boolean,default:!1},partners:{type:Boolean,default:!1}}),r=A({updateTriggered:!1,error:!1}),i=f(!1);async function b(){try{return await F(o.value.commercial,o.value.partners),!0}catch(e){return e instanceof u?await t.push("/maintenance"):e instanceof p?await t.push("/non-autorise"):e instanceof m?await t.push("/mon-compte/erreur-authent"):e instanceof I&&await t.push("/mon-compte/erreur-technique"),!1}}const y=async()=>{i.value||(i.value=!0,r.updateTriggered=!0,r.error=!await b(),i.value=!1)},{loading:w}=k(async()=>{try{o.value=await x()}catch(e){e instanceof u?await t.push("/maintenance"):e instanceof p?await t.push("/non-autorise"):e instanceof m?await t.push("/mon-compte/erreur-authent"):await t.push("/mon-compte/erreur-technique")}});return(e,s)=>(n(),L(P,null,{default:d(()=>[a("form",{id:"subscription",name:"subscription",method:"post",autocomplete:"off",novalidate:"",onSubmit:S(y,["prevent"])},[v(N,{loading:E(w),class:B("form-container")},{default:d(()=>[a("fieldset",null,[r.updateTriggered?(n(),l(M,{key:0},[r.error?(n(),l("p",G,"Une erreur est survenue, veuillez essayer à nouveau.")):(n(),l("p",z,"La modification a été effectuée."))],64)):U("",!0),a("fieldset",null,[a("div",T,[h(a("input",{id:"ipLaPosteCommercial","onUpdate:modelValue":s[0]||(s[0]=c=>o.value.commercial=c),type:"checkbox"},null,512),[[g,o.value.commercial]]),s[2]||(s[2]=a("label",{for:"ipLaPosteCommercial"}," Je souhaite recevoir des communications commerciales par email de la part de La Poste et ses filiales. ",-1))]),a("div",q,[h(a("input",{id:"ipLaPostePartnersCommercial","onUpdate:modelValue":s[1]||(s[1]=c=>o.value.partners=c),type:"checkbox"},null,512),[[g,o.value.partners]]),s[3]||(s[3]=a("label",{for:"ipLaPostePartnersCommercial"}," Je souhaite recevoir des communications commerciales par email de la part des partenaires de La Poste. ",-1))])]),v(V,{"solo-position":"left","progress-text":"Enregistrer","progress-disabled":i.value},null,8,["progress-disabled"])])]),_:1},8,["loading"])],32)]),_:1}))}},j=_(D,[["__scopeId","data-v-16991075"]]);export{j 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.