import{j as b,b as g,g as r,h as S,L as h,M as V,m as x,a as e,w as u,f as n,o as P,l as w,t as G}from"./index-CTxlYqj4.js";import{p}from"./parameters-1TAbI5b7.js";import{P as A}from"./ParametersForm-CYThYAHD.js";import{V as T,a as N}from"./VToolbar-Cd2iSn8H.js";import{u as k}from"./global.store-C4iiNxy1.js";import{u as B}from"./parameters.store-BXTaWfO7.js";import"./HtmlEditor-DfoGrUHw.js";import"./VAvatar-x_79C0tA.js";import"./tag-Dx3OexMp.js";import"./VProgressCircular-ubzZW5PC.js";import"./forwardRefs-BSESyuUp.js";import"./ssrBoot-DGgZQEVC.js";import"./VTabs-DCb8kj6G.js";import"./VWindowItem-pE5PWxHf.js";import"./VChip-Def9BYoN.js";import"./VMenu-DTm7W1Hp.js";import"./VContainer-CC8lqRXa.js";/* empty css              */import"./VCard-DRptUN8Y.js";import"./VSwitch-HiyBjUWI.js";import"./VTextField-CWm47OUI.js";import"./VSelectionControl-Bdgm37Tl.js";import"./VSelect-tV4GZAtn.js";import"./VCheckboxBtn-xrhfoOlo.js";import"./VTextarea-Bry3a299.js";import"./VColorPicker-D7UlInpB.js";import"./colors-DoZdCu1D.js";import"./VPicker-F4Rx1F-m.js";import"./VSheet-BV83IblO.js";import"./admin-CjK02gmr.js";const E={__name:"ParametersView",setup(M){const{$gettext:c}=g(),f=k(),o=V(),d=B(),s=r([]),i=r({}),m=r(""),_=S(()=>c("Settings: "+m.value));function l(t){p.getGlobalApplicationStructure(t).then(a=>{s.value=a.data}),p.getGlobalApplication(t).then(a=>{i.value=a.data.params,m.value=a.data.label})}function v(t){f.fetchNotifications(),o.params.app==="imap_migration"&&(d.imapMigrationEnabled=t.enabled_imapmigration)}return h(o,t=>{l(t.params.app)}),l(o.params.app),(t,a)=>(P(),x("div",null,[e(T,{flat:""},{default:u(()=>[e(N,null,{default:u(()=>[w(G(_.value),1)]),_:1})]),_:1}),e(n(A),{app:t.$route.params.app,structure:s.value,values:i.value,"save-function":n(p).saveGlobalApplication,onSuccess:v},null,8,["app","structure","values","save-function"])]))}},lt=b(E,[["__scopeId","data-v-6ffadfb6"]]);export{lt as default};
