text: YUI.add("moodle-core-lockscroll",function(l,t){l.namespace("M.core").LockScroll=l.Base.create("lockScroll",l.Plugin.Base,[],{_enabled:!1,destructor:function(){this.disableScrollLock()},enableScrollLock:function(t){var e,o;if(!this.isActive()&&this.shouldLockScroll(t))return this._enabled=!0,e=(t=l.one(l.config.doc.body)).getComputedStyle("width"),t.addClass("lockscroll"),o=parseInt(t.getAttribute("data-activeScrollLocks"),10)||0,t.setAttribute("data-activeScrollLocks",o+1),0===o&&t.setStyle("maxWidth",e),this},shouldLockScroll:function(t){var e=this.get("host").get("boundingBox").get("region").height,o=l.config.win.innerHeight||l.config.doc.documentElement.clientHeight||0;return!(!t&&o-10<e)},updateScrollLock:function(t){return this.shouldLockScroll(t)?this.enableScrollLock(t):this.disableScrollLock(!0),this},disableScrollLock:function(t){var e,o;return this.isActive()&&(this._enabled=!1,e=l.one(l.config.doc.body),o=parseInt(e.getAttribute("data-activeScrollLocks"),10)||1,!t&&1!==o||(e.removeClass("lockscroll"),e.setStyle("maxWidth",null)),e.setAttribute("data-activeScrollLocks",o-1)),this},isActive:function(){return this._enabled}},{NS:"lockScroll",ATTRS:{}})},"@VERSION@",{requires:["plugin","base-build"]});