"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./main-BB7fFseo.cjs"),d=l=>(e.pushScopeId("data-v-3c0afbdb"),l=l(),e.popScopeId(),l),r={class:"panel-box"},v=d(()=>e.createBaseVNode("div",{class:"box-title"},"新数据微信自动提醒",-1)),_={class:"box-row"},p={class:"form"},m={class:"box-row"},b=d(()=>e.createBaseVNode("span",{class:"label"}," 提醒模式 ",-1)),f={class:"form"},V={class:"box-row"},B=d(()=>e.createBaseVNode("span",{class:"label"}," 夜间免打扰（晚11点~早7点不提醒） ",-1)),g={class:"form"},h={class:"box-row"},N=e.defineComponent({__name:"MessagePush",setup(l){const n=e.ref(e.FormSetting.value.details.notice_mode),c=e.ref(e.FormSetting.value.details.no_disturb),s=e.computed({get:()=>e.FormSetting.value.details.auto_notice,set:a=>{e.FormSetting.value.details.auto_notice=a,e.updateSetting()}}),u=async()=>{e.FormSetting.value.details.notice_mode=n.value,e.FormSetting.value.details.no_disturb=c.value,await e.updateSetting()&&e.message.success("保存设置成功")},i=a=>{a&&e.globalInject.postCollection("editor_form_set_pushmessage_wechatreminder")};return(a,o)=>(e.openBlock(),e.createElementBlock("section",null,[e.createBaseVNode("div",r,[v,e.createBaseVNode("div",_,[e.createBaseVNode("div",p,[e.createVNode(e.unref(e.ElSwitch),{modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=t=>s.value=t),"active-text":s.value===1?"已开启":"已关闭","active-value":1,"inactive-value":0,onChange:i},null,8,["modelValue","active-text"])])]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("div",m,[b,e.createBaseVNode("div",f,[e.createVNode(e.unref(e.ElSelect),{class:"action-btn-select",modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=t=>n.value=t)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(e.noticeModeOptions),t=>(e.openBlock(),e.createBlock(e.unref(e.ElOption),{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),e.createBaseVNode("div",V,[B,e.createBaseVNode("div",g,[e.createVNode(e.unref(e.ElSelect),{class:"action-btn-select",modelValue:c.value,"onUpdate:modelValue":o[2]||(o[2]=t=>c.value=t)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(e.noDisturbOptions),t=>(e.openBlock(),e.createBlock(e.unref(e.ElOption),{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),e.createBaseVNode("div",h,[e.createVNode(e.unref(e.ElButton),{class:"button",type:"primary",onClick:u},{default:e.withCtx(()=>[e.createTextVNode(" 保存设置 ")]),_:1})])],512),[[e.vShow,s.value===1]])])]))}}),S=e._export_sfc(N,[["__scopeId","data-v-3c0afbdb"]]);exports.default=S;
