import{j as c,a8 as e}from"./admin.js?ver=1.3.1";const r={GENERAL:"general",BRANDING:"branding",LICENSING:"licensing",YOUTUBE:"youtube",PERFORMANCE:"performance",PLAYLIST:"playlist",ANALYTICS:"analytics",INTEGRATIONS:"integrations",EXPORT:"export",MIGRATION:"migration",PRESETS:"presets",BROWSER_STORAGE:"browser_storage",STORAGE:"storage"},u=[r.LICENSING,r.PLAYLIST,r.ANALYTICS,r.INTEGRATIONS,r.BROWSER_STORAGE,r.PERFORMANCE,r.STORAGE],d=["mailchimp","webhook"];function S(){const n=c(()=>{var t;return!!((t=window.fluentFrameworkAdmin)!=null&&t.has_pro)}),l=t=>({[r.PLAYLIST]:{title:e("Playlist is a Pro Feature"),description:e("Upgrade to Pro to create beautiful playlists with advanced features including:"),features:[e("Unlimited playlists and media"),e("Advanced playlist layouts and positioning"),e("Shuffle and continuous play options"),e("Full appearance customization"),e("Playlist analytics and tracking"),e("Playlist templates and presets"),e("Advanced keyboard controls")],upgradeUrl:a(r.PLAYLIST)},[r.ANALYTICS]:{title:e("Advanced Analytics With Pro"),description:e("Get detailed insights into your media performance with Advanced Analytics."),features:[e("Detailed viewer analytics"),e("Watch time tracking"),e("Engagement metrics"),e("Geographic data"),e("Device and browser statistics"),e("Custom date ranges"),e("Real-time monitoring")],upgradeUrl:a(r.ANALYTICS)},[r.INTEGRATIONS]:{title:e("More Integrations With Pro"),description:e("Connect with powerful third-party services including:"),features:[e("Mailchimp integration"),e("Webhook integration")],upgradeUrl:a(r.INTEGRATIONS)},[r.BROWSER_STORAGE]:{title:e("Browser Progress Tracking With Pro"),description:e("Enhance user experience with browser-based progress tracking:"),features:[e("Store playback progress in browser storage"),e("Reduce server load with client-side tracking"),e("Faster progress restoration"),e("Better performance for high-traffic sites"),e("Privacy-friendly local storage"),e("Automatic cleanup of expired data"),e("Works across browser sessions"),e("No additional server requests needed")],upgradeUrl:a(r.BROWSER_STORAGE)},[r.STORAGE]:{title:e("Advanced Storage With Pro"),description:e("Store or stream your media from external storage services:"),features:[e("BunnyCDN Storage"),e("BunnyCDN Stream"),e("Mux Video"),e("Mux Stream"),e("Gumlet Video"),e("Gumlet Stream"),e("Cloudflare R2 Storage"),e("Cloudflare Stream")],upgradeUrl:a(r.STORAGE)}})[t]||{title:e("This is a Pro Feature"),description:e("Unlock advanced features and capabilities with FluentPlayer Pro."),features:[]},s=t=>n.value?!0:!u.includes(t),a=(t=null)=>{let i="https://fluentplayer.com/";return t&&(i+=`?feature=${encodeURIComponent(t)}`),i};return{isProActive:n,hasFeature:s,getFeatureConfig:l,getUpgradeUrl:a,showUpgradeNotification:t=>{},requiresPro:(t,i=null)=>s(t)?i&&typeof i=="function"?i():!0:!1,isProEmailProvider:t=>d.includes(t==null?void 0:t.toLowerCase()),getEmailProviderProConfig:t=>{const i=(t==null?void 0:t.toLowerCase())||"";let o=[];return i.includes("mailchimp")?o=[e("Connect with Mailchimp email marketing platform")]:i.includes("webhook")?o=[e("Send emails to any external service via webhooks")]:o=[e("Advanced email marketing integration"),e("Automated subscriber management"),e("Custom webhook configurations"),e("Enhanced email capture capabilities"),e("Professional email marketing tools"),e("Advanced integration options")],{title:e("%s is a Pro Feature",t),description:e("Upgrade to Pro to use %s integration for email capture.",t),features:o,upgradeUrl:a("email_capture")}}}}export{r as F,S as u};
