System.register(["./utils-lib-legacy.js?v=1761009159","./index-legacy105.js?v=1761009159","./index-legacy115.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./column-legacy.js?v=1761009159","./useStore-legacy4.js?v=1761009159","./useController-legacy18.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159","./ace-legacy.js?v=1761009159","./index-legacy106.js?v=1761009159","./site-legacy.js?v=1761009159"],function(e,t){"use strict";var n,l,r,u,a,i,o,c,s,f,d,p,m,y,g,h,v,_,b,j,x,C,k,B,V,S,H,w,F,R,T,U,q,z,D,E,G,I,L,N,O;return{setters:[function(e){n=e.fO,l=e.bF,r=e.fP,u=e.ao,a=e.b,i=e.ap,o=e.$,c=e.j},function(e){s=e._},function(e){f=e.B},function(e){d=e.c,p=e.H,m=e.v,y=e.x,g=e.e,h=e.B,v=e.y,_=e.G,b=e.C,j=e.N,x=e.D,C=e.z,k=e.I,B=e.Q},function(e){V=e.a,S=e.b,H=e.u},function(e){w=e.u},function(e){F=e.u,R=e.i,T=e.f,U=e.g,q=e.a,z=e.e,D=e.j,E=e.h,G=e.b,I=e.s,L=e.c,N=e.d,O=e.k},null,null,null,null],execute:function(){var t={class:"h-full"},P={class:"p-[20px]"};e("default",d({__name:"redirect",setup:function(e){var d=a(),Q=w().siteType,$=F().isRefreshList,A=i([{label:"启用重定向规则",value:"start",event:O},{label:"停用重定向规则",value:"stop",event:O},{label:"删除重定向规则",value:"delete",event:O}]),J=n({request:R,columns:[V(),{label:"被重定向",render:function(e){var t;return e.errorpage?"404错误页面":"domain"===e.domainorpath?null===(t=l(e.redirectdomain,"array",[]))||void 0===t?void 0:t.join("、"):e.redirectpath}},{label:"重定向类型",prop:"domainorpath",render:function(e){return e.errorpage?"错误":"domain"===e.domainorpath?"域名":"路径"}},{label:"重定向到",render:function(e){return e.topath?e.topath:e.tourl}},S({prop:"type",event:T,data:["已停止","运行中"]}),H([{width:70,title:"配置文件",onClick:function(e){if(!e.type)return d.warn("请先启用重定向规则再查看配置文件");U(e)}},{title:"编辑",onClick:function(e){e.errorpage?q(e):z(e)}},{onClick:D,title:"删除"}])],extension:[r(),A,u($)]}),K=J.BtTable,M=J.BtRefresh,W=J.BtBatch;return function(e,n){var l=s,r=o,u=c,a=p("bt-loading");return m(),y("div",t,[g(l,null,{"header-left":h(function(){return[g(v(_),{type:"primary",onClick:n[0]||(n[0]=function(e){return v(z)()})},{default:h(function(){return n[6]||(n[6]=[b("添加重定向",-1)])}),_:1,__:[6]}),["php","html"].includes(v(Q))?(m(),j(v(_),{key:0,type:"default",onClick:n[1]||(n[1]=function(e){return v(q)()})},{default:h(function(){return n[7]||(n[7]=[b("404重定向",-1)])}),_:1,__:[7]})):x("",!0)]}),"header-right":h(function(){return[g(v(M))]}),content:h(function(){return[g(v(K),{"max-height":460})]}),"footer-left":h(function(){return[g(v(W))]}),_:1}),g(r,{class:"mt-2rem",options:v(E),"list-style":"disc"},null,8,["options"]),g(u,{title:"编辑配置文件",modelValue:v(N),"onUpdate:modelValue":n[5]||(n[5]=function(e){return B(N)?N.value=e:null}),area:54},{default:h(function(){return[C("div",P,[n[9]||(n[9]=b(" 提示：Ctrl+F 搜索关键字，Ctrl+S 保存，Ctrl+H 查找替换 ",-1)),k(g(v(f),{class:"!h-[36rem] my-[8px]",ref:"aceEditor",modelValue:v(G),"onUpdate:modelValue":n[2]||(n[2]=function(e){return B(G)?G.value=e:null}),onSave:n[3]||(n[3]=function(e){return v(I)()})},null,8,["modelValue"]),[[a,v(L)]]),g(v(_),{type:"primary",onClick:n[4]||(n[4]=function(e){return v(I)()})},{default:h(function(){return n[8]||(n[8]=[b("保存",-1)])}),_:1,__:[8]}),n[10]||(n[10]=C("ul",{class:"mt-[8px] leading-8 text-small list-disc ml-[20px]"},[C("li",null,"此处为该重定向的配置文件，若您不了解配置规则,请勿随意修改。")],-1))])]}),_:1},8,["modelValue"])])}}}))}}});
