PageSourceSearch

https://www.jumbo.com/_nuxt/DTQFnDPW.js

js jumbo.com collected 2026-10-01 10:24:59 UTC 2,335 bytes, 1 lines download raw bytes

1import{d as F,b as D,aV as U,p as j,m as s,q as f,s as r,j as t,g as v,v as a,i as l,x as P,y as o,al as S,G as T,D as q,Q as b,$ as B,eC as G,n as R,P as E}from"./DQM39uDX.js";import{N as I}from"./DugClDj8.js";import{N as M}from"./CG5zB9pO.js";import{a as W}from"./CwB3kcnM.js";import"./BhAJREfB.js";import"./BOaUDKrY.js";import"./jvVNpq2q.js";import"./DZiXZHzj.js";import"./B6maBhbO.js";import"./DlCjT8p7.js";const $={class:"content"},z={class:"header"},A={class:"form-group firstname-input"},H={class:"buttons"},L=F({__name:"index",setup(Q){const{isAuthenticated:g,fetchCustomerDetails:y,customerId:_,redirectToLogout:N}=D(),k=U(),{sourceUrl:w,redirectTo:C}=k.currentRoute.value.query;j(()=>g?.value,async i=>{i&&await y()?.load()},{immediate:!0});const d=s(null),n=s({value:"",error:""}),x=s(!1),u=s(!1),c=s(!1),V=async()=>{await R(`${C||w||"/"}`,{replace:!0})},p=async()=>{x.value=!0,d.value.isValid();const i={id:_.value,data:{firstName:n.value.value}},{success:e,error:m,data:h}=W.safeParse(i);m||e&&(u.value=!0,await G().customerUpdateFirstname(h).then(async()=>{await V()}).catch(()=>{c.value=!0}).finally(()=>{u.value=!1}))};return(i,e)=>(v(),f(t(B),{class:"page-wrapper"},{default:r(()=>[a("div",$,[a("div",z,[l(t(P),{h1:"",styled:"h3",strong:""},{default:r(()=>e[1]||(e[1]=[o("Wat is je voornaam?")])),_:1}),e[2]||(e[2]=a("p",{class:"subtitle"}," We hebben je voornaam nodig om je profiel compleet te maken en verder te gaan. ",-1))]),a("form",{class:"form",novalidate:"",onSubmit:S(p,["prevent"])},[t(c)?(v(),f(t(I),{key:0,class:"server-error",type:"prominent"},{default:r(()=>e[3]||(e[3]=[o("Er is iets misgegaan."),a("br",null,null,-1),o("Probeer opnieuw.")])),_:1})):T("",!0),a("div",A,[l(M,{ref_key:"firstNameField",ref:d,name:t(n),"onUpdate:name":e[0]||(e[0]=m=>q(n)?n.value=m:null),"field-name":"firstname",label:"Voornaam","data-testid":"registration-firstname-input",required:""},null,8,["name"])]),a("div",H,[l(t(b),{class:"button",primary:"",block:"",type:"submit","in-progress":t(u),onClick:p},{default:r(()=>e[4]||(e[4]=[o("Gegevens opslaan")])),_:1},8,["in-progress"]),l(t(b),{class:"button",secondary:"",block:"",type:"button",onClick:t(N)},{default:r(()=>e[5]||(e[5]=[o("Ga verder zonder account")])),_:1},8,["onClick"])])],32)])]),_:1}))}}),re=E(L,[["__scopeId","data-v-7b962f51"]]);export{re 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.