(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[25],{db16:function(s,a,t){"use strict";t.r(a);var e=function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("q-scroll-area",{staticClass:"full-height full-width"},[t("div",{staticClass:"q-pa-lg "},[t("div",{staticClass:"row q-mb-md"},[t("div",{directives:[{name:"t",rawName:"v-t",value:"MAILMASTERPASSWORD.HEADING_SETTINGS_TAB",expression:"'MAILMASTERPASSWORD.HEADING_SETTINGS_TAB'"}],staticClass:"col text-h5"})]),t("q-card",{staticClass:"card-edit-settings",attrs:{flat:"",bordered:""}},[t("q-card-section",[t("div",{staticClass:"row"},[t("div",{directives:[{name:"t",rawName:"v-t",value:"MAILMASTERPASSWORD.LABEL_MASTER_PASSWORD",expression:"'MAILMASTERPASSWORD.LABEL_MASTER_PASSWORD'"}],staticClass:"col-2 q-mt-sm"}),t("div",{staticClass:"col-5"},[t("q-input",{attrs:{outlined:"",dense:"","bg-color":"white",type:"password",autocomplete:"new-password"},model:{value:s.password,callback:function(a){s.password=a},expression:"password"}})],1)])])],1),t("div",{staticClass:"q-pt-md text-right"},[t("q-btn",{staticClass:"q-px-sm",attrs:{unelevated:"","no-caps":"",dense:"",ripple:!1,color:"primary",label:s.$t("COREWEBCLIENT.ACTION_SAVE")},on:{click:s.save}})],1)],1),t("q-inner-loading",{staticStyle:{"justify-content":"flex-start"},attrs:{showing:s.saving}},[t("q-linear-progress",{attrs:{query:""}})],1)],1)},r=[],i=t("4245"),n=t("21ac"),o=t("e539"),d="     ",c={name:"MasterPasswordAdminSettings",data:function(){return{saving:!1,password:d,savingPass:d}},beforeRouteLeave:function(s,a,t){this.doBeforeRouteLeave(s,a,t)},methods:{hasChanges:function(){return this.password!==this.savingPass},revertChanges:function(){this.password=this.savingPass},save:function(){var s=this;if(!this.saving){this.saving=!0;var a={MasterPassword:this.password};o["a"].sendRequest({moduleName:"MailMasterPassword",methodName:"UpdateSettings",parameters:a}).then((function(a){s.savingPass=s.password,s.saving=!1,!0===a?n["a"].showReport(s.$t("COREWEBCLIENT.REPORT_SETTINGS_UPDATE_SUCCESS")):n["a"].showError(s.$t("COREWEBCLIENT.ERROR_SAVING_SETTINGS_FAILED"))}),(function(a){s.saving=!1,n["a"].showError(i["a"].getTextFromResponse(a,s.$t("COREWEBCLIENT.ERROR_SAVING_SETTINGS_FAILED")))}))}}}},l=c,S=t("2877"),E=t("4983"),p=t("f09f"),u=t("a370"),v=t("27f9"),A=t("9c40"),w=t("74f7"),R=t("6b1d"),h=t("eebe"),T=t.n(h),f=Object(S["a"])(l,e,r,!1,null,"7df3db08",null);a["default"]=f.exports;T()(f,"components",{QScrollArea:E["a"],QCard:p["a"],QCardSection:u["a"],QInput:v["a"],QBtn:A["a"],QInnerLoading:w["a"],QLinearProgress:R["a"]})}}]);