import{e,_ as s}from"./utils-lib.js?v=1761009159";import{c as a,s as l,q as o,H as r,v as m,x as t,e as i,B as n,y as d,I as u,N as c,R as f,z as p,C as _,an as v,ab as g,a9 as h}from"./base-lib.js?v=1761009159";import{_ as b}from"./validator.js?v=1761009159";import{H as j}from"./store3.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./store4.js?v=1761009159";const C={class:"p-[2.4rem] give-dialog"},w={class:"mt-1.6rem ml-2.4rem"},x={class:"list-disc"},V={class:"flex items-center"},k=s(a({__name:"alarm",setup(s,{expose:a}){const k=j(),{alarmRef:R,pushMsgRef:y,rules:H,msgForm:I,checkedLoad:M}=l(k);return o(async()=>{k.renderPushConfig()}),a({onCancel:k.onCancel,onConfirm:k.onConfirm}),(s,a)=>{const l=v,o=g,j=b,U=h,q=e,z=r("bt-loading");return m(),t("div",C,[i(U,{ref_key:"pushMsgRef",ref:y,model:d(I),"label-width":"80px",rules:d(H),onSubmit:a[2]||(a[2]=f(()=>{},["prevent"]))},{default:n(()=>[i(o,{label:"更新提醒",prop:"switch"},{default:n(()=>[i(l,{modelValue:d(I).switch,"onUpdate:modelValue":a[0]||(a[0]=e=>d(I).switch=e),name:"switch"},null,8,["modelValue"])]),_:1}),u((m(),c(o,{label:"告警方式",prop:"give"},{default:n(()=>[i(j,{ref_key:"alarmRef",ref:R,modelValue:d(I).give,"onUpdate:modelValue":a[1]||(a[1]=e=>d(I).give=e),class:"!w-[28rem]",limit:["sms"]},null,8,["modelValue"])]),_:1})),[[z,d(M)]])]),_:1},8,["model","rules"]),p("div",w,[p("ul",x,[p("li",null,[p("div",V,[a[4]||(a[4]=_("点击安装后状态未更新，尝试点击【",-1)),i(q,{onClick:d(k).refreshAlarmEvent},{default:n(()=>a[3]||(a[3]=[_("手动刷新",-1)])),_:1,__:[3]},8,["onClick"]),a[5]||(a[5]=_("】",-1))])])])])])}}}),[["__scopeId","data-v-3ff51317"]]);export{k as default};
