import{d as v,k as x,a8 as B,o as n,c,F as V,$ as k,M as i,G as y,K as p,L as S,H as l,N as r,a as s,ap as w,aq as A}from"./vue.95e072e2.js";import h from"./st-bid-input.ea87a259.js";import{X as E}from"./index.8a64ecdf.js";import{_ as C}from"./_plugin-vue_export-helper.c27b6911.js";import"./index.6c7077c1.js";import"./elementPlus.58179425.js";import"./echarts.72dc8373.js";const u=o=>(w("data-v-88aa4c7d"),o=o(),A(),o),I=u(()=>s("div",{class:"asj-h3"},[s("span",{class:"custom-title-icon"}),p(" 设置竞价 ")],-1)),X=u(()=>s("div",null,"关键词竞价：",-1)),D={class:"bid"},N=u(()=>s("div",null,"商品定向竞价：",-1)),R={class:"bid target"},U={style:{"font-size":"small",color:"#f56c6c"}},H=v({__name:"search-term-bid",props:{action:{}},setup(o,{expose:T}){const a=o,f={EXACT:"精准匹配",BROAD:"广泛匹配",PHRASE:"词组匹配"};a.action.keywords||(a.action.keywords=[{bidType:"1",type:"increase",numType:"1",defaultBidding:"1.00",min:"",max:"",matchType:"EXACT",use:!1},{bidType:"1",type:"increase",numType:"1",defaultBidding:"1.00",min:"",max:"",matchType:"BROAD",use:!1},{bidType:"1",type:"increase",numType:"1",defaultBidding:"1.00",min:"",max:"",matchType:"PHRASE",use:!1}]),a.action.target||(a.action.target={bidType:"1",type:"increase",numType:"1",defaultBidding:"1",min:"",max:"",matchType:"EXACT",use:!1});const m=x(()=>E.findIndexOf(a.action.keywords,d=>d.use)!==-1?!0:a.action.target.use);return T({valid:m}),(t,d)=>{const _=B("el-checkbox");return n(),c("div",null,[I,X,(n(!0),c(V,null,k(t.action.keywords,(e,b)=>(n(),c("div",D,[i(_,{modelValue:e.use,"onUpdate:modelValue":g=>e.use=g,label:e.matchType},{default:y(()=>[p(S(f[e.matchType]),1)]),_:2},1032,["modelValue","onUpdate:modelValue","label"]),l(i(h,{"bid-data":e,index:b},null,8,["bid-data","index"]),[[r,e.use]])]))),256)),N,s("div",R,[i(_,{label:"target",modelValue:t.action.target.use,"onUpdate:modelValue":d[0]||(d[0]=e=>t.action.target.use=e)},{default:y(()=>[p("竞价")]),_:1},8,["modelValue"]),l(i(h,{"bid-data":t.action.target},null,8,["bid-data"]),[[r,t.action.target.use]])]),l(s("p",U,"请至少设置一种竞价方式！",512),[[r,!m.value]])])}}});const z=C(H,[["__scopeId","data-v-88aa4c7d"]]);export{z as default};
