import{d as h,p as N,f as A,i as u,a as d,c,F as P,q as U,j as l,v as r,k as s,e as _,z as E,m as v,l as M,_ as O}from"./index-deffec86.js";const j={class:"plan-container"},J={class:"item"},S={class:"flex"},q={class:"item"},w={class:"flex"},z={class:"flex flex-s"},I=h({__name:"MediaData",props:{value:Object},emits:["update:value","update:loading","cancel","submit"],setup(f,{expose:F,emit:x}){N({xs:20,sm:20,md:18,lg:16,xl:12});let V=f;const C=x,o=A({get(){return B(V.value)},set(t){C("update:value",k(t))}}),B=t=>t,k=t=>JSON.parse(JSON.stringify(t)),y=()=>{o.value.push({title:"",url:""})},b=t=>{o.value.splice(t,1)};return F({elsePlan:o}),(t,e)=>{const p=u("el-input"),D=u("Delete"),i=u("el-icon"),g=u("Plus");return d(),c("div",j,[(d(!0),c(P,null,U(_(o),(n,m)=>(d(),c("div",{key:m,class:"else-plan mb20"},[l("div",J,[l("div",S,[e[0]||(e[0]=l("span",null,"\u6807\u9898\uFF1A",-1)),e[1]||(e[1]=r()),s(p,{modelValue:n.title,"onUpdate:modelValue":a=>n.title=a,placeholder:"\u8BF7\u8F93\u5165\u65B9\u6848\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])])]),l("div",q,[l("div",w,[e[2]||(e[2]=l("span",null,"\u94FE\u63A5\uFF1A",-1)),e[3]||(e[3]=r()),s(p,{modelValue:n.url,"onUpdate:modelValue":a=>n.url=a,placeholder:"\u8BF7\u8F93\u5165\u65B9\u6848\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])])]),l("div",z,[_(o).length>1?(d(),E(i,{key:0,onClick:a=>b(m),class:"icon"},{default:v(()=>[s(D)]),_:2},1032,["onClick"])):M("v-if",!0)])]))),128)),l("div",{class:"add-button",onClick:y},[s(i,null,{default:v(()=>[s(g)]),_:1}),e[4]||(e[4]=r(" \u65B0\u589E "))])])}}});const T=O(I,[["__scopeId","data-v-cc7b67b2"]]);export{T as default};
