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-BYcXwl4U.js";import{P as p}from"./app-Doj30F-n.js";import{i as u,c as d}from"./app-a6cKceqE.js";import{_ as f}from"./app-CignoBaV.js";import{_ as r}from"./app-Ufpj4Ll4.js";import{_ as h}from"./app-CQ-vNlMj.js";import{_ as x}from"./app-5uGaBVXP.js";import{_ as y}from"./app-DiDEoOb6.js";import{D as I}from"./app-7GBSHA5C.js";import"./app-Ceh-tphd.js";import"./app-CrjU8lgK.js";import"./app-ysQ8KbGS.js";import"./app-CWQ1YUQz.js";import"./app-kBNY2ZLt.js";import"./app-CNARLpXE.js";import"./app-BWSI2Z1R.js";import"./app-DPDEogA0.js";import"./app--dodm6tS.js";import"./app-BDgR0DSb.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};
