import{ax as e,k as s,$ as a}from"./utils-lib.js?v=1761009159";import{c as l,w as o,q as d,H as r,v as t,x as p,I as m,y as i,N as n,B as u,e as c,z as f,J as _,C as b,ab as x,G as y,a9 as g}from"./base-lib.js?v=1761009159";import{_ as j}from"./index103.js?v=1761009159";import{C as w,h as V,D as h,f as v,E as C,F as k,G as L,H,I,e as U,J as F}from"./index473.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./site.js?v=1761009159";import"./column.js?v=1761009159";import"./index106.js?v=1761009159";import"./validator.js?v=1761009159";import"./useStore4.js?v=1761009159";const G={class:"p-[16px]"},J={class:"mt-[1.6rem]"},q={class:"mt-[1.6rem]"},z={class:"ml-[20px]"},B=l({__name:"log",setup:(l,{expose:B})=>(o(()=>V.value.proxy_log,e=>{w(e)}),d(()=>{w(V.value.proxy_log)}),B({onConfirm:h}),(l,o)=>{const d=e,w=x,V=j,B=s,D=y,E=g,N=a,R=r("bt-loading");return t(),p("div",G,[m((t(),n(E,{ref_key:"logFormRef",ref:H,class:"h-[48rem]",model:i(C),"label-width":"60px",rules:i(I),disabled:i(U)},{default:u(()=>[c(w,{label:"日志",prop:"type"},{default:u(()=>[c(d,{class:"!w-[24rem]",modelValue:i(C).type,"onUpdate:modelValue":o[0]||(o[0]=e=>i(C).type=e),options:i(k),placeholder:"请选择"},null,8,["modelValue","options"])]),_:1}),m(f("div",J,[c(w,{label:"访问日志",prop:"accessLog"},{default:u(()=>[c(V,{modelValue:i(C).accessLog,"onUpdate:modelValue":o[1]||(o[1]=e=>i(C).accessLog=e),icon:"el-folder-opened",onIconClick:o[2]||(o[2]=e=>i(L)("accessLog")),placeholder:"请选择或输入目录，例如：/www/wwwlogs",width:"35rem"},null,8,["modelValue"])]),_:1})],512),[[_,"file"===i(C).type]]),m(f("div",q,[c(w,{label:"接收地址",prop:"address"},{default:u(()=>[c(B,{modelValue:i(C).address,"onUpdate:modelValue":o[3]||(o[3]=e=>i(C).address=e),placeholder:"接收地址，如：202.96.128.86:9204",width:"24rem"},null,8,["modelValue"])]),_:1})],512),[[_,"rsyslog"===i(C).type]]),c(w,{class:"mt-[1.6rem]",label:" "},{default:u(()=>[c(D,{type:"primary",onClick:i(h)},{default:u(()=>o[4]||(o[4]=[b("保存",-1)])),_:1,__:[4]},8,["onClick"])]),_:1})]),_:1},8,["model","rules","disabled"])),[[R,i(v)]]),f("div",z,[c(N,{options:i(F)},null,8,["options"])])])})});export{B as default};
