define(["exports","./basetab.js","./../modules/emby-elements/guide/guide.js"],function(_exports,_basetab,_guide){function GuideTab(view){_basetab.default.apply(this,arguments)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,Object.assign(GuideTab.prototype,_basetab.default.prototype),GuideTab.prototype.onResume=function(options){var instance=this;return _basetab.default.prototype.onResume.apply(instance,arguments).then(function(){var hasFocus=instance.view.contains(document.activeElement),guideInstance=(guideInstance=instance.guideInstance)||(instance.guideInstance=new _guide.default({element:instance.view,serverId:instance.apiClient.serverId(),condensed:!0,dateButton:!1})),item=(options=options||{}).item||{};return options.scrollToChannelId="TvChannel"===item.Type?item.Id:null,options.focusOnScroll=hasFocus,options.scrollBehavior="instant",guideInstance.resume(options)})},GuideTab.prototype.onPause=function(){_basetab.default.prototype.onPause.apply(this,arguments);var guideInstance=this.guideInstance;guideInstance&&guideInstance.pause()},GuideTab.prototype.destroy=function(){_basetab.default.prototype.destroy.apply(this,arguments);var guideInstance=this.guideInstance;guideInstance&&guideInstance.destroy(),this.guideInstance=null};_exports.default=GuideTab});