import{a0 as w,L as y,w as C,M as B,I as x,N as D}from"./element-plus.0a93cab1.js";import{d as F}from"./message.4152d099.js";import{_ as L}from"./edit.vue_vue_type_script_setup_true_lang.70472491.js";import{d as f,s as T,a0 as N,am as R,o,c as M,P as d,u,M as i,O as t,W as a,T as m}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.8ccde2ce.js";import"./lodash.a2abcd4b.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";import"./index.39ecea31.js";const S=f({name:"shortLetter"}),Et=f({...S,setup(V){const p=T(),e=N({loading:!1,lists:[]}),c=async()=>{try{e.loading=!0,e.lists=await F(),e.loading=!1}catch{e.loading=!1}},g=r=>{var s;(s=p.value)==null||s.open(r)};return c(),(r,s)=>{const n=y,_=w,h=C,E=B,v=x,b=R("perms"),k=D;return o(),M("div",null,[d((o(),i(v,{class:"!border-none",shadow:"never"},{default:t(()=>[a(E,{size:"large",data:u(e).lists},{default:t(()=>[a(n,{label:"\u77ED\u4FE1\u6E20\u9053",prop:"name","min-width":"120"}),a(n,{label:"\u72B6\u6001","min-width":"120"},{default:t(({row:l})=>[l.status==1?(o(),i(_,{key:0},{default:t(()=>[m("\u5F00\u542F")]),_:1})):(o(),i(_,{key:1,type:"danger"},{default:t(()=>[m("\u5173\u95ED")]),_:1}))]),_:1}),a(n,{label:"\u64CD\u4F5C","min-width":"120",fixed:"right"},{default:t(({row:l})=>[d((o(),i(h,{type:"primary",link:"",onClick:$=>g(l.type)},{default:t(()=>[m(" \u8BBE\u7F6E ")]),_:2},1032,["onClick"])),[[b,["notice.sms_config/setConfig"]]])]),_:1})]),_:1},8,["data"])]),_:1})),[[k,u(e).loading]]),a(L,{ref_key:"editRef",ref:p,onSuccess:c},null,512)])}}});export{Et as default};