import{aA as h}from"./index.17037962789732.js";import"./index.1703796278973303.js";import{a as o}from"./comm.1703796278973.js";import{n as k}from"./config.17037962789732.js";import{d as b,k as l,m as w,p as x,o as r,c as C,a as B,z as n,D as f,x as g,F as M,h as N,u as m,A as S}from"./vue.1703796278973.js";import{_ as T}from"./_plugin-vue_export-helper.1703796278973.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./system.1703796278973.js";import"./index.170379627897332.js";import"./index.170379627897315.js";import"./index.170379627897333.js";import"./index.170379627897334.js";import"./default.1703796278973.js";import"./permission.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";const W=["onClick"],z={class:"notify-type-item-image"},A=["src"],D={class:"notify-type-item-title"},F=b({__name:"NotifyWay",props:{value:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:value","change"],setup(d,{emit:u}){const s=d,t=new Map;t.set("dingTalk",o("/notice/dingtalk.png")),t.set("weixin",o("/notice/wechat.png")),t.set("email",o("/notice/email.png")),t.set("voice",o("/notice/voice.png")),t.set("sms",o("/notice/sms.png")),t.set("webhook",o("/notice/webhook.png"));const p=l(!1),c=l(""),_=l([]);w(()=>s.value,e=>{c.value=e},{deep:!0,immediate:!0});const y=e=>{s.disabled||(u("update:value",e),u("change",e))};return x(()=>{p.value=!0,k.queryMessageType().then(e=>{e.status===200&&(_.value=e.result.map(i=>({label:i.name,value:i.id,iconUrl:t.get(i.id)}))),p.value=!1}),c.value=s.value}),(e,i)=>{const v=h;return r(),C(v,{spinning:m(p)},{default:B(()=>[n("div",{class:f(["notify-type-warp",{disabled:d.disabled}])},[(r(!0),g(M,null,N(m(_),a=>(r(),g("div",{key:a.id,class:f(["notify-type-item",{active:m(c)===a.value}]),onClick:I=>y(a.value)},[n("div",z,[n("img",{width:106,src:a.iconUrl},null,8,A)]),n("div",D,S(a.label),1)],10,W))),128))],2)]),_:1},8,["spinning"])}}});const ae=T(F,[["__scopeId","data-v-b06202c8"]]);export{ae as default};
