import{i as u,c as l}from"./app-DckefXYL.js";import{_ as f}from"./app-DmazME7v.js";import{_}from"./app-MnSDCF4P.js";import{_ as h}from"./app-DFWP-E91.js";import{_ as d}from"./app-BroehdXH.js";import{_ as $}from"./app-COct4tsy.js";import{D as g}from"./app-Cx7ENVlu.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-DnroACXc.js";import"./app-C9iVkiu5.js";import"./app-DrIi-dNq.js";import"./app-zueB50zj.js";import"./app-B0NrURRk.js";import"./app-Co2SIBzr.js";import"./app-CUPmXIij.js";import"./app-Cu6FD8m8.js";import"./app-CjXaciNY.js";import"./app-DPkDcD7h.js";import"./app-CF0qXH5Q.js";import"./app-Dd07dUxy.js";import"./app-CYYQ_Zep.js";import"./app-NVAx7Sc3.js";import"./app-B8VsrFxM.js";import"./app-B09rlSqG.js";import"./app-LqsmzyUT.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};
