import{c as e,o as a,r as l,v as s,x as t,z as o,e as m,B as r,y as i,ab as u,a9 as n}from"./base-lib.js?v=1761009159";import{P as d,ag as p}from"./utils-lib.js?v=1761009159";import{T as b}from"./useController3.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const c={class:"p-[2rem]"},f=e({__name:"index",setup(e,{expose:f}){const v=a({timeValue:"5分钟"}),_=l(!1),j=l();return f({onConfirm:async e=>{let a=v.timeValue.replaceAll("分钟",""),l=Math.floor(Date.now()/1e3)+60*parseInt(a);await j.value.validate(),await d({loading:_,request:b({time:l}),message:!0}),e()}}),(e,a)=>{const l=p,d=u,b=n;return s(),t("div",c,[a[1]||(a[1]=o("span",null,"检测到当前已启用【系统加固】，如需要继续操作，请选择临时关闭时间",-1)),m(b,{model:i(v),ref_key:"sysFixedForm",ref:j,disabled:i(_),class:"mt-[2rem]"},{default:r(()=>[m(d,{label:"临时放行："},{default:r(()=>[m(l,{type:"button",modelValue:i(v).timeValue,"onUpdate:modelValue":a[0]||(a[0]=e=>i(v).timeValue=e),options:[{label:"5分钟",value:"5分钟"},{label:"10分钟",value:"10分钟"},{label:"30分钟",value:"30分钟"},{label:"60分钟",value:"60分钟"}]},null,8,["modelValue"])]),_:1})]),_:1},8,["model","disabled"])])}}});export{f as default};
