import{o as i,c as l,w as n,u as e,g as a,b as s,a as o,d as u,e as _,h as m}from"./app-SC54XQDl.js";import{i as p,c as d}from"./app-Ba7ZqSpq.js";import{_ as f}from"./app-Cft_lrsr.js";import{_ as h}from"./app-DFulsyXy.js";import{D as g}from"./app-ZeVDYyDS.js";import{_ as v}from"./app-FlPLZh9D.js";import{_ as x}from"./app-DWUwCFNm.js";import{_ as C}from"./app-rIYFLdeU.js";import"./app-qhR41k1m.js";import"./app-CS3AUTAk.js";import"./app-CCkWSX4Q.js";import"./app-Dhl-Bw0H.js";import"./app-BjSCO7rC.js";import"./app-DZaelcLs.js";import"./app-PPG0ZS4d.js";import"./app-CNHjdV6U.js";import"./app-B9xxzP2y.js";import"./app-C28obFWS.js";import"./app-CkINxBL9.js";import"./app--Lj8zATS.js";import"./app-Ch8j4za4.js";import"./app-C2mBgI5Z.js";function y(){p(this),this.success=this.$NotifyReloadSuccess("保存成功")}const S={key:0},$=["value"],N=["value"],O=o("td",null,"启用gRPC",-1),R=o("p",{class:"comment"},"选中后，表示启用当前网站的gRPC反向代理功能；在启用之前，请确保源站支持gRPC。不启用gRPC时当前网站会自动恢复为普通网站。",-1),V={key:1},Y={__name:"index",setup(k){const t=d(new y);return(w,r)=>(i(),l(f,{ctx:e(t)},{default:n(()=>[e(t).featureIsOn?(i(),a("div",S,[s(h,{action:"$",onSuccess:e(t).success},{default:n(()=>[o("input",{type:"hidden",name:"serverId",value:e(t).serverId},null,8,$),o("input",{type:"hidden",name:"grpcJSON",value:JSON.stringify(e(t).config)},null,8,N),s(g,null,{default:n(()=>[o("tbody",null,[o("tr",null,[O,o("td",null,[s(v,{modelValue:e(t).config.isOn,"onUpdate:modelValue":r[0]||(r[0]=c=>e(t).config.isOn=c)},null,8,["modelValue"]),R])])])]),_:1}),u(s(x,null,null,512),[[_,!e(t).isShared]])]),_:1},8,["onSuccess"])])):m("",!0),e(t).featureIsOn?m("",!0):(i(),a("div",V,[s(C)]))]),_:1},8,["ctx"]))}};export{Y as default};
