"use strict";(globalThis["webpackChunkaurora_corporate_mobile_ui"]||=[]).push([[4677],{15437(e,t,i){i.r(t),i.d(t,{default:()=>k});var n=i(61758);function a(e,t,i,a,s,o){const r=(0,n.g2)("SettingsHeader"),c=(0,n.g2)("router-view"),d=(0,n.g2)("MainLayout");return(0,n.uX)(),(0,n.Wv)(d,null,{header:(0,n.k6)(()=>[(0,n.bF)(r)]),default:(0,n.k6)(()=>[(0,n.bF)(c)]),_:1})}var s=i(51985),o=i(58790);function r(e,t,i,a,s,r){const c=(0,n.g2)("AppHeaderButton"),d=(0,n.g2)("q-card-actions"),l=(0,n.g2)("q-toolbar");return(0,n.uX)(),(0,n.Wv)(l,{class:"text-black flex justify-center",style:{height:"55px","font-size":"16px",padding:"0"}},{default:(0,n.k6)(()=>[(0,n.bF)(d,{align:"left",class:"col-1"},{default:(0,n.k6)(()=>[r.showBackAction?((0,n.uX)(),(0,n.Wv)(c,{key:0,"data-test-id":"settings-back",icon:"chevron_left",onClick:r.onPreviousPath},null,8,["onClick"])):(0,n.Q3)("",!0)]),_:1}),(0,n.Lk)("div",{"data-test-id":"settings-header-title",class:(0,o.C4)([r.headerAction?"col-9":"col-10","text-center header-title"])},(0,o.v_)(r.headerText),3),r.headerAction?((0,n.uX)(),(0,n.Wv)(d,{key:0,align:"right",class:"col-2 settings-header__actions"},{default:(0,n.k6)(()=>[(0,n.bF)(c,{"data-test-id":"settings-header-action",variant:"text",label:r.headerActionLabel,loading:s.isHeaderActionSaving,disable:s.isHeaderActionDisabled,onClick:r.onHeaderAction},null,8,["label","loading","disable","onClick"])]),_:1})):((0,n.uX)(),(0,n.Wv)(d,{key:1,align:"right",class:"col-1"}))]),_:1})}var c=i(7106),d=i(12821);const l={name:"SettingsHeader",components:{AppHeaderButton:d.A},data(){return{settingsHeaderTitles:[],settingsHeaderActions:[],isHeaderActionSaving:!1,isHeaderActionDisabled:!1}},watch:{"$route.fullPath"(){this.isHeaderActionDisabled=!1,this.isHeaderActionSaving=!1}},computed:{showBackAction(){const e=this.$route.fullPath.split("/");return e.length>2},headerText(){const e=this.$route.matched.length;if(e>0){const t=this.$route.matched[e-1],i=this.settingsHeaderTitles?.find(e=>e.settingsPath===t.path);if(i)return i.settingsTitle}return this.$t("COREWEBCLIENT.HEADING_SETTINGS_TABNAME")},headerAction(){const e=this.$route.matched.length;if(e>0){const t=this.$route.matched[e-1];return this.settingsHeaderActions?.find(e=>e.settingsPath===t.path)}return null},headerActionLabel(){return this.headerAction?this.headerAction.labelLangConst?this.$t(this.headerAction.labelLangConst):this.headerAction.label||"":""}},mounted(){const e={};c.A.$emit("SettingsMobileWebclient::GetSettingsHeaderTitles",e),this.settingsHeaderTitles=e.settingsHeaderTitles;const t={};c.A.$emit("SettingsMobileWebclient::GetSettingsHeaderActions",t),this.settingsHeaderActions=t.settingsHeaderActions,c.A.$on("SettingsMobileWebclient::SetHeaderActionSaving",this.setHeaderActionSaving),c.A.$on("SettingsMobileWebclient::SetHeaderActionDisabled",this.setHeaderActionDisabled)},beforeUnmount(){c.A.$off("SettingsMobileWebclient::SetHeaderActionSaving",this.setHeaderActionSaving),c.A.$off("SettingsMobileWebclient::SetHeaderActionDisabled",this.setHeaderActionDisabled)},methods:{onPreviousPath(){this.$router.back()},onHeaderAction(){this.headerAction?.eventName&&c.A.$emit(this.headerAction.eventName)},setHeaderActionSaving(e){this.isHeaderActionSaving=!!e},setHeaderActionDisabled(e){this.isHeaderActionDisabled=!!e}}};var h=i(12807),g=i(79351),A=i(16334),u=i(98582),b=i.n(u);const H=(0,h.A)(l,[["render",r],["__scopeId","data-v-3705d691"]]),v=H;b()(l,"components",{QToolbar:g.A,QCardActions:A.A});const S={name:"Settings",components:{MainLayout:s.A,SettingsHeader:v}},f=(0,h.A)(S,[["render",a]]),k=f}}]);