PageSourceSearch

https://isic.fr/_nuxt/NNaeKQvf.js

js isic.fr collected 2026-09-24 12:06:44 UTC 1,436 bytes, 1 lines download raw bytes

1import{_ as g}from"./D-fTV-R0.js";import{e as w,f as y,l as m,J as k,i as V,m as v,c as d,s as _,g as t,o as p,a,t as c,v as N,b as S,D as C,w as D,d as U}from"./BwpL3H6q.js";const B={key:0},I={key:0,class:"flex gap-3"},L={class:"uppercase font-bold"},P={class:"flex-0"},$={key:1,class:"flex flex-col items-start gap-2"},F=w({__name:"email-subscribing",props:{context:{}},setup(h){const r=h,{t:s}=y(),e=m(!1),o=k(),n=m(!1),i=V(()=>o.user.optin_mail);v(i,l=>{n.value||(e.value=l)},{immediate:!0}),v(e,async l=>{if(r.context==="switch"&&l!==i.value){if(n.value){e.value=i.value;return}n.value=!0;try{await o.updateUserData({optin_mail:l})}catch{e.value=i.value}finally{n.value=!1,e.value=i.value}}});const x=()=>{o.isLoggedIn&&r.context==="cta"&&o.updateUserData({optin_mail:!0})};return(l,u)=>{const b=g;return t(o).isLoggedIn?(p(),d("div",B,[r.context==="cta"?(p(),d("div",I,[a("div",null,[a("p",L,c(t(s)("newsletter.title")),1),a("p",null,c(t(s)("newsletter.description")),1)]),a("div",P,[a("button",{class:"btn btn-action",onClick:u[0]||(u[0]=N(f=>x(),["prevent"]))},c(t(s)("cta.register[0]")),1)])])):r.context==="switch"?(p(),d("div",$,[a("p",null,c(t(s)("auth.contactPref.subtitle")),1),S(b,{modelValue:t(e),"onUpdate:modelValue":u[1]||(u[1]=f=>C(e)?e.value=f:null),"alt-style":"",disabled:t(n)},{default:D(()=>[U(c(t(s)("auth.contactPref.email")),1)]),_:1},8,["modelValue","disabled"])])):_("",!0)])):_("",!0)}}});export{F as _};

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.