@clickview/lite 0.9.0-rc.1 → 0.9.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/languages/en.json +1 -1
  3. package/dist/scripts/1909-808298ba95-lite.chunk.js +1 -0
  4. package/dist/scripts/{2246-4b0e81d85a-lite.chunk.js → 2246-7bfedee8a2-lite.chunk.js} +1 -1
  5. package/dist/scripts/{2711-65cc3d551c-lite.chunk.js → 2711-e34c972bce-lite.chunk.js} +1 -1
  6. package/dist/scripts/{2916-da510b002d-lite.chunk.js → 2916-157df7290e-lite.chunk.js} +1 -1
  7. package/dist/scripts/3285-1085cdaf22-lite.chunk.js +1 -0
  8. package/dist/scripts/436-445683fe32-lite.chunk.js +1 -0
  9. package/dist/scripts/6507-384869dddd-lite.chunk.js +1 -0
  10. package/dist/scripts/7888-dae11d0922-lite.chunk.js +1 -0
  11. package/dist/scripts/{8414-7b21f0a268-lite.chunk.js → 8414-b68b779c30-lite.chunk.js} +1 -1
  12. package/dist/scripts/{8416-dd25278b82-lite.chunk.js → 8416-ecd0a751cc-lite.chunk.js} +1 -1
  13. package/dist/scripts/{8584-3866a6bdfc-lite.chunk.js → 8584-800c8ca3b8-lite.chunk.js} +1 -1
  14. package/dist/scripts/{8779-9799e080bc-lite.chunk.js → 8779-b18b7917c6-lite.chunk.js} +1 -1
  15. package/dist/scripts/{8835-23ffa51fd2-lite.chunk.js → 8835-83f3954627-lite.chunk.js} +1 -1
  16. package/dist/scripts/9273-0512b29db6-lite.chunk.js +1 -0
  17. package/dist/scripts/{9478-fbc897836d-lite.chunk.js → 9478-51c101dd1d-lite.chunk.js} +2 -2
  18. package/dist/scripts/bundle-c427f0ef2a.min.js +2 -0
  19. package/package.json +2 -2
  20. package/dist/scripts/1825-6717bfce7d-lite.chunk.js +0 -1
  21. package/dist/scripts/3285-f5ae4df00c-lite.chunk.js +0 -1
  22. package/dist/scripts/436-80f40ee10a-lite.chunk.js +0 -1
  23. package/dist/scripts/6507-4d3d3d0a07-lite.chunk.js +0 -1
  24. package/dist/scripts/7888-c18f390214-lite.chunk.js +0 -1
  25. package/dist/scripts/9273-c173fc18a5-lite.chunk.js +0 -1
  26. package/dist/scripts/bundle-5918438b47.min.js +0 -2
  27. /package/dist/scripts/{9478-fbc897836d-lite.chunk.js.LICENSE.txt → 9478-51c101dd1d-lite.chunk.js.LICENSE.txt} +0 -0
  28. /package/dist/scripts/{bundle-5918438b47.min.js.LICENSE.txt → bundle-c427f0ef2a.min.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/lite",
3
- "version": "0.9.0-rc.1",
3
+ "version": "0.9.0-rc.3",
4
4
  "description": "ClickView Lite",
5
5
  "main": "dist/scripts/bundle.js",
6
6
  "types": "dist/projects/lite/src/index.d.ts",
@@ -32,7 +32,7 @@
32
32
  "@types/react-window": "1.8.3"
33
33
  },
