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