!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="6f50b3a8-dbaf-4110-b7ac-aac8513c45f8",t._sentryDebugIdIdentifier="sentry-dbid-6f50b3a8-dbaf-4110-b7ac-aac8513c45f8")}catch(a){}}();import{bW as t,aZ as e,aM as a,aC as o,aE as s,aD as i,aA as r,aO as l,aB as n,aN as d,aP as c,b5 as g,c3 as p,b7 as f,aY as u}from"./202e72b1.js";import{D as b}from"./index.6fbec1df.js";import{S as y,M as m,b as x,g as h}from"./menu.3aabb652.js";import"./use-text-value.f42341bb.js";import"./calculate-active-index.89a1159b.js";import"./use-tree-walker.db7c47ad.js";const v={class:"py-1"},k={__name:"AdditionalOptions",emits:["reply","edit","delete"],setup(k){const w=t({top:"0px",bottom:"0px",right:"0px",left:"0px"}),_=t=>{const e=document.getElementById("outside-dynamic-scroller").getBoundingClientRect(),a=t.target.getBoundingClientRect();a.top+a.height>e.height?(w.top=a.top-e.top+a.height-42+"px",w.bottom=e.bottom-a.bottom+"px"):(w.top=a.top-e.top+"px",w.bottom=e.bottom-a.bottom+"px"),w.right=e.right-a.right+"px",w.left=a.left-e.left-224+"px"};return(t,k)=>(s(),e(o(h),{as:"div",class:"relative inline-block text-left",onClick:_},{default:a((({open:h})=>[i(o(y),{class:c(["w-full flex-col gap-0.5 rounded-full px-4 py-2 hover:bg-gray-100 focus:bg-gray-100 active:bg-opacity-50 dark:hover:bg-gray-500 active:dark:bg-opacity-50",{flex:h,"hidden group-hover:flex":!h}])},{default:a((()=>[(s(),r(d,null,l(3,(t=>n("div",{key:t.id,class:"size-1.5 rounded-full bg-indigo-500 dark:bg-white"}))),64))])),_:2},1032,["class"]),(s(),e(g,{to:"#outside-dynamic-scroller"},[i(u,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:a((()=>[i(o(m),{tabindex:"1",style:p({top:o(w).top,bottom:o(w).bottom,right:o(w).right,left:o(w).left}),class:"absolute z-30 h-fit w-56 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black/5 focus:outline-none dark:divide-gray-400 dark:bg-blue-800"},{default:a((()=>[n("div",v,[i(o(x),{onClick:k[0]||(k[0]=e=>t.$emit("reply"))},{default:a((({active:t})=>[n("button",{class:c([t?"bg-gray-100 text-gray-900 dark:bg-blue-700":"text-gray-700","group flex w-full items-center px-4 py-2 text-sm dark:text-white"])},[i(o(b),{class:"mr-3 size-5 text-gray-400","aria-hidden":"true"}),k[1]||(k[1]=f(" Reply "))],2)])),_:1})])])),_:1},8,["style"])])),_:1})]))])),_:1}))}};export{k as default};