import{av as i}from"./index-Dqv5IkpS.js";import{K as m,S as d,L as o,M as a,aq as p,N as u,V as n,P as v,a7 as y,T as _,X as b,U as k,W as t}from"./vendor-bSWkQivH.js";const V={key:1,class:"vc-address-selection__no-address"},$=m({__name:"address-selection",props:{readonly:{type:Boolean},disabled:{type:Boolean},address:{},placeholder:{}},emits:["change"],setup(B){return(e,s)=>{const l=d("VcIcon"),r=d("VcButton");return a(),o("div",{class:p(["vc-address-selection",{"vc-address-selection--readonly":e.readonly,"vc-address-selection--disabled":e.disabled}])},[e.address?(a(),o(u,{key:0},[n(i,{class:"vc-address-selection__address",address:e.address},null,8,["address"]),e.readonly?y("",!0):(a(),v(r,{key:0,disabled:e.disabled,variant:"outline",icon:"",size:"xs",class:"vc-address-selection__button",onClick:s[0]||(s[0]=c=>e.$emit("change"))},{default:_(()=>[n(l,{name:"edit",size:"xs"})]),_:1},8,["disabled"]))],64)):(a(),o("p",V,[b(t(e.$t("common.prefixes.please"))+" ",1),k("button",{"data-test-id":"select-address-button",type:"button",class:"vc-address-selection__link",onClick:s[1]||(s[1]=c=>!e.readonly&&e.$emit("change"))},t(e.placeholder||e.$t("common.placeholders.select_address")),1)]))],2)}}});export{$ as _};
//# sourceMappingURL=address-selection.vue_vue_type_script_setup_true_lang-CVSe4ho1.js.map
