import{cm as s,az as a,cn as c,n as l,M as i}from"./app-k0jcl5PQ.js";import{I as u}from"./C5n0s02L.chunk.js";const p={canEmbed(e){return["video","interactive","clip"].includes(e)},canAddPolicies(e){return["interactive"].includes(e)},getEnabledIntegrations(e,t){return u.getShareIntegrations(e,t).filter(n=>n.enabled).map(n=>n.id)},getShareSettingsInitialValues(e,t){var r,n;return{preventScrubbing:((r=e==null?void 0:e.options)==null?void 0:r.preventScrubbing)??(t==null?void 0:t.preventScrubbing)??!1,immediateFeedback:((n=e==null?void 0:e.options)==null?void 0:n.immediateFeedback)??(t==null?void 0:t.immediateFeedback)??!1}},getEnabledSettingsField(e){return{showImmediateFeedbackField:e==="interactive",showPreventScrubbingField:e==="interactive"}},getSharableEntityType(e){switch(e.objectTypeId){case i.Video:return"video";case i.Playlist:return"playlist";case i.Subject:return"subject";case i.Series:return"series";case i.Interactive:return"interactive";case i.Clip:return"clip"}},getFetchFunctionByType:e=>{switch(e){case"playlist":return t=>a(l.playlistWithThumbnailAndCount(t));case"series":return t=>a(c.seriesWithThumbnailAndCount(t))}return s.getFetchFunctionByType(e)},getAnalyticsEntity(e){return s.getAnalyticsEntity(e)},getAnalyticsOptions(e){return s.getAnalyticsOptions(e)}};export{p as S};
//# sourceMappingURL=D-iHOjjO.chunk.js.map
