PageSourceSearch

https://protecod.com/dist/assets/PersonalDetails.6fb67aa3.js

js protecod.com collected 2026-09-26 07:02:28 UTC 2,423 bytes, 2 lines download raw bytes

1import{o as n,c as u,a as r,d as l,b as d,t as m,S as p,aq as g}from"./app.a816cb64.js";import{a as c}from"./axios.f1f32898.js";import{n as i}from"./notification.1528931b.js";import{E as f}from"./event-bus.8f912ae3.js";import{L as h}from"./LoadingOverlay.03494e6c.js";import{_ as o}from"./TextField.5877dd14.js";import"./plugin-vue_export-helper.21dcd24c.js";import"./Base.857045cd.js";import"./XMarkIcon.85e7adf4.js";const y={class:"grid grid-cols-1 sm:grid-cols-6 items-start gap-x-3 gap-y-5"},N={class:"flex gap-4 items-center justify-end"},b={type:"submit",class:"button is-primary text-xs py-2 px-4"},v={name:"PersonalDetails",props:{propsUser:null},data(){return{loading:!1,compact:!0,user:{id:"",firstName:"",lastName:"",selectedLanguage:""},currentUser:null,languages:[{label:"Hungarian",value:"hu-HU"},{label:"English",value:"en-US"}]}},computed:{payload(){return{userId:this.user.id,firstName:this.user.firstName,lastName:this.user.lastName,fields:{selectedLanguage:this.user.selectedLanguage}}}},methods:{submit(){this.loading=!0;let t=this.user.selectedLanguage!==this.currentUser.selectedLanguage;c.post(window.endpoints.users.save,this.payload,{headers:{"X-CSRF-Token":window.csrfToken}}).then(e=>{i({title:"Saved successfully!",message:t?"Updating settings...":"Settings saved successfully.",type:"success"}),f.$emit("user:updated",this.payload)}).catch(e=>{i({title:"An error occurred while saving.",message:e.response.data.message,type:"error"})}).finally(()=>{if(t){g.global.locale.value=this.user.selectedLanguage,window.location.reload();return}this.loading=!1})}},mounted(){this.user=JSON.parse(this.propsUser),this.currentUser=JSON.parse(this.propsUser)}},O=Object.assign(v,{setup(t){return(e,s)=>(n(),u("form",{class:"w-full py-2 space-y-4",onSubmit:s[3]||(s[3]=p((...a)=>e.submit&&e.submit(...a),["prevent"]))},[r("div",y,[l(o,{class:"sm:col-span-3",label:"Last Name",type:"text",handle:"lastName",modelValue:e.user.lastName,"onUpdate:modelValue":s[0]||(s[0]=a=>e.user.lastName=a),required:!0},null,8,["modelValue"]),l(o,{class:"sm:col-span-3",label:"First Name",type:"text",handle:"firstName",modelValue:e.user.firstName,"onUpdate:modelValue":s[1]||(s[1]=a=>e.user.firstName=a),required:!0},null,8,["modelValue"]),d("",!0)]),r("div",N,[r("button",b,m(e.$t("Save")),1)]),l(h,{loading:e.loading},null,8,["loading"])],32))}});export{O as default};
2//# sourceMappingURL=PersonalDetails.6fb67aa3.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.