import{d as r,a6 as o,a7 as u,b as s,p as a,q as l,j as m,F as _}from"./vendor.2bcdc9cf.js";/* empty css               */var d="./assets/icon-address.135cd83f.png";const y="_cellEntry_13jw9_1",f="_cell_13jw9_1",j="_userName_13jw9_18",h="_phone_13jw9_23",N="_addressInfo_13jw9_28",k="_emtry_13jw9_32";var n={cellEntry:y,cell:f,userName:j,phone:h,addressInfo:N,emtry:k},A=r({name:"cart-address",props:{item:{type:Object,default:{}},isLink:{type:Boolean,default:!0},setAddress:{type:Function,default:e=>{}}},setup(e){const i=o(),c=u(()=>[e.item.province,e.item.city,e.item.region,e.item.detailAddress].join("")),t=()=>{!e.isLink||i.push({path:"/address",query:{type:"getAddress"}})};return()=>s(_,null,[e.item&&e.item.phoneNumber?s(a,{class:n.cell,"is-link":e.isLink,onClick:()=>t()},{icon:()=>s(l,{name:d,size:19},null),title:()=>s("div",null,[s("span",{class:n.userName},[e.item.name]),s("span",{class:n.phone},[e.item&&e.item.phoneNumber&&e.item.phoneNumber.replace(/^(\d{3})\d{4}(\d+)/,"$1****$2")])]),label:()=>s("span",{class:n.addressInfo},[c.value])}):s(a,{class:n.cell,"is-link":e.isLink,onClick:()=>t()},{icon:()=>s(l,{name:d,size:19},null),title:()=>s("div",{class:n.emtry},[m("\u53BB\u586B\u5199\u6536\u8D27\u5730\u5740")])})])}});export{A};
