import{d as B,r as h,p as x,b as y,c as t,e as d,k as E,i as e,h as a,u as i,f as F,j as w,m as r,t as A,F as N}from"./index.0308b213.js";const U=r("\u63D0\u4EA4"),j=r("\u53D6\u6D88"),S=B({props:{modelValue:{type:Boolean},agents:null,ids:null},emits:["update:modelValue","onClose"],setup(m,{emit:c}){const p=m,u=h(!1);x(()=>p.modelValue,_=>{u.value=_});const o=y({ids:[],agentid:""}),V=()=>{o.ids=p.ids,s()},s=()=>{c("update:modelValue",!1),c("onClose"),o.agentid="",o.ids=[]};return(_,n)=>{const C=t("el-option"),b=t("el-select"),f=t("el-form-item"),g=t("el-button"),v=t("el-form"),k=t("el-dialog");return d(),E(k,{modelValue:u.value,"onUpdate:modelValue":n[1]||(n[1]=l=>u.value=l),title:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EE3\u7406",width:"50%",onClose:s},{default:e(()=>[a(v,{model:i(o),"label-width":"120px"},{default:e(()=>[a(f,{label:"\u6240\u5C5E\u4EE3\u7406",prop:"agentid"},{default:e(()=>[a(b,{modelValue:i(o).agentid,"onUpdate:modelValue":n[0]||(n[0]=l=>i(o).agentid=l),placeholder:"\u8BF7\u9009\u62E9\u4EE3\u7406\u533A\u57DF",clearable:""},{default:e(()=>[(d(!0),F(N,null,w(m.agents,(l,D)=>(d(),E(C,{key:`nav-icon-agents-${D}`,value:l.id,label:l.area},{default:e(()=>[r(A(l.area),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(f,null,{default:e(()=>[a(g,{type:"primary",onClick:V},{default:e(()=>[U]),_:1}),a(g,{onClick:s},{default:e(()=>[j]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{S as default};