import{Q as D}from"./index-Dqv5IkpS.js";import{K as k,aZ as M,S as a,P as p,M as u,b as o,T as s,V as t,a7 as w,U as i,W as c,aq as B}from"./vendor-bSWkQivH.js";const h=k({__name:"address-dropdown-menu",props:{address:{},placement:{default:"bottom-end"}},emits:["edit","delete","toggleFavorite"],setup(f,{emit:_}){const d=_,g=f,{address:n,placement:V}=M(g),{isCorporateMember:v}=D(),b=()=>{d("edit")},y=()=>{n.value.isDefault||d("delete")};return(e,m)=>{const C=a("VcButton"),l=a("VcIcon"),r=a("VcMenuItem"),$=a("VcDropdownMenu");return u(),p($,{"y-offset":4,"x-offset":0,placement:o(V)},{trigger:s(()=>[t(C,{"aria-label":e.$t("common.labels.actions"),icon:"cog",color:"secondary",variant:"outline",size:"xs"},null,8,["aria-label"])]),content:s(()=>[t(r,{color:"secondary",onClick:b},{default:s(()=>[t(l,{name:"edit"}),i("span",null,c(e.$t("common.buttons.edit")),1)]),_:1}),o(v)?(u(),p(r,{key:0,color:"secondary",onClick:m[0]||(m[0]=I=>e.$emit("toggleFavorite"))},{default:s(()=>[t(l,{name:"whishlist"}),i("span",null,c(o(n).isFavorite?e.$t("pages.company.info.remove_from_favorites"):e.$t("pages.company.info.add_to_favorites")),1)]),_:1})):w("",!0),t(r,{title:o(n).isDefault?e.$t("pages.company.info.address_not_delete_message"):void 0,disabled:o(n).isDefault,color:"secondary",onClick:y},{default:s(()=>[t(l,{class:B(o(n).isDefault?"fill-neutral-400":"fill-danger"),name:"delete-2"},null,8,["class"]),i("span",null,c(e.$t("common.buttons.delete")),1)]),_:1},8,["title","disabled"])]),_:1},8,["placement"])}}});export{h as _};
//# sourceMappingURL=address-dropdown-menu.vue_vue_type_script_setup_true_lang-BbzZg3Bj.js.map
