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