import{$ as V,E as b,w as D}from"./element-plus.55d71530.js";import{_ as v}from"./index.54e5bacf.js";import{_ as C}from"./picker.7465cadc.js";import{_ as U}from"./picker.33f9b871.js";import{P as S}from"./index.e651cfa0.js";import{f as d}from"./index.e2bd5212.js";import{d as $,s as j,o as u,L as i,M as t,V as o,a as n,c as m,aa as N,U as R,S as L}from"./@vue.96c135a1.js";const O={class:"flex flex-wrap p-4"},P={class:"bg-fill-light w-full p-4"},M={class:"flex items-center"},T=n("div",{class:"w-[122px] h-[122px] flex justify-center items-center"}," \u8F6E\u64AD\u56FE ",-1),q={class:"mt-4 ml-4"},W=$({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})},height:{type:String,default:"170px"}},setup(_,{expose:f}){const c=j(),l=_,h=()=>{var e;(e=c.value)==null||e.open()},E=()=>{var e;(e=c.value)==null||e.close()},F=()=>{var e;((e=l.content.data)==null?void 0:e.length)<10?l.content.data.push({image:"",name:"",link:{}}):d.msgError(`\u6700\u591A\u6DFB\u52A0${10}\u5F20\u56FE\u7247`)},g=e=>{var p;if(((p=l.content.data)==null?void 0:p.length)<=1)return d.msgError("\u6700\u5C11\u4FDD\u7559\u4E00\u4E2A\u8F6E\u64AD\u56FE");l.content.data.splice(e,1)};return f({open:h}),(e,p)=>{const x=V,k=U,A=C,y=v,w=D,B=b;return u(),i(S,{ref_key:"popupRef",ref:c,title:"\u8F6E\u64AD\u56FE\u8BBE\u7F6E",async:!0,width:"980px",onConfirm:E},{default:t(()=>[o(x,{title:"\u6700\u591A\u53EF\u6DFB\u52A010\u5F20\uFF0C\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8750px*440px",type:"warning"}),o(B,{height:"400px",class:"mt-4"},{default:t(()=>[n("div",O,[(u(!0),m(R,null,N(_.content.data,(a,r)=>(u(),m("div",{key:r,class:"w-[400px] mr-4 mb-4"},[(u(),i(y,{key:r,onClose:s=>g(r),class:"w-full"},{default:t(()=>[n("div",P,[n("div",M,[o(k,{width:"122px",height:"122px",modelValue:a.image,"onUpdate:modelValue":s=>a.image=s,"upload-class":"bg-body","exclude-domain":""},{upload:t(()=>[T]),_:2},1032,["modelValue","onUpdate:modelValue"]),o(A,{modelValue:a.link,"onUpdate:modelValue":s=>a.link=s},null,8,["modelValue","onUpdate:modelValue"])])])]),_:2},1032,["onClose"]))]))),128))]),n("div",q,[o(w,{link:"",type:"primary",onClick:F},{default:t(()=>[L("+ \u6DFB\u52A0\u8F6E\u64AD\u56FE")]),_:1})])]),_:1})]),_:1},512)}}});export{W as _};
