import{o as a,c,w as n,u as s,g as i,h as l,b as e,a as t,d as m,e as _}from"./app-SC54XQDl.js";import{P as p}from"./app-BGgVpkqZ.js";import{i as u,c as d}from"./app-Ba7ZqSpq.js";import{_ as f}from"./app-DWUwCFNm.js";import{_ as r}from"./app-CVQkwzlf.js";import{_ as h}from"./app-DFulsyXy.js";import{_ as x}from"./app-_SlMJZK-.js";import{_ as y}from"./app-huVLEujn.js";import{D as I}from"./app-ZeVDYyDS.js";import"./app-yUrwy8EY.js";import"./app-CNHjdV6U.js";import"./app-DnXuoh8P.js";import"./app-BJBSV0K6.js";import"./app-kBNY2ZLt.js";import"./app-DgoEZtNT.js";import"./app-_Ovp2dOH.js";import"./app-BjSCO7rC.js";import"./app-DmYIyyK5.js";import"./app-CCkWSX4Q.js";import"./app-B5UbDc9M.js";function P(){u(this)}const v={key:0},w={key:1},k={key:2},b=["value"],$=t("td",null,"IP或IP段 *",-1),C=t("p",{class:"comment"},"支持IPv4和IPv6；支持三种格式：单个IP（比如192.168.1.100）、IP范围（比如192.168.1.1-192.168.1.255）、CIDR（比如192.168.1.1/24）。",-1),g=t("td",{class:"title"},"过期时间",-1),B=t("p",{class:"comment"},"在加入名单某一段时间后会失效，留空表示永久有效。",-1),D={colspan:"2"},V=t("td",null,"备注",-1),N=t("p",{class:"comment"},"添加后将会在5分钟后生效。",-1),et={__name:"createIPPopup",setup(S){const o=d(new P);return(R,A)=>(a(),c(p,null,{default:n(()=>[s(o).type=="white"?(a(),i("header",v,"添加IP到白名单")):l("",!0),s(o).type=="black"?(a(),i("header",w,"添加IP到黑名单")):l("",!0),s(o).type=="grey"?(a(),i("header",k,"添加IP到灰名单")):l("",!0),e(h,{action:"$",onSuccess:s(o).success},{default:n(()=>[t("input",{type:"hidden",name:"listId",value:s(o).listId},null,8,b),e(I,null,{default:n(()=>[t("tbody",null,[t("tr",null,[$,t("td",null,[e(r,{type:"text",name:"value",maxlength:"64",placeholder:"x.x.x.x",autofocus:"",class:"w-full"}),C])]),t("tr",null,[g,t("td",null,[e(x,{"v-name":"expiredAt"}),B])]),t("tr",null,[t("td",D,[e(y)])])]),m(t("tbody",null,[t("tr",null,[V,t("td",null,[e(r,{type:"text",name:"reason",maxlength:"100",class:"w-full"})])])],512),[[_,s(o).moreOptionsVisible]])]),_:1}),N,e(f)]),_:1},8,["onSuccess"])]),_:1}))}};export{et as default};
