@clickview/lite 0.103.0 → 0.103.1
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 +392 -392
- package/dist/bundles.json +1 -1
- package/dist/en.json +1 -1
- package/dist/scripts/{BTXOoJko2.chunk.js → BFH_tnSb2.chunk.js} +3 -3
- package/dist/scripts/{BTXOoJko2.chunk.js.map → BFH_tnSb2.chunk.js.map} +1 -1
- package/dist/scripts/{Dvl1XgHV2.chunk.js → BeW5XQTb2.chunk.js} +2 -2
- package/dist/scripts/{Dvl1XgHV2.chunk.js.map → BeW5XQTb2.chunk.js.map} +1 -1
- package/dist/scripts/C8l37H7t2.chunk.js +2 -0
- package/dist/scripts/{Cj_F4Lv92.chunk.js.map → C8l37H7t2.chunk.js.map} +1 -1
- package/dist/scripts/{BoT5D3IL.chunk.js → CIzlhCeS.chunk.js} +2 -2
- package/dist/scripts/{BoT5D3IL.chunk.js.map → CIzlhCeS.chunk.js.map} +1 -1
- package/dist/scripts/{BTr5dJhb.chunk.js → CfrfHGSh.chunk.js} +2 -2
- package/dist/scripts/{BTr5dJhb.chunk.js.map → CfrfHGSh.chunk.js.map} +1 -1
- package/dist/scripts/{BTugVIIN2.chunk.js → CsCjBSq62.chunk.js} +2 -2
- package/dist/scripts/{BTugVIIN2.chunk.js.map → CsCjBSq62.chunk.js.map} +1 -1
- package/dist/scripts/{CvSpUZcJ2.chunk.js → Dd23z1_x2.chunk.js} +2 -2
- package/dist/scripts/{CvSpUZcJ2.chunk.js.map → Dd23z1_x2.chunk.js.map} +1 -1
- package/dist/scripts/{CWCtYUUU.chunk.js → Drh1bb9z.chunk.js} +2 -2
- package/dist/scripts/{CWCtYUUU.chunk.js.map → Drh1bb9z.chunk.js.map} +1 -1
- package/dist/scripts/{Cc9f2ux0.chunk.js → Drx3PvJj.chunk.js} +2 -2
- package/dist/scripts/{Cc9f2ux0.chunk.js.map → Drx3PvJj.chunk.js.map} +1 -1
- package/dist/scripts/QVwuOts3.chunk.js +12 -0
- package/dist/scripts/QVwuOts3.chunk.js.map +1 -0
- package/dist/scripts/{app-k0jrat-b.js → app-BHlllGhO.js} +4 -4
- package/dist/scripts/{app-k0jrat-b.js.map → app-BHlllGhO.js.map} +1 -1
- package/dist/scripts/{BQNOt7_Q2.chunk.js → kLCNzxrH2.chunk.js} +2 -2
- package/dist/scripts/{BQNOt7_Q2.chunk.js.map → kLCNzxrH2.chunk.js.map} +1 -1
- package/dist/scripts/{DXkvlC_92.chunk.js → wpRpI9h02.chunk.js} +2 -2
- package/dist/scripts/{DXkvlC_92.chunk.js.map → wpRpI9h02.chunk.js.map} +1 -1
- package/package.json +1 -1
- package/dist/scripts/Cj_F4Lv92.chunk.js +0 -2
- package/dist/scripts/DFleEz5_.chunk.js +0 -12
- package/dist/scripts/DFleEz5_.chunk.js.map +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{u as r}from"./BX0wDJmp.chunk.js";import{y as i}from"./NlCAcBdo.chunk.js";import{t as a}from"./oPIkfKWW2.chunk.js";import{t as o}from"./CcDvlSWl2.chunk.js";import{t as s}from"./DtGDVg4O2.chunk.js";import{t as c}from"./8U-YTgZd.chunk.js";import{t as l}from"./DsXWD-Sn.chunk.js";import{n as u,t as d}from"./A8xLZrSw.chunk.js";import{t as f}from"./CMLErBju.chunk.js";import{t as p}from"./BQKcAczf.chunk.js";import{l as m,r as h}from"./_Cm5O72d.chunk.js";import{t as g}from"./D3WOV5RE.chunk.js";import{t as _}from"./CmV-znIi2.chunk.js";import{n as v}from"./B-eFTZdx2.chunk.js";import{t as y}from"./BmR4qY-v2.chunk.js";import{t as b}from"./cX5MHowe.chunk.js";import{t as x}from"./DMIDfHRi2.chunk.js";import{t as S}from"./BIO-5Tfr2.chunk.js";import{y as C}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{u as r}from"./BX0wDJmp.chunk.js";import{y as i}from"./NlCAcBdo.chunk.js";import{t as a}from"./oPIkfKWW2.chunk.js";import{t as o}from"./CcDvlSWl2.chunk.js";import{t as s}from"./DtGDVg4O2.chunk.js";import{t as c}from"./8U-YTgZd.chunk.js";import{t as l}from"./DsXWD-Sn.chunk.js";import{n as u,t as d}from"./A8xLZrSw.chunk.js";import{t as f}from"./CMLErBju.chunk.js";import{t as p}from"./BQKcAczf.chunk.js";import{l as m,r as h}from"./_Cm5O72d.chunk.js";import{t as g}from"./D3WOV5RE.chunk.js";import{t as _}from"./CmV-znIi2.chunk.js";import{n as v}from"./B-eFTZdx2.chunk.js";import{t as y}from"./BmR4qY-v2.chunk.js";import{t as b}from"./cX5MHowe.chunk.js";import{t as x}from"./DMIDfHRi2.chunk.js";import{t as S}from"./BIO-5Tfr2.chunk.js";import{y as C}from"./wpRpI9h02.chunk.js";import{t as w}from"./BeW5XQTb2.chunk.js";t();var T=n();function E(t){let{hasProduct:n}=g(),{commonVideoProps:E,hasCommonVideoPropsCompleted:D}=y({locationContext:i.VideoThumbnail}),{hasPermissions:O}=p(),{hasTopicDirectories:k,hasPlayPageTranscript:A}=o(null),j=C(),M=r(a.currentUser()),N=r(s.sharedClip(t.objectId,t.shareId)),P=_({objectId:N.data?.id,objectTypeId:N.data?.typeId}),F=r(!!N.data?._parentVideo&&l.video(N.data._parentVideo.id)),I=r(!!N.data?._parentVideo?.id&&P.canViewClips&&s.videoClips(N.data._parentVideo.id)),L=r(P.canViewInteractives&&c.videoInteractives(t.objectId)),R=h({video:F.data,context:t.queryParams.context,contextId:t.queryParams.contextId,moviesAndTv:t.queryParams.mtv,currentUser:M.data}),z=x(),B=m(t.objectId);d(u.getClipMetadata({content:N.data})),S(R.videos??[]),f(N),v({id:t.objectId,app:`clips`,shareId:t.shareId});let V=b({name:N.data?.name});return N.data&&M.hasCompleted&&B.hasCompleted&&D?(0,T.jsx)(w,{shareId:t.shareId,clip:N.data,clips:I.data?.data,interactives:L.data?.data,currentUser:M.data,relatedVideos:R,hasProduct:n,queryParams:t.queryParams,audiences:z.data,canManageVideoAccess:O(e.ManageVideoAccess),pointsOfInterest:B?.items,featureAccess:P,tableOfContentsId:t.queryParams?.tocId,shouldShowSideTableOfContents:j,breadcrumbs:V,commonVideoProps:E,hasTopicDirectories:k,hasTheatreMode:A}):(0,T.jsx)(T.Fragment,{})}export{E as PlaySharedClipView};
|
|
2
|
+
//# sourceMappingURL=kLCNzxrH2.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"kLCNzxrH2.chunk.js","names":[],"sources":["../../src/apps/share/views/play-shared-clip/PlaySharedClipView.tsx"],"sourcesContent":["import 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 { ClipRequests } from 'libs/shared/flight-requests/ClipRequests';\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 { useProducts } from 'libs/shared/hooks/UseProducts';\nimport { useSetPageMetadata } from 'libs/shared/hooks/useSetPageMetadata';\nimport { useSettings } from 'libs/shared/hooks/useSettings';\nimport { Clip, ClipCollection, CurrentUser, InteractiveCollection, Video } from 'libs/shared/interfaces';\nimport { PageMetadataHelper } from 'libs/shared/utils/PageMetadataHelper';\n\nimport { useCommonVideoProps } from 'shared/hooks/useCommonVideoProps';\nimport { useDeepLinks } from 'shared/hooks/useDeepLinks';\nimport { useFetchPointsOfInterest } from 'shared/hooks/useFetchPointsOfInterest';\nimport { useGetRelatedVideos } from 'shared/hooks/useGetRelatedVideos';\nimport { usePresentationAudiences } from 'shared/hooks/usePresentationAudiences';\nimport { useVideoFeatureAccess } from 'shared/hooks/useVideoFeatureAccess';\nimport { useVideoMixin } from 'shared/hooks/useVideoMixin';\nimport { useShouldShowSideTableOfContents } from 'shared/views/play/hooks/useShouldShowTableOfContents';\nimport { PlayClip } from 'shared/views/play-clip/components/play-clip/PlayClip';\n\nimport { ShareLinkViewProps } from 'apps/share/interfaces/ShareLinkViewProps';\n\nexport function PlaySharedClipView(props: ShareLinkViewProps): React.ReactElement {\n const { hasProduct } = useProducts();\n\n const {\n commonVideoProps,\n hasCommonVideoPropsCompleted\n } = useCommonVideoProps({ locationContext: LocationContext.VideoThumbnail });\n const { hasPermissions } = usePermissions();\n const { hasTopicDirectories, hasPlayPageTranscript } = useSettings(null);\n\n const shouldShowSideTableOfContents = useShouldShowSideTableOfContents();\n\n const currentUser = Flight.useBasicFetch<CurrentUser>(UserRequests.currentUser());\n const clip = Flight.useBasicFetch<Clip>(ClipRequests.sharedClip(props.objectId, props.shareId));\n\n const featureAccess = useVideoFeatureAccess({\n objectId: clip.data?.id,\n objectTypeId: clip.data?.typeId\n });\n \n const video = Flight.useBasicFetch<Video>(!!clip.data?._parentVideo &&\n VideoRequests.video(clip.data._parentVideo.id));\n const childClips = Flight.useBasicFetch<ClipCollection>(\n !!clip.data?._parentVideo?.id && featureAccess.canViewClips && ClipRequests.videoClips(clip.data._parentVideo.id)\n );\n const interactives = Flight.useBasicFetch<InteractiveCollection>(\n featureAccess.canViewInteractives && InteractiveRequests.videoInteractives(props.objectId)\n );\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 audiences = usePresentationAudiences();\n const pointsOfInterest = useFetchPointsOfInterest(props.objectId);\n\n useSetPageMetadata(PageMetadataHelper.getClipMetadata({ content: clip.data }));\n\n useVideoMixin(relatedVideos.videos ?? []);\n useCannotConsumeError(clip);\n useDeepLinks({ id: props.objectId, app: 'clips', shareId: props.shareId });\n\n const breadcrumbs = useBreadcrumbs({ name: clip.data?.name });\n\n const hasLoaded = (\n clip.data &&\n currentUser.hasCompleted &&\n pointsOfInterest.hasCompleted &&\n hasCommonVideoPropsCompleted\n );\n\n if (!hasLoaded)\n return <></>;\n\n return (\n <PlayClip\n shareId={props.shareId}\n clip={clip.data}\n clips={childClips.data?.data}\n interactives={interactives.data?.data}\n currentUser={currentUser.data}\n relatedVideos={relatedVideos}\n hasProduct={hasProduct}\n queryParams={props.queryParams}\n audiences={audiences.data}\n canManageVideoAccess={hasPermissions(PermissionName.ManageVideoAccess)}\n pointsOfInterest={pointsOfInterest?.items}\n featureAccess={featureAccess}\n tableOfContentsId={props.queryParams?.tocId}\n shouldShowSideTableOfContents={shouldShowSideTableOfContents}\n breadcrumbs={breadcrumbs}\n commonVideoProps={commonVideoProps}\n hasTopicDirectories={hasTopicDirectories}\n hasTheatreMode={hasPlayPageTranscript}\n />\n );\n}\n"],"mappings":"q9BAgCA,SAAgB,EAAmB,EAA+C,CAChF,GAAM,CAAE,cAAe,EAAY,EAE7B,CACJ,mBACA,gCACE,EAAoB,CAAE,gBAAiB,EAAgB,cAAe,CAAC,EACrE,CAAE,kBAAmB,EAAe,EACpC,CAAE,sBAAqB,yBAA0B,EAAY,IAAI,EAEjE,EAAgC,EAAiC,EAEjE,EAAc,EAAkC,EAAa,YAAY,CAAC,EAC1E,EAAO,EAA2B,EAAa,WAAW,EAAM,SAAU,EAAM,OAAO,CAAC,EAExF,EAAgB,EAAsB,CAC1C,SAAU,EAAK,MAAM,GACrB,aAAc,EAAK,MAAM,MAC3B,CAAC,EAEK,EAAQ,EAA4B,CAAC,CAAC,EAAK,MAAM,cACrD,EAAc,MAAM,EAAK,KAAK,aAAa,EAAE,CAAC,EAC1C,EAAa,EACjB,CAAC,CAAC,EAAK,MAAM,cAAc,IAAM,EAAc,cAAgB,EAAa,WAAW,EAAK,KAAK,aAAa,EAAE,CAClH,EACM,EAAe,EACnB,EAAc,qBAAuB,EAAoB,kBAAkB,EAAM,QAAQ,CAC3F,EAEM,EAAgB,EAAoB,CACxC,MAAO,EAAM,KACb,QAAS,EAAM,YAAY,QAC3B,UAAW,EAAM,YAAY,UAC7B,YAAa,EAAM,YAAY,IAC/B,YAAa,EAAY,IAC3B,CAAC,EACK,EAAY,EAAyB,EACrC,EAAmB,EAAyB,EAAM,QAAQ,EAEhE,EAAmB,EAAmB,gBAAgB,CAAE,QAAS,EAAK,IAAK,CAAC,CAAC,EAE7E,EAAc,EAAc,QAAU,CAAC,CAAC,EACxC,EAAsB,CAAI,EAC1B,EAAa,CAAE,GAAI,EAAM,SAAU,IAAK,QAAS,QAAS,EAAM,OAAQ,CAAC,EAEzE,IAAM,EAAc,EAAe,CAAE,KAAM,EAAK,MAAM,IAAK,CAAC,EAY5D,OATE,EAAK,MACL,EAAY,cACZ,EAAiB,cACjB,GAOA,EAAA,EAAA,IAAA,CAAC,EAAD,CACE,QAAS,EAAM,QACf,KAAM,EAAK,KACX,MAAO,EAAW,MAAM,KACxB,aAAc,EAAa,MAAM,KACjC,YAAa,EAAY,KACV,gBACH,aACZ,YAAa,EAAM,YACnB,UAAW,EAAU,KACrB,qBAAsB,EAAe,EAAe,iBAAiB,EACrE,iBAAkB,GAAkB,MACrB,gBACf,kBAAmB,EAAM,aAAa,MACP,gCAClB,cACK,mBACG,sBACrB,eAAgB,CACjB,CAAA,GAtBM,EAAA,EAAA,IAAA,CAAA,EAAA,SAAA,CAAI,CAAA,CAwBf"}
|
|
@@ -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"./DFleEz5_.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"./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=wpRpI9h02.chunk.js.map
|