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-DA7OTM4Q.js";import{P as d}from"./app-YXi6Hc2l.js";import{i as c,c as _}from"./app-BT68AfZ-.js";import{_ as f}from"./app-CKSEN_Rg.js";import{_ as x}from"./app-BHawpKrq.js";import{_ as i}from"./app-DuUYZNNT.js";import{_ as h}from"./app-DokSVapq.js";import{_ as v}from"./app-D2gM4iLU.js";import{D as P}from"./app-DNL2FXPk.js";import"./app-BlCBGn5D.js";import"./app-Zes_jb7S.js";import"./app-D1zN-SZ-.js";import"./app-kBNY2ZLt.js";import"./app-AbPAjGV5.js";import"./app-CWBL8eTX.js";import"./app-CnGe5nlE.js";import"./app-CNEAqXZN.js";import"./app-DSiZNBrr.js";import"./app-BotiHebp.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};
