var s=Object.defineProperty,e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,d=(e,t,a)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;import{s as l,c as o,a as r,b as i,d as c,e as n,f,g as u,u as p,m,l as _,t as I,p as g,X as x,i as C,F as b,j as y,S as k}from"./index-45b322f7.js";import{d as w,f as h,a as j}from"./index.f474d5f6.js";import{_ as v}from"./uni-tag.2e567b2b.js";import{_ as O}from"./_plugin-vue_export-helper.1b428a4d.js";const A=O({__name:"s-position-item-card",props:{addressItem:{type:Object,default:{}}},emits:["addressClicked"],setup(s,{emit:x}){const C=s,b=l.$store("cart"),y=l.$store("address"),k=o((()=>C.addressItem.id==y.addressList[0].id)),j=o((()=>b.receiptAddress.receiptId==C.addressItem.id));function O(){l.$router.go("/pages/user/location-detail",((s,l)=>{for(var o in l||(l={}))t.call(l,o)&&d(s,o,l[o]);if(e)for(var o of e(l))a.call(l,o)&&d(s,o,l[o]);return s})({isNew:!1},C.addressItem))}function A(){b.setAddressId(C.addressItem.id),b.getList(),x("addressClicked")}return(e,t)=>{const a=r(i("uni-tag"),v),d=g;return c(),n(d,{class:"itemCard ss-flex"},{default:f((()=>[u(d,{class:"position-left ss-flex-1",onClick:A},{default:f((()=>[u(d,{class:"ss-flex ss-line-2 position"},{default:f((()=>[p(k)?(c(),n(a,{key:0,class:"default-tag",size:"small",text:"默认"})):m("",!0),_(" "+I(s.addressItem.wholeaddress),1)])),_:1}),u(d,{class:"ss-flex user-ifo ss-m-t-8"},{default:f((()=>[u(d,null,{default:f((()=>[_(I(s.addressItem.name),1)])),_:1}),u(d,{class:"ss-m-l-10"},{default:f((()=>[_(I(s.addressItem.phone),1)])),_:1})])),_:1})])),_:1}),u(d,{class:"position-mid ss-flex ss-col-center ss-row-center"},{default:f((()=>[p(j)?(c(),n(p(w),{key:0,fill:"#276FF5",size:"20"})):m("",!0)])),_:1}),u(d,{class:"position-right ss-flex ss-row-between ss-col-center"},{default:f((()=>[u(d,{class:"diving-line"}),u(p(h),{size:"20",fill:"#999999",onClick:O})])),_:1})])),_:1})}}},[["__scopeId","data-v-5467a3e8"]]),$=O({__name:"s-position-item",props:{},emits:["clickCloseIconPosition","addressChanged"],setup(s,{emit:e}){const t=l.$store("address"),a=l.$store("cart"),d=o((()=>t.addressListForChoose));function r(){l.$router.go("/pages/user/location-detail",{isNewAddress:!0})}return x((()=>{t.handleListForChoose(a.receiptAddress.receiptId)})),(s,t)=>{const a=g,l=k;return c(),n(a,{class:"ss-flex-col position-body"},{default:f((()=>[u(a,{class:"ss-flex ss-col-center ss-row-center"},{default:f((()=>[u(a,{class:"windowTittle"},{default:f((()=>[_("配送至")])),_:1}),u(p(j),{class:"closeOne",size:"16",fill:"#999999",onClick:t[0]||(t[0]=()=>e("clickCloseIconPosition"))})])),_:1}),u(l,{class:"position-item ss-flex-col","scroll-y":!0},{default:f((()=>[(c(!0),C(b,null,y(p(d),(s=>(c(),n(p(A),{addressItem:s,onAddressClicked:t=>e("addressChanged",s.id)},null,8,["addressItem","onAddressClicked"])))),256))])),_:1}),u(a,{class:"addBtnBox"},{default:f((()=>[u(a,{class:"addBtn",onClick:r},{default:f((()=>[_("新增收货地址")])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-cccd9e8a"]]);export{$ as _};
