import{r as e,al as u,E as n,am as C,W as p,an as f,e as i,p as E,a as S,f as a}from"./app-k0jcl5PQ.js";const A=[{application:i.VIDEOS,action:a.Videos.PLAY_VIDEO},{application:i.INTERACTIVES,action:a.Interactives.VIEW_INTERACTIVE},{application:i.CLIPS,action:a.Clips.PLAY_CLIP},{application:i.SERIES,action:a.Series.SERIES},{application:i.PLAYLISTS,action:a.Playlists.PLAYLIST},{application:i.LIBRARIES,action:a.Libraries.FOLDER},{application:i.SUBJECT,action:a.Subjects.CLASSIFICATION},{application:i.MOVIES_AND_TV,action:a.MoviesAndTv.COMPANY_DASHBOARD}],o={isSearchResultClickthrough(t){return!(t!=null&&t.application)||!(t!=null&&t.action)?!1:A.some(r=>r.application===t.application&&r.action===t.action)},isPageViewEvent(t){if(t.type!==e.PageView)return!1;const r=t.data;return!(r!=null&&r.isError)},isPostSearchPageViewEvent(t){var l;const r=t.data,s=r==null?void 0:r.appLink;if((s==null?void 0:s.application)===i.SEARCH)return!1;const c=(l=S.getPreviousRoute())==null?void 0:l.appLink;return(c==null?void 0:c.application)===i.SEARCH},isExploreTopicsEvent(t){return!(t.type!==e.Click||t.actionContext.entity!==n.Classification)},isSearch(t){return t.type===e.Search?t.actionContext.location===E.SearchBar:t.type===e.Filter?t.actionContext.productArea===f(i.SEARCH):!1},isSearchClickThrough(t){var r;return!(t.type!==e.Click||t.actionContext.productArea!==f(i.SEARCH)||Array.isArray(t.data)||!((r=t==null?void 0:t.data)!=null&&r.search))},isBookACallEvent(t){return!(t.type!==e.Click||t.actionContext.entity!==n.Url||t.actionContext.descriptor!==u.BookACall)},isStreamEvent(t){return t.type===e.Stream},isShareEvent(t){return t.type!==e.Share?!1:t.actionContext.workflowPhase!==p.Start},isResourceDownloadEvent(t){return t.type!==e.Download?!1:t.actionContext.entity===n.Resource},isInviteEvent(t){return t.type!==e.SendEmail?!1:t.actionContext.descriptor===C.InviteColleague},isPlayerDevicesCtaEvent(t){return!(t.type!==e.Click||t.actionContext.entity!==n.DevicesCta)},isIntegrationsEvent(t){return!(t.type!==e.Click||t.actionContext.entity!==n.Integration)},isSupportedClickEvent(t){return!!(o.isExploreTopicsEvent(t)||o.isSearchClickThrough(t)||o.isBookACallEvent(t)||o.isPlayerDevicesCtaEvent(t)||o.isIntegrationsEvent(t))},isUpgradeFormEvent(t){return!(t.type!==e.Submit||t.actionContext.descriptor!==u.RequestBdmTrial)}};export{o as A};
//# sourceMappingURL=DjpUaGGv.chunk.js.map
