@clickview/lite 0.103.0-rc.0 → 0.103.0

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.
Files changed (77) hide show
  1. package/dist/.vite/manifest.json +640 -640
  2. package/dist/bundles.json +1 -1
  3. package/dist/en.json +1 -1
  4. package/dist/scripts/{BXosUOUS.chunk.js → 14z5Gy8L.chunk.js} +2 -2
  5. package/dist/scripts/{BXosUOUS.chunk.js.map → 14z5Gy8L.chunk.js.map} +1 -1
  6. package/dist/scripts/{BqkK_0Jk2.chunk.js → B4AZn1xm2.chunk.js} +2 -2
  7. package/dist/scripts/{BqkK_0Jk2.chunk.js.map → B4AZn1xm2.chunk.js.map} +1 -1
  8. package/dist/scripts/{_wBbQ-0z2.chunk.js → BBndy2td2.chunk.js} +2 -2
  9. package/dist/scripts/{_wBbQ-0z2.chunk.js.map → BBndy2td2.chunk.js.map} +1 -1
  10. package/dist/scripts/{BhgNNQjX.chunk.js → BOQck-Qs.chunk.js} +2 -2
  11. package/dist/scripts/{BhgNNQjX.chunk.js.map → BOQck-Qs.chunk.js.map} +1 -1
  12. package/dist/scripts/{BCTM3KG42.chunk.js → BQNOt7_Q2.chunk.js} +2 -2
  13. package/dist/scripts/{BCTM3KG42.chunk.js.map → BQNOt7_Q2.chunk.js.map} +1 -1
  14. package/dist/scripts/{DBdkd4Ag2.chunk.js → BTXOoJko2.chunk.js} +3 -3
  15. package/dist/scripts/{DBdkd4Ag2.chunk.js.map → BTXOoJko2.chunk.js.map} +1 -1
  16. package/dist/scripts/{wmwWqIeA.chunk.js → BTr5dJhb.chunk.js} +2 -2
  17. package/dist/scripts/{wmwWqIeA.chunk.js.map → BTr5dJhb.chunk.js.map} +1 -1
  18. package/dist/scripts/{B-aaIChO2.chunk.js → BTugVIIN2.chunk.js} +2 -2
  19. package/dist/scripts/{B-aaIChO2.chunk.js.map → BTugVIIN2.chunk.js.map} +1 -1
  20. package/dist/scripts/{_eRiDJm1.chunk.js → Ba4uGz_V.chunk.js} +2 -2
  21. package/dist/scripts/{_eRiDJm1.chunk.js.map → Ba4uGz_V.chunk.js.map} +1 -1
  22. package/dist/scripts/{Bx6qaXLc.chunk.js → Bdbe2u0R.chunk.js} +2 -2
  23. package/dist/scripts/{Bx6qaXLc.chunk.js.map → Bdbe2u0R.chunk.js.map} +1 -1
  24. package/dist/scripts/{syYCrnUX.chunk.js → BgoVmaXQ.chunk.js} +2 -2
  25. package/dist/scripts/{syYCrnUX.chunk.js.map → BgoVmaXQ.chunk.js.map} +1 -1
  26. package/dist/scripts/{B5DWwtp0.chunk.js → BjA9XV5y.chunk.js} +2 -2
  27. package/dist/scripts/{B5DWwtp0.chunk.js.map → BjA9XV5y.chunk.js.map} +1 -1
  28. package/dist/scripts/{Dp8z_udC.chunk.js → BoT5D3IL.chunk.js} +2 -2
  29. package/dist/scripts/{Dp8z_udC.chunk.js.map → BoT5D3IL.chunk.js.map} +1 -1
  30. package/dist/scripts/{BYMMqtaN.chunk.js → BqdHoEFM.chunk.js} +2 -2
  31. package/dist/scripts/{BYMMqtaN.chunk.js.map → BqdHoEFM.chunk.js.map} +1 -1
  32. package/dist/scripts/{BIvmcqND2.chunk.js → CCUznsdX2.chunk.js} +2 -2
  33. package/dist/scripts/{BIvmcqND2.chunk.js.map → CCUznsdX2.chunk.js.map} +1 -1
  34. package/dist/scripts/{BsNCh4UD.chunk.js → CFqL2Hm5.chunk.js} +3 -3
  35. package/dist/scripts/{BsNCh4UD.chunk.js.map → CFqL2Hm5.chunk.js.map} +1 -1
  36. package/dist/scripts/{BE8Ze3Fa2.chunk.js → CHmbcl4Y2.chunk.js} +2 -2
  37. package/dist/scripts/{BE8Ze3Fa2.chunk.js.map → CHmbcl4Y2.chunk.js.map} +1 -1
  38. package/dist/scripts/{RuVwpX36.chunk.js → CWCtYUUU.chunk.js} +2 -2
  39. package/dist/scripts/{RuVwpX36.chunk.js.map → CWCtYUUU.chunk.js.map} +1 -1
  40. package/dist/scripts/{CO8EIpI8.chunk.js → CXUrMkZu.chunk.js} +2 -2
  41. package/dist/scripts/{CO8EIpI8.chunk.js.map → CXUrMkZu.chunk.js.map} +1 -1
  42. package/dist/scripts/{DLqG-wwP.chunk.js → CYrelpYt.chunk.js} +2 -2
  43. package/dist/scripts/{DLqG-wwP.chunk.js.map → CYrelpYt.chunk.js.map} +1 -1
  44. package/dist/scripts/{Drx3PvJj.chunk.js → Cc9f2ux0.chunk.js} +2 -2
  45. package/dist/scripts/{Drx3PvJj.chunk.js.map → Cc9f2ux0.chunk.js.map} +1 -1
  46. package/dist/scripts/Cj_F4Lv92.chunk.js +2 -0
  47. package/dist/scripts/{C8l37H7t2.chunk.js.map → Cj_F4Lv92.chunk.js.map} +1 -1
  48. package/dist/scripts/{B5M-3wpn.chunk.js → CjwT65ug.chunk.js} +2 -2
  49. package/dist/scripts/{B5M-3wpn.chunk.js.map → CjwT65ug.chunk.js.map} +1 -1
  50. package/dist/scripts/{Dd23z1_x2.chunk.js → CvSpUZcJ2.chunk.js} +2 -2
  51. package/dist/scripts/{Dd23z1_x2.chunk.js.map → CvSpUZcJ2.chunk.js.map} +1 -1
  52. package/dist/scripts/{QrUfkwZX.chunk.js → DFleEz5_.chunk.js} +2 -2
  53. package/dist/scripts/{QrUfkwZX.chunk.js.map → DFleEz5_.chunk.js.map} +1 -1
  54. package/dist/scripts/{ygwO7HPs2.chunk.js → DIaT_eGy2.chunk.js} +2 -2
  55. package/dist/scripts/{ygwO7HPs2.chunk.js.map → DIaT_eGy2.chunk.js.map} +1 -1
  56. package/dist/scripts/{DXRsxBJw.chunk.js → DTliAJ8L.chunk.js} +2 -2
  57. package/dist/scripts/{DXRsxBJw.chunk.js.map → DTliAJ8L.chunk.js.map} +1 -1
  58. package/dist/scripts/{CfVIZBcI2.chunk.js → DXkvlC_92.chunk.js} +2 -2
  59. package/dist/scripts/{CfVIZBcI2.chunk.js.map → DXkvlC_92.chunk.js.map} +1 -1
  60. package/dist/scripts/{DE5jvfAx2.chunk.js → D_t70KgV2.chunk.js} +2 -2
  61. package/dist/scripts/{DE5jvfAx2.chunk.js.map → D_t70KgV2.chunk.js.map} +1 -1
  62. package/dist/scripts/{Dc01PBv1.chunk.js → Dn2EPvQj.chunk.js} +2 -2
  63. package/dist/scripts/{Dc01PBv1.chunk.js.map → Dn2EPvQj.chunk.js.map} +1 -1
  64. package/dist/scripts/{C4CuJJXy2.chunk.js → Dvl1XgHV2.chunk.js} +2 -2
  65. package/dist/scripts/{C4CuJJXy2.chunk.js.map → Dvl1XgHV2.chunk.js.map} +1 -1
  66. package/dist/scripts/{YzhKditE.chunk.js → ESLgHTNq.chunk.js} +2 -2
  67. package/dist/scripts/{YzhKditE.chunk.js.map → ESLgHTNq.chunk.js.map} +1 -1
  68. package/dist/scripts/{DfSzsD3P.chunk.js → FysETOFv.chunk.js} +2 -2
  69. package/dist/scripts/{DfSzsD3P.chunk.js.map → FysETOFv.chunk.js.map} +1 -1
  70. package/dist/scripts/{OmYpHs7g.chunk.js → _Cm5O72d.chunk.js} +3 -3
  71. package/dist/scripts/{OmYpHs7g.chunk.js.map → _Cm5O72d.chunk.js.map} +1 -1
  72. package/dist/scripts/{app-BzCWmnrr.js → app-k0jrat-b.js} +4 -4
  73. package/dist/scripts/{app-BzCWmnrr.js.map → app-k0jrat-b.js.map} +1 -1
  74. package/dist/scripts/{C46080Xd.chunk.js → dxqgnrOi.chunk.js} +2 -2
  75. package/dist/scripts/{C46080Xd.chunk.js.map → dxqgnrOi.chunk.js.map} +1 -1
  76. package/package.json +1 -1
  77. package/dist/scripts/C8l37H7t2.chunk.js +0 -2
@@ -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"./QrUfkwZX.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=CfVIZBcI2.chunk.js.map
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=DXkvlC_92.chunk.js.map