import{i as u,c as l}from"./app-Ba7ZqSpq.js";import{_ as f}from"./app-sWrdQNKf.js";import{_}from"./app-DFulsyXy.js";import{_ as h}from"./app-T1ysvErZ.js";import{_ as d}from"./app-BPiEnth_.js";import{_ as $}from"./app-DWUwCFNm.js";import{D as g}from"./app-ZeVDYyDS.js";import{r as a,o as c,g as m,b as t,u as i,w as p,F as x,a as s,h as y}from"./app-SC54XQDl.js";import"./app-CL60OiIv.js";import"./app-D9TrJBlL.js";import"./app-_Ovp2dOH.js";import"./app-BjSCO7rC.js";import"./app-Dhl-Bw0H.js";import"./app-B2C_dtYI.js";import"./app-COidJXl1.js";import"./app-DPYq7hh-.js";import"./app-CVQkwzlf.js";import"./app-DnXuoh8P.js";import"./app-BPIIxVwk.js";import"./app-PPG0ZS4d.js";import"./app-Dw0jKdCD.js";import"./app-DoVkxbmA.js";import"./app-C2mBgI5Z.js";import"./app-CNHjdV6U.js";function S(){u(this),this.$delay(function(){this.$refs.namesInput.focus(),this.changeUserId(0)}),this.success=this.$NotifyReloadSuccess("保存成功"),this.hasGroups=!1,this.changeUserId=function(e){this.$post("/ns/domains/groups/options").params({userId:e}).success(function(o){this.hasGroups=o.data.groups.length>0,this.hasGroups&&this.$delay(function(){this.$refs.groupSelector.reload(e)})})}}const k=s("td",{class:"title"},"域名 *",-1),w={key:0},I=s("td",null,"所属分组",-1),X={__name:"index",setup(e){const o=a(),n=a(),r=l(new S,{refs:{namesInput:o,groupSelector:n}});return(C,G)=>(c(),m(x,null,[t(f,{ctx:i(r)},null,8,["ctx"]),t(_,{action:"$",onSuccess:i(r).success},{default:p(()=>[t(g,null,{default:p(()=>[s("tbody",null,[s("tr",null,[k,s("td",null,[t(h,{rows:"15",name:"names",placeholder:"每行一个域名",ref_key:"namesInput",ref:o,class:"w-full"},null,512)])]),i(r).hasGroups?(c(),m("tr",w,[I,s("td",null,[t(d,{ref_key:"groupSelector",ref:n},null,512)])])):y("",!0)])]),_:1}),t($)]),_:1},8,["onSuccess"])],64))}};export{X as default};
