PageSourceSearch

https://taybatravel.be/_nuxt/DcW1hkpm.js

js taybatravel.be collected 2026-10-08 01:47:37 UTC 3,027 bytes, 2 lines download raw bytes

1import{A as e}from"./CMX09OL4.js";import{A as a}from"./BRGbsWpy.js";import{U as s}from"./DZ1KcsSq.js";import{U as l}from"./oJaYwhNW.js";import{u as o}from"./CNVI-hND.js";import{l as r,X as t,c as m,r as u,O as i,E as d,q as n,D as p,v as c,i as v,B as f,x,$ as y}from"./Lx7M_2Ho.js";import"./C0YsWDIX.js";import"./B0pCmiST.js";import"./xXx1z2je.js";import"./BaTDUuY7.js";import"./tdA-GtxG.js";import"./CJzTGDY3.js";import"./DKr-Bh8B.js";const j={class:"max-w-3xl mx-auto py-4 sm:py-10 px-3 sm:px-6 lg:px-0"},V={class:"bg-white rounded-xl sm:rounded-2xl border border-gray-200 p-4 sm:p-6 space-y-4 sm:space-y-6"},b={class:"space-y-4"},g={class:"pt-4 sm:pt-6 border-t border-gray-200"},w={class:"space-y-3 sm:space-y-4"},h={class:"flex flex-col-reverse sm:flex-row gap-2 sm:gap-3 pt-2 sm:pt-4"},U=r({__name:"profile",setup(r){const U=t(),_=m(()=>U.user),{show:A}=o(),C=u(_.value?.name||""),E=u(_.value?.email||""),k=u(""),I=u(""),P=u("");function L(){y("/admin")}async function M(){if(I.value||P.value){if(I.value!==P.value)return void A("Les mots de passe ne correspondent pas.",{variant:"error"});try{await U.changePassword(k.value,I.value)}catch(e){return void A("Impossible de changer le mot de passe.",{variant:"error"})}}try{await U.updateProfile({name:C.value,email:E.value}),A("Profil mis à jour.",{variant:"success",duration:1800,delay:20}),setTimeout(()=>y("/admin"),700)}catch(e){A("Impossible de mettre à jour le profil.",{variant:"error"})}}return(o,r)=>(n(),i(e,null,{default:d(()=>[p(a,{title:"Modifier le profil",description:"Gérer les informations de votre compte administrateur"}),c("div",j,[c("div",V,[c("div",b,[r[5]||(r[5]=c("h3",{class:"text-[13px] sm:text-sm font-medium text-gray-700"}," Informations du compte ",-1)),p(l,{modelValue:f(C),"onUpdate:modelValue":r[0]||(r[0]=e=>v(C)?C.value=e:null),label:"Nom complet"},null,8,["modelValue"]),p(l,{modelValue:f(E),"onUpdate:modelValue":r[1]||(r[1]=e=>v(E)?E.value=e:null),label:"Adresse e-mail"},null,8,["modelValue"])]),c("div",g,[r[6]||(r[6]=c("h3",{class:"text-[13px] sm:text-sm font-medium text-gray-700 mb-3 sm:mb-4"}," Changer le mot de passe ",-1)),c("div",w,[p(l,{modelValue:f(k),"onUpdate:modelValue":r[2]||(r[2]=e=>v(k)?k.value=e:null),label:"Mot de passe actuel",type:"password"},null,8,["modelValue"]),p(l,{modelValue:f(I),"onUpdate:modelValue":r[3]||(r[3]=e=>v(I)?I.value=e:null),label:"Nouveau mot de passe",type:"password"},null,8,["modelValue"]),p(l,{modelValue:f(P),"onUpdate:modelValue":r[4]||(r[4]=e=>v(P)?P.value=e:null),label:"Confirmer le nouveau mot de passe",type:"password"},null,8,["modelValue"])])]),c("div",h,[p(s,{variant:"outline",onClick:L,class:"w-full sm:w-auto"},{default:d(()=>[...r[7]||(r[7]=[x(" Annuler ",-1)])]),_:1}),p(s,{variant:"primary",onClick:M,class:"w-full sm:w-auto"},{default:d(()=>[...r[8]||(r[8]=[c("span",{class:"hidden sm:inline"},"Enregistrer les modifications",-1),c("span",{class:"sm:hidden"},"Enregistrer",-1)])]),_:1})])])])]),_:1}))}});export{U as default};
2//# sourceMappingURL=DcW1hkpm.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.