import{s as k,h as v}from"./index-BxIwIJfy.js";import{H as y}from"./HubParametres-D-qBzawB.js";import d from"./DocumentsBloques-B0xvgkD_.js";import _ from"./ImportationDonnees-BoLd9TU3.js";import{s,G as i}from"./hubParametres-CRtonVfL.js";import{b as m,k as p,l as D,v as z,p as P,a as u,y as w}from"./vue-core-Di3IuVqe.js";import"./primevue-CfIk0_DY.js";import"./cjs-helpers-psZwOBky.js";import"./vue-cal-DKMVGERa.js";import"./moment-BeHQNF8T.js";import"./export-files-DFMiSRgA.js";const A={__name:"Parametres",setup(x){const f=w(()=>{const r=k.state.moduleActif;if(r===2){const o=[...s.filter(e=>e.group==="compta"),{separator:!0,group:"compta"},...s.filter(e=>e.group==="facturation")];return i.filter(e=>e.key!=="facturation").map(e=>({key:e.key,label:e.key==="compta"?v("Données"):e.label,zone:e.zone,flat:e.flat,sections:e.key==="compta"?o:s.filter(b=>b.group===e.key)}))}const t=r===1?{facturation:"donnees"}:{},a=o=>t[o]||o;return i.filter(o=>!t[o.key]).map(o=>({key:o.key,label:o.label,zone:o.zone,flat:o.flat,sections:s.filter(e=>a(e.group)===o.key)}))}),l=u(!1),n=u(!1),c=r=>{r==="docs"?l.value=!0:r==="import"&&(n.value=!0)};return(r,t)=>(m(),p(y,{groupes:f.value,"hub-id":"Parametres",onDialog:c},{default:D(()=>[z(d,{visible:l.value,"onUpdate:visible":t[0]||(t[0]=a=>l.value=a)},null,8,["visible"]),n.value?(m(),p(_,{key:0,onClose:t[1]||(t[1]=a=>n.value=!1)})):P("",!0)]),_:1},8,["groupes"]))}};export{A as default};
