import{X as c}from"./index.DoJnwA7v.js";import{d as x,k as u,ai as p,o as t,c as a,F as m,a8 as d,U as l,O as f,u as _,a as D,T as g}from"./vue.1RczIYhx.js";import{_ as V}from"./_plugin-vue_export-helper.DlAUqK2U.js";import"./elementPlus.CqHltQSO.js";const C={key:1,class:"in-table-ul"},$={key:2},N=x({__name:"ChangeValue",props:{field:{},value:{}},setup(h){const e=h,v={0:"",1:"LD",2:"7DD",3:"DOTD/TD"},r=s=>c.toStringJSON(s),y=u(()=>c.includes(["bullet_point","variants"],e.field)),k=u(()=>{if(e.field==="discount")return`${e.value}%`;if(e.field==="coupon"||e.field==="price")return`$${e.value}`;if(e.field==="badge"){const s=Number(e.value);return v[s]||""}return e.value});return(s,S)=>{const i=p("el-image"),b=p("el-tooltip");return t(),a("div",null,[e.field==="imgs"?(t(!0),a(m,{key:0},d(r(e.value),(n,o)=>(t(),a("span",{key:o},[l(b,{effect:"light",placement:"bottom-start"},{content:f(()=>[l(i,{src:`https://m.media-amazon.com/images/I/${n}.jpg`,style:{width:"250px"}},null,8,["src"])]),default:f(()=>[l(i,{src:`https://m.media-amazon.com/images/I/${n}.jpg`,fit:"fill",style:{width:"40px","margin-right":"5px"}},null,8,["src"])]),_:2},1024)]))),128)):_(y)?(t(),a("ul",C,[(t(!0),a(m,null,d(r(e.value),(n,o)=>(t(),a("li",{key:o},[D("span",null,g(n),1)]))),128))])):(t(),a("span",$,g(_(k)||"-"),1))])}}}),T=V(N,[["__scopeId","data-v-9d4fe2a2"]]);export{T as default};
