"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),g=require("../../_util/PortalWrapper.js"),w=require("../../_util/props-util/initDefaultProps.js"),m=require("./DrawerChild.js"),N=require("./IDrawerPropTypes.js"),y=o.defineComponent({compatConfig:{MODE:3},inheritAttrs:!1,props:w.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:a,slots:t}){const n=o.ref(null),l=r=>{a("handleClick",r)},s=r=>{a("close",r)};return()=>{const{getContainer:r,wrapperClassName:b,rootClassName:i,rootStyle:u,forceRender:h,...d}=e;let c=null;if(!r)return o.createVNode(m.default,{...d,rootClassName:i,rootStyle:u,open:e.open,onClose:s,onHandleClick:l,inline:!0},t);const f=!!t.handler||h;return(f||e.open||n.value)&&(c=o.createVNode(g.default,{autoLock:!0,visible:e.open,forceRender:f,getContainer:r,wrapperClassName:b},{default:({visible:C,afterClose:p,...k})=>o.createVNode(m.default,{ref:n,...d,...k,rootClassName:i,rootStyle:u,open:C!==void 0?C:e.open,afterVisibleChange:p!==void 0?p:e.afterVisibleChange,onClose:s,onHandleClick:l},t)})),c}}});exports.default=y;
