import{r as e,u as a,s as n,h as t,o as s,v as i,b as l,d as r,a as o,W as c,t as u,ag as d}from"./index-BhrLSE9x.js";import{b as p}from"./el-overlay-C6ddMYf0.js";const g={class:"dialog-footer",style:{"text-align":"center"}},m={__name:"index",setup(m,{expose:v}){const b=e(!1),f=a(),{globalSwitchConfigInfo:M}=n(f),x=t((()=>{const e={maintenance:{}};return e.maintenance={isRegisterMaintenanceEnabled:M.value.isRegisterMaintenanceEnabled,registerMaintenanceTips:M.value.registerMaintenanceTips},e}));return v({toggle(){x.value.maintenance.isRegisterMaintenanceEnabled&&(b.value=!b.value)},isMaintence:()=>x.value.maintenance.isRegisterMaintenanceEnabled}),(e,a)=>{const n=d,t=p;return s(),i(t,{class:"register-maintenance",title:"友情提示","append-to-body":"",center:"",modelValue:b.value,"onUpdate:modelValue":a[1]||(a[1]=e=>b.value=e),width:"300px"},{footer:l((()=>[r("div",g,[o(n,{style:{width:"100%","margin-top":"20px"},type:"primary",onClick:a[0]||(a[0]=e=>b.value=!1)},{default:l((()=>a[2]||(a[2]=[c("确认")]))),_:1})])])),default:l((()=>[r("span",null,u(x.value.maintenance.registerMaintenanceTips),1)])),_:1},8,["modelValue"])}}};export{m as _};
