const e=require("../../_util/props-util/initDefaultProps.js"),t=require("../../_util/PortalWrapper.js"),n=require("./IDrawerPropTypes.js"),r=require("./DrawerChild.js");let i=require("vue");var a=(0,i.defineComponent)({compatConfig:{MODE:3},inheritAttrs:!1,props:e.default(n.drawerProps(),{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 o=(0,i.ref)(null),s=e=>{n(`handleClick`,e)},c=e=>{n(`close`,e)};return()=>{let{getContainer:n,wrapperClassName:l,rootClassName:u,rootStyle:d,forceRender:f,...p}=e,m=null;if(!n)return(0,i.createVNode)(r.default,{...p,rootClassName:u,rootStyle:d,open:e.open,onClose:c,onHandleClick:s,inline:!0},a);let h=!!a.handler||f;return(h||e.open||o.value)&&(m=(0,i.createVNode)(t.default,{autoLock:!0,visible:e.open,forceRender:h,getContainer:n,wrapperClassName:l},{default:({visible:t,afterClose:n,...l})=>(0,i.createVNode)(r.default,{ref:o,...p,...l,rootClassName:u,rootStyle:d,open:t===void 0?e.open:t,afterVisibleChange:n===void 0?e.afterVisibleChange:n,onClose:c,onHandleClick:s},a)})),m}}});exports.default=a;