import{_ as V}from"./index.6c726fd2.js";import{C as b,D as F,F as x,I as D,w as h}from"./element-plus.8115766e.js";import{_ as B}from"./index.vue_vue_type_style_index_0_lang.bbf68320.js";import{c as E,d as g}from"./website.3175a18e.js";import{f as w}from"./index.637212e4.js";import{d as y,r as C,ag as k,o as c,c as A,a as l,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.66926594.js";import"./axios.2d915936.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.b9df525d.js";import"./index.d1e65413.js";import"./index.864bc580.js";import"./usePaging.52ce9b34.js";import"./index.8d2925c7.js";import"./index.vue_vue_type_script_setup_true_lang.23d9d5f1.js";import"./vue3-video-play.05975c53.js";import"./vuedraggable.a5db575d.js";import"./vue.de4be77f.js";import"./sortablejs.cd7e2c7e.js";import"./lodash.b68d77aa.js";import"./vue-router.5046cc50.js";import"./pinia.e85e8286.js";import"./vue-demi.bfae2336.js";import"./css-color-function.a8f9466d.js";import"./color.903ca10f.js";import"./clone.9d64bb7a.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.a96d99f2.js";import"./vue-clipboard3.91d4fd5f.js";import"./clipboard.c0a70c0c.js";import"./echarts.6ad8c478.js";import"./zrender.f91f2f01.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.0ab41b7b.js";const S={class:"xl:flex"},T=l("span",{class:"font-medium"},"\u670D\u52A1\u534F\u8BAE",-1),L=l("span",{class:"font-medium"},"\u9690\u79C1\u534F\u8BAE",-1),M=P("\u4FDD\u5B58"),Ue=y({__name:"protocol",setup(O){const e=C({privacy:{content:"",name:""},service:{content:"",name:""}}),r=async()=>{e.value=await E()},d=async()=>{await g(e.value),w.msgSuccess("\u64CD\u4F5C\u6210\u529F"),r()};return r(),(W,a)=>{const n=b,i=F,s=x,p=B,u=D,_=h,v=V,f=k("perms");return c(),A(N,null,[l("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{Ue as default};
