1import{o as m,g as p}from"./primevue-ca313794.js";import{_ as u}from"./index-cc1a661b.js";import{h as g,d as h,l as f,x as _,f as o,t as n,s as i}from"./vendor-ea0043bb.js";import"./mapbox-v3-eadefc84.js";import"./geo-1391ac6a.js";import"./mapbox-addons-be198bf9.js";import"./editor-b65e0429.js";import"./pdf-7415fc80.js";const k={name:"settings",data(){return{language:null,darkTheme:null,languageOptions:[{title:"Romana",locale:"ro"},{title:"English",locale:"en"}],metricsOptions:["Metrics","Imperial"],unit:"Metrics"}},mounted(){this.darkTheme=document.querySelector("html").classList.contains("theme-dark"),this.language=this.languageOptions.find(e=>e.locale===this.$root.$i18n.locale)},methods:{setLanguage(){this.$root.$i18n.locale=this.language.locale},toggleDarkMode(){const e=document.querySelector("html");this.darkTheme?e.classList.add("dark"):e.classList.remove("dark")}}},V={class:"grid p-fluid"},C={class:"col-12 sm:col-6 md:col-4 field"},L={for:"selectLanguage"},v={class:"col-12 sm:col-6 md:col-4 field"},w={for:"selectUnits"},U={class:"grid p-fluid"},b={class:"col-12 sm:col-6 md:col-4 field"},D={class:"flex justify-content-between p-inputtext"};function O(e,l,S,T,t,a){const d=m,r=p,c=g("CardView");return h(),f(c,{"hide-footer":"","hide-header":""},{"main-content":_(()=>[o("div",V,[o("div",C,[o("label",L,n(e.$t("Language")),1),i(d,{id:"selectLanguage",modelValue:t.language,"onUpdate:modelValue":l[0]||(l[0]=s=>t.language=s),options:t.languageOptions,placeholder:e.$t("Choose option..."),optionLabel:"title",onChange:a.setLanguage},null,8,["modelValue","options","placeholder","onChange"])]),o("div",v,[o("label",w,n(e.$t("Units")),1),i(d,{id:"selectUnits",modelValue:t.unit,"onUpdate:modelValue":l[1]||(l[1]=s=>t.unit=s),options:t.metricsOptions,placeholder:e.$t("Choose option...")},null,8,["modelValue","options","placeholder"])])]),o("div",U,[o("div",b,[o("div",D,[o("label",null,n(e.$t("Dark mode")),1),i(r,{modelValue:t.darkTheme,"onUpdate:modelValue":l[2]||(l[2]=s=>t.darkTheme=s),onChange:a.toggleDarkMode},null,8,["modelValue","onChange"])])])])]),_:1})}const j=u(k,[["render",O]]);export{j as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.