import{o as e,e as t,w as s,y as a,z as i,G as l,E as r,k as n,A as o,b as d,d as c,u,a1 as m,i as f,T as p,j as g,s as y,m as _,l as k,B as b}from"./index-520dfaee.js";import{_ as x}from"./_plugin-vue_export-helper.1b428a4d.js";const B=x({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:i,size:l,isTrue:r}=this;return["uni-tag--"+e,"uni-tag--"+l,r(t)?"uni-tag--disabled":"",r(s)?"uni-tag--"+e+"--inverted":"",r(a)?"uni-tag--circle":"",r(i)?"uni-tag--mark":"",r(s)?"uni-tag--inverted uni-tag-text--"+e:"","small"===l?"uni-tag-text--small":""].join(" ")}},methods:{isTrue:e=>!0===e||"true"===e,onClick(){this.isTrue(this.disabled)||this.$emit("click")}}},[["render",function(d,c,u,m,f,p){const g=o;return u.text?(e(),t(g,{key:0,class:l(["uni-tag",p.classes]),style:r(u.customStyle),onClick:p.onClick},{default:s((()=>[a(i(u.text),1)])),_:1},8,["class","style","onClick"])):n("",!0)}],["__scopeId","data-v-f9b60738"]]),v=x({__name:"s-address-item",props:{item:{type:Object,default(){}},hasBorderBottom:{type:Boolean,defult:!0}},setup(r){const o=r,x=()=>{y.$router.go("/pages/user/address/edit",{id:o.item.id})};return(r,v)=>{const S=d(c("uni-tag"),B),h=_,C=k,j=b;return e(),t(h,{class:l(["address-item ss-flex ss-row-between ss-col-center",[{"border-bottom":o.hasBorderBottom}]])},{default:s((()=>[u(m.isEmpty)(o.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((()=>[o.item.is_default?(e(),t(S,{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:"默认"})):n("",!0),a(" "+i(o.item.province_name)+" "+i(o.item.city_name)+" "+i(o.item.district_name),1)])),_:1}),f(h,{class:"address-text"},{default:s((()=>[a(i(o.item.address),1)])),_:1}),f(h,{class:"person-text"},{default:s((()=>[a(i(o.item.consignee)+" "+i(o.item.mobile),1)])),_:1})])),_:1})),p(r.$slots,"default",{},(()=>[f(j,{class:"ss-reset-button edit-btn",onClick:g(x,["stop"])},{default:s((()=>[f(h,{class:"edit-icon ss-flex ss-row-center ss-col-center"},{default:s((()=>[f(C,{src:u(y).$url.static("/assets/addons/shopro/uniapp/user/address/edit.png")},null,8,["src"])])),_:1})])),_:1},8,["onClick"])]),!0)])),_:3},8,["class"])}}},[["__scopeId","data-v-28fda108"]]);export{v as _};
