import{i as u,c as l}from"./app-BT68AfZ-.js";import{_ as f}from"./app-Bx_XmupB.js";import{_}from"./app-DokSVapq.js";import{_ as h}from"./app-BMjG4tWp.js";import{_ as d}from"./app-DZWzqQm-.js";import{_ as $}from"./app-CKSEN_Rg.js";import{D as g}from"./app-DNL2FXPk.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-DA7OTM4Q.js";import"./app-scFtFqL8.js";import"./app-DREBJ-ou.js";import"./app-CWBL8eTX.js";import"./app-CnGe5nlE.js";import"./app-OC5wWJiS.js";import"./app-BX4pd6U-.js";import"./app-Bhreb6Cm.js";import"./app-o25MbL5M.js";import"./app-DuUYZNNT.js";import"./app-DSiZNBrr.js";import"./app-Bnbo6OlJ.js";import"./app-Dxa5h-uG.js";import"./app-C-GI59rl.js";import"./app-BkWUIifj.js";import"./app-CQwVTjAx.js";import"./app-Zes_jb7S.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};
