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