"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("overlayscrollbars"),a={name:"dt-scrollbar-directive",install(s){l.OverlayScrollbars.plugin(l.ClickScrollPlugin);const t=new WeakMap;s.directive("dt-scrollbar",{inserted(e,r){const c=l.OverlayScrollbars({target:e,elements:{viewport:e.children[0]}},{scrollbars:{autoHide:`${r.arg||"leave"}`,clickScroll:!0,autoHideDelay:`${!r.arg||r.arg==="leave"?0:1300}`}});e.setAttribute("data-overlayscrollbars-initialize",!0),e.classList.add("d-scrollbar"),t.set(e,c)},unbind(e){t.get(e).destroy()}})}};exports.DtScrollbarDirective=a;exports.default=a;
//# sourceMappingURL=scrollbar.cjs.map
