try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b09d7886-91d5-42c0-9526-09004dfc5d38`,e._sentryDebugIdIdentifier=`sentry-dbid-b09d7886-91d5-42c0-9526-09004dfc5d38`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,Hm as n,Sr as r,ei as i,jg as a,ng as o,pi as s}from"./entry.client-mpghtlrl.js";import{ot as c}from"./xds-react-components-ihgca01z.js";import{_r as l}from"./xds-icons-m106f2fc.js";var u=e(a(),1),d=(0,u.createContext)({}),f=()=>{let e=(0,u.useContext)(d);if(!e)throw Error(`This hook can only be used within the GuideSplitActionItem`);return e},p=t(),m=e(s(),1),h=o(),g=e=>{let t=(0,p.c)(12),{timeSince:a,isRowActive:o,verticalAlignment:s,onMenuOpenChange:d,children:f}=e,g=o===void 0?!1:o,_=s===void 0?`center`:s,{locMoreOptions:v}=n(),[y,b]=(0,u.useState)(!1),x=(0,u.useId)(),S;t[0]===d?S=t[1]:(S=e=>{b(e),d?.(e)},t[0]=d,t[1]=S);let C=S,w=!!a&&!g&&!y,T=`split-action-menu-${x}`,E;t[2]!==_||t[3]!==v||t[4]!==w||t[5]!==a?(E=e=>{let{toggleMenu:t,ref:n,ariaExpanded:o,ariaHasPopup:s,ariaControls:c}=e;return(0,h.jsx)(r,{ref:n,as:`button`,className:(0,m.default)(`min-w-items-notification-split-action-button-width flex h-full flex-row`,`justify-center p-component-action-icon-standard-container-padding-all`,_===`start`?`items-start`:`items-center`),kind:`commonIconInvisible`,onPress:t,"aria-label":v(),"aria-haspopup":s,"aria-expanded":o,"aria-controls":c,tooltipContent:v(),children:(0,h.jsxs)(`div`,{className:`grid`,children:[(0,h.jsx)(i,{icon:(0,h.jsx)(l,{}),size:`cta`,className:(0,m.default)(`col-start-1 row-start-1 m-auto`,{invisible:w})}),(0,h.jsx)(`span`,{className:(0,m.default)(`col-start-1 row-start-1 m-auto text-item-visible-container-default-content-secondary-rest type-subtitle3`,{invisible:!w}),children:a})]})})},t[2]=_,t[3]=v,t[4]=w,t[5]=a,t[6]=E):E=t[6];let D;return t[7]!==T||t[8]!==C||t[9]!==E||t[10]!==f?(D=(0,h.jsx)(`div`,{children:(0,h.jsx)(c,{overlayId:T,onOpenChange:C,backdrop:!0,portal:!0,trigger:E,children:f})}),t[7]=T,t[8]=C,t[9]=E,t[10]=f,t[11]=D):D=t[11],D};export{d as n,f as r,g as t};