import{e,f as t,w as s,t as a,u as l,B as i,A as r,g as o,E as d,l as n,m as u,v as c,a3 as m,j as f,ab as p,C as g,s as y,i as _,x,G as b}from"./index-9aa72eed.js";import{_ as k}from"./_plugin-vue_export-helper.1b428a4d.js";const B=k({name:"UniTag",emits:["click"],props:{type:{type:String,default:"default"},size:{type:String,default:"normal"},text:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},inverted:{type:[Boolean,String],default:!1},circle:{type:[Boolean,String],default:!1},mark:{type:[Boolean,String],default:!1},customStyle:{type:String,default:""}},computed:{classes(){const{type:e,disabled:t,inverted:s,circle:a,mark:l,size:i,isTrue:r}=this;return["uni-tag--"+e,"uni-tag--"+i,r(t)?"uni-tag--disabled":"",r(s)?"uni-tag--"+e+"--inverted":"",r(a)?"uni-tag--circle":"",r(l)?"uni-tag--mark":"",r(s)?"uni-tag--inverted uni-tag-text--"+e:"","small"===i?"uni-tag-text--small":""].join(" ")}},methods:{isTrue:e=>!0===e||"true"===e,onClick(){this.isTrue(this.disabled)||this.$emit("click")}}},[["render",function(n,u,c,m,f,p){const g=d;return c.text?(e(),t(g,{key:0,class:i(["uni-tag",p.classes]),style:r(c.customStyle),onClick:p.onClick},{default:s((()=>[a(l(c.text),1)])),_:1},8,["class","style","onClick"])):o("",!0)}],["__scopeId","data-v-f9b60738"]]),S=k({__name:"s-address-item",props:{item:{type:Object,default(){}},hasBorderBottom:{type:Boolean,defult:!0}},setup(r){const d=r,k=()=>{y.$router.go("/pages/user/address/edit",{id:d.item.id})};return(r,S)=>{const v=n(u("uni-tag"),B),h=_,C=x,j=b;return e(),t(h,{class:i(["address-item ss-flex ss-row-between ss-col-center",[{"border-bottom":d.hasBorderBottom}]])},{default:s((()=>[c(m.isEmpty)(d.item)?(e(),t(h,{key:1},{default:s((()=>[f(h,{class:"address-text ss-m-b-10"},{default:s((()=>[a("请选择收货地址")])),_:1})])),_:1})):(e(),t(h,{key:0,class:"item-left"},{default:s((()=>[f(h,{class:"area-text ss-flex ss-col-center"},{default:s((()=>[d.item.defaultStatus?(e(),t(v,{key:0,class:"ss-m-r-10",size:"small","custom-style":"background-color: var(--ui-BG-Main); border-color: var(--ui-BG-Main); color: #fff;",text:"默认"})):o("",!0),a(" "+l(d.item.areaName),1)])),_:1}),f(h,{class:"address-text"},{default:s((()=>[a(l(d.item.detailAddress),1)])),_:1}),f(h,{class:"person-text"},{default:s((()=>[a(l(d.item.name)+" "+l(d.item.mobile),1)])),_:1})])),_:1})),p(r.$slots,"default",{},(()=>[f(j,{class:"ss-reset-button edit-btn",onClick:g(k,["stop"])},{default:s((()=>[f(h,{class:"edit-icon ss-flex ss-row-center ss-col-center"},{default:s((()=>[f(C,{src:c(y).$url.static("/static/images/edit.png")},null,8,["src"])])),_:1})])),_:1})]),!0)])),_:3},8,["class"])}}},[["__scopeId","data-v-71a4544f"]]);export{S as _};
