(function(t){function a(a){for(var s,r,n=a[0],l=a[1],_=a[2],d=0,u=[];d0?t.form.USR_REPLACED_BY=e[0].value:t.form.USR_REPLACED_BY=""})).catch((function(t){})).finally((function(){}))},getAvailableCalendars:function(){var t=this,a=new FormData;return a.append("action","availableCalendars"),b.a.post(this.$root.baseUrl()+"users/usersAjax",a).then((function(a){var e=[];for(var s in a.data)e.push({value:a.data[s].CALENDAR_UID,text:a.data[s].CALENDAR_NAME});t.availableCalendars=e})).catch((function(t){})).finally((function(){}))},getTimeZoneList:function(){var t=this,a=new FormData;return a.append("action","timeZoneParameters"),b.a.post(this.$root.baseUrl()+"users/usersAjax",a).then((function(a){var e=[];for(var s in a.data.timeZoneList)e.push({value:a.data.timeZoneList[s].value,text:a.data.timeZoneList[s].text});t.timeZoneList=e,t.form.USR_TIME_ZONE=a.data.systemTimeZone})).catch((function(t){})).finally((function(){}))},getLanguagesList:function(){var t=this,a=new FormData;return a.append("action","languagesList"),b.a.post(this.$root.baseUrl()+"users/usersAjax",a).then((function(a){var e=[];for(var s in a.data)e.push({value:a.data[s].LAN_ID,text:a.data[s].LAN_NAME});t.languagesList=e})).catch((function(t){})).finally((function(){}))},getDefaultMainMenuOptionList:function(){var t=this,a=new FormData;return a.append("action","defaultMainMenuOptionList"),b.a.post(this.$root.baseUrl()+"users/usersAjax",a).then((function(a){var e=[];for(var s in a.data)e.push({value:a.data[s].id,text:a.data[s].name});t.defaultMainMenuOptionList=e})).catch((function(t){})).finally((function(){}))},getDefaultCasesMenuOptionList:function(){var t=this,a=new FormData;return a.append("action","defaultCasesMenuOptionList"),b.a.post(this.$root.baseUrl()+"users/usersAjax",a).then((function(a){var e=[{value:"",text:t.$root.translation("ID_SELECT")}];for(var s in a.data)e.push({value:a.data[s].id,text:a.data[s].name});t.defaultCasesMenuOptionList=e})).catch((function(t){})).finally((function(){}))},getRolesList:function(){var t=this,a=new FormData;return a.append("action","rolesList"),b.a.post(this.$root.baseUrl()+"users/usersAjax",a).then((function(a){var e=[];for(var s in a.data)e.push({value:a.data[s].ROL_UID,text:a.data[s].ROL_CODE});t.rolesList=e})).catch((function(t){})).finally((function(){}))},getUserExtendedAttributesList:function(){var t=this,a=new FormData;return a.append("option","userExtendedAttributesList"),a.append("roleCode",this.form.USR_ROLE),b.a.post(this.$root.baseUrl()+"userExtendedAttributes/index",a).then((function(a){t.userExtendedAttributesList=a.data.data})).catch((function(t){})).finally((function(){}))},getDefaultDueDate:function(){var t=new Date,a=""+(t.getMonth()+1),e=""+t.getDate(),s=t.getFullYear();return a.length<2&&(a="0"+a),e.length<2&&(e="0"+e),[s+1,a,e].join("-")},avatarClick:function(){var t=document.createElement("form"),a=document.createElement("input");a.type="file",t.appendChild(a),t.style.display="none",document.body.appendChild(t);var e=this;a.onchange=function(){var t=a.files[0];if(!1!==/(\.jpg|\.jpeg|\.png|\.gif)$/i.test(t.name)){e.form.USR_PHOTO=t;var s=new FileReader;s.onload=function(t){e.urlImage=t.target.result},s.readAsDataURL(t)}else e.$bvModal.msgBoxOk(e.$root.translation("ID_INVALID_EXTENSION"),{title:" ",hideHeaderClose:!1,okTitle:e.$root.translation("ID_OK"),okVariant:"success",okOnly:!0}).then((function(t){})).catch((function(t){}))},a.click()},changeRole:function(){this.getUserExtendedAttributesList()},changeDefaultMainMenuOption:function(){var t="PM_CASES"===this.form.PREF_DEFAULT_MENUSELECTED;this.switchChangeDefaultMainMenuOption=!t,t&&""!==this.form.PREF_DEFAULT_CASES_MENUSELECTED&&(this.memoryChangeDefaultMainMenuOption=this.form.PREF_DEFAULT_CASES_MENUSELECTED),this.form.PREF_DEFAULT_CASES_MENUSELECTED=t?this.memoryChangeDefaultMainMenuOption:""}}},A=p,T=Object(c["a"])(A,_,S,!1,null,"51bdcfe6",null),h=T.exports,v={name:"app",components:{personalInformation:h},data:function(){return{views:{personalInformation:!0}}},methods:{showView:function(t){for(var a in this.views)this.views[a]=!1;this.views[t]=!0}}},D=v,I=(e("034f"),Object(c["a"])(D,n,l,!1,null,null,null)),N=I.exports;s["default"].config.productionTip=!1,s["default"].use(o["a"]),s["default"].use(i["a"]),s["default"].use(r["ClientTable"],{},!1,"bootstrap4",{}),s["default"].use(r["ServerTable"],{},!1,"bootstrap4",{}),new s["default"]({render:function(t){return t(N)},methods:{translation:function(t,a){if("TRANSLATIONS"in window&&t in window.TRANSLATIONS&&(t=window.TRANSLATIONS[t],void 0!=a&&"length"in a))for(var e=0;e