import{c as b}from"./index.242c63e0.js";import{e as k}from"./index.1fb8c4e1.js";import{d as y,a6 as E,r as V,b as c,p as u,c as d,e as a,f as p,g as F,h as L,i as _,F as B,j as w,k as A,m,t as I,u as n,y as N,_ as S}from"./index.0308b213.js";const P={class:"optimization-config"},T={class:"box-item"},j=m(" \u9009\u62E9\u54C1\u724C\u95E8\u5E97\uFF1A "),q=y({props:{config:null,agentid:null},emits:["update:config"],setup(f,{emit:g}){const i=f,{OpPlatform:v}=E();let o=V({sid:""});const s=c({list:[]}),l=c({page:1,limit:100,agentid:i.agentid,areaid:"",sid:"",keywords:""});return(()=>{v.value=="shangpu"?b(l).then(e=>{s.list=e.list,console.log(e,"22222222+++++++++++")}):k(l).then(e=>{s.list=e.list})})(),u(()=>i.config,e=>{console.log(e),e&&(console.log(e),N(()=>{o.value.sid=e.sid}))},{immediate:!0}),u(o.value,e=>{console.log("val",e),g("update:config",e)}),(e,r)=>{const h=d("el-option"),C=d("el-select");return a(),p("div",P,[F("div",T,[j,L(C,{modelValue:n(o).sid,"onUpdate:modelValue":r[0]||(r[0]=t=>n(o).sid=t),placeholder:"\u8BF7\u9009\u62E9\u54C1\u724C\u95E8\u5E97",clearable:""},{default:_(()=>[(a(!0),p(B,null,w(n(s).list,(t,x)=>(a(),A(h,{key:`virtual-comment-store-${x}`,value:t.id,label:t.brand},{default:_(()=>[m(I(t.brand),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])])])}}});const U=S(q,[["__scopeId","data-v-015218ea"]]);export{U as default};
