import{o as m,c as r,w as n,b as l,a as t,u as o,d as u,e as p}from"./app-BYcXwl4U.js";import{P as d}from"./app-Doj30F-n.js";import{i as c,c as _}from"./app-a6cKceqE.js";import{_ as f}from"./app-CignoBaV.js";import{_ as x}from"./app-5uGaBVXP.js";import{_ as i}from"./app-Ufpj4Ll4.js";import{_ as h}from"./app-CQ-vNlMj.js";import{_ as v}from"./app-DiDEoOb6.js";import{D as P}from"./app-7GBSHA5C.js";import"./app-Ceh-tphd.js";import"./app-CrjU8lgK.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-ysQ8KbGS.js";import"./app-BDgR0DSb.js";import"./app-B5UbDc9M.js";function I(){c(this)}const V=t("header",null,"修改IP",-1),w=["value"],$=t("td",null,"IP或IP段 *",-1),b=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),y=t("td",{class:"title"},"过期时间",-1),C=t("p",{class:"comment"},"在加入名单某一段时间后会失效，留空表示永久有效。",-1),D={colspan:"2"},B=t("td",null,"备注",-1),X={__name:"updateIPPopup",setup(S){const e=_(new I);return(g,s)=>(m(),r(d,null,{default:n(()=>[V,l(h,{action:"$",onSuccess:o(e).success},{default:n(()=>[t("input",{type:"hidden",name:"itemId",value:o(e).item.id},null,8,w),l(P,null,{default:n(()=>[t("tbody",null,[t("tr",null,[$,t("td",null,[l(i,{name:"value",maxlength:"64",placeholder:"x.x.x.x",autofocus:"",class:"w-full",modelValue:o(e).item.value,"onUpdate:modelValue":s[0]||(s[0]=a=>o(e).item.value=a)},null,8,["modelValue"]),b])]),t("tr",null,[y,t("td",null,[l(x,{"v-name":"expiredAt","v-timestamp":o(e).item.expiredAt},null,8,["v-timestamp"]),C])]),t("tr",null,[t("td",D,[l(v)])])]),u(t("tbody",null,[t("tr",null,[B,t("td",null,[l(i,{name:"reason",maxlength:"100",modelValue:o(e).item.reason,"onUpdate:modelValue":s[1]||(s[1]=a=>o(e).item.reason=a),class:"w-full"},null,8,["modelValue"])])])],512),[[p,o(e).moreOptionsVisible]])]),_:1}),l(f)]),_:1},8,["onSuccess"])]),_:1}))}};export{X as default};
