@clickview/lite 0.44.0-rc.7 → 0.44.0-rc.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundles.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "appBundle": "bundle-989b276194.min.js",
2
+ "appBundle": "bundle-478799fc45.min.js",
3
3
  "cssBundle": "lite-app-6142317405.css",
4
4
  "polyfillBundle": "polyfills-7bd16772e3.min.js"
5
5
  }
@@ -9,7 +9,7 @@
9
9
  .d86p2{letter-spacing:.3125rem}
10
10
  .jCfI0{position:absolute;right:.625rem;top:50%;margin-top:-0.75rem}.RBJnf{padding-right:2.75rem}.RBJnf::placeholder{color:#b5b5b5;opacity:1}.d78lK:focus-within{background-color:var(--bs-body-bg);border-color:#38a2e8;outline:0;box-shadow:0 0 0 .125rem #4e9ace}.d78lK:focus-within.is-invalid{color:#d9584f;border-color:#d9584f;outline:0;box-shadow:0 0 0 .2rem rgba(217,88,79,.25)}.asbVo{background-color:var(--bs-secondary-bg)}.wzyOG{margin-left:.1rem}.CycFx{position:absolute;top:50%;right:.625rem;transform:translateY(-50%)}
11
11
  .A_kCD{display:flex;align-items:center;justify-content:center;width:100%;margin:0 auto}.A_kCD .UFm9h{margin-bottom:0;text-align:center}@media(max-width: 575px){.A_kCD{flex-direction:column}.A_kCD .UFm9h{margin-bottom:.625rem}}.na9Vb{display:flex;align-items:center;justify-content:center;width:50%;margin:0 auto;flex-direction:column}.na9Vb .form-group{width:100%}.na9Vb .UFm9h{text-align:center;margin-bottom:.625rem}@media(max-width: 991.98px){.na9Vb{width:75%}}@media(max-width: 575.98px){.na9Vb{width:100%}}
12
- .ZMjnx{position:relative;background-position:top;background-size:cover;width:2rem;height:2rem;flex-shrink:0}.ZMjnx .SsxEf{width:100%;height:100%;background-position:center;background-size:cover;background-repeat:no-repeat}.MtcB3{background-color:#f8f8f8}.Geg0V{width:80%}@media(max-width: 991.98px){.Geg0V{width:100%}}
12
+ .ZMjnx{position:relative;background-position:top;background-size:cover;width:2rem;height:2rem;flex-shrink:0}.ZMjnx .SsxEf{width:100%;height:100%;background-position:center;background-size:cover;background-repeat:no-repeat}.MtcB3{background-color:#f8f8f8}
13
13
  .CaRJx{padding-bottom:100%}.BI7p2::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0.4) 10%, rgba(0, 0, 0, 0.2) 25%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.02) 60%, rgba(0, 0, 0, 0) 80%)}.eDk1l{position:absolute;left:.625rem;right:.625rem;bottom:.625rem;z-index:1}.w4lWh{height:2rem;width:17rem}.JImqE{position:absolute;right:.625rem;top:.625rem;z-index:1;width:15%;height:15%}
14
14
  .OYBRp{font-size:12px}
