import{_ as V}from"./index.2a3cc40c.js";import{C as b,D as F,F as x,I as D,w as h}from"./element-plus.fa1aa32c.js";import{_ as B}from"./index.vue_vue_type_style_index_0_lang.1a40d3db.js";import{c as E,d as g}from"./website.c930d15f.js";import{f as w}from"./index.0abf9e5c.js";import{d as y,r as C,ag as k,o as c,c as A,a as r,V as o,M as t,O as U,L as I,W as N,T as P}from"./@vue.cab01781.js";import"./@vueuse.724ed0af.js";import"./@element-plus.92b4185f.js";import"./lodash-es.29c53eac.js";import"./dayjs.22a46fd8.js";import"./axios.8058589d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@wangeditor.988960a0.js";import"./picker.9777ec45.js";import"./index.082aefea.js";import"./index.a2d4596a.js";import"./usePaging.c00588f1.js";import"./index.a5935337.js";import"./index.8930a171.js";import"./index.vue_vue_type_script_setup_true_lang.2ded5aed.js";import"./vue3-video-play.05975c53.js";import"./vuedraggable.5917840d.js";import"./vue.a15b7233.js";import"./sortablejs.c69601cb.js";import"./lodash.bbe6f09f.js";import"./vue-router.5046cc50.js";import"./pinia.e85e8286.js";import"./vue-demi.bfae2336.js";import"./css-color-function.5bd363c0.js";import"./color.232115c1.js";import"./clone.8f44c0eb.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.404eaa9c.js";import"./vue-clipboard3.19ab9072.js";import"./clipboard.6fb7c109.js";import"./echarts.6ad8c478.js";import"./zrender.f91f2f01.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.0ab41b7b.js";const S={class:"xl:flex"},T=r("span",{class:"font-medium"},"\u670D\u52A1\u534F\u8BAE",-1),L=r("span",{class:"font-medium"},"\u9690\u79C1\u534F\u8BAE",-1),M=P("\u4FDD\u5B58"),Ie=y({__name:"protocol",setup(O){const e=C({privacy:{content:"",name:""},service:{content:"",name:""}}),l=async()=>{e.value=await E()},d=async()=>{await g(e.value),w.msgSuccess("\u64CD\u4F5C\u6210\u529F"),l()};return l(),(W,a)=>{const n=b,i=F,s=x,p=B,u=D,_=h,v=V,f=k("perms");return c(),A(N,null,[r("div",S,[o(u,{class:"!border-none flex-1 xl:mr-4 mb-4",shadow:"never"},{header:t(()=>[T]),default:t(()=>[o(s,{model:e.value,"label-width":"80px"},{default:t(()=>[o(i,{label:"\u534F\u8BAE\u540D\u79F0"},{default:t(()=>[o(n,{modelValue:e.value.service.name,"onUpdate:modelValue":a[0]||(a[0]=m=>e.value.service.name=m)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),o(p,{class:"mb-10",modelValue:e.value.service.content,"onUpdate:modelValue":a[1]||(a[1]=m=>e.value.service.content=m),height:"500"},null,8,["modelValue"])]),_:1}),o(u,{class:"!border-none flex-1 mb-4",shadow:"never"},{header:t(()=>[L]),default:t(()=>[o(s,{model:e.value,"label-width":"80px"},{default:t(()=>[o(i,{label:"\u534F\u8BAE\u540D\u79F0"},{default:t(()=>[o(n,{modelValue:e.value.privacy.name,"onUpdate:modelValue":a[2]||(a[2]=m=>e.value.privacy.name=m)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),o(p,{class:"mb-10",modelValue:e.value.privacy.content,"onUpdate:modelValue":a[3]||(a[3]=m=>e.value.privacy.content=m),height:"500"},null,8,["modelValue"])]),_:1})]),U((c(),I(v,null,{default:t(()=>[o(_,{type:"primary",onClick:d},{default:t(()=>[M]),_:1})]),_:1})),[[f,["setting:protocol:save"]]])],64)}}});export{Ie as default};
