import{a as C}from"./install.524ae6f2.js";import{b}from"./index.2cc74cc5.js";import{b as x}from"./diy.a6ea004c.js";import{d as V,a6 as w,r as n,p as k,b6 as B,c as u,e as c,k as S,i as D,g as p,f,j as E,h as G,t as N,F as A,_ as I}from"./index.0308b213.js";const P={modelValue:{type:Boolean,default:!1},agentid:{type:[String,Number]}},F={"update:modelValue":o=>typeof o=="boolean",change:o=>typeof o=="string"},L={class:"flex flex-wrap"},j=["onClick"],M=V({props:P,emits:F,setup(o,{emit:r}){const l=o,{OpPlatform:g}=w(),t=n(l.modelValue),s=n([]),m=e=>{r("change",e),i()},_=e=>{t.value&&(t.value=!1,i(),e())},i=()=>{t.value=!1,r("update:modelValue",!1)};return n(!1),k(()=>l.modelValue,e=>{t.value=e}),B(()=>{g.value==="agent"?x({agentid:l.agentid,page:1,limit:200}).then(e=>{s.value=e.list}):b({agentid:l.agentid,page:1,limit:200}).then(e=>{s.value=e.list})}),(e,d)=>{const h=u("el-image"),v=u("el-dialog");return c(),S(v,{modelValue:t.value,"onUpdate:modelValue":d[0]||(d[0]=a=>t.value=a),width:"43%",title:"\u9009\u62E9\u5546\u54C1\u5206\u7C7B","destroy-on-close":!0,"append-to-body":"","before-close":_},{default:D(()=>[p("div",L,[(c(!0),f(A,null,E(s.value,(a,y)=>(c(),f("div",{class:"item flex flex-center flex-col",key:y,onClick:U=>m(a)},[G(h,{style:{width:"100px",height:"100px"},src:a.thumb,fit:"cover"},null,8,["src"]),p("span",null,N(a.title),1)],8,j))),128))])]),_:1},8,["modelValue"])}}});const O=I(M,[["__scopeId","data-v-7eba0b5a"]]),J=C(O);export{J as G};
