System.register(["./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./useController-legacy14.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159","./site-legacy.js?v=1761009159","./column-legacy.js?v=1761009159","./index-legacy106.js?v=1761009159","./validator-legacy.js?v=1761009159","./useStore-legacy4.js?v=1761009159"],function(e,l){"use strict";var t,n,o,r,u,a,i,d,c,s,p,f,m,y,h,g,b,_,x,V,v,j,w,k,T,U,C,F,I,$,z,H;return{setters:[function(e){t=e.k,n=e.ax,o=e.d,r=e.L,u=e.$},function(e){a=e.c,i=e.H,d=e.v,c=e.x,s=e.I,p=e.y,f=e.N,m=e.B,y=e.e,h=e.z,g=e.$,b=e.Q,_=e.ab,x=e.az,V=e.a9},function(e){v=e.o,j=e.f,w=e.u,k=e.t,T=e.s,U=e.a,C=e.h,F=e.b,I=e.c,$=e.d,z=e.e,H=e.g},null,null,null,null,null,null],execute:function(){var l={class:"p-[20px]"},L={class:"flex items-center"};e("default",a({__name:"add-url-proxy",setup:function(e,a){return(0,a.expose)({onConfirm:v}),function(e,a){var v=t,R=_,S=n,B=o,N=r,Q=x,q=V,A=u,D=i("bt-loading");return d(),c("div",l,[s((d(),f(q,{ref_key:"proxyFormRef",ref:I,model:p(w),rules:p($),"label-width":"100px",disabled:p(z)},{default:m(function(){return[y(R,{label:"代理目录",prop:"path"},{default:m(function(){return[y(v,{modelValue:p(w).path,"onUpdate:modelValue":a[0]||(a[0]=function(e){return p(w).path=e}),placeholder:"请输入代理目录，例如：/web",width:"42rem"},null,8,["modelValue"])]}),_:1}),y(R,{label:"目标",prop:"proxysite"},{default:m(function(){return[h("div",L,[y(R,null,{default:m(function(){return[y(S,{class:"!w-[16rem]",modelValue:p(w).targetType,"onUpdate:modelValue":a[1]||(a[1]=function(e){return p(w).targetType=e}),placeholder:"请选择",options:p(k),onChange:p(T)},null,8,["modelValue","options","onChange"])]}),_:1}),y(v,{modelValue:p(w).proxysite,"onUpdate:modelValue":a[2]||(a[2]=function(e){return p(w).proxysite=e}),placeholder:"http"===p(w).targetType?"请输入目标地址":"请选择sock文件",class:"!ml-[1rem]",width:"24rem",iconType:"http"!==p(w).targetType&&"folder",onFolder:p(U),onInput:p(C)},g({_:2},["http"!==p(w).targetType?{name:"append",fn:m(function(){return[y(N,{onClick:p(U)},{default:m(function(){return[y(B,{icon:"el-folder-opened",class:"cursor-pointer"})]}),_:1},8,["onClick"])]}),key:"0"}:void 0]),1032,["modelValue","placeholder","iconType","onFolder","onInput"])])]}),_:1}),y(R,{label:"发送域名(host)",prop:"todomain","label-width":"100px"},{default:m(function(){return[y(Q,{placement:"top-start",effect:"dark",title:"",content:"请求转发到后端服务器时的主机名，一般为$http_host，如果目标URL是域名，则需要改为域名",width:"400",visible:p(F),"onUpdate:visible":a[5]||(a[5]=function(e){return b(F)?F.value=e:null}),"trigger-keys":[],trigger:"focus"},{reference:m(function(){return[y(v,{modelValue:p(w).todomain,"onUpdate:modelValue":a[3]||(a[3]=function(e){return p(w).todomain=e}),onFocus:a[4]||(a[4]=function(e){return F.value=!0}),placeholder:"请输入发送域名",width:"42rem"},null,8,["modelValue"])]}),_:1},8,["visible"])]}),_:1}),y(R,{label:"备注"},{default:m(function(){return[y(v,{modelValue:p(w).ps,"onUpdate:modelValue":a[6]||(a[6]=function(e){return p(w).ps=e}),placeholder:"请输入备注,可为空",width:"42rem"},null,8,["modelValue"])]}),_:1})]}),_:1},8,["model","rules","disabled"])),[[D,p(j)]]),y(A,{options:p(H),class:"mt-2rem ml-[20px]"},null,8,["options"])])}}}))}}});
