import{a7 as w,P as y,w as C,Q as B,J as x,R as D}from"./element-plus.ff90c99c.js";import{d as F}from"./message.fb25802d.js";import{_ as R}from"./edit.vue_vue_type_script_setup_true_lang.909110d8.js";import{d as f,s as L,$ as T,aq as $,o as e,c as N,R as d,u,P as r,Q as t,W as i,U as l}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./index.87cea444.js";import"./lodash.3e731b89.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";import"./index.000b2a9c.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";const P=f({name:"shortLetter"}),Ct=f({...P,setup(Q){const p=L(),o=T({loading:!1,lists:[]}),c=async()=>{try{o.loading=!0,o.lists=await F(),o.loading=!1}catch{o.loading=!1}},g=a=>{var s;(s=p.value)==null||s.open(a)};return c(),(a,s)=>{const m=y,_=w,h=C,E=B,v=x,b=$("perms"),k=D;return e(),N("div",null,[d((e(),r(v,{class:"!border-none",shadow:"never"},{default:t(()=>[i(E,{size:"large",data:u(o).lists},{default:t(()=>[i(m,{label:"\u77ED\u4FE1\u6E20\u9053",prop:"name","min-width":"120"}),i(m,{label:"\u72B6\u6001","min-width":"120"},{default:t(({row:n})=>[n.status==1?(e(),r(_,{key:0},{default:t(()=>[l("\u5F00\u542F")]),_:1})):(e(),r(_,{key:1,type:"danger"},{default:t(()=>[l("\u5173\u95ED")]),_:1}))]),_:1}),i(m,{label:"\u64CD\u4F5C","min-width":"120",fixed:"right"},{default:t(({row:n})=>[d((e(),r(h,{type:"primary",link:"",onClick:S=>g(n.type)},{default:t(()=>[l(" \u8BBE\u7F6E ")]),_:2},1032,["onClick"])),[[b,["notice.sms_config/setConfig"]]])]),_:1})]),_:1},8,["data"])]),_:1})),[[k,u(o).loading]]),i(R,{ref_key:"editRef",ref:p,onSuccess:c},null,512)])}}});export{Ct as default};