import{C as e,s,b as a,d as l,o as t,e as r,w as m,i as c,u as n,y as i,z as u,f as o,F as d,h as _,k as f,l as p,m as g,S as v}from"./index-520dfaee.js";import{_ as y}from"./uni-rate.b2e08c50.js";import{_ as h}from"./su-image.ba5fb633.js";import{_ as x}from"./_plugin-vue_export-helper.1b428a4d.js";const b=x({__name:"comment-item",props:{item:{type:Object,default(){}}},setup(x){var b;const k=x,j=e({commentImages:[]});return null==(b=k.item.images)||b.forEach((e=>{j.commentImages.push(s.$url.cdn(e))})),(e,b)=>{const k=p,w=g,I=a(l("uni-rate"),y),V=a(l("su-image"),h),z=v;return t(),r(w,null,{default:m((()=>{var e;return[c(w,{class:"user ss-flex ss-m-b-14"},{default:m((()=>[c(w,{class:"ss-m-r-20 ss-flex"},{default:m((()=>[c(k,{class:"avatar",src:n(s).$url.cdn(x.item.user_avatar)},null,8,["src"])])),_:1}),c(w,{class:"nickname ss-m-r-20"},{default:m((()=>[i(u(x.item.user_nickname),1)])),_:1}),c(w,{class:""},{default:m((()=>[c(I,{readonly:!0,modelValue:x.item.level,"onUpdate:modelValue":b[0]||(b[0]=e=>x.item.level=e),size:"18"},null,8,["modelValue"])])),_:1})])),_:1}),c(w,{class:"content"},{default:m((()=>[i(u(x.item.content),1)])),_:1}),(null==(e=x.item.images)?void 0:e.length)?(t(),r(w,{key:0,class:"ss-m-t-24"},{default:m((()=>[c(z,{class:"scroll-box","scroll-x":"","scroll-anchoring":""},{default:m((()=>[c(w,{class:"ss-flex"},{default:m((()=>[(t(!0),o(d,null,_(x.item.images,((e,s)=>(t(),r(w,{key:e,class:"ss-m-r-10"},{default:m((()=>[c(V,{class:"content-img",isPreview:"",previewList:j.commentImages,current:s,src:e,height:120,width:120,mode:"aspectFill"},null,8,["previewList","current","src"])])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1})):f("",!0),x.item.reply_time?(t(),r(w,{key:1,class:"ss-m-t-20 reply-box"},{default:m((()=>[c(w,{class:"reply-title"},{default:m((()=>[i("商家回复：")])),_:1}),c(w,{class:"reply-content"},{default:m((()=>[i(u(x.item.reply_content),1)])),_:1})])),_:1})):f("",!0)]})),_:1})}}},[["__scopeId","data-v-29dcb51a"]]);export{b as c};
