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