import e from"../../_util/classNames.mjs";import{flattenChildren as t}from"../../_util/props-util/index.mjs";import{mobileProps as n}from"./interface.mjs";import{Transition as r,createVNode as i,defineComponent as a,ref as o}from"vue";var s=a({compatConfig:{MODE:3},name:`MobilePopupInner`,inheritAttrs:!1,props:n,emits:[`mouseenter`,`mouseleave`,`mousedown`,`touchstart`,`align`],setup(n,{expose:a,slots:s}){let c=o();return a({forceAlign:()=>{},getElement:()=>c.value}),()=>{let{zIndex:a,visible:o,prefixCls:l,mobile:{popupClassName:u,popupStyle:d,popupMotion:f={},popupRender:p}={}}=n,m={zIndex:a,...d},h=t(s.default?.());h.length>1&&(h=i(`div`,{class:`${l}-content`},[h])),p&&(h=p(h));let g=e(l,u);return i(r,{ref:c,...f},{default:()=>[o?i(`div`,{class:g,style:m},[h]):null]})}}});export{s as default};