"use strict";(globalThis["webpackChunkadmin_panel_vue_webclient"]=globalThis["webpackChunkadmin_panel_vue_webclient"]||[]).push([[8590],{8590:(e,t,s)=>{s.r(t),s.d(t,{default:()=>_});var i=s(61758),a=s(29104);const l={class:"row q-mb-md"},u={class:"col-2 q-my-sm"},n={class:"col-5"};function r(e,t,s,r,d,o){const c=(0,i.g2)("q-input"),p=(0,i.gN)("t");return(0,i.uX)(),(0,i.CE)("div",l,[(0,i.bo)((0,i.Lk)("div",u,null,512),[[p,"COREWEBCLIENT.LABEL_EMAIL"]]),(0,i.Lk)("div",n,[(0,i.bF)(c,{outlined:"",dense:"","bg-color":"white",modelValue:d.publicId,"onUpdate:modelValue":t[0]||(t[0]=e=>d.publicId=e),ref:"publicId",disable:!s.createMode,onKeyup:(0,a.jR)(o.save,["enter"])},null,8,["modelValue","disable","onKeyup"])])])}var d=s(43436),o=s.n(d),c=s(38176),p=s(35118);const b={name:"EditUserMainData",props:{user:Object,createMode:Boolean},data(){return{publicId:""}},watch:{user(){this.populate()}},mounted(){this.populate()},methods:{getSaveParameters(){return{PublicId:this.createMode?this.publicId:this.user?.publicId}},hasChanges(){return this.publicId!==this.user?.publicId},revertChanges(){this.populate()},populate(){this.publicId=p.A.pString(this.user?.publicId)},isDataValid(){const e=o().trim(this.publicId);return""!==e||(c.A.showError(this.$t("ADMINPANELWEBCLIENT.ERROR_USER_NAME_EMPTY")),this.$refs.publicId.$el.focus(),!1)},save(){this.$emit("save")}}};var h=s(12807),I=s(39270),m=s(98582),E=s.n(m);const v=(0,h.A)(b,[["render",r]]),_=v;E()(b,"components",{QInput:I.A})}}]);