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-SC54XQDl.js";import{P as d}from"./app-BGgVpkqZ.js";import{i as c,c as _}from"./app-Ba7ZqSpq.js";import{_ as f}from"./app-DWUwCFNm.js";import{_ as x}from"./app-_SlMJZK-.js";import{_ as i}from"./app-CVQkwzlf.js";import{_ as h}from"./app-DFulsyXy.js";import{_ as v}from"./app-huVLEujn.js";import{D as P}from"./app-ZeVDYyDS.js";import"./app-yUrwy8EY.js";import"./app-CNHjdV6U.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-DnXuoh8P.js";import"./app-CCkWSX4Q.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};