15
15
  .fdtKb:not(:last-child){margin-right:.3125rem}
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[2261],{73758:(e,t,n)=>{function a(e){return a="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},a(e)}function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,r(a.key),a)}}function r(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:String(t)}n.d(t,{n:()=>o});var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.listeners={}}var t,n;return t=e,n=[{key:"subscribe",value:function(e,t){this.registerListener(e,t)}},{key:"subscribeOnce",value:function(e,t){this.registerListener(e,t,1)}},{key:"unsubscribe",value:function(e,t){this.deregisterListener(e,t)}},{key:"trigger",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];this.triggerCallbacks(e,n)}},{key:"registerListener",value:function(e,t,n){var a;if("string"!=typeof e)throw new Error("Event name must be a string");if("function"!=typeof t)throw new Error("Event callback must be a function");if(n&&"number"!=typeof n)throw new Error("Execution limit must be a number or undefined");this.listeners[e]=null!==(a=this.listeners[e])&&void 0!==a?a:[],this.listeners[e].push({callback:t,executionLimit:n})}},{key:"deregisterListener",value:function(e,t){var n;if("string"!=typeof e)throw new Error("Event name must be a string");if(t&&"function"!=typeof t)throw new Error("Event callback must be a function");if(t){var a=null===(n=this.listeners[e])||void 0===n?void 0:n.findIndex((function(e){return e.callback===t}));"number"==typeof a&&-1!==a&&(this.listeners[e].splice(a,1),0===this.listeners[e].length&&delete this.listeners[e])}else this.listeners[e]=[]}},{key:"triggerCallbacks",value:function(e){for(var t=this,n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];if(this.listeners[e]){var r=[];this.listeners[e].forEach((function(e){var t,n;"number"==typeof e.executionLimit&&(e.executionCount=null!==(n=e.executionCount)&&void 0!==n?n:0,e.executionCount++,e.executionCount===e.executionLimit&&r.push(e.callback)),(t=e.callback).apply.apply(t,[null].concat(a))})),r.length&&r.forEach((function(n){return t.deregisterListener(e,n)}))}}}],n&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}())},25723:(e,t,n)=>{n.d(t,{m:()=>f});var a=n(32735),i=n(29014),r=n(99940),o=n(23481),l=n(91967),c=n(44704),s=n(49985);const u={button:"nckQw"};function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var d=null,v=!1,p="shared.immersiveReader";function f(e){var t,n,f=(t=a.useState(d),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 a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return m(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)?m(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.")}()),h=f[0],g=f[1];return d||v||(v=!0,(0,c.ajaxRequest)({resource:"/api/integrations/token/immersive-reader",type:r.k.GET,success:function(e){d=e,g(e),window.setTimeout((function(){d=null,v=!1}),9e5)},error:function(){}})),h?(e.title||(e.title=o.T.getPhrase(p,"titleFallback")),a.createElement("span",{className:"".concat(u.button," ").concat(e.className||""),onClick:function(){l.q.isFunction(e.onLaunch)&&e.onLaunch(),s.k.logUserAction(e.analyticsData,e.analyticsOptions);var t={title:e.title,chunks:[{content:e.text,mimeType:e.html?"text/html":"text/plain"}]},n=h.subdomain,a=h.token,r={uiZIndex:5e3,onExit:function(){l.q.isFunction(e.onExit)&&e.onExit()}};i.launchAsync(a,n,t,r)}},a.createElement("svg",{viewBox:"0 0 40 37"},a.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"}),a.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"}),a.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"}),a.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"})))):a.createElement(a.Fragment,null)}},87311:(e,t,n)=>{n.d(t,{G:()=>i});var a=n(81886),i={getTagActionProps:function(e,t){return t?{onClick:function(t){var n=e?e(t):null;if(n)return a.Q.C$.trigger(n)}}:{getAppLink:function(t){return e?e(t):null}}}}},19670:(e,t,n)=>{n.d(t,{o:()=>p});var a=n(32735),i=n(1048),r=n(11607),o=n(87311),l=n(91743),c=n(83345),s=n(54610),u=n(67453),m=n(32614),d=n(93563),v="shared.videoAtAGlance";function p(e){var t=(0,m.Wp)(e.video,e.theme),n=(0,m.md)(e.video,e.pointsOfInterest,t,e.suppressInteractivity),p=(0,m.RH)(e.pointsOfInterest,t);if(!t)return a.createElement(a.Fragment,null);var f,h,g,y,b,E=(null===(g=null===(h=null==(f=e.theme)?void 0:f.data)||void 0===h?void 0:h.colours)||void 0===g?void 0:g.primary)&&(null===(b=null===(y=null==f?void 0:f.data)||void 0===y?void 0:y.colours)||void 0===b?void 0:b.secondary)?f.data.colours:{primary:"#F5F4FF",secondary:"#9294FF"},k="function"==typeof e.onClickShowDescription,L="function"==typeof e.onClickShowCurriculumLinks;return a.createElement("div",{className:"rounded border px-3 px-sm-5 py-3 mb-3 position-relative d-flex justify-content-center ".concat(d.Z.container),style:{backgroundColor:E.primary}},a.createElement("div",{className:"".concat(d.Z.content," d-flex align-items-center pt-4 pt-sm-0")},a.createElement("div",null,a.createElement("h2",{className:"h4"},a.createElement(c.x,{namespace:v,phrase:"videoAtAGlance"})),k&&a.createElement(r.L,{onClick:e.onClickShowDescription,className:"".concat(d.Z.detailsBtn," position-absolute cursor-pointer me-4 fw-semibold text-info")},a.createElement(c.x,{namespace:v,phrase:"readFullDescription"})),a.createElement("div",{ref:p,onClick:function(t){return(0,m.$H)(t,e.pointsOfInterest,e.setStartTime)},dangerouslySetInnerHTML:{__html:n}}),function(){var t,n,i,r;return(null===(n=null===(t=e.video.tags)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)?a.createElement("div",{className:"py-1"},a.createElement(l.P,Object.assign({tags:null===(r=null===(i=e.video)||void 0===i?void 0:i.tags)||void 0===r?void 0:r.data,themeColours:E},o.G.getTagActionProps(e.getTagAppLink,e.suppressInteractivity)))):a.createElement(a.Fragment,null)}(),a.createElement("div",{className:"mt-2"},L&&a.createElement(r.L,{onClick:e.onClickShowCurriculumLinks,className:"cursor-pointer d-inline-block fw-semibold text-info"},a.createElement(c.x,{namespace:v,phrase:"seeCurriculumLinks"}))))),function(){var t,n,r,o=null!==(r=null===(n=null===(t=e.theme)||void 0===t?void 0:t.data)||void 0===n?void 0:n.images)&&void 0!==r?r:{};return i.t.keys(o).filter((function(e){return!i.t.isEmpty(o[e])})).map((function(e){var t,n,i=u.j.createUrl(null===(t=o[e])||void 0===t?void 0:t.url,{size:s.h2.Medium});return a.createElement("div",{key:null===(n=o[e])||void 0===n?void 0:n.fileId,className:"".concat(d.Z[e]," ").concat(d.Z.background," d-none d-lg-block"),style:{backgroundImage:"url('".concat(i,"')")}})}))}())}},32614:(e,t,n)=>{n.d(t,{Wp:()=>g,$H:()=>p,md:()=>f,RH:()=>h});var a=n(32735),i=n(16367),r=n(73758);function o(e,t,n,i){var o=function(){r.n.unsubscribe(e,t)};return(0,a.useEffect)((function(){if(i)return n?r.n.subscribeOnce(e,t):r.n.subscribe(e,t),function(){o()}}),[]),o}var l=n(93264),c=n(93563);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var u=/(\[.*\]\(cv:\/\/poi\?id=[0-9]+\))/g,m=/[0-9]+/,d=/\[.*\]/,v=/[\[\]]/g;function p(e,t,n){e.preventDefault();var a=e.target.getAttribute("href");if((null==a?void 0:a.includes("cv://poi"))&&(null==t?void 0:t.length)){var i=a.split("cv://poi?id=")[1],r=t.find((function(e){return e.id.toString()===i}));n&&r&&n(r.startTime)}}function f(e,t,n,r){var o,c,p,f=(c=(0,a.useState)(""),p=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(c,p)||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}}(c,p)||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.")}()),h=f[0],g=f[1];return(0,a.useEffect)((function(){if(n){var a=function(e,t,n){var a=function(e,t,n){return(null==t?void 0:t.length)?e.content.replace(u,(function(e){var a=e.match(m);if(!(null==a?void 0:a.length))return e;var i=t.find((function(e){return e.id.toString()===a[0]})),r=e.match(d);if(!i||!(null==r?void 0:r.length))return e;var o='<span class="me-2">'.concat(l.T.ToDisplayDuration(1e3*i.startTime),"</span>"),c=r[0];return c=(c=c.replace(v,""))||i.description,c="".concat(o," ").concat(c),n?'<span class="d-flex">'.concat(c,"</span>"):e.replace(d,"[".concat(c,"]"))})):e.content}(e,t,n);return i(a).split('a href="cv://poi').join('a class="d-flex" href="cv://poi')}(e.glance,t,r);g(a)}}),[null===(o=e.glance)||void 0===o?void 0:o.content,null==t?void 0:t.length,n]),h}function h(e,t){var n=(0,a.useRef)();function i(){var t=this.getAttribute("href");if((null==t?void 0:t.includes("cv://poi"))&&(null==e?void 0:e.length)){var n=t.split("cv://poi?id=")[1];if(n){var a=e.find((function(e){return e.id.toString()===n}));a&&r.n.trigger("glance:poi:mouseover",a)}}}function l(){r.n.trigger("glance:poi:mouseleave")}function s(){var e;return null===(e=n.current)||void 0===e?void 0:e.querySelectorAll('[href*="cv://poi"]')}return o("player:poi:mouseover",(function(e){var t,a=null==e?void 0:e.id;a&&(null===(t=function(e){var t;return null===(t=n.current)||void 0===t?void 0:t.querySelector('[href="cv://poi?id='.concat(e,'"]'))}(a))||void 0===t||t.classList.add(c.Z.highlightPoi))}),null,t),o("player:poi:mouseleave",(function(){var e;null===(e=s())||void 0===e||e.forEach((function(e){return e.classList.remove(c.Z.highlightPoi)}))}),null,t),(0,a.useEffect)((function(){if(n.current&&t){var e=s();return e.forEach((function(e){return e.addEventListener("mouseover",i)})),e.forEach((function(e){return e.addEventListener("mouseleave",l)})),function(){e.forEach((function(e){return e.removeEventListener("mouseover",i)})),e.forEach((function(e){return e.removeEventListener("mouseleave",l)}))}}}),[n.current]),n}function g(e,t){var n,a;return t&&(null===(n=e.glance)||void 0===n?void 0:n.content)&&"text/markdown"===(null===(a=e.glance)||void 0===a?void 0:a.format)}},15446:(e,t,n)=>{n.d(t,{C:()=>u});var a=n(32735),i=n(65858),r=n(36848),o=n(5438),l=n(3133),c=n(54610),s=n(68626);var u=a.memo((function(e){var t;return a.createElement("div",{className:"flex-shrink-0 px-1 ".concat("hzP5u")},a.createElement("div",{className:"row m-0 border rounded p-2 h-100"},a.createElement("div",{className:"col-6 p-0"},a.createElement(o.u,{video:e.data,appLink:e.getAppLink(e.data),type:"cosmetic",imageOptions:{size:c.h2.Small},textPosition:s.z.Independent,analyticsOptions:{location:i.LZ.SlidingListItem},preload:!0})),a.createElement("div",{className:"col-6 p-0"},a.createElement("div",{className:"ps-2"},a.createElement(r.F,{appLink:e.getAppLink(e.data)},a.createElement("h3",{className:"h6 mb-1"},a.createElement("span",{className:"clamp-2"},e.data.name))),a.createElement(l.R,{owner:e.data.owner,isClickViewCurated:null===(t=e.data._isClickViewCurated)||void 0===t?void 0:t.value,imageCdnUrl:e.imageCdnUrl})))))}))},28907:(e,t,n)=>{n.d(t,{r:()=>r});var a=n(99940),i=n(97395),r={theme:function(e){return{url:"/api/domain/v1/themes/".concat(e),key:"themes:".concat(e)}},themeImages:function(e,t){return{url:i._.urlBuilder("/api/domain/v1/themes",{name:e,type:t}),key:"themes:".concat(e,":").concat(t)}},themes:function(e){var t="/api/domain/v1/themes",n="themes";return e&&(t+="?type=".concat(e),n+=":type:".concat(e)),{url:t,key:n,formatData:function(e){return e.sort((function(e,t){return e.name.localeCompare(t.name)}))}}},createTheme:function(e,t,n,i){return{url:"/api/domain/v1/themes",key:"theme",data:e,type:a.k.POST,invalidationKeys:"themes",success:t,error:n,always:i}},updateTheme:function(e,t,n,i,r){return{url:"/api/domain/v1/themes/".concat(e),key:"update:theme:".concat(e),data:t,type:a.k.PUT,success:n,error:i,always:r}},deleteTheme:function(e,t,n,i){return{url:"/api/domain/v1/themes/".concat(e),key:"delete:theme:".concat(e),type:a.k.DELETE,invalidationKeys:"themes",success:t,error:n,always:i}}}},57654:(e,t,n)=>{n.d(t,{v:()=>b});var a=n(32735),i=n(65858),r=n(83657),o=n(36848),l=n(40955),c=n(18559),s=n(17464),u=n(83345),m=n(38647),d=n(11882),v=n(80143),p=n(31908),f=n(99092),h=n(2383);const g={series:"_4XDZ",badgeListContainer:"d42pt"};var y="shared.playPage";function b(e){var t,n,b,E=(0,v.n)(null===(t=e.media.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),k=a.useRef(null),L=a.useRef(null),w=(0,f.A1)(e.media).hasBadges,C=(0,h._)(h.i.PlayPage),N=!!e.originalVideoAppLink&&p.M.isClip(e.media)&&p.M.canViewOriginalVideo(e.media);return a.createElement("section",{className:"mb-3 position-relative",ref:k},a.createElement("div",{className:"d-inline-block w-100",ref:L},e.featureAccess.canNavigate&&a.createElement("div",{className:"ms-2 float-end"},a.createElement(r.e,{actions:C(e.media),actionsDropdownClassName:"btn btn-outline-dark"})),!!p.M.isVideo(e.media)&&a.createElement(d.$,{type:"series",video:e.media,appLink:null===(n=e.getSeriesAppLink)||void 0===n?void 0:n.call(e,e.media.series),className:"".concat(g.series," text-truncate mw-100"),analyticsOptions:{location:i.LZ.PlayPage}}),a.createElement("h1",{className:"h4 mb-2 mw-100"},a.createElement("span",{className:"align-self-center"},e.media.name),a.createElement(m.m,{tooltipPlacement:"right",className:"ps-1",video:e.media,yearGroups:e.yearGroups})),w&&a.createElement(s.c,{className:g.badgeListContainer},a.createElement(l.P,{audience:E,className:"bg-white text-dark",border:"dark"}),p.M.isVideo(e.media)&&a.createElement(c.C,{type:c.g.Rating,data:e.media.rating}),p.M.isVideo(e.media)&&a.createElement(c.C,{type:c.g.ProductionYear,data:e.media.productionYear}))),p.M.isClip(e.media)&&N&&a.createElement("p",{className:"clamp-1"},a.createElement(u.x,{namespace:y,phrase:"viewOriginal"})," ",a.createElement(o.F,{className:"info-link",appLink:e.originalVideoAppLink},null===(b=e.media._parentVideo)||void 0===b?void 0:b.name)))}},81024:(e,t,n)=>{n.d(t,{S:()=>f});var a=n(32735),i=n(23481),r=n(65858),o=n(36848),l=n(83914),c=n(54610),s=n(67453),u=n(35223),m=n(31908);const d="LL7My",v="QoLgZ";var p=i.T.encloseNamespace("shared.playerPlaceholder");function f(e){switch(e.type){case"pip":return a.createElement(h,Object.assign({},e));case"public":return a.createElement(g,Object.assign({},e));default:return a.createElement(a.Fragment,null)}}var h=function(e){var t,n;return a.createElement("div",{className:"position-relative responsive-img ".concat(v),style:{backgroundImage:"url('".concat(null!==(n=null===(t=m.M.getThumbnail(e.video))||void 0===t?void 0:t.url)&&void 0!==n?n:"","')")}},a.createElement("p",{className:"m-0 text-white h3 ".concat("BcnSH")},p("playingPiP")),a.createElement("div",{className:d}))},g=function(e){var t,n,i=s.j.createUrl(null!==(n=null===(t=m.M.getThumbnail(e.video))||void 0===t?void 0:t.url)&&void 0!==n?n:"",{size:c.h2.Large});return a.createElement("div",{className:"position-relative responsive-img ".concat(v),style:{backgroundImage:"url('".concat(i,"')")}},a.createElement(o.F,{appLink:e.appLink,analyticsOptions:{actionType:r.Vw.Click,location:r.LZ.PlayPage,entity:r.py.AppLink,workflowPhase:r.eu.Start,descriptor:r.Yu.SignUp},analyticsData:{}},a.createElement(l.x,{svgName:u.vn.PlayCircle,className:"x_1f6"}),a.createElement("div",{className:d})))}},99719:(e,t,n)=>{n.d(t,{X:()=>L});var a=n(32735),i=n(42648),r=n(23481),o=n(110),l=n(78259),c=n(65858),s=n(11607),u=n(25723),m=n(87311),d=n(91743),v=n(83345),p=n(31908),f=n(90102),h=n(52588);const g={closeButton:"j5mgW",descriptionBorder:"uotsN"};var y="shared.videoDetails",b=r.T.encloseNamespace(y);function E(e){var t=e.label,n=e.items,i=e.className;if(!(n&&n.data&&n.data.length))return a.createElement(a.Fragment,null);var r=n.data.map((function(e){return e.name})).join(", ");return a.createElement("div",{className:i},t,": ",r)}function k(e){var t,n,i,r,l,c,s,u,m=e.video;if(!p.M.isVideo(m)&&!p.M.isClip(m))return a.createElement(a.Fragment,null);var d=p.M.getParentVideo(m);return a.createElement("div",{className:m.description?"col-md-5 ps-md-3 pt-3 pt-md-0":"col-12"},a.createElement("h2",{className:"h6 mb-1"},a.createElement(v.x,{phrase:"details"})),!!d.productionYear&&a.createElement("div",{className:"mb-1"},a.createElement(v.x,{phrase:"productionYear",options:{year:d.productionYear}})),a.createElement(E,{label:b("productionCompanies",{smartCount:null===(n=null===(t=d.productionCompanies)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length}),items:d.productionCompanies,className:"mb-1"}),a.createElement(E,{label:b("distributors",{smartCount:null===(r=null===(i=d.distributors)||void 0===i?void 0:i.data)||void 0===r?void 0:r.length}),items:d.distributors,className:"mb-1"}),a.createElement(E,{label:b("producers",{smartCount:null===(c=null===(l=d.producers)||void 0===l?void 0:l.data)||void 0===c?void 0:c.length}),items:d.producers,className:"mb-1"}),a.createElement(E,{label:b("directors",{smartCount:null===(u=null===(s=d.directors)||void 0===s?void 0:s.data)||void 0===u?void 0:u.length}),items:d.directors,className:"mb-1"}),!!d.dateBroadcast&&a.createElement("div",{className:"mb-1"},a.createElement(v.x,{phrase:"dateBroadcast",options:{date:o.O.format(d.dateBroadcast,"DD/MM/YYYY")}})))}function L(e){var t,n,r=e.video,o=e.maxHeight,b=void 0===o?f.x:o,E=p.M.getParentVideo(r),L=!!e.video.description,w=(0,h._)(e.video)||!!E.productionYear||!!E.dateBroadcast,C="function"==typeof e.onClickClose,N="function"==typeof e.onClickShowCurriculumLinks;return L||w?a.createElement(v.D.Provider,{value:y},a.createElement("div",{className:"rounded border p-3 mb-3 position-relative"},a.createElement(i.$B,{autoHeight:!0,autoHeightMax:b},a.createElement("div",{className:"row g-0"},L&&a.createElement("div",{className:w?"".concat(g.descriptionBorder," pe-3 col-md-7"):"col-12"},a.createElement("div",{className:"d-flex align-items-center"},a.createElement("h2",{className:"h6 mb-1"},a.createElement(v.x,{phrase:"description"})),a.createElement(u.m,{text:r.description,title:r.name,className:"ps-2",onLaunch:e.onLaunchImmersiveReader,onExit:e.onExitImmersiveReader,analyticsOptions:{location:c.LZ.PlayPage,entity:c.py.Video,actionType:c.Vw.Click,descriptor:c._S.LaunchImmersiveReader},analyticsData:{id:r.id,type:"description"}})),a.createElement("p",{className:"mb-0",dangerouslySetInnerHTML:{__html:l.O.linkifyText(e.video.description,{nl2br:!0})}}),a.createElement(d.P,Object.assign({tags:e.hideTags||p.M.isInteractive(e.video)||!(null===(n=null===(t=e.video.tags)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)?null:e.video.tags.data},m.G.getTagActionProps(e.getTagAppLink,e.suppressInteractivity),{className:"mt-1"})),N&&a.createElement(s.L,{onClick:e.onClickShowCurriculumLinks,className:"cursor-pointer d-inline-block fw-semibold text-info mt-2 mb-1"},a.createElement(v.x,{namespace:y,phrase:"seeCurriculumLinks"}))),w&&a.createElement(k,Object.assign({},e)))),C&&a.createElement("button",{type:"button",className:"btn-close ".concat(g.closeButton),"aria-label":"Close",onClick:e.onClickClose}))):a.createElement(a.Fragment,null)}},42571:(e,t,n)=>{n.d(t,{H:()=>i});var a=n(32735);function i(){return a.createElement("div",{className:"p-3 mb-3 border rounded"},a.createElement("div",{className:"row"},a.createElement("div",{className:"pe-3 col-md-7 border-right"},a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"12rem"}}),a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"4.5rem"}}),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"15rem"}})),a.createElement("div",{className:"col-md-5 ps-md-3 pt-3 pt-md-0"},a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"7rem"}}),a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"10rem"}}),a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"12rem"}}),a.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"3rem"}}),a.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"4rem"}}),a.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"3.5rem"}}),a.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"4.5rem"}}))))}},90102:(e,t,n)=>{n.d(t,{x:()=>a});var a=368},35014:(e,t,n)=>{n.d(t,{I:()=>u});var a=n(20354),i=n(16714),r=n(12754),o=n(39151),l=n(22902),c=n(15311),s=n(11387);function u(){var e=(0,l.T)(),t=e.hasPermissions,n=e.hasLocalPermissions,u=(0,c.r)().hasProduct,m=a.a.useBasicFetch(o.L.config()),d=u(r.x.Primary);return{canWatchPublicly:function(e){var t,n;return!!e&&!!(null===(n=null===(t=m.data)||void 0===t?void 0:t.allowedPublicVideos)||void 0===n?void 0:n[e])},canViewGlance:t(i.C.ViewVideoGlance),canViewResources:!0,canViewInteractives:d&&t(i.C.ViewVideoInteractives),canViewClips:d&&t(i.C.ViewVideoClips),canViewCurriculumLinks:t(i.C.ViewCurriculums),canUseActions:n(i.E.UseVideoActions),canViewPublicLayout:!n(i.E.WatchVideos)&&s.C.hasRegionPrefix(),canViewResourceItems:n(i.E.ViewVideoResourceItems),canNavigate:d}}},93563:(e,t,n)=>{n.d(t,{Z:()=>a});const a={container:"BImYH",background:"aAY0j",topLeft:"azcIT",bottomLeft:"mBkCx",topRight:"tcN5n",bottomRight:"sHsOr",detailsBtn:"jyxT7",content:"PeWbM",highlightPoi:"un8Q0"}}}]);
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[2261],{73758:(e,t,n)=>{function a(e){return a="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},a(e)}function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,r(a.key),a)}}function r(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:String(t)}n.d(t,{n:()=>o});var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.listeners={}}var t,n;return t=e,n=[{key:"subscribe",value:function(e,t){this.registerListener(e,t)}},{key:"subscribeOnce",value:function(e,t){this.registerListener(e,t,1)}},{key:"unsubscribe",value:function(e,t){this.deregisterListener(e,t)}},{key:"trigger",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];this.triggerCallbacks(e,n)}},{key:"registerListener",value:function(e,t,n){var a;if("string"!=typeof e)throw new Error("Event name must be a string");if("function"!=typeof t)throw new Error("Event callback must be a function");if(n&&"number"!=typeof n)throw new Error("Execution limit must be a number or undefined");this.listeners[e]=null!==(a=this.listeners[e])&&void 0!==a?a:[],this.listeners[e].push({callback:t,executionLimit:n})}},{key:"deregisterListener",value:function(e,t){var n;if("string"!=typeof e)throw new Error("Event name must be a string");if(t&&"function"!=typeof t)throw new Error("Event callback must be a function");if(t){var a=null===(n=this.listeners[e])||void 0===n?void 0:n.findIndex((function(e){return e.callback===t}));"number"==typeof a&&-1!==a&&(this.listeners[e].splice(a,1),0===this.listeners[e].length&&delete this.listeners[e])}else this.listeners[e]=[]}},{key:"triggerCallbacks",value:function(e){for(var t=this,n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];if(this.listeners[e]){var r=[];this.listeners[e].forEach((function(e){var t,n;"number"==typeof e.executionLimit&&(e.executionCount=null!==(n=e.executionCount)&&void 0!==n?n:0,e.executionCount++,e.executionCount===e.executionLimit&&r.push(e.callback)),(t=e.callback).apply.apply(t,[null].concat(a))})),r.length&&r.forEach((function(n){return t.deregisterListener(e,n)}))}}}],n&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}())},25723:(e,t,n)=>{n.d(t,{m:()=>f});var a=n(32735),i=n(29014),r=n(99940),o=n(23481),l=n(91967),c=n(44704),s=n(49985);const u={button:"nckQw"};function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var d=null,v=!1,p="shared.immersiveReader";function f(e){var t,n,f=(t=a.useState(d),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 a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return m(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)?m(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.")}()),h=f[0],g=f[1];return d||v||(v=!0,(0,c.ajaxRequest)({resource:"/api/integrations/token/immersive-reader",type:r.k.GET,success:function(e){d=e,g(e),window.setTimeout((function(){d=null,v=!1}),9e5)},error:function(){}})),h?(e.title||(e.title=o.T.getPhrase(p,"titleFallback")),a.createElement("span",{className:"".concat(u.button," ").concat(e.className||""),onClick:function(){l.q.isFunction(e.onLaunch)&&e.onLaunch(),s.k.logUserAction(e.analyticsData,e.analyticsOptions);var t={title:e.title,chunks:[{content:e.text,mimeType:e.html?"text/html":"text/plain"}]},n=h.subdomain,a=h.token,r={uiZIndex:5e3,onExit:function(){l.q.isFunction(e.onExit)&&e.onExit()}};i.launchAsync(a,n,t,r)}},a.createElement("svg",{viewBox:"0 0 40 37"},a.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"}),a.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"}),a.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"}),a.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"})))):a.createElement(a.Fragment,null)}},87311:(e,t,n)=>{n.d(t,{G:()=>i});var a=n(81886),i={getTagActionProps:function(e,t){return t?{onClick:function(t){var n=e?e(t):null;if(n)return a.Q.C$.trigger(n)}}:{getAppLink:function(t){return e?e(t):null}}}}},19670:(e,t,n)=>{n.d(t,{o:()=>p});var a=n(32735),i=n(1048),r=n(11607),o=n(87311),l=n(91743),c=n(83345),s=n(54610),u=n(67453),m=n(32614),d=n(93563),v="shared.videoAtAGlance";function p(e){var t=(0,m.Wp)(e.video,e.theme),n=(0,m.md)(e.video,e.pointsOfInterest,t,e.suppressInteractivity),p=(0,m.RH)(e.pointsOfInterest,t);if(!t)return a.createElement(a.Fragment,null);var f,h,g,y,b,E=(null===(g=null===(h=null==(f=e.theme)?void 0:f.data)||void 0===h?void 0:h.colours)||void 0===g?void 0:g.primary)&&(null===(b=null===(y=null==f?void 0:f.data)||void 0===y?void 0:y.colours)||void 0===b?void 0:b.secondary)?f.data.colours:{primary:"#F5F4FF",secondary:"#9294FF"},k="function"==typeof e.onClickShowDescription,L="function"==typeof e.onClickShowCurriculumLinks;return a.createElement("div",{className:"rounded border px-3 px-sm-5 py-3 mb-3 position-relative d-flex justify-content-center ".concat(d.Z.container),style:{backgroundColor:E.primary}},a.createElement("div",{className:"".concat(d.Z.content," d-flex align-items-center pt-4 pt-sm-0")},a.createElement("div",null,a.createElement("h2",{className:"h4"},a.createElement(c.x,{namespace:v,phrase:"videoAtAGlance"})),k&&a.createElement(r.L,{onClick:e.onClickShowDescription,className:"".concat(d.Z.detailsBtn," position-absolute cursor-pointer me-4 fw-semibold text-info")},a.createElement(c.x,{namespace:v,phrase:"readFullDescription"})),a.createElement("div",{ref:p,onClick:function(t){return(0,m.$H)(t,e.pointsOfInterest,e.setStartTime)},dangerouslySetInnerHTML:{__html:n}}),function(){var t,n,i,r;return(null===(n=null===(t=e.video.tags)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)?a.createElement("div",{className:"py-1"},a.createElement(l.P,Object.assign({tags:null===(r=null===(i=e.video)||void 0===i?void 0:i.tags)||void 0===r?void 0:r.data,themeColours:E},o.G.getTagActionProps(e.getTagAppLink,e.suppressInteractivity)))):a.createElement(a.Fragment,null)}(),a.createElement("div",{className:"mt-2"},L&&a.createElement(r.L,{onClick:e.onClickShowCurriculumLinks,className:"cursor-pointer d-inline-block fw-semibold text-info"},a.createElement(c.x,{namespace:v,phrase:"seeCurriculumLinks"}))))),function(){var t,n,r,o=null!==(r=null===(n=null===(t=e.theme)||void 0===t?void 0:t.data)||void 0===n?void 0:n.images)&&void 0!==r?r:{};return i.t.keys(o).filter((function(e){return!i.t.isEmpty(o[e])})).map((function(e){var t,n,i=u.j.createUrl(null===(t=o[e])||void 0===t?void 0:t.url,{size:s.h2.Medium});return a.createElement("div",{key:null===(n=o[e])||void 0===n?void 0:n.fileId,className:"".concat(d.Z[e]," ").concat(d.Z.background," d-none d-lg-block"),style:{backgroundImage:"url('".concat(i,"')")}})}))}())}},32614:(e,t,n)=>{n.d(t,{Wp:()=>g,$H:()=>p,md:()=>f,RH:()=>h});var a=n(32735),i=n(16367),r=n(73758);function o(e,t,n,i){var o=function(){r.n.unsubscribe(e,t)};return(0,a.useEffect)((function(){if(i)return n?r.n.subscribeOnce(e,t):r.n.subscribe(e,t),function(){o()}}),[]),o}var l=n(93264),c=n(93563);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var u=/(\[.*\]\(cv:\/\/poi\?id=[0-9]+\))/g,m=/[0-9]+/,d=/\[.*\]/,v=/[\[\]]/g;function p(e,t,n){e.preventDefault();var a=e.target.getAttribute("href");if((null==a?void 0:a.includes("cv://poi"))&&(null==t?void 0:t.length)){var i=a.split("cv://poi?id=")[1],r=t.find((function(e){return e.id.toString()===i}));n&&r&&n(r.startTime)}}function f(e,t,n,r){var o,c,p,f=(c=(0,a.useState)(""),p=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(c,p)||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}}(c,p)||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.")}()),h=f[0],g=f[1];return(0,a.useEffect)((function(){if(n){var a=function(e,t,n){var a=function(e,t,n){return(null==t?void 0:t.length)?e.content.replace(u,(function(e){var a=e.match(m);if(!(null==a?void 0:a.length))return e;var i=t.find((function(e){return e.id.toString()===a[0]})),r=e.match(d);if(!i||!(null==r?void 0:r.length))return e;var o='<span class="me-2">'.concat(l.T.ToDisplayDuration(1e3*i.startTime),"</span>"),c=r[0];return c=(c=c.replace(v,""))||i.description,c="".concat(o," ").concat(c),n?'<span class="d-flex">'.concat(c,"</span>"):e.replace(d,"[".concat(c,"]"))})):e.content}(e,t,n);return i(a).split('a href="cv://poi').join('a class="d-flex" href="cv://poi')}(e.glance,t,r);g(a)}}),[null===(o=e.glance)||void 0===o?void 0:o.content,null==t?void 0:t.length,n]),h}function h(e,t){var n=(0,a.useRef)();function i(){var t=this.getAttribute("href");if((null==t?void 0:t.includes("cv://poi"))&&(null==e?void 0:e.length)){var n=t.split("cv://poi?id=")[1];if(n){var a=e.find((function(e){return e.id.toString()===n}));a&&r.n.trigger("glance:poi:mouseover",a)}}}function l(){r.n.trigger("glance:poi:mouseleave")}function s(){var e;return null===(e=n.current)||void 0===e?void 0:e.querySelectorAll('[href*="cv://poi"]')}return o("player:poi:mouseover",(function(e){var t,a=null==e?void 0:e.id;a&&(null===(t=function(e){var t;return null===(t=n.current)||void 0===t?void 0:t.querySelector('[href="cv://poi?id='.concat(e,'"]'))}(a))||void 0===t||t.classList.add(c.Z.highlightPoi))}),null,t),o("player:poi:mouseleave",(function(){var e;null===(e=s())||void 0===e||e.forEach((function(e){return e.classList.remove(c.Z.highlightPoi)}))}),null,t),(0,a.useEffect)((function(){if(n.current&&t){var e=s();return e.forEach((function(e){return e.addEventListener("mouseover",i)})),e.forEach((function(e){return e.addEventListener("mouseleave",l)})),function(){e.forEach((function(e){return e.removeEventListener("mouseover",i)})),e.forEach((function(e){return e.removeEventListener("mouseleave",l)}))}}}),[n.current]),n}function g(e,t){var n,a;return t&&(null===(n=e.glance)||void 0===n?void 0:n.content)&&"text/markdown"===(null===(a=e.glance)||void 0===a?void 0:a.format)}},15446:(e,t,n)=>{n.d(t,{C:()=>u});var a=n(32735),i=n(65858),r=n(36848),o=n(5438),l=n(3133),c=n(54610),s=n(68626);var u=a.memo((function(e){var t;return a.createElement("div",{className:"flex-shrink-0 px-1 ".concat("hzP5u")},a.createElement("div",{className:"row m-0 border rounded p-2 h-100"},a.createElement("div",{className:"col-6 p-0"},a.createElement(o.u,{video:e.data,appLink:e.getAppLink(e.data),type:"cosmetic",imageOptions:{size:c.h2.Small},textPosition:s.z.Independent,analyticsOptions:{location:i.LZ.SlidingListItem},preload:!0})),a.createElement("div",{className:"col-6 p-0"},a.createElement("div",{className:"ps-2"},a.createElement(r.F,{appLink:e.getAppLink(e.data)},a.createElement("h3",{className:"h6 mb-1"},a.createElement("span",{className:"clamp-2"},e.data.name))),a.createElement(l.R,{owner:e.data.owner,isClickViewCurated:null===(t=e.data._isClickViewCurated)||void 0===t?void 0:t.value,imageCdnUrl:e.imageCdnUrl})))))}))},28907:(e,t,n)=>{n.d(t,{r:()=>r});var a=n(99940),i=n(97395),r={theme:function(e){return{url:"/api/domain/v1/themes/".concat(e),key:"themes:".concat(e)}},themeImages:function(e,t){return{url:i._.urlBuilder("/api/domain/v1/themes",{name:e,type:t}),key:"themes:".concat(e,":").concat(t)}},themes:function(e){var t="/api/domain/v1/themes",n="themes";return e&&(t+="?type=".concat(e),n+=":type:".concat(e)),{url:t,key:n,formatData:function(e){return e.sort((function(e,t){return e.name.localeCompare(t.name)}))}}},createTheme:function(e,t,n,i){return{url:"/api/domain/v1/themes",key:"theme",data:e,type:a.k.POST,invalidationKeys:"themes",success:t,error:n,always:i}},updateTheme:function(e,t,n,i,r){return{url:"/api/domain/v1/themes/".concat(e),key:"update:theme:".concat(e),data:t,type:a.k.PUT,success:n,error:i,always:r}},deleteTheme:function(e,t,n,i){return{url:"/api/domain/v1/themes/".concat(e),key:"delete:theme:".concat(e),type:a.k.DELETE,invalidationKeys:"themes",success:t,error:n,always:i}}}},57654:(e,t,n)=>{n.d(t,{v:()=>b});var a=n(32735),i=n(65858),r=n(83657),o=n(36848),l=n(40955),c=n(18559),s=n(17464),u=n(83345),m=n(38647),d=n(11882),v=n(80143),p=n(31908),f=n(99092),h=n(2383);const g={series:"_4XDZ",badgeListContainer:"d42pt"};var y="shared.playPage";function b(e){var t,n,b,E=(0,v.n)(null===(t=e.media.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),k=a.useRef(null),L=a.useRef(null),w=(0,f.A1)(e.media).hasBadges,C=(0,h._)(h.i.PlayPage),N=!!e.originalVideoAppLink&&p.M.isClip(e.media)&&p.M.canViewOriginalVideo(e.media);return a.createElement("section",{className:"mb-3 position-relative",ref:k},a.createElement("div",{className:"d-inline-block w-100",ref:L},e.featureAccess.canNavigate&&a.createElement("div",{className:"ms-2 float-end"},a.createElement(r.e,{actions:C(e.media),actionsDropdownClassName:"btn btn-outline-dark"})),!!p.M.isVideo(e.media)&&a.createElement(d.$,{type:"series",video:e.media,appLink:null===(n=e.getSeriesAppLink)||void 0===n?void 0:n.call(e,e.media.series),className:"".concat(g.series," text-truncate mw-100"),analyticsOptions:{location:i.LZ.PlayPage}}),a.createElement("h1",{className:"h4 mb-2 mw-100"},a.createElement("span",{className:"align-self-center"},e.media.name),a.createElement(m.m,{tooltipPlacement:"right",className:"d-inline-block ps-1",video:e.media,yearGroups:e.yearGroups})),w&&a.createElement(s.c,{className:g.badgeListContainer},a.createElement(l.P,{audience:E,className:"bg-white text-dark",border:"dark"}),p.M.isVideo(e.media)&&a.createElement(c.C,{type:c.g.Rating,data:e.media.rating}),p.M.isVideo(e.media)&&a.createElement(c.C,{type:c.g.ProductionYear,data:e.media.productionYear}))),p.M.isClip(e.media)&&N&&a.createElement("p",{className:"clamp-1"},a.createElement(u.x,{namespace:y,phrase:"viewOriginal"})," ",a.createElement(o.F,{className:"info-link",appLink:e.originalVideoAppLink},null===(b=e.media._parentVideo)||void 0===b?void 0:b.name)))}},81024:(e,t,n)=>{n.d(t,{S:()=>f});var a=n(32735),i=n(23481),r=n(65858),o=n(36848),l=n(83914),c=n(54610),s=n(67453),u=n(35223),m=n(31908);const d="LL7My",v="QoLgZ";var p=i.T.encloseNamespace("shared.playerPlaceholder");function f(e){switch(e.type){case"pip":return a.createElement(h,Object.assign({},e));case"public":return a.createElement(g,Object.assign({},e));default:return a.createElement(a.Fragment,null)}}var h=function(e){var t,n;return a.createElement("div",{className:"position-relative responsive-img ".concat(v),style:{backgroundImage:"url('".concat(null!==(n=null===(t=m.M.getThumbnail(e.video))||void 0===t?void 0:t.url)&&void 0!==n?n:"","')")}},a.createElement("p",{className:"m-0 text-white h3 ".concat("BcnSH")},p("playingPiP")),a.createElement("div",{className:d}))},g=function(e){var t,n,i=s.j.createUrl(null!==(n=null===(t=m.M.getThumbnail(e.video))||void 0===t?void 0:t.url)&&void 0!==n?n:"",{size:c.h2.Large});return a.createElement("div",{className:"position-relative responsive-img ".concat(v),style:{backgroundImage:"url('".concat(i,"')")}},a.createElement(o.F,{appLink:e.appLink,analyticsOptions:{actionType:r.Vw.Click,location:r.LZ.PlayPage,entity:r.py.AppLink,workflowPhase:r.eu.Start,descriptor:r.Yu.SignUp},analyticsData:{}},a.createElement(l.x,{svgName:u.vn.PlayCircle,className:"x_1f6"}),a.createElement("div",{className:d})))}},99719:(e,t,n)=>{n.d(t,{X:()=>L});var a=n(32735),i=n(42648),r=n(23481),o=n(110),l=n(78259),c=n(65858),s=n(11607),u=n(25723),m=n(87311),d=n(91743),v=n(83345),p=n(31908),f=n(90102),h=n(52588);const g={closeButton:"j5mgW",descriptionBorder:"uotsN"};var y="shared.videoDetails",b=r.T.encloseNamespace(y);function E(e){var t=e.label,n=e.items,i=e.className;if(!(n&&n.data&&n.data.length))return a.createElement(a.Fragment,null);var r=n.data.map((function(e){return e.name})).join(", ");return a.createElement("div",{className:i},t,": ",r)}function k(e){var t,n,i,r,l,c,s,u,m=e.video;if(!p.M.isVideo(m)&&!p.M.isClip(m))return a.createElement(a.Fragment,null);var d=p.M.getParentVideo(m);return a.createElement("div",{className:m.description?"col-md-5 ps-md-3 pt-3 pt-md-0":"col-12"},a.createElement("h2",{className:"h6 mb-1"},a.createElement(v.x,{phrase:"details"})),!!d.productionYear&&a.createElement("div",{className:"mb-1"},a.createElement(v.x,{phrase:"productionYear",options:{year:d.productionYear}})),a.createElement(E,{label:b("productionCompanies",{smartCount:null===(n=null===(t=d.productionCompanies)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length}),items:d.productionCompanies,className:"mb-1"}),a.createElement(E,{label:b("distributors",{smartCount:null===(r=null===(i=d.distributors)||void 0===i?void 0:i.data)||void 0===r?void 0:r.length}),items:d.distributors,className:"mb-1"}),a.createElement(E,{label:b("producers",{smartCount:null===(c=null===(l=d.producers)||void 0===l?void 0:l.data)||void 0===c?void 0:c.length}),items:d.producers,className:"mb-1"}),a.createElement(E,{label:b("directors",{smartCount:null===(u=null===(s=d.directors)||void 0===s?void 0:s.data)||void 0===u?void 0:u.length}),items:d.directors,className:"mb-1"}),!!d.dateBroadcast&&a.createElement("div",{className:"mb-1"},a.createElement(v.x,{phrase:"dateBroadcast",options:{date:o.O.format(d.dateBroadcast,"DD/MM/YYYY")}})))}function L(e){var t,n,r=e.video,o=e.maxHeight,b=void 0===o?f.x:o,E=p.M.getParentVideo(r),L=!!e.video.description,w=(0,h._)(e.video)||!!E.productionYear||!!E.dateBroadcast,C="function"==typeof e.onClickClose,N="function"==typeof e.onClickShowCurriculumLinks;return L||w?a.createElement(v.D.Provider,{value:y},a.createElement("div",{className:"rounded border p-3 mb-3 position-relative"},a.createElement(i.$B,{autoHeight:!0,autoHeightMax:b},a.createElement("div",{className:"row g-0"},L&&a.createElement("div",{className:w?"".concat(g.descriptionBorder," pe-3 col-md-7"):"col-12"},a.createElement("div",{className:"d-flex align-items-center"},a.createElement("h2",{className:"h6 mb-1"},a.createElement(v.x,{phrase:"description"})),a.createElement(u.m,{text:r.description,title:r.name,className:"ps-2",onLaunch:e.onLaunchImmersiveReader,onExit:e.onExitImmersiveReader,analyticsOptions:{location:c.LZ.PlayPage,entity:c.py.Video,actionType:c.Vw.Click,descriptor:c._S.LaunchImmersiveReader},analyticsData:{id:r.id,type:"description"}})),a.createElement("p",{className:"mb-0",dangerouslySetInnerHTML:{__html:l.O.linkifyText(e.video.description,{nl2br:!0})}}),a.createElement(d.P,Object.assign({tags:e.hideTags||p.M.isInteractive(e.video)||!(null===(n=null===(t=e.video.tags)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)?null:e.video.tags.data},m.G.getTagActionProps(e.getTagAppLink,e.suppressInteractivity),{className:"mt-1"})),N&&a.createElement(s.L,{onClick:e.onClickShowCurriculumLinks,className:"cursor-pointer d-inline-block fw-semibold text-info mt-2 mb-1"},a.createElement(v.x,{namespace:y,phrase:"seeCurriculumLinks"}))),w&&a.createElement(k,Object.assign({},e)))),C&&a.createElement("button",{type:"button",className:"btn-close ".concat(g.closeButton),"aria-label":"Close",onClick:e.onClickClose}))):a.createElement(a.Fragment,null)}},42571:(e,t,n)=>{n.d(t,{H:()=>i});var a=n(32735);function i(){return a.createElement("div",{className:"p-3 mb-3 border rounded"},a.createElement("div",{className:"row"},a.createElement("div",{className:"pe-3 col-md-7 border-right"},a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"12rem"}}),a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"4.5rem"}}),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"15rem"}})),a.createElement("div",{className:"col-md-5 ps-md-3 pt-3 pt-md-0"},a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"7rem"}}),a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"10rem"}}),a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"12rem"}}),a.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"3rem"}}),a.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"4rem"}}),a.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"3.5rem"}}),a.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"4.5rem"}}))))}},90102:(e,t,n)=>{n.d(t,{x:()=>a});var a=368},35014:(e,t,n)=>{n.d(t,{I:()=>u});var a=n(20354),i=n(16714),r=n(12754),o=n(39151),l=n(22902),c=n(15311),s=n(11387);function u(){var e=(0,l.T)(),t=e.hasPermissions,n=e.hasLocalPermissions,u=(0,c.r)().hasProduct,m=a.a.useBasicFetch(o.L.config()),d=u(r.x.Primary);return{canWatchPublicly:function(e){var t,n;return!!e&&!!(null===(n=null===(t=m.data)||void 0===t?void 0:t.allowedPublicVideos)||void 0===n?void 0:n[e])},canViewGlance:t(i.C.ViewVideoGlance),canViewResources:!0,canViewInteractives:d&&t(i.C.ViewVideoInteractives),canViewClips:d&&t(i.C.ViewVideoClips),canViewCurriculumLinks:t(i.C.ViewCurriculums),canUseActions:n(i.E.UseVideoActions),canViewPublicLayout:!n(i.E.WatchVideos)&&s.C.hasRegionPrefix(),canViewResourceItems:n(i.E.ViewVideoResourceItems),canNavigate:d}}},93563:(e,t,n)=>{n.d(t,{Z:()=>a});const a={container:"BImYH",background:"aAY0j",topLeft:"azcIT",bottomLeft:"mBkCx",topRight:"tcN5n",bottomRight:"sHsOr",detailsBtn:"jyxT7",content:"PeWbM",highlightPoi:"un8Q0"}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 3867-651a4b17b7-lite.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3867],{29711:(e,t,n)=>{n.d(t,{X:()=>C});var a=n(32735),r=n(110),i=n(23481),o=n(49439);const l={cellDate:"qcD_n",label:"sp6Gw",isHovering:"_6xWx",numberWrapper:"KZfe0"};function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var s=i.T.encloseNamespace("specialEventCalendar.calendarCellDate");function u(e){var t=r.O.isToday(e.date),n="".concat(l.cellDate," d-flex flex-nowrap");t&&(n+=" bg-dark text-white"),e.notCurrentMonth&&!e.isHovering&&(n+=" text-secondary"),e.hasEvent&&(n+=" text-white"),e.className&&(n+=" ".concat(e.className));var i,u,d=(i=(0,o.L)({delay:250}),u=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(i,u)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(i,u)||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=d[0],p=d[1];return a.createElement("div",{className:"".concat(n," ").concat(p?l.isHovering:""),ref:m},a.createElement("div",{className:"".concat(l.numberWrapper," ").concat("d-flex text-center justify-content-center align-items-center flex-shrink-0")},r.O.format(e.date,"D")),t&&a.createElement("div",{className:"".concat(l.label," justify-content-start align-items-center")},s("today")))}var d=n(49985),m=n(65858),p=n(84963),v=n(12324),f=n(36848),g=n(11607),h=n(44435),y=n(83914),b=n(2284),E=n(80122),k=n(35223);const L={hardcodedCover:"ByD0q",tag:"ZHW8B",date:"AKOWh",backgroundImage:"RDtch",eventCard:"YtMiS",wrapper:"ylxwf",left:"iTqxB",right:"bUUXX",noAnimation:"oZacR",cover:"kpH3Y",tagWrap:"KvlZ8",appear:"xlSdc",displayDate:"rkBJb",title:"c4_Kj",titleText:"nRMvg",circle:"wu4hg",active:"tbdFj",arrow:"omZKz",bottomBar:"hxKUP",bottomPlaceholder:"dzeZ7",multiEventFilter:"dSxjc",logo:"QRf1I"};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function x(e){var t,n,i,o,l,c,s=e.sliderStep,x=e.setSliderStep,O=e.eventsOnDay.length>1,C=e.eventsOnDay.find((function(e,t){return t===s})),S=!!C.endDate,N=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,C.content),T=null===(n=e.getHardCodedEvent)||void 0===n?void 0:n.call(e,C.content),D=null===(i=e.getIconUrl)||void 0===i?void 0:i.call(e,C.content),j=null===(o=e.getCoverUrl)||void 0===o?void 0:o.call(e,C.content),I=C.content.status===b.W.ComingSoon,A=(l=a.useState(e.hasInitialized?L.appear:""),c=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(l,c)||function(e,t){if(e){if("string"==typeof e)return w(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)?w(e,t):void 0}}(l,c)||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=A[0],F=A[1];a.useEffect((function(){if(!e.hasInitialized){var t=Math.floor(600*Math.random()+400);window.setTimeout((function(){F(L.appear),window.setTimeout((function(){e.setHasInitialized(!0)}),400)}),t)}}),[e.hasInitialized]),a.useEffect((function(){e.isHovering&&e.setHoveredEvent(C)}),[e.isHovering,C]),a.useEffect((function(){return function(){var t;e.isHovering&&(null===(t=e.hoveredEvent)||void 0===t?void 0:t.specialEventId)===C.specialEventId&&e.setHoveredEvent(null)}}),[e.isHovering,e.hoveredEvent,C]);var P=function(){var t={date:r.O.format(e.date,"YYYY-MM-DD"),presentationId:e.presentationId,eventCount:e.eventsOnDay.length};return O?(t.eventId=e.eventsOnDay.map((function(e){return e.specialEventId})).join(","),t.topicId=e.eventsOnDay.map((function(e){return e.content.id})).join(",")):(t.eventId=C.specialEventId,t.topicId=C.content.id,t.eventStatus=C.content.status),t}(),H={actionType:m.Vw.Click,entity:m.py.SpecialEvent,location:m.LZ.CalendarDay};function U(e){return r.O.format(e,"YYYY-MM-DD")}return a.createElement("div",{onClick:function(){I&&d.k.logUserAction(P,H)}},a.createElement(f.F,{appLink:function(){var t,n;return O?null===(t=e.getEventsListAppLink)||void 0===t?void 0:t.call(e):I?null:null===(n=e.getTopicAppLink)||void 0===n?void 0:n.call(e,C.content.id,C.name)}(),className:"d-flex justify-content-end",analyticsOptions:H,analyticsData:P},a.createElement("div",{className:"".concat(L.tagWrap," p-1")},I&&a.createElement(p.r,{className:"justify-content-center p-0 rounded-circle ".concat(L.tag," ").concat(M),onlyIcon:!0})),!e.hideDay&&a.createElement(u,{date:e.date,notCurrentMonth:e.notCurrentMonth,className:"".concat(L.date," ").concat(M),isHovering:e.isHovering,hasEvent:!0}),a.createElement("div",{className:"postion-relative ".concat(L.wrapper)},a.createElement("div",{style:{backgroundColor:N},className:"position-absolute d-flex flex-column justify-content-end align-items-center text-white px-1 pt-2 pb-1 ".concat(L.eventCard," ").concat(M," ").concat(e.isHovering?"rounded-3":""," ").concat(e.isMultiEventDate?L.multiEventFilter:""," ").concat(e.className)},a.createElement("div",{style:{backgroundImage:"url('".concat(D||j,"')")},className:"".concat(e.className," ").concat(M," ")+[T?"".concat(L.hardcodedCover," position-absolute"):L.backgroundImage,D?"":L.cover,I?L.comingSoon:"",e.hasInitialized?L.noAnimation:"",e.isHovering?"rounded-3":"",e.isMultiEventDate?L.multiEventFilter:"",e.contentType===E.VH.Webinar?L.logo:""].join(" ")}),S&&a.createElement("div",{className:"".concat(L.displayDate)},v.T.getDisplayDate(C.startDate,C.endDate)),a.createElement("div",{className:"text-center ".concat(L.title," ").concat(O?"mb-1":"mb-2")},a.createElement("div",{className:"".concat(L.titleText," ").concat(e.isHovering?"mb-0":"clamp-2"," h6"),title:C.name},C.name)),O&&0!==s&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(L.left)},a.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),x((function(e){return e-1})),d.k.logUserAction({date:U(e.date),action:"previous",eventCount:e.eventsOnDay.length},H)}},a.createElement(y.x,{svgName:k.vn.ChevronLeft,className:"d-inline-block svg-container text-dark ".concat(L.arrow)}))),O&&s!==e.eventsOnDay.length-1&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(L.right)},a.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),x((function(e){return e+1})),d.k.logUserAction({date:U(e.date),action:"next",eventCount:e.eventsOnDay.length},H)}},a.createElement(y.x,{svgName:k.vn.ChevronRight,className:"d-inline-block svg-container text-dark ".concat(L.arrow)}))),O&&a.createElement("div",{className:"d-flex ".concat(L.bottomBar," ").concat(O?"":L.bottomPlaceholder)},a.createElement(h.e,{sliderStep:s,sliderLength:e.eventsOnDay.length,size:"sm",className:"".concat(e.isHovering?"mb-2":"mb-1"),onSliderDotClick:function(t){x(t),d.k.logUserAction({date:U(e.date),action:"jump",eventCount:e.eventsOnDay.length},H)}}))))))}const O={cell:"nsEjO",multiEventCell:"vvFYj",fadeIn:"BX0cX"};function C(e){var t,n,i=a.useMemo((function(){var t,n,a,i;return(null===(t=e.hoveredEvent)||void 0===t?void 0:t.endDate)&&!r.O.isSame(e.date,null===(n=e.hoveredEvent)||void 0===n?void 0:n.startDate)&&r.O.isBetween(r.O.format(e.date,"YYYY-MM-DD"),null===(a=e.hoveredEvent)||void 0===a?void 0:a.startDate,null===(i=e.hoveredEvent)||void 0===i?void 0:i.endDate)}),[e.hoveredEvent]),o=e.hoveredEvent?null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,e.hoveredEvent.content):null;return a.createElement("div",{className:"".concat(O.cell," fw-semibold")},!e.hideDay&&a.createElement(u,{date:e.date,notCurrentMonth:e.notCurrentMonth}),i&&a.createElement("div",{style:{backgroundColor:o},className:O.multiEventCell}),(null===(n=e.eventsOnDay)||void 0===n?void 0:n.length)>0&&a.createElement(x,Object.assign({},e,{isMultiEventDate:i})))}},84963:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(32735),r=n(23481),i=n(83914),o=n(76177),l=n(35223);const c={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function u(e){return a.createElement(o.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(c.tooltip),spanHack:!0},a.createElement("div",{className:"d-flex text-dark align-items-center ".concat(c.tag," ").concat(e.className)},a.createElement(i.x,{svgName:l.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},73679:(e,t,n)=>{n.d(t,{s:()=>o});var a=n(32735),r=n(36848);const i={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function o(e){var t,n,o;return a.createElement(r.F,{appLink:null===(t=e.getAppLink)||void 0===t?void 0:t.call(e),className:"text-decoration-none text-center bg-white text-dark border border-3 ".concat(null===(n=e.theme)||void 0===n?void 0:n.border," rounded-3 d-block fw-semibold ").concat(e.className),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"position-relative ".concat(i.dateItem)},a.createElement("div",{className:"".concat(null===(o=e.theme)||void 0===o?void 0:o.background," py-1 ").concat(i.label," d-flex align-items-center justify-content-center")},e.label?e.label:a.createElement(a.Fragment,null," ")),a.createElement("div",{className:"".concat(function(){switch(e.body.type){case"range":return i.bodyRange;case"day":return i.bodyDay;case"month":return i.bodyMonth}}()," ").concat(i.body," my-2")},e.body.text),a.createElement("div",{className:"mb-0 ".concat(i.month)},e.month)))}},12324:(e,t,n)=>{n.d(t,{T:()=>r});var a=n(110),r={getDisplayDate:function(e,t){return t?e.slice(5,7)!==t.slice(5,7)?"".concat(a.O.format(e,"D MMM")," - ").concat(a.O.format(t,"D MMM")):"".concat(a.O.format(e,"D")," - ").concat(a.O.format(t,"D")," ").concat(a.O.format(e,"MMM")):a.O.format(e,"D MMM")},getEventsInMonth:function(e,t){return e.filter((function(e){return a.O.format(e.startDate,"YYYY-MM")===a.O.format(t,"YYYY-MM")}))},getOrdinalDate:function(e){return"".concat(a.O.getLocalDateOrdinal(a.O.get(e,"date"))," ").concat(a.O.format(e,"MMMM"))}}},2158:(e,t,n)=>{n.d(t,{T:()=>h});var a=n(32735),r=n(2948),i=n(20354),o=n(38304),l=n(25925),c=n(21750),s=n(5112),u=n(61699),d=n(31949),m=n(22902),p=n(37802),v=n(75795),f=n(33857);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function h(e){var t,n,h,y=(n=(0,r.D)("has:playlist",null),h=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 a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(n,h)||function(e,t){if(e){if("string"==typeof e)return g(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)?g(e,t):void 0}}(n,h)||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.")}()),b=y[0],E=y[1],k=i.a.useBasicFetch(d.N.currentUser()),L=i.a.useBasicFetch((null===(t=k.data)||void 0===t?void 0:t.isAuthenticated)&&d.N.user(k.data.id)),w=i.a.useBasicFetch(c.x.availablePresentations(l.R.Subject)),x=i.a.useBasicFetch(c.x.presentation(l.R.Subject)),O=i.a.useBasicFetch(c.x.availablePresentations(l.R.Curriculum)),C=i.a.useBasicFetch(s.C.getUserPlaylists(new f.l)),S=i.a.useBasicFetch(u.o.mySubjectPreferences()),N=(0,m.T)().hasPermissions;a.useEffect((function(){var e,t,n,a;C.hasCompleted&&b!==!!(null===(t=null===(e=C.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&E(!!(null===(a=null===(n=C.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.length))}),[C.hasCompleted]);var T=k.hasCompleted&&L.hasCompleted&&w.hasCompleted&&O.hasCompleted&&x.hasCompleted&&C.hasCompleted&&S.hasCompleted&&null!==b,D=(0,p.r)(null).userSettings;return{getPathway:function(){var t,n,a,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.jobTitleOverride||(null===(a=null===(n=null===(t=L.data)||void 0===t?void 0:t.userProfile)||void 0===n?void 0:n.metadata)||void 0===a?void 0:a.jobTitle),l=r.preferredPresentationOverride||x.data;return T?o.m.getOnboardingPathway({jobTitle:i,userSettings:D.data,presentations:w.data,curriculums:O.data,preferredSubjects:S.data,preferredPresentation:l,appLink:v.O.getCurrentRoute().appLink,appLinks:e,masterUser:L.data,hasPlaylist:b,hasPermissions:N,currentUser:k.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:T}}},98364:(e,t,n)=>{n.d(t,{V:()=>i});var a=n(32735);const r={emoji:"d86p2"};function i(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:r.emoji},e.emoji),e.children)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(32735),r=n(92802),i=n(2102),o=n(83345),l=n(33936),c="shared.formButtons";function s(e){var t=(0,r.u6)(),n=(0,l.l)(t);return a.createElement(i.m,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(o.x,{namespace:c,phrase:e.isNew?"create":"save"}))}},38365:(e,t,n)=>{n.d(t,{n:()=>k,W:()=>L});var a=n(32735),r=n(80247),i=n(80130),o=n(92802),l=n(91967),c=n(1048),s=n(36848),u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function d(e){var t=e.label,n=e.checkboxLabelClassName,r=e.checkboxLabelFontWeight,o=e.className,l=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(i.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(k,Object.assign({className:"form-check-input"},l)),a.createElement(i.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===r?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),p=n(83345),v=n(73814),f=n(35223);function g(e){var t=(0,o.u6)().values[e.fieldName];return"string"!=typeof t?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-muted fw-normal"},t.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},E="shared.formField";function k(e){var t,n,i=e.children,s=e.showLoadingSpinner,u=b(e,["children","showLoadingSpinner"]),d=(t=a.useState(e.type),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 a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(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)?y(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.")}()),p=d[0],v=d[1],g=l.q.isFunction(i)?function(e){return i(e)}:a.Children.count(i)?i:null;if("password"!==u.type)return s?a.createElement("div",{className:"position-relative"},a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g),a.createElement("div",{className:h.spinner},a.createElement(r.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g);var E="position-relative ".concat(h.passwordContainer);return u.className&&(E+=" ".concat(u.className)),u.disabled&&(E+=" ".concat(h.passwordContainerDisabled)),a.createElement("div",{className:E},a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize","type","className"]),{type:p,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),g),"password"===u.type&&a.createElement(m.x,{svgName:"password"===p?f.vn.VisibleOn:f.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){v("password"===p?"text":"password")}}))}function L(e){var t=e.label,n=e.className,r=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,y=e.infoText,L=e.formSize,w=e.showOptionalLabel,x=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),O=(0,o.u6)(),C=O.errors,S=O.touched,N=function(){};if("checkbox"===x.type){var T=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(T.onChange=N),a.createElement(d,Object.assign({},T))}var D=Object.assign(Object.assign({},x),{className:v.w.getCustomFormControlClassName(C,S,x.name,L,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(D.onChange=N),a.createElement(i.Z.Group,{className:"form-group"},!!t&&a.createElement(i.Z.Label,{htmlFor:x.id,className:"d-flex align-items-center"},t,l&&a.createElement("span",{className:"text-danger"},"*"),s&&a.createElement(m.x,{className:"svg-container text-muted ".concat(h.infoTooltip),svgName:f.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),w&&a.createElement("span",{className:"text-muted"}," ",a.createElement(p.x,{namespace:E,phrase:"optional"})),!!r&&!!x.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(g,{fieldName:x.name,limit:x.maxLength}))),a.createElement(k,Object.assign({},D)),!!y&&a.createElement(i.Z.Text,{className:"text-muted"},y),a.createElement(o.Bc,{name:x.name},(function(e){return a.createElement(i.Z.Control.Feedback,{type:"invalid"},e)})))}k.defaultProps={autoComplete:"off"},L.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>s});var a=n(32735),r=n(92802),i=n(91967),o=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,d=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=o.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(o.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(r.J9,Object.assign({enableReinitialize:!0},d,{initialValues:m,onSubmit:function(t,a){var r=a.setSubmitting,i=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&i(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||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}}(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.")}()),u=s[0],d=s[1];o(u,d)}r(!1)}))},initialStatus:p}),i.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,r.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},74696:(e,t,n)=>{n.d(t,{S:()=>s});var a=n(32735),r=n(68050),i=n(69111),o=n(9977),l=n(79967);const c={partialOptions:"Gufgq",partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function s(e){return a.createElement("div",{className:"mx-2"},Array(e.numVideos).fill(null).map((function(t,n){return a.createElement("div",{className:"d-flex",key:n},e.allowBulkActions&&a.createElement("div",{className:"form-check pe-3 pe-sm-2 mx-0 mx-md-2"}),a.createElement(u,Object.assign({},e)))})))}function u(e){var t=(0,l.k)(),n="sm"===o.O.getSize(t,"md"),s=e.withReordering&&!t.xs;return a.createElement(r.Z,{className:"".concat(n?"":"py-2"," flex-grow-1")},a.createElement(i.Z,Object.assign({},o.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(n?"pb-2 pe-1":"mb-1 pe-3 pe-md-2")}),a.createElement(r.Z,null,!!s&&a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a.createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),a.createElement(i.Z,{xs:o.O.getThumbnailColSize(s)},a.createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-3"," ").concat(c.partialThumbnail)})))),a.createElement(i.Z,Object.assign({},o.O.getDetailsColumns(),{className:n?"pb-2":"px-2"}),a.createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),a.createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)})))}s.defaultProps={numVideos:15}},12275:(e,t,n)=>{n.d(t,{L:()=>na});var a=n(32735),r=n(91967),i=n(20354),o=n(5281),l=n(65858),c=n(36848),s=n(7733),u=n(54610),d=n(9085),m=n(67453);var p=function(e){var t,n,r,i=m.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:u.h2.Medium}),o=(0,d.x)(e.data.name,s.o),p=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(r=e.data)||void 0===r?void 0:r.name}),v=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.CircleLogoSlidingListWidget,actionType:l.Vw.Click,entity:l.py.Company});return a.createElement(c.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:p,analyticsOptions:v},a.createElement("div",{className:"rounded-circle w-100 h-100 ".concat("vt0gx"," ").concat(o),style:{backgroundImage:"url(".concat(i,")")}}))},v=n(58704),f=n(80122);function g(e){var t;return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Companies,collection:e.content,childComponent:p,extraChildComponentProps:{imageCdnUrl:e.imageCdnUrl},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var h=n(55827),y=n(79967);var b=n(47770),E=n(68050),k=n(69111),L=n(9513),w=n(92802),x=n(23481),O=n(98364),C=n(23201),S=n(38365),N=n(82644),T=n(10874),D=n(83345),j=n(69883),I=n(35223),A=n(5173),M=A.Ry().shape({feedbackInput:A.Z_().max(5e3,(function(){return x.T.getPhrase("shared.feedbackForm","tooLong")}))});const F={promptContainer:"A_kCD",text:"UFm9h",form:"na9Vb"};function P(e){return P="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},P(e)}function H(){H=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new D(a||[]);return r(o,"_invoke",{value:C(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function h(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(j([])));L&&L!==n&&a.call(L,o)&&(E=L);var w=b.prototype=h.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(r,i,o,l){var c=d(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==P(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function C(t,n,a){var r=m;return function(i,o){if(r===v)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=S(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=d(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(P(t)+" is not iterable")}return y.prototype=b,r(w,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(O.prototype),s(O.prototype,l,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new O(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(w),s(w,c,"Generator"),s(w,o,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=j,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:j(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var V=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))},W="shared.feedbackForm";function R(e){var t,n,i=(t=a.useState("prompt"),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 a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return U(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)?U(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.")}()),o=i[0],l=i[1],c=(0,j.Z)();function s(t,n){return V(this,void 0,void 0,H().mark((function a(){return H().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.onSubmit({content:t.feedbackInput,type:"yes"===o?"positive":"negative"});case 3:l("done"),a.next=10;break;case 6:a.prev=6,a.t0=a.catch(0),l("prompt"),c.error(x.T.getPhrase(W,"error"));case 10:return a.prev=10,n({reset:!0}),a.finish(10);case 13:case"end":return a.stop()}}),a,null,[[0,6,10,13]])})))}return r.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:F.promptContainer},a.createElement("p",{className:"fw-semibold me-2 ".concat(F.text)},a.createElement(O.V,{emoji:"🔎"},a.createElement(D.x,{namespace:W,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(T.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:I.vn.ThumbsUp},a.createElement(D.x,{namespace:W,phrase:"yes"})),a.createElement(T.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:I.vn.ThumbsDown},a.createElement(D.x,{namespace:W,phrase:"no"})))):"yes"===o?a.createElement(N.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:M},a.createElement(w.l0,{className:F.form},a.createElement("p",{className:"fw-semibold ".concat(F.text)},a.createElement(O.V,{emoji:"👏"},a.createElement(D.x,{namespace:W,phrase:"happyFeedback"}))),a.createElement(S.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:x.T.getPhrase(W,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(D.x,{namespace:W,phrase:"back"})),a.createElement(C.A,{variant:"dark",submitText:x.T.getPhrase(W,"sendFeedback")})))):"no"===o?a.createElement(N.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:M},a.createElement(w.l0,{className:F.form},a.createElement("p",{className:"fw-semibold ".concat(F.text)},a.createElement(O.V,{emoji:"😢"},a.createElement(D.x,{namespace:W,phrase:"unhappyFeedback"}))),a.createElement(S.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:x.T.getPhrase(W,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(D.x,{namespace:W,phrase:"back"})),a.createElement(C.A,{variant:"dark",submitText:x.T.getPhrase(W,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(O.V,{emoji:"🙌"},a.createElement(D.x,{namespace:W,phrase:"thankYou"}))):a.createElement(a.Fragment,null):a.createElement(a.Fragment,null)}const B={imageContainer:"ZMjnx",image:"SsxEf",background:"MtcB3"};function Y(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(B.background," px-4 py-3 rounded-3 mb-3")},a.createElement("h2",{className:"h5"},e.name),a.createElement(E.Z,{className:"mb-2 w-100"},e.content.map((function(t){var n,r,i,o=m.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:u.h2.Small});return a.createElement(k.Z,{key:t.id,xs:12,sm:6,lg:4},a.createElement(c.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat(B.imageContainer," me-2")},a.createElement("div",{className:"".concat(B.image," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),a.createElement("div",null,t.name)))})))),a.createElement(R,{onSubmit:e.onSubmitFeedback}))}var z=n(98981),Z=n(88513),_={actionType:l.Vw.Click,entity:l.py.Playlist,location:l.LZ.PlaylistListItem,descriptor:l._S.Cover};function G(e){return a.createElement("div",null,a.createElement(Z.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mx-n1 mb-n2"},e.content.map((function(t){var n,r;return a.createElement(k.Z,{key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(z.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===r?void 0:r.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),_)}))}))))}var q=n(16450),X=n(43741);function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Q(e){return e.reduce((function(e,t){return e+((null==t?void 0:t.totalVideos)||0)}),0)}function $(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function J(e){var t,n,r=function(e,t){var n;if((null===(n=e.metadata)||void 0===n?void 0:n.appLink)===f.OL.ClassificationLatestReleases)return{id:"classification-latest-releases",name:"All new releases",cover:{url:m.j.getUrlById(e.imageCdnUrl,u.__.Covers,e.metadata.imageId,u.h2.Medium)},totalVideos:Q(t)}}(e,e.content),i=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===f.OL.ClassificationLatestReleases;return a.createElement(q.e,{collection:r?[r].concat((n=e.content,function(e){if(Array.isArray(e))return K(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return K(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)?K(e,t):void 0}}(n)||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.")}())):e.content,getChildAppLink:i?function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationLatestReleases)||void 0===a?void 0:a.call(n,t)}:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},childComponent:L.Vz,partialLoadingComponent:X.Q,heading:e.name,getSubtitle:i?$:void 0,description:e.description,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}var ee=n(65163),te=n(98269),ne=n(1048),ae=n(49985),re=n(11607),ie=n(17808),oe=n(1287),le=n(2102),ce=n(83914),se=n(83523),ue=n(92038),de="shared.subjectWidgetItem",me=a.forwardRef((function(e,t){var n,r="px-3 d-flex flex-column justify-content-center",i="".concat(ue.Z.name," h6");return e.multiline?i+=" clamp-3":(r+=" text-nowrap",i+=" text-truncate"),"hidden"===(null===(n=e.style)||void 0===n?void 0:n.visibility)?a.createElement("div",{ref:t,className:"d-flex align-items-center position-relative clamp-2 ".concat(ue.Z.widgetItem," ").concat(ue.Z.draggingItem),style:ne.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(ue.Z.widgetItem),style:ne.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(ue.Z.dragHandle," ms-3 d-flex justify-content-center align-items-center \n ").concat(e.isDragging?"cursor-grabbing":"cursor-grab"," ").concat(e.isVisible?"":"text-muted","\n ")},e.dragAttributes,e.dragListeners),a.createElement(ce.x,{svgName:I.vn.Hamburger})),a.createElement("div",{className:r},a.createElement("h3",{className:"".concat(i," ").concat(e.isVisible?"":"text-muted")},e.data.name)),a.createElement("div",{className:"ms-auto me-3"},a.createElement(se.Z,{on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?x.T.getPhrase(de,e.isVisible?"hideFromDashboard":"showOnDashboard"):x.T.getPhrase(de,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),pe=n(91028),ve=n(16714),fe=n(54569),ge=n(49542);function he(e){return he="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},he(e)}function ye(){ye=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new D(a||[]);return r(o,"_invoke",{value:C(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function h(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(j([])));L&&L!==n&&a.call(L,o)&&(E=L);var w=b.prototype=h.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(r,i,o,l){var c=d(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==he(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function C(t,n,a){var r=m;return function(i,o){if(r===v)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=S(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=d(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(he(t)+" is not iterable")}return y.prototype=b,r(w,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(O.prototype),s(O.prototype,l,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new O(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(w),s(w,c,"Generator"),s(w,o,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=j,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:j(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ee(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)?Ee(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 Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var ke="shared.editableCoverFixedPillListSmall";function Le(e){var t,n=be(a.useState(!1),2),r=n[0],i=n[1],o=be(a.useState(!1),2),c=o[0],s=o[1],u=ge.d.useGetContent(e.content,e.preferences).unfilteredContent,d=a.useMemo((function(){return u.every((function(e){var t,n;return!(null===(n=null===(t=e.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)}))}),[u]),m=a.useMemo((function(){var e;return null!==(e=null==u?void 0:u.reduce((function(e,t,n){var a,r,i={id:t.id,hidden:!(null===(r=null===(a=t.followers)||void 0===a?void 0:a.data)||void 0===r?void 0:r.length)&&!d,index:n};return e[t.id]=i,e}),{}))&&void 0!==e?e:{}}),[e.preferences,d]),p=be(a.useState(m),2),v=p[0],f=p[1],g=be(a.useState(m),2),h=g[0],y=g[1],b=a.useMemo((function(){return r?u.sort((function(e,t){return h[e.id].index-h[t.id].index})):u.filter((function(e){var t;return!(null===(t=v[e.id])||void 0===t?void 0:t.hidden)})).sort((function(e,t){return v[e.id].index-v[t.id].index}))}),[u,h,v,r]),L=(0,j.Z)();a.useEffect((function(){i(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var w=a.useMemo((function(){return!(r||!b.length)&&Object.values(h).some((function(e){return e.hidden}))}),[r,h]);function O(e){return h[e.id]?h[e.id].index:b.findIndex((function(t){return t.id===e.id}))}function C(e){var t;return!(null===(t=h[e.id])||void 0===t?void 0:t.hidden)}function S(e){var t=Object.assign({},h),n=C(e);t[e.id]={id:e.id,hidden:n,index:O(e)},ae.k.logUserAction({id:e.id,name:e.name},{location:l.LZ.EditableSubjectPreferencesWidget,entity:l.py.Classification,actionType:l.Vw.Hide,descriptor:n?l.DL.On:l.DL.Off}),y(t)}var N=a.useMemo((function(){return!ne.t.isEqual(m,h)}),[m,h]),T={id:e.presentation.id,name:x.T.getPhrase(ke,"exploreAll"),cover:e.presentation.cover},I=e.hasLocalPermissions(ve.E.ManageDiscoverPreferences);return b.length?a.createElement("div",null,a.createElement("div",{className:"d-flex flex-wrap align-items-center justify-content-between"},a.createElement("div",{className:"col"},a.createElement("div",{className:"d-flex justify-content-between w-100 no-wrap flex-row mb-2"},a.createElement("h2",{className:"h4 mb-0 align-self-end flex-shrink-0"},r?x.T.getPhrase(ke,"updating"):e.name),!r&&I&&a.createElement(re.L,{className:"hover-text-underline",onClick:function(){return i(!0)}},x.T.getPhrase(ke,"edit"))),!!e.description&&!r&&a.createElement("p",{className:"text-truncate description mb-2"},e.description),r&&a.createElement("p",{className:"description mb-2"},a.createElement(D.x,{namespace:ke,phrase:"editingDescription"}))),r&&I&&a.createElement("div",{className:"d-flex align-items-start"},a.createElement(te.Z,{variant:"link",className:"me-2",onClick:function(){y(v),i(!1)}},a.createElement(D.x,{namespace:ke,phrase:"cancel"})),a.createElement(le.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,r=ye().mark((function t(){var n;return ye().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s(!0),n=d?u.map((function(e,t){return{id:e.id,hidden:!0,index:t}})):Object.values(v),e.updatePreferences(e.id,e.widgetTypeId,n,Object.values(h)).then((function(){f(h),s(!1),i(!1)})).catch((function(){s(!1),L.error(x.T.getPhrase(ke,"error"))}));case 3:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,l)}c((r=r.apply(t,n||[])).next())}));var t,n,a,r},showSpinner:c,disabled:!N},a.createElement(D.x,{namespace:ke,phrase:"update"})))),a.createElement(E.Z,{className:"mx-n1 mb-n2"},w&&a.createElement(k.Z,{className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(pe.V,{data:T,getChildAppLink:function(){var t,n;return null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.allTopics)||void 0===n?void 0:n.call(t,e.presentation.id)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,multiline:!0})),a.createElement(ie.Q,{ids:b.map((function(e){return e.id})),getDragOverlay:function(e){var t=b.find((function(t){return t.id===e}));return a.createElement("div",{className:"bg-white rounded-3 ".concat("K1Ce4")},a.createElement(me,{data:t,onToggleVisibility:S,isVisible:C(t),isDragging:!0,canToggle:!0}))},onSortStart:function(e){var t=b.find((function(t){return t.id.toString()===e.active.id.toString()})),n=b.findIndex((function(t){return t.id.toString()===e.active.id.toString()}));ae.k.logUserAction({id:t.id,name:t.name,index:n},{location:l.LZ.EditableSubjectPreferencesWidget,entity:l.py.Classification,actionType:l.Vw.Move,workflowPhase:l.eu.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=O({id:t.id}),r=b.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==r){var i=b[a];if(i){var o=Object.assign({},h);fe.l.reorder(b,a,r).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!C(e)}})),y(o),ae.k.logUserAction({id:i.id,name:i.name,oldIndex:a,newIndex:r},{location:l.LZ.EditableSubjectPreferencesWidget,entity:l.py.Classification,actionType:l.Vw.Move,workflowPhase:l.eu.Complete})}}},vertical:!1},b.map((function(t){return a.createElement(k.Z,{className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(a.Fragment,null,r?a.createElement(oe.W,{id:t.id,childComponent:me,childProps:{data:t,onToggleVisibility:S,isVisible:C(t),isDragging:!1,canToggle:!C(t)||Object.values(h).filter((function(e){return!e.hidden})).length>1,multiline:!0}}):a.createElement(pe.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,multiline:!0})))}))))):a.createElement(a.Fragment,null)}var we=n(110),xe=n(11518),Oe=n(29711),Ce=n(73679),Se=n(55171);const Ne={dateItemContainer:"Hrx2m",container:"k2Xse"};var Te=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function De(e){return a.createElement("div",{className:"".concat(Ne.container," position-relative flex-shrink-0 ").concat(e.theme.backgroundSecondary)},a.createElement(c.F,{appLink:e.getAppLink(e.data),className:"text-decoration-none my-2 mx-1 rounded-3 d-block position-relative",analyticsData:e.analyticsData(e.data),analyticsOptions:e.analyticsOptions},a.createElement(Oe.X,{isHovering:!1,date:new Date(e.data.startDate),notCurrentMonth:!1,monthQuery:null,eventsOnDay:[e.data],events:[e.data],sliderStep:0,presentationId:e.data.content.presentationId,hoveredEvent:null,isMultiEventDate:!1,className:"rounded-3",getBackgroundColor:e.getBackgroundColor,getIconUrl:e.getIconUrl,hasInitialized:!0,hideDay:!0})))}function je(e){var t=e.data,n=Te(e,["data"]);if("date-widget-item"===t.type)return a.createElement("div",{className:"".concat(Ne.container," ").concat(Ne.dateItemContainer," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(Ce.s,{month:t.month,body:t.body,label:t.label,getAppLink:function(){return e.getAppLink(t)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{label:t.label,month:t.month,body:t.body.text}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Url,actionType:l.Vw.Click,location:l.LZ.EventIconSlidingListWidget}),className:"my-2 mx-1",theme:e.theme}));if("Webinar"===t.type)return a.createElement(De,Object.assign({},n,{data:t,getBackgroundColor:function(e){var t;return null===(t=e.company.metadata)||void 0===t?void 0:t.colour},getIconUrl:function(e){var t;return null===(t=e.company.logo)||void 0===t?void 0:t.url},analyticsData:function(t){return Object.assign(Object.assign({},e.analyticsData),{id:t.content.id,name:t.content.name,startDateTime:t.content.startDateTime,endDateTime:t.content.endDateTime})},analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.SpecialEvent,actionType:l.Vw.Click,location:l.LZ.EventIconSlidingListWidget})}));function r(e){return Se.e.SpecialEvents[e.id]}return a.createElement(De,Object.assign({},n,{data:t,getBackgroundColor:function(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.backgroundColor},getIconUrl:function(e){return function(e,t){var n;return t?m.j.createUrl(t.iconUrl,{size:u.h2.Medium}):m.j.createUrl(null===(n=e.icon)||void 0===n?void 0:n.url,{size:u.h2.Small})}(e,r(e))},getHardCodedEvent:r,analyticsData:function(t){return Object.assign(Object.assign({},e.analyticsData),{id:t.specialEventId,name:t.name,startDate:t.startDate,endDate:t.endDate,classificationId:t.content.id,classificationName:t.content.name})},analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.SpecialEvent,actionType:l.Vw.Click,location:l.LZ.EventIconSlidingListWidget})}))}function Ie(e){return function(e){if(Array.isArray(e))return Me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ae(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 Ae(e,t){if(e){if("string"==typeof e)return Me(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)?Me(e,t):void 0}}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Fe=x.T.encloseNamespace("widgets.eventIconSlidingList");function Pe(e){var t,n,r=a.useMemo((function(){return function(e,t){var n=Ie(t===f.VH.Webinar?e.map((function(e){return{id:e.id,startDate:we.O.format(e.startDateTime,"YYYY-MM-DD"),type:"Webinar",name:e.name,description:e.description,content:e}})):e).sort((function(e,t){return e.startDate.localeCompare(t.startDate)})),a=new Date,r=we.O.format(a,"YYYY-MM-DD"),i=we.O.format(we.O.add(r,1,"day"),"YYYY-MM-DD"),o=we.O.format(we.O.add(we.O.startOf(a,"week"),8,"days"),"YYYY-MM-DD"),l=we.O.format(we.O.add(o,6,"days"),"YYYY-MM-DD"),c=we.O.format(we.O.startOf(a,"month"),"YYYY-MM-DD"),s=we.O.format(we.O.endOf(a,"month"),"YYYY-MM-DD"),u=we.O.format(we.O.startOf(we.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),d=we.O.format(we.O.endOf(we.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),m=we.O.format(we.O.startOf(we.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),p=we.O.format(we.O.endOf(we.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),v=new Map;function g(e){if(v.has(e.group)){var t=v.get(e.group);v.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(Ie(t.events),[e.event])}))}else v.set(e.group,{events:[e.event],label:e.label,body:e.body,monthLabel:e.monthLabel,startDate:e.startDate,endDate:e.endDate})}n.forEach((function(e){if(e.startDate<=r)g({group:"today",startDate:r,endDate:null,event:e,body:{text:we.O.format(r,"DD"),type:"day"},monthLabel:we.O.format(r,"MMMM"),label:Fe("today")});else if(e.startDate!==i)if(e.startDate>i&&e.startDate<o){var t=we.O.format(e.startDate,"dddd");g({group:t,startDate:e.startDate,endDate:e.endDate,event:e,monthLabel:we.O.format(e.startDate,"MMMM"),body:{text:we.O.format(e.startDate,"DD"),type:"day"},label:t})}else e.startDate>=o&&e.startDate<=l?g({group:"nextWeek",startDate:o,endDate:l,event:e,monthLabel:we.O.isSame(o,l,"month")?we.O.format(o,"MMMM"):"".concat(we.O.format(o,"MMM")," - ").concat(we.O.format(l,"MMM")),body:{text:"".concat(we.O.format(o,"DD"),"-").concat(we.O.format(l,"DD")),type:"range"},label:Fe("nextWeek")}):e.startDate>=c&&e.startDate<=s?g({group:"thisMonth",startDate:c,endDate:s,event:e,monthLabel:"",body:{text:we.O.format(e.startDate,"MMM"),type:"month"},label:Fe("thisMonth")}):e.startDate>=u&&e.startDate<=d?g({group:"nextMonth",startDate:u,endDate:d,event:e,monthLabel:"",body:{text:we.O.format(e.startDate,"MMM"),type:"month"},label:Fe("nextMonth")}):e.startDate>=m&&e.startDate<=p&&g({group:"later",startDate:m,endDate:p,event:e,monthLabel:"",body:{text:we.O.format(e.startDate,"MMM"),type:"month"},label:Fe("later")});else g({group:"tomorrow",startDate:i,endDate:null,event:e,body:{text:we.O.format(i,"DD"),type:"day"},monthLabel:we.O.format(e.startDate,"MMMM"),label:Fe("tomorrow")})}));var h,y=[],b=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ae(e))){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(v.values());try{for(b.s();!(h=b.n()).done;){var E=h.value,k={label:E.label,body:E.body,month:E.monthLabel,appLinkMonth:we.O.format(E.startDate,"MMMM"),appLinkYear:we.O.format(E.startDate,"YYYY"),type:"date-widget-item"};y.push(k),E.events.forEach((function(e){y.push(e)}))}}catch(e){b.e(e)}finally{b.f()}return y}(e.content,e.contentType)}),[e.content]),i=e.contentType===f.VH.Webinar?{background:"bg-light-green",border:"border-light-green",backgroundSecondary:"bg-light-blue"}:{background:"bg-light-blue",border:"border-light-blue",backgroundSecondary:"bg-light-yellow"};return a.createElement(xe.kM,{name:e.name,description:e.description,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.calendar)||void 0===n?void 0:n.call(t),type:f.l9.Row,contents:v.z.SpecialEvents,getChildAppLink:function(t){var n,a,r,i,o,l;return"date-widget-item"===t.type?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.calendarMonth)||void 0===a?void 0:a.call(n,t.appLinkMonth,t.appLinkYear):"Webinar"===t.type?null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.webinar)||void 0===i?void 0:i.call(r,t.content):null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,t.content)},collection:r,childComponent:je,extraChildComponentProps:{theme:i},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0})}var He=n(39202),Ue=n(5438),Ve=n(49439);function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Re=a.memo((function(e){var t,n,r=e.data,i=e.subTextAppLink,o=e.context,l=e.thumbnailSize,c=e.preloadImage,s=(t=(0,Ve.L)({className:"lZsTl",style:{transform:"scale(".concat((null==o?void 0:o.type)===f.l9.LargeRow?1.1:1.15,")")}}),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 a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return We(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)?We(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.")}()),u=s[0],d=s[1];a.useEffect((function(){e.onHover(d)}),[d]);var m="lcmBu";return o.type===f.l9.LargeRow&&(m="iVL1A"),a.createElement("div",{ref:u,className:"px-1 flex-shrink-0 position-relative ".concat(m," ").concat("CmXOx")},a.createElement(Ue.u,{video:r,type:"expandable",appLink:e.getAppLink(r),subTextAppLink:i,imageOptions:{size:l},preload:c,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,hovering:d,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType}))}));const Be="eSMIx",Ye="layDP";function ze(e){var t,n,r=ge.d.getCustomAppLink(e),i=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?m.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Medium):"";return a.createElement("div",null,a.createElement(c.F,{appLink:r,style:i?{backgroundImage:"url(".concat(i,")")}:{},className:"".concat(Be," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":Ye),analyticsData:{url:He.C$.getHref(r)},analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Url,location:l.LZ.ContentUpdatesBanner}},a.createElement("h2",{className:"h4 text-white mb-0"},e.name)),a.createElement(o.k,{type:f.l9.Row,contents:v.z.Videos,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t)},collection:e.content,childComponent:Re,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,seriesAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.series},hideBleedingContent:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var Ze=n(81993);const _e={rowWidth:"TzZuL"};function Ge(e){return a.createElement(c.F,{appLink:e.getAppLink(e.data),className:"".concat(_e.rowWidth," ").concat(e.ratingsLength>4?"":4===e.ratingsLength?"col-4 col-md-3":"col"," position-relative flex-shrink-0 px-1 mt-1 text-decoration-none"),analyticsData:Object.assign(Object.assign({},e.analyticsData),{code:e.data.code,id:e.data.id}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Rating,actionType:l.Vw.Click,location:l.LZ.FilterSlidingPillListSmallWidget})},a.createElement("div",{className:"".concat(Ze.u.mapRatingToClass(e.data.value)," py-3 rounded-3 ")},a.createElement("div",{className:"d-flex justify-content-center align-items-center text-white"},a.createElement(ce.x,{svgName:I.vn.Search,size:ce.S.Medium}),a.createElement("h4",{className:"mb-0"},e.data.code))))}function qe(e){var t=e.content.filter((function(e){return e.code&&e.value<128}));return a.createElement(a.Fragment,null,a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Ratings,getChildAppLink:function(n){var a,r;return null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.rating)||void 0===r?void 0:r.call(a,n,t)},collection:t,childComponent:Ge,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,extraChildComponentProps:{ratingsLength:t.length},prefetched:!0}))}function Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Ke(e){return a.createElement("div",{className:"curated-widget-header"},a.createElement("h2",{className:"curated-widget-heading"},e.name),!!e.description&&a.createElement("p",{className:"description curated-widget-description"},e.description))}var Qe=n(75896);const $e={cta:"nA9th",banner:"b5ljD",bannerImage:"dj_1H",blurb:"UBcVE",presentations:"fGBlR",bannerContent:"lkPfM"};function Je(e){var t,n,r,i,o,s,d=Qe.m.first(e.content),p=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.Classification,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Banner});return a.createElement(c.F,{appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,d),analyticsData:e.analyticsData,analyticsOptions:p},a.createElement("div",{className:"banner rounded-3 position-relative ".concat($e.banner)},a.createElement("div",{className:$e.bannerImage,style:{backgroundImage:"url('".concat(m.j.createBannerUrl(d.banner,{fallbackBaseUrl:"",fallbackCategoryName:d.name,type:u.__.Banners},{size:u.h2.Large}),"')")}},e.name&&a.createElement("div",{className:"".concat($e.bannerContent," px-3")},a.createElement("h2",{className:"text-white h4 clamp-1"},e.name)),!!(null===(i=null===(r=e.metadata)||void 0===r?void 0:r.cta)||void 0===i?void 0:i.text)&&a.createElement("div",{className:$e.cta},a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(s=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.text)))))}function et(e){return a.createElement(Je,Object.assign({},e))}const tt="iCyo4",nt="cgv_6";function at(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(tt)},a.createElement("div",{className:"".concat(nt)}))}function rt(e){return rt="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},rt(e)}function it(e,t,n){var a;return a=function(e,t){if("object"!=rt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=rt(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==rt(a)?a:String(a))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ot,lt,ct;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6"}(ot||(ot={})),function(e){e.Dark="dark",e.White="white"}(lt||(lt={})),function(e){e.NewWindow="new-window"}(ct||(ct={})),ot.H1,ot.H2,ot.H3,ot.H4,ot.H5,ot.H6,lt.Dark,lt.White,ct.NewWindow;var st=it(it(it(it(it(it(it(it({},ot.H1,"h1"),ot.H2,"h2"),ot.H3,"h3"),ot.H4,"h4"),ot.H5,"h5"),ot.H6,"h6"),lt.Dark,"text-dark"),lt.White,"text-white"),ut=n(42308);function dt(e){var t,n,r,i=st[(null===(t=e.metadata.theming)||void 0===t?void 0:t.headingSize)||ot.H6],o=st[(null===(n=e.metadata.theming)||void 0===n?void 0:n.headingColor)||lt.Dark];return a.createElement("div",{className:"banner rounded-3 position-relative ".concat($e.banner)},a.createElement("div",{className:"".concat($e.bannerImage," ").concat($e.blurb," d-flex"),style:{backgroundImage:"url('".concat(m.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat($e.bannerContent," ").concat(e.widgetTypeId===ut.z.Blurb?$e.blurb:""," d-flex justify-content-between w-100 px-3")},a.createElement("h2",{className:"".concat(i," ").concat(o," mb-0")},e.name),(null===(r=e.metadata.cta)||void 0===r?void 0:r.text)&&a.createElement(T.h,{svgName:I.vn.NewWindow,className:"btn btn-dark text-nowrap",href:e.metadata.cta.href,openInNewTab:!0},e.metadata.cta.text))))}function mt(e){var t=e.hasPermissions(ve.C.ManageSubjectPreferences)||e.hasLocalPermissions(ve.E.ManagePublicPresentation);function n(t){var n,r,i={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),s=Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Presentation,actionType:l.Vw.Click,location:l.LZ.HeroBannerSmallWidget});return a.createElement(c.F,{className:"info-link d-inline",appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===r?void 0:r.call(n),appLinkOptions:i,analyticsData:o,analyticsOptions:s},t.name)}var r=e.name;return t?a.createElement("div",{className:"banner rounded-3 position-relative ".concat($e.banner)},a.createElement("div",{className:"".concat($e.bannerImage," ").concat($e.presentations),style:{backgroundImage:"url('".concat(m.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},r&&a.createElement("div",{className:"".concat($e.bannerContent," ").concat($e.presentations," px-3")},a.createElement("h2",{className:"h6 mb-0"},r," ",1===e.content.length?n(e.content[0]):2===e.content.length?a.createElement(a.Fragment,null,n(e.content[0])," or ",n(e.content[1])):a.createElement(a.Fragment,null,e.content.slice(0,e.content.length-1).map((function(e){return a.createElement(a.Fragment,{key:e.id},n(e),", ")})),"or ",n(Qe.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function pt(e){switch(e.widgetTypeId){case ut.z.Blurb:return a.createElement(dt,Object.assign({},e));case ut.z.Presentations:return a.createElement(mt,Object.assign({},e));default:return a.createElement(Je,Object.assign({},e))}}function vt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat($e.banner)},a.createElement("div",{className:"".concat($e.bannerContent)}))}function ft(e){var t,n,r,i,o,s,d=Qe.m.first(e.content),p=m.j.createUrl(null===(t=d.thumbnail)||void 0===t?void 0:t.url,{size:u.h2.Medium}),v=null===(n=d.metadata)||void 0===n?void 0:n.backgroundColor,f={backgroundColor:v};p&&(f.backgroundImage="url('".concat(p,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:d.id,name:d.name,presentationId:d.presentationId}),h=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.ClassificationListItem,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Thumbnail});return p&&v?a.createElement(c.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,d),className:"text-decoration-none",analyticsData:g,analyticsOptions:h},a.createElement("div",{className:"banner rounded-3 position-relative ".concat("LPw_x")},a.createElement("div",{className:"".concat("UJ8IR"," d-flex justify-content-between align-items-center"),style:f},e.name&&a.createElement("div",{className:"d-flex align-items-center ps-3 h-100"},a.createElement("h2",{className:"text-white h4 clamp-1"},e.name)),a.createElement("div",{className:"btn btn-outline-dark me-3"},(null===(s=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.text)||x.T.getPhrase("shared.heroThumbnailSmall","buttonLabel"))))):a.createElement(pt,Object.assign({},e))}var gt=n(45716),ht=n(2158),yt=n(38304),bt={HIGH:.75,MODERATE:.5};const Et={circleContainer:"p8Vgz",backgroundCircle:"asGGE",circleSuccess:"PXLNj",circleWarning:"ZckRN",circleDanger:"slBRg",lgCircleContainer:"N8KCI",pendingCircle:"DKrcq",centredPercentageText:"tpmLR"};var kt,Lt,wt=2,xt=5.8,Ot=.2,Ct=.36;function St(e){var t=e===kt.Large?xt:wt,n=e===kt.Large?Ct:Ot;return"".concat(t/2-2*n,"rem")}function Nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bt;return e>=t.HIGH?Et.circleSuccess:e>=t.MODERATE?Et.circleWarning:Et.circleDanger}function Tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bt;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function Dt(e,t){var n="d-inline-block ".concat(Et.circleContainer);return e===kt.Large&&(n+=" ".concat(Et.lgCircleContainer)),jt(t)&&(n+=" ".concat(Et.pendingCircle)),n}function jt(e){return"number"!=typeof e}function It(e){var t=a.useCallback((function(t){if(t){var n=t.r.baseVal.value,a=2*Math.PI*n,r=a-e.percentage*a;t.style.strokeDasharray="".concat(a," ").concat(a),t.style.strokeDashoffset=r.toString()}}),[e.percentage]);return a.createElement("svg",null,a.createElement("circle",{r:St(e.size),className:Et.backgroundCircle}),!jt(e.percentage)&&a.createElement("circle",{ref:t,r:St(e.size),className:Nt(e.percentage,e.scoreThresholds)}))}function At(e){var t,n,r=function(e){if(!jt(e))return+e.toFixed(2)}(e.percentage),i=e.layout===Lt.LabelInside?kt.Large:kt.Small,o=e.customLabel||(jt(n=r)?"--%":"".concat(Math.round(100*n),"%"));return e.layout===Lt.LabelOnly?a.createElement("span",{className:Tt(r)},o):a.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===Lt.LabelBefore&&a.createElement("span",{className:"me-2"},o),a.createElement("div",{className:Dt(i,r)},a.createElement(It,{percentage:r,size:i,scoreThresholds:e.scoreThresholds}),e.layout===Lt.LabelInside&&a.createElement("span",{className:Et.centredPercentageText},o)))}!function(e){e.Small="small",e.Large="large"}(kt||(kt={})),function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(Lt||(Lt={})),At.defaultProps={layout:Lt.CircleOnly};var Mt=n(64818);var Ft="widgets.onboardingSteps",Pt=x.T.encloseNamespace(Ft);function Ht(e){var t,n,r,i,o,s,u,d,m=(0,ht.T)(null!==(r=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.onboardingAppLinks)||void 0===n?void 0:n.call(t))&&void 0!==r?r:{}),p=m.getPathway,v=m.hasLoadedPathway,f=v&&p(),g=Mt.l.isKDM(e.jobTitle);if(function(){var t,n;return!(e.isPreviewing||v&&!(null===(t=e.settings)||void 0===t?void 0:t.hasCompletedOnboardingV2)&&(null===(n=e.settings)||void 0===n?void 0:n.hasOnboardingV2)&&e.hasPermissions(ve.C.ViewOnboarding)&&!f.hasCompletedAllSteps)}())return a.createElement("div",{className:"mb-n3"});var h=function(){if(e.isPreviewing)return{};var t=gt.H[f.currentScreen],n=f.screens[f.currentScreen],a=null==n?void 0:n.next,r=null==n?void 0:n.previous;return Object.assign({currentScreen:null==t?void 0:t.id,nextScreen:a,previousScreen:r,progress:yt.m.getProgress(f)},yt.m.getOnboardingScreenStates(f))}(),y=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=yt.m.getProgress(f);return 0===t.overallPercentage?Object.assign(Object.assign({},t),{overallPercentage:10}):t}(),b=y.overallPercentage,E=y.totalScreens,k=y.currentStepNumber;return a.createElement("div",{className:"rounded-3 bg-light-yellow border border-2 border-dark position-relative d-flex align-items-center ".concat("QU4re")},a.createElement("div",{className:"".concat("zmH98")},a.createElement("div",{className:"T9LAC"},a.createElement(At,{percentage:Math.round(b)/100,layout:Lt.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(i=gt.H["select-videos"])||void 0===i?void 0:i.getWidgetHeading(g):null===(o=gt.H[f.currentScreen])||void 0===o?void 0:o.getWidgetHeading(g)),a.createElement("div",{className:"dTKo5"},a.createElement(ce.x,{svgName:I.vn.ArrowRight,className:"svg-container me-1"}),a.createElement("p",{className:"ypP5M"},function(e,t,n,a){var r=gt.H[e];return t===n?"".concat(Pt("lastStepDescriptionPrefix")," ").concat(null==r?void 0:r.getWidgetDescription(a)):1===t?"".concat(Pt("firstStepDescriptionPrefix")," ").concat(null==r?void 0:r.getWidgetDescription(a)):"".concat(Pt("descriptionPrefix")," ").concat(null==r?void 0:r.getWidgetDescription(a))}(e.isPreviewing?"select-videos":f.currentScreen,k,E,g))))),a.createElement("div",{className:"align-items-center justify-content-end h-100 ".concat("w05om"),style:{backgroundImage:"url('".concat(null===(s=e.imageUrls)||void 0===s?void 0:s.onboardingTeacherBackground,"')")}},a.createElement(c.F,{appLink:null===(d=null===(u=e.appLinks)||void 0===u?void 0:u.onboardingStep)||void 0===d?void 0:d.call(u,f.currentScreen),className:"btn btn-dark btn-lg ".concat("CHWcH"),analyticsData:h,analyticsOptions:{actionType:l.Vw.Click,entity:l.py.User,location:l.LZ.OnboardingStepsWidget,descriptor:l.Ix.FinishPersonalising}},a.createElement(D.x,{namespace:Ft,phrase:"completeSetup"}))))}function Ut(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}var Vt=n(68626),Wt=n(80143),Rt=n(31908);var Bt=a.memo((function(e){var t,n=e.data,r=e.getSubTextAppLink,i=e.context,o=e.thumbnailSize,l=e.preloadImage,c=e.presentationAudiences,s=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,u=(0,Wt.n)(s,c),d=(0,y.k)(),m="JSM4l";return i.type===f.l9.LargeRow&&(m="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(m)},a.createElement(Ue.u,{type:d.xs?"static":"popout",textPosition:Vt.z.Below,video:n,appLink:e.getAppLink(n),subTextAppLink:Rt.M.isVideo(n)&&(null==r?void 0:r(n)),imageOptions:{size:o},preload:l,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,canFavourite:e.canFavourite,setFavourite:e.setFavourite,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,audience:u,hideRating:!!u,hideDuration:!1,yearGroups:e.yearGroups,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,hideTitle:e.hideTitle,showVideoGuidance:e.showVideoGuidance,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType}))}));function Yt(e){var t,n,r,i,l,c,s,u;return a.createElement(o.k,{name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:f.l9.LargeRow,contents:v.z.Videos,collection:e.content,childComponent:Bt,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.subText,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,yearGroups:e.yearGroups,hideTitle:null===(i=e.metadata)||void 0===i?void 0:i.hideObjectTitle,hideSeries:null===(l=e.metadata)||void 0===l?void 0:l.hideObjectSeries,showVideoGuidance:e.showVideoGuidance,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType},getChildAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===u?void 0:u.call(s,e.id,e.name)})}function zt(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}function Zt(e){var t,n,r,i,l,c,s,u,d,m,p,g=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name);return e.widgetTypeId===ut.z.ContinueWatching&&(null===(r=e.appLinks)||void 0===r?void 0:r.watchHistory)&&(g=null===(l=null===(i=e.appLinks)||void 0===i?void 0:i.watchHistory)||void 0===l?void 0:l.call(i)),a.createElement(o.k,{name:!(null===(c=e.metadata)||void 0===c?void 0:c.hideWidgetHeading)&&e.name,description:!(null===(s=e.metadata)||void 0===s?void 0:s.hideWidgetDescription)&&e.description,type:f.l9.Row,contents:v.z.Videos,collection:e.content,childComponent:Bt,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(u=e.appLinks)||void 0===u?void 0:u.subText,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,hideTitle:null===(d=e.metadata)||void 0===d?void 0:d.hideObjectTitle,hideSeries:null===(m=e.metadata)||void 0===m?void 0:m.hideObjectSeries,showVideoGuidance:e.showVideoGuidance,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,yearGroups:e.yearGroups,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType},getChildAppLink:null===(p=e.appLinks)||void 0===p?void 0:p.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:g})}const _t={largeSeriesItem:"HZ00X",smallSeriesItem:"PQ2sv",partialLoading:"hMoHO"};function Gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var qt=n(34004);function Xt(e){var t=e.data,n=Object.assign(Object.assign({},e.analyticsData),{id:null==t?void 0:t.id,name:null==t?void 0:t.name}),r=Object.assign(Object.assign({},e.analyticsOptions),{actionType:l.Vw.Click,entity:l.py.Series,descriptor:l._S.TallPoster});return a.createElement(c.F,{key:t.id,appLink:e.getAppLink(t),className:"position-relative px-1 flex-shrink-0 ".concat(e.isSmall?_t.smallSeriesItem:_t.largeSeriesItem," "),analyticsData:n,analyticsOptions:r},a.createElement(qt.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall}))}function Kt(e){return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Series,collection:e.content,childComponent:Xt,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.series)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}const Qt={slidingSubjectSmall:"fgIje",slidingSubjectLarge:"CJwKL",heading:"P16Yg",posterContainer:"VtrLt",partialLoading:"IgCcl",labelContainer:"ujwlj"};var $t=function(e){return a.createElement("div",{className:"".concat(e.type===f.l9.Row?Qt.slidingSubjectSmall:Qt.slidingSubjectLarge," px-1")},a.createElement("div",{className:"".concat(Qt.partialLoading," partial-loading-background rounded-3")}))};function Jt(e){for(var t,n,r=(t=e.type,(n=(0,y.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===f.l9.LargeRow?5:6),i=[],o=0;o<r;o++)i.push(a.createElement($t,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(h.l,null),a.createElement("div",{className:"row g-0 mx-n1"},i))}var en=n(75163),tn=n(5465);function nn(e){var t,n=e.data,r=e.preloadImage,i=Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Classification,actionType:l.Vw.Click,descriptor:l._S.TallPoster});return a.createElement("div",{className:(t=Qt.posterContainer,e.context.type===f.l9.Row?t+=" ".concat(Qt.slidingSubjectSmall):t+=" ".concat(Qt.slidingSubjectLarge),t)},a.createElement(en.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:u.__.TallPosters,preload:r,imageOptions:{size:u.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:i},a.createElement(tn.oy,{type:tn.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat(Qt.heading)},n.name)))}function an(e){return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.LargeRow,contents:v.z.Subjects,collection:e.content,childComponent:nn,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}function rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var on="explore-all-topics";function ln(e){var t,n=function(e){var t,n,a,r,i;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===f.OL.ExploreAllTopics?on:"",name:null===(r=e.metadata)||void 0===r?void 0:r.text,tallPoster:{url:(null===(i=e.metadata)||void 0===i?void 0:i.imageId)?m.j.getUrlById(e.imageCdnUrl,u.__.TallPosters,e.metadata.imageId,u.h2.Medium):""}}}(e),r=ge.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(o.k,{name:e.name,appLink:r,description:e.description,type:f.l9.Row,contents:v.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return rn(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return rn(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)?rn(e,t):void 0}}(t)||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.")}())):e.content,childComponent:nn,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,r,i;return t.id?t.id===on?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n,e.presentation.id):null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t):null},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function cn(e){var t;return a.createElement("div",null,a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.SmallSeries,collection:e.content,childComponent:Xt,extraChildComponentProps:{audiences:e.audiences,isSmall:!0},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function sn(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function un(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(sn,null),a.createElement(sn,null))}var dn=n(3626);function mn(e){var t,n,r,i,o=e.content[0];return a.createElement(a.Fragment,null,a.createElement(Z.B,{name:e.name,description:e.description}),a.createElement(dn.J,{video:o,presentationAudiences:e.audiences,videoAppLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,o),subTextAppLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.subText)||void 0===i?void 0:i.call(r,o),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,imageCdnUrl:e.imageCdnUrl,hideInteractiveBadge:!0,showVideoGuidance:e.showVideoGuidance,yearGroups:e.yearGroups,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType}))}function pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var vn=n(2284);const fn="OZATG",gn="hcAU2",hn="Tbieu",yn="mGGrd",bn="VtzxT",En="jrY7R",kn="yAgR6",Ln="RjJ7O",wn="TJ7Sl",xn="yzmvY",On="hGi43";function Cn(e){var t,n,r,i=m.j.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:u.h2.Small}),o=m.j.createUrl(null===(n=e.data.thumbnail)||void 0===n?void 0:n.url,{size:u.h2.Medium}),l={backgroundColor:null===(r=e.data.metadata)||void 0===r?void 0:r.backgroundColor};return o&&(l.backgroundImage="url('".concat(o,"')")),a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat(gn," ").concat(e.isLarge?hn:yn),style:l},a.createElement("div",{className:"".concat(bn)},a.createElement("div",{className:"".concat(En)},a.createElement("h3",{className:"".concat(kn," h4 ").concat(e.isLarge?"text-nowrap text-truncate":"text-wrap clamp-3")},e.data.name),e.isLarge&&a.createElement("div",{className:"text-start ".concat(Ln)},a.createElement("p",{className:xn},e.data.description))),e.isLarge&&a.createElement("div",{className:On},a.createElement("div",{className:"".concat(!e.appLink&&"cursor-default"," btn btn-outline-dark")},x.T.getPhrase("shared.subjectThumbnailWidgetItem","buttonLabel")))),!o&&!!i&&a.createElement("div",{className:"".concat(wn),style:{backgroundImage:"url('".concat(i,"')")}}))}var Sn=a.memo((function(e){var t,n,r,i,o=(null===(t=e.data)||void 0===t?void 0:t.status)===vn.W.ComingSoon,s=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(r=e.data)||void 0===r?void 0:r.name,presentationId:null===(i=e.data)||void 0===i?void 0:i.presentationId,comingSoon:!!o}),u=Object.assign(Object.assign({location:l.LZ.ClassificationListItem},e.analyticsOptions),{actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Thumbnail});return e.appLink?a.createElement(c.F,{className:fn,appLink:e.appLink,analyticsData:s,analyticsOptions:u},a.createElement(Cn,Object.assign({},e))):a.createElement(Cn,Object.assign({},e))}));function Nn(e){return a.createElement(a.Fragment,null,a.createElement(Z.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mx-n1 mb-n2"},e.content.map((function(t){var n,r;return a.createElement(k.Z,{key:t.id,sm:12,md:6,className:"px-1 pb-2"},a.createElement(Sn,{data:t,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===r?void 0:r.call(n,t),isLarge:!0,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))}))))}const Tn="HwejH";var Dn=function(){return a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"15rem"}}))},jn=n(22843),In=n(47325),An=n(90927),Mn=n(78479);const Fn={guidance:"uCRU1"};function Pn(e){var t,n,r,i,o,c=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video),s=Rt.M.isVideo(e.video)&&(null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.subText)||void 0===i?void 0:i.call(r,e.video)),d=a.useRef(null),m={actionType:l.Vw.Click,entity:Rt.M.getAnalyticsEntity(e.video),location:l.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:l._S.Thumbnail},p=(0,Wt.n)(null===(o=e.video.subjectPresentationAudiences)||void 0===o?void 0:o.data,e.audiences);return a.createElement("div",{className:"col-md-6"},a.createElement("div",{ref:d},a.createElement(Ue.u,{analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),m),video:e.video,appLink:c,imageOptions:{size:u.h2.Medium},textPosition:Vt.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:p,hideRating:!!p,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none"})),a.createElement(jn.h,{video:e.video,appLink:c,subTextAppLink:s,yearGroups:e.yearGroups,subTextType:e.subTextType}),!!e.showVideoGuidance&&a.createElement("div",{className:"d-flex justify-content-start align-items-center pt-1 ".concat(Fn.guidance)},a.createElement(An.N,{video:e.video,containerRef:d,widgetTemplate:Mn.f.ThumbnailFixedListMediaLarge,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest}),a.createElement(In.I,{video:e.video,containerRef:d,widgetTemplate:Mn.f.ThumbnailFixedListMediaLarge,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl})))}function Hn(e){return a.createElement(a.Fragment,null,a.createElement(Z.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},e.content.map((function(t){return a.createElement(Pn,Object.assign({key:t.id,video:t},e))}))))}function Un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Vn(e){return a.createElement(a.Fragment,null,a.createElement(Z.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mx-n1 mb-n2"},e.content.map((function(t){var n,r;return a.createElement(k.Z,{key:t.id,lg:4,md:6,sm:6,xs:12,className:"px-1 pb-2"},a.createElement(Sn,{data:t,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===r?void 0:r.call(n,t),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))}))))}function Wn(e){var t,n,r,i,o,s,d=Qe.m.first(e.content),p=m.j.createUrl(null===(t=d.thumbnail)||void 0===t?void 0:t.url,{size:u.h2.Medium}),v=null===(n=d.metadata)||void 0===n?void 0:n.backgroundColor,f={backgroundColor:v};p&&(f.backgroundImage="url('".concat(p,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:d.id,name:d.name,presentationId:d.presentationId}),h=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.ClassificationListItem,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Thumbnail});return p&&v?a.createElement(a.Fragment,null,a.createElement(c.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,d),className:"text-decoration-none",analyticsData:g,analyticsOptions:h},a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("EkoYD"),style:f},a.createElement("div",{className:"".concat("SSmWX")},a.createElement("div",{className:"".concat("vEXH2")},a.createElement("h2",{className:"".concat("bMbF2"," text-decoration-none h4 text-nowrap text-truncate")},e.name),a.createElement("div",{className:"text-start ".concat("gDFxm")},a.createElement("p",{className:"clamp-3"},d.description))),a.createElement("div",null,a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},(null===(s=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.text)||x.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):a.createElement(et,Object.assign({},e))}var Rn=n(38647),Bn=n(11882);function Yn(e){var t,n,r,i,o,s,d,m,p,v=e.content[0],f=a.useRef(),g=(0,Wt.n)(null===(t=v.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),h=Rt.M.hasSeries(v)||ge.d.isCompanyWidget(e.widgetTypeId),y=ae.k.mergeOptions(e.analyticsOptions,{actionType:l.Vw.Click,entity:Rt.M.getAnalyticsEntity(v),location:l.LZ.ThumbnailHeroMediaWidget}),b=Rt.M.getCanBeConsumed(v).canNavigate;return v?a.createElement("div",null,a.createElement(Z.B,{name:e.name,description:e.description}),a.createElement("div",{ref:f},a.createElement(Ue.u,{video:v,imageOptions:{size:u.h2.Large},type:"static",textPosition:Vt.z.Independent,analyticsOptions:y,audience:g,hideRating:!!g,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===r?void 0:r.call(n,v),subTextAppLink:null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.subText)||void 0===o?void 0:o.call(i,v),setFavourite:e.setFavourite,canFavourite:e.canFavourite,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none"})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,Rt.M.isVideo(v)&&a.createElement(Bn.$,{type:ge.d.isCompanyWidget(e.widgetTypeId)?"productionCompany":e.subTextType,video:v,appLink:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.subText)||void 0===d?void 0:d.call(s,v),analyticsOptions:y,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:h?"":"mt-2"},a.createElement(c.F,{appLink:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.videoType)||void 0===p?void 0:p.call(m,v),analyticsData:{id:v.id,name:v.name},analyticsOptions:Object.assign(Object.assign({},y),{descriptor:l._S.Title}),className:"d-inline-block ".concat(b?"":"cursor-default text-decoration-none disabled"),disabled:!b},a.createElement("h3",{className:"h4 mb-0"},v.name,a.createElement(Rn.m,{video:v,yearGroups:e.yearGroups}))))),!!e.showVideoGuidance&&a.createElement("div",{className:"d-flex mt-2 ".concat("EQXKD")},a.createElement(An.N,{containerRef:f,widgetTemplate:Mn.f.ThumbnailHeroMedia,video:v,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest}),a.createElement(In.I,{containerRef:f,widgetTemplate:Mn.f.ThumbnailHeroMedia,video:v,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl})))):a.createElement(a.Fragment,null)}function zn(e){var t,n,r;return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.LargeRow,contents:v.z.Videos,collection:e.content,childComponent:Re,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===r?void 0:r.call(n,e.id,e.name)})}function Zn(e){var t,n,r;return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Videos,collection:e.content,childComponent:Re,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===r?void 0:r.call(n,e.id,e.name)})}var _n=n(74696),Gn=n(4632);function qn(e){return a.createElement(a.Fragment,null,a.createElement(Z.B,{name:!e.metadata.hideWidgetHeading&&e.name,description:!e.metadata.hideWidgetDescription&&e.description}),a.createElement(Gn.E4,{videos:e.content,getVideoAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,e.widgetTypeId)},getSubTextAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.company)||void 0===a?void 0:a.call(n,t)},subTextType:"productionCompany",getPreviewQuestionsAppLink:function(){return null}}))}var Xn,Kn=n(12754);function Qn(e){return Qn="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},Qn(e)}function $n(e,t,n){var a;return a=function(e,t){if("object"!=Qn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=Qn(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==Qn(a)?a:String(a))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jn=($n($n($n($n($n($n($n($n($n($n(Xn={},Mn.f.ThumbnailHeroMedia,{getComponent:function(){return Yn},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"KjaI4"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(un,null))))},icon:I.vn.WidgetTemplateThumbnailHeroMedia,predicate:function(e){return[f.ku.Classification,f.ku.Discover,f.ku.Company].includes(e)},className:""}),Mn.f.PosterSlidingListLarge,{getComponent:function(){return Kt},partialLoading:function(){var e,t,n=(e=(0,y.k)()).xs?2:e.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement("div",{className:"row mb-n2"},(t=Array(n),function(e){if(Array.isArray(e))return Gt(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return Gt(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)?Gt(e,t):void 0}}(t)||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.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col-6 col-sm-4 col-md-3 col-lg-3 pb-2"},a.createElement("div",{className:"".concat(_t.partialLoading," partial-loading-background rounded-3")}))}))))},icon:I.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company].includes(e)},className:""}),Mn.f.PosterSlidingListMedium,{getComponent:function(){return an},partialLoading:function(){return a.createElement(Jt,{type:f.l9.LargeRow})},icon:I.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company].includes(e)},className:""}),Mn.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case ut.z.CuratedClassifications:return ln;case ut.z.CuratedSeries:return cn;default:return ln}},partialLoading:function(){return a.createElement(Jt,{type:f.l9.Row})},icon:I.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e,t,n){if(t===Kn.x.StreamableLearning)return!1;switch(n){case ut.z.CuratedClassifications:return[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv].includes(e);case ut.z.CuratedSeries:return[f.ku.MoviesAndTv,f.ku.Company].includes(e);default:return!1}},className:""}),Mn.f.ThumbnailFeaturedMedia,{getComponent:function(){return mn},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(E.Z,null,a.createElement(k.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(k.Z,{xs:12,md:6},a.createElement("div",{className:"J5CAD"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(un,null))))))},icon:I.vn.WidgetTemplateThumbnailFeaturedMedia,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company].includes(e)},className:""}),Mn.f.CoverFixedPillListLarge,{getComponent:function(){return b.K},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement(h.l,null),a.createElement(E.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(L.Ml,null)))}))))},icon:I.vn.WidgetTemplateCoverFixedPillListLarge,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover].includes(e)},className:""}),Mn.f.CoverFixedPillListXSmall,{getComponent:function(){return Y},partialLoading:function(){return a.createElement("div",{className:"".concat(B.background," px-4 py-3 rounded-3 mb-3")},a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.35rem",width:"8rem"}}),a.createElement(E.Z,{className:"mb-2 ".concat(B.row)},Array(8).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"partial-loading-background me-2 rounded",style:{width:"2rem",height:"2rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"5rem",height:"1.3125rem"}})))}))))},icon:I.vn.WidgetTemplateCoverFixedPillListXSmall,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover].includes(e)},className:""}),Mn.f.CoverSlidingPillListSmall,{getComponent:function(){return J},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement(h.l,null),a.createElement(ee.QL,{partialLoadingComponent:L.Qh}))},icon:I.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e,t){return t===Kn.x.StreamableLearning?[f.ku.Discover,f.ku.Company].includes(e):[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company].includes(e)},className:""}),Mn.f.CoverFixedTileList,{getComponent:function(){return G},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement(z.YA,{itemClassName:"columns-of-five"}))},icon:I.vn.WidgetTemplateCoverFixedTileList,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company].includes(e)},className:""}),Mn.f.FeaturedThumbnailSlidingList,{getComponent:function(){return ze},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"banner rounded-3 position-relative partial-loading-background ".concat(Be," ").concat(Ye," mb-1 ")}),a.createElement(xe.j7,{hideDescription:!0,hideHeading:!0}))},icon:I.vn.WidgetTemplateFeaturedThumbnailSlidingList,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover].includes(e)},className:""}),$n($n($n($n($n($n($n($n($n($n(Xn,Mn.f.HeroBanner,{getComponent:function(){return et},partialLoading:at,icon:I.vn.WidgetTemplateHeroBanner,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover].includes(e)},className:""}),Mn.f.OnboardingSteps,{getComponent:function(){return Ht},partialLoading:at,icon:I.vn.WidgetTemplateOnboardingSteps,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Discover].includes(e)},className:""}),Mn.f.HeroBannerSmall,{getComponent:function(){return pt},partialLoading:vt,icon:I.vn.WidgetTemplateHeroBannerSmall,predicate:function(e,t){return t===Kn.x.StreamableLearning?[f.ku.Discover,f.ku.Company].includes(e):[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv].includes(e)},className:""}),Mn.f.HeroThumbnailSmall,{getComponent:function(){return ft},partialLoading:function(){return a.createElement(vt,null)},icon:I.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company,f.ku.MoviesAndTv].includes(e)},className:""}),Mn.f.ThumbnailFixedListXLarge,{getComponent:function(){return Wn},partialLoading:function(){return a.createElement(at,null)},icon:I.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company,f.ku.MoviesAndTv].includes(e)},className:""}),Mn.f.ThumbnailFixedListLarge,{getComponent:function(){return Nn},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return pn(e)}(e=Array(2))||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 pn(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)?pn(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.")}();return a.createElement("div",null,a.createElement(h.l,null),a.createElement(E.Z,{className:"mx-n1"},t.map((function(e,t){return a.createElement(k.Z,{key:t,sm:12,md:6,className:"p-1"},a.createElement("div",{className:"".concat("pRXSM"," partial-loading-background rounded-3")}))}))))},icon:I.vn.WidgetTemplateThumbnailFixedListLarge,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company,f.ku.MoviesAndTv].includes(e)},className:""}),Mn.f.ThumbnailFixedListSmall,{getComponent:function(){return Vn},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return Un(e)}(e=Array(3))||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 Un(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)?Un(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.")}();return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement(E.Z,{className:"mx-n1 "},t.map((function(e,t){return a.createElement(k.Z,{key:t,lg:4,md:6,sm:6,xs:12,className:"p-1"},a.createElement("div",{className:"".concat("SNBRD"," partial-loading-background rounded-3")}))}))))},icon:I.vn.WidgetTemplateThumbnailFixedListSmall,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company,f.ku.MoviesAndTv].includes(e)},className:""}),Mn.f.EditableCoverFixedPillListSmall,{getComponent:function(){return Le},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(E.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(L.Qh,null)))}))))},icon:I.vn.WidgetTemplateEditableCoverFixedPillListSmall,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Discover].includes(e)},className:""}),Mn.f.Heading,{getComponent:function(){return Ke},partialLoading:function(){return a.createElement("div",{className:"curated-widget-header"},a.createElement("div",{className:"partial-loading-background curated-widget-heading",style:{height:"2.099625rem",width:"16.5rem",maxWidth:"80%"}}," "),a.createElement("div",{className:"partial-loading-background description curated-widget-description",style:{width:"21rem",height:"1.3125rem",maxWidth:"90%"}}," "))},icon:I.vn.WidgetTemplateHeading,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover].includes(e)},className:"heading-widget-template"}),Mn.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return Hn},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Tn," partial-loading-background rounded-3")}),a.createElement(Dn,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(un,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Tn," partial-loading-background rounded-3")}),a.createElement(Dn,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(un,null)))))},icon:I.vn.WidgetTemplateThumbnailFixedListMediaLarge,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company].includes(e)},className:""}),$n($n($n($n($n($n($n($n(Xn,Mn.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return Yt},partialLoading:function(){return a.createElement(xe.j7,{size:"lg",childComponent:Ut})},icon:I.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company,f.ku.MoviesAndTv].includes(e)},className:""}),Mn.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Zt},partialLoading:function(){return a.createElement(xe.j7,{size:"sm",childComponent:zt})},icon:I.vn.WidgetTemplatePopoutThumbnailSlidingListSmall,predicate:function(e,t){return t===Kn.x.StreamableLearning?[f.ku.Discover,f.ku.Company].includes(e):[f.ku.MoviesAndTv,f.ku.Discover,f.ku.Company].includes(e)},className:""}),Mn.f.FilterSlidingPillListSmall,{getComponent:function(){return qe},partialLoading:function(){var e,t=(0,y.k)();return a.createElement(a.Fragment,null,a.createElement(h.l,{hideDescription:!0}),a.createElement("div",{className:"row mx-n1"},(e=Array(t.xs||t.sm?3:t.md||t.lg?4:5),function(e){if(Array.isArray(e))return Xe(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 Xe(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)?Xe(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.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col px-1"},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3 pb-5"}))}))))},icon:I.vn.WidgetTemplateFilterSlidingPillListSmall,predicate:function(e,t){return t!==Kn.x.StreamableLearning&&[f.ku.MoviesAndTv].includes(e)},className:""}),Mn.f.CircleLogoSlidingList,{getComponent:function(){return g},partialLoading:function(){var e=8,t=(0,y.k)();return(t.sm||t.xs)&&(e=4),t.md&&(e=6),a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement("div",{className:"d-flex flex-no-wrap"},Array(e).fill(null).map((function(e,t){return a.createElement("div",{key:t,className:"uVZyX"},a.createElement("div",{className:"".concat("KbaRB"," h-100 d-inline-block partial-loading-background rounded-circle")}))}))))},icon:I.vn.WidgetTemplateCircleLogoSlidingList,predicate:function(e,t){return t===Kn.x.StreamableLearning?[f.ku.Discover,f.ku.Company].includes(e):[f.ku.MoviesAndTv].includes(e)},className:""}),Mn.f.EventIconSlidingList,{getComponent:function(){return Pe},partialLoading:function(){var e,t=(e=(0,y.k)()).xs?2:e.sm?3:e.md?4:e.lg?5:e.xl||e.xxl?6:void 0;return a.createElement(a.Fragment,null,a.createElement(h.l,{hideDescription:!0}),a.createElement("div",{className:"row g-0 mx-n1"},Array(t).fill(null).map((function(e,t){return a.createElement("div",{className:"col px-1",key:t},a.createElement("div",{className:"partial-loading-background rounded-3",style:{paddingBottom:"100%"}}))}))))},icon:I.vn.WidgetTemplateEventIconSlidingList,predicate:function(e,t){return Kn.x.StreamableLearning,[f.ku.Discover].includes(e)},className:""}),Mn.f.ThumbnailVerticalList,{getComponent:function(){return qn},partialLoading:function(){return a.createElement(_n.S,{numVideos:3})},icon:I.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e,t){return t===Kn.x.StreamableLearning&&[f.ku.Company,f.ku.Classification].includes(e)},className:""}),Mn.f.ThumbnailSlidingListSmall,{getComponent:function(){return Zn},partialLoading:xe.j7,icon:I.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),Mn.f.ThumbnailSlidingListLarge,{getComponent:function(){return zn},partialLoading:function(){return a.createElement(xe.j7,{size:"lg"})},icon:I.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),ea=n(65294);const ta={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function na(e){var t,n,o,l,c=a.createRef(),s=null===(t=e.lazyLoad)||void 0===t||t,u=(0,ea.Y)({prevent:!s}),d=u.ref,m=u.inView,p=r.q.isFunction(e.getContentRequest),v=i.a.useBasicFetch(!(!m||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),f=ge.d.useGetContent(e.content||(null===(n=v.data)||void 0===n?void 0:n.content),null===(o=v.data)||void 0===o?void 0:o.preferences),g=f.content,h=f.unfilteredContent,b=(0,y.k)(),E=function(e,t){return!(ge.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,g),k=!ge.d.canDisplayOnScreenSize(b,e.widgetTypeId,e.templateId);a.useEffect((function(){var t;p&&!v.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,E||k)}),[v.hasCompleted,E,k,p,e.setIsEmpty]),a.useEffect((function(){e.isScrollToTargetWidget&&c.current&&c.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,c.current]);var L=e.appLinks?Object.assign({},e.appLinks):null;(null==L?void 0:L.videoType)&&(L.videoType=function(t){var n;return null===(n=e.appLinks)||void 0===n?void 0:n.videoType(t,e.id)});var w=Object.assign(Object.assign({},e.analyticsData),{widgetId:e.widgetTypeId,templateId:e.templateId,dashboardTarget:null==e?void 0:e.dashboardTarget,widgetIndex:null==e?void 0:e.widgetIndex,widgetName:e.name}),x=p&&!v.hasCompleted||e.isEditing&&E,O=Jn[e.templateId].partialLoading,C=Jn[e.templateId].getComponent(e.widgetTypeId),S=Jn[e.templateId].className;return x||!E&&!k?a.createElement("div",{id:e.widgetTypeId===ut.z.ContinueWatching?"continue-watching-videos-widget":null,ref:c,className:"curated-widget ".concat(S," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(ta.widgetHighlight," py-2 px-3 rounded-3"):""},ge.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(ta.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),x?a.createElement("div",{ref:d},a.createElement(O,null)):a.createElement(C,Object.assign({},e,{appLinks:L,content:g,unfilteredContent:h,preferences:null===(l=v.data)||void 0===l?void 0:l.preferences,analyticsData:w,showHighlight:e.isScrollToTargetWidget,isPreviewing:e.isPreviewing})))):a.createElement(a.Fragment,null)}},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(32735),r=n(68050),i=n(69111),o=n(88513),l=n(91028);function c(e){return a.createElement(a.Fragment,null,a.createElement(o.B,{name:e.name,description:e.description}),a.createElement(r.Z,{className:"mb-n2"},e.content.map((function(t){return a.createElement(i.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(l.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,isLarge:!0}))}))))}},65163:(e,t,n)=>{n.d(t,{QL:()=>a.Q});var a=n(16450);n(14244)},73814:(e,t,n)=>{n.d(t,{w:()=>r});var a=n(92802),r={getCustomFormControlClassName:function(e,t,n,r,i,o){var l="";return l=function(e,t){var n="";return n="select"===e?"form-select":"form-control","sm"===t&&(n+=" ".concat(n,"-sm")),"lg"===t&&(n+=" ".concat(n,"-lg")),n}(o,r),(0,a.u9)(t,n)&&(0,a.u9)(e,n)&&(l+=" is-invalid"),i&&(l+=" ".concat(i)),l}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[4436],{85048:(e,t,n)=>{n.r(t),n.d(t,{EditClipTimepointsView:()=>Ue});var r=n(32735),i=n(23481),o=n(81886),a=n(20354),u=n(28400),l=n(83345),c=n(95047),s=n(93264);const f={arrowContainer:"lFyGP",downArrow:"kuLky",upArrow:"_zBG5",inputContainer:"h0Hdv",focus:"IJSFr"};function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(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)?d(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 d(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 y=38,h=40,m=3600;function v(e){var t=p(r.useState("00"),2),n=t[0],i=t[1],o=p(r.useState("00"),2),a=o[0],u=o[1],l=p(r.useState("00"),2),d=l[0],v=l[1],b=p(r.useState(!1),2),g=b[0],T=b[1],w=r.useRef(null),S=r.useRef(null),O=e.duration&&e.duration>=m;function E(e){e.target.select(),T(!0)}function P(e,t,n){var r=e.target.value.replace(/\D/g,"").slice(0,2);t(r),2===r.length&&(null==n?void 0:n.current)&&requestAnimationFrame((function(){return n.current.focus()}))}function C(){e.setTime(e.value+1)}function j(){e.setTime(e.value-1)}function _(t,r){var i;e.allowKeyboardInput&&((i=c.k.convertDurationToSeconds(n,a,d))<0||e.maxValue&&i>e.maxValue||e.setTime(i),r(t.target.value.padStart(2,"0")),T(!1))}function k(e){e.keyCode===y&&C(),e.keyCode===h&&j()}return r.useEffect((function(){var t;t=s.T.ToDisplayDuration(1e3*e.value,!0).split(":"),i(String(t[0]).padStart(2,"0")),u(t[1]),v(t[2])}),[e.value]),r.createElement("div",{className:"".concat(f.inputContainer," ").concat(g?f.focus:""," position-relative bg-white d-flex align-items-center p-2 rounded-pill font-size-md")},r.createElement("div",{className:"".concat(O?"":"d-none")},r.createElement("input",{type:"text",className:"border-0 outline-none",value:n,maxLength:2,placeholder:"HH",onChange:function(e){return P(e,i,w)},onFocus:E,onBlur:function(e){return _(e,i)},onKeyDown:k,disabled:e.disabled}),r.createElement("span",null,":")),r.createElement("div",null,r.createElement("input",{ref:w,type:"text",className:"border-0 outline-none",value:a,maxLength:2,placeholder:"MM",onChange:function(e){return P(e,u,S)},onFocus:E,onBlur:function(e){return _(e,u)},onKeyDown:k,disabled:e.disabled}),r.createElement("span",null,":")),r.createElement("input",{ref:S,type:"text",className:"border-0 outline-none",value:d,maxLength:2,placeholder:"SS",onChange:function(e){return v(e.target.value)},onFocus:E,onBlur:function(e){return _(e,v)},onKeyDown:k,disabled:e.disabled}),!e.hideButtons&&r.createElement("div",null,r.createElement("div",{className:f.arrowContainer,onClick:C},r.createElement("div",{className:f.upArrow})),r.createElement("div",{className:f.arrowContainer,onClick:j},r.createElement("div",{className:f.downArrow}))))}v.defaultProps={allowKeyboardInput:!0,size:"lg"};var b="shared.clipTimeForm",g=i.T.encloseNamespace(b);function T(e){if(isNaN(e.startTime)||isNaN(e.endTime))return r.createElement(r.Fragment,null);var t=Math.floor(e.endTime)-Math.floor(e.startTime);return r.createElement("div",{className:"px-3"},r.createElement("form",{className:"d-flex align-items-center justify-content-center pb-4"},r.createElement("div",null,r.createElement(v,{value:e.startTime,setTime:e.setStartTime,duration:e.duration})),r.createElement("span",{className:"px-2"},"-"),r.createElement("div",{className:"me-2"},r.createElement(v,{value:e.endTime,setTime:e.setEndTime,duration:e.duration})),r.createElement("span",null,r.createElement("strong",null,r.createElement(l.x,{namespace:b,phrase:"duration"}))," ",s.T.ToDisplayDuration(1e3*t))),r.createElement("div",{className:"d-flex justify-content-end"},r.createElement("button",{className:"btn btn-link",onClick:e.onCancel},g("cancel")),r.createElement("button",{className:"btn btn-dark",onClick:e.onSubmit},g("next"))))}var w=n(60051),S=n(43012),O=n(39151),E=n(47812),P=n(1575),C=n(89476),j=n(79612),_=n(89961),k=n(36527),D=n(93861);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 R(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,A(r.key),r)}}function A(e){var t=function(e,t){if("object"!=B(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=B(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==B(t)?t:String(t)}function M(e,t,n){return t=I(t),function(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)}(e,N()?Reflect.construct(t,n||[],I(e).constructor):t.apply(e,n))}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(N=function(){return!!e})()}function x(){return x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=I(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},x.apply(this,arguments)}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}var F=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),M(this,t,arguments)}var n,r;return 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&&L(e,t)}(t,e),n=t,(r=[{key:"buildCSSClass",value:function(){return"cv-clip-timepoint-handle ".concat(x(I(t.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(e,n,r){return x(I(t.prototype),"createEl",this).call(this,e,Object.assign(Object.assign({},n),{className:this.buildCSSClass(),innerHTML:'<svg viewBox="0 0 5 14" pointer-events="none"><g id="Clips" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Clip-2" transform="translate(-835.000000, -632.000000)" fill="#FFFFFF"><g id="Video-Copy" transform="translate(275.000000, 96.000000)"><g id="Handles" transform="translate(560.000000, 536.000000)"><circle id="Oval" cx="1" cy="1" r="1"></circle><circle id="Oval-Copy-2" cx="1" cy="5" r="1"></circle><circle id="Oval-Copy-4" cx="1" cy="9" r="1"></circle><circle id="Oval-Copy-8" cx="1" cy="13" r="1"></circle><circle id="Oval-Copy" cx="4" cy="1" r="1"></circle><circle id="Oval-Copy-3" cx="4" cy="5" r="1"></circle><circle id="Oval-Copy-5" cx="4" cy="9" r="1"></circle><circle id="Oval-Copy-9" cx="4" cy="13" r="1"></circle></g></g></g></g></svg>'}),r)}},{key:"isEventTarget",value:function(e){return this.el().contains(e.target)}}])&&R(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(D.Z.getComponent("Component"));function H(e){return H="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},H(e)}function Z(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,U(r.key),r)}}function U(e){var t=function(e,t){if("object"!=H(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==H(t)?t:String(t)}function K(e,t,n){return t=G(t),function(e,t){if(t&&("object"===H(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)}(e,V()?Reflect.construct(t,n||[],G(e).constructor):t.apply(e,n))}function V(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(V=function(){return!!e})()}function z(){return z="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=G(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},z.apply(this,arguments)}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}function W(e,t){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},W(e,t)}var $=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=K(this,t,[e,n])).dragStartActive=!1,r.dragEndActive=!1,r.dragSliderActive=!1,r.dragSliderCurrentPosition=null,r.minDuration=Math.min(e.duration(),r.options_.minDuration),r.setStartTime(n.startTime,!1),r.setEndTime(n.endTime,!1),r.startHandle=new F(r.player(),n),r.startHandle.addClass("cv-clip-start-handle"),r.addChild(r.startHandle),r.endHandle=new F(r.player(),n),r.endHandle.addClass("cv-clip-end-handle"),r.addChild(r.endHandle),r.on(r.player(),"update:clip:start:time",(function(e){var t=e.time;return r.setStartTime(t)})),r.on(r.player(),"update:clip:end:time",(function(e){var t=e.time;return r.setEndTime(t)})),r.bindListeners(),r.update(),r}var n,r;return 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&&W(e,t)}(t,e),n=t,r=[{key:"createEl",value:function(){return z(G(t.prototype),"createEl",this).call(this,"div",{className:"cv-clip-timepoint-selector"},{})}},{key:"update",value:function(){var e=this;this.options_.onChangeStartTime(this.startTime),this.options_.onChangeEndTime(this.endTime),this.requestAnimationFrame((function(){e.setStartOffset(),e.setWidth()}))}},{key:"setStartTime",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!isNaN(e)){var n=this.hasStartTime()&&this.hasEndTime()&&this.endTime-this.startTime,r=this.player().duration()-this.minDuration;if(e>r&&(e=r),e<0&&(e=0),this.startTime=e,this.endTime&&this.endTime-this.startTime<this.minDuration){var i="number"==typeof n?this.startTime+n:this.startTime+this.minDuration;this.setEndTime(i)}this.player().currentTime(this.startTime),t&&this.update()}}},{key:"setEndTime",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!isNaN(e)){var n=this.hasStartTime()&&this.hasEndTime()&&this.endTime-this.startTime,r=this.minDuration;if(e<r&&(e=r),e>this.player().duration()&&(e=this.player().duration()),this.endTime=e,this.startTime&&this.endTime-this.startTime<this.minDuration){var i="number"==typeof n?this.endTime-n:this.endTime-this.minDuration;this.setStartTime(i)}t&&this.update()}}},{key:"bindListeners",value:function(){var e=this;this.onTimeupdate=this.onTimeupdate.bind(this),this.player().on("timeupdate",this.onTimeupdate),this.on("mousedown",this.dragStart),this.on("touchstart",this.dragStart),this.player().on("dispose",(function(){e.player().off("timeupdate",e.onTimeupdate),e.off("mousedown",e.dragStart),e.off("touchstart",e.dragStart)}))}},{key:"hasStartTime",value:function(){return"number"==typeof this.startTime}},{key:"hasEndTime",value:function(){return"number"==typeof this.endTime}},{key:"onTimeupdate",value:function(){var e=this.player().currentTime();e>this.endTime&&e<this.endTime+.5&&this.player().pause()}},{key:"dragStart",value:function(e){this.startHandle.isEventTarget(e)&&(e.stopImmediatePropagation(),this.dragStartActive=!0),this.endHandle.isEventTarget(e)&&(e.stopImmediatePropagation(),this.dragEndActive=!0),e.target===this.el()&&(e.stopImmediatePropagation(),this.dragSliderActive=!0,this.dragSliderCurrentPosition=this.getPosition(e));var t=this.el().ownerDocument;this.on(t,"mousemove",this.drag),this.on(t,"mouseup",this.dragEnd),this.on(t,"touchmove",this.drag),this.on(t,"touchend",this.dragEnd),this.drag(e)}},{key:"dragEnd",value:function(){this.dragStartActive=!1,this.dragEndActive=!1,this.dragSliderActive=!1,this.dragSliderCurrentPosition=null;var e=this.el().ownerDocument;this.off(e,"mousemove",this.drag),this.off(e,"mouseup",this.dragEnd),this.off(e,"touchmove",this.drag),this.off(e,"touchend",this.dragEnd)}},{key:"drag",value:function(e){if((this.dragStartActive||this.dragEndActive||this.dragSliderActive)&&D.Z.dom.isSingleLeftClick(e)){var t=this.getPosition(e),n=t*this.player().duration();this.dragStartActive&&this.handleStartHandleDrag(n),this.dragEndActive&&this.handleEndHandleDrag(n),this.dragSliderActive&&this.handleSliderDrag(t)}}},{key:"handleStartHandleDrag",value:function(e){this.setStartTime(e)}},{key:"handleEndHandleDrag",value:function(e){this.setEndTime(e)}},{key:"handleSliderDrag",value:function(e){var t=(e-this.dragSliderCurrentPosition)*this.player().duration(),n=this.startTime+t,r=this.endTime+t;n<=0||r>=this.player().duration()||(this.dragSliderCurrentPosition=e,this.setStartTime(n),this.setEndTime(r))}},{key:"getPosition",value:function(e){return D.Z.dom.getPointerPosition(this.el_.parentNode,e).x}},{key:"setStartOffset",value:function(){this.el_.style.marginLeft="".concat(this.getPercentage(this.startTime),"%")}},{key:"setWidth",value:function(){this.el_.style.width="".concat(this.getPercentage(this.endTime-this.startTime),"%")}},{key:"getPercentage",value:function(e){return+(e/this.player().duration()*100).toFixed(4)}}],r&&Z(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(D.Z.getComponent("Component"));function q(e){return q="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},q(e)}function Q(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,J(r.key),r)}}function J(e){var t=function(e,t){if("object"!=q(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==q(t)?t:String(t)}function Y(e,t,n){return t=te(t),function(e,t){if(t&&("object"===q(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)}(e,X()?Reflect.construct(t,n||[],te(e).constructor):t.apply(e,n))}function X(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(X=function(){return!!e})()}function ee(){return ee="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=te(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},ee.apply(this,arguments)}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}function ne(e,t){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ne(e,t)}var re=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Y(this,t,[e,n])).seekBar_=n.seekBar,r.playProgressBar_=n.playProgressBar,r.bindListeners(),r.player_.one("dispose",(function(){r.unbindListeners()})),r}var n,r;return 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&&ne(e,t)}(t,e),n=t,(r=[{key:"createEl",value:function(e,n,r){return ee(te(t.prototype),"createEl",this).call(this,e,Object.assign(Object.assign({},n),{className:"cv-create-clip-progress-indicator"}),r)}},{key:"bindListeners",value:function(){this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown)}},{key:"unbindListeners",value:function(){var e=this.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp)}},{key:"handleMouseDown",value:function(e){if(D.Z.dom.isSingleLeftClick(e)){e.stopPropagation(),"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||D.Z.browser.IS_CHROME||e.preventDefault(),this.player_.scrubbing(!0),this.videoWasPlaying_=!this.player_.paused(),this.player_.pause(),D.Z.dom.blockTextSelection();var t=this.el_.ownerDocument;this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e),this.player_.addClass("cv-hide-mouse-time")}}},{key:"handleMouseMove",value:function(e){if(D.Z.dom.isSingleLeftClick(e)){var t=D.Z.dom.getPointerPosition(this.seekBar_.el_,e).x*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t),this.playProgressBar_.update()}}},{key:"handleMouseUp",value:function(e){D.Z.dom.unblockTextSelection();var t=this.el_.ownerDocument;this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),null==e||e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying_&&this.player_.play(),this.seekBar_.update(),this.player_.removeClass("cv-hide-mouse-time")}}])&&Q(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(D.Z.getComponent("Component"));function ie(e){return ie="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},ie(e)}function oe(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,ae(r.key),r)}}function ae(e){var t=function(e,t){if("object"!=ie(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ie(t)?t:String(t)}function ue(e,t,n){return t=ce(t),function(e,t){if(t&&("object"===ie(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)}(e,le()?Reflect.construct(t,n||[],ce(e).constructor):t.apply(e,n))}function le(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(le=function(){return!!e})()}function ce(e){return ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ce(e)}function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},se(e,t)}D.Z.registerComponent("CreateClipProgressIndicator",re);var fe=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=ue(this,t,[e,n])).addClass("cv-create-clip-seek-bar"),r}var n,r;return 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&&se(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(e){var t=new $(this.player(),e);this.addChild(t);var n=this.getChild("playProgressBar"),r=new re(this.player_,{seekBar:this,playProgressBar:n});n.addChild(r)}}])&&oe(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(D.Z.getComponent("SeekBar"));function pe(e){return pe="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},pe(e)}function de(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,ye(r.key),r)}}function ye(e){var t=function(e,t){if("object"!=pe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pe(t)?t:String(t)}function he(e,t,n){return t=ge(t),function(e,t){if(t&&("object"===pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ve(e)}(e,me()?Reflect.construct(t,n||[],ge(e).constructor):t.apply(e,n))}function me(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(me=function(){return!!e})()}function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function be(){return be="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ge(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},be.apply(this,arguments)}function ge(e){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ge(e)}function Te(e,t){return Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Te(e,t)}fe.prototype.options_={children:["playProgressBar"],barName:"playProgressBar"},D.Z.browser.IS_IOS||D.Z.browser.IS_ANDROID||fe.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),D.Z.registerComponent("CreateClipSeekBar",fe);var we=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=he(this,t,[e,n])).options=n,r.initCreateClipSeekBar=r.initCreateClipSeekBar.bind(ve(r)),r.player.one("loadedmetadata",(function(){return r.player.ready(r.initCreateClipSeekBar)})),r}var n,r;return 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&&Te(e,t)}(t,e),n=t,(r=[{key:"initCreateClipSeekBar",value:function(){var e,t=null===(e=this.player.controlBar.getChild("ProgressControl"))||void 0===e?void 0:e.getChild("SeekBar");if(t){var n=!isNaN(this.options.startTime)&&this.options.startTime>=0?this.options.startTime:0,r=!isNaN(this.options.endTime)&&this.options.endTime<=this.player.duration()?this.options.endTime:this.player.duration(),i=Math.min(this.options.minDuration||5,this.player.duration());t.initialize({startTime:n,endTime:r,minDuration:i,onChangeStartTime:this.options.onChangeStartTime,onChangeEndTime:this.options.onChangeEndTime})}}},{key:"dispose",value:function(){this.player.off("loadedmetadata",this.initCreateClipSeekBar),be(ge(t.prototype),"dispose",this).call(this)}}])&&de(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(D.Z.getPlugin("plugin"));function Se(e){return Se="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},Se(e)}function Oe(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,Ee(r.key),r)}}function Ee(e){var t=function(e,t){if("object"!=Se(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Se(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Se(t)?t:String(t)}function Pe(e,t,n){return t=_e(t),function(e,t){if(t&&("object"===Se(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)}(e,Ce()?Reflect.construct(t,n||[],_e(e).constructor):t.apply(e,n))}function Ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ce=function(){return!!e})()}function je(){return je="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_e(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},je.apply(this,arguments)}function _e(e){return _e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_e(e)}function ke(e,t){return ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ke(e,t)}D.Z.registerPlugin("createClipPlugin",we);var De=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Pe(this,t,[e,Object.assign(Object.assign({},n),{playbackRates:null,enableLocalCache:!1})])}var n,r;return 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&&ke(e,t)}(t,e),n=t,(r=[{key:"getPlayerClassName",value:function(){return"cv-create-clip-player"}},{key:"configurePlugins",value:function(){var e=this.options,t=e.startTime,n=e.endTime,r=e.minDuration,i=e.onChangeStartTime,o=e.onChangeEndTime;this.player.createClipPlugin({startTime:t,endTime:n,minDuration:r,onChangeStartTime:i,onChangeEndTime:o})}},{key:"getPlayerOptions",value:function(){var e=je(_e(t.prototype),"getPlayerOptions",this).call(this);return e.inactivityTimeout=0,e}},{key:"getSeekBarName",value:function(){return"CreateClipSeekBar"}},{key:"getAnalyticsPlayerType",value:function(){return"create-clip-player"}}])&&Oe(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(k.r),Be=n(63816);function Re(e){var t=e.onReady,n=e.onDispose,i=r.useRef(),o=r.useRef();return r.useEffect((function(){var r;if(null===(r=o.current)||void 0===r||r.dispose(),i)return o.current=new De(i.current,e),t&&o.current.ready((function(){t((0,Be.G)(o.current))})),n&&o.current.one("dispose",n),function(){var e;null===(e=o.current)||void 0===e||e.dispose()}}),[e.viewKey]),r.useEffect((function(){var t;null===(t=o.current)||void 0===t||t.trigger({type:"update:clip:start:time",time:e.startTime})}),[e.startTime]),r.useEffect((function(){var t;null===(t=o.current)||void 0===t||t.trigger({type:"update:clip:end:time",time:e.endTime})}),[e.endTime]),r.createElement("div",{ref:i})}var Ae=n(14070),Me=n(97291);function Ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xe(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)?xe(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 xe(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 Ie="edit-clip-timepoints",Le="shared.editClipTimepoints",Fe=i.T.encloseNamespace(Le),He=30,Ze=5;function Ue(e){var t,n,l,c=r.useRef(),s=e.startTime||0,f=Ne(r.useState(s),2),p=f[0],d=f[1],y=Ne(r.useState(s+He),2),h=y[0],m=y[1],v=a.a.useBasicFetch(O.L.config()),b=a.a.useBasicFetch(!!e.id&&S.e.clip(e.id)),g=(null===(n=null===(t=b.data)||void 0===t?void 0:t._parentVideo)||void 0===n?void 0:n.id)||e.videoId,k=a.a.useBasicFetch(!!g&&E.k.createViewKey(g,w.f.MasterObject)),D=a.a.useBasicFetch(!!g&&P.R.video(g)),B=Ne(r.useState(0),2),R=B[0],A=B[1],M=(0,C.f)();return(0,j.M)({title:e.id?null===(l=b.data)||void 0===l?void 0:l.name:Fe("pageTitle")}),r.useEffect((function(){M.lock({id:Ie,title:i.T.getPhrase(Le,"navLockTitle"),text:i.T.getPhrase(Le,"navLockBody")})}),[]),r.useEffect((function(){b.data&&(d(b.data.startTime),m(b.data.endTime))}),[b.data]),e.id||e.videoId?r.createElement("div",{className:"px-3"},!!v.data&&!!k.data&&!!D.data&&(!e.id||!!b.data)&&r.createElement("div",{className:"pb-3"},r.createElement("div",{className:"mb-3"},r.createElement(Re,{onReady:function(e){c.current=e,e.on("durationchange",(function(){return A(e.duration())}))},playerApi:new URL(v.data.playerApiUrl),viewKey:k.data.viewKey,startTime:p,endTime:h,onChangeStartTime:d,onChangeEndTime:m,minDuration:Ze,autoplay:!0})),r.createElement(T,{startTime:p,endTime:h,setStartTime:d,setEndTime:m,onSubmit:function(){var t="";p>h&&(t=Fe("startTimeGreaterThanEndTime")),h-p<Ze&&(t=Fe("tooShort",{minDuration:Ze})),t?function(e){_.M.render(r.createElement("p",null,e),{title:Fe("errorHeading"),cancelButtonProps:{variant:"link",text:Fe("close")}})}(t):(M.unlock(Ie),o.Q.C$.trigger({application:Me.O.CLIPS,action:e.id?Ae.e.Clips.EDIT_CLIP_DETAILS:Ae.e.Clips.CREATE_CLIP_DETAILS,args:e.id?[e.id]:[e.videoId],params:{startTime:p,endTime:h,isCopying:e.isCopying}}))},onCancel:function(){var e,t,n,r,i=null!==(t=null===(e=c.current)||void 0===e?void 0:e.currentTime())&&void 0!==t?t:0;o.Q.C$.trigger({application:Me.O.VIDEOS,action:Ae.e.Videos.PLAY_VIDEO,args:[null===(n=D.data)||void 0===n?void 0:n.id,u.m.slugify(null===(r=D.data)||void 0===r?void 0:r.name)],params:{t:i}})},duration:R}))):r.createElement(r.Fragment,null)}}}]);