define(["apphost","globalize","shell","browser","layoutManager"],function(appHost,globalize,shell,browser,layoutManager){"use strict";var isElectron=-1!==navigator.userAgent.toLowerCase().indexOf("electron");function getPremiumInfoUrl(){return browser.tizen||browser.orsay?"https://emby.media/premieresamsung":"https://emby.media/premiere"}return{getProductInfo:function(feature){return null},beginPurchase:function(feature,email){return appHost.supports("externalpremium")?shell.openUrl(getPremiumInfoUrl()):require(["alert"],function(alert){alert("Please visit "+getPremiumInfoUrl())}),Promise.reject()},restorePurchase:function(id){return Promise.reject()},getSubscriptionOptions:function(){var options=[];return options.push({id:"embypremiere",title:globalize.translate("HeaderBecomeProjectSupporter"),requiresEmail:!1}),Promise.resolve(options)},isUnlockedByDefault:function(feature,options){return("playback"===feature||"playback-tv"===feature)&&(!(layoutManager.tv||"playback-tv"===feature||self.Windows||isElectron)||browser.operaTv||browser.tizen||browser.orsay||browser.web0s||browser.netcast)?Promise.resolve():Promise.reject()},getAdminFeatureName:function(feature){return"playback"===feature&&(layoutManager.tv||self.Windows||isElectron)?"embytheater-unlock":feature},getRestoreButtonText:function(){return globalize.translate("HeaderAlreadyPaid")},getPeriodicMessageIntervalMs:function(feature){return"playback"===feature&&(layoutManager.tv||self.Windows||isElectron)?864e5:0},getPremiumInfoUrl:getPremiumInfoUrl}});