define(["globalize","shell","browser","apphost"],function(globalize,shell,browser,appHost){"use strict";functiongetProductInfo(feature){returnnull}functionbeginPurchase(feature,email){appHost.supports("externalpremium")?shell.openUrl("https://emby.media/premiere"):require(["alert"],function(alert){alert("Learn more about Emby Premiere on the Emby website.")})}functionrestorePurchase(id){returnPromise.reject()}functiongetSubscriptionOptions(){varoptions=[];returnoptions.push({id:"embypremiere",title:globalize.translate("sharedcomponents#HeaderBecomeProjectSupporter"),requiresEmail:!1}),Promise.resolve(options)}functionisUnlockedByDefault(feature,options){return"playback"===feature||"livetv"===feature?Promise.resolve():Promise.reject()}functiongetAdminFeatureName(feature){returnfeature}functiongetRestoreButtonText(){returnglobalize.translate("sharedcomponents#HeaderAlreadyPaid")}functiongetPeriodicMessageIntervalMs(feature){return"playback"===feature?browser.tv||browser.mobile?864e5:3456e5:0}return{getProductInfo:getProductInfo,beginPurchase:beginPurchase,restorePurchase:restorePurchase,getSubscriptionOptions:getSubscriptionOptions,isUnlockedByDefault:isUnlockedByDefault,getAdminFeatureName:getAdminFeatureName,getRestoreButtonText:getRestoreButtonText,getPeriodicMessageIntervalMs:getPeriodicMessageIntervalMs}});