import{a3 as k}from"./index-VF2htjz-.js";import{F as w,b1 as B,P as a,_ as u,R as f,e as o,a1 as s,X as t,W as M,T as i,a0 as c,Z as F,a8 as I}from"./vendor-BoG6G8aK.js";const z=w({__name:"address-dropdown-menu",props:{address:{},placement:{default:"bottom-end"}},emits:["edit","delete","toggleFavorite"],setup(_,{emit:g}){const d=g,v=_,{address:n,placement:V}=B(v),{isCorporateMember:b}=k(),y=()=>{d("edit")},C=()=>{n.value.isDefault||d("delete")};return(e,m)=>{const $=a("VcButton"),l=a("VcIcon"),r=a("VcMenuItem"),D=a("VcDropdownMenu");return f(),u(D,{"y-offset":4,"x-offset":0,placement:o(V)},{trigger:s(({triggerProps:p})=>[t($,I({"aria-label":e.$t("common.labels.actions"),icon:"cog",color:"secondary",variant:"outline",size:"xs"},p),null,16,["aria-label"])]),content:s(()=>[t(r,{color:"secondary",onClick:y},{default:s(()=>[t(l,{name:"edit"}),i("span",null,c(e.$t("common.buttons.edit")),1)]),_:1}),o(b)?(f(),u(r,{key:0,color:"secondary",onClick:m[0]||(m[0]=p=>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})):M("",!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:C},{default:s(()=>[t(l,{class:F(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{z as _};
//# sourceMappingURL=address-dropdown-menu.vue_vue_type_script_setup_true_lang-DpVBJNhH.js.map
