import{i as u,c as l}from"./app-a6cKceqE.js";import{_ as f}from"./app-C7Q3X0uc.js";import{_}from"./app-CQ-vNlMj.js";import{_ as h}from"./app-DY-0PadZ.js";import{_ as d}from"./app-BS0eerYg.js";import{_ as $}from"./app-CignoBaV.js";import{D as g}from"./app-7GBSHA5C.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-BYcXwl4U.js";import"./app-DCd54JMo.js";import"./app-MrAtUXr3.js";import"./app-BWSI2Z1R.js";import"./app-DPDEogA0.js";import"./app-DxjODhok.js";import"./app-CabATHnR.js";import"./app-BhzV4gWo.js";import"./app-DNz6g4aI.js";import"./app-Ufpj4Ll4.js";import"./app-ysQ8KbGS.js";import"./app--MWyBMkA.js";import"./app-BG60hdvp.js";import"./app-D5k1HLu9.js";import"./app-D2Wz0BUQ.js";import"./app-D3zbrzdO.js";import"./app-CrjU8lgK.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};
