import{d as r,Q as o,W as m,j as s,N as a,A as u,F as _}from"./ResizeObserver.es.b7226882.js";import{C as l}from"./index.40f703b6.js";var i="./assets/icon-address.135cd83f.png";const f="_cellEntry_13jw9_1",y="_cell_13jw9_1",N="_userName_13jw9_18",h="_phone_13jw9_23",j="_addressInfo_13jw9_28",k="_emtry_13jw9_32";var n={cellEntry:f,cell:y,userName:N,phone:h,addressInfo:j,emtry:k},w=r({name:"cart-address",props:{item:{type:Object,default:{}},isLink:{type:Boolean,default:!0},setAddress:{type:Function,default:e=>{}}},setup(e){const c=o(),d=m(()=>[e.item.province,e.item.city,e.item.region,e.item.detailAddress].join("")),t=()=>{!e.isLink||c.push("/shopAddress")};return()=>s(_,null,[e.item&&e.item.phoneNumber?s(l,{class:n.cell,"is-link":e.isLink,onClick:()=>t()},{icon:()=>s(a,{name:i,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},[d.value])}):s(l,{class:n.cell,"is-link":e.isLink,onClick:()=>t()},{icon:()=>s(a,{name:i,size:19},null),title:()=>s("div",{class:n.emtry},[u("\u53BB\u586B\u5199\u6536\u8D27\u5730\u5740")])})])}});export{w as A};