import{_ as b}from"./index-BwK8zDrs.js";import{B as x,C as w,D as y,H as g,h as E}from"./element-plus-z3MwpXC9.js";import{_ as B}from"./index.vue_vue_type_style_index_0_lang-DsQD7fjY.js";import{c as C,d as U}from"./website-1s5vKmBb.js";import{d as k,r as D,an as F,o as c,c as N,a as i,V as e,M as r,u as m,O as P,L as h,S as I,U as A}from"./@vue-TMcuEboY.js";import"./index-DXEGVToZ.js";import"./nprogress-Cgf5DU8x.js";import"./balanced-match-mNcR6oh4.js";import"./vue-router-D4MxfuQi.js";import"./pinia-ebUeA1L2.js";import"./axios-C-n2IhIP.js";import"./lodash-BtPWuHkK.js";import"./@vueuse-BQYVjZ5N.js";import"./css-color-function-rJvg8h-6.js";import"./color-B0v57BL7.js";import"./clone-CuIhj1wH.js";import"./color-convert-BGgJB5UM.js";import"./color-name-BQ5IbGbl.js";import"./color-string-BhgG7-8u.js";import"./ms-CzQ2E3wO.js";import"./@element-plus-DRBc1Xzw.js";import"./vue-clipboard3-8CNoFg4V.js";import"./clipboard-Dch_ozqB.js";import"./echarts-BR_QmBtV.js";import"./tslib-BDyQ-Jie.js";import"./zrender-B-CeXLwU.js";import"./highlight.js-D5uP1KGk.js";import"./@highlightjs-KJi31KWJ.js";import"./lodash-es-R-kYiKr_.js";import"./async-validator-DKvM95Vc.js";import"./dayjs-CMfar2R3.js";import"./@ctrl-r5W6hzzQ.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@popperjs-D9SI2xQl.js";import"./@wangeditor-BvvNszpm.js";import"./picker-Cx07Sp9S.js";import"./index-CdmO5-Ss.js";import"./index-CUrZWbP0.js";import"./index.vue_vue_type_script_setup_true_lang-Bd2lff9j.js";import"./index-BhjDDGVa.js";import"./index-DywnEBie.js";import"./index.vue_vue_type_script_setup_true_lang-CMdP8z-B.js";import"./usePaging-DFi_nJOG.js";import"./vue3-video-play-xg7gp0Bu.js";import"./vuedraggable-OYPBN08G.js";import"./vue-CHxGqOme.js";import"./sortablejs-DdgKbxid.js";const G={class:"xl:flex"},Pt=k({__name:"protocol",setup(H){const o=D({service_title:"",service_content:"",privacy_title:"",privacy_content:""}),n=async()=>{o.value=await C()},u=async()=>{await U({...o.value}),n()};return n(),(L,t)=>{const a=x,p=w,s=y,d=B,_=g,f=E,v=b,V=F("perms");return c(),N(A,null,[i("div",G,[e(_,{class:"!border-none flex-1 xl:mr-4 mb-4",shadow:"never"},{header:r(()=>t[4]||(t[4]=[i("span",{class:"font-medium"},"服务协议",-1)])),default:r(()=>[e(s,{model:m(o),"label-width":"80px"},{default:r(()=>[e(p,{label:"协议名称"},{default:r(()=>[e(a,{modelValue:m(o).service_title,"onUpdate:modelValue":t[0]||(t[0]=l=>m(o).service_title=l)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),e(d,{class:"mb-10",modelValue:m(o).service_content,"onUpdate:modelValue":t[1]||(t[1]=l=>m(o).service_content=l),height:"500"},null,8,["modelValue"])]),_:1}),e(_,{class:"!border-none flex-1 mb-4",shadow:"never"},{header:r(()=>t[5]||(t[5]=[i("span",{class:"font-medium"},"隐私协议",-1)])),default:r(()=>[e(s,{model:m(o),"label-width":"80px"},{default:r(()=>[e(p,{label:"协议名称"},{default:r(()=>[e(a,{modelValue:m(o).privacy_title,"onUpdate:modelValue":t[2]||(t[2]=l=>m(o).privacy_title=l)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),e(d,{class:"mb-10",modelValue:m(o).privacy_content,"onUpdate:modelValue":t[3]||(t[3]=l=>m(o).privacy_content=l),height:"500"},null,8,["modelValue"])]),_:1})]),P((c(),h(v,null,{default:r(()=>[e(f,{type:"primary",onClick:u},{default:r(()=>t[6]||(t[6]=[I("保存")])),_:1})]),_:1})),[[V,["setting.web.web_setting/setAgreement"]]])],64)}}});export{Pt as default};