34
34
  "dependencies": {
35
- "@clickview/styles": "1.8.1-rc.2",
35
+ "@clickview/styles": "1.8.1-rc.4",
36
36
  "@microsoft/immersive-reader-sdk": "1.0.0",
37
37
  "@microsoft/teams-js": "1.5.2",
38
38
  "@typeform/embed-react": "1.2.6",
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1825],{25723:(e,t,n)=>{n.d(t,{m:()=>p});var r=n(1024),o=n(77268),i=n(23481),a=n(49985),c=n(25105),l=n(99940),u=n(79014);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f=null,d=!1;function p(e){var t,n,p=(t=r.useState(f),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=p[0],v=p[1];return f||d||(d=!0,(0,c.ajaxRequest)({resource:"/api/integrations/token/immersive-reader",type:l.k.GET,success:function(e){f=e,v(e),window.setTimeout((function(){f=null,d=!1}),9e5)},error:function(){}})),m?(e.title||(e.title=i.T.getPhrase("shared.immersiveReader","titleFallback")),r.createElement("span",{className:"".concat("nckQw"," ").concat(e.className||""),onClick:function(){u.q.isFunction(e.onLaunch)&&e.onLaunch(),a.k.logUserAction(e.analyticsData,e.analyticsOptions);var t={title:e.title,chunks:[{content:e.text,mimeType:e.html?"text/html":"text/plain"}]},n=m.subdomain,r=m.token,i={uiZIndex:5e3,onExit:function(){u.q.isFunction(e.onExit)&&e.onExit()}};o.launchAsync(r,n,t,i)}},r.createElement("svg",{viewBox:"0 0 40 37"},r.createElement("path",{d:"M37.4,0.9 L37.4,9.6 L35.4,9.6 L35.4,2.9 L24.4,2.9 C22.9,3.3 20,4.5 20,6 L20,17.2 L18,17.2 L18,6 C18,5 15.6,3.6 13.8,2.9 L2,2.9 L2,29 L12.4,29 L12.4,31 L0,31 L0,0.9 L14.1,0.9 L14.3,1 C15,1.2 17.5,2.2 18.9,3.7 C20.5,1.9 23.5,1.1 23.9,1 L24.1,1 L37.4,1 L37.4,0.9 Z",fill:"#000000"}),r.createElement("path",{d:"M27.4,37 L25.8,37 L18.4,29.4 L14,29.4 L14,21 L18.4,20.9 L26.1,13 L27.4,13 L27.4,37 Z M16,27.4 L19.2,27.4 L25.3,33.7 L25.3,16.6 L19.2,22.9 L15.9,22.9 L15.9,27.4 L16,27.4 Z",fill:"#0197F2"}),r.createElement("path",{d:"M31.3,32.7 L29.6,31.7 C29.6,31.7 31.7,28.3 31.7,25.2 C31.7,21.9 29.6,18.5 29.6,18.4 L31.3,17.4 C31.4,17.6 33.7,21.3 33.7,25.2 C33.7,28.8 31.4,32.6 31.3,32.7 Z",fill:"#0197F2"}),r.createElement("path",{d:"M36.4,36.2 L34.8,35 C34.8,35 38,30.8 38,25.2 C38,19.6 34.8,15.4 34.8,15.4 L36.4,14.2 C36.5,14.4 40,19 40,25.3 C40,31.5 36.5,36 36.4,36.2 Z",fill:"#0197F2"})))):r.createElement(r.Fragment,null)}},74696:(e,t,n)=>{n.d(t,{S:()=>u});var r=n(1024),o=n.n(r),i=n(99910),a=n(86764),c=n(81514);const l={partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function u(e){return o().createElement(o().Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return o().createElement(s,Object.assign({key:n},e))})))}function s(e){var t=(0,c.V)(),n=t===a.r.XS,r=t===a.r.SM||t===a.r.MD,u=e.withReordering&&!n;return o().createElement(i.Row,{className:"py-2"},o().createElement(i.Col,{xs:n?12:r?4:3,className:"flex-column align-items-flex-start mb-1"},o().createElement(i.Row,null,!!u&&o().createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},o().createElement("div",{className:"partial-loading-background ".concat(l.partialDragHandle)})),o().createElement(i.Col,{xs:u?10:12},o().createElement("div",{className:"partial-loading-background rounded ".concat(l.partialThumbnail)})))),o().createElement(i.Col,{xs:n?12:r?8:9},o().createElement("div",{className:"partial-loading-background ".concat(l.partialSeriesLink)}),o().createElement("div",{className:"partial-loading-background mb-1 ".concat(l.partialName)}),o().createElement("div",{className:"partial-loading-background ".concat(l.partialDescription)}),o().createElement("div",{className:"partial-loading-background ".concat(l.partialBadges)}),o().createElement("div",{className:"partial-loading-background ".concat(l.partialActions)})))}u.defaultProps={numVideos:15}},3133:(e,t,n)=>{n.d(t,{R:()=>l});var r=n(1024),o=n.n(r),i=n(83345),a=n(2786),c=n(55452);function l(e){var t,n,r;if(!e.owner&&!e.isClickViewContent)return o().createElement(o().Fragment,null);if(e.isClickViewContent)return o().createElement("small",{className:"clamp-1 d-flex align-items-center"},o().createElement("div",{className:"svg-container sm ml-n1 ".concat("smUBc")},o().createElement(a.Sd,null)),o().createElement("em",null,o().createElement(i.x,{namespace:"shared.videoOwnerText",phrase:"clickViewContent"})));var l=c.l.getDisplayName(e.owner);if(!l)return o().createElement(o().Fragment,null);var u=null===(n=null===(t=e.owner.customers)||void 0===t?void 0:t.data)||void 0===n?void 0:n[0],s=null!==(r=null==u?void 0:u.name)&&void 0!==r?r:"";return s&&(l+=", "),o().createElement("small",{className:"clamp-1"},l,s&&o().createElement("em",null,s))}},11518:(e,t,n)=>{n.d(t,{j7:()=>o.j,kM:()=>r.k});var r=n(5281),o=(n(61871),n(31309))},47862:(e,t,n)=>{n.d(t,{K:()=>d});var r=n(1024),o=n.n(r),i=n(8493),a=n(57760),c=n(68626),l=n(83345),u=n(3133),s=n(54610),f=n(65858);var d=o().memo((function(e){var t,n=Object.assign(Object.assign({},e.questionsAppLink),{args:[e.data.id]});return o().createElement("div",{className:"flex-shrink-0 px-1 ".concat("rXatl")},o().createElement("div",{className:"row m-0 border rounded p-2 h-100"},o().createElement("div",{className:"col-6 p-0"},o().createElement(a.u,{video:e.data,appLink:e.getAppLink(e.data),type:"static",imageOptions:{size:s.h2.Small},textPosition:c.z.Independent,preload:!0,analyticsOptions:{location:f.LocationContext.SlidingListItem}})),o().createElement("div",{className:"col-6 p-0"},o().createElement("div",{className:"pl-2"},o().createElement(i.F,{appLink:e.getAppLink(e.data)},o().createElement("h3",{className:"h6 mb-1"},o().createElement("span",{className:"clamp-2"},e.data.name))),o().createElement(u.R,{owner:e.data.owner,isClickViewContent:null===(t=e.data._isClickViewContent)||void 0===t?void 0:t.value}),o().createElement(i.F,{className:"info-link",appLink:n},o().createElement(l.x,{namespace:"shared.interactiveWidgetItem",phrase:"previewQuestions"}))))))}))},60051:(e,t,n)=>{var r;n.d(t,{f:()=>r}),function(e){e.Share="share",e.MasterObject="masterobject"}(r||(r={}))},47812:(e,t,n)=>{n.d(t,{k:()=>o});var r=n(99940),o={createViewKey:function(e,t,n){var o={mediaId:e.toString(),mediaIdType:t};return n&&(o.shareContextId=n),{url:"/api/player/create-view-key",key:"view:key:".concat(e,":").concat(t),type:r.k.POST,data:o,expiryTime:28800}}}},83921:(e,t,n)=>{n.d(t,{b:()=>V});var r=n(1024),o=n.n(r),i=n(81886),a=n(11025),c=n(33803),l=n(23481),u=n(64364);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=l.T.encloseNamespace("shared.videoRatingAccess");function y(e){return a.M.isClip(e)?v("clipTitle"):a.M.isInteractive(e)?v("interactiveTitle"):v("videoTitle")}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(c,e);var t,n,r,o,i=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(r);if(o){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,y(e))).video=e,t}return t=c,(n=[{key:"name",get:function(){return"VideoRatingAccessError"}},{key:"heading",get:function(){return y(this.video)}},{key:"description",get:function(){return e=this.video,a.M.isClip(e)?v("clipDescription"):a.M.isInteractive(e)?v("interactiveDescription"):v("videoDescription");var e}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(u.H);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function w(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var O=l.T.encloseNamespace("shared.parentVideoDeletedError");function j(e){return a.M.isClip(e)?O("clipTitle"):a.M.isInteractive(e)?O("interactiveTitle"):O("videoTitle")}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(c,e);var t,n,r,o,i=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=k(r);if(o){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return w(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,j(e))).video=e,t}return t=c,(n=[{key:"name",get:function(){return"ParentVideoDeletedError"}},{key:"heading",get:function(){return j(this.video)}},{key:"description",get:function(){return e=this.video,a.M.isClip(e)?O("clipDescription"):a.M.isInteractive(e)?O("interactiveDescription"):O("videoDescription");var e}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(u.H);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}function N(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var A=l.T.encloseNamespace("shared.videoNotInSubscriptionError"),x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=T(r);if(o){var n=T(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return N(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,"VideoNotInSubscriptionError")).video=e,t}return t=a,(n=[{key:"name",get:function(){return"VideoNotInSubscriptionError"}},{key:"heading",get:function(){return A("title")}},{key:"description",get:function(){return A("description")}}])&&S(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(u.H),R={"rating-not-allowed":h,"video-deleted":L,private:c.G,"clickview-private":x},V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R;o().useEffect((function(){var n;if(e.hasCompleted){var r=e.data;if(r){var o=a.M.getCanBeConsumed(r);if(!(null==o?void 0:o.value)){var c=Object.assign(Object.assign({},R),t)[null!==(n=null==o?void 0:o.reason)&&void 0!==n?n:"private"];i.Q.ErrorHelper.throw(new c(r))}}}}),[e.hasCompleted])}},87821:(e,t,n)=>{n.d(t,{p:()=>o});var r=n(33192),o={userVideoHistory:function(e,t,n,o){var i="video:history",a="{gateway}/v1/users/me/watch-history";return e&&(i+=":".concat(e),a+="?cursor=".concat(e)),{key:i,url:a,formatData:function(e){return{data:e.data.map((function(e){var t=r.utc(e.lastTimeWatched).local().format(),n=r(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:n})})),pagination:e.pagination}},success:t,error:n,always:o}},videoHistory:function(e,t,n,r,o){var i=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(i.join("&")),url:"{gateway}/v1/videos/history?".concat(i.join("&")),normalizeOptions:{namespace:t},formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:n,error:r,always:o}}}},78166:(e,t,n)=>{n.d(t,{Z:()=>v});var r=n(1024),o=n.n(r),i=n(28400),a=n(51365),c=n(4632),l=n(74696),u=n(83345),s=n(11025),f=n(97291),d=n(65986),p=n(14070),m=function(e){return{application:f.O.DEFAULT,action:p.e.Default.SERIES,args:[e.id,i.m.slugify(e.name)]}};function v(e){var t,n,r=(0,d._)(d.i.VideoItem);if(!(null===(t=e.currentUser)||void 0===t?void 0:t.isAuthenticated))return o().createElement(o().Fragment,null);if(e.relatedVideos.hasError)return o().createElement(o().Fragment,null);if(e.relatedVideos.hasCompleted&&!(null===(n=e.relatedVideos.videos)||void 0===n?void 0:n.length))return o().createElement(o().Fragment,null);if(!e.relatedVideos.isFetching&&!e.relatedVideos.hasCompleted)return o().createElement(o().Fragment,null);var i=!s.M.isInteractive(e.currentVideo);return o().createElement(a.M.Provider,{value:r},o().createElement("div",{className:e.className},o().createElement("h2",{className:"h4 mb-0"},o().createElement(u.x,{namespace:"shared.relatedVideos",phrase:i?"upNext":"relatedVideos"})),e.relatedVideos.isFetching?o().createElement(l.S,null):o().createElement(c.E4,{videos:e.relatedVideos.videos,getSeriesAppLink:m,getVideoAppLink:e.getVideoAppLink,setFavourite:e.setFavourite})))}},36873:(e,t,n)=>{n.d(t,{k:()=>u});var r=n(20354),o=n(11025),i=n(183),a=n(1575),c=n(15311),l=n(12754);function u(e,t,n,u){var s,f=(0,c.r)().hasProduct,d=r.a.useBasicFetch(e&&(null==t?void 0:t.isAuthenticated)&&f(l.x.Primary)?(n&&u||!o.M.isVideo(e)||!o.M.hasSeries(e)||(n=i.Q.Series,u=e.series.id),a.R.relatedVideos(e.id,t.id,n,u)):null);return{videos:(s=d.data,s?s.filter((function(e){var t;return null===(t=o.M.getCanBeConsumed(e))||void 0===t?void 0:t.value})):s),hasCompleted:d.hasCompleted,isFetching:d.isFetching,hasError:d.hasError}}},43853:(e,t,n)=>{n.d(t,{T:()=>i});var r=n(1024),o=n.n(r),i=function(){function e(e){if(38===e.keyCode||40===e.keyCode)return e.preventDefault(),!1}o().useEffect((function(){return window.addEventListener("keydown",e,!1),function(){window.removeEventListener("keydown",e,!1)}}),[])}},97816:(e,t,n)=>{n.d(t,{V:()=>p});var r=n(20354),o=n(31949),i=n(1575),a=n(21750),c=n(87821),l=n(63419);function u(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function d(e,t){var n=r.a.useGetResponse(null==t?void 0:t.key),o=r.a.useGetFetch();e&&t&&n.shouldFetch&&o(t)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},f),t),s=n.ratings,p=n.favourites,m=n.watchHistory,v=n.hasCurriculumLinks,y=r.a.useBasicFetch(o.N.currentUser()),h=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),b=y.data;if(null==b?void 0:b.isAuthenticated){var g=[];s&&(g=[].concat(u(g),[!!(null==h?void 0:h.length)&&i.R.videoRatings(h,t.flightNamespace)])),p&&(g=[].concat(u(g),[!!(null==h?void 0:h.length)&&b&&l.P.isFavourited(b.id,h,t.flightNamespace)])),m&&(g=[].concat(u(g),[!!(null==h?void 0:h.length)&&b&&c.p.videoHistory(h,t.flightNamespace)])),v&&(g=[].concat(u(g),[!!(null==h?void 0:h.length)&&a.x.hasCurriculumLinks(h,t.flightNamespace)])),g.forEach((function(t){return d(!!e,t)}))}}},32690:(e,t,n)=>{n.d(t,{P:()=>u});var r=n(1024),o=n.n(r),i=n(2948),a=n(11025),c=n(86702);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u=function(e,t){var n,r,u=t.t,s=(n=(0,i.D)(c.y.WEB_PLAYER_DATA),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(n,r)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=s[0],d=s[1];o().useEffect((function(){var t;if(e){var n=a.M.getVideoProgress(e),r=u&&+u||n,o=(null===(t=f.video)||void 0===t?void 0:t.id)!==e.id,i=Number.isInteger(r)&&r!==f.startTime;if(o||i){if(!r)return void d("startTime",0);if(u)return void d("startTime",+u);if(n>=e.duration/1e3-10)return void d("startTime",0);d("startTime",r)}}}),[e,u])}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3285],{60051:(t,e,r)=>{var n;r.d(e,{f:()=>n}),function(t){t.Share="share",t.MasterObject="masterobject"}(n||(n={}))},94644:(t,e,r)=>{r.d(e,{r:()=>f});var n=r(81886),o=r(50242),i=r(67058),a=r(49075),u=r(14553),c=r(49267),l={notFound:i.d,forbidden:{rating:u.q,yearLevel:u.q,region:c.a,privacy:u.q},badRequest:a._};function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t){var i;i="number"==typeof t?t:t.status;var a=Object.assign(Object.assign({},l),e);i&&n.Q.ErrorHelper.isStatusCodeError(i)&&(i!==o.o.NotFound?i!==o.o.Forbidden?r.badRequest||n.Q.ErrorHelper.throw(new a.badRequest):r.forbidden||n.Q.ErrorHelper.throw(new a.forbidden.privacy):r.notFound||n.Q.ErrorHelper.throw(new a.notFound))}}},47812:(t,e,r)=>{r.d(e,{k:()=>o});var n=r(99940),o={createViewKey:function(t,e,r){var o={mediaId:t.toString(),mediaIdType:e};return r&&(o.shareContextId=r),{url:"/api/player/create-view-key",key:"view:key:".concat(t,":").concat(e),type:n.k.POST,data:o,expiryTime:28800}}}},3010:(t,e,r)=>{r.d(e,{i:()=>i});var n=r(1024),o=r(45719);function i(t,e){var r=t,i=e,a=(0,o.P)(t&&function(t){return r(t).key});return(0,n.useEffect)((function(){a&&a.shouldInitialFetch&&e&&i()}),[null==a?void 0:a.shouldInitialFetch,e]),(0,n.useEffect)((function(){a&&a.nextCursor&&!a.isFetching&&e&&i(a.nextCursor)}),[null==a?void 0:a.nextCursor,null==a?void 0:a.isFetching,e]),a}},91286:(t,e,r)=>{r.d(e,{v:()=>a});var n=r(1024),o=r(94644);function i(t){return t.map((function(t){return t.statusCode})).join(":")}function a(t,e,r){var a=Array.isArray(t)?t:[t];(0,n.useEffect)((function(){a.forEach((function(t){(0,o.r)(t.statusCode,e,r)}))}),[i(a),e,r])}},45719:(t,e,r)=>{r.d(e,{F:()=>c,P:()=>l});var n=r(1024),o=r(58566),i=r(20354),a=r(79014);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var c={items:[],shouldInitialFetch:!1,nextCursor:null,isFetching:!1,statusCode:r(50242).o.Ok,hasCompleted:!0,totalItems:0};function l(t,e,r){function c(t){if(t)return a.q.isFunction(e)?e(t):t.data}function l(t){var e,n;if(t)return r?r(t):null===(n=null===(e=t.pagination)||void 0===e?void 0:e.cursors)||void 0===n?void 0:n.next}return(0,o.useSelector)((0,n.useMemo)((function(){return function(e){if(a.q.isFunction(t)){for(var r=t,n=a.q.isFunction(t)&&r(),o=n&&i.a.getResponse(e,n),f=o&&o.isFetching,s=o&&o.statusCode,d=o&&o.hasCompleted,p=o&&o.shouldFetch,y=c(o&&o.data),v=l(o&&o.data),b=function(t){var e;if(t)return null===(e=t)||void 0===e?void 0:e.count}(o&&o.data);v&&(f=(o=i.a.getResponse(e,r(v))).isFetching,s=o.statusCode,d=o.hasCompleted,!o.shouldFetch);){var h=c(o.data);h&&y.push.apply(y,function(t){if(Array.isArray(t))return u(t)}(w=h)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(w)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(w)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var m=l(o.data);v=m===v?null:m}var g={shouldInitialFetch:p,items:y,nextCursor:v,isFetching:f,statusCode:s,hasCompleted:d};return"number"==typeof b&&(g.totalItems=b),g}var w}}),[t]))}},83921:(t,e,r)=>{r.d(e,{b:()=>x});var n=r(1024),o=r.n(n),i=r(81886),a=r(11025),u=r(33803),c=r(23481),l=r(64364);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function p(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var v=c.T.encloseNamespace("shared.videoRatingAccess");function b(t){return a.M.isClip(t)?v("clipTitle"):a.M.isInteractive(t)?v("interactiveTitle"):v("videoTitle")}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(u,t);var e,r,n,o,i=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=y(n);if(o){var r=y(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return p(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=i.call(this,b(t))).video=t,e}return e=u,(r=[{key:"name",get:function(){return"VideoRatingAccessError"}},{key:"heading",get:function(){return b(this.video)}},{key:"description",get:function(){return t=this.video,a.M.isClip(t)?v("clipDescription"):a.M.isInteractive(t)?v("interactiveDescription"):v("videoDescription");var t}}])&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(l.H);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}function O(t,e){if(e&&("object"===m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}var E=c.T.encloseNamespace("shared.parentVideoDeletedError");function C(t){return a.M.isClip(t)?E("clipTitle"):a.M.isInteractive(t)?E("interactiveTitle"):E("videoTitle")}var F=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(u,t);var e,r,n,o,i=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=j(n);if(o){var r=j(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return O(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=i.call(this,C(t))).video=t,e}return e=u,(r=[{key:"name",get:function(){return"ParentVideoDeletedError"}},{key:"heading",get:function(){return C(this.video)}},{key:"description",get:function(){return t=this.video,a.M.isClip(t)?E("clipDescription"):a.M.isInteractive(t)?E("interactiveDescription"):E("videoDescription");var t}}])&&g(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(l.H);function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function S(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}function k(t,e){if(e&&("object"===P(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function A(t){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},A(t)}var I=c.T.encloseNamespace("shared.videoNotInSubscriptionError"),R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=A(n);if(o){var r=A(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return k(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,"VideoNotInSubscriptionError")).video=t,e}return e=a,(r=[{key:"name",get:function(){return"VideoNotInSubscriptionError"}},{key:"heading",get:function(){return I("title")}},{key:"description",get:function(){return I("description")}}])&&S(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(l.H),T={"rating-not-allowed":h,"video-deleted":F,private:u.G,"clickview-private":R},x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;o().useEffect((function(){var r;if(t.hasCompleted){var n=t.data;if(n){var o=a.M.getCanBeConsumed(n);if(!(null==o?void 0:o.value)){var u=Object.assign(Object.assign({},T),e)[null!==(r=null==o?void 0:o.reason)&&void 0!==r?r:"private"];i.Q.ErrorHelper.throw(new u(n))}}}}),[t.hasCompleted])}},61995:(t,e,r)=>{r.d(e,{_:()=>a});var n=r(45593),o=r(21938),i=r(76867),a={notFound:o.W,forbidden:{rating:n.F,yearLevel:n.F,region:i.z,privacy:n.F},badRequest:i.z}},33285:(t,e,r)=>{r.r(e),r.d(e,{EmbeddedLcsVideoView:()=>_});var n=r(1024),o=r(23049),i=r(20354),a=r(81886),u=r(2948),c=r(65858),l=r(39151),f=r(1643),s=r(31949),d=r(47812),p=r(60051),y=r(83921),v=r(1575),b=r(63419),h=r(91286),m=r(97037),g=r(13349),w=r(21972),O=r(97291),j=r(14070),E=r(86702),C=r(49948),F=r(45593),P=r(61995);function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _(t){var e,r,_,k,A,I,R;(0,w.I)();var T,x,D=(T=(0,u.D)(E.y.WEB_PLAYER_DATA),x=2,function(t){if(Array.isArray(t))return t}(T)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(T,x)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(t,e):void 0}}(T,x)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1],M=i.a.useBasicFetch(s.N.currentUser()),B=i.a.useBasicFetch((null===(e=M.data)||void 0===e?void 0:e.isAuthenticated)&&v.R.video(t.id),{optimize:!0});i.a.useBasicFetch((null===(r=M.data)||void 0===r?void 0:r.isAuthenticated)&&B.data?b.P.isFavourited(M.data.id,[B.data.id]):null);var L=i.a.useBasicFetch((null===(_=M.data)||void 0===_?void 0:_.isAuthenticated)&&d.k.createViewKey(t.id,p.f.MasterObject),{optimize:!0}),q=i.a.useBasicFetch(l.L.config()),U=(0,C.l)((null===(k=M.data)||void 0===k?void 0:k.isAuthenticated)&&(null===(A=B.data)||void 0===A?void 0:A.id));(0,o.o)(null===(I=B.data)||void 0===I?void 0:I.name),(0,y.b)(B,{private:F.F}),(0,h.v)(B,P._);var H=(0,m.c)(c.LocationContext.EmbeddedPlayer),V=H.setFavourite,N=H.canFavourite,Q=f.h.isFavouritedByCurrentUser(B.data),z=!(null===(R=M.data)||void 0===R?void 0:R.isAuthenticated)||(null==U?void 0:U.hasCompleted);return n.useEffect((function(){var t;if(B.data)return D("video",B.data),(null===(t=null==U?void 0:U.items)||void 0===t?void 0:t.length)&&D("pointsOfInterest",U.items),function(){D("video",null),D("shareId",null),D("pointsOfInterest",null)}}),[!!B.data,z]),M.hasCompleted&&!M.data.isAuthenticated?(a.Q.AppLinkHelper.trigger({application:O.O.EMBED,action:j.e.Embed.LCS_LOGIN,args:[t.id],params:t.queryParams}),n.createElement(n.Fragment,null)):L.data&&q.data&&B.data&&z?n.createElement(g.M,{viewKey:L.data.viewKey,playerApiUrl:q.data.playerApiUrl,webPlayerUrl:q.data.webPlayerUrl,imageCdnUrl:q.data.imageCdnUrl,videoId:B.data.id,embed:!0,showResources:!0,currentUser:M.data,canFavourite:N(B.data),favourited:Q,onClickFavourite:function(){var t=!Q;V(B.data,t)},getExternalLink:function(e){return a.Q.AppLinkHelper.getHref({application:O.O.DEFAULT,action:j.e.Default.PLAY_VIDEO,args:[t.id],params:{t:e.currentTime,a:!0}})},autoplay:"true"===t.queryParams.a,allowPip:!1}):n.createElement(n.Fragment,null)}},49948:(t,e,r)=>{r.d(e,{l:()=>f});var n=r(58566),o=r(20354),i=r(3010),a=r(45719),u=r(1575),c=r(22902),l=r(16714);function f(t){var e=(0,n.useDispatch)(),r=(0,c.T)().hasPermissions;function f(e){return u.R.pointsOfInterest(t,e)}r(l.C.StudentExperience)&&(t=null),(0,i.i)(!!t&&f,!!t&&function(t){o.a.getFetch(e)(f(t))});var s=(0,a.P)(!!t&&function(t){return f(t).key});return r(l.C.StudentExperience)?a.F:s}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[436],{25723:(e,t,r)=>{r.d(t,{m:()=>y});var n=r(1024),o=r(77268),i=r(23481),c=r(49985),a=r(25105),u=r(99940),l=r(79014);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s=null,p=!1;function y(e){var t,r,y=(t=n.useState(s),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],c=!0,a=!1;try{for(r=r.call(e);!(c=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);c=!0);}catch(e){a=!0,o=e}finally{try{c||null==r.return||r.return()}finally{if(a)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=y[0],b=y[1];return s||p||(p=!0,(0,a.ajaxRequest)({resource:"/api/integrations/token/immersive-reader",type:u.k.GET,success:function(e){s=e,b(e),window.setTimeout((function(){s=null,p=!1}),9e5)},error:function(){}})),d?(e.title||(e.title=i.T.getPhrase("shared.immersiveReader","titleFallback")),n.createElement("span",{className:"".concat("nckQw"," ").concat(e.className||""),onClick:function(){l.q.isFunction(e.onLaunch)&&e.onLaunch(),c.k.logUserAction(e.analyticsData,e.analyticsOptions);var t={title:e.title,chunks:[{content:e.text,mimeType:e.html?"text/html":"text/plain"}]},r=d.subdomain,n=d.token,i={uiZIndex:5e3,onExit:function(){l.q.isFunction(e.onExit)&&e.onExit()}};o.launchAsync(n,r,t,i)}},n.createElement("svg",{viewBox:"0 0 40 37"},n.createElement("path",{d:"M37.4,0.9 L37.4,9.6 L35.4,9.6 L35.4,2.9 L24.4,2.9 C22.9,3.3 20,4.5 20,6 L20,17.2 L18,17.2 L18,6 C18,5 15.6,3.6 13.8,2.9 L2,2.9 L2,29 L12.4,29 L12.4,31 L0,31 L0,0.9 L14.1,0.9 L14.3,1 C15,1.2 17.5,2.2 18.9,3.7 C20.5,1.9 23.5,1.1 23.9,1 L24.1,1 L37.4,1 L37.4,0.9 Z",fill:"#000000"}),n.createElement("path",{d:"M27.4,37 L25.8,37 L18.4,29.4 L14,29.4 L14,21 L18.4,20.9 L26.1,13 L27.4,13 L27.4,37 Z M16,27.4 L19.2,27.4 L25.3,33.7 L25.3,16.6 L19.2,22.9 L15.9,22.9 L15.9,27.4 L16,27.4 Z",fill:"#0197F2"}),n.createElement("path",{d:"M31.3,32.7 L29.6,31.7 C29.6,31.7 31.7,28.3 31.7,25.2 C31.7,21.9 29.6,18.5 29.6,18.4 L31.3,17.4 C31.4,17.6 33.7,21.3 33.7,25.2 C33.7,28.8 31.4,32.6 31.3,32.7 Z",fill:"#0197F2"}),n.createElement("path",{d:"M36.4,36.2 L34.8,35 C34.8,35 38,30.8 38,25.2 C38,19.6 34.8,15.4 34.8,15.4 L36.4,14.2 C36.5,14.4 40,19 40,25.3 C40,31.5 36.5,36 36.4,36.2 Z",fill:"#0197F2"})))):n.createElement(n.Fragment,null)}},60051:(e,t,r)=>{var n;r.d(t,{f:()=>n}),function(e){e.Share="share",e.MasterObject="masterobject"}(n||(n={}))},47812:(e,t,r)=>{r.d(t,{k:()=>o});var n=r(99940),o={createViewKey:function(e,t,r){var o={mediaId:e.toString(),mediaIdType:t};return r&&(o.shareContextId=r),{url:"/api/player/create-view-key",key:"view:key:".concat(e,":").concat(t),type:n.k.POST,data:o,expiryTime:28800}}}},83921:(e,t,r)=>{r.d(t,{b:()=>M});var n=r(1024),o=r.n(n),i=r(81886),c=r(11025),a=r(33803),u=r(23481),l=r(64364);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var b=u.T.encloseNamespace("shared.videoRatingAccess");function v(e){return c.M.isClip(e)?b("clipTitle"):c.M.isInteractive(e)?b("interactiveTitle"):b("videoTitle")}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(n);if(o){var r=d(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return y(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,v(e))).video=e,t}return t=a,(r=[{key:"name",get:function(){return"VideoRatingAccessError"}},{key:"heading",get:function(){return v(this.video)}},{key:"description",get:function(){return e=this.video,c.M.isClip(e)?b("clipDescription"):c.M.isInteractive(e)?b("interactiveDescription"):b("videoDescription");var e}}])&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(l.H);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function O(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}var j=u.T.encloseNamespace("shared.parentVideoDeletedError");function E(e){return c.M.isClip(e)?j("clipTitle"):c.M.isInteractive(e)?j("interactiveTitle"):j("videoTitle")}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=L(n);if(o){var r=L(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return O(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,E(e))).video=e,t}return t=a,(r=[{key:"name",get:function(){return"ParentVideoDeletedError"}},{key:"heading",get:function(){return E(this.video)}},{key:"description",get:function(){return e=this.video,c.M.isClip(e)?j("clipDescription"):c.M.isInteractive(e)?j("interactiveDescription"):j("videoDescription");var e}}])&&w(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(l.H);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function R(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function P(e,t){if(t&&("object"===k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var _=u.T.encloseNamespace("shared.videoNotInSubscriptionError"),I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(c,e);var t,r,n,o,i=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=T(n);if(o){var r=T(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return P(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,"VideoNotInSubscriptionError")).video=e,t}return t=c,(r=[{key:"name",get:function(){return"VideoNotInSubscriptionError"}},{key:"heading",get:function(){return _("title")}},{key:"description",get:function(){return _("description")}}])&&R(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(l.H),x={"rating-not-allowed":h,"video-deleted":S,private:a.G,"clickview-private":I},M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x;o().useEffect((function(){var r;if(e.hasCompleted){var n=e.data;if(n){var o=c.M.getCanBeConsumed(n);if(!(null==o?void 0:o.value)){var a=Object.assign(Object.assign({},x),t)[null!==(r=null==o?void 0:o.reason)&&void 0!==r?r:"private"];i.Q.ErrorHelper.throw(new a(n))}}}}),[e.hasCompleted])}},93264:(e,t,r)=>{r.d(t,{T:()=>i});var n=r(39479),o=function(e,t,r){var n=t-(e=e.toString()).length;return n<=0?e:new Array(n+1).join(r)+e},i={ToDisplayDuration:function(e){if(!n.isNumber(e))return"";var t=new Date(e),r=t.getUTCHours(),i=o(t.getUTCMinutes(),2,"0"),c=o(t.getUTCSeconds(),2,"0");return r>0?"".concat(r,":").concat(i,":").concat(c):"".concat(i,":").concat(c)}}},6332:(e,t,r)=>{r.r(t),r.d(t,{EmbeddedInteractiveView:()=>E});var n=r(1024),o=r.n(n),i=r(17082),c=r(81886),a=r(20354),u=r(23049),l=r(39151),f=r(20768),s=r(47812),p=r(31949),y=r(60051),d=r(83921),b=r(65858),v=r(57052),h=r(44960),m=r(97291),w=r(14070);var g=r(86764),O=r(81514),L=r(45593),j=r(30439);function E(e){var t,r=o().useRef(),n=o().useRef(),E=a.a.useBasicFetch(l.L.config()),S=a.a.useBasicFetch(p.N.currentUser()),k=a.a.useBasicFetch(f.b.sharedInteractiveMetadata(e.objectId,e.shareId)),R=a.a.useBasicFetch(s.k.createViewKey(e.shareId,y.f.Share)),C=a.a.useBasicFetch(j.o.getShareObject(e.shareId),{optimize:!0}),P=o().useMemo((function(){return(0,i.oD)()}),[]);(0,d.b)(k,{private:L.F});var T=(0,O.V)(),_=T!==g.r.XL&&T!==g.r.XXL;return(0,u.o)(null===(t=k.data)||void 0===t?void 0:t.name),E.data&&R.data&&S.data&&C.data?o().createElement(o().Fragment,null,o().createElement(v.S,{viewKey:R.data.viewKey,imageApi:new URL(E.data.imageCdnUrl),playerApi:new URL(E.data.playerApiUrl),supportSiteUrl:new URL(E.data.supportSiteUrl),hotkeyElQuerySelector:"body",autoplay:"true"===e.queryParams.a,onReady:function(t){r.current=t,n.current=new h.M({player:t,video:k.data,analyticsLocation:b.LocationContext.EmbeddedPlayer,shareId:e.shareId})},currentUser:S.data,collectResults:S.data.isAuthenticated,shareId:e.shareId,embed:!0,className:"tuc_r",summaryPortalNode:P,getExternalLink:function(t){return c.Q.AppLinkHelper.getHref({application:m.O.SHARE,action:w.e.Share.VIEW_SHARE_LINK,args:[e.shareId],params:{t:t.currentTime,a:!0}})},onShowSummary:function(e){e?document.body.classList.remove("overflow-hidden"):document.body.classList.add("overflow-hidden")},sharerInstanceRegion:C.data.ownerInstanceRegion,enableImmersiveReader:!0}),o().createElement("div",{className:"p-3 ".concat(_?"container-fluid":"container")},o().createElement(i.t0,{node:P}))):o().createElement(o().Fragment,null)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6507],{60051:(t,e,r)=>{var n;r.d(e,{f:()=>n}),function(t){t.Share="share",t.MasterObject="masterobject"}(n||(n={}))},47812:(t,e,r)=>{r.d(e,{k:()=>o});var n=r(99940),o={createViewKey:function(t,e,r){var o={mediaId:t.toString(),mediaIdType:e};return r&&(o.shareContextId=r),{url:"/api/player/create-view-key",key:"view:key:".concat(t,":").concat(e),type:n.k.POST,data:o,expiryTime:28800}}}},3010:(t,e,r)=>{r.d(e,{i:()=>i});var n=r(1024),o=r(45719);function i(t,e){var r=t,i=e,a=(0,o.P)(t&&function(t){return r(t).key});return(0,n.useEffect)((function(){a&&a.shouldInitialFetch&&e&&i()}),[null==a?void 0:a.shouldInitialFetch,e]),(0,n.useEffect)((function(){a&&a.nextCursor&&!a.isFetching&&e&&i(a.nextCursor)}),[null==a?void 0:a.nextCursor,null==a?void 0:a.isFetching,e]),a}},45719:(t,e,r)=>{r.d(e,{F:()=>c,P:()=>l});var n=r(1024),o=r(58566),i=r(20354),a=r(79014);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var c={items:[],shouldInitialFetch:!1,nextCursor:null,isFetching:!1,statusCode:r(50242).o.Ok,hasCompleted:!0,totalItems:0};function l(t,e,r){function c(t){if(t)return a.q.isFunction(e)?e(t):t.data}function l(t){var e,n;if(t)return r?r(t):null===(n=null===(e=t.pagination)||void 0===e?void 0:e.cursors)||void 0===n?void 0:n.next}return(0,o.useSelector)((0,n.useMemo)((function(){return function(e){if(a.q.isFunction(t)){for(var r=t,n=a.q.isFunction(t)&&r(),o=n&&i.a.getResponse(e,n),f=o&&o.isFetching,s=o&&o.statusCode,d=o&&o.hasCompleted,p=o&&o.shouldFetch,y=c(o&&o.data),v=l(o&&o.data),h=function(t){var e;if(t)return null===(e=t)||void 0===e?void 0:e.count}(o&&o.data);v&&(f=(o=i.a.getResponse(e,r(v))).isFetching,s=o.statusCode,d=o.hasCompleted,!o.shouldFetch);){var b=c(o.data);b&&y.push.apply(y,function(t){if(Array.isArray(t))return u(t)}(w=b)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(w)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(w)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var m=l(o.data);v=m===v?null:m}var g={shouldInitialFetch:p,items:y,nextCursor:v,isFetching:f,statusCode:s,hasCompleted:d};return"number"==typeof h&&(g.totalItems=h),g}var w}}),[t]))}},83921:(t,e,r)=>{r.d(e,{b:()=>x});var n=r(1024),o=r.n(n),i=r(81886),a=r(11025),u=r(33803),c=r(23481),l=r(64364);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function p(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var v=c.T.encloseNamespace("shared.videoRatingAccess");function h(t){return a.M.isClip(t)?v("clipTitle"):a.M.isInteractive(t)?v("interactiveTitle"):v("videoTitle")}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(u,t);var e,r,n,o,i=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=y(n);if(o){var r=y(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return p(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=i.call(this,h(t))).video=t,e}return e=u,(r=[{key:"name",get:function(){return"VideoRatingAccessError"}},{key:"heading",get:function(){return h(this.video)}},{key:"description",get:function(){return t=this.video,a.M.isClip(t)?v("clipDescription"):a.M.isInteractive(t)?v("interactiveDescription"):v("videoDescription");var t}}])&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(l.H);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}function O(t,e){if(e&&("object"===m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}var S=c.T.encloseNamespace("shared.parentVideoDeletedError");function I(t){return a.M.isClip(t)?S("clipTitle"):a.M.isInteractive(t)?S("interactiveTitle"):S("videoTitle")}var P=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(u,t);var e,r,n,o,i=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=j(n);if(o){var r=j(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return O(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=i.call(this,I(t))).video=t,e}return e=u,(r=[{key:"name",get:function(){return"ParentVideoDeletedError"}},{key:"heading",get:function(){return I(this.video)}},{key:"description",get:function(){return t=this.video,a.M.isClip(t)?S("clipDescription"):a.M.isInteractive(t)?S("interactiveDescription"):S("videoDescription");var t}}])&&g(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(l.H);function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function E(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function F(t,e){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},F(t,e)}function _(t,e){if(e&&("object"===C(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}var R=c.T.encloseNamespace("shared.videoNotInSubscriptionError"),A=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&F(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=k(n);if(o){var r=k(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,"VideoNotInSubscriptionError")).video=t,e}return e=a,(r=[{key:"name",get:function(){return"VideoNotInSubscriptionError"}},{key:"heading",get:function(){return R("title")}},{key:"description",get:function(){return R("description")}}])&&E(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(l.H),T={"rating-not-allowed":b,"video-deleted":P,private:u.G,"clickview-private":A},x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;o().useEffect((function(){var r;if(t.hasCompleted){var n=t.data;if(n){var o=a.M.getCanBeConsumed(n);if(!(null==o?void 0:o.value)){var u=Object.assign(Object.assign({},T),e)[null!==(r=null==o?void 0:o.reason)&&void 0!==r?r:"private"];i.Q.ErrorHelper.throw(new u(n))}}}}),[t.hasCompleted])}},56507:(t,e,r)=>{r.r(e),r.d(e,{EmbeddedVideoView:()=>E});var n=r(1024),o=r(23049),i=r(20354),a=r(81886),u=r(2948),c=r(39151),l=r(1643),f=r(31949),s=r(47812),d=r(60051),p=r(83921),y=r(65858),v=r(97037),h=r(13349),b=r(21972),m=r(97291),g=r(14070),w=r(86702),O=r(1575),j=r(63419),S=r(49948),I=r(45593),P=r(30439);function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function E(t){var e,r,E,F,_;(0,b.I)();var k,R,A=(k=(0,u.D)(w.y.WEB_PLAYER_DATA),R=2,function(t){if(Array.isArray(t))return t}(k)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(k,R)||function(t,e){if(t){if("string"==typeof t)return C(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(t,e):void 0}}(k,R)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1],T=i.a.useBasicFetch(f.N.currentUser()),x=i.a.useBasicFetch(O.R.sharedVideo(t.objectId,t.shareId));i.a.useBasicFetch((null===(e=T.data)||void 0===e?void 0:e.isAuthenticated)&&x.data?j.P.isFavourited(T.data.id,[x.data.id]):null);var B=i.a.useBasicFetch(s.k.createViewKey(t.shareId,d.f.Share)),D=i.a.useBasicFetch(c.L.config()),M=i.a.useBasicFetch(P.o.getShareObject(t.shareId),{optimize:!0}),U=(0,S.l)((null===(r=T.data)||void 0===r?void 0:r.isAuthenticated)&&(null===(E=x.data)||void 0===E?void 0:E.id));(0,o.o)(null===(F=x.data)||void 0===F?void 0:F.name),(0,p.b)(x,{private:I.F});var V=(0,v.c)(y.LocationContext.EmbeddedPlayer),H=V.setFavourite,N=V.canFavourite,L=l.h.isFavouritedByCurrentUser(x.data),K=!(null===(_=T.data)||void 0===_?void 0:_.isAuthenticated)||(null==U?void 0:U.hasCompleted);return n.useEffect((function(){var e;if(x.data&&M.data)return A("video",x.data),A("shareId",t.shareId),M.data.ownerInstanceRegion&&A("sharerInstanceRegion",M.data.ownerInstanceRegion),(null===(e=null==U?void 0:U.items)||void 0===e?void 0:e.length)&&A("pointsOfInterest",U.items),function(){A("video",null),A("shareId",null),A("pointsOfInterest",null)}}),[!!x.data,t.shareId,!!M.data,K]),B.data&&D.data&&x.data&&K?n.createElement(h.M,{viewKey:B.data.viewKey,playerApiUrl:D.data.playerApiUrl,webPlayerUrl:D.data.webPlayerUrl,imageCdnUrl:D.data.imageCdnUrl,videoId:x.data.id,embed:!0,showResources:!0,currentUser:T.data,canFavourite:N(x.data),favourited:L,onClickFavourite:function(){var t=!L;H(x.data,t)},getExternalLink:function(e){return a.Q.AppLinkHelper.getHref({application:m.O.SHARE,action:g.e.Share.VIEW_SHARE_LINK,args:[t.shareId],params:{t:e.currentTime,a:!0}})},autoplay:"true"===t.queryParams.a,allowPip:!1}):n.createElement(n.Fragment,null)}},49948:(t,e,r)=>{r.d(e,{l:()=>f});var n=r(58566),o=r(20354),i=r(3010),a=r(45719),u=r(1575),c=r(22902),l=r(16714);function f(t){var e=(0,n.useDispatch)(),r=(0,c.T)().hasPermissions;function f(e){return u.R.pointsOfInterest(t,e)}r(l.C.StudentExperience)&&(t=null),(0,i.i)(!!t&&f,!!t&&function(t){o.a.getFetch(e)(f(t))});var s=(0,a.P)(!!t&&function(t){return f(t).key});return r(l.C.StudentExperience)?a.F:s}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7888],{60051:(e,t,r)=>{var n;r.d(t,{f:()=>n}),function(e){e.Share="share",e.MasterObject="masterobject"}(n||(n={}))},47812:(e,t,r)=>{r.d(t,{k:()=>o});var n=r(99940),o={createViewKey:function(e,t,r){var o={mediaId:e.toString(),mediaIdType:t};return r&&(o.shareContextId=r),{url:"/api/player/create-view-key",key:"view:key:".concat(e,":").concat(t),type:n.k.POST,data:o,expiryTime:28800}}}},83921:(e,t,r)=>{r.d(t,{b:()=>D});var n=r(1024),o=r.n(n),i=r(81886),a=r(11025),c=r(33803),u=r(23481),f=r(64364);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var b=u.T.encloseNamespace("shared.videoRatingAccess");function v(e){return a.M.isClip(e)?b("clipTitle"):a.M.isInteractive(e)?b("interactiveTitle"):b("videoTitle")}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(c,e);var t,r,n,o,i=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(n);if(o){var r=d(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return y(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,v(e))).video=e,t}return t=c,(r=[{key:"name",get:function(){return"VideoRatingAccessError"}},{key:"heading",get:function(){return v(this.video)}},{key:"description",get:function(){return e=this.video,a.M.isClip(e)?b("clipDescription"):a.M.isInteractive(e)?b("interactiveDescription"):b("videoDescription");var e}}])&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(f.H);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function g(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var P=u.T.encloseNamespace("shared.parentVideoDeletedError");function S(e){return a.M.isClip(e)?P("clipTitle"):a.M.isInteractive(e)?P("interactiveTitle"):P("videoTitle")}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(c,e);var t,r,n,o,i=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=j(n);if(o){var r=j(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return g(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,S(e))).video=e,t}return t=c,(r=[{key:"name",get:function(){return"ParentVideoDeletedError"}},{key:"heading",get:function(){return S(this.video)}},{key:"description",get:function(){return e=this.video,a.M.isClip(e)?P("clipDescription"):a.M.isInteractive(e)?P("interactiveDescription"):P("videoDescription");var e}}])&&w(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(f.H);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}function I(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var C=u.T.encloseNamespace("shared.videoNotInSubscriptionError"),A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=T(n);if(o){var r=T(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return I(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,"VideoNotInSubscriptionError")).video=e,t}return t=a,(r=[{key:"name",get:function(){return"VideoNotInSubscriptionError"}},{key:"heading",get:function(){return C("title")}},{key:"description",get:function(){return C("description")}}])&&k(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(f.H),B={"rating-not-allowed":h,"video-deleted":E,private:c.G,"clickview-private":A},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B;o().useEffect((function(){var r;if(e.hasCompleted){var n=e.data;if(n){var o=a.M.getCanBeConsumed(n);if(!(null==o?void 0:o.value)){var c=Object.assign(Object.assign({},B),t)[null!==(r=null==o?void 0:o.reason)&&void 0!==r?r:"private"];i.Q.ErrorHelper.throw(new c(n))}}}}),[e.hasCompleted])}},77888:(e,t,r)=>{r.r(t),r.d(t,{EmbeddedClipView:()=>S});var n=r(1024),o=r(81886),i=r(20354),a=r(23049),c=r(2948),u=r(39151),f=r(65858),l=r(47812),s=r(60051),p=r(31949),y=r(1643),d=r(83921),b=r(86702),v=r(43012),h=r(13349),m=r(97291),w=r(14070),O=r(97037),g=r(45593),j=r(30439);function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function S(e){var t,r,S,E=(r=(0,c.D)(b.y.WEB_PLAYER_DATA),S=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(r,S)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(r,S)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),_=E[0],k=E[1],R=i.a.useBasicFetch(p.N.currentUser()),I=i.a.useBasicFetch(!!R.data&&v.e.sharedClip(e.objectId,e.shareId)),T=i.a.useBasicFetch(u.L.config()),C=i.a.useBasicFetch(l.k.createViewKey(e.shareId,s.f.Share)),A=i.a.useBasicFetch(j.o.getShareObject(e.shareId),{optimize:!0});(0,a.o)(null===(t=I.data)||void 0===t?void 0:t.name),(0,d.b)(I,{private:g.F});var B=y.h.isFavouritedByCurrentUser(I.data),D=(0,O.c)(f.LocationContext.EmbeddedPlayer),F=D.setFavourite,M=D.canFavourite;return n.useEffect((function(){I.data&&C.data&&A.data&&(k("video",I.data),k("viewKey",C.data),k("shareId",e.shareId),A.data.ownerInstanceRegion&&k("sharerInstanceRegion",A.data.ownerInstanceRegion))}),[!!I.data,!!C.data,!!A.data]),(null==_?void 0:_.viewKey)&&(null==_?void 0:_.video)&&T.data?n.createElement(h.M,{viewKey:C.data.viewKey,playerApiUrl:T.data.playerApiUrl,webPlayerUrl:T.data.webPlayerUrl,imageCdnUrl:T.data.imageCdnUrl,videoId:I.data.id,embed:!0,showResources:!0,currentUser:R.data,canFavourite:M(I.data),favourited:B,onClickFavourite:function(){var e=!B;F(I.data,e)},getExternalLink:function(t){return o.Q.AppLinkHelper.getHref({application:m.O.SHARE,action:w.e.Share.VIEW_SHARE_LINK,args:[e.shareId],params:{t:t.currentTime,a:!0}})},autoplay:"true"===e.queryParams.a,allowPip:!1}):n.createElement(n.Fragment,null)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9273],{19273:(e,t,a)=>{a.r(t),a.d(t,{ShareLinkSignIn:()=>y});var n=a(1024),r=a.n(n),c=a(23481),l=a(2786),i=a(83345),o=a(8493),s=a(96022),u=a(4594),d=a(64249),m=a(65858),p=a(83421),f=a(75608),h=a(97291),b=a(14070),E=a(7179);var v="launchpad.shareLinkSignIn";function y(e){var t=e.shareId,a=e.redirectUrl,n=e.customerId,y=(0,E.P)(m.LocationContext.Launchpad),g=y.deepLink,I=y.showDeepLink,k=y.setDeepLink,j=y.mapMasterTypeToDeepLinkApp,L=y.onClickDeepLink,S=(0,f.a)(t);return k(S.id,j(S.typeId),t),S?r().createElement(p.Z,{title:S.name,imageUrl:d.I.getImageUrl(S),objectType:S.typeId,links:[{text:c.T.getPhrase(v,"openInApp"),url:g,hide:!I,onClick:L}]},r().createElement("div",{className:"".concat("vxDwV"," m-auto")},r().createElement("div",{className:"".concat("XVbHC"," mb-4 mx-auto")},r().createElement(l.$S,null)),!!S.name&&r().createElement("h1",{className:"h3"},S.typeId===u.E.Video&&r().createElement(s.M,{video:S,analyticsOptions:{},size:"sm"}),S.name),"description"in S&&r().createElement("p",{className:"mb-0 clamp-3"},S.description),r().createElement(o.F,{className:"btn btn-primary btn-lg w-100 mt-4",appLink:{application:h.O.DEFAULT,action:b.e.Default.LOG_IN,params:{redirectUrl:a,customerId:n}}},r().createElement(i.x,{namespace:v,phrase:"signInToWatch"})))):r().createElement(r().Fragment,null)}},75608:(e,t,a)=>{a.d(t,{a:()=>p});var n=a(20354),r=a(4594),c=a(21750),l=a(31949),i=a(1575),o=a(43012),s=a(20768),u=a(59991),d=a(60011),m=a(30439),p=function(e){var t=n.a.useBasicFetch(l.N.currentUser()),a=n.a.useBasicFetch(m.o.getShareObject(e)),p=function(){if(!a.data||!t.data)return null;switch(a.data.objectTypeId){case r.E.Video:return i.R.publicVideo(a.data.objectId,e);case r.E.Clip:return o.e.publicClip(a.data.objectId,e);case r.E.Interactive:return s.b.publicInteractiveMetadata(a.data.objectId,e);case r.E.Playlist:return u.C.getSharedPlaylist(a.data.objectId,e);case r.E.Subject:return c.x.classification(a.data.objectId,t.data.id);case r.E.Series:return d.J.sharedSeries(a.data.objectId,e)}}();return n.a.useBasicFetch(p).data}},83421:(e,t,a)=>{a.d(t,{Z:()=>p});var n=a(1024),r=a.n(n),c=a(4594),l=a(67453),i=a(54610),o=a(99742);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,c=[],l=!0,i=!1;try{for(a=a.call(e);!(l=(n=a.next()).done)&&(c.push(n.value),!t||c.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==a.return||a.return()}finally{if(i)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var d=[o.W.LaunchPad.BG_1,o.W.LaunchPad.BG_2,o.W.LaunchPad.BG_3,o.W.LaunchPad.BG_4,o.W.LaunchPad.BG_5];function m(e){switch(e){case c.E.Video:case c.E.Interactive:case c.E.Clip:return"Gdurb";case c.E.Subject:case c.E.Playlist:return"o3j31";case c.E.Series:return"fjVNK";default:return""}}function p(e){var t,a=s(r().useState(!1),2),n=a[0],c=a[1],o=s(r().useState(""),2),u=o[0],p=o[1],f=l.j.createUrl(e.imageUrl,{size:i.h2.Large});return r().useEffect((function(){f||p(d[Math.floor(Math.random()*d.length)])}),[]),r().useEffect((function(){if(f){var e=new Image;return e.onload=function(){return c(!0)},e.src=f,function(){return e.onload=null}}}),[]),r().createElement("div",{className:"d-flex"},r().createElement("div",{className:"".concat("vIypY"," bg-light"),style:{backgroundImage:"url('".concat(u,"')")}},n&&r().createElement(r().Fragment,null,r().createElement("div",{className:"X6mCh",style:{backgroundImage:"url('".concat(f,"')")}}),r().createElement("div",{className:"".concat("bc7kz"," ").concat(m(e.objectType))},r().createElement("div",{className:"JOhEj"},r().createElement("img",{className:"Ef2QR",src:f,alt:e.title}))))),r().createElement("div",{className:"".concat("MkD4u"," bg-white d-flex flex-column")},r().createElement("div",{className:"position-absolute d-flex align-items-center ".concat("AT9Dk")},null===(t=e.links)||void 0===t?void 0:t.map((function(e,t){return e.hide?r().createElement(r().Fragment,{key:t}):r().createElement("a",{key:t,href:e.url,className:"info-link font-weight-500",onClick:e.onClick},e.text)}))),e.children))}}}]);