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