import{g as x,a as y}from"./index.a63f2653.js";import{d as B,a6 as C,r as D,b as k,p as f,c as d,e as p,f as m,g as c,h as l,i as u,u as o,A as U,F as L,j as S,k as N,m as a,t as w,y as I,_ as P}from"./index.0308b213.js";const T={class:"optimization-config"},j={class:"box-item"},z=a(" \u62DB\u547C\u8BED\uFF1A "),G=a("\u663E\u793A\u624B\u673A\u53F7"),O=a("\u81EA\u5B9A\u4E49\u6D88\u606F"),$={key:0},q={class:"box-item"},H=a(" \u53F3\u4FA7\u4FE1\u606F\u5C55\u793A\u7C7B\u578B\uFF1A "),J=a("\u95E8\u5E97\u4F59\u989D"),K=a("\u5E73\u53F0\u4F59\u989D"),M={class:"box-item"},Q=a(" \u53F3\u4FA7\u4FE1\u606F\u5C55\u793A\u7C7B\u578B2\uFF1A "),R=a("\u7EA2\u5305"),W=a("\u4EE3\u91D1\u5238"),X={class:"box-item"},Y=a(" \u9009\u62E9\u95E8\u5E97\uFF1A "),Z=B({props:{config:null},emits:["update:config"],setup(g,{emit:F}){const V=g,{OpPlatform:E}=C();let e=D({type:1,type2:1,istip:!1,tips:"",sid:""});const _=k({list:[],agentid:""});return(()=>{E.value=="shangpu"?x({agentid:_.agentid}).then(s=>{_.list=s,console.log(s+"22222222+++++++++++")}):y({}).then(s=>{_.list=s})})(),f(()=>V.config,s=>{s&&(console.log(s),I(()=>{e.value=s}))},{immediate:!0}),f(e.value,s=>{F("update:config",s)}),(s,i)=>{const n=d("el-radio"),r=d("el-radio-group"),b=d("el-input"),A=d("el-option"),h=d("el-select");return p(),m("div",T,[c("div",j,[z,l(r,{modelValue:o(e).istip,"onUpdate:modelValue":i[0]||(i[0]=t=>o(e).istip=t),class:"ml-4"},{default:u(()=>[l(n,{label:!1},{default:u(()=>[G]),_:1}),l(n,{label:!0},{default:u(()=>[O]),_:1})]),_:1},8,["modelValue"])]),o(e).istip?(p(),m("div",$,[l(b,{style:{width:"300px","margin-bottom":"10px","margin-left":"50px"},modelValue:o(e).tips,"onUpdate:modelValue":i[1]||(i[1]=t=>o(e).tips=t)},null,8,["modelValue"])])):U("",!0),c("div",q,[H,l(r,{modelValue:o(e).type,"onUpdate:modelValue":i[2]||(i[2]=t=>o(e).type=t),class:"ml-4"},{default:u(()=>[l(n,{label:1},{default:u(()=>[J]),_:1}),l(n,{label:2},{default:u(()=>[K]),_:1})]),_:1},8,["modelValue"])]),c("div",M,[Q,l(r,{modelValue:o(e).type2,"onUpdate:modelValue":i[3]||(i[3]=t=>o(e).type2=t),class:"ml-4"},{default:u(()=>[l(n,{label:1},{default:u(()=>[R]),_:1}),l(n,{label:2},{default:u(()=>[W]),_:1})]),_:1},8,["modelValue"])]),c("div",X,[Y,l(h,{modelValue:o(e).sid,"onUpdate:modelValue":i[4]||(i[4]=t=>o(e).sid=t),placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",clearable:"",filterable:""},{default:u(()=>[(p(!0),m(L,null,S(o(_).list,(t,v)=>(p(),N(A,{key:`virtual-comment-store-${v}`,value:t.id,label:t.title},{default:u(()=>[a(w(t.title),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])])])}}});const se=P(Z,[["__scopeId","data-v-3e34c1b4"]]);export{se as default};
