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"],function(e,t){"use strict";var n,l,r,i,u,a,o,c,s,f,d,p,m,h,y,v,g,x,b,_,j,k,C,B,V,S,E,F,T,w,H,R,U,q,z,D,G,I,L,N,O,P,Q;return{setters:[function(e){n=e.fO,l=e.bF,r=e.fP,i=e.ao,u=e.ap,a=e.$,o=e.j,c=e.b},function(e){s=e._},function(e){f=e.B},function(e){d=e.c,p=e.H,m=e.v,h=e.x,y=e.y,v=e.F,g=e.e,x=e.B,b=e.G,_=e.C,j=e.N,k=e.D,C=e.z,B=e.I,V=e.Q},function(e){S=e.a,E=e.b,F=e.u},function(e){T=e.u,w=e.S},function(e){H=e.u,R=e.i,U=e.e,q=e.a,z=e.h,D=e.c,G=e.b,I=e.s,L=e.d,N=e.f,O=e.g,P=e.j,Q=e.k}],execute:function(){var t={class:"h-full"},$={key:1,class:"bg-light flex items-center justify-center h-full",style:{"min-height":"600px"}},A={class:"bg-lighter px-[48px] py-[16px] text-default flex"},J={class:"p-[20px]"};e("_",d({__name:"index",setup:function(e,d){var K=d.expose,M=c(),W=T(),X=W.isBindExtranet,Y=W.siteType,Z=w().jumpTabEvent,ee=H().isRefreshList,te=u([{label:"启用重定向规则",value:"start",event:Q},{label:"停用重定向规则",value:"stop",event:Q},{label:"删除重定向规则",value:"delete",event:Q}]),ne=n({request:R,columns:[S(),{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}},E({prop:"type",event:N,data:["已停止","运行中"]}),F([{width:70,title:"配置文件",onClick:function(e){if(!e.type)return M.warn("请先启用重定向规则再查看配置文件");O(e)}},{title:"编辑",onClick:function(e){e.errorpage?q(e):U(e)}},{onClick:P,title:"删除"}])],extension:[r(),te,i(ee)]}),le=ne.BtTable,re=ne.BtRefresh,ie=ne.BtBatch;return K({init:ne.refresh}),function(e,n){var l=s,r=a,i=o,u=p("bt-loading");return m(),h("div",t,[y(X)?(m(),h(v,{key:0},[g(l,null,{"header-left":x(function(){return[g(y(b),{type:"primary",onClick:n[0]||(n[0]=function(e){return y(U)()})},{default:x(function(){return n[7]||(n[7]=[_("添加重定向",-1)])}),_:1,__:[7]}),["php","html"].includes(y(Y))?(m(),j(y(b),{key:0,type:"default",onClick:n[1]||(n[1]=function(e){return y(q)()})},{default:x(function(){return n[8]||(n[8]=[_("404重定向",-1)])}),_:1,__:[8]})):k("",!0)]}),"header-right":x(function(){return[g(y(re))]}),content:x(function(){return[g(y(le),{"max-height":460})]}),"footer-left":x(function(){return[g(y(ie))]}),_:1}),g(r,{class:"mt-2rem",options:y(z),"list-style":"disc"},null,8,["options"])],64)):(m(),h("div",$,[C("div",A,[n[9]||(n[9]=_(" 请开启 ",-1)),C("span",{class:"mx-[.4rem] bt-link",onClick:n[2]||(n[2]=function(e){return y(Z)("mapping")})},"外网映射"),n[10]||(n[10]=_(" 后查看配置信息 ",-1))])])),g(i,{title:"编辑配置文件",modelValue:y(L),"onUpdate:modelValue":n[6]||(n[6]=function(e){return V(L)?L.value=e:null}),area:54},{default:x(function(){return[C("div",J,[n[12]||(n[12]=_(" 提示：Ctrl+F 搜索关键字，Ctrl+S 保存，Ctrl+H 查找替换 ",-1)),B(g(y(f),{class:"!h-[36rem] my-[8px]",ref:"aceEditor",modelValue:y(G),"onUpdate:modelValue":n[3]||(n[3]=function(e){return V(G)?G.value=e:null}),onSave:n[4]||(n[4]=function(e){return y(I)()})},null,8,["modelValue"]),[[u,y(D)]]),g(y(b),{type:"primary",onClick:n[5]||(n[5]=function(e){return y(I)()})},{default:x(function(){return n[11]||(n[11]=[_("保存",-1)])}),_:1,__:[11]}),n[13]||(n[13]=C("ul",{class:"mt-[8px] leading-8 text-small list-disc ml-[20px]"},[C("li",null,"此处为该重定向的配置文件，若您不了解配置规则,请勿随意修改。")],-1))])]}),_:1},8,["modelValue"])])}}}))}}});
