import{o,c as u,w as n,b as a,a as t,u as s,g as i,F as d,D as _,i as p,f as l,t as m}from"./app-BYcXwl4U.js";import{P as f}from"./app-Doj30F-n.js";import{i as h,c as g}from"./app-a6cKceqE.js";import{_ as y}from"./app-CQ-vNlMj.js";import{_ as x}from"./app-CignoBaV.js";import{T as k}from"./app-BbPGXKj1.js";import{D as v}from"./app-7GBSHA5C.js";import"./app-Ceh-tphd.js";import"./app-CrjU8lgK.js";function C(){h(this),this.success=this.$NotifyPopup,this.groupId=0,this.selectGroup=function(r){this.groupId=r.id}}const I=t("header",null,"选择分组",-1),T=["value"],$=t("td",{class:"title"},"选择分组",-1),b={key:0},w={class:"label-group"},B=["onClick"],D=t("p",{class:"comment"},"点击可已选中要使用的分组。",-1),N={key:1},P=t("p",{class:"comment"},"暂时还没有可以使用的分组。",-1),S=[P],J={__name:"selectPopup",setup(r){const e=g(new C);return(V,F)=>(o(),u(f,null,{default:n(()=>[I,a(y,{action:"$",onSuccess:s(e).success},{default:n(()=>[t("input",{type:"hidden",name:"groupId",value:s(e).groupId},null,8,T),a(v,null,{default:n(()=>[t("tbody",null,[t("tr",null,[$,t("td",null,[s(e).groups.length>0?(o(),i("div",b,[t("div",w,[(o(!0),i(d,null,_(s(e).groups,c=>(o(),i("a",{href:"",onClick:p(G=>s(e).selectGroup(c),["prevent"])},[a(k,{secondary:c.id!=s(e).groupId},{default:n(()=>[l(m(c.name),1)]),_:2},1032,["secondary"])],8,B))),256))]),D])):(o(),i("div",N,S))])])])]),_:1}),a(x,null,{default:n(()=>[l("确定")]),_:1})]),_:1},8,["onSuccess"])]),_:1}))}};export{J as default};
