import{d as T,r as g,w as S,ai as s,o as _,c as k,a as o,U as a,O as d,S as n,P as v,V,M as w,R as C,F as B,aF as M,aG as U}from"./vue.adf17aba.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang.577ff081.js";import R from"./view-target-rules.600653bb.js";import{_ as A}from"./_plugin-vue_export-helper.c27b6911.js";import"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import"./echarts.72dc8373.js";import"./api.ecc2e6e0.js";import"./api.39068aff.js";import"./select-target.vue_vue_type_script_setup_true_lang.1ff66d81.js";import"./enum.111a4a5d.js";const c=i=>(M("data-v-78bdefd3"),i=i(),U(),i),F=c(()=>o("span",{class:"custom-title-icon"},null,-1)),G=c(()=>o("span",{class:"asj-h3"},"生效对象",-1)),q={style:{display:"flex","flex-direction":"column","align-items":"flex-start"}},D={style:{margin:"5px 0"}},P=c(()=>o("span",null,"广告类型：",-1)),j={class:"target-radio-group"},z={class:"target-radio-group-item"},E={class:"target-radio-group-item"},O=T({__name:"target-select",props:{mode:{},data:{},useTmpl:{type:Boolean},campaignInfo:{}},setup(i){const p=i,r=g(!1),f=g();function b(){f.value={profileId:p.campaignInfo.profileId,campaignId:p.campaignInfo.campaignId},r.value=!0}return S(()=>p.data.campaignAd,e=>{}),(e,t)=>{const m=s("el-option"),y=s("el-select"),u=s("el-radio"),h=s("el-button"),I=s("el-radio-group");return _(),k(B,null,[o("div",null,[F,G,o("div",q,[o("div",D,[P,a(y,{modelValue:e.data.campaignType,"onUpdate:modelValue":t[0]||(t[0]=l=>e.data.campaignType=l),disabled:e.mode==="edit"||e.useTmpl},{default:d(()=>[a(m,{label:"SP",value:"sp"}),a(m,{label:"SB",value:"sb"}),a(m,{label:"SD",value:"sd"})]),_:1},8,["modelValue","disabled"])]),a(I,{modelValue:e.data.activeModel,"onUpdate:modelValue":t[2]||(t[2]=l=>e.data.activeModel=l),disabled:e.mode==="edit"||e.useTmpl},{default:d(()=>[o("div",j,[a(u,{label:"campaign"},{default:d(()=>[n("当前广告活动（所有定向）")]),_:1}),o("div",z,[a(u,{label:"adGroup"},{default:d(()=>[n("当前广告活动的指定广告组（所有定向）")]),_:1}),v(a(N,{modelValue:e.data.campaignAd,"onUpdate:modelValue":t[1]||(t[1]=l=>e.data.campaignAd=l),multiple:!0,query:{profileId:"3006125408623189",campaignType:e.data.campaignType,campaignId:e.campaignId},style:{"padding-left":"23px",width:"450px"}},null,8,["modelValue","query"]),[[V,e.mode==="auto"&&e.data.activeModel==="adGroup"]])]),o("div",E,[a(u,{label:"specified"},{default:d(()=>[n("指定定向")]),_:1}),v(a(h,{link:"",style:{"margin-left":"20px","font-size":"13px",color:"#0085ff"},onClick:b},{default:d(()=>[n("选择定向 ")]),_:1},512),[[V,e.mode==="auto"&&e.data.activeModel==="specified"]])])])]),_:1},8,["modelValue","disabled"])])]),e.data.activeModel==="specified"?(_(),w(R,{key:0,modelValue:r.value,"onUpdate:modelValue":t[3]||(t[3]=l=>r.value=l),checkTarget:f.value,"onConfirm:targetRule":e.handleConfirm},null,8,["modelValue","checkTarget","onConfirm:targetRule"])):C("",!0)],64)}}});const ee=A(O,[["__scopeId","data-v-78bdefd3"]]);export{ee as default};
