import{I as f}from"./IdnodeConfigForm-BL6DOswR.js";import{d as p,u as g,an as h,a as C,ab as w,c as S,o as s,P as E,g as b,h as t,e as y,t as k,q as z,_ as I}from"./index-D92x6h1h.js";import"./sliders-horizontal-Am8f4Xsv.js";const v=["disabled"],D=p({__name:"ConfigGeneralBaseView",setup(A){const{t:a}=g(),o=h(),n=C(),i=w(),c=S();async function r(){try{await i.start(),await o.push({name:"wizard-hello"})}catch(e){c.error(e instanceof Error?e.message:String(e),{summary:a("Could not start wizard")})}}const _=["language_ui"],d=["uilevel","theme_ui","page_size_ui","uilevel_nochange","ui_quicktips","info_area","chname_num","chname_src","dvr_show_seconds","date_mask","default_tab"],u=["language_ui","theme_ui"];return(e,B)=>(s(),E(f,{"load-endpoint":"config/load","help-page":"class/config","save-endpoint":"config/save","reload-fields":_,"access-refetch-fields":d,"mandatory-fields":u},{actions:b(({loading:l,saving:m})=>[t(n).has("admin")?(s(),y("button",{key:0,type:"button",class:"config-action-btn",disabled:l||m,onClick:r},k(t(a)("Start wizard")),9,v)):z("",!0)]),_:1}))}}),R=I(D,[["__scopeId","data-v-5282b873"]]);export{R as default};
