import e from"../../_util/props-util/initDefaultProps.mjs";import t from"../../_util/PortalWrapper.mjs";import{drawerProps as n}from"./IDrawerPropTypes.mjs";import r from"./DrawerChild.mjs";import{createVNode as i,defineComponent as a,ref as o}from"vue";var s=a({compatConfig:{MODE:3},inheritAttrs:!1,props:e(n(),{prefixCls:`drawer`,placement:`left`,getContainer:`body`,level:`all`,duration:`.3s`,ease:`cubic-bezier(0.78, 0.14, 0.15, 0.86)`,afterVisibleChange:()=>{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:``,keyboard:!0,forceRender:!1,autofocus:!0}),emits:[`handleClick`,`close`],setup(e,{emit:n,slots:a}){let s=o(null),c=e=>{n(`handleClick`,e)},l=e=>{n(`close`,e)};return()=>{let{getContainer:n,wrapperClassName:o,rootClassName:u,rootStyle:d,forceRender:f,...p}=e,m=null;if(!n)return i(r,{...p,rootClassName:u,rootStyle:d,open:e.open,onClose:l,onHandleClick:c,inline:!0},a);let h=!!a.handler||f;return(h||e.open||s.value)&&(m=i(t,{autoLock:!0,visible:e.open,forceRender:h,getContainer:n,wrapperClassName:o},{default:({visible:t,afterClose:n,...o})=>i(r,{ref:s,...p,...o,rootClassName:u,rootStyle:d,open:t===void 0?e.open:t,afterVisibleChange:n===void 0?e.afterVisibleChange:n,onClose:l,onHandleClick:c},a)})),m}}});export{s as default};