import{_ as g}from"./BButton.vue_vue_type_script_setup_true_lang-D5Eg7-Zv-DDRCX2AG.js";import{_ as S,a as z}from"./BListGroupItem.vue_vue_type_script_setup_true_lang-J0Ydbiva-Cr65tDD4.js";import{_ as $}from"./BContainer.vue_vue_type_script_setup_true_lang-Bi1hGl0B-Bd4Gid1V.js";import{_ as F}from"./BRow.vue_vue_type_script_setup_true_lang-BDkBauhk-2kwIwZ0y.js";import{_ as b,c as u,o as i,w as e,g as C,b as n,a as o,t as a,d as y,F as w,r as B,n as M,i as k,e as v}from"./index-D02r7Zsc.js";import"./BSpinner.vue_vue_type_script_setup_true_lang-H1MzHypA-D8AXjJB0.js";import"./dom-DVb-f0ZG-Crdf0-mU.js";import"./useDefaults-DESCdb0p-CFLjYrdG.js";import"./useColorVariantClasses-ZDE19TZw-Cvu7SygP.js";import"./BLink.vue_vue_type_script_setup_true_lang-Ct47WhzE-DDPYis_D.js";import"./object-0ALvRU0O-3BORTTD-.js";import"./stringUtils-gJJ6T6UC-g5BZrMym.js";import"./index-C0p9vHHI-DoOEDIMw.js";import"./getClasses-CsgNQabU-zDOdZIGY.js";import"./useAlignment-Cw-9AVid-Db1FQC5G.js";const L={data:function(){return{settings:this.getConfig().settings,currentFontSize:null,settingCaptionFontSize:null,resetModal:{content:this.$tm("settingsList.resetModal"),headerBg:"danger",method:"reset",type:"confirmModal",start:!1}}},methods:{setCurrentFontSize(t){this.currentFontSize=t},getDefaultFontSize(){return this.getConfig().fontSize},setSettingCaptionFontSize(t){this.settingCaptionFontSize=t},async reset(){this.publish("showOverlay",!0),localStorage.clear(),await this.get("ws").logout(this.get("sessionId")),this.set("sessionId",""),this.$router.go(0),this.publish("showOverlay",!1)}},created:function(){this.setCurrentFontSize(this.getDefaultFontSize()),this.currentFontSize*=this.getConfig().smallerFontSize,this.setSettingCaptionFontSize(this.currentFontSize)}},I={class:"h3 title text-center text-secondary text-center mb-2"},D={"aria-hidden":"true",class:"text-third"};function N(t,r,V,O,P,c){const d=C("modal"),l=F,m=$,_=z,p=S,f=g;return i(),u(m,{fluid:"sm"},{default:e(()=>[n(d,{modalInfos:t.resetModal,onModal_reset:c.reset},null,8,["modalInfos","onModal_reset"]),o("h1",I,a(t.$t("menusLabels.settings.full")),1),n(p,null,{default:e(()=>[(i(!0),y(w,null,B(t.settings,(s,h)=>(i(),u(_,{"aria-label":t.$t(s.labelPath),class:"d-flex",key:h,to:s.name},{default:e(()=>[o("i",{"aria-hidden":"true",class:M(`bi bi-${s.icon} align-self-center`),style:{"font-size":"1.2rem"}},null,2),n(m,null,{default:e(()=>[n(l,null,{default:e(()=>[o("span",D,a(t.$t(s.labelPath)),1)]),_:2},1024),n(l,null,{default:e(()=>[o("span",{"aria-hidden":"true",style:k(`font-size: ${t.settingCaptionFontSize}em`)},a(s.caption),5)]),_:2},1024)]),_:2},1024)]),_:2},1032,["aria-label","to"]))),128))]),_:1}),n(f,{variant:"outline-danger",onClick:r[0]||(r[0]=s=>t.resetModal.start=!t.resetModal.start),class:"w-100 p-2 mt-4"},{default:e(()=>[v(a(t.$t("settingsList.resetButton")),1)]),_:1})]),_:1})}const Y=b(L,[["render",N]]);export{Y as default};
