"use strict";(globalThis["webpackChunkadmin_panel_vue_webclient"]=globalThis["webpackChunkadmin_panel_vue_webclient"]||[]).push([[7900],{57900:(o,e,t)=>{t.r(e),t.d(e,{default:()=>q});var s=t(61758);const a={class:"q-pa-lg"},l={class:"row q-mb-md"},n={class:"col text-h5"},i={class:"row q-mb-md"},r={class:"col-2 q-mt-sm"},g={class:"col-5"},d={class:"row"},L={class:"col-2 q-mt-sm"},c={class:"col-5"},u={class:"q-pt-md text-right"};function b(o,e,t,b,h,E){const A=(0,s.g2)("q-input"),m=(0,s.g2)("q-card-section"),p=(0,s.g2)("q-card"),v=(0,s.g2)("q-btn"),B=(0,s.g2)("q-linear-progress"),_=(0,s.g2)("q-inner-loading"),N=(0,s.g2)("q-scroll-area"),T=(0,s.gN)("t");return(0,s.uX)(),(0,s.Wv)(N,{class:"full-height full-width"},{default:(0,s.k6)((()=>[(0,s.Lk)("div",a,[(0,s.Lk)("div",l,[(0,s.bo)((0,s.Lk)("div",n,null,512),[[T,"BRANDINGWEBCLIENT.HEADING_SETTINGS_TAB"]])]),(0,s.bF)(p,{flat:"",bordered:"",class:"card-edit-settings"},{default:(0,s.k6)((()=>[(0,s.bF)(m,null,{default:(0,s.k6)((()=>[(0,s.Lk)("div",i,[(0,s.bo)((0,s.Lk)("div",r,null,512),[[T,"BRANDINGWEBCLIENT.LOGIN_LOGO_URL_LABEL"]]),(0,s.Lk)("div",g,[(0,s.bF)(A,{outlined:"",dense:"","bg-color":"white",modelValue:h.loginLogoUrl,"onUpdate:modelValue":e[0]||(e[0]=o=>h.loginLogoUrl=o)},null,8,["modelValue"])])]),(0,s.Lk)("div",d,[(0,s.bo)((0,s.Lk)("div",L,null,512),[[T,"BRANDINGWEBCLIENT.TABSBAR_LOGO_URL_LABEL"]]),(0,s.Lk)("div",c,[(0,s.bF)(A,{outlined:"",dense:"","bg-color":"white",modelValue:h.tabsBarLogoUrl,"onUpdate:modelValue":e[1]||(e[1]=o=>h.tabsBarLogoUrl=o)},null,8,["modelValue"])])])])),_:1})])),_:1}),(0,s.Lk)("div",u,[(0,s.bF)(v,{unelevated:"","no-caps":"",dense:"",class:"q-px-sm",ripple:!1,color:"primary",label:o.$t("COREWEBCLIENT.ACTION_SAVE"),onClick:E.saveBrandingSettings},null,8,["label","onClick"])])]),(0,s.bF)(_,{style:{"justify-content":"flex-start"},showing:h.saving},{default:(0,s.k6)((()=>[(0,s.bF)(B,{query:""})])),_:1},8,["showing"])])),_:1})}var h=t(36720),E=t(38176),A=t(79134),m=t(85802);const p={name:"BrandingAdminSettings",data(){return{loginLogoUrl:"",tabsBarLogoUrl:"",saving:!1}},mounted(){this.saving=!1,this.populate()},beforeRouteLeave(o,e,t){this.$root.doBeforeRouteLeave(o,e,t)},methods:{hasChanges(){const o=m.A.getBrandingsSettings();return this.loginLogoUrl!==o.loginLogo||this.tabsBarLogoUrl!==o.tabsbarLogo},revertChanges(){this.populate()},populate(){const o=m.A.getBrandingsSettings();this.loginLogoUrl=o.loginLogo,this.tabsBarLogoUrl=o.tabsbarLogo},saveBrandingSettings(){if(!this.saving){this.saving=!0;const o={LoginLogo:this.loginLogoUrl,TabsbarLogo:this.tabsBarLogoUrl};A.A.sendRequest({moduleName:"BrandingWebclient",methodName:"UpdateSettings",parameters:o}).then((e=>{this.saving=!1,!0===e?(m.A.saveBrandingsSettings({loginLogo:o.LoginLogo,tabsbarLogo:o.TabsbarLogo}),this.populate(),E.A.showReport(this.$t("COREWEBCLIENT.REPORT_SETTINGS_UPDATE_SUCCESS"))):E.A.showError(this.$t("COREWEBCLIENT.ERROR_SAVING_SETTINGS_FAILED"))}),(o=>{this.saving=!1,E.A.showError(h.A.getTextFromResponse(o,this.$t("COREWEBCLIENT.ERROR_SAVING_SETTINGS_FAILED")))}))}}}};var v=t(12807),B=t(48958),_=t(23316),N=t(44189),T=t(39270),S=t(56384),I=t(39035),R=t(35859),C=t(98582),k=t.n(C);const U=(0,v.A)(p,[["render",b]]),q=U;k()(p,"components",{QScrollArea:B.A,QCard:_.A,QCardSection:N.A,QInput:T.A,QBtn:S.A,QInnerLoading:I.A,QLinearProgress:R.A})}}]);