import{k as a,$ as e,j as l,_ as s}from"./utils-lib.js?v=1761009159";import{c as o,q as m,v as t,x as d,y as n,z as i,e as r,B as p,C as u,D as c,Q as _,an as f,G as V,b1 as b,ab as x,a9 as v}from"./base-lib.js?v=1761009159";import{g as j,w as C,n as h,h as y,d as k,e as w,s as g,f as D,j as U,k as W,l as I,p as L}from"./index453.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./site.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./useStore4.js?v=1761009159";import"./cataluge-setting.js?v=1761009159";import"./index115.js?v=1761009159";import"./ace.js?v=1761009159";import"./index103.js?v=1761009159";import"./useController6.js?v=1761009159";const z={class:"p-[12px]"},A={key:0},B={class:"formItem"},H={class:"formItem"},T={class:"formItem"},$={key:0},q={class:"formItem"},F={class:"formItem"},G={class:"formItem"},M={key:1},P={class:"p-[20px]"},Q=s(o({__name:"nginx-web-dav",setup:(s,{expose:o})=>(m(j),o({init:j}),(s,o)=>{const m=f,j=V,Q=b,S=a,E=e,J=x,K=v,N=l;return t(),d("div",z,[n(C)?(t(),d("div",A,[i("div",B,[o[10]||(o[10]=i("span",{class:"formLabel"},"WebDav状态",-1)),r(m,{class:"mr-[12px]",modelValue:n(h).status,"onUpdate:modelValue":o[0]||(o[0]=a=>n(h).status=a),onChange:n(y)},null,8,["modelValue","onChange"]),r(j,{type:"default",onClick:n(k)},{default:p(()=>o[9]||(o[9]=[u("删除WebDav",-1)])),_:1,__:[9]},8,["onClick"])]),r(Q),i("div",H,[o[11]||(o[11]=i("span",{class:"formLabel"},"域名",-1)),r(S,{class:"mr-[12px]",disabled:"",modelValue:n(h).domain,"onUpdate:modelValue":o[1]||(o[1]=a=>n(h).domain=a),width:"20rem"},null,8,["modelValue"])]),i("div",T,[o[12]||(o[12]=i("span",{class:"formLabel"},"auth状态",-1)),r(m,{class:"mr-[12px]",modelValue:n(h).auth,"onUpdate:modelValue":o[2]||(o[2]=a=>n(h).auth=a),onChange:n(w)},null,8,["modelValue","onChange"])]),n(h).auth?(t(),d("div",$,[i("div",q,[o[13]||(o[13]=i("span",{class:"formLabel"},"用户名",-1)),r(S,{class:"mr-[12px] !w-[20rem]",modelValue:n(h).user,"onUpdate:modelValue":o[3]||(o[3]=a=>n(h).user=a)},null,8,["modelValue"])]),i("div",F,[o[14]||(o[14]=i("span",{class:"formLabel"},"密码",-1)),r(S,{class:"mr-[12px] !w-[20rem]",modelValue:n(h).pass,"onUpdate:modelValue":o[4]||(o[4]=a=>n(h).pass=a)},null,8,["modelValue"])]),r(j,{type:"primary",onClick:n(g)},{default:p(()=>o[15]||(o[15]=[u("保存",-1)])),_:1,__:[15]},8,["onClick"])])):c("",!0),r(Q),i("div",G,[o[17]||(o[17]=i("span",{class:"formLabel"},"最大上传文件大小",-1)),r(S,{class:"mr-12px",modelValue:n(h).client_max_body_size,"onUpdate:modelValue":o[5]||(o[5]=a=>n(h).client_max_body_size=a),width:"20rem"},{append:p(()=>o[16]||(o[16]=[u(" MB ",-1)])),_:1},8,["modelValue"])]),r(j,{type:"primary",onClick:n(D)},{default:p(()=>o[18]||(o[18]=[u("保存",-1)])),_:1,__:[18]},8,["onClick"]),r(E,{class:"mt-2rem","list-style":"disc",options:[{content:"设置用户名和密码时，请注意特殊符号的中文和英文版本是不同的。特殊符号包括: !, @, #, $, %, ^, &, *, -, _ 等"}]})])):(t(),d("div",M,[r(j,{type:"primary",onClick:o[6]||(o[6]=a=>U.value=!0)},{default:p(()=>o[19]||(o[19]=[u("创建WebDav",-1)])),_:1,__:[19]}),o[21]||(o[21]=i("br",null,null,-1)),o[22]||(o[22]=i("p",{class:"mt-[20px]"},"WebDAV是一种用于在Web服务器上进行文件管理和协作的扩展协议。",-1)),o[23]||(o[23]=i("p",null,"WebDAV允许用户通过HTTP协议对远程服务器上的文件和目录进行读写操作。它提供了类似于本地文件系统的操作方式，使用户能够通过WebDAV客户端访问远程服务器上的文件",-1)),r(N,{title:"创建WebDav",modelValue:n(U),"onUpdate:modelValue":o[8]||(o[8]=a=>_(U)?U.value=a:null),area:42,showFooter:"",onCancel:n(I),onConfirm:n(L)},{default:p(()=>[i("div",P,[r(K,{model:n(W)},{default:p(()=>[r(J,{label:"域名"},{default:p(()=>[r(S,{modelValue:n(W).domain,"onUpdate:modelValue":o[7]||(o[7]=a=>n(W).domain=a),placeholder:"请输入域名",width:"22rem"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),o[20]||(o[20]=i("ul",{class:"mt-[12px] leading-8 text-small list-disc ml-[20px]"},[i("li",null,"域名格式为 www.domain.com:88,如未传端口信息,默认为80")],-1))])]),_:1},8,["modelValue","onCancel","onConfirm"])]))])})}),[["__scopeId","data-v-eec62bc6"]]);export{Q as default};
