import{aS as p}from"./index-BZco6cza.js";import{F as u,P as t,Q as a,R as s,Z as y,a6 as n,X as l,_ as b,W as v,a1 as k,a2 as r,a0 as o}from"./vendor-DJC-2VPc.js";const _={key:1,class:"vc-address-selection__no-address"},B=u({__name:"address-selection",props:{readonly:{type:Boolean},disabled:{type:Boolean},address:{},placeholder:{}},emits:["change"],setup($){return(e,d)=>{const c=t("VcIcon"),i=t("VcButton");return s(),a("div",{class:y(["vc-address-selection",{"vc-address-selection--readonly":e.readonly,"vc-address-selection--disabled":e.disabled}])},[e.address?(s(),a(n,{key:0},[l(p,{class:"vc-address-selection__address","data-test-id":"selected-address-label",address:e.address},null,8,["address"]),e.readonly?v("",!0):(s(),b(i,{key:0,disabled:e.disabled,variant:"outline",icon:"",size:"xs",class:"vc-address-selection__button","data-test-id":"select-address-button",onClick:d[0]||(d[0]=m=>e.$emit("change"))},{default:k(()=>[l(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{B as _};
//# sourceMappingURL=address-selection.vue_vue_type_script_setup_true_lang-B0Add-rk.js.map
