import{K as e}from"./utils-lib.js?v=1761009159";import{c as a,r as s,g as o,v as t,x as l,e as r,y as i}from"./base-lib.js?v=1761009159";import{p as m,f as n}from"./form-item.js?v=1761009159";import{u as p,e as u,H as d}from"./index62.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./useController10.js?v=1761009159";import"./index105.js?v=1761009159";import"./column.js?v=1761009159";import"./index219.js?v=1761009159";const v={class:"p-[2rem]"},c=a({__name:"index",setup(a,{expose:c}){const{httpRowData:b}=p(),x=s([{label:"500 - 服务器错误",value:"500"},{label:"502 - 网关错误",value:"502"},{label:"503 - 服务不可用",value:"503"},{label:"504 - 网关超时",value:"504"},{label:"404 - 页面未找到",value:"404"},{label:"403 - 禁止访问",value:"403"},{label:"429 - 请求过多",value:"429"}]),{BtForm:_,submit:f}=e({data:()=>{var e;return{errorCodes:u(null==(e=b.value)?void 0:e.http_config.proxy_next_upstream)||[500,502,503,504]}},options:()=>o(()=>[m("错误状态码（多选）","errorCodes",x.value,{attrs:{class:"flex flex-col gap-2"}}),n("",[{content:"*错误状态码: 当后端节点返回的http状态码在错误状态码中时，该节点将会被视为处理失败"}])]),submit:async(e,a)=>{await a();let{load_id:s}=b.value;return await d({load_id:s,http_codes:"[".concat(e.value.errorCodes,"]")})}});return c({onConfirm:f}),(e,a)=>(t(),l("div",v,[r(i(_))]))}});export{c as default};
