import{d as c,u as p,H as v,o as b,k as _,a as N,y as l,x as s,I as t,af as x,ap as w,b as d,a4 as y,S as Q,U as r,a7 as k,V as i,W as S,K as V,Q as f}from"./vendor-nt8ldNfT.js";import{_ as h}from"./tailwind-Bkcu6GYy.js";const z=c({__name:"StarterVillage",setup(C){const u=p(),a=v({enabled:!1,coordinates:"",message:""});function g(){f.post("/Novicevillage.html",{addxinshoucun:"yes",gongnengkaiguan:a.enabled?"true":"false",zuobiao:a.coordinates,fasong:a.message}).then(n=>{var e;return u.success(((e=n.data)==null?void 0:e.msg)||"保存成功")}).catch(()=>u.error("保存失败"))}function m(){f.get("/Novicevillage.html").then(n=>{var o;const e=((o=n.data)==null?void 0:o.data)||{};a.enabled=String(e.gongnengkaiguan).toLowerCase()==="true",a.coordinates=e.xinshoucunzuobiao||"",a.message=e.fasongneirong||""}).catch(()=>u.error("加载失败"))}return b(m),(n,e)=>(N(),_(t(V),null,{default:l(()=>[s(t(x),{vertical:"",size:"large",class:"page-wrap"},{default:l(()=>[s(t(w),{type:"info",bordered:"",class:"theme-surface"},{default:l(()=>e[3]||(e[3]=[d(" 受腾讯风控影响，如需QQ群管问答和服务器查询详细信息功能。免费领取QQ群管请咨询大橘QQ1158395892 ")])),_:1}),s(t(y),{title:"新手村功能设置",bordered:"",class:"theme-surface"},{default:l(()=>[s(t(Q),{model:a,"label-placement":"left","label-width":"140"},{default:l(()=>[s(t(r),{label:"功能开关"},{default:l(()=>[s(t(k),{value:a.enabled,"onUpdate:value":e[0]||(e[0]=o=>a.enabled=o)},null,8,["value"])]),_:1}),s(t(r),{label:"新手村坐标 (一行一个)"},{default:l(()=>[s(t(i),{value:a.coordinates,"onUpdate:value":e[1]||(e[1]=o=>a.coordinates=o),type:"textarea",autosize:{minRows:4}},null,8,["value"])]),_:1}),s(t(r),{label:"发送内容/代码 (一行一个)"},{default:l(()=>[s(t(i),{value:a.message,"onUpdate:value":e[2]||(e[2]=o=>a.message=o),type:"textarea",autosize:{minRows:4}},null,8,["value"])]),_:1}),s(t(r),null,{default:l(()=>[s(t(S),{type:"primary",onClick:g},{default:l(()=>e[4]||(e[4]=[d("保存或修改")])),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})]),_:1}))}}),B=h(z,[["__scopeId","data-v-e8f5c2ba"]]);export{B as default};
