@clickview/lite 0.103.2 → 0.103.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +407 -407
- package/dist/bundles.json +1 -1
- package/dist/en.json +1 -1
- package/dist/scripts/{BeW5XQTb2.chunk.js → BBwi4FOJ2.chunk.js} +2 -2
- package/dist/scripts/{BeW5XQTb2.chunk.js.map → BBwi4FOJ2.chunk.js.map} +1 -1
- package/dist/scripts/{D8mi6CVp2.chunk.js → BYJa-jEI2.chunk.js} +2 -2
- package/dist/scripts/{D8mi6CVp2.chunk.js.map → BYJa-jEI2.chunk.js.map} +1 -1
- package/dist/scripts/{Drh1bb9z.chunk.js → BbJGjXBH.chunk.js} +2 -2
- package/dist/scripts/{Drh1bb9z.chunk.js.map → BbJGjXBH.chunk.js.map} +1 -1
- package/dist/scripts/BcVxkWsW.chunk.js +1 -0
- package/dist/scripts/{DOYyhXN-.chunk.js → BjtsulNM.chunk.js} +2 -2
- package/dist/scripts/{DOYyhXN-.chunk.js.map → BjtsulNM.chunk.js.map} +1 -1
- package/dist/scripts/{QVwuOts3.chunk.js → C3eIGNDs.chunk.js} +2 -2
- package/dist/scripts/{QVwuOts3.chunk.js.map → C3eIGNDs.chunk.js.map} +1 -1
- package/dist/scripts/{CfrfHGSh.chunk.js → CT3yl0jK.chunk.js} +2 -2
- package/dist/scripts/{CfrfHGSh.chunk.js.map → CT3yl0jK.chunk.js.map} +1 -1
- package/dist/scripts/{wpRpI9h02.chunk.js → CbPqWgxm2.chunk.js} +2 -2
- package/dist/scripts/{wpRpI9h02.chunk.js.map → CbPqWgxm2.chunk.js.map} +1 -1
- package/dist/scripts/{CsCjBSq62.chunk.js → Cj6PScU52.chunk.js} +2 -2
- package/dist/scripts/{CsCjBSq62.chunk.js.map → Cj6PScU52.chunk.js.map} +1 -1
- package/dist/scripts/{BD_YlxPJ.chunk.js → Cl0Kjmj6.chunk.js} +2 -2
- package/dist/scripts/{BD_YlxPJ.chunk.js.map → Cl0Kjmj6.chunk.js.map} +1 -1
- package/dist/scripts/{yfjVyowY.chunk.js → DAed0ji9.chunk.js} +2 -2
- package/dist/scripts/{yfjVyowY.chunk.js.map → DAed0ji9.chunk.js.map} +1 -1
- package/dist/scripts/{CIzlhCeS.chunk.js → Dl-8A2m-.chunk.js} +2 -2
- package/dist/scripts/{CIzlhCeS.chunk.js.map → Dl-8A2m-.chunk.js.map} +1 -1
- package/dist/scripts/{BFH_tnSb2.chunk.js → RaLi1Skr2.chunk.js} +3 -3
- package/dist/scripts/{BFH_tnSb2.chunk.js.map → RaLi1Skr2.chunk.js.map} +1 -1
- package/dist/scripts/{app-DvYKGw_S.js → app-BYLHZF74.js} +4 -4
- package/dist/scripts/{app-DvYKGw_S.js.map → app-BYLHZF74.js.map} +1 -1
- package/dist/scripts/{kLCNzxrH2.chunk.js → hWjV2SVN2.chunk.js} +2 -2
- package/dist/scripts/{kLCNzxrH2.chunk.js.map → hWjV2SVN2.chunk.js.map} +1 -1
- package/package.json +1 -1
- package/dist/scripts/C2s0ZcC4.chunk.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./DAXXjFlN.chunk.js";import{n as e}from"./B785hxeE.chunk.js";import{t}from"./C2w0pmFW.chunk.js";import{t as n}from"./wrLrTezN.chunk.js";import{d as r,u as i}from"./BX0wDJmp.chunk.js";import{y as a}from"./NlCAcBdo.chunk.js";import{t as o}from"./oPIkfKWW2.chunk.js";import{t as s}from"./CcDvlSWl2.chunk.js";import{t as c}from"./DtGDVg4O2.chunk.js";import{t as l}from"./8U-YTgZd.chunk.js";import{t as u}from"./DsXWD-Sn.chunk.js";import{t as d}from"./D_gWf2lC.chunk.js";import{t as f}from"./ZwDDc8Zd.chunk.js";import{n as p,t as m}from"./A8xLZrSw.chunk.js";import{t as h}from"./CMLErBju.chunk.js";import{t as g}from"./BQKcAczf.chunk.js";import{l as _,r as v}from"./_Cm5O72d.chunk.js";import{t as y}from"./DR9DEoQL.chunk.js";import{t as b}from"./CmV-znIi2.chunk.js";import{t as x}from"./BpFrvPNA2.chunk.js";import{n as S}from"./B-eFTZdx2.chunk.js";import{t as C}from"./DMaQV7L2.chunk.js";import{t as w}from"./CETzluXN.chunk.js";import{t as T}from"./BmR4qY-v2.chunk.js";import{t as E}from"./cX5MHowe.chunk.js";import{t as D}from"./BIO-5Tfr2.chunk.js";import{y as O}from"./
|
|
2
|
-
//# sourceMappingURL=
|
|
1
|
+
import"./DAXXjFlN.chunk.js";import{n as e}from"./B785hxeE.chunk.js";import{t}from"./C2w0pmFW.chunk.js";import{t as n}from"./wrLrTezN.chunk.js";import{d as r,u as i}from"./BX0wDJmp.chunk.js";import{y as a}from"./NlCAcBdo.chunk.js";import{t as o}from"./oPIkfKWW2.chunk.js";import{t as s}from"./CcDvlSWl2.chunk.js";import{t as c}from"./DtGDVg4O2.chunk.js";import{t as l}from"./8U-YTgZd.chunk.js";import{t as u}from"./DsXWD-Sn.chunk.js";import{t as d}from"./D_gWf2lC.chunk.js";import{t as f}from"./ZwDDc8Zd.chunk.js";import{n as p,t as m}from"./A8xLZrSw.chunk.js";import{t as h}from"./CMLErBju.chunk.js";import{t as g}from"./BQKcAczf.chunk.js";import{l as _,r as v}from"./_Cm5O72d.chunk.js";import{t as y}from"./DR9DEoQL.chunk.js";import{t as b}from"./CmV-znIi2.chunk.js";import{t as x}from"./BpFrvPNA2.chunk.js";import{n as S}from"./B-eFTZdx2.chunk.js";import{t as C}from"./DMaQV7L2.chunk.js";import{t as w}from"./CETzluXN.chunk.js";import{t as T}from"./BmR4qY-v2.chunk.js";import{t as E}from"./cX5MHowe.chunk.js";import{t as D}from"./BIO-5Tfr2.chunk.js";import{y as O}from"./CbPqWgxm2.chunk.js";import{n as k,r as A,t as j}from"./Cj6PScU52.chunk.js";t();var M=n();function N(t){let{commonVideoProps:n,hasCommonVideoPropsCompleted:N}=T({locationContext:a.VideoThumbnail}),{hasPermissions:P}=g(),ee=O(),{activePresentation:F}=f(),{hasPlayPageTranscript:I,hasNewSearch:L}=s(null),R=i(o.currentUser()),z=i(u.sharedVideo(t.objectId,t.shareId)),B=b({objectId:z.data?.id,objectTypeId:z.data?.typeId}),V=i(B.canViewClips&&c.videoClips(t.objectId)),H=i(B.canViewInteractives&&l.videoInteractives(t.objectId)),U=v({video:z.data,context:t.queryParams.context,contextId:t.queryParams.contextId,moviesAndTv:t.queryParams.mtv,currentUser:R.data}),W=_(t.objectId),G=i(!!F&&C.audiencesByPresentationId(F.id)),{shouldFetchTranscript:K,shouldShowTranscript:q}=j(t.objectId,t.shareId),{subtitles:J,chapters:Y}=i(K&&R.data?.contentRegion&&A.chaptersAndSubtitles(t.objectId,R.data.contentRegion))?.data||{},X=J?.filter(e=>!e.customer),Z=r(X&&X.length>0?X.map(e=>A.subtitleVtt(e.url,e)):[]),Q=X?.filter(e=>Z.data.find(t=>t.id===e.id))||[],$=i(d.config());m(p.getVideoMetadata({content:z.data,canonicalLink:y.getCanonicalLink({stripPresentationSlug:!0}),allowIndexing:!1})),D(U.videos??[]),h(z,{private:x}),S({id:t.objectId,app:`videos`,shareId:t.shareId});let te=E({name:z.data?.name}),ne=w(t.objectId);return z.data&&R.hasCompleted&&W.hasCompleted&&N?(0,M.jsx)(`div`,{className:`px-3`,children:(0,M.jsx)(k,{presentationSlug:null,video:z.data,clips:V.data?.data,interactives:H.data?.data,curriculums:ne,relatedVideos:U,currentUser:R.data,pointsOfInterest:W?.items,playNext:t.queryParams?.playNext,shareId:t.shareId,featureAccess:B,audiences:G.data,params:t.queryParams,canManageVideoAccess:P(e.ManageVideoAccess),tableOfContentsId:t.queryParams?.tocId,shouldShowSideTableOfContents:ee,breadcrumbs:te,commonVideoProps:n,hasTheatreMode:I,shouldShowTranscript:q&&(!K||Z.data?.length>0),vttSubtitles:Z.data||[],subtitles:Q,chapters:Y,isBot:y.isBot(),playerApiUrl:$.data?.playerApiUrl,hasNewSearch:L,liteUrl:$.data.liteUrl})}):(0,M.jsx)(M.Fragment,{})}export{N as PlaySharedVideoView};
|
|
2
|
+
//# sourceMappingURL=CT3yl0jK.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"CT3yl0jK.chunk.js","names":[],"sources":["../../src/apps/share/views/play-shared-video/PlaySharedVideoView.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Flight } from 'libs/common/flight';\n\nimport { LocationContext } from 'libs/analytics/interfaces';\n\nimport { PermissionName } from 'libs/shared/enums/PermissionName';\nimport { AudienceRequests } from 'libs/shared/flight-requests/AudienceRequests';\nimport { ClipRequests } from 'libs/shared/flight-requests/ClipRequests';\nimport { ConfigRequests } from 'libs/shared/flight-requests/ConfigRequests';\nimport { InteractiveRequests } from 'libs/shared/flight-requests/InteractiveRequests';\nimport { UserRequests } from 'libs/shared/flight-requests/UserRequests';\nimport { VideoRequests } from 'libs/shared/flight-requests/VideoRequests';\nimport { useBreadcrumbs } from 'libs/shared/hooks/useBreadcrumbs';\nimport { useCannotConsumeError } from 'libs/shared/hooks/useCannotConsumeError';\nimport { usePermissions } from 'libs/shared/hooks/usePermissions';\nimport { useSetPageMetadata } from 'libs/shared/hooks/useSetPageMetadata';\nimport { useSettings } from 'libs/shared/hooks/useSettings';\nimport { ClipCollection, Config, CurrentUser, InteractiveCollection, PresentationAudience, Video, VttSubtitleResponse } from 'libs/shared/interfaces';\nimport { PageMetadataHelper } from 'libs/shared/utils/PageMetadataHelper';\n\nimport { TranscriptRequests, TranscriptResponse } from 'shared/flight-requests/TranscriptRequests';\nimport { useActivePresentation } from 'shared/hooks/presentations/useActivePresentation';\nimport { useCommonVideoProps } from 'shared/hooks/useCommonVideoProps';\nimport { useCurriculums } from 'shared/hooks/useCurriculums';\nimport { useDeepLinks } from 'shared/hooks/useDeepLinks';\nimport { useFetchPointsOfInterest } from 'shared/hooks/useFetchPointsOfInterest';\nimport { useGetRelatedVideos } from 'shared/hooks/useGetRelatedVideos';\nimport { useVideoFeatureAccess } from 'shared/hooks/useVideoFeatureAccess';\nimport { useVideoMixin } from 'shared/hooks/useVideoMixin';\nimport { SeoHelper } from 'shared/utils/SeoHelper';\nimport { PlayPage } from 'shared/views/play/components/play-page/PlayPage';\nimport { useShouldShowSideTableOfContents } from 'shared/views/play/hooks/useShouldShowTableOfContents';\nimport { useShowTranscriptForVideo } from 'shared/views/play/hooks/useShowVideoTranscript';\n\nimport { ShareLinkPrivateError } from 'apps/share/errors/share-link-private/ShareLinkPrivateError';\nimport { ShareLinkViewProps } from 'apps/share/interfaces/ShareLinkViewProps';\n\nexport function PlaySharedVideoView(props: ShareLinkViewProps): React.ReactElement {\n const {\n commonVideoProps,\n hasCommonVideoPropsCompleted\n } = useCommonVideoProps({ locationContext: LocationContext.VideoThumbnail });\n\n const { hasPermissions } = usePermissions();\n\n const shouldShowSideTableOfContents = useShouldShowSideTableOfContents();\n\n const { activePresentation } = useActivePresentation();\n const { hasPlayPageTranscript, hasNewSearch } = useSettings(null);\n\n const currentUser = Flight.useBasicFetch<CurrentUser>(UserRequests.currentUser());\n const video = Flight.useBasicFetch<Video>(\n VideoRequests.sharedVideo(props.objectId, props.shareId)\n );\n\n const featureAccess = useVideoFeatureAccess({\n objectId: video.data?.id,\n objectTypeId: video.data?.typeId\n });\n \n const clips = Flight.useBasicFetch<ClipCollection>(\n featureAccess.canViewClips && ClipRequests.videoClips(props.objectId)\n );\n const interactives = Flight.useBasicFetch<InteractiveCollection>(\n featureAccess.canViewInteractives && InteractiveRequests.videoInteractives(props.objectId)\n );\n const relatedVideos = useGetRelatedVideos({\n video: video.data,\n context: props.queryParams.context,\n contextId: props.queryParams.contextId,\n moviesAndTv: props.queryParams.mtv,\n currentUser: currentUser.data\n });\n const pointsOfInterest = useFetchPointsOfInterest(props.objectId);\n \n const audiences = Flight.useBasicFetch<PresentationAudience[]>(\n !!activePresentation &&\n AudienceRequests.audiencesByPresentationId(activePresentation.id)\n );\n\n const { shouldFetchTranscript, shouldShowTranscript } = useShowTranscriptForVideo(props.objectId, props.shareId);\n const transcript = Flight.useBasicFetch<TranscriptResponse>(\n shouldFetchTranscript && currentUser.data?.contentRegion &&\n TranscriptRequests.chaptersAndSubtitles(props.objectId, currentUser.data.contentRegion)\n );\n const { subtitles: allSubtitles, chapters } = transcript?.data || {};\n // only show transcript for ClickView produced subtitle \n const subtitles = allSubtitles?.filter(subtitle => !subtitle.customer);\n \n const captionsRequests = (subtitles && subtitles.length > 0) ?\n subtitles.map(subtitle => TranscriptRequests.subtitleVtt(subtitle.url, subtitle)) :\n [];\n const captions = Flight.useBasicFetchAll<VttSubtitleResponse>(captionsRequests);\n const filteredSubtitles = subtitles?.filter(\n subtitle => captions.data.find(caption => caption.id === subtitle.id)\n ) || [];\n const config = Flight.useBasicFetch<Config>(ConfigRequests.config());\n\n useSetPageMetadata(PageMetadataHelper.getVideoMetadata({\n content: video.data,\n canonicalLink: SeoHelper.getCanonicalLink({ stripPresentationSlug: true }),\n allowIndexing: false\n }));\n\n useVideoMixin(relatedVideos.videos ?? []);\n useCannotConsumeError(video, { private: ShareLinkPrivateError });\n useDeepLinks({ id: props.objectId, app: 'videos', shareId: props.shareId });\n\n const breadcrumbs = useBreadcrumbs({ name: video.data?.name });\n\n const curriculums = useCurriculums(props.objectId);\n\n const dataLoaded = (\n video.data &&\n currentUser.hasCompleted &&\n pointsOfInterest.hasCompleted &&\n hasCommonVideoPropsCompleted\n );\n\n if (!dataLoaded)\n return <></>;\n\n return (\n <div className='px-3'>\n <PlayPage\n presentationSlug={null}\n video={video.data}\n clips={clips.data?.data}\n interactives={interactives.data?.data}\n curriculums={curriculums}\n relatedVideos={relatedVideos}\n currentUser={currentUser.data}\n pointsOfInterest={pointsOfInterest?.items}\n playNext={props.queryParams?.playNext}\n shareId={props.shareId}\n featureAccess={featureAccess}\n audiences={audiences.data}\n params={props.queryParams}\n canManageVideoAccess={hasPermissions(PermissionName.ManageVideoAccess)}\n tableOfContentsId={props.queryParams?.tocId}\n shouldShowSideTableOfContents={shouldShowSideTableOfContents}\n breadcrumbs={breadcrumbs}\n commonVideoProps={commonVideoProps}\n hasTheatreMode={hasPlayPageTranscript}\n shouldShowTranscript={shouldShowTranscript && (!shouldFetchTranscript || captions.data?.length > 0)}\n vttSubtitles={captions.data || []}\n subtitles={filteredSubtitles}\n chapters={chapters}\n isBot={SeoHelper.isBot()}\n playerApiUrl={config.data?.playerApiUrl}\n hasNewSearch={hasNewSearch}\n liteUrl={config.data.liteUrl}\n />\n </div>\n );\n}\n"],"mappings":"0oCAsCA,SAAgB,EAAoB,EAA+C,CACjF,GAAM,CACJ,mBACA,gCACE,EAAoB,CAAE,gBAAiB,EAAgB,cAAe,CAAC,EAErE,CAAE,kBAAmB,EAAe,EAEpC,GAAgC,EAAiC,EAEjE,CAAE,sBAAuB,EAAsB,EAC/C,CAAE,wBAAuB,gBAAiB,EAAY,IAAI,EAE1D,EAAc,EAAkC,EAAa,YAAY,CAAC,EAC1E,EAAQ,EACZ,EAAc,YAAY,EAAM,SAAU,EAAM,OAAO,CACzD,EAEM,EAAgB,EAAsB,CAC1C,SAAU,EAAM,MAAM,GACtB,aAAc,EAAM,MAAM,MAC5B,CAAC,EAEK,EAAQ,EACZ,EAAc,cAAgB,EAAa,WAAW,EAAM,QAAQ,CACtE,EACM,EAAe,EACnB,EAAc,qBAAuB,EAAoB,kBAAkB,EAAM,QAAQ,CAC3F,EACM,EAAgB,EAAoB,CACxC,MAAO,EAAM,KACb,QAAS,EAAM,YAAY,QAC3B,UAAW,EAAM,YAAY,UAC7B,YAAa,EAAM,YAAY,IAC/B,YAAa,EAAY,IAC3B,CAAC,EACK,EAAmB,EAAyB,EAAM,QAAQ,EAE1D,EAAY,EAChB,CAAC,CAAC,GACF,EAAiB,0BAA0B,EAAmB,EAAE,CAClE,EAEM,CAAE,wBAAuB,wBAAyB,EAA0B,EAAM,SAAU,EAAM,OAAO,EAKzG,CAAE,UAAW,EAAc,YAJd,EACjB,GAAyB,EAAY,MAAM,eAC3C,EAAmB,qBAAqB,EAAM,SAAU,EAAY,KAAK,aAAa,CAE1C,CAAA,EAAY,MAAQ,CAAC,EAE7D,EAAY,GAAc,OAAO,GAAY,CAAC,EAAS,QAAQ,EAK/D,EAAW,EAHS,GAAa,EAAU,OAAS,EACxD,EAAU,IAAI,GAAY,EAAmB,YAAY,EAAS,IAAK,CAAQ,CAAC,EAChF,CAAC,CAC2E,EACxE,EAAoB,GAAW,OACnC,GAAY,EAAS,KAAK,KAAK,GAAW,EAAQ,KAAO,EAAS,EAAE,CACtE,GAAK,CAAC,EACA,EAAS,EAA6B,EAAe,OAAO,CAAC,EAEnE,EAAmB,EAAmB,iBAAiB,CACrD,QAAS,EAAM,KACf,cAAe,EAAU,iBAAiB,CAAE,sBAAuB,EAAK,CAAC,EACzE,cAAe,EACjB,CAAC,CAAC,EAEF,EAAc,EAAc,QAAU,CAAC,CAAC,EACxC,EAAsB,EAAO,CAAE,QAAS,CAAsB,CAAC,EAC/D,EAAa,CAAE,GAAI,EAAM,SAAU,IAAK,SAAU,QAAS,EAAM,OAAQ,CAAC,EAE1E,IAAM,GAAc,EAAe,CAAE,KAAM,EAAM,MAAM,IAAK,CAAC,EAEvD,GAAc,EAAe,EAAM,QAAQ,EAYjD,OATE,EAAM,MACN,EAAY,cACZ,EAAiB,cACjB,GAOA,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,iBACb,EAAA,EAAA,IAAA,CAAC,EAAD,CACE,iBAAkB,KAClB,MAAO,EAAM,KACb,MAAO,EAAM,MAAM,KACnB,aAAc,EAAa,MAAM,KACpB,eACE,gBACf,YAAa,EAAY,KACzB,iBAAkB,GAAkB,MACpC,SAAU,EAAM,aAAa,SAC7B,QAAS,EAAM,QACA,gBACf,UAAW,EAAU,KACrB,OAAQ,EAAM,YACd,qBAAsB,EAAe,EAAe,iBAAiB,EACrE,kBAAmB,EAAM,aAAa,MACP,iCAClB,eACK,mBAClB,eAAgB,EAChB,qBAAsB,IAAyB,CAAC,GAAyB,EAAS,MAAM,OAAS,GACjG,aAAc,EAAS,MAAQ,CAAC,EAChC,UAAW,EACD,WACV,MAAO,EAAU,MAAM,EACvB,aAAc,EAAO,MAAM,aACb,eACd,QAAS,EAAO,KAAK,OACtB,CAAA,CACE,CAAA,GAjCE,EAAA,EAAA,IAAA,CAAA,EAAA,SAAA,CAAI,CAAA,CAmCf"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{o as e}from"./DAXXjFlN.chunk.js";import{o as t,t as n}from"./D8uRDrkd.chunk.js";import{y as r}from"./BftnFbcr.chunk.js";import{n as i}from"./B785hxeE.chunk.js";import{t as a}from"./CQyJ7YGa.chunk.js";import{t as o}from"./e57H3T-k.chunk.js";import{t as s}from"./C2w0pmFW.chunk.js";import{t as c}from"./wrLrTezN.chunk.js";import{t as l}from"./BXTI9cmX.chunk.js";import{t as u}from"./CjA4Q5pm.chunk.js";import{N as d,U as f,a as ee,l as p,y as m,z as h}from"./NlCAcBdo.chunk.js";import{t as g}from"./BxbRBSiP.chunk.js";import{i as _,t as v}from"./CFPlcqbe2.chunk.js";import{t as y}from"./YakGe6vv2.chunk.js";import{t as b}from"./DdsRCMkN.chunk.js";import{t as x}from"./CYEpX3hx.chunk.js";import{n as te}from"./BRcHS92O2.chunk.js";import{t as ne}from"./Tr5-kahg2.chunk.js";import{t as re}from"./klg9VDIV2.chunk.js";import{t as ie}from"./Bbp2U9GK2.chunk.js";import{t as S}from"./Ci5E3nqm2.chunk.js";import{t as C}from"./QVwuOts3.chunk.js";import{t as w}from"./9LNlP5yJ.chunk.js";import{i as ae}from"./A8xLZrSw.chunk.js";import{t as oe}from"./BQKcAczf.chunk.js";import{t as se}from"./rVRhgtHY2.chunk.js";import{n as T,t as ce}from"./CpFtf-tI2.chunk.js";import{n as le}from"./BJUbYu222.chunk.js";import{t as ue}from"./DW24qN_e2.chunk.js";import{t as E}from"./5ONJSThP.chunk.js";import{t as de}from"./DqM363Cd.chunk.js";import{t as fe}from"./CEP-ZPWJ.chunk.js";import{t as pe}from"./WvK58Ge12.chunk.js";import{n as D,t as O}from"./CkEPX0FJ2.chunk.js";import{t as me}from"./DsBWAM3I2.chunk.js";import{t as he}from"./DGA_eT2h2.chunk.js";import{t as ge}from"./CBdaRnr22.chunk.js";import{t as _e}from"./BY2ETYCl.chunk.js";import{a as ve,c as ye,l as be,n as xe,s as Se,t as Ce}from"./DW4eUMeA.chunk.js";import{t as we}from"./tnBD84bg2.chunk.js";import{t as Te}from"./DELN_PAD2.chunk.js";import{t as Ee}from"./QDUcHuL-2.chunk.js";import{t as De}from"./C2pEjcxD.chunk.js";import{t as Oe}from"./OtQaFdir.chunk.js";import{t as ke}from"./Dopg0SXC.chunk.js";import{t as Ae}from"./BZttqSy7.chunk.js";import{n as je,t as Me}from"./DWeyYfUG.chunk.js";import{n as Ne,t as Pe}from"./CvLLqEKv.chunk.js";import{t as k}from"./BPavmm8c.chunk.js";import{t as Fe}from"./D7hSSm4r2.chunk.js";import{r as Ie}from"./02GiL0bJ2.chunk.js";import{t as Le}from"./BdPPslUL2.chunk.js";import{n as A,r as j,t as Re}from"./rCRn6wGn2.chunk.js";import{t as M}from"./CLjADRa42.chunk.js";import{n as ze}from"./CI7BnpAu2.chunk.js";import{n as Be}from"./BgblOoyL2.chunk.js";var N=e(s()),P=c(),F=de();function I(){let e=E();return e.lg||e.xl||e.xxl}var L={copyrightDisclaimer:`_copyrightDisclaimer_yyjul_1`,overlayContainer:`_overlayContainer_yyjul_4`},R=`shared.copyrightDisclaimer`,Ve=150;function He(e){let[n,r]=le({});function i(){return document.documentElement.clientHeight-n.current?.getBoundingClientRect().bottom<Ve}return(0,P.jsxs)(`div`,{ref:n,className:e.className,children:[(0,P.jsx)(`p`,{className:`${L.copyrightDisclaimer} ${e.phraseClassName??`mb-1`}`,children:(0,P.jsx)(T,{namespace:R,phrase:`copyrightDisclaimer`})}),(0,P.jsx)(t,{target:n.current,show:r,placement:e.overflowPlacement&&i()?e.overflowPlacement:e.placement,children:(0,P.jsxs)(`div`,{className:`${L.overlayContainer} mw-100 bg-white border rounded-3 p-2`,children:[(0,P.jsx)(`p`,{children:(0,P.jsx)(T,{namespace:R,phrase:`warning`})}),(0,P.jsx)(`p`,{className:`fw-semibold mb-0`,children:(0,P.jsx)(T,{namespace:R,phrase:`sharing`})})]})})]})}function Ue(e){return(0,P.jsx)(Le,{lines:12,children:()=>(0,P.jsx)(`p`,{className:`mb-0`,dangerouslySetInnerHTML:{__html:o.sanitize(we.linkifyText(e.video.description,{nl2br:!0}))}})})}var We={descriptionBorder:`_descriptionBorder_any0w_2`},z=`shared.videoDetailsV2`,B=a.encloseNamespace(z);function V(e){let{label:t,items:n,className:r}=e;return n&&n.data&&n.data.length?typeof e.getItemAppLink==`function`?(0,P.jsxs)(`div`,{className:r,children:[(0,P.jsxs)(`span`,{children:[t,`: `]}),n.data.map((t,r)=>(0,P.jsxs)(N.Fragment,{children:[(0,P.jsx)(S,{appLink:e.getItemAppLink(t),children:t.name?.trim()},t.id),r<n.data.length-1&&(0,P.jsx)(`span`,{children:`, `})]},t.id))]}):(0,P.jsxs)(`div`,{className:r,children:[t,`: `,n.data.map(e=>e.name?.trim()).join(`, `)]}):(0,P.jsx)(P.Fragment,{})}function Ge(e){let t=e.categories?.data;return t?.length?t.filter(e=>e.libraries?.data?.[0]?.type===ue.CustomLibrary).map(e=>({library:e.libraries?.data?.[0],category:e})):[]}function Ke(e){return[{name:e.pair.library.name,appLink:e.getLibraryAppLink?.(e.pair.library)},{name:`...`},{name:e.pair.category.name,appLink:e.getFolderAppLink?.(e.pair.library,e.pair.category)}]}function qe(e){let{video:t}=e;if(!y.isVideo(t)&&!y.isClip(t))return(0,P.jsx)(P.Fragment,{});let n=y.getParentVideo(t),r=Ge(t);function i(t){if(!(!t.partnerProfiles||!t.partnerProfiles?.data?.length)){if(t.partnerProfiles?.count>1&&typeof e.getPartnerDashboardHubAppLink==`function`)return e.getPartnerDashboardHubAppLink(t);if(typeof e.getPartnerProfileAppLink==`function`)return e.getPartnerProfileAppLink(t.partnerProfiles?.data?.[0])}}return(0,P.jsxs)(`div`,{className:t.description?`col-md-5 ps-md-3 pt-3 pt-md-0`:`col-12`,children:[(0,P.jsx)(`h2`,{className:`h6 mb-1`,children:(0,P.jsx)(T,{phrase:`details`})}),!!n.productionYear&&(0,P.jsx)(`div`,{className:`mb-1`,children:(0,P.jsx)(T,{phrase:`productionYear`,options:{year:n.productionYear}})}),(0,P.jsx)(V,{label:B(`productionCompanies`,{smartCount:n.productionCompanies?.data?.length}),items:n.productionCompanies,getItemAppLink:i,className:`mb-1`}),(0,P.jsx)(V,{label:B(`distributors`,{smartCount:n.distributors?.data?.length}),items:n.distributors,getItemAppLink:i,className:`mb-1`}),(0,P.jsx)(V,{label:B(`producers`,{smartCount:n.producers?.data?.length}),items:n.producers,className:`mb-1`}),(0,P.jsx)(V,{label:B(`directors`,{smartCount:n.directors?.data?.length}),items:n.directors,className:`mb-1`}),!!n.dateBroadcast&&(0,P.jsx)(`div`,{className:`mb-1`,children:(0,P.jsx)(T,{phrase:`dateBroadcast`,options:{date:u.format(n.dateBroadcast,`DD/MM/YYYY`)}})}),!!n.channel&&(0,P.jsx)(`div`,{className:`mb-1`,children:(0,P.jsx)(T,{phrase:`channel`,options:{channel:n.channel.name}})}),y.canViewUploadDate(e.video)&&(0,P.jsx)(`div`,{className:`mb-1`,children:(0,P.jsx)(T,{phrase:`dateUploaded`,options:{date:u.format(t.dateCreated,`DD/MM/YYYY`)}})}),!!(r.length&&e.getLibraryAppLink&&e.getFolderAppLink)&&(0,P.jsxs)(`div`,{className:`mb-1`,children:[(0,P.jsxs)(`div`,{children:[B(`libraries`,{smartCount:r.length}),`:`]}),r.map((t,n)=>(0,P.jsx)(`div`,{children:(0,P.jsx)(De,{breadcrumbs:Ke({pair:t,getLibraryAppLink:e.getLibraryAppLink,getFolderAppLink:e.getFolderAppLink}),linkClassName:`text-info`})},n))]})]})}function Je(e){let{video:t,maxHeight:n=368}=e,r=y.getParentVideo(t),i=!!e.video.description,a=Re(e.video)||!!r.productionYear||!!r.dateBroadcast||!!r.channel||y.canViewUploadDate(e.video);if(!i&&!a)return(0,P.jsx)(P.Fragment,{});function o(){return e.hideTags||y.isInteractive(e.video)||!e.video.tags?.data?.length?null:e.video.tags?.data?.filter(e=>e.tagType===g.Normal)}let s=o();return(0,P.jsx)(ce.Provider,{value:z,children:(0,P.jsxs)(`section`,{id:k.VideoDetails,ref:t=>{t&&e.headingRef?.current&&e.headingRef.current.set(k.VideoDetails,t)},className:`play-page-section`,children:[e.showHeading&&(0,P.jsx)(Ee,{name:B(`heading`)}),(0,P.jsx)(`div`,{className:`rounded border p-3 position-relative`,children:(0,P.jsxs)(F.Scrollbars,{autoHeight:!0,autoHeightMax:n,hideTracksWhenNotNeeded:!0,children:[(0,P.jsxs)(`div`,{className:`row g-0`,children:[i&&(0,P.jsxs)(`div`,{className:a?`${We.descriptionBorder} pe-3 col-md-7`:`col-12`,children:[(0,P.jsxs)(`div`,{className:`d-flex align-items-center`,children:[(0,P.jsx)(`h2`,{className:`h6 mb-1`,children:(0,P.jsx)(T,{phrase:`description`})}),(0,P.jsx)(Fe,{text:t.description,title:t.name,className:`ps-2`,onLaunch:e.onLaunchImmersiveReader,onExit:e.onExitImmersiveReader,analyticsOptions:{location:m.PlayPage,entity:p.Video,actionType:h.Click,descriptor:ee.LaunchImmersiveReader},analyticsData:{id:t.id,type:`description`}})]}),(0,P.jsx)(Ue,{video:e.video})]}),a&&(0,P.jsx)(qe,{...e})]}),!!s?.length&&(0,P.jsxs)(`div`,{className:`mt-3`,children:[(0,P.jsx)(`h2`,{className:`h6 mb-1`,children:(0,P.jsx)(T,{phrase:`normalTags`})}),(0,P.jsx)(A,{tags:s,...j.getTagActionProps(e.getTagAppLink,null,e.suppressInteractivity),className:`mt-1`})]}),y.isBroadcast(e.video)&&(0,P.jsx)(He,{placement:`bottom-start`,className:`d-flex justify-content-start mt-2`,phraseClassName:`mb-0`,overflowPlacement:`top-start`})]})})]})})}function H(e,t,n,r){let i=()=>{M.unsubscribe(e,t)};return(0,N.useEffect)(()=>{if(r)return n?M.subscribeOnce(e,t):M.subscribe(e,t),()=>{i()}},[]),i}var U={learningIntention:`_learningIntention_lm8nf_1`,highlightPoi:`_highlightPoi_lm8nf_7`,icon:`_icon_lm8nf_10`},Ye=/\[\]\(cv:\/\/poi\?id=\d+\)\n*/g;function Xe(e){return e.replace(Ye,``)}function Ze(e){return ae(Xe(e.content),{async:!1})}function Qe(e,t){let[n,r]=(0,N.useState)(``);return(0,N.useEffect)(()=>{if(!t||!e.glance?.content)return;let n=Ze(e.glance);r(n)},[e.glance?.content,t]),n}function $e(e){return e.glance?.content&&e.glance?.format===`text/markdown`}function et(e,t){let n=(0,N.useRef)(null);H(`player:poi:mouseover`,r,null,t),H(`player:poi:mouseleave`,i,null,t),(0,N.useEffect)(()=>{if(!(!n.current||!t))return n.current?.addEventListener(`mouseover`,a),n.current?.addEventListener(`mouseleave`,o),()=>{n.current?.removeEventListener(`mouseover`,a),n.current?.removeEventListener(`mouseleave`,o)}},[n.current]);function r(t){!t?.id||e?.id?.toString()!==t?.id?.toString()||n.current?.classList.add(U.highlightPoi)}function i(){n.current?.classList.remove(U.highlightPoi)}function a(){e&&M.trigger(`glance:poi:mouseover`,e)}function o(){M.trigger(`glance:poi:mouseleave`)}return n}var W={poiEntry:`_poiEntry_1bne8_1`,poiText:`_poiText_1bne8_5`,public:`_public_1bne8_5`,poiTimeStamp:`_poiTimeStamp_1bne8_14`,wideBadge:`_wideBadge_1bne8_18`};function tt(e){let t=me.ToDisplayDuration(e.poi.startTime*1e3),n=et(e.poi,!e.suppressInteractivity);return e.suppressInteractivity?(0,P.jsxs)(`div`,{className:`d-flex ${W.poiEntry} mb-2`,children:[(0,P.jsx)(`span`,{className:`d-flex rounded-pill justify-content-center align-items-center text-info bg-light-blue ${W.poiTimeStamp} ${e.wideBadge?W.wideBadge:``}`,children:t}),(0,P.jsx)(`div`,{className:`${W.public} ms-2`,children:e.poi.description})]}):(0,P.jsxs)(ie,{className:`d-flex ${W.poiEntry} mb-2 cursor-pointer`,onClick:()=>e.onClickPoiItem(e.poi.startTime),ref:n,children:[(0,P.jsx)(`div`,{className:`d-flex rounded-pill justify-content-center align-items-center text-info bg-light-blue ${W.poiTimeStamp} ${e.wideBadge?W.wideBadge:``}`,children:t}),(0,P.jsx)(`div`,{className:`ms-2 ${W.poiText}`,children:e.poi.description})]},e.poi.startTime)}var nt=`shared.pointsOfInterestList`;function rt(e){let t=e.pointsOfInterest.sort((e,t)=>e.startTime-t.startTime),n=t.some(e=>e.startTime>=3600);return(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`h2`,{className:`h6 my-2`,children:(0,P.jsx)(T,{namespace:nt,phrase:`heading`})}),(0,P.jsx)(`div`,{children:t.map(t=>(0,P.jsx)(tt,{poi:t,suppressInteractivity:e.suppressInteractivity,onClickPoiItem:e.onClickPoiItem,wideBadge:n},t.startTime))})]})}var it=`shared.videoAtAGlanceV2`,at=365;function ot(e){return e.hideScrollbar?(0,P.jsx)(P.Fragment,{children:e.children}):(0,P.jsx)(`div`,{className:`rounded border mb-4 bg-white`,children:(0,P.jsx)(F.Scrollbars,{autoHeight:!0,autoHeightMax:at,children:(0,P.jsx)(`div`,{className:`px-3 pt-3 pb-2`,children:e.children})})})}function st(e){let t=Qe(e.video,e.canViewGlance),[n,r]=N.useState(``);function i(){let t={id:e.video.glance.id,name:e.video.glance.name,videoId:e.video.id,videoName:e.video.name,learningIntention:n},r={actionType:h.Copy,entity:p.Glance,location:m.PlayPage};x.logUserAction(t,r)}function a(){return y.isInteractive(e.video)||!e.video.tags?.data?.length?null:e.video.tags?.data?.filter(e=>e.tagType===g.Pedagogy||e.tagType===g.Skill)}let s=a(),c=N.useRef(null);if(N.useEffect(()=>{c.current?.innerText&&r(c.current.innerText)},[c.current?.innerText]),!e.canViewGlance)return(0,P.jsx)(P.Fragment,{});function l(t){e.setStartTime(t)}return(0,P.jsx)(`section`,{className:`play-page-section`,children:(0,P.jsxs)(ot,{hideScrollbar:e.hideScrollbar,children:[(0,P.jsx)(`h2`,{className:`h6 mb-2`,children:(0,P.jsx)(T,{namespace:it,phrase:`learningIntention`})}),(0,P.jsxs)(`div`,{className:`mb-3 ${U.learningIntention}`,children:[(0,P.jsx)(Pe,{copyableContent:n,tooltipClassName:U.icon,onClick:i,visible:!0}),(0,P.jsx)(`div`,{dangerouslySetInnerHTML:{__html:o.sanitize(t)},className:`d-inline`,ref:c})]}),!!s?.length&&(0,P.jsx)(`div`,{children:(0,P.jsx)(A,{tags:s,...j.getTagActionProps(e.getTagAppLink,e.onClickTag,e.suppressInteractivity),className:`mt-2`})}),!!e.pointsOfInterest?.length&&(0,P.jsx)(`div`,{className:`mt-3`,children:(0,P.jsx)(rt,{pointsOfInterest:e.pointsOfInterest,suppressInteractivity:e.suppressInteractivity,onClickPoiItem:l})})]})})}var ct=`shared.playPageResources`;function lt(e,t){let n=e.resources?.data??[],r=e.links?.data??[];return t?[...n.filter(e=>[`additional-materials`,`student-activity`].includes(e.metadata?.resourceType)),...r]:[...n,...r]}function ut(e){let{hasPermissions:t}=oe();function n(t){_e.downloadResource(t,e.analyticsData,{location:m.PlayPage,actionType:h.Download,entity:p.Resource})}let r=lt(e.video,t(i.StudentExperience)),o=a.getPhrase(ct,`resources`,{count:r.length});if(!r.length)return(0,P.jsx)(P.Fragment,{});let s=r.filter(pe.isResource),c=e.canViewResources&&s.length>0;return(0,P.jsx)(`section`,{id:k.Resources,className:`play-page-section widget-hover-reveal-boundary`,ref:t=>{t&&e.headingRef?.current&&e.headingRef.current.set(k.Resources,t)},children:(0,P.jsx)(v,{name:o,contents:_.PlayPageResourcesV2,collection:r,prefetched:!0,childComponent:ze,headerRightComponent:c?(0,P.jsx)(Ae,{resources:s,fileName:`${e.video.name}-resources`,analyticsData:e.analyticsData,onDownloadAllClick:e.onDownloadAllClick,revealOnHover:!0}):void 0,extraChildComponentProps:{imageCdnUrl:e.imageCdnUrl,imageErrorFallbackUrl:e.resourceThumbnailFallbackUrl,actionBehaviour:e.canViewResources?`normal`:`public`,location:`play-page`,titlePosition:`below`,onClickDownload:e.canViewResources?n:null},getChildAppLink:e.getAppLink,analyticsOptions:e.canViewResources?{}:{workflowPhase:f.Start,descriptor:d.SignUp},analyticsData:e.analyticsData})})}var dt=N.memo(function(e){let{data:t,thumbnailSize:n,preloadImage:r,getAppLink:i}=e,a=ke(t.subjectPresentationAudiences?.data,e.audiences);return(0,P.jsxs)(`div`,{className:`flex-shrink-0 px-1 col-6 col-sm-4`,children:[(0,P.jsx)(Ce,{type:`static`,textPosition:xe.Independent,video:t,appLink:i(t),imageOptions:{size:n},preload:r,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,audience:a,hideDuration:!1,commonVideoProps:e.commonVideoProps}),(0,P.jsx)(`div`,{className:`mt-2`,children:(0,P.jsx)(ve,{...e,video:t,appLink:e.getAppLink(t)})})]})}),ft=`shared.playPageClips`;function pt(e){if(!e.canViewClips||!e.clips?.length)return(0,P.jsx)(P.Fragment,{});let t=y.isVideo(e.video);function n(){return y.isVideo(e.video)?{action:b.Videos.VIDEO_CLIPS,application:l.VIDEOS,args:[e.presentationSlug,e.video.id,o.slugify(e.video.name)]}:{action:b.Clips.CLIP_CLIPS,application:l.CLIPS,args:[e.video.id,o.slugify(e.video.name)]}}let r=a.getPhrase(ft,t?`clips`:`otherClips`,{count:e.clips.length});return(0,P.jsx)(`section`,{className:`play-page-section`,id:k.Clips,ref:t=>{t&&e.headingRef?.current&&e.headingRef.current.set(k.Clips,t)},children:(0,P.jsx)(v,{name:r,contents:_.ClipsV2,collection:e.clips,prefetched:!0,getChildAppLink:e=>({application:l.CLIPS,action:b.Clips.PLAY_CLIP,args:[e.id,o.slugify(e.name)]}),appLink:n(),childComponent:dt,extraChildComponentProps:{audiences:e.audiences,showOwner:!0,commonVideoProps:e.commonVideoProps},analyticsData:e.analyticsData})})}var mt=`shared.playPageInteractives`;function ht(e){if(!e.canViewInteractives||!e.interactives?.length)return(0,P.jsx)(P.Fragment,{});function t(){return y.isVideo(e.video)?{action:b.Videos.VIDEO_INTERACTIVES,application:l.VIDEOS,args:[e.presentationSlug,e.video.id,o.slugify(e.video.name)]}:{action:b.Clips.CLIP_INTERACTIVES,application:l.CLIPS,args:[e.video.id,o.slugify(e.video.name)]}}let n=a.getPhrase(mt,`interactives`,{count:e.interactives.length});return(0,P.jsx)(`section`,{className:`play-page-section`,id:k.Interactives,ref:t=>{t&&e.headingRef?.current&&e.headingRef.current.set(k.Interactives,t)},children:(0,P.jsx)(v,{name:n,contents:_.InteractivesV2,collection:e.interactives,prefetched:!0,getChildAppLink:e=>({application:l.INTERACTIVES,action:b.Interactives.VIEW_INTERACTIVE,args:[e.id,o.slugify(e.name)]}),appLink:t(),childComponent:Ie,extraChildComponentProps:{questionsAppLink:{application:l.INTERACTIVES,action:b.Interactives.PREVIEW_QUESTIONS},showOwner:!0,commonVideoProps:e.commonVideoProps},analyticsData:e.analyticsData})})}function G(e){return(0,P.jsx)(`svg`,{...e,children:(0,P.jsx)(`path`,{d:`M5.455 12c0 .401.325.727.727.727h9.88l-3.849 3.85a.728.728 0 0 0 1.029 1.028l5.09-5.091a.73.73 0 0 0 .213-.514v7.272a.727.727 0 0 0 1.455 0V4.727a.727.727 0 0 0-1.455 0V12a.73.73 0 0 0-.213-.515l-5.09-5.09a.727.727 0 1 0-1.029 1.028l3.85 3.85H6.181a.727.727 0 0 0-.727.727`,fill:`currentColor`})})}function gt(e){return(0,P.jsx)(`svg`,{...e,children:(0,P.jsx)(`path`,{d:`M20 12a.727.727 0 0 0-.727-.728h-9.88l3.848-3.849a.727.727 0 1 0-1.028-1.029l-5.091 5.091a.73.73 0 0 0-.213.514V4.727a.727.727 0 0 0-1.454 0v14.545a.727.727 0 0 0 1.454 0V12c0 .186.071.373.213.515l5.091 5.09a.727.727 0 0 0 1.029-1.028l-3.85-3.85h9.88A.727.727 0 0 0 20 12`,fill:`currentColor`})})}var K={showInSide:`_showInSide_1n1am_1`,container:`_container_1n1am_7`,aside:`_aside_1n1am_11`,collapse:`_collapse_1n1am_14`,iconContainer:`_iconContainer_1n1am_22`,arrowIcon:`_arrowIcon_1n1am_22`,listIcon:`_listIcon_1n1am_25`},_t=`shared.playPage`;function q(e){function t(){let t={actionType:e.isExpanded?h.Hide:h.Open,entity:p.TableOfContents,location:m.PlayPage};x.logUserAction(e.analyticsData,t)}function n(){let n=!e.isExpanded;e.setIsExpanded(n),n?(e.toggleTheatreMode?.(!1),e.toggleTheatreMode||e.setIsExpanded(!1)):(e.toggleTheatreMode?.(!0),e.toggleTheatreMode||e.setIsExpanded(!0)),t()}return(0,P.jsx)(`div`,{className:`d-flex justify-content-end`,children:(0,P.jsx)(`div`,{className:K.container,children:(0,P.jsxs)(`div`,{className:`${K.iconContainer}`,children:[(0,P.jsx)(w,{className:`btn btn-outline-dark ${K.listIcon}`,svg:Te,onClick:n}),(0,P.jsx)(w,{className:`btn btn-outline-dark ${K.arrowIcon}`,svg:e.isExpanded?G:gt,onClick:n})]})})})}function J(e){function t(){let t={actionType:h.Hide,entity:p.TableOfContents,location:m.PlayPage};x.logUserAction(e.analyticsData,t)}function n(e){let t=re.getCurrentRoute().appLink,n=t.params?{...t.params}:{};return n.tocId=e.id,{...t,params:n}}function r(){e.showInSide||e.setIsExpanded(!1)}return(0,P.jsxs)(`div`,{className:e.showInSide?`col ms-2 ps-4 ${K.showInSide}`:`d-inline-flex gap-1`,children:[(0,P.jsx)(`aside`,{className:`${K.aside} position-relative ${e.showInSide?`pe-1 pt-1 `:`px-3 pt-3 pb-2 border border-dark rounded-1 bg-white`}`,children:(0,P.jsxs)(`div`,{className:`${K.container}`,children:[e.showInSide&&!e.hasTranscription&&(0,P.jsx)(w,{className:`btn position-absolute ${K.collapse}`,svg:G,onClick:()=>{e.setIsExpanded(!1),e.toggleTheatreMode?.(!0),t()}}),(0,P.jsx)(`h2`,{className:`h5`,children:(0,P.jsx)(T,{namespace:_t,phrase:`tocHeading`})}),(0,P.jsx)(Be,{items:e.items,activeId:e.activeId,getAppLink:n,setControlledId:e.setControlledId,analyticsData:e.analyticsData,onItemClick:()=>r()})]})}),!e.showInSide&&(0,P.jsx)(q,{...e})]})}function vt(e){return e.shouldShow?(0,P.jsxs)(P.Fragment,{children:[e.isExpanded&&e.showInSide&&(0,P.jsx)(J,{...e}),Oe.renderInPortalIfExists(!e.isExpanded&&(0,P.jsx)(q,{...e}),document.getElementById(C)),Oe.renderInPortalIfExists(!e.showInSide&&e.isExpanded&&(0,P.jsx)(J,{...e}),document.getElementById(C))]}):(0,P.jsx)(P.Fragment,{})}var Y={series:`_series_15j6m_1`,badgeListContainer:`_badgeListContainer_15j6m_5`,clipOriginInfo:`_clipOriginInfo_15j6m_10`},X=`shared.playPage`;function yt(e){let t=ke(e.media.subjectPresentationAudiences?.data,e.audiences),n=N.useRef(null),r=N.useRef(null),i=y.isVideo(e.media)&&!!y.getRating(e.media)?.value||y.isVideo(e.media)&&!!e.media.productionYear||!!e.media.subjectPresentationAudiences?.data?.length,a=je({location:Me.PlayPage,shareId:e.shareId,presentationSlug:e.presentationSlug}),o=!!e.originalVideoAppLink&&y.isClip(e.media)&&y.canViewOriginalVideo(e.media);return(0,P.jsx)(`section`,{className:`mb-3 position-relative`,ref:n,children:(0,P.jsxs)(`div`,{className:`d-inline-block w-100`,ref:r,children:[e.featureAccess.canNavigate&&(0,P.jsx)(`div`,{className:`ms-2 float-end`,children:(0,P.jsx)(he,{actions:a.getVideoActions(e.media),actionsDropdownClassName:`btn btn-outline-dark`,fetchMore:()=>a.fetchMoreActions(e.media)})}),!!y.isVideo(e.media)&&(0,P.jsx)(fe,{type:e.subTextType,video:e.media,appLink:e.subtextAppLink,className:`${Y.series} text-truncate mw-100`,analyticsOptions:{location:m.PlayPage}}),(0,P.jsxs)(`h1`,{className:`h4 mb-2 mw-100`,children:[(0,P.jsx)(`span`,{className:`align-self-center`,children:e.media.name}),e.showTitlePadlock&&(0,P.jsx)(Se,{tooltipPlacement:`right`,className:`d-inline-block ps-1`,video:e.media,yearGroups:e.yearGroups})]}),y.isClip(e.media)&&o&&(0,P.jsxs)(`p`,{className:`clamp-1 ${Y.clipOriginInfo}`,children:[(0,P.jsx)(T,{namespace:X,phrase:`viewOriginal`}),`\xA0`,(0,P.jsx)(S,{className:`info-link`,appLink:e.originalVideoAppLink,children:e.media._parentVideo?.name}),`\xA0`,(0,P.jsx)(T,{namespace:X,phrase:`timestamp`,options:{timeRange:`${me.ToDisplayTimeRange(e.media.startTime*1e3,e.media.endTime*1e3)}`}})]}),i&&(0,P.jsxs)(ge,{className:Y.badgeListContainer,children:[(0,P.jsx)(ye,{audience:t,className:`bg-white text-dark`,border:`dark`}),y.isVideo(e.media)&&(0,P.jsx)(O,{type:D.Rating,data:y.getRating(e.media)}),y.isVideo(e.media)&&(0,P.jsx)(O,{type:D.ProductionYear,data:e.media.productionYear})]})]})})}var Z={mask:`_mask_vq9tb_1`,centeredIcon:`_centeredIcon_vq9tb_10`,bgImage:`_bgImage_vq9tb_21`,centeredOverlay:`_centeredOverlay_vq9tb_24`},bt=a.encloseNamespace(`shared.playerPlaceholder`);function xt(e){switch(e.type){case`pip`:return(0,P.jsx)(St,{...e});case`public`:return(0,P.jsx)(Ct,{...e});default:return(0,P.jsx)(P.Fragment,{})}}var St=e=>(0,P.jsxs)(`div`,{className:`position-relative responsive-img ${Z.bgImage}`,style:{backgroundImage:`url('${y.getThumbnail(e.video)?.url??``}')`},children:[(0,P.jsx)(`p`,{className:`m-0 text-white h3 ${Z.centeredOverlay}`,children:bt(`playingPiP`)}),(0,P.jsx)(`div`,{className:Z.mask})]}),Ct=e=>{let t=ne.createUrl(y.getThumbnail(e.video)?.url??``,{size:te.Large});return(0,P.jsx)(`div`,{className:`position-relative responsive-img ${Z.bgImage}`,style:{backgroundImage:`url('${t}')`},children:(0,P.jsxs)(S,{appLink:e.appLink,analyticsOptions:{actionType:h.Click,location:m.PlayPage,entity:p.AppLink,workflowPhase:f.Start,descriptor:d.SignUp},analyticsData:{},children:[(0,P.jsx)(n,{svg:be,className:Z.centeredIcon}),(0,P.jsx)(`div`,{className:Z.mask})]})})};function wt({resourcePopupId:e,resources:t,getResourceAppLink:n}){N.useEffect(()=>{if(!e)return;let i=t?.find(t=>t.id.toString()===e.toString());i&&r.trigger(n(i))},[e])}var Q={main:`_main_1ujkn_1`,expandedToc:`_expandedToc_1ujkn_1`,theatreMode:`_theatreMode_1ujkn_4`,theatreModeContent:`_theatreModeContent_1ujkn_7`,theatreModePlayPageContainer:`_theatreModePlayPageContainer_1ujkn_17`,theatreModeLeftContent:`_theatreModeLeftContent_1ujkn_21`};function Tt(e){return e.shouldShowSideTableOfContents?e.hasTheatreMode&&e.theatreMode?Q.theatreMode:e.tableOfContentsExpanded?`${Q.expandedToc} col-9`:`pe-4`:``}function Et(e){return e.hasTheatreMode&&(e.theatreMode||!e.shouldShowSideTableOfContents)?`container ${Q.theatreModeContent}`:``}function Dt(e,t){return e&&t.defaultDisplayMode===`theatre`&&t.mode==="default"}var Ot=`play-page-toc-expanded`;function kt(e,t,n){let r=I(),i=Ne.get(Ot)!==`false`,a=t?n||r:i,[o,s]=N.useState(e||``),[c,l]=N.useState(``),[u,d]=N.useState(a);N.useEffect(()=>{if(!r){d(!1);return}if(t){d(!0);return}d(a)},[r,n]);function f(){t&&r||(d(!u),Ne.set(Ot,(!u).toString()))}return{controlledId:o,setControlledId:s,tableOfContentsExpanded:u,tableOfContentsActiveId:c,setTableOfContentsActiveId:l,onToggleTableOfContents:f}}var At={map(e){let t=new Proxy(new Map,{get(n,r){if(r===`set`)return(r,i)=>(n.get(r)!==i&&(n.set(r,i),e()),t);let i=Reflect.get(n,r);return typeof i==`function`?i.bind(n):i}});return t}},jt=[k.Video,k.CurriculumLinks,k.Resources,k.Interactives,k.Clips,k.VideoDetails,k.ClippedFrom,k.Transcript,k.ReferenceVideo,k.RelatedVideos],Mt=[k.Video,k.VideoDetails,k.CurriculumLinks,k.Resources,k.Interactives,k.Clips,k.ClippedFrom,k.Transcript,k.ReferenceVideo,k.RelatedVideos];function Nt(e){let t=se(),n=N.useRef(At.map(t));return{headingRef:n,headingElements:(e?jt:Mt).map(e=>n.current.get(e)).filter(Boolean)}}function Pt(e,t,n){let r=E();if(t!=="default")return!1;let i=n===`theatre`;return!(r.sm||r.md)&&e&&i}var $=a.encloseNamespace(`shared.play`),Ft={getSectionHeading(e,t){switch(e){case k.Resources:return $(`resourcesHeading`,{count:t.resources?.length});case k.Clips:return t.isPlayClipPage?$(`otherClipsHeading`,{count:t.clips?.length-1}):$(`clipsHeading`,{count:t.clips?.length});case k.Interactives:return $(`interactivesHeading`,{count:t.interactives?.length});case k.Video:return $(`videoHeading`);case k.VideoDetails:return $(`videoDetailsHeading`);case k.RelatedVideos:return $(`upNextHeading`);case k.CurriculumLinks:return $(`curriculumLinksHeading`);case k.ClippedFrom:return $(`clippedFromHeading`);case k.ReferenceVideo:return $(`referenceVideoHeading`);case k.Transcript:return $(`transcriptHeading`);default:return``}}};export{$e as _,Et as a,Q as c,yt as d,vt as f,st as g,ut as h,kt as i,wt as l,pt as m,Pt as n,Dt as o,ht as p,Nt as r,Tt as s,Ft as t,xt as u,Je as v,I as y};
|
|
2
|
-
//# sourceMappingURL=
|
|
1
|
+
import{o as e}from"./DAXXjFlN.chunk.js";import{o as t,t as n}from"./D8uRDrkd.chunk.js";import{y as r}from"./BftnFbcr.chunk.js";import{n as i}from"./B785hxeE.chunk.js";import{t as a}from"./CQyJ7YGa.chunk.js";import{t as o}from"./e57H3T-k.chunk.js";import{t as s}from"./C2w0pmFW.chunk.js";import{t as c}from"./wrLrTezN.chunk.js";import{t as l}from"./BXTI9cmX.chunk.js";import{t as u}from"./CjA4Q5pm.chunk.js";import{N as d,U as f,a as ee,l as p,y as m,z as h}from"./NlCAcBdo.chunk.js";import{t as g}from"./BxbRBSiP.chunk.js";import{i as _,t as v}from"./CFPlcqbe2.chunk.js";import{t as y}from"./YakGe6vv2.chunk.js";import{t as b}from"./DdsRCMkN.chunk.js";import{t as x}from"./CYEpX3hx.chunk.js";import{n as te}from"./BRcHS92O2.chunk.js";import{t as ne}from"./Tr5-kahg2.chunk.js";import{t as re}from"./klg9VDIV2.chunk.js";import{t as ie}from"./Bbp2U9GK2.chunk.js";import{t as S}from"./Ci5E3nqm2.chunk.js";import{t as C}from"./C3eIGNDs.chunk.js";import{t as w}from"./9LNlP5yJ.chunk.js";import{i as ae}from"./A8xLZrSw.chunk.js";import{t as oe}from"./BQKcAczf.chunk.js";import{t as se}from"./rVRhgtHY2.chunk.js";import{n as T,t as ce}from"./CpFtf-tI2.chunk.js";import{n as le}from"./BJUbYu222.chunk.js";import{t as ue}from"./DW24qN_e2.chunk.js";import{t as E}from"./5ONJSThP.chunk.js";import{t as de}from"./DqM363Cd.chunk.js";import{t as fe}from"./CEP-ZPWJ.chunk.js";import{t as pe}from"./WvK58Ge12.chunk.js";import{n as D,t as O}from"./CkEPX0FJ2.chunk.js";import{t as me}from"./DsBWAM3I2.chunk.js";import{t as he}from"./DGA_eT2h2.chunk.js";import{t as ge}from"./CBdaRnr22.chunk.js";import{t as _e}from"./BY2ETYCl.chunk.js";import{a as ve,c as ye,l as be,n as xe,s as Se,t as Ce}from"./DW4eUMeA.chunk.js";import{t as we}from"./tnBD84bg2.chunk.js";import{t as Te}from"./DELN_PAD2.chunk.js";import{t as Ee}from"./QDUcHuL-2.chunk.js";import{t as De}from"./C2pEjcxD.chunk.js";import{t as Oe}from"./OtQaFdir.chunk.js";import{t as ke}from"./Dopg0SXC.chunk.js";import{t as Ae}from"./BZttqSy7.chunk.js";import{n as je,t as Me}from"./DWeyYfUG.chunk.js";import{n as Ne,t as Pe}from"./CvLLqEKv.chunk.js";import{t as k}from"./BPavmm8c.chunk.js";import{t as Fe}from"./D7hSSm4r2.chunk.js";import{r as Ie}from"./02GiL0bJ2.chunk.js";import{t as Le}from"./BdPPslUL2.chunk.js";import{n as A,r as j,t as Re}from"./rCRn6wGn2.chunk.js";import{t as M}from"./CLjADRa42.chunk.js";import{n as ze}from"./CI7BnpAu2.chunk.js";import{n as Be}from"./BgblOoyL2.chunk.js";var N=e(s()),P=c(),F=de();function I(){let e=E();return e.lg||e.xl||e.xxl}var L={copyrightDisclaimer:`_copyrightDisclaimer_yyjul_1`,overlayContainer:`_overlayContainer_yyjul_4`},R=`shared.copyrightDisclaimer`,Ve=150;function He(e){let[n,r]=le({});function i(){return document.documentElement.clientHeight-n.current?.getBoundingClientRect().bottom<Ve}return(0,P.jsxs)(`div`,{ref:n,className:e.className,children:[(0,P.jsx)(`p`,{className:`${L.copyrightDisclaimer} ${e.phraseClassName??`mb-1`}`,children:(0,P.jsx)(T,{namespace:R,phrase:`copyrightDisclaimer`})}),(0,P.jsx)(t,{target:n.current,show:r,placement:e.overflowPlacement&&i()?e.overflowPlacement:e.placement,children:(0,P.jsxs)(`div`,{className:`${L.overlayContainer} mw-100 bg-white border rounded-3 p-2`,children:[(0,P.jsx)(`p`,{children:(0,P.jsx)(T,{namespace:R,phrase:`warning`})}),(0,P.jsx)(`p`,{className:`fw-semibold mb-0`,children:(0,P.jsx)(T,{namespace:R,phrase:`sharing`})})]})})]})}function Ue(e){return(0,P.jsx)(Le,{lines:12,children:()=>(0,P.jsx)(`p`,{className:`mb-0`,dangerouslySetInnerHTML:{__html:o.sanitize(we.linkifyText(e.video.description,{nl2br:!0}))}})})}var We={descriptionBorder:`_descriptionBorder_any0w_2`},z=`shared.videoDetailsV2`,B=a.encloseNamespace(z);function V(e){let{label:t,items:n,className:r}=e;return n&&n.data&&n.data.length?typeof e.getItemAppLink==`function`?(0,P.jsxs)(`div`,{className:r,children:[(0,P.jsxs)(`span`,{children:[t,`: `]}),n.data.map((t,r)=>(0,P.jsxs)(N.Fragment,{children:[(0,P.jsx)(S,{appLink:e.getItemAppLink(t),children:t.name?.trim()},t.id),r<n.data.length-1&&(0,P.jsx)(`span`,{children:`, `})]},t.id))]}):(0,P.jsxs)(`div`,{className:r,children:[t,`: `,n.data.map(e=>e.name?.trim()).join(`, `)]}):(0,P.jsx)(P.Fragment,{})}function Ge(e){let t=e.categories?.data;return t?.length?t.filter(e=>e.libraries?.data?.[0]?.type===ue.CustomLibrary).map(e=>({library:e.libraries?.data?.[0],category:e})):[]}function Ke(e){return[{name:e.pair.library.name,appLink:e.getLibraryAppLink?.(e.pair.library)},{name:`...`},{name:e.pair.category.name,appLink:e.getFolderAppLink?.(e.pair.library,e.pair.category)}]}function qe(e){let{video:t}=e;if(!y.isVideo(t)&&!y.isClip(t))return(0,P.jsx)(P.Fragment,{});let n=y.getParentVideo(t),r=Ge(t);function i(t){if(!(!t.partnerProfiles||!t.partnerProfiles?.data?.length)){if(t.partnerProfiles?.count>1&&typeof e.getPartnerDashboardHubAppLink==`function`)return e.getPartnerDashboardHubAppLink(t);if(typeof e.getPartnerProfileAppLink==`function`)return e.getPartnerProfileAppLink(t.partnerProfiles?.data?.[0])}}return(0,P.jsxs)(`div`,{className:t.description?`col-md-5 ps-md-3 pt-3 pt-md-0`:`col-12`,children:[(0,P.jsx)(`h2`,{className:`h6 mb-1`,children:(0,P.jsx)(T,{phrase:`details`})}),!!n.productionYear&&(0,P.jsx)(`div`,{className:`mb-1`,children:(0,P.jsx)(T,{phrase:`productionYear`,options:{year:n.productionYear}})}),(0,P.jsx)(V,{label:B(`productionCompanies`,{smartCount:n.productionCompanies?.data?.length}),items:n.productionCompanies,getItemAppLink:i,className:`mb-1`}),(0,P.jsx)(V,{label:B(`distributors`,{smartCount:n.distributors?.data?.length}),items:n.distributors,getItemAppLink:i,className:`mb-1`}),(0,P.jsx)(V,{label:B(`producers`,{smartCount:n.producers?.data?.length}),items:n.producers,className:`mb-1`}),(0,P.jsx)(V,{label:B(`directors`,{smartCount:n.directors?.data?.length}),items:n.directors,className:`mb-1`}),!!n.dateBroadcast&&(0,P.jsx)(`div`,{className:`mb-1`,children:(0,P.jsx)(T,{phrase:`dateBroadcast`,options:{date:u.format(n.dateBroadcast,`DD/MM/YYYY`)}})}),!!n.channel&&(0,P.jsx)(`div`,{className:`mb-1`,children:(0,P.jsx)(T,{phrase:`channel`,options:{channel:n.channel.name}})}),y.canViewUploadDate(e.video)&&(0,P.jsx)(`div`,{className:`mb-1`,children:(0,P.jsx)(T,{phrase:`dateUploaded`,options:{date:u.format(t.dateCreated,`DD/MM/YYYY`)}})}),!!(r.length&&e.getLibraryAppLink&&e.getFolderAppLink)&&(0,P.jsxs)(`div`,{className:`mb-1`,children:[(0,P.jsxs)(`div`,{children:[B(`libraries`,{smartCount:r.length}),`:`]}),r.map((t,n)=>(0,P.jsx)(`div`,{children:(0,P.jsx)(De,{breadcrumbs:Ke({pair:t,getLibraryAppLink:e.getLibraryAppLink,getFolderAppLink:e.getFolderAppLink}),linkClassName:`text-info`})},n))]})]})}function Je(e){let{video:t,maxHeight:n=368}=e,r=y.getParentVideo(t),i=!!e.video.description,a=Re(e.video)||!!r.productionYear||!!r.dateBroadcast||!!r.channel||y.canViewUploadDate(e.video);if(!i&&!a)return(0,P.jsx)(P.Fragment,{});function o(){return e.hideTags||y.isInteractive(e.video)||!e.video.tags?.data?.length?null:e.video.tags?.data?.filter(e=>e.tagType===g.Normal)}let s=o();return(0,P.jsx)(ce.Provider,{value:z,children:(0,P.jsxs)(`section`,{id:k.VideoDetails,ref:t=>{t&&e.headingRef?.current&&e.headingRef.current.set(k.VideoDetails,t)},className:`play-page-section`,children:[e.showHeading&&(0,P.jsx)(Ee,{name:B(`heading`)}),(0,P.jsx)(`div`,{className:`rounded border p-3 position-relative`,children:(0,P.jsxs)(F.Scrollbars,{autoHeight:!0,autoHeightMax:n,hideTracksWhenNotNeeded:!0,children:[(0,P.jsxs)(`div`,{className:`row g-0`,children:[i&&(0,P.jsxs)(`div`,{className:a?`${We.descriptionBorder} pe-3 col-md-7`:`col-12`,children:[(0,P.jsxs)(`div`,{className:`d-flex align-items-center`,children:[(0,P.jsx)(`h2`,{className:`h6 mb-1`,children:(0,P.jsx)(T,{phrase:`description`})}),(0,P.jsx)(Fe,{text:t.description,title:t.name,className:`ps-2`,onLaunch:e.onLaunchImmersiveReader,onExit:e.onExitImmersiveReader,analyticsOptions:{location:m.PlayPage,entity:p.Video,actionType:h.Click,descriptor:ee.LaunchImmersiveReader},analyticsData:{id:t.id,type:`description`}})]}),(0,P.jsx)(Ue,{video:e.video})]}),a&&(0,P.jsx)(qe,{...e})]}),!!s?.length&&(0,P.jsxs)(`div`,{className:`mt-3`,children:[(0,P.jsx)(`h2`,{className:`h6 mb-1`,children:(0,P.jsx)(T,{phrase:`normalTags`})}),(0,P.jsx)(A,{tags:s,...j.getTagActionProps(e.getTagAppLink,null,e.suppressInteractivity),className:`mt-1`})]}),y.isBroadcast(e.video)&&(0,P.jsx)(He,{placement:`bottom-start`,className:`d-flex justify-content-start mt-2`,phraseClassName:`mb-0`,overflowPlacement:`top-start`})]})})]})})}function H(e,t,n,r){let i=()=>{M.unsubscribe(e,t)};return(0,N.useEffect)(()=>{if(r)return n?M.subscribeOnce(e,t):M.subscribe(e,t),()=>{i()}},[]),i}var U={learningIntention:`_learningIntention_lm8nf_1`,highlightPoi:`_highlightPoi_lm8nf_7`,icon:`_icon_lm8nf_10`},Ye=/\[\]\(cv:\/\/poi\?id=\d+\)\n*/g;function Xe(e){return e.replace(Ye,``)}function Ze(e){return ae(Xe(e.content),{async:!1})}function Qe(e,t){let[n,r]=(0,N.useState)(``);return(0,N.useEffect)(()=>{if(!t||!e.glance?.content)return;let n=Ze(e.glance);r(n)},[e.glance?.content,t]),n}function $e(e){return e.glance?.content&&e.glance?.format===`text/markdown`}function et(e,t){let n=(0,N.useRef)(null);H(`player:poi:mouseover`,r,null,t),H(`player:poi:mouseleave`,i,null,t),(0,N.useEffect)(()=>{if(!(!n.current||!t))return n.current?.addEventListener(`mouseover`,a),n.current?.addEventListener(`mouseleave`,o),()=>{n.current?.removeEventListener(`mouseover`,a),n.current?.removeEventListener(`mouseleave`,o)}},[n.current]);function r(t){!t?.id||e?.id?.toString()!==t?.id?.toString()||n.current?.classList.add(U.highlightPoi)}function i(){n.current?.classList.remove(U.highlightPoi)}function a(){e&&M.trigger(`glance:poi:mouseover`,e)}function o(){M.trigger(`glance:poi:mouseleave`)}return n}var W={poiEntry:`_poiEntry_1bne8_1`,poiText:`_poiText_1bne8_5`,public:`_public_1bne8_5`,poiTimeStamp:`_poiTimeStamp_1bne8_14`,wideBadge:`_wideBadge_1bne8_18`};function tt(e){let t=me.ToDisplayDuration(e.poi.startTime*1e3),n=et(e.poi,!e.suppressInteractivity);return e.suppressInteractivity?(0,P.jsxs)(`div`,{className:`d-flex ${W.poiEntry} mb-2`,children:[(0,P.jsx)(`span`,{className:`d-flex rounded-pill justify-content-center align-items-center text-info bg-light-blue ${W.poiTimeStamp} ${e.wideBadge?W.wideBadge:``}`,children:t}),(0,P.jsx)(`div`,{className:`${W.public} ms-2`,children:e.poi.description})]}):(0,P.jsxs)(ie,{className:`d-flex ${W.poiEntry} mb-2 cursor-pointer`,onClick:()=>e.onClickPoiItem(e.poi.startTime),ref:n,children:[(0,P.jsx)(`div`,{className:`d-flex rounded-pill justify-content-center align-items-center text-info bg-light-blue ${W.poiTimeStamp} ${e.wideBadge?W.wideBadge:``}`,children:t}),(0,P.jsx)(`div`,{className:`ms-2 ${W.poiText}`,children:e.poi.description})]},e.poi.startTime)}var nt=`shared.pointsOfInterestList`;function rt(e){let t=e.pointsOfInterest.sort((e,t)=>e.startTime-t.startTime),n=t.some(e=>e.startTime>=3600);return(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`h2`,{className:`h6 my-2`,children:(0,P.jsx)(T,{namespace:nt,phrase:`heading`})}),(0,P.jsx)(`div`,{children:t.map(t=>(0,P.jsx)(tt,{poi:t,suppressInteractivity:e.suppressInteractivity,onClickPoiItem:e.onClickPoiItem,wideBadge:n},t.startTime))})]})}var it=`shared.videoAtAGlanceV2`,at=365;function ot(e){return e.hideScrollbar?(0,P.jsx)(P.Fragment,{children:e.children}):(0,P.jsx)(`div`,{className:`rounded border mb-4 bg-white`,children:(0,P.jsx)(F.Scrollbars,{autoHeight:!0,autoHeightMax:at,children:(0,P.jsx)(`div`,{className:`px-3 pt-3 pb-2`,children:e.children})})})}function st(e){let t=Qe(e.video,e.canViewGlance),[n,r]=N.useState(``);function i(){let t={id:e.video.glance.id,name:e.video.glance.name,videoId:e.video.id,videoName:e.video.name,learningIntention:n},r={actionType:h.Copy,entity:p.Glance,location:m.PlayPage};x.logUserAction(t,r)}function a(){return y.isInteractive(e.video)||!e.video.tags?.data?.length?null:e.video.tags?.data?.filter(e=>e.tagType===g.Pedagogy||e.tagType===g.Skill)}let s=a(),c=N.useRef(null);if(N.useEffect(()=>{c.current?.innerText&&r(c.current.innerText)},[c.current?.innerText]),!e.canViewGlance)return(0,P.jsx)(P.Fragment,{});function l(t){e.setStartTime(t)}return(0,P.jsx)(`section`,{className:`play-page-section`,children:(0,P.jsxs)(ot,{hideScrollbar:e.hideScrollbar,children:[(0,P.jsx)(`h2`,{className:`h6 mb-2`,children:(0,P.jsx)(T,{namespace:it,phrase:`learningIntention`})}),(0,P.jsxs)(`div`,{className:`mb-3 ${U.learningIntention}`,children:[(0,P.jsx)(Pe,{copyableContent:n,tooltipClassName:U.icon,onClick:i,visible:!0}),(0,P.jsx)(`div`,{dangerouslySetInnerHTML:{__html:o.sanitize(t)},className:`d-inline`,ref:c})]}),!!s?.length&&(0,P.jsx)(`div`,{children:(0,P.jsx)(A,{tags:s,...j.getTagActionProps(e.getTagAppLink,e.onClickTag,e.suppressInteractivity),className:`mt-2`})}),!!e.pointsOfInterest?.length&&(0,P.jsx)(`div`,{className:`mt-3`,children:(0,P.jsx)(rt,{pointsOfInterest:e.pointsOfInterest,suppressInteractivity:e.suppressInteractivity,onClickPoiItem:l})})]})})}var ct=`shared.playPageResources`;function lt(e,t){let n=e.resources?.data??[],r=e.links?.data??[];return t?[...n.filter(e=>[`additional-materials`,`student-activity`].includes(e.metadata?.resourceType)),...r]:[...n,...r]}function ut(e){let{hasPermissions:t}=oe();function n(t){_e.downloadResource(t,e.analyticsData,{location:m.PlayPage,actionType:h.Download,entity:p.Resource})}let r=lt(e.video,t(i.StudentExperience)),o=a.getPhrase(ct,`resources`,{count:r.length});if(!r.length)return(0,P.jsx)(P.Fragment,{});let s=r.filter(pe.isResource),c=e.canViewResources&&s.length>0;return(0,P.jsx)(`section`,{id:k.Resources,className:`play-page-section widget-hover-reveal-boundary`,ref:t=>{t&&e.headingRef?.current&&e.headingRef.current.set(k.Resources,t)},children:(0,P.jsx)(v,{name:o,contents:_.PlayPageResourcesV2,collection:r,prefetched:!0,childComponent:ze,headerRightComponent:c?(0,P.jsx)(Ae,{resources:s,fileName:`${e.video.name}-resources`,analyticsData:e.analyticsData,onDownloadAllClick:e.onDownloadAllClick,revealOnHover:!0}):void 0,extraChildComponentProps:{imageCdnUrl:e.imageCdnUrl,imageErrorFallbackUrl:e.resourceThumbnailFallbackUrl,actionBehaviour:e.canViewResources?`normal`:`public`,location:`play-page`,titlePosition:`below`,onClickDownload:e.canViewResources?n:null},getChildAppLink:e.getAppLink,analyticsOptions:e.canViewResources?{}:{workflowPhase:f.Start,descriptor:d.SignUp},analyticsData:e.analyticsData})})}var dt=N.memo(function(e){let{data:t,thumbnailSize:n,preloadImage:r,getAppLink:i}=e,a=ke(t.subjectPresentationAudiences?.data,e.audiences);return(0,P.jsxs)(`div`,{className:`flex-shrink-0 px-1 col-6 col-sm-4`,children:[(0,P.jsx)(Ce,{type:`static`,textPosition:xe.Independent,video:t,appLink:i(t),imageOptions:{size:n},preload:r,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,audience:a,hideDuration:!1,commonVideoProps:e.commonVideoProps}),(0,P.jsx)(`div`,{className:`mt-2`,children:(0,P.jsx)(ve,{...e,video:t,appLink:e.getAppLink(t)})})]})}),ft=`shared.playPageClips`;function pt(e){if(!e.canViewClips||!e.clips?.length)return(0,P.jsx)(P.Fragment,{});let t=y.isVideo(e.video);function n(){return y.isVideo(e.video)?{action:b.Videos.VIDEO_CLIPS,application:l.VIDEOS,args:[e.presentationSlug,e.video.id,o.slugify(e.video.name)]}:{action:b.Clips.CLIP_CLIPS,application:l.CLIPS,args:[e.video.id,o.slugify(e.video.name)]}}let r=a.getPhrase(ft,t?`clips`:`otherClips`,{count:e.clips.length});return(0,P.jsx)(`section`,{className:`play-page-section`,id:k.Clips,ref:t=>{t&&e.headingRef?.current&&e.headingRef.current.set(k.Clips,t)},children:(0,P.jsx)(v,{name:r,contents:_.ClipsV2,collection:e.clips,prefetched:!0,getChildAppLink:e=>({application:l.CLIPS,action:b.Clips.PLAY_CLIP,args:[e.id,o.slugify(e.name)]}),appLink:n(),childComponent:dt,extraChildComponentProps:{audiences:e.audiences,showOwner:!0,commonVideoProps:e.commonVideoProps},analyticsData:e.analyticsData})})}var mt=`shared.playPageInteractives`;function ht(e){if(!e.canViewInteractives||!e.interactives?.length)return(0,P.jsx)(P.Fragment,{});function t(){return y.isVideo(e.video)?{action:b.Videos.VIDEO_INTERACTIVES,application:l.VIDEOS,args:[e.presentationSlug,e.video.id,o.slugify(e.video.name)]}:{action:b.Clips.CLIP_INTERACTIVES,application:l.CLIPS,args:[e.video.id,o.slugify(e.video.name)]}}let n=a.getPhrase(mt,`interactives`,{count:e.interactives.length});return(0,P.jsx)(`section`,{className:`play-page-section`,id:k.Interactives,ref:t=>{t&&e.headingRef?.current&&e.headingRef.current.set(k.Interactives,t)},children:(0,P.jsx)(v,{name:n,contents:_.InteractivesV2,collection:e.interactives,prefetched:!0,getChildAppLink:e=>({application:l.INTERACTIVES,action:b.Interactives.VIEW_INTERACTIVE,args:[e.id,o.slugify(e.name)]}),appLink:t(),childComponent:Ie,extraChildComponentProps:{questionsAppLink:{application:l.INTERACTIVES,action:b.Interactives.PREVIEW_QUESTIONS},showOwner:!0,commonVideoProps:e.commonVideoProps},analyticsData:e.analyticsData})})}function G(e){return(0,P.jsx)(`svg`,{...e,children:(0,P.jsx)(`path`,{d:`M5.455 12c0 .401.325.727.727.727h9.88l-3.849 3.85a.728.728 0 0 0 1.029 1.028l5.09-5.091a.73.73 0 0 0 .213-.514v7.272a.727.727 0 0 0 1.455 0V4.727a.727.727 0 0 0-1.455 0V12a.73.73 0 0 0-.213-.515l-5.09-5.09a.727.727 0 1 0-1.029 1.028l3.85 3.85H6.181a.727.727 0 0 0-.727.727`,fill:`currentColor`})})}function gt(e){return(0,P.jsx)(`svg`,{...e,children:(0,P.jsx)(`path`,{d:`M20 12a.727.727 0 0 0-.727-.728h-9.88l3.848-3.849a.727.727 0 1 0-1.028-1.029l-5.091 5.091a.73.73 0 0 0-.213.514V4.727a.727.727 0 0 0-1.454 0v14.545a.727.727 0 0 0 1.454 0V12c0 .186.071.373.213.515l5.091 5.09a.727.727 0 0 0 1.029-1.028l-3.85-3.85h9.88A.727.727 0 0 0 20 12`,fill:`currentColor`})})}var K={showInSide:`_showInSide_1n1am_1`,container:`_container_1n1am_7`,aside:`_aside_1n1am_11`,collapse:`_collapse_1n1am_14`,iconContainer:`_iconContainer_1n1am_22`,arrowIcon:`_arrowIcon_1n1am_22`,listIcon:`_listIcon_1n1am_25`},_t=`shared.playPage`;function q(e){function t(){let t={actionType:e.isExpanded?h.Hide:h.Open,entity:p.TableOfContents,location:m.PlayPage};x.logUserAction(e.analyticsData,t)}function n(){let n=!e.isExpanded;e.setIsExpanded(n),n?(e.toggleTheatreMode?.(!1),e.toggleTheatreMode||e.setIsExpanded(!1)):(e.toggleTheatreMode?.(!0),e.toggleTheatreMode||e.setIsExpanded(!0)),t()}return(0,P.jsx)(`div`,{className:`d-flex justify-content-end`,children:(0,P.jsx)(`div`,{className:K.container,children:(0,P.jsxs)(`div`,{className:`${K.iconContainer}`,children:[(0,P.jsx)(w,{className:`btn btn-outline-dark ${K.listIcon}`,svg:Te,onClick:n}),(0,P.jsx)(w,{className:`btn btn-outline-dark ${K.arrowIcon}`,svg:e.isExpanded?G:gt,onClick:n})]})})})}function J(e){function t(){let t={actionType:h.Hide,entity:p.TableOfContents,location:m.PlayPage};x.logUserAction(e.analyticsData,t)}function n(e){let t=re.getCurrentRoute().appLink,n=t.params?{...t.params}:{};return n.tocId=e.id,{...t,params:n}}function r(){e.showInSide||e.setIsExpanded(!1)}return(0,P.jsxs)(`div`,{className:e.showInSide?`col ms-2 ps-4 ${K.showInSide}`:`d-inline-flex gap-1`,children:[(0,P.jsx)(`aside`,{className:`${K.aside} position-relative ${e.showInSide?`pe-1 pt-1 `:`px-3 pt-3 pb-2 border border-dark rounded-1 bg-white`}`,children:(0,P.jsxs)(`div`,{className:`${K.container}`,children:[e.showInSide&&!e.hasTranscription&&(0,P.jsx)(w,{className:`btn position-absolute ${K.collapse}`,svg:G,onClick:()=>{e.setIsExpanded(!1),e.toggleTheatreMode?.(!0),t()}}),(0,P.jsx)(`h2`,{className:`h5`,children:(0,P.jsx)(T,{namespace:_t,phrase:`tocHeading`})}),(0,P.jsx)(Be,{items:e.items,activeId:e.activeId,getAppLink:n,setControlledId:e.setControlledId,analyticsData:e.analyticsData,onItemClick:()=>r()})]})}),!e.showInSide&&(0,P.jsx)(q,{...e})]})}function vt(e){return e.shouldShow?(0,P.jsxs)(P.Fragment,{children:[e.isExpanded&&e.showInSide&&(0,P.jsx)(J,{...e}),Oe.renderInPortalIfExists(!e.isExpanded&&(0,P.jsx)(q,{...e}),document.getElementById(C)),Oe.renderInPortalIfExists(!e.showInSide&&e.isExpanded&&(0,P.jsx)(J,{...e}),document.getElementById(C))]}):(0,P.jsx)(P.Fragment,{})}var Y={series:`_series_15j6m_1`,badgeListContainer:`_badgeListContainer_15j6m_5`,clipOriginInfo:`_clipOriginInfo_15j6m_10`},X=`shared.playPage`;function yt(e){let t=ke(e.media.subjectPresentationAudiences?.data,e.audiences),n=N.useRef(null),r=N.useRef(null),i=y.isVideo(e.media)&&!!y.getRating(e.media)?.value||y.isVideo(e.media)&&!!e.media.productionYear||!!e.media.subjectPresentationAudiences?.data?.length,a=je({location:Me.PlayPage,shareId:e.shareId,presentationSlug:e.presentationSlug}),o=!!e.originalVideoAppLink&&y.isClip(e.media)&&y.canViewOriginalVideo(e.media);return(0,P.jsx)(`section`,{className:`mb-3 position-relative`,ref:n,children:(0,P.jsxs)(`div`,{className:`d-inline-block w-100`,ref:r,children:[e.featureAccess.canNavigate&&(0,P.jsx)(`div`,{className:`ms-2 float-end`,children:(0,P.jsx)(he,{actions:a.getVideoActions(e.media),actionsDropdownClassName:`btn btn-outline-dark`,fetchMore:()=>a.fetchMoreActions(e.media)})}),!!y.isVideo(e.media)&&(0,P.jsx)(fe,{type:e.subTextType,video:e.media,appLink:e.subtextAppLink,className:`${Y.series} text-truncate mw-100`,analyticsOptions:{location:m.PlayPage}}),(0,P.jsxs)(`h1`,{className:`h4 mb-2 mw-100`,children:[(0,P.jsx)(`span`,{className:`align-self-center`,children:e.media.name}),e.showTitlePadlock&&(0,P.jsx)(Se,{tooltipPlacement:`right`,className:`d-inline-block ps-1`,video:e.media,yearGroups:e.yearGroups})]}),y.isClip(e.media)&&o&&(0,P.jsxs)(`p`,{className:`clamp-1 ${Y.clipOriginInfo}`,children:[(0,P.jsx)(T,{namespace:X,phrase:`viewOriginal`}),`\xA0`,(0,P.jsx)(S,{className:`info-link`,appLink:e.originalVideoAppLink,children:e.media._parentVideo?.name}),`\xA0`,(0,P.jsx)(T,{namespace:X,phrase:`timestamp`,options:{timeRange:`${me.ToDisplayTimeRange(e.media.startTime*1e3,e.media.endTime*1e3)}`}})]}),i&&(0,P.jsxs)(ge,{className:Y.badgeListContainer,children:[(0,P.jsx)(ye,{audience:t,className:`bg-white text-dark`,border:`dark`}),y.isVideo(e.media)&&(0,P.jsx)(O,{type:D.Rating,data:y.getRating(e.media)}),y.isVideo(e.media)&&(0,P.jsx)(O,{type:D.ProductionYear,data:e.media.productionYear})]})]})})}var Z={mask:`_mask_vq9tb_1`,centeredIcon:`_centeredIcon_vq9tb_10`,bgImage:`_bgImage_vq9tb_21`,centeredOverlay:`_centeredOverlay_vq9tb_24`},bt=a.encloseNamespace(`shared.playerPlaceholder`);function xt(e){switch(e.type){case`pip`:return(0,P.jsx)(St,{...e});case`public`:return(0,P.jsx)(Ct,{...e});default:return(0,P.jsx)(P.Fragment,{})}}var St=e=>(0,P.jsxs)(`div`,{className:`position-relative responsive-img ${Z.bgImage}`,style:{backgroundImage:`url('${y.getThumbnail(e.video)?.url??``}')`},children:[(0,P.jsx)(`p`,{className:`m-0 text-white h3 ${Z.centeredOverlay}`,children:bt(`playingPiP`)}),(0,P.jsx)(`div`,{className:Z.mask})]}),Ct=e=>{let t=ne.createUrl(y.getThumbnail(e.video)?.url??``,{size:te.Large});return(0,P.jsx)(`div`,{className:`position-relative responsive-img ${Z.bgImage}`,style:{backgroundImage:`url('${t}')`},children:(0,P.jsxs)(S,{appLink:e.appLink,analyticsOptions:{actionType:h.Click,location:m.PlayPage,entity:p.AppLink,workflowPhase:f.Start,descriptor:d.SignUp},analyticsData:{},children:[(0,P.jsx)(n,{svg:be,className:Z.centeredIcon}),(0,P.jsx)(`div`,{className:Z.mask})]})})};function wt({resourcePopupId:e,resources:t,getResourceAppLink:n}){N.useEffect(()=>{if(!e)return;let i=t?.find(t=>t.id.toString()===e.toString());i&&r.trigger(n(i))},[e])}var Q={main:`_main_1ujkn_1`,expandedToc:`_expandedToc_1ujkn_1`,theatreMode:`_theatreMode_1ujkn_4`,theatreModeContent:`_theatreModeContent_1ujkn_7`,theatreModePlayPageContainer:`_theatreModePlayPageContainer_1ujkn_17`,theatreModeLeftContent:`_theatreModeLeftContent_1ujkn_21`};function Tt(e){return e.shouldShowSideTableOfContents?e.hasTheatreMode&&e.theatreMode?Q.theatreMode:e.tableOfContentsExpanded?`${Q.expandedToc} col-9`:`pe-4`:``}function Et(e){return e.hasTheatreMode&&(e.theatreMode||!e.shouldShowSideTableOfContents)?`container ${Q.theatreModeContent}`:``}function Dt(e,t){return e&&t.defaultDisplayMode===`theatre`&&t.mode==="default"}var Ot=`play-page-toc-expanded`;function kt(e,t,n){let r=I(),i=Ne.get(Ot)!==`false`,a=t?n||r:i,[o,s]=N.useState(e||``),[c,l]=N.useState(``),[u,d]=N.useState(a);N.useEffect(()=>{if(!r){d(!1);return}if(t){d(!0);return}d(a)},[r,n]);function f(){t&&r||(d(!u),Ne.set(Ot,(!u).toString()))}return{controlledId:o,setControlledId:s,tableOfContentsExpanded:u,tableOfContentsActiveId:c,setTableOfContentsActiveId:l,onToggleTableOfContents:f}}var At={map(e){let t=new Proxy(new Map,{get(n,r){if(r===`set`)return(r,i)=>(n.get(r)!==i&&(n.set(r,i),e()),t);let i=Reflect.get(n,r);return typeof i==`function`?i.bind(n):i}});return t}},jt=[k.Video,k.CurriculumLinks,k.Resources,k.Interactives,k.Clips,k.VideoDetails,k.ClippedFrom,k.Transcript,k.ReferenceVideo,k.RelatedVideos],Mt=[k.Video,k.VideoDetails,k.CurriculumLinks,k.Resources,k.Interactives,k.Clips,k.ClippedFrom,k.Transcript,k.ReferenceVideo,k.RelatedVideos];function Nt(e){let t=se(),n=N.useRef(At.map(t));return{headingRef:n,headingElements:(e?jt:Mt).map(e=>n.current.get(e)).filter(Boolean)}}function Pt(e,t,n){let r=E();if(t!=="default")return!1;let i=n===`theatre`;return!(r.sm||r.md)&&e&&i}var $=a.encloseNamespace(`shared.play`),Ft={getSectionHeading(e,t){switch(e){case k.Resources:return $(`resourcesHeading`,{count:t.resources?.length});case k.Clips:return t.isPlayClipPage?$(`otherClipsHeading`,{count:t.clips?.length-1}):$(`clipsHeading`,{count:t.clips?.length});case k.Interactives:return $(`interactivesHeading`,{count:t.interactives?.length});case k.Video:return $(`videoHeading`);case k.VideoDetails:return $(`videoDetailsHeading`);case k.RelatedVideos:return $(`upNextHeading`);case k.CurriculumLinks:return $(`curriculumLinksHeading`);case k.ClippedFrom:return $(`clippedFromHeading`);case k.ReferenceVideo:return $(`referenceVideoHeading`);case k.Transcript:return $(`transcriptHeading`);default:return``}}};export{$e as _,Et as a,Q as c,yt as d,vt as f,st as g,ut as h,kt as i,wt as l,pt as m,Pt as n,Dt as o,ht as p,Nt as r,Tt as s,Ft as t,xt as u,Je as v,I as y};
|
|
2
|
+
//# sourceMappingURL=CbPqWgxm2.chunk.js.map
|