@clickview/lite 0.29.0-rc.4 → 0.29.0-rc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/css/{3533-lite-c58f257b3b.chunk.css → 1159-lite-dd70ee1222.chunk.css} +1 -0
  3. package/dist/css/{7591-lite-d0c17f7f6d.chunk.css → 1842-lite-b91cc6e698.chunk.css} +1 -0
  4. package/dist/css/{9269-lite-d0c17f7f6d.chunk.css → 1897-lite-b91cc6e698.chunk.css} +1 -0
  5. package/dist/css/{7954-lite-90c3371bf0.chunk.css → 2797-lite-d16df8642f.chunk.css} +1 -0
  6. package/dist/css/{7891-lite-1168ac635d.chunk.css → 292-lite-7331af59e6.chunk.css} +1 -0
  7. package/dist/css/{6808-lite-e9b9b570a7.chunk.css → 3252-lite-587c14b768.chunk.css} +1 -0
  8. package/dist/css/{9483-lite-1eb745b8dd.chunk.css → 4624-lite-5d5994fe33.chunk.css} +1 -0
  9. package/dist/css/{1095-lite-1b4e38a7ec.chunk.css → 4672-lite-3803e5f075.chunk.css} +1 -0
  10. package/dist/css/{6623-lite-d6361a8711.chunk.css → 5172-lite-a23037d0b1.chunk.css} +1 -0
  11. package/dist/css/{4898-lite-9da7e255ca.chunk.css → 5475-lite-ccede50278.chunk.css} +1 -0
  12. package/dist/css/{294-lite-1b4e38a7ec.chunk.css → 5612-lite-f365f50e66.chunk.css} +2 -1
  13. package/dist/css/{9125-lite-60a19846a7.chunk.css → 5920-lite-5aadca659c.chunk.css} +1 -0
  14. package/dist/css/{3135-lite-ef5517e004.chunk.css → 5925-lite-13a09d5fe9.chunk.css} +1 -0
  15. package/dist/css/{6477-lite-066a81b2a6.chunk.css → 6218-lite-957fd965eb.chunk.css} +1 -0
  16. package/dist/css/{3853-lite-34b3d1f0d5.chunk.css → 6666-lite-09bdbe4e7c.chunk.css} +1 -0
  17. package/dist/css/{967-lite-9a78957d55.chunk.css → 7302-lite-27f9ccec54.chunk.css} +1 -0
  18. package/dist/css/{8409-lite-1582052511.chunk.css → 733-lite-95174ce669.chunk.css} +1 -0
  19. package/dist/css/{6204-lite-f5504b0b49.chunk.css → 7878-lite-f69a9f84d9.chunk.css} +1 -0
  20. package/dist/css/{2512-lite-1c1657ee6e.chunk.css → 8201-lite-8c36d2dc49.chunk.css} +1 -0
  21. package/dist/css/{9590-lite-9dffb313d6.chunk.css → 8392-lite-28486fbcda.chunk.css} +1 -0
  22. package/dist/css/{9863-lite-b3f49c6151.chunk.css → 9300-lite-9c37068581.chunk.css} +1 -0
  23. package/dist/css/{455-lite-2705070abd.chunk.css → 9387-lite-32986c5c7d.chunk.css} +1 -0
  24. package/dist/css/{5929-lite-378979ba11.chunk.css → 9462-lite-3803e5f075.chunk.css} +2 -1
  25. package/dist/css/{7620-lite-9a78957d55.chunk.css → 9768-lite-27f9ccec54.chunk.css} +1 -0
  26. package/dist/languages/en.json +1 -1
  27. package/dist/scripts/{3533-b1d2cd49fa-lite.chunk.js → 1159-9506d90865-lite.chunk.js} +1 -1
  28. package/dist/scripts/{1766-9ba9953e17-lite.chunk.js → 1766-12fb1aa192-lite.chunk.js} +1 -1
  29. package/dist/scripts/{1818-6ec1e56560-lite.chunk.js → 1818-34d34247a1-lite.chunk.js} +1 -1
  30. package/dist/scripts/{1820-0a8f359d6d-lite.chunk.js → 1820-6ddf444acd-lite.chunk.js} +1 -1
  31. package/dist/scripts/{7591-8c4cc98309-lite.chunk.js → 1897-e6220d20e2-lite.chunk.js} +1 -1
  32. package/dist/scripts/2272-a059d0d67b-lite.chunk.js +1 -0
  33. package/dist/scripts/{7954-49ae6955da-lite.chunk.js → 2797-31182f00e7-lite.chunk.js} +1 -1
  34. package/dist/scripts/292-a07c9e8e44-lite.chunk.js +1 -0
  35. package/dist/scripts/{6808-5039d64ca3-lite.chunk.js → 3252-798f614675-lite.chunk.js} +1 -1
  36. package/dist/scripts/3514-cec3ab53d9-lite.chunk.js +1 -0
  37. package/dist/scripts/{7012-d13152d0a7-lite.chunk.js → 3533-4ee98657d7-lite.chunk.js} +1 -1
  38. package/dist/scripts/{9483-ec8451362e-lite.chunk.js → 4624-60f39ac901-lite.chunk.js} +1 -1
  39. package/dist/scripts/4672-6c3efcca88-lite.chunk.js +1 -0
  40. package/dist/scripts/{6623-75dfa3489e-lite.chunk.js → 5172-fb42d9754d-lite.chunk.js} +1 -1
  41. package/dist/scripts/{4898-b400ca7c59-lite.chunk.js → 5475-20e78fb551-lite.chunk.js} +1 -1
  42. package/dist/scripts/{5929-91a27484cd-lite.chunk.js → 5612-1ee8faf2ad-lite.chunk.js} +1 -1
  43. package/dist/scripts/5776-ee020589ac-lite.chunk.js +1 -0
  44. package/dist/scripts/5920-7b965a6ae3-lite.chunk.js +2 -0
  45. package/dist/scripts/{3135-5398f59330-lite.chunk.js → 5925-9f6a654223-lite.chunk.js} +1 -1
  46. package/dist/scripts/5940-be7e53af03-lite.chunk.js +1 -0
  47. package/dist/scripts/{6477-63dbbce50c-lite.chunk.js → 6218-30a84d9a7e-lite.chunk.js} +1 -1
  48. package/dist/scripts/{3853-1d6ef8d731-lite.chunk.js → 6666-894d886dc4-lite.chunk.js} +1 -1
  49. package/dist/scripts/7293-76e9ec7384-lite.chunk.js +1 -0
  50. package/dist/scripts/{7620-3b0d60587b-lite.chunk.js → 7302-d4befcbedf-lite.chunk.js} +1 -1
  51. package/dist/scripts/733-373400e663-lite.chunk.js +1 -0
  52. package/dist/scripts/7506-fcd0472c70-lite.chunk.js +1 -0
  53. package/dist/scripts/{6204-f7d4175f0c-lite.chunk.js → 7878-37bc015a3e-lite.chunk.js} +1 -1
  54. package/dist/scripts/{2512-87148dd0bf-lite.chunk.js → 8201-0f1ebcbdbe-lite.chunk.js} +1 -1
  55. package/dist/scripts/{9590-603873656c-lite.chunk.js → 8392-ec888eac2b-lite.chunk.js} +1 -1
  56. package/dist/scripts/8564-821e45efa3-lite.chunk.js +1 -0
  57. package/dist/scripts/8789-e4e5292478-lite.chunk.js +1 -0
  58. package/dist/scripts/9016-18a53d42ed-lite.chunk.js +1 -0
  59. package/dist/scripts/{9863-6a8c201454-lite.chunk.js → 9300-b873a96cf8-lite.chunk.js} +1 -1
  60. package/dist/scripts/9387-46397cbad0-lite.chunk.js +1 -0
  61. package/dist/scripts/9462-559e6d10b7-lite.chunk.js +1 -0
  62. package/dist/scripts/{9478-3daeb97596-lite.chunk.js → 9478-af66c7df50-lite.chunk.js} +2 -2
  63. package/dist/scripts/9768-95f3c7cea5-lite.chunk.js +1 -0
  64. package/dist/scripts/{bundle-841ad3c170.min.js → bundle-dffe33072d.min.js} +2 -2
  65. package/package.json +2 -2
  66. package/dist/scripts/1095-ed48af671f-lite.chunk.js +0 -1
  67. package/dist/scripts/2272-4006582723-lite.chunk.js +0 -1
  68. package/dist/scripts/294-0843158ac2-lite.chunk.js +0 -1
  69. package/dist/scripts/3514-c7fc19b3e8-lite.chunk.js +0 -1
  70. package/dist/scripts/455-6ea0eb22d1-lite.chunk.js +0 -1
  71. package/dist/scripts/5776-fc2dd7327c-lite.chunk.js +0 -1
  72. package/dist/scripts/5940-eccffa9168-lite.chunk.js +0 -1
  73. package/dist/scripts/7293-b6e558c047-lite.chunk.js +0 -1
  74. package/dist/scripts/7506-b7083c98d5-lite.chunk.js +0 -1
  75. package/dist/scripts/7891-79cd4e98d3-lite.chunk.js +0 -1
  76. package/dist/scripts/8409-2b59ff49dd-lite.chunk.js +0 -1
  77. package/dist/scripts/8564-5765fca186-lite.chunk.js +0 -1
  78. package/dist/scripts/8789-fb1c2590f3-lite.chunk.js +0 -1
  79. package/dist/scripts/9016-e5ae124e33-lite.chunk.js +0 -1
  80. package/dist/scripts/9125-4b6a5fb7ad-lite.chunk.js +0 -2
  81. package/dist/scripts/967-0b4b2e91ae-lite.chunk.js +0 -1
  82. package/dist/css/{7012-lite-74522bc90f.chunk.css → 3533-lite-74522bc90f.chunk.css} +0 -0
  83. package/dist/css/{8882-lite-4968a5bab9.chunk.css → 6884-lite-b4d0dc6dba.chunk.css} +1 -1
  84. package/dist/css/{6884-lite-4968a5bab9.chunk.css → 8882-lite-b4d0dc6dba.chunk.css} +1 -1
  85. /package/dist/scripts/{9125-4b6a5fb7ad-lite.chunk.js.LICENSE.txt → 5920-7b965a6ae3-lite.chunk.js.LICENSE.txt} +0 -0
  86. /package/dist/scripts/{9478-3daeb97596-lite.chunk.js.LICENSE.txt → 9478-af66c7df50-lite.chunk.js.LICENSE.txt} +0 -0
  87. /package/dist/scripts/{bundle-841ad3c170.min.js.LICENSE.txt → bundle-dffe33072d.min.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[4898],{54644:(e,t,n)=>{n.d(t,{v:()=>r});var a=n(97395),r={getContentUpdates:function(e,t,n){return{url:a._.urlBuilder("/api/domain/v1/subjects/content-updates",{from:t,to:n,limit:6,query:"(videoCollection)"}),publicUrl:a._.urlBuilder("/api/subjects/presentations/".concat(e,"/content-updates"),{from:t,to:n,limit:6,query:"(videoCollection)"}),key:"content:updates",normalizeOptions:{namespace:"contentupdates"},formatData:function(e){return e.map((function(e){return{id:e.classificationId,videos:e.videos}}))}}},getClassifications:function(e){return{url:a._.urlBuilder("/api/domain/v1/subjects",{id:e,query:"banner"}),publicUrl:a._.urlBuilder("/api/subjects/classifications",{id:e,query:"banner"}),key:"classifications:".concat(e.join(","))}},getClassification:function(e){return{url:"/api/domain/v1/subjects/".concat(e,"?query=banner"),publicUrl:"/api/subjects/classifications/".concat(e,"?query=banner"),key:"classification:".concat(e)}},getClassificationUpdates:function(e,t,n){return{url:a._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/content-updates"),{from:t,to:n,query:"(videoCollection)"}),publicUrl:a._.urlBuilder("/api/subjects/classifications/".concat(e,"/content-updates"),{from:t,to:n,query:"(videoCollection)"}),key:"classification:update:".concat(e,":").concat(t,":").concat(n)}},getContentUpdateVideos:function(e,t){return{url:a._.urlBuilder("/api/domain/v1/subjects/content-updates/videos",{from:e,to:t,query:"(videoCollection)"}),publicUrl:a._.urlBuilder("/api/subjects/content-updates/videos",{from:e,to:t,query:"(videoCollection)"}),key:"content:update:videos:".concat(e,":").concat(t)}},videos:function(e,t){return{url:"/api/domain/v1/videos?ids=".concat(e.join(","),"&with=(videoCollection)"),key:"videos:by:id:".concat(e.join(",")),success:t}}}},3278:(e,t,n)=>{n.d(t,{z:()=>f});var a=n(1024),r=n.n(a),i=n(23481),o=n(83345),l=n(53957),c=n(38502),s=n(65858),u=n(55460);const d={pillTab:"bMJM0"};var p="discover.header";function f(e){var t,n,a,f,m,v;if(!e.type)return r().createElement(r().Fragment,null);if(e.type===l.DashboardUserType.Learner||e.hasStudentExperience)return r().createElement("div",{className:"py-3"},r().createElement("h1",{className:"h2 mb-0"},r().createElement(o.x,{namespace:p,phrase:"heading"})));var y=[{name:i.T.getPhrase(p,"forYou"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.forYou,active:"forYou"===e.active,analyticsData:{name:i.T.getPhrase(p,"forYou"),url:u.AppLinkHelper.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.forYou)},analyticsOptions:{actionType:s.UserAction.Click,entity:s.EntityType.Url,location:s.LocationContext.MagicTabs}},{name:i.T.getPhrase(p,"whatsNew"),appLink:null===(a=e.appLinks)||void 0===a?void 0:a.whatsNew,active:"whatsNew"===e.active,analyticsData:{name:i.T.getPhrase(p,"whatsNew"),url:u.AppLinkHelper.getHref(null===(f=e.appLinks)||void 0===f?void 0:f.whatsNew)},analyticsOptions:{actionType:s.UserAction.Click,entity:s.EntityType.Url,location:s.LocationContext.MagicTabs}}];return e.showCalendar&&y.push({name:i.T.getPhrase(p,"calendar"),appLink:null===(m=e.appLinks)||void 0===m?void 0:m.calendar,active:"calendar"===e.active,analyticsData:{name:i.T.getPhrase(p,"calendar"),url:u.AppLinkHelper.getHref(null===(v=e.appLinks)||void 0===v?void 0:v.calendar)},analyticsOptions:{actionType:s.UserAction.Click,entity:s.EntityType.Url,location:s.LocationContext.MagicTabs}}),r().createElement("div",{className:"py-3 text-center"},r().createElement(c.r,{tabs:y,className:d.pillTab}))}},38502:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(1024),r=n.n(a),i=n(11607),o=n(36848),l=n(49985),c=n(87432),s=n(76246);function u(e){var t;return r().createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:""},r().createElement("ul",{className:"list-unstyled d-inline-block m-0 ".concat(c.Z.pillTabSelector)},e.tabs.map((function(e){return r().createElement("li",{className:"p-0 ".concat(e.active?"btn btn-dark":"btn btn-outline-dark"),key:e.name},e.appLink?r().createElement(o.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"cursor-pointer d-flex justify-content-center text-decoration-none text-reset px-2 ".concat(c.Z.pillItem)},e.name,"number"==typeof e.count&&r().createElement("div",{className:"pl-2"},r().createElement(s.C,{type:s.g.Count,data:e.count}))):r().createElement(i.L,{className:"".concat(c.Z.pillItem," d-flex justify-content-center p-2"),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&l.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},e.name,"number"==typeof e.count&&r().createElement("div",{className:"pl-2"},r().createElement(s.C,{type:s.g.Count,data:e.count}))))}))))}},74696:(e,t,n)=>{n.d(t,{S:()=>s});var a=n(1024),r=n.n(a),i=n(99910),o=n(79967),l=n(9977);const c={partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function s(e){return r().createElement(r().Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return r().createElement(u,Object.assign({key:n},e))})))}function u(e){var t=(0,o.k)(),n="sm"===l.O.getSize(t,"md"),a=e.withReordering&&!t.xs;return r().createElement(i.Row,{noGutters:!0,className:"".concat(n?"":"py-2")},r().createElement(i.Col,Object.assign({},l.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(n?"pb-2 pr-2":"mb-1 px-2")}),r().createElement(i.Row,null,!!a&&r().createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},r().createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),r().createElement(i.Col,{xs:l.O.getThumbnailColSize(a)},r().createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-lg"," ").concat(c.partialThumbnail)})))),r().createElement(i.Col,Object.assign({},l.O.getDetailsColumns(),{className:n?"pb-2":"px-2"}),r().createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),r().createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)})))}s.defaultProps={numVideos:15}},39902:(e,t,n)=>{n.d(t,{f:()=>s});var a=n(1024),r=n.n(a),i=n(58566),o=n(20354);function l(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}}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}function s(e,t){var n,a,s=(n=r().useState([]),a=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,a)||l(n,a)||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];r().useEffect((function(){if(null==e?void 0:e.length){var t=function(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(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.")}()}(u);t.push([]),e.forEach((function(e){t.find((function(t){return t.find((function(t){return t===e}))}))||t[t.length-1].push(e)})),d(t.filter((function(e){return e.length})))}}),[e?e.join(","):null]);var p=(0,i.useDispatch)(),f=(0,i.useSelector)((function(e){return e}));if(r().useEffect((function(){u.forEach((function(e){var n=t(e);o.a.getResponse(f,n.key).shouldFetch&&o.a.fetch(p,n)}))}),[null==u?void 0:u.length]),!(null==u?void 0:u.length))return{items:null,isFetching:!1};var m={},v={};return u.forEach((function(e,n){var a=t(e),r=o.a.getResponse(f,a.key);v[n]=r,r.data&&r.data.forEach((function(e){return m[e.id]=e}))})),{items:Object.keys(v).some((function(e){return!!v[e].data}))?m:null,isFetching:!!Object.keys(v).some((function(e){return v[e].isFetching}))}}},74590:(e,t,n)=>{n.d(t,{N:()=>f});var a=n(1024),r=n.n(a),i=n(35242),o=n(55171),l=n(25925),c=n(37802),s=n(86698);function u(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 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,a=new Array(t);n<t;n++)a[n]=e[n];return a}var p=[o.e.PresentationIds.US_ELEMENTARY,o.e.PresentationIds.SCOTLAND_PRIMARY,o.e.PresentationIds.ENGLAND_PRIMARY];function f(e){var t=(0,c.r)(null),n=t.hasSpecialEventCalendar,a=t.isLoadingSettings,o=(0,s.y)(l.R.Subject,null,e,!0).presentation,d=!a&&!n,f=(null==o?void 0:o.id)&&!p.includes(+o.id),m=u(r().useState(!d&&!f),2),v=m[0],y=m[1],b=u(r().useState(a||!(null==o?void 0:o.id)),2),h=b[0],g=b[1];return r().useEffect((function(){d||f?y(!1):h||y(!0),g(a||!(null==o?void 0:o.id))}),[n,null==o?void 0:o.id,h]),i.h.isDevelopment?{showCalendar:!0,isLoading:!1}:{showCalendar:v,isLoading:h}}},37808:(e,t,n)=>{n.d(t,{aq:()=>v,YW:()=>b});var a=n(1024),r=n(83345),i=n(36848),o=n(99910),l=n(2948),c=n(57900),s=n(38143),u=n(58130),d=n(10874);const p={banner:"B7jhq"};function f(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 m="contentUpdates.classificationBanner";function v(e){var t,n,v=e.classification,y=e.backgroundUrl,b=e.followed,h=e.follow,g=e.showFollowSpinner,E=(t=(0,l.D)(s.g.AUDIENCE_FILTER,void 0,{storage:c.Z1.SessionStorage}),n=1,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 f(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)?f(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.")}())[0];return a.createElement("div",{className:"banner mb-2 d-flex justify-content-between align-items-center rounded ".concat(p.banner),style:{backgroundImage:"url('".concat(y,"')")}},a.createElement(i.F,{className:"text-white text-shadow",appLink:e.getClassificationAppLink(v,E)},a.createElement("h2",{className:"h3 mb-0"},v.name)),e.canFollow&&a.createElement(d.h,{className:"btn follow-btn ".concat(b?"btn-outline-dark":"btn-dark"),svgName:b?u.vn.Check:u.vn.Bell,onClick:function(){return h(v.id,v.name,!b)}},g?a.createElement(o.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):a.createElement(r.x,{namespace:m,phrase:b?"unfollow":"follow"})))}var y="playlists.liteClassificationUpdateBreadcrumbs";function b(e){var t=e.classification;return a.createElement(a.Fragment,null,a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb p-0 mb-0"},a.createElement("li",{className:"breadcrumb-item"},a.createElement(i.F,{appLink:e.dashboardAppLink},a.createElement(r.x,{namespace:y,phrase:"dashboard"}))),a.createElement("li",{className:"breadcrumb-item"},a.createElement(i.F,{appLink:e.contentUpdatesAppLink},a.createElement(r.x,{namespace:y,phrase:"whatsNew"}))),a.createElement("li",{className:"breadcrumb-item active","aria-current":"page"},t.name))))}},80004:(e,t,n)=>{n.r(t),n.d(t,{ContentUpdatesView:()=>J});var a=n(1024),r=n.n(a),i=n(33192),o=n(58566),l=n(20354),c=n(23481),s=n(53957),u=n(61699),d=n(39151),p=n(69883),f=n(39902),m=n(54644),v=n(51365),y=n(3278),b=n(83345),h=n(22902),g=n(16714),E=n(36848),w=n(97037),k=n(31949),S=n(1666),C=n(25925),A=n(49985),j=n(65858),N=n(65986),L=n(97291),O=n(97816),T=n(14070),F=n(86698),U=n(44110),x=n(41063),I=n(74590),P=n(67453),D=n(54610),M=n(4632),B=n(37808),R="contentUpdates.contentUpdatesView";function Y(e){var t=e.classification,n=e.videos,r=e.imageCdnUrl,i=e.showMore,o=e.followed;if(!t)return a.createElement(a.Fragment,null);var l=P.j.createBannerUrl(t.banner,{fallbackBaseUrl:r,fallbackCategoryName:t.name,type:D.__.Banners},{size:D.h2.Medium,resizeType:D.Nq.Cover});return a.createElement("div",{className:"mb-3"},a.createElement(B.aq,{classification:t,backgroundUrl:l,getClassificationAppLink:e.appLinks.getClassificationAppLink,followed:o,follow:e.follow,canFollow:e.canFollow,showFollowSpinner:e.showFollowSpinner}),a.createElement(M.E4,{videos:n,yearGroups:e.yearGroups,getVideoAppLink:e.appLinks.getVideoAppLink,getSeriesAppLink:e.appLinks.getSeriesAppLink,setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences}),i&&a.createElement("div",{className:"show-more"},a.createElement(E.F,{className:"info-link",appLink:e.appLinks.getClassificationUpdateAppLink(t)},a.createElement(b.x,{namespace:R,phrase:"showMore",options:{classificationName:t.name}}))))}var _=n(74696);const q={partialBanner:"bxaA6"};function V(){return r().createElement(r().Fragment,null,Array(4).fill(null).map((function(e,t){return r().createElement("div",{key:t,className:"mb-3"},r().createElement("div",{className:"partial-loading-background mb-2 ".concat(q.partialBanner)}),r().createElement(_.S,null),";")})))}var H=n(68677);function z(e){return z="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},z(e)}function G(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==z(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!==z(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===z(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(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 W=5,$="contentUpdates.contentUpdatesView";function J(e){var t,n,r,P,D,M,B,R=(M=a.useState({}),B=2,function(e){if(Array.isArray(e))return e}(M)||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}}(M,B)||function(e,t){if(e){if("string"==typeof e)return Z(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)?Z(e,t):void 0}}(M,B)||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.")}()),_=R[0],q=R[1],z=(0,o.useDispatch)(),J=(0,p.Z)();(0,H.M)({title:c.T.getPhrase($,"pageTitle")});var Q=(0,h.T)().hasPermissions,K=Q(g.C.FollowSubjects),X=i().subtract(1,"year").endOf("day").format("YYYY-MM-DD"),ee=i().endOf("day").format("YYYY-MM-DD"),te=l.a.useBasicFetch(d.L.config()),ne=l.a.useBasicFetch(k.N.currentUser()),ae=l.a.useBasicFetch((null===(t=ne.data)||void 0===t?void 0:t.isAuthenticated)&&S.h.yearGroups(ne.data.customerId)),re=(0,F.y)(C.R.Subject,null,e.presentationSlug,!0).presentation,ie=m.v.getContentUpdates(null==re?void 0:re.id,X,ee),oe=l.a.useBasicFetch(re&&ie),le=l.a.useBasicFetch(K&&u.o.mySubjectPreferences()),ce=(0,U.i)(e.presentationSlug),se=[],ue=[];oe.data&&oe.data.forEach((function(e){se.push(e.id),ue=ue.concat(e.videos)}));var de=(0,f.f)(se,(function(e){return m.v.getClassifications(e)})).items,pe=(0,N._)(N.i.VideoItem);(0,O.V)(ue,{hasCurriculumLinks:!0,flightNamespace:null===(n=ie.normalizeOptions)||void 0===n?void 0:n.namespace});var fe=(0,w.c)(j.LocationContext.VideoThumbnail,null===(r=ie.normalizeOptions)||void 0===r?void 0:r.namespace),me=fe.setFavourite,ve=fe.canFavourite;function ye(e,t,n){q((function(t){return Object.assign(Object.assign({},t),G({},e,!0))}));var a=function(){var a;q((function(t){return Object.assign(Object.assign({},t),G({},e,!1))})),A.k.logUserAction({id:e,name:t},{location:j.LocationContext.ContentUpdatesClassificationBanner,workflowPhase:j.WorkflowPhase.Complete,descriptor:n?j.ToggleDescriptor.On:j.ToggleDescriptor.Off,actionType:j.UserAction.Follow,entity:j.EntityType.Classification}),J.success(c.T.getPhrase($,n?"followed":"unfollowed",{classification:null===(a=de[e])||void 0===a?void 0:a.name,escapeText:!0}))},r=function(){q((function(t){return Object.assign(Object.assign({},t),G({},e,!1))})),J.error(c.T.getPhrase($,"error"))},i=n?u.o.followSubjects([e],a,r):u.o.unfollowSubjects([e],a,r);l.a.fetch(z,i)}var be=(0,I.N)(e.presentationSlug),he=be.showCalendar,ge=be.isLoading,Ee=!(!(oe.hasCompleted&&te.hasCompleted&&ce.hasCompleted)||K&&!le.hasCompleted||!de||ge),we=function(e,t){return e&&t?e.map((function(e){return{showMore:e.videos.length>W,classification:t[e.id],videos:e.videos.slice(0,W).map((function(e){return e.classification=t[e.id],e})).filter((function(e){return e}))}})).filter((function(e){return e.classification})):null}(oe.data,de),ke=null!==(D=null===(P=le.data)||void 0===P?void 0:P.map((function(e){return e.id})))&&void 0!==D?D:[],Se=Q(g.C.ManageSubjectPreferences),Ce=(0,x.b)();return a.createElement(v.M.Provider,{value:pe},a.createElement("div",{className:"bg-white px-3"},!ge&&a.createElement(y.z,{type:s.DashboardUserType.Staff,appLinks:{forYou:e.appLinks.dashboardAppLink,whatsNew:e.appLinks.whatsNewAppLink,calendar:e.appLinks.calendarAppLink},showCalendar:he,active:"whatsNew"}),a.createElement("h1",null,a.createElement(b.x,{namespace:$,phrase:"heading"})),(Se||Ce)&&a.createElement("p",null,Se&&a.createElement(a.Fragment,null,a.createElement(b.x,{namespace:$,phrase:"onlyRelevant"})," ",a.createElement(E.F,{className:"info-link",appLink:{application:L.O.SETTINGS,action:T.e.Settings.TOPIC_PREFERENCES}},a.createElement(b.x,{namespace:$,phrase:"updatePreferences"}))),Ce&&a.createElement("span",{className:"d-block"},a.createElement(E.F,{className:"info-link",appLink:{application:L.O.SETTINGS,action:T.e.Settings.CONTENT_REVIEW}},a.createElement(b.x,{namespace:$,phrase:"contentReview"})))),Ee?a.createElement(a.Fragment,null,we.map((function(t,n){var r,i;return a.createElement(Y,{key:n,classification:t.classification,videos:t.videos,yearGroups:ae.data,imageCdnUrl:te.data.imageCdnUrl,showMore:t.showMore,appLinks:e.appLinks,followed:ke.includes(null===(r=t.classification)||void 0===r?void 0:r.id),follow:ye,showFollowSpinner:_[null===(i=t.classification)||void 0===i?void 0:i.id],canFollow:K,setFavourite:me,canFavourite:ve,audiences:ce.data})}))):a.createElement(V,null)))}},87821:(e,t,n)=>{n.d(t,{p:()=>r});var a=n(33192),r={userVideoHistory:function(e,t,n,r){var i="video:history",o="{gateway}/v1/users/me/watch-history";return e&&(i+=":".concat(e),o+="?cursor=".concat(e)),{key:i,url:o,formatData:function(e){return{data:e.data.map((function(e){var t=a.utc(e.lastTimeWatched).local().format(),n=a(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:n})})),pagination:e.pagination}},success:t,error:n,always:r}},videoHistory:function(e,t,n,a,r){var i=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(i.join("&")),url:"{gateway}/v1/videos/history?".concat(i.join("&")),normalizeOptions:{namespace:t},formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:n,error:a,always:r}}}},41063:(e,t,n)=>{n.d(t,{b:()=>o});var a=n(22902),r=n(37802),i=n(16714);function o(){var e=(0,a.T)().hasPermissions;return(0,r.r)(null).manageVideoAccess&&e(i.C.ManageVideoAccess)}},44110:(e,t,n)=>{n.d(t,{i:()=>l});var a=n(20354),r=n(25925),i=n(89454),o=n(86698),l=function(e){var t=(0,o.y)(r.R.Subject,null,e,!!e).presentation;return a.a.useBasicFetch(!!t&&i.O.presentationAudiences(t.id))}},97816:(e,t,n)=>{n.d(t,{V:()=>m});var a=n(1024),r=n.n(a),i=n(20354),o=n(31949),l=n(1575),c=n(21750),s=n(87821),u=n(63419);function d(e){return function(e){if(Array.isArray(e))return p(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 p(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)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(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 f={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function m(e){var t,n,a,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=Object.assign(Object.assign({},f),p),v=m.ratings,y=m.favourites,b=m.watchHistory,h=m.hasCurriculumLinks,g=i.a.useBasicFetch(o.N.currentUser()),E=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),w=g.data;t=r().useMemo((function(){if(!(null==w?void 0:w.isAuthenticated))return[];var e=[];return v&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&l.R.videoRatings(E,p.flightNamespace)])),y&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&w&&u.P.isFavourited(w.id,E,p.flightNamespace)])),b&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&w&&s.p.videoHistory(E,p.flightNamespace)])),h&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&c.x.hasCurriculumLinks(E,null,p.flightNamespace)])),e.filter(Boolean)}),[null==E?void 0:E.length]),n=!!e,a=i.a.useGetFetch(),r().useEffect((function(){n&&t.length&&t.forEach((function(e){a(e)}))}),[t.length])}},87432:(e,t,n)=>{n.d(t,{Z:()=>a});const a={pillTabSelector:"Hdi6o",pillItem:"hUJx1"}}}]);
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5475],{54644:(e,t,n)=>{n.d(t,{v:()=>r});var a=n(97395),r={getContentUpdates:function(e,t,n){return{url:a._.urlBuilder("/api/domain/v1/subjects/content-updates",{from:t,to:n,limit:6,query:"(videoCollection)"}),publicUrl:a._.urlBuilder("/api/subjects/presentations/".concat(e,"/content-updates"),{from:t,to:n,limit:6,query:"(videoCollection)"}),key:"content:updates",normalizeOptions:{namespace:"contentupdates"},formatData:function(e){return e.map((function(e){return{id:e.classificationId,videos:e.videos}}))}}},getClassifications:function(e){return{url:a._.urlBuilder("/api/domain/v1/subjects",{id:e,query:"banner"}),publicUrl:a._.urlBuilder("/api/subjects/classifications",{id:e,query:"banner"}),key:"classifications:".concat(e.join(","))}},getClassification:function(e){return{url:"/api/domain/v1/subjects/".concat(e,"?query=banner"),publicUrl:"/api/subjects/classifications/".concat(e,"?query=banner"),key:"classification:".concat(e)}},getClassificationUpdates:function(e,t,n){return{url:a._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/content-updates"),{from:t,to:n,query:"(videoCollection)"}),publicUrl:a._.urlBuilder("/api/subjects/classifications/".concat(e,"/content-updates"),{from:t,to:n,query:"(videoCollection)"}),key:"classification:update:".concat(e,":").concat(t,":").concat(n)}},getContentUpdateVideos:function(e,t){return{url:a._.urlBuilder("/api/domain/v1/subjects/content-updates/videos",{from:e,to:t,query:"(videoCollection)"}),publicUrl:a._.urlBuilder("/api/subjects/content-updates/videos",{from:e,to:t,query:"(videoCollection)"}),key:"content:update:videos:".concat(e,":").concat(t)}},videos:function(e,t){return{url:"/api/domain/v1/videos?ids=".concat(e.join(","),"&with=(videoCollection)"),key:"videos:by:id:".concat(e.join(",")),success:t}}}},3278:(e,t,n)=>{n.d(t,{z:()=>f});var a=n(1024),r=n.n(a),i=n(23481),o=n(83345),l=n(53957),c=n(38502),s=n(65858),u=n(55460);const d={pillTab:"bMJM0"};var p="discover.header";function f(e){var t,n,a,f,m,v;if(!e.type)return r().createElement(r().Fragment,null);if(e.type===l.DashboardUserType.Learner||e.hasStudentExperience)return r().createElement("div",{className:"py-3"},r().createElement("h1",{className:"h2 mb-0"},r().createElement(o.x,{namespace:p,phrase:"heading"})));var y=[{name:i.T.getPhrase(p,"forYou"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.forYou,active:"forYou"===e.active,analyticsData:{name:i.T.getPhrase(p,"forYou"),url:u.AppLinkHelper.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.forYou)},analyticsOptions:{actionType:s.UserAction.Click,entity:s.EntityType.Url,location:s.LocationContext.MagicTabs}},{name:i.T.getPhrase(p,"whatsNew"),appLink:null===(a=e.appLinks)||void 0===a?void 0:a.whatsNew,active:"whatsNew"===e.active,analyticsData:{name:i.T.getPhrase(p,"whatsNew"),url:u.AppLinkHelper.getHref(null===(f=e.appLinks)||void 0===f?void 0:f.whatsNew)},analyticsOptions:{actionType:s.UserAction.Click,entity:s.EntityType.Url,location:s.LocationContext.MagicTabs}}];return e.showCalendar&&y.push({name:i.T.getPhrase(p,"calendar"),appLink:null===(m=e.appLinks)||void 0===m?void 0:m.calendar,active:"calendar"===e.active,analyticsData:{name:i.T.getPhrase(p,"calendar"),url:u.AppLinkHelper.getHref(null===(v=e.appLinks)||void 0===v?void 0:v.calendar)},analyticsOptions:{actionType:s.UserAction.Click,entity:s.EntityType.Url,location:s.LocationContext.MagicTabs}}),r().createElement("div",{className:"py-3 text-center"},r().createElement(c.r,{tabs:y,className:d.pillTab}))}},38502:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(1024),r=n.n(a),i=n(11607),o=n(36848),l=n(49985),c=n(87432),s=n(76246);function u(e){var t;return r().createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:""},r().createElement("ul",{className:"list-unstyled d-inline-block m-0 ".concat(c.Z.pillTabSelector)},e.tabs.map((function(e){return r().createElement("li",{className:"p-0 ".concat(e.active?"btn btn-dark":"btn btn-outline-dark"),key:e.name},e.appLink?r().createElement(o.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"cursor-pointer d-flex justify-content-center text-decoration-none text-reset px-2 ".concat(c.Z.pillItem)},e.name,"number"==typeof e.count&&r().createElement("div",{className:"pl-2"},r().createElement(s.C,{type:s.g.Count,data:e.count}))):r().createElement(i.L,{className:"".concat(c.Z.pillItem," d-flex justify-content-center p-2"),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&l.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},e.name,"number"==typeof e.count&&r().createElement("div",{className:"pl-2"},r().createElement(s.C,{type:s.g.Count,data:e.count}))))}))))}},74696:(e,t,n)=>{n.d(t,{S:()=>s});var a=n(1024),r=n.n(a),i=n(99910),o=n(79967),l=n(9977);const c={partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function s(e){return r().createElement(r().Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return r().createElement(u,Object.assign({key:n},e))})))}function u(e){var t=(0,o.k)(),n="sm"===l.O.getSize(t,"md"),a=e.withReordering&&!t.xs;return r().createElement(i.Row,{noGutters:!0,className:"".concat(n?"":"py-2")},r().createElement(i.Col,Object.assign({},l.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(n?"pb-2 pr-2":"mb-1 px-2")}),r().createElement(i.Row,null,!!a&&r().createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},r().createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),r().createElement(i.Col,{xs:l.O.getThumbnailColSize(a)},r().createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-lg"," ").concat(c.partialThumbnail)})))),r().createElement(i.Col,Object.assign({},l.O.getDetailsColumns(),{className:n?"pb-2":"px-2"}),r().createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),r().createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)})))}s.defaultProps={numVideos:15}},39902:(e,t,n)=>{n.d(t,{f:()=>s});var a=n(1024),r=n.n(a),i=n(58566),o=n(20354);function l(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}}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}function s(e,t){var n,a,s=(n=r().useState([]),a=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,a)||l(n,a)||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];r().useEffect((function(){if(null==e?void 0:e.length){var t=function(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(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.")}()}(u);t.push([]),e.forEach((function(e){t.find((function(t){return t.find((function(t){return t===e}))}))||t[t.length-1].push(e)})),d(t.filter((function(e){return e.length})))}}),[e?e.join(","):null]);var p=(0,i.useDispatch)(),f=(0,i.useSelector)((function(e){return e}));if(r().useEffect((function(){u.forEach((function(e){var n=t(e);o.a.getResponse(f,n.key).shouldFetch&&o.a.fetch(p,n)}))}),[null==u?void 0:u.length]),!(null==u?void 0:u.length))return{items:null,isFetching:!1};var m={},v={};return u.forEach((function(e,n){var a=t(e),r=o.a.getResponse(f,a.key);v[n]=r,r.data&&r.data.forEach((function(e){return m[e.id]=e}))})),{items:Object.keys(v).some((function(e){return!!v[e].data}))?m:null,isFetching:!!Object.keys(v).some((function(e){return v[e].isFetching}))}}},74590:(e,t,n)=>{n.d(t,{N:()=>f});var a=n(1024),r=n.n(a),i=n(35242),o=n(55171),l=n(25925),c=n(37802),s=n(86698);function u(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 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,a=new Array(t);n<t;n++)a[n]=e[n];return a}var p=[o.e.PresentationIds.US_ELEMENTARY,o.e.PresentationIds.SCOTLAND_PRIMARY,o.e.PresentationIds.ENGLAND_PRIMARY];function f(e){var t=(0,c.r)(null),n=t.hasSpecialEventCalendar,a=t.isLoadingSettings,o=(0,s.y)(l.R.Subject,null,e,!0).presentation,d=!a&&!n,f=(null==o?void 0:o.id)&&!p.includes(+o.id),m=u(r().useState(!d&&!f),2),v=m[0],y=m[1],b=u(r().useState(a||!(null==o?void 0:o.id)),2),h=b[0],g=b[1];return r().useEffect((function(){d||f?y(!1):h||y(!0),g(a||!(null==o?void 0:o.id))}),[n,null==o?void 0:o.id,h]),i.h.isDevelopment?{showCalendar:!0,isLoading:!1}:{showCalendar:v,isLoading:h}}},37808:(e,t,n)=>{n.d(t,{aq:()=>v,YW:()=>b});var a=n(1024),r=n(83345),i=n(36848),o=n(99910),l=n(2948),c=n(57900),s=n(38143),u=n(58130),d=n(10874);const p={banner:"B7jhq"};function f(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 m="contentUpdates.classificationBanner";function v(e){var t,n,v=e.classification,y=e.backgroundUrl,b=e.followed,h=e.follow,g=e.showFollowSpinner,E=(t=(0,l.D)(s.g.AUDIENCE_FILTER,void 0,{storage:c.Z1.SessionStorage}),n=1,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 f(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)?f(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.")}())[0];return a.createElement("div",{className:"banner mb-2 d-flex justify-content-between align-items-center rounded ".concat(p.banner),style:{backgroundImage:"url('".concat(y,"')")}},a.createElement(i.F,{className:"text-white text-shadow",appLink:e.getClassificationAppLink(v,E)},a.createElement("h2",{className:"h3 mb-0"},v.name)),e.canFollow&&a.createElement(d.h,{className:"btn follow-btn ".concat(b?"btn-outline-dark":"btn-dark"),svgName:b?u.vn.Check:u.vn.Bell,onClick:function(){return h(v.id,v.name,!b)}},g?a.createElement(o.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):a.createElement(r.x,{namespace:m,phrase:b?"unfollow":"follow"})))}var y="playlists.liteClassificationUpdateBreadcrumbs";function b(e){var t=e.classification;return a.createElement(a.Fragment,null,a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb p-0 mb-0"},a.createElement("li",{className:"breadcrumb-item"},a.createElement(i.F,{appLink:e.dashboardAppLink},a.createElement(r.x,{namespace:y,phrase:"dashboard"}))),a.createElement("li",{className:"breadcrumb-item"},a.createElement(i.F,{appLink:e.contentUpdatesAppLink},a.createElement(r.x,{namespace:y,phrase:"whatsNew"}))),a.createElement("li",{className:"breadcrumb-item active","aria-current":"page"},t.name))))}},80004:(e,t,n)=>{n.r(t),n.d(t,{ContentUpdatesView:()=>J});var a=n(1024),r=n.n(a),i=n(33192),o=n(58566),l=n(20354),c=n(23481),s=n(53957),u=n(61699),d=n(39151),p=n(69883),f=n(39902),m=n(54644),v=n(51365),y=n(3278),b=n(83345),h=n(22902),g=n(16714),E=n(36848),w=n(97037),k=n(31949),S=n(1666),C=n(25925),A=n(49985),j=n(65858),N=n(65986),L=n(97291),O=n(97816),T=n(14070),F=n(86698),U=n(44110),x=n(41063),I=n(74590),P=n(67453),D=n(54610),M=n(4632),B=n(37808),R="contentUpdates.contentUpdatesView";function Y(e){var t=e.classification,n=e.videos,r=e.imageCdnUrl,i=e.showMore,o=e.followed;if(!t)return a.createElement(a.Fragment,null);var l=P.j.createBannerUrl(t.banner,{fallbackBaseUrl:r,fallbackCategoryName:t.name,type:D.__.Banners},{size:D.h2.Medium,resizeType:D.Nq.Cover});return a.createElement("div",{className:"mb-3"},a.createElement(B.aq,{classification:t,backgroundUrl:l,getClassificationAppLink:e.appLinks.getClassificationAppLink,followed:o,follow:e.follow,canFollow:e.canFollow,showFollowSpinner:e.showFollowSpinner}),a.createElement(M.E4,{videos:n,yearGroups:e.yearGroups,getVideoAppLink:e.appLinks.getVideoAppLink,getSeriesAppLink:e.appLinks.getSeriesAppLink,setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences}),i&&a.createElement("div",{className:"show-more"},a.createElement(E.F,{className:"info-link",appLink:e.appLinks.getClassificationUpdateAppLink(t)},a.createElement(b.x,{namespace:R,phrase:"showMore",options:{classificationName:t.name}}))))}var _=n(74696);const q={partialBanner:"bxaA6"};function V(){return r().createElement(r().Fragment,null,Array(4).fill(null).map((function(e,t){return r().createElement("div",{key:t,className:"mb-3"},r().createElement("div",{className:"partial-loading-background mb-2 ".concat(q.partialBanner)}),r().createElement(_.S,null),";")})))}var H=n(68677);function z(e){return z="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},z(e)}function G(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==z(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!==z(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===z(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(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 W=5,$="contentUpdates.contentUpdatesView";function J(e){var t,n,r,P,D,M,B,R=(M=a.useState({}),B=2,function(e){if(Array.isArray(e))return e}(M)||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}}(M,B)||function(e,t){if(e){if("string"==typeof e)return Z(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)?Z(e,t):void 0}}(M,B)||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.")}()),_=R[0],q=R[1],z=(0,o.useDispatch)(),J=(0,p.Z)();(0,H.M)({title:c.T.getPhrase($,"pageTitle")});var Q=(0,h.T)().hasPermissions,K=Q(g.C.FollowSubjects),X=i().subtract(1,"year").endOf("day").format("YYYY-MM-DD"),ee=i().endOf("day").format("YYYY-MM-DD"),te=l.a.useBasicFetch(d.L.config()),ne=l.a.useBasicFetch(k.N.currentUser()),ae=l.a.useBasicFetch((null===(t=ne.data)||void 0===t?void 0:t.isAuthenticated)&&S.h.yearGroups(ne.data.customerId)),re=(0,F.y)(C.R.Subject,null,e.presentationSlug,!0).presentation,ie=m.v.getContentUpdates(null==re?void 0:re.id,X,ee),oe=l.a.useBasicFetch(re&&ie),le=l.a.useBasicFetch(K&&u.o.mySubjectPreferences()),ce=(0,U.i)(e.presentationSlug),se=[],ue=[];oe.data&&oe.data.forEach((function(e){se.push(e.id),ue=ue.concat(e.videos)}));var de=(0,f.f)(se,(function(e){return m.v.getClassifications(e)})).items,pe=(0,N._)(N.i.VideoItem);(0,O.V)(ue,{hasCurriculumLinks:!0,flightNamespace:null===(n=ie.normalizeOptions)||void 0===n?void 0:n.namespace});var fe=(0,w.c)(j.LocationContext.VideoThumbnail,null===(r=ie.normalizeOptions)||void 0===r?void 0:r.namespace),me=fe.setFavourite,ve=fe.canFavourite;function ye(e,t,n){q((function(t){return Object.assign(Object.assign({},t),G({},e,!0))}));var a=function(){var a;q((function(t){return Object.assign(Object.assign({},t),G({},e,!1))})),A.k.logUserAction({id:e,name:t},{location:j.LocationContext.ContentUpdatesClassificationBanner,workflowPhase:j.WorkflowPhase.Complete,descriptor:n?j.ToggleDescriptor.On:j.ToggleDescriptor.Off,actionType:j.UserAction.Follow,entity:j.EntityType.Classification}),J.success(c.T.getPhrase($,n?"followed":"unfollowed",{classification:null===(a=de[e])||void 0===a?void 0:a.name,escapeText:!0}))},r=function(){q((function(t){return Object.assign(Object.assign({},t),G({},e,!1))})),J.error(c.T.getPhrase($,"error"))},i=n?u.o.followSubjects([e],a,r):u.o.unfollowSubjects([e],a,r);l.a.fetch(z,i)}var be=(0,I.N)(e.presentationSlug),he=be.showCalendar,ge=be.isLoading,Ee=!(!(oe.hasCompleted&&te.hasCompleted&&ce.hasCompleted)||K&&!le.hasCompleted||!de||ge),we=function(e,t){return e&&t?e.map((function(e){return{showMore:e.videos.length>W,classification:t[e.id],videos:e.videos.slice(0,W).map((function(e){return e.classification=t[e.id],e})).filter((function(e){return e}))}})).filter((function(e){return e.classification})):null}(oe.data,de),ke=null!==(D=null===(P=le.data)||void 0===P?void 0:P.map((function(e){return e.id})))&&void 0!==D?D:[],Se=Q(g.C.ManageSubjectPreferences),Ce=(0,x.b)();return a.createElement(v.M.Provider,{value:pe},a.createElement("div",{className:"bg-white px-3"},!ge&&a.createElement(y.z,{type:s.DashboardUserType.Staff,appLinks:{forYou:e.appLinks.dashboardAppLink,whatsNew:e.appLinks.whatsNewAppLink,calendar:e.appLinks.calendarAppLink},showCalendar:he,active:"whatsNew"}),a.createElement("h1",null,a.createElement(b.x,{namespace:$,phrase:"heading"})),(Se||Ce)&&a.createElement("p",null,Se&&a.createElement(a.Fragment,null,a.createElement(b.x,{namespace:$,phrase:"onlyRelevant"})," ",a.createElement(E.F,{className:"info-link",appLink:{application:L.O.SETTINGS,action:T.e.Settings.TOPIC_PREFERENCES}},a.createElement(b.x,{namespace:$,phrase:"updatePreferences"}))),Ce&&a.createElement("span",{className:"d-block"},a.createElement(E.F,{className:"info-link",appLink:{application:L.O.SETTINGS,action:T.e.Settings.CONTENT_REVIEW}},a.createElement(b.x,{namespace:$,phrase:"contentReview"})))),Ee?a.createElement(a.Fragment,null,we.map((function(t,n){var r,i;return a.createElement(Y,{key:n,classification:t.classification,videos:t.videos,yearGroups:ae.data,imageCdnUrl:te.data.imageCdnUrl,showMore:t.showMore,appLinks:e.appLinks,followed:ke.includes(null===(r=t.classification)||void 0===r?void 0:r.id),follow:ye,showFollowSpinner:_[null===(i=t.classification)||void 0===i?void 0:i.id],canFollow:K,setFavourite:me,canFavourite:ve,audiences:ce.data})}))):a.createElement(V,null)))}},87821:(e,t,n)=>{n.d(t,{p:()=>r});var a=n(33192),r={userVideoHistory:function(e,t,n,r){var i="video:history",o="{gateway}/v1/users/me/watch-history";return e&&(i+=":".concat(e),o+="?cursor=".concat(e)),{key:i,url:o,formatData:function(e){return{data:e.data.map((function(e){var t=a.utc(e.lastTimeWatched).local().format(),n=a(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:n})})),pagination:e.pagination}},success:t,error:n,always:r}},videoHistory:function(e,t,n,a,r){var i=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(i.join("&")),url:"{gateway}/v1/videos/history?".concat(i.join("&")),normalizeOptions:{namespace:t},formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:n,error:a,always:r}}}},41063:(e,t,n)=>{n.d(t,{b:()=>o});var a=n(22902),r=n(37802),i=n(16714);function o(){var e=(0,a.T)().hasPermissions;return(0,r.r)(null).manageVideoAccess&&e(i.C.ManageVideoAccess)}},44110:(e,t,n)=>{n.d(t,{i:()=>l});var a=n(20354),r=n(25925),i=n(89454),o=n(86698),l=function(e){var t=(0,o.y)(r.R.Subject,null,e,!!e).presentation;return a.a.useBasicFetch(!!t&&i.O.presentationAudiences(t.id))}},97816:(e,t,n)=>{n.d(t,{V:()=>m});var a=n(1024),r=n.n(a),i=n(20354),o=n(31949),l=n(1575),c=n(21750),s=n(87821),u=n(63419);function d(e){return function(e){if(Array.isArray(e))return p(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 p(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)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(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 f={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function m(e){var t,n,a,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=Object.assign(Object.assign({},f),p),v=m.ratings,y=m.favourites,b=m.watchHistory,h=m.hasCurriculumLinks,g=i.a.useBasicFetch(o.N.currentUser()),E=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),w=g.data;t=r().useMemo((function(){if(!(null==w?void 0:w.isAuthenticated))return[];var e=[];return v&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&l.R.videoRatings(E,p.flightNamespace)])),y&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&w&&u.P.isFavourited(w.id,E,p.flightNamespace)])),b&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&w&&s.p.videoHistory(E,p.flightNamespace)])),h&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&c.x.hasCurriculumLinks(E,null,p.flightNamespace)])),e.filter(Boolean)}),[null==E?void 0:E.length]),n=!!e,a=i.a.useGetFetch(),r().useEffect((function(){n&&t.length&&t.forEach((function(e){a(e)}))}),[t.length])}},87432:(e,t,n)=>{n.d(t,{Z:()=>a});const a={pillTabSelector:"Hdi6o",pillItem:"hUJx1"}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5929],{89043:(e,t,n)=>{n.d(t,{p:()=>C,v:()=>S});var r=n(1024),a=n(30314),o={renderInPortalIfExists:function(e,t){return t?(0,a.createPortal)(e,t):e}},i=n(23481),l=n(83914),c=n(36848),s=n(58130),u="shared.backButton";function d(e){var t=Object.assign({textShadow:!0},e),n=t.backToName,a=t.appLink,o=t.color,d=t.extraClasses,m=t.textShadow,v=n?i.T.getPhrase(u,"backTo",{backToName:n}):i.T.getPhrase(u,"back"),f="black"===o?"":"text-white",g=m?"text-shadow":"";return r.createElement(c.F,{appLink:a,className:"d-inline-flex align-items-center h5 mb-0 ".concat(d," ").concat(f," ").concat(g)},r.createElement(l.x,{svgName:s.vn.ChevronLeft,size:l.S.Medium}),r.createElement("span",{className:"ml-1"},v))}d.defaultProps={color:"black",extraClasses:""};var m=n(67453),v=n(54610),f=n(10587),g=n(83657),h=n(94232),p=n(79967);const b={bannerContent:"sSCTB",actionsContainer:"Z5WI2",container:"M51HJ",logoContainer:"vkeJk",headingLarge:"_8pnV",heading:"JXVBH"};var y="".concat(f.y[v.__.Banners].width,":").concat(f.y[v.__.Banners].height);function E(e){return e.length<160?"h1":b.headingLarge}var C=r.memo((function(e){var t,n=e.heading,a=e.banner,i=e.imageCdnUrl,l=e.actions,c=e.sortComponent,s=e.blockColourClass,u=r.useContext(h.n),f=(0,p.k)().xxl?1920:1200,C=e.imageOptions||{width:f,ratio:y,resizeType:v.Nq.Cover},S=!!a&&!!i&&m.j.createBannerUrl(a,{fallbackBaseUrl:i,fallbackCategoryName:n,type:v.__.Banners},C),w={className:"banner banner-header",style:S?{backgroundImage:"url('".concat(S,"')")}:{}};!a&&s&&(delete w.style,w.className+=" ".concat(s));var x=e.detailsComponent;return o.renderInPortalIfExists(r.createElement("header",Object.assign({},w),r.createElement("div",{className:"container ".concat(b.container," position-relative inner-banner")},e.backButtonAppLink&&r.createElement("div",{className:"pt-3"},r.createElement(d,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),r.createElement("div",{className:b.bannerContent},r.createElement("h1",{className:"text-white text-shadow ".concat(b.heading," ").concat(E(n))},n,x&&r.createElement(x,null)),!!l&&r.createElement("div",{className:b.actionsContainer},r.createElement(g.e,{actions:l,sortComponent:c,actionsDropdownClassName:e.actionsDropdownClassName}))),!!(null===(t=e.logo)||void 0===t?void 0:t.url)&&r.createElement("div",{className:b.logoContainer},r.createElement("img",{src:m.j.createUrl(e.logo.url,{size:v.h2.Small}),className:"rounded-circle"})))),null==u?void 0:u.container)}),(function(e,t){var n,r;return e.actions===t.actions&&e.heading===t.heading&&(null===(n=e.logo)||void 0===n?void 0:n.url)===(null===(r=t.logo)||void 0===r?void 0:r.url)}));function S(){var e=r.useContext(h.n);return o.renderInPortalIfExists(r.createElement("div",{className:"partial-banner partial-loading-background ".concat(b.banner)}),null==e?void 0:e.container)}},71020:(e,t,n)=>{n.d(t,{_:()=>u});var r=n(1024),a=n(99910),o=n(64038),i=n(83914),l=n(58130);const c={container:"VwD1b",spinner:"eJ85e"};function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){var t,n,u=(t=o.useInView(),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=u[0],m=u[1];return r.useEffect((function(){var t;e.fetchOnScroll&&m&&!e.isFetching&&(null===(t=e.fetchNext)||void 0===t||t.call(e,e.nextCursor))}),[m,e.isFetching]),r.createElement("div",{className:"p-3 text-center ".concat(c.container),ref:d},e.isFetching?r.createElement(a.Spinner,{as:"span",animation:"border",role:"status",className:c.spinner}):r.createElement(i.x,{svgName:l.vn.ChevronDown,className:"svg-container cursor-pointer",size:i.S.Large,onClick:function(){var t;return null===(t=e.fetchNext)||void 0===t?void 0:t.call(e,e.nextCursor)}}))}u.defaultProps={fetchOnScroll:!1}},74696:(e,t,n)=>{n.d(t,{S:()=>s});var r=n(1024),a=n.n(r),o=n(99910),i=n(79967),l=n(9977);const c={partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function s(e){return a().createElement(a().Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return a().createElement(u,Object.assign({key:n},e))})))}function u(e){var t=(0,i.k)(),n="sm"===l.O.getSize(t,"md"),r=e.withReordering&&!t.xs;return a().createElement(o.Row,{noGutters:!0,className:"".concat(n?"":"py-2")},a().createElement(o.Col,Object.assign({},l.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(n?"pb-2 pr-2":"mb-1 px-2")}),a().createElement(o.Row,null,!!r&&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(o.Col,{xs:l.O.getThumbnailColSize(r)},a().createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-lg"," ").concat(c.partialThumbnail)})))),a().createElement(o.Col,Object.assign({},l.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}},94644:(e,t,n)=>{n.d(t,{r:()=>u});var r=n(81886),a=n(50242),o=n(67058),i=n(49075),l=n(14553),c=n(49267),s={notFound:o.d,forbidden:{rating:l.q,yearLevel:l.q,region:c.a,privacy:l.q},badRequest:i._};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var o;o="number"==typeof e?e:e.status;var i=Object.assign(Object.assign({},s),t);o&&r.Q.ErrorHelper.isStatusCodeError(o)&&(o!==a.o.NotFound?o!==a.o.Forbidden?n.badRequest||r.Q.ErrorHelper.throw(new i.badRequest):n.forbidden||r.Q.ErrorHelper.throw(new i.forbidden.privacy):n.notFound||r.Q.ErrorHelper.throw(new i.notFound))}}},63936:(e,t,n)=>{n.d(t,{K:()=>s});var r=n(1024),a=n(50242),o=n(79014),i=n(45719),l=n(8843);function c(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}function s(e,t,n,s,u,d){var m,v,f=(m=(0,r.useState)(0),v=2,function(e){if(Array.isArray(e))return e}(m)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(m,v)||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}}(m,v)||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.")}()),g=f[0],h=f[1],p=t,b=(0,i.P)((function(t){if(!e)return null;var n=e(t);return n?n.key:null}),s,u);return(0,l.M)({fetchNextPage:function(){if(t&&e&&b)return h((function(e){return e+1})),p(b.nextCursor)},hasMore:!!(null==b?void 0:b.nextCursor),isFetching:null==b?void 0:b.isFetching,scrollContainer:d}),(0,r.useEffect)((function(){b&&b.shouldInitialFetch&&t&&(p(),h((function(e){return e+1})))}),[null==b?void 0:b.shouldInitialFetch,t]),(0,r.useEffect)((function(){var e,t;if((null==b?void 0:b.statusCode)&&o.q.isFunction(n)){var r=+(null===(t=null===(e=b.statusCode)||void 0===e?void 0:e.toString())||void 0===t?void 0:t.substr(0,1));r!==a.k.ClientError&&r!==a.k.ServerError||n(g,b.statusCode)}}),[null==b?void 0:b.statusCode]),{items:null==b?void 0:b.items,hasMore:!!(null==b?void 0:b.nextCursor),nextCursor:null==b?void 0:b.nextCursor,isFetching:null==b?void 0:b.isFetching,totalItems:null==b?void 0:b.totalItems}}},8843:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(1024),a=n(79014),o=400;function i(e){var t=function(){if(!e.isFetching){if(e.scrollContainer){var t=e.scrollContainer;if(t.getBoundingClientRect().height+t.scrollTop<t.scrollHeight-o)return}else if(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-o)return;e.fetchNextPage()}};(0,r.useEffect)((function(){var n=a.q.throttle(t,200),r=e.scrollContainer||window;return e.hasMore&&r.addEventListener("scroll",n),function(){return r.removeEventListener("scroll",n)}}),[e.hasMore,e.fetchNextPage,e.scrollContainer])}},87821:(e,t,n)=>{n.d(t,{p:()=>a});var r=n(33192),a={userVideoHistory:function(e,t,n,a){var o="video:history",i="{gateway}/v1/users/me/watch-history";return e&&(o+=":".concat(e),i+="?cursor=".concat(e)),{key:o,url:i,formatData:function(e){return{data:e.data.map((function(e){var t=r.utc(e.lastTimeWatched).local().format(),n=r(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:n})})),pagination:e.pagination}},success:t,error:n,always:a}},videoHistory:function(e,t,n,r,a){var o=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(o.join("&")),url:"{gateway}/v1/videos/history?".concat(o.join("&")),normalizeOptions:{namespace:t},formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:n,error:r,always:a}}}},41063:(e,t,n)=>{n.d(t,{b:()=>i});var r=n(22902),a=n(37802),o=n(16714);function i(){var e=(0,r.T)().hasPermissions;return(0,a.r)(null).manageVideoAccess&&e(o.C.ManageVideoAccess)}},44110:(e,t,n)=>{n.d(t,{i:()=>l});var r=n(20354),a=n(25925),o=n(89454),i=n(86698),l=function(e){var t=(0,i.y)(a.R.Subject,null,e,!!e).presentation;return r.a.useBasicFetch(!!t&&o.O.presentationAudiences(t.id))}},97816:(e,t,n)=>{n.d(t,{V:()=>f});var r=n(1024),a=n.n(r),o=n(20354),i=n(31949),l=n(1575),c=n(21750),s=n(87821),u=n(63419);function d(e){return function(e){if(Array.isArray(e))return m(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 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}}(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 m(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 v={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function f(e){var t,n,r,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=Object.assign(Object.assign({},v),m),g=f.ratings,h=f.favourites,p=f.watchHistory,b=f.hasCurriculumLinks,y=o.a.useBasicFetch(i.N.currentUser()),E=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),C=y.data;t=a().useMemo((function(){if(!(null==C?void 0:C.isAuthenticated))return[];var e=[];return g&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&l.R.videoRatings(E,m.flightNamespace)])),h&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&C&&u.P.isFavourited(C.id,E,m.flightNamespace)])),p&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&C&&s.p.videoHistory(E,m.flightNamespace)])),b&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&c.x.hasCurriculumLinks(E,null,m.flightNamespace)])),e.filter(Boolean)}),[null==E?void 0:E.length]),n=!!e,r=o.a.useGetFetch(),a().useEffect((function(){n&&t.length&&t.forEach((function(e){r(e)}))}),[t.length])}},40928:(e,t,n)=>{n.r(t),n.d(t,{FavouritesView:()=>W});var r=n(1024),a=n.n(r),o=n(58566),i=n(20354),l=n(28400),c=n(23481),s=n(89043),u=n(94644),d=n(69883),m=n(74696),v=n(31949),f=n(4632),g=n(51365),h=n(65858),p=n(71020),b=n(63936),y=n(11025),E=n(22902),C=n(16714),S=n(63419),w=n(97037),x=n(67753),k=n(83345),N=n(39151),F=n(1666),A=n(97291),I=n(14070),O=n(97816),P=n(44110),T=n(99742),L=n(83914),j=n(58130),B=n(23232),D="shared.favouritesEmptyState";function M(){return a().createElement(k.D.Provider,{value:D},a().createElement(B.u,null,a().createElement(B.u.Image,{src:T.W.EmptyStates.FAVOURITED_VIDEOS}),a().createElement(B.u.Heading,{className:"h3 d-flex align-items-center justify-content-center"},a().createElement(k.x,{phrase:"emptyStateHeading1"}),a().createElement("div",{className:"box-shadow rounded-circle p-1 bg-white mx-1"},a().createElement(L.x,{svgName:j.vn.HeartOutline,size:L.S.Small})),a().createElement(k.x,{phrase:"emptyStateHeading2"})),a().createElement(B.u.Info,null,a().createElement(k.x,{phrase:"info"})),a().createElement(B.u.Cta,{text:c.T.getPhrase(D,"cta"),appLink:{application:A.O.DASHBOARD,action:I.e.Dashboard.HOME}})))}function V(){return a().createElement(k.D.Provider,{value:D},a().createElement(B.u,null,a().createElement(B.u.Image,{src:T.W.EmptyStates.FAVOURITED_VIDEOS_PUBLIC}),a().createElement(B.u.Heading,null,a().createElement(k.x,{phrase:"publicHeading"})),a().createElement(B.u.Info,null,a().createElement(k.x,{phrase:"publicInfo"})),a().createElement(B.u.Cta,{text:c.T.getPhrase(D,"publicCta"),appLink:{application:A.O.SIGN_UP,action:I.e.SignUp.SIGN_UP},analyticsData:{},analyticsOptions:{actionType:h.UserAction.Click,location:h.LocationContext.MyFavouritesLanding,entity:h.EntityType.AppLink,workflowPhase:h.WorkflowPhase.Start,descriptor:h.SignUpDescriptors.SignUp}})))}var H=n(65986),_="shared.favourites",U=n(68677),R=n(26323),q="shared.favourites",z=function(e){return{application:A.O.SERIES,action:I.e.Series.SERIES,args:[e.id,l.m.slugify(e.name)]}};function W(){var e,t,n,a,l=(0,o.useDispatch)(),A=(0,d.Z)(),I=(0,w.c)(h.LocationContext.VideoThumbnail),L=I.setFavourite,j=I.canFavourite,B=function(){var e=(0,H._)(H.i.VideoItem),t=(0,w.c)(h.LocationContext.VideoThumbnail).setFavourite;return function(n){return y.M.getCanBeConsumed(n).canConsume?e(n):[{label:c.T.getPhrase(_,"removeFromFavourites"),button:!1,className:"btn btn-link text-danger",onClick:function(){return t(n,!1)}}]}}();(0,U.M)({title:c.T.getPhrase(q,"pageTitle")});var D=(0,E.T)().hasLocalPermissions,W=i.a.useBasicFetch(v.N.currentUser()),G=i.a.useBasicFetch((null===(e=W.data)||void 0===e?void 0:e.isAuthenticated)&&F.h.yearGroups(W.data.customerId)),Q=i.a.useBasicFetch(N.L.config()),Y=function(e){return S.P.getFavourites(W.data.id,e)},J=function(e){return i.a.getFetch(l)(Y(e))},$=!D(C.E.ViewMyFavouritesLanding)&&W.hasCompleted,Z=(0,b.K)(!!$&&Y,J,(function(e,t){if(1===e)return(0,u.r)(t);A.error(c.T.getPhrase(q,"error"))})),K=Z.items,X=Z.hasMore,ee=Z.isFetching;(0,O.V)(null!==(t=null==K?void 0:K.filter(y.M.isVideo))&&void 0!==t?t:[],{hasCurriculumLinks:!0});var te=(0,P.i)(),ne=(0,R.B)(null===(n=W.data)||void 0===n?void 0:n.id),re=ne.count;return ne.isLoading?r.createElement(r.Fragment,null):D(C.E.ViewMyFavouritesLanding)?r.createElement(V,null):r.createElement(g.M.Provider,{value:B},r.createElement("div",{className:"p-3"},r.createElement(s.p,{heading:c.T.getPhrase(q,"header"),banner:{url:T.W.FAVOURITES_PLAYLIST.FAV_PLAYLIST_BANNER},imageCdnUrl:null===(a=Q.data)||void 0===a?void 0:a.imageCdnUrl,detailsComponent:function(){return r.createElement("div",{className:"mb-n1 font-size-normal font-weight-normal mt-1"},r.createElement(k.x,{namespace:q,phrase:"videos",options:{smartCount:re}}))}}),K?K.length?r.createElement(r.Fragment,null,r.createElement(f.E4,{videos:K,yearGroups:G.data,getVideoAppLink:x.W.getAppLink,getSeriesAppLink:z,setFavourite:L,canFavourite:j,presentationAudiences:te.data}),(X||ee)&&r.createElement(p._,{isFetching:ee,fetchNext:J})):r.createElement(M,null):r.createElement(m.S,null)))}},26323:(e,t,n)=>{n.d(t,{B:()=>l});var r=n(20354),a=n(63419);function o(e){return function(e){if(Array.isArray(e))return i(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 i(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)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(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}function l(e){var t,n,i,l,c,s,u,d,m,v=r.a.useBasicFetch(e&&a.P.getFavouritesVideosCount(e)),f=r.a.useBasicFetch(e&&a.P.getFavouritesClipsCount(e)),g=r.a.useBasicFetch(e&&a.P.getFavouritesInteractivesCount(e));return{count:(null===(t=v.data)||void 0===t?void 0:t.count)+(null===(n=g.data)||void 0===n?void 0:n.count)+(null===(i=f.data)||void 0===i?void 0:i.count),favourites:[].concat(o((null===(l=v.data)||void 0===l?void 0:l.data)||[]),o((null===(c=f.data)||void 0===c?void 0:c.data)||[]),o((null===(s=g.data)||void 0===s?void 0:s.data)||[])),isLoading:!(null===(u=v.data)||void 0===u?void 0:u.data)||!(null===(d=f.data)||void 0===d?void 0:d.data)||!(null===(m=g.data)||void 0===m?void 0:m.data)}}}}]);
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5612],{89043:(e,t,n)=>{n.d(t,{p:()=>C,v:()=>S});var r=n(1024),a=n(30314),o={renderInPortalIfExists:function(e,t){return t?(0,a.createPortal)(e,t):e}},i=n(23481),l=n(83914),c=n(36848),s=n(58130),u="shared.backButton";function d(e){var t=Object.assign({textShadow:!0},e),n=t.backToName,a=t.appLink,o=t.color,d=t.extraClasses,m=t.textShadow,v=n?i.T.getPhrase(u,"backTo",{backToName:n}):i.T.getPhrase(u,"back"),f="black"===o?"":"text-white",g=m?"text-shadow":"";return r.createElement(c.F,{appLink:a,className:"d-inline-flex align-items-center h5 mb-0 ".concat(d," ").concat(f," ").concat(g)},r.createElement(l.x,{svgName:s.vn.ChevronLeft,size:l.S.Medium}),r.createElement("span",{className:"ml-1"},v))}d.defaultProps={color:"black",extraClasses:""};var m=n(67453),v=n(54610),f=n(10587),g=n(83657),h=n(94232),p=n(79967);const b={bannerContent:"sSCTB",actionsContainer:"Z5WI2",container:"M51HJ",logoContainer:"vkeJk",headingLarge:"_8pnV",heading:"JXVBH"};var y="".concat(f.y[v.__.Banners].width,":").concat(f.y[v.__.Banners].height);function E(e){return e.length<160?"h1":b.headingLarge}var C=r.memo((function(e){var t,n=e.heading,a=e.banner,i=e.imageCdnUrl,l=e.actions,c=e.sortComponent,s=e.blockColourClass,u=r.useContext(h.n),f=(0,p.k)().xxl?1920:1200,C=e.imageOptions||{width:f,ratio:y,resizeType:v.Nq.Cover},S=!!a&&!!i&&m.j.createBannerUrl(a,{fallbackBaseUrl:i,fallbackCategoryName:n,type:v.__.Banners},C),w={className:"banner banner-header",style:S?{backgroundImage:"url('".concat(S,"')")}:{}};!a&&s&&(delete w.style,w.className+=" ".concat(s));var x=e.detailsComponent;return o.renderInPortalIfExists(r.createElement("header",Object.assign({},w),r.createElement("div",{className:"container ".concat(b.container," position-relative inner-banner")},e.backButtonAppLink&&r.createElement("div",{className:"pt-3"},r.createElement(d,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),r.createElement("div",{className:b.bannerContent},r.createElement("h1",{className:"text-white text-shadow ".concat(b.heading," ").concat(E(n))},n,x&&r.createElement(x,null)),!!l&&r.createElement("div",{className:b.actionsContainer},r.createElement(g.e,{actions:l,sortComponent:c,actionsDropdownClassName:e.actionsDropdownClassName}))),!!(null===(t=e.logo)||void 0===t?void 0:t.url)&&r.createElement("div",{className:b.logoContainer},r.createElement("img",{src:m.j.createUrl(e.logo.url,{size:v.h2.Small}),className:"rounded-circle"})))),null==u?void 0:u.container)}),(function(e,t){var n,r;return e.actions===t.actions&&e.heading===t.heading&&(null===(n=e.logo)||void 0===n?void 0:n.url)===(null===(r=t.logo)||void 0===r?void 0:r.url)}));function S(){var e=r.useContext(h.n);return o.renderInPortalIfExists(r.createElement("div",{className:"partial-banner partial-loading-background ".concat(b.banner)}),null==e?void 0:e.container)}},71020:(e,t,n)=>{n.d(t,{_:()=>u});var r=n(1024),a=n(99910),o=n(64038),i=n(83914),l=n(58130);const c={container:"VwD1b",spinner:"eJ85e"};function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){var t,n,u=(t=o.useInView(),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=u[0],m=u[1];return r.useEffect((function(){var t;e.fetchOnScroll&&m&&!e.isFetching&&(null===(t=e.fetchNext)||void 0===t||t.call(e,e.nextCursor))}),[m,e.isFetching]),r.createElement("div",{className:"p-3 text-center ".concat(c.container),ref:d},e.isFetching?r.createElement(a.Spinner,{as:"span",animation:"border",role:"status",className:c.spinner}):r.createElement(i.x,{svgName:l.vn.ChevronDown,className:"svg-container cursor-pointer",size:i.S.Large,onClick:function(){var t;return null===(t=e.fetchNext)||void 0===t?void 0:t.call(e,e.nextCursor)}}))}u.defaultProps={fetchOnScroll:!1}},74696:(e,t,n)=>{n.d(t,{S:()=>s});var r=n(1024),a=n.n(r),o=n(99910),i=n(79967),l=n(9977);const c={partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function s(e){return a().createElement(a().Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return a().createElement(u,Object.assign({key:n},e))})))}function u(e){var t=(0,i.k)(),n="sm"===l.O.getSize(t,"md"),r=e.withReordering&&!t.xs;return a().createElement(o.Row,{noGutters:!0,className:"".concat(n?"":"py-2")},a().createElement(o.Col,Object.assign({},l.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(n?"pb-2 pr-2":"mb-1 px-2")}),a().createElement(o.Row,null,!!r&&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(o.Col,{xs:l.O.getThumbnailColSize(r)},a().createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-lg"," ").concat(c.partialThumbnail)})))),a().createElement(o.Col,Object.assign({},l.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}},94644:(e,t,n)=>{n.d(t,{r:()=>u});var r=n(81886),a=n(50242),o=n(67058),i=n(49075),l=n(14553),c=n(49267),s={notFound:o.d,forbidden:{rating:l.q,yearLevel:l.q,region:c.a,privacy:l.q},badRequest:i._};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var o;o="number"==typeof e?e:e.status;var i=Object.assign(Object.assign({},s),t);o&&r.Q.ErrorHelper.isStatusCodeError(o)&&(o!==a.o.NotFound?o!==a.o.Forbidden?n.badRequest||r.Q.ErrorHelper.throw(new i.badRequest):n.forbidden||r.Q.ErrorHelper.throw(new i.forbidden.privacy):n.notFound||r.Q.ErrorHelper.throw(new i.notFound))}}},63936:(e,t,n)=>{n.d(t,{K:()=>s});var r=n(1024),a=n(50242),o=n(79014),i=n(45719),l=n(8843);function c(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}function s(e,t,n,s,u,d){var m,v,f=(m=(0,r.useState)(0),v=2,function(e){if(Array.isArray(e))return e}(m)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(m,v)||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}}(m,v)||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.")}()),g=f[0],h=f[1],p=t,b=(0,i.P)((function(t){if(!e)return null;var n=e(t);return n?n.key:null}),s,u);return(0,l.M)({fetchNextPage:function(){if(t&&e&&b)return h((function(e){return e+1})),p(b.nextCursor)},hasMore:!!(null==b?void 0:b.nextCursor),isFetching:null==b?void 0:b.isFetching,scrollContainer:d}),(0,r.useEffect)((function(){b&&b.shouldInitialFetch&&t&&(p(),h((function(e){return e+1})))}),[null==b?void 0:b.shouldInitialFetch,t]),(0,r.useEffect)((function(){var e,t;if((null==b?void 0:b.statusCode)&&o.q.isFunction(n)){var r=+(null===(t=null===(e=b.statusCode)||void 0===e?void 0:e.toString())||void 0===t?void 0:t.substr(0,1));r!==a.k.ClientError&&r!==a.k.ServerError||n(g,b.statusCode)}}),[null==b?void 0:b.statusCode]),{items:null==b?void 0:b.items,hasMore:!!(null==b?void 0:b.nextCursor),nextCursor:null==b?void 0:b.nextCursor,isFetching:null==b?void 0:b.isFetching,totalItems:null==b?void 0:b.totalItems}}},8843:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(1024),a=n(79014),o=400;function i(e){var t=function(){if(!e.isFetching){if(e.scrollContainer){var t=e.scrollContainer;if(t.getBoundingClientRect().height+t.scrollTop<t.scrollHeight-o)return}else if(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-o)return;e.fetchNextPage()}};(0,r.useEffect)((function(){var n=a.q.throttle(t,200),r=e.scrollContainer||window;return e.hasMore&&r.addEventListener("scroll",n),function(){return r.removeEventListener("scroll",n)}}),[e.hasMore,e.fetchNextPage,e.scrollContainer])}},87821:(e,t,n)=>{n.d(t,{p:()=>a});var r=n(33192),a={userVideoHistory:function(e,t,n,a){var o="video:history",i="{gateway}/v1/users/me/watch-history";return e&&(o+=":".concat(e),i+="?cursor=".concat(e)),{key:o,url:i,formatData:function(e){return{data:e.data.map((function(e){var t=r.utc(e.lastTimeWatched).local().format(),n=r(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:n})})),pagination:e.pagination}},success:t,error:n,always:a}},videoHistory:function(e,t,n,r,a){var o=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(o.join("&")),url:"{gateway}/v1/videos/history?".concat(o.join("&")),normalizeOptions:{namespace:t},formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:n,error:r,always:a}}}},41063:(e,t,n)=>{n.d(t,{b:()=>i});var r=n(22902),a=n(37802),o=n(16714);function i(){var e=(0,r.T)().hasPermissions;return(0,a.r)(null).manageVideoAccess&&e(o.C.ManageVideoAccess)}},44110:(e,t,n)=>{n.d(t,{i:()=>l});var r=n(20354),a=n(25925),o=n(89454),i=n(86698),l=function(e){var t=(0,i.y)(a.R.Subject,null,e,!!e).presentation;return r.a.useBasicFetch(!!t&&o.O.presentationAudiences(t.id))}},97816:(e,t,n)=>{n.d(t,{V:()=>f});var r=n(1024),a=n.n(r),o=n(20354),i=n(31949),l=n(1575),c=n(21750),s=n(87821),u=n(63419);function d(e){return function(e){if(Array.isArray(e))return m(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 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}}(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 m(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 v={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function f(e){var t,n,r,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=Object.assign(Object.assign({},v),m),g=f.ratings,h=f.favourites,p=f.watchHistory,b=f.hasCurriculumLinks,y=o.a.useBasicFetch(i.N.currentUser()),E=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),C=y.data;t=a().useMemo((function(){if(!(null==C?void 0:C.isAuthenticated))return[];var e=[];return g&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&l.R.videoRatings(E,m.flightNamespace)])),h&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&C&&u.P.isFavourited(C.id,E,m.flightNamespace)])),p&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&C&&s.p.videoHistory(E,m.flightNamespace)])),b&&(e=[].concat(d(e),[!!(null==E?void 0:E.length)&&c.x.hasCurriculumLinks(E,null,m.flightNamespace)])),e.filter(Boolean)}),[null==E?void 0:E.length]),n=!!e,r=o.a.useGetFetch(),a().useEffect((function(){n&&t.length&&t.forEach((function(e){r(e)}))}),[t.length])}},40928:(e,t,n)=>{n.r(t),n.d(t,{FavouritesView:()=>W});var r=n(1024),a=n.n(r),o=n(58566),i=n(20354),l=n(28400),c=n(23481),s=n(89043),u=n(94644),d=n(69883),m=n(74696),v=n(31949),f=n(4632),g=n(51365),h=n(65858),p=n(71020),b=n(63936),y=n(11025),E=n(22902),C=n(16714),S=n(63419),w=n(97037),x=n(67753),k=n(83345),N=n(39151),F=n(1666),A=n(97291),I=n(14070),O=n(97816),P=n(44110),T=n(99742),L=n(83914),j=n(58130),B=n(23232),D="shared.favouritesEmptyState";function M(){return a().createElement(k.D.Provider,{value:D},a().createElement(B.u,null,a().createElement(B.u.Image,{src:T.W.EmptyStates.FAVOURITED_VIDEOS}),a().createElement(B.u.Heading,{className:"h3 d-flex align-items-center justify-content-center"},a().createElement(k.x,{phrase:"emptyStateHeading1"}),a().createElement("div",{className:"box-shadow rounded-circle p-1 bg-white mx-1"},a().createElement(L.x,{svgName:j.vn.HeartOutline,size:L.S.Small})),a().createElement(k.x,{phrase:"emptyStateHeading2"})),a().createElement(B.u.Info,null,a().createElement(k.x,{phrase:"info"})),a().createElement(B.u.Cta,{text:c.T.getPhrase(D,"cta"),appLink:{application:A.O.DASHBOARD,action:I.e.Dashboard.HOME}})))}function V(){return a().createElement(k.D.Provider,{value:D},a().createElement(B.u,null,a().createElement(B.u.Image,{src:T.W.EmptyStates.FAVOURITED_VIDEOS_PUBLIC}),a().createElement(B.u.Heading,null,a().createElement(k.x,{phrase:"publicHeading"})),a().createElement(B.u.Info,null,a().createElement(k.x,{phrase:"publicInfo"})),a().createElement(B.u.Cta,{text:c.T.getPhrase(D,"publicCta"),appLink:{application:A.O.SIGN_UP,action:I.e.SignUp.SIGN_UP},analyticsData:{},analyticsOptions:{actionType:h.UserAction.Click,location:h.LocationContext.MyFavouritesLanding,entity:h.EntityType.AppLink,workflowPhase:h.WorkflowPhase.Start,descriptor:h.SignUpDescriptors.SignUp}})))}var H=n(65986),_="shared.favourites",U=n(68677),R=n(26323),q="shared.favourites",z=function(e){return{application:A.O.SERIES,action:I.e.Series.SERIES,args:[e.id,l.m.slugify(e.name)]}};function W(){var e,t,n,a,l=(0,o.useDispatch)(),A=(0,d.Z)(),I=(0,w.c)(h.LocationContext.VideoThumbnail),L=I.setFavourite,j=I.canFavourite,B=function(){var e=(0,H._)(H.i.VideoItem),t=(0,w.c)(h.LocationContext.VideoThumbnail).setFavourite;return function(n){return y.M.getCanBeConsumed(n).canConsume?e(n):[{label:c.T.getPhrase(_,"removeFromFavourites"),button:!1,className:"btn btn-link text-danger",onClick:function(){return t(n,!1)}}]}}();(0,U.M)({title:c.T.getPhrase(q,"pageTitle")});var D=(0,E.T)().hasLocalPermissions,W=i.a.useBasicFetch(v.N.currentUser()),G=i.a.useBasicFetch((null===(e=W.data)||void 0===e?void 0:e.isAuthenticated)&&F.h.yearGroups(W.data.customerId)),Q=i.a.useBasicFetch(N.L.config()),Y=function(e){return S.P.getFavourites(W.data.id,e)},J=function(e){return i.a.getFetch(l)(Y(e))},$=!D(C.E.ViewMyFavouritesLanding)&&W.hasCompleted,Z=(0,b.K)(!!$&&Y,J,(function(e,t){if(1===e)return(0,u.r)(t);A.error(c.T.getPhrase(q,"error"))})),K=Z.items,X=Z.hasMore,ee=Z.isFetching;(0,O.V)(null!==(t=null==K?void 0:K.filter(y.M.isVideo))&&void 0!==t?t:[],{hasCurriculumLinks:!0});var te=(0,P.i)(),ne=(0,R.B)(null===(n=W.data)||void 0===n?void 0:n.id),re=ne.count;return ne.isLoading?r.createElement(r.Fragment,null):D(C.E.ViewMyFavouritesLanding)?r.createElement(V,null):r.createElement(g.M.Provider,{value:B},r.createElement("div",{className:"p-3"},r.createElement(s.p,{heading:c.T.getPhrase(q,"header"),banner:{url:T.W.FAVOURITES_PLAYLIST.FAV_PLAYLIST_BANNER},imageCdnUrl:null===(a=Q.data)||void 0===a?void 0:a.imageCdnUrl,detailsComponent:function(){return r.createElement("div",{className:"mb-n1 font-size-normal font-weight-normal mt-1"},r.createElement(k.x,{namespace:q,phrase:"videos",options:{smartCount:re}}))}}),K?K.length?r.createElement(r.Fragment,null,r.createElement(f.E4,{videos:K,yearGroups:G.data,getVideoAppLink:x.W.getAppLink,getSeriesAppLink:z,setFavourite:L,canFavourite:j,presentationAudiences:te.data}),(X||ee)&&r.createElement(p._,{isFetching:ee,fetchNext:J})):r.createElement(M,null):r.createElement(m.S,null)))}},26323:(e,t,n)=>{n.d(t,{B:()=>l});var r=n(20354),a=n(63419);function o(e){return function(e){if(Array.isArray(e))return i(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 i(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)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(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}function l(e){var t,n,i,l,c,s,u,d,m,v=r.a.useBasicFetch(e&&a.P.getFavouritesVideosCount(e)),f=r.a.useBasicFetch(e&&a.P.getFavouritesClipsCount(e)),g=r.a.useBasicFetch(e&&a.P.getFavouritesInteractivesCount(e));return{count:(null===(t=v.data)||void 0===t?void 0:t.count)+(null===(n=g.data)||void 0===n?void 0:n.count)+(null===(i=f.data)||void 0===i?void 0:i.count),favourites:[].concat(o((null===(l=v.data)||void 0===l?void 0:l.data)||[]),o((null===(c=f.data)||void 0===c?void 0:c.data)||[]),o((null===(s=g.data)||void 0===s?void 0:s.data)||[])),isLoading:!(null===(u=v.data)||void 0===u?void 0:u.data)||!(null===(d=f.data)||void 0===d?void 0:d.data)||!(null===(m=g.data)||void 0===m?void 0:m.data)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5776],{3278:(e,t,n)=>{n.d(t,{z:()=>m});var a=n(1024),r=n.n(a),i=n(23481),o=n(83345),c=n(53957),s=n(38502),l=n(65858),d=n(55460);const u={pillTab:"bMJM0"};var p="discover.header";function m(e){var t,n,a,m,b,f;if(!e.type)return r().createElement(r().Fragment,null);if(e.type===c.DashboardUserType.Learner||e.hasStudentExperience)return r().createElement("div",{className:"py-3"},r().createElement("h1",{className:"h2 mb-0"},r().createElement(o.x,{namespace:p,phrase:"heading"})));var y=[{name:i.T.getPhrase(p,"forYou"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.forYou,active:"forYou"===e.active,analyticsData:{name:i.T.getPhrase(p,"forYou"),url:d.AppLinkHelper.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.forYou)},analyticsOptions:{actionType:l.UserAction.Click,entity:l.EntityType.Url,location:l.LocationContext.MagicTabs}},{name:i.T.getPhrase(p,"whatsNew"),appLink:null===(a=e.appLinks)||void 0===a?void 0:a.whatsNew,active:"whatsNew"===e.active,analyticsData:{name:i.T.getPhrase(p,"whatsNew"),url:d.AppLinkHelper.getHref(null===(m=e.appLinks)||void 0===m?void 0:m.whatsNew)},analyticsOptions:{actionType:l.UserAction.Click,entity:l.EntityType.Url,location:l.LocationContext.MagicTabs}}];return e.showCalendar&&y.push({name:i.T.getPhrase(p,"calendar"),appLink:null===(b=e.appLinks)||void 0===b?void 0:b.calendar,active:"calendar"===e.active,analyticsData:{name:i.T.getPhrase(p,"calendar"),url:d.AppLinkHelper.getHref(null===(f=e.appLinks)||void 0===f?void 0:f.calendar)},analyticsOptions:{actionType:l.UserAction.Click,entity:l.EntityType.Url,location:l.LocationContext.MagicTabs}}),r().createElement("div",{className:"py-3 text-center"},r().createElement(s.r,{tabs:y,className:u.pillTab}))}},38502:(e,t,n)=>{n.d(t,{r:()=>d});var a=n(1024),r=n.n(a),i=n(11607),o=n(36848),c=n(49985),s=n(87432),l=n(76246);function d(e){var t;return r().createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:""},r().createElement("ul",{className:"list-unstyled d-inline-block m-0 ".concat(s.Z.pillTabSelector)},e.tabs.map((function(e){return r().createElement("li",{className:"p-0 ".concat(e.active?"btn btn-dark":"btn btn-outline-dark"),key:e.name},e.appLink?r().createElement(o.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"cursor-pointer d-flex justify-content-center text-decoration-none text-reset px-2 ".concat(s.Z.pillItem)},e.name,"number"==typeof e.count&&r().createElement("div",{className:"pl-2"},r().createElement(l.C,{type:l.g.Count,data:e.count}))):r().createElement(i.L,{className:"".concat(s.Z.pillItem," d-flex justify-content-center p-2"),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&c.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},e.name,"number"==typeof e.count&&r().createElement("div",{className:"pl-2"},r().createElement(l.C,{type:l.g.Count,data:e.count}))))}))))}},74590:(e,t,n)=>{n.d(t,{N:()=>m});var a=n(1024),r=n.n(a),i=n(35242),o=n(55171),c=n(25925),s=n(37802),l=n(86698);function d(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,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return c}}(e,t)||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}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var p=[o.e.PresentationIds.US_ELEMENTARY,o.e.PresentationIds.SCOTLAND_PRIMARY,o.e.PresentationIds.ENGLAND_PRIMARY];function m(e){var t=(0,s.r)(null),n=t.hasSpecialEventCalendar,a=t.isLoadingSettings,o=(0,l.y)(c.R.Subject,null,e,!0).presentation,u=!a&&!n,m=(null==o?void 0:o.id)&&!p.includes(+o.id),b=d(r().useState(!u&&!m),2),f=b[0],y=b[1],v=d(r().useState(a||!(null==o?void 0:o.id)),2),g=v[0],h=v[1];return r().useEffect((function(){u||m?y(!1):g||y(!0),h(a||!(null==o?void 0:o.id))}),[n,null==o?void 0:o.id,g]),i.h.isDevelopment?{showCalendar:!0,isLoading:!1}:{showCalendar:f,isLoading:g}}},5776:(e,t,n)=>{n.r(t),n.d(t,{CuratedDiscoverView:()=>te});var a=n(1024),r=n.n(a),i=n(20354),o=n(2948),c=n(57900),s=n(23481),l=n(97395),d=n(53957),u=n(75896),p=n(97531),m=n(21366),b=n(3278),f=n(22902),y=n(16714),v=n(23232),g=n(83345),h=n(36532),T=n(58130),E="subjects.discoverDashboardEmptyState";function S(e){var t,n,a=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===d.DashboardStatus.Archived;return r().createElement(v.u,null,r().createElement(v.u.Image,{src:e.imageUrl}),r().createElement(v.u.Heading,null,r().createElement(g.x,{namespace:E,phrase:"heading"})),r().createElement(v.u.Info,null,r().createElement(g.x,{namespace:E,phrase:"info"})),r().createElement(h.u,{title:a?s.T.getPhrase(E,"archivedCtaTooltip"):"",spanHack:!0},r().createElement(v.u.Cta,{text:s.T.getPhrase(E,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:T.vn.Plus,disabled:a})))}function A(e){var t,n,a=u.m.sortBy(null===(t=e.dashboard)||void 0===t?void 0:t.widgets,"index"),i=(0,(0,f.T)().hasPermissions)(y.C.StudentExperience);function o(t,n,a){var r=m.S.getWidgetParams(n,a,m.S.getDashboardTargetType(e.dashboard));return e.getWidgetContentRequest(t,r)}var c=e.isReadonly&&!(null==a?void 0:a.length);return r().createElement(r().Fragment,null,r().createElement(b.z,{type:null===(n=e.dashboard)||void 0===n?void 0:n.userType,appLinks:e.headerAppLinks,hasStudentExperience:e.hasStudentExperience,showCalendar:e.showCalendar,active:"forYou"}),a.map((function(t,n){return r().createElement(p.L,{key:t.id,id:t.id,imageCdnUrl:e.imageCdnUrl,getContentRequest:o,audiences:e.audiences,name:t.name,description:t.description,templateId:t.templateId,metadata:t.metadata,presentation:e.presentation,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===t.id,widgetTypeId:t.widgetId,canManageDiscoverPreferences:e.canManageDiscoverPreferences,onSubmitFeedback:e.onSubmitFeedback,updatePreferences:e.updatePreferences,yearGroups:e.yearGroups,curriculums:e.curriculums,lazyLoad:e.lazyLoad,dashboardTarget:d.DashboardTargetType.Discover,widgetIndex:n,showVideoGuidance:!i})})),c&&r().createElement(S,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var C=n(39151),k=n(69454),D=n(38143),I=n(87348),L=n(10874),N=n(97291),O=n(14070),P=n(99742);const w={banner:"Vqx6B"};var U="shared.upgradeVideoBanner";function F(){return a.createElement("div",{className:"py-4 px-3 rounded h4 ".concat(w.banner," border"),style:{backgroundImage:'url("'.concat(P.W.Upgrade.VIDEO_BANNER,'")')}},a.createElement(g.x,{namespace:U,phrase:"message"}),a.createElement(L.h,{svgName:T.vn.Play,appLink:{application:N.O.DEFAULT,action:O.e.Default.LITE_UPGRADE_VIDEO},className:"btn btn-outline-dark ml-3 align-middle"},a.createElement(g.x,{namespace:U,phrase:"button"})))}var x=n(31949),R=n(97037),_=n(80889),M=n(1666),j=n(68677),H=n(65858),B=n(49985),W=n(52333),Y=n(18921),V=n(23737),G=n(74590),z=n(28400),q=n(67753),Z=n(17475),J=n(183),$="classification-latest-releases",Q=n(25925),K=n(86698);function X(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 ee=s.T.encloseNamespace("dashboard.dashboard");function te(e){var t,n,a=i.a.useBasicFetch(C.L.config()),s=i.a.useBasicFetch(x.N.currentUser()),p=(0,f.T)(),m=p.hasLocalPermissions,b=p.hasPermissions,v=i.a.useBasicFetch(m(y.E.ManageDiscoverPreferences)&&s.data&&M.h.customer(s.data.customerId)),g=i.a.useBasicFetch((null===(t=s.data)||void 0===t?void 0:t.isAuthenticated)&&M.h.yearGroups(s.data.customerId)),h=(0,K.y)(Q.R.Curriculum).availablePresentations,T=(0,V.y)({targetType:d.DashboardTargetType.Discover,queryParams:e.queryParams,presentationSlug:e.presentationSlug}),E=T.dashboard,S=T.presentation,L=T.audiences,P=(0,I.Q)(),w=i.a.useGetFetchAsync(),U=(0,R.c)(H.LocationContext.Dashboard),te=U.setFavourite,ne=U.canFavourite;(0,j.M)({title:ee("pageTitle"),description:ee("pageDescription"),canonicalLink:l._.getCanonicalLink()});var ae,re,ie,oe=(ae=(0,o.D)(D.g.AUDIENCE_FILTER,void 0,{storage:c.Z1.SessionStorage}),re=1,function(e){if(Array.isArray(e))return e}(ae)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return c}}(ae,re)||function(e,t){if(e){if("string"==typeof e)return X(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)?X(e,t):void 0}}(ae,re)||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.")}())[0],ce=(ie=k.T.getAudienceParams(oe),{classification:function(e){return{application:N.O.SUBJECT,action:O.e.Subjects.CLASSIFICATION,args:[null==e?void 0:e.id,z.m.slugify(null==e?void 0:e.name)],params:ie||{}}},classificationTopics:function(){return{application:N.O.SUBJECT,action:O.e.Subjects.CLASSIFICATION_TOPICS,params:ie||{}}},videoType:function(e,t){return q.W.getAppLink(e,{context:J.Q.Widget,contextId:t})},series:function(e){return{application:N.O.SERIES,action:O.e.Series.SERIES,args:e?[e.id,z.m.slugify(e.name)]:[]}},playlist:function(e){return{application:N.O.PLAYLISTS,action:O.e.Playlists.PLAYLIST,args:[e.id,z.m.slugify(e.name)]}},latestReleases:function(){return{application:N.O.CONTENT_UPDATES,action:O.e.ContentUpdates.CONTENT_UPDATES}},allTopics:function(){return{application:N.O.SUBJECT,action:O.e.Subjects.CLASSIFICATION_ALL}},classificationLatestReleases:function(e){return e.id===$?{application:N.O.CONTENT_UPDATES,action:O.e.ContentUpdates.CONTENT_UPDATES}:{application:N.O.CONTENT_UPDATES,action:O.e.ContentUpdates.CLASSIFICATION_UPDATE,args:[e.id,z.m.slugify(e.name)]}},widgetVideoList:function(e,t){return{application:N.O.DASHBOARD,action:O.e.Dashboard.DASHBOARD,args:[e,z.m.slugify(t)]}},watchHistory:function(){return{application:N.O.WATCH_HISTORY,action:O.e.WatchHistory.HOME}},rating:function(e,t){return{application:N.O.SEARCH,action:O.e.Search.HOME,params:{moviesAndTv:!0,rating:Z.S.getFrontendParamValue([u.m.first(t),e])}}},company:function(e){return{application:N.O.MOVIES_AND_TV,action:O.e.MoviesAndTv.COMPANY_DASHBOARD,args:[e.id,z.m.slugify(e.name)]}}}),se=(0,G.N)(e.presentationSlug).showCalendar;return r().createElement("div",{className:"bg-white px-4"},P.isUpgrading&&(null===(n=E.data)||void 0===n?void 0:n.userType)===d.DashboardUserType.Staff&&r().createElement(F,null),r().createElement(A,{currentUser:s.data,dashboard:E.data,widgetAppLinks:ce,headerAppLinks:{forYou:{application:N.O.DASHBOARD,action:O.e.Dashboard.HOME},whatsNew:{application:N.O.CONTENT_UPDATES,action:O.e.ContentUpdates.CONTENT_UPDATES},calendar:{application:N.O.CALENDAR,action:O.e.Calendar.CALENDAR}},presentation:S,curriculums:h,imageCdnUrl:a.data.imageCdnUrl,getWidgetContentRequest:_._.dashboardWidgetContent,setFavourite:te,audiences:L.data,canFavourite:ne,updatePreferences:function(e,t){return w(_._.updateWidgetPreferences(e,t,s.data))},canManageDiscoverPreferences:m(y.E.ManageDiscoverPreferences),onSubmitFeedback:b(y.C.CanSubmitFeedback)&&function(e){var t=w(W.n.sendDiscoverFooterFeedback(e,s.data,v.data,S,E.data,b(y.C.StudentExperience)));return B.k.logUserAction({feedbackType:e.type,content:e.content,presentationId:S.id,dashboardId:E.data.id},{actionType:H.UserAction.Submit,location:H.LocationContext.DiscoverFooter,entity:H.EntityType.Feedback,workflowPhase:H.WorkflowPhase.Complete}),t},hasStudentExperience:b(y.C.StudentExperience),yearGroups:g.data,lazyLoad:!Y.f.isBot(),showCalendar:se}))}},52333:(e,t,n)=>{n.d(t,{n:()=>c});var a=n(99940),r=n(86613),i=n(19808);function o(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={sendDiscoverFooterFeedback:function(e,t,n,a,r,i){var o=e.content.split("\n").join("<br />");return s("Discover Footer Feedback","\n <b>Type:</b> ".concat("positive"===e.type?"Positive":"Negative","\n <br />\n <b>Location:</b> Discover Footer\n <br />\n <b>Presentation:</b> ").concat(a.description," (ID: ").concat(a.id,")\n <br />\n <b>Dashboard:</b> ").concat(r.name," (ID: ").concat(r.id,")\n <br />\n ").concat(l(t,n,i),"\n <br />\n <b>Feedback:</b>\n <br />\n ").concat(o,"\n "),t,["discover",i?"student":"staff"])},sendTopicFooterFeedback:function(e,t,n,a,r,i,o){var c=e.content.split("\n").join("<br />");return s("Topic Footer Feedback","\n <b>Type:</b> ".concat("positive"===e.type?"Positive":"Negative","\n <br />\n <b>Location:</b> Topic Footer\n <br />\n <b>Presentation:</b> ").concat(a.description," (ID: ").concat(a.id,")\n <br />\n <b>Classification:</b> ").concat(r.name," (ID: ").concat(r.id,")\n <br />\n <b>Dashboard:</b> ").concat(i.name," (ID: ").concat(i.id,")\n <br />\n ").concat(l(t,n,o),"\n <br />\n <b>Feedback:</b>\n <br />\n ").concat(c,"\n "),t,["topics",o?"student":"staff"])}};function s(e,t,n,c){var s,l=["new product","in product feedback"].concat(function(e){if(Array.isArray(e))return o(e)}(s=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(s)||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.")}());n.role===r.i.Admin&&l.push("administrator");var d=function(e){switch(e){case i.b.AU:return"au";case i.b.NZ:return"nz";case i.b.UK:return"uk";case i.b.US:return"us"}}(n.instanceRegion);return d&&l.push(d),{url:"/api/productboard/notes",key:"productboard:feedback",data:{title:e,content:t,user:{email:n.emailVerified?n.email:""},tags:l},type:a.k.POST}}function l(e,t,n){return"\n <b>User:</b>\n <br />\n <li>ID: ".concat(e.id,"</li>\n <li>Username: ").concat(e.username,"</li>\n <li>Email: ").concat(e.email,"</li>\n <li>User Type / Role: ").concat(function(e,t){return t?"Learner":e.role===r.i.Admin?"Admin":"Staff"}(e,n),"</li>\n <li>Customer ID: ").concat(e.customerId,"</li>\n <li>CVC ID: ").concat(t.crmId,"</li>\n <li>Customer Name: ").concat(t.name,"</li>\n <li>Instance Region: ").concat(e.instanceRegion,"</li>\n <li>Content Region: ").concat(e.contentRegion,"</li>\n ")}},87432:(e,t,n)=>{n.d(t,{Z:()=>a});const a={pillTabSelector:"Hdi6o",pillItem:"hUJx1"}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 5920-7b965a6ae3-lite.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5920],{98364:(e,t,n)=>{n.d(t,{V:()=>o});var a=n(1024),i=n.n(a);const r={emoji:"d86p2"};function o(e){return i().createElement(i().Fragment,null,i().createElement("span",{className:r.emoji},e.emoji),e.children)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(1024),i=n(92802),r=n(33936),o=n(83345),l=n(2102),c="shared.formButtons";function s(e){var t=(0,i.u6)(),n=(0,r.l)(t);return a.createElement(l.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:()=>E,W:()=>T});var a=n(1024),i=n(92802),r=n(99910),o=n(1048),l=n(79014),c=n(73814),s=n(36848),d=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 i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function u(e){var t=e.label,n=e.checkboxLabelClassName,i=e.checkboxLabelFontWeight,o=e.className,l=d(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(r.Form.Group,null,a.createElement("div",{className:"custom-control custom-checkbox ".concat(o)},a.createElement(E,Object.assign({className:"custom-control-input"},l)),a.createElement(r.Form.Label,{className:"custom-control-label cursor-pointer ".concat("normal"===i?"font-weight-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(58130),g=n(83345);function v(e){var t=(0,i.u6)().values[e.fieldName];return"string"!=typeof t?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-right text-muted font-weight-normal"},t.length,"/",e.limit," characters")}const f={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG"};function h(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 y=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 i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n},b="shared.formField";function E(e){var t,n,r=e.children,c=y(e,["children"]),s=(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,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 h(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)?h(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.")}()),d=s[0],u=s[1],g=l.q.isFunction(r)?function(e){return r(e)}:a.Children.count(r)?r:null;if("password"!==c.type)return a.createElement(i.gN,Object.assign({},o.t.omit(c,["formSize"])),g);var v="position-relative ".concat(f.passwordContainer);return c.className&&(v+=" ".concat(c.className)),c.disabled&&(v+=" ".concat(f.passwordContainerDisabled)),a.createElement("div",{className:v},a.createElement(i.gN,Object.assign({},o.t.omit(c,["formSize","type","className"]),{type:d,className:"".concat(f.passwordInput," border-0 w-100 h-100 outline-none rounded")}),g),"password"===c.type&&a.createElement(m.x,{svgName:"password"===d?p.vn.VisibleOn:p.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(f.revealPassword),onClick:function(){u("password"===d?"text":"password")}}))}function T(e){var t=e.label,n=e.className,l=e.showCharacterCounter,s=e.showRequiredStar,d=e.infoTooltip,h=e.infoTooltipPlacement,T=e.infoText,w=e.formSize,L=e.showOptionalLabel,C=y(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),k=(0,i.u6)(),x=k.errors,N=k.touched,S=function(){};if("checkbox"===C.type){var O=o.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(O.onChange=S),a.createElement(u,Object.assign({},O))}var j=Object.assign(Object.assign({},C),{className:c.w.getCustomFormControlClassName(x,N,C.name,w,n)});return e.disabled&&(j.onChange=S),a.createElement(r.Form.Group,null,!!t&&a.createElement(r.Form.Label,{htmlFor:C.id,className:"d-flex align-items-center"},t,s&&a.createElement("span",{className:"text-danger"},"*"),d&&a.createElement(m.x,{className:"svg-container text-muted ".concat(f.infoTooltip),svgName:p.vn.Info,title:d,tooltipPlacement:h,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-muted"}," ",a.createElement(g.x,{namespace:b,phrase:"optional"})),!!l&&!!C.maxLength&&a.createElement("div",{className:"ml-auto"},a.createElement(v,{fieldName:C.name,limit:C.maxLength}))),a.createElement(E,Object.assign({},j)),!!T&&a.createElement(r.Form.Text,{className:"text-muted"},T),a.createElement(i.Bc,{name:C.name},(function(e){return a.createElement(r.Form.Control.Feedback,{type:"invalid"},e)})))}E.defaultProps={autoComplete:"off"},T.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>d,n:()=>s});var a=n(1024),i=n(92802),r=n(79014),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 i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,d=e.onSubmit,u=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(i.J9,Object.assign({enableReinitialize:!0},u,{initialValues:m,onSubmit:function(t,a){var i=a.setSubmitting,r=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;d(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&r(),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,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}}(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.")}()),d=s[0],u=s[1];o(d,u)}i(!1)}))},initialStatus:p}),r.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function d(){return(0,i.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},97531:(e,t,n)=>{n.d(t,{L:()=>cn});var a=n(1024),i=n.n(a),r=n(20354),o=n(79014),l=n(65294),c=n(53957),s=n(58130),d=n(78479),u=n(42308),m=n(11518),p=n(58704),g=n(5281),v=n(58564),f=n(49439);function h(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 y=i().memo((function(e){var t,n,a=e.data,r=e.seriesAppLink,o=e.context,l=e.thumbnailSize,s=e.preloadImage,d=(t=(0,f.L)({className:"lZsTl",style:{transform:"scale(".concat((null==o?void 0:o.type)===c.WidgetType.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,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 h(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)?h(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=d[0],m=d[1];i().useEffect((function(){e.onHover(m)}),[m]);var p="lcmBu";return o.type===c.WidgetType.LargeRow&&(p="iVL1A"),i().createElement("div",{ref:u,className:"px-1 flex-shrink-0 position-relative ".concat(p," ").concat("CmXOx")},i().createElement(v.u,{video:a,type:"expandable",appLink:e.getAppLink(a),seriesAppLink:r,imageOptions:{size:l},preload:s,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,hovering:m}))}));function b(e){var t,n,a;return i().createElement(g.k,{name:e.name,description:e.description,type:c.WidgetType.Row,contents:p.z.Videos,collection:e.content,childComponent:y,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===(a=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===a?void 0:a.call(n,e.id,e.name)})}function E(e){var t,n,a;return i().createElement(g.k,{name:e.name,description:e.description,type:c.WidgetType.LargeRow,contents:p.z.Videos,collection:e.content,childComponent:y,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===(a=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===a?void 0:a.call(n,e.id,e.name)})}var T=n(36848),w=n(34004),L=n(65858);const C={largeSeriesItem:"HZ00X",smallSeriesItem:"PQ2sv",partialLoading:"hMoHO"};function k(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}),i=Object.assign(Object.assign({},e.analyticsOptions),{actionType:L.UserAction.Click,entity:L.EntityType.Series,descriptor:L.ClickDescriptor.TallPoster});return a.createElement(T.F,{key:t.id,appLink:e.getAppLink(t),className:"position-relative px-1 flex-shrink-0 ".concat(e.isSmall?C.smallSeriesItem:C.largeSeriesItem," "),analyticsData:n,analyticsOptions:i},a.createElement(w.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall}))}var x=n(79967),N=n(55827);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}function O(e){return i().createElement(g.k,{name:e.name,description:e.description,type:c.WidgetType.Row,contents:p.z.Series,collection:e.content,childComponent:k,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})}var j=n(3626),D=n(94495);function A(e){var t,n,a,r,o=e.content[0];return i().createElement(i().Fragment,null,i().createElement(D.B,{name:e.name,description:e.description}),i().createElement(j.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),seriesAppLink:null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.series)||void 0===r?void 0:r.call(a,o.series),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,imageCdnUrl:e.imageCdnUrl,hideInteractiveBadge:!0,showVideoGuidance:e.showVideoGuidance,yearGroups:e.yearGroups,curriculums:e.curriculums}))}var F=n(99910);function I(){return i().createElement("div",{className:"partial-loading-background badge-pill mr-2",style:{height:"2.5rem",width:"9.375rem"}})}function P(){return i().createElement("div",{className:"d-flex align-items-center mw-100"},i().createElement(I,null),i().createElement(I,null))}var W=n(9513),M=n(65163),U=n(47770),V=n(16450),R=n(43741),B=n(67453),z=n(54610);function H(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 G(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 Z(e){var t,n,a=function(e,t){var n;if((null===(n=e.metadata)||void 0===n?void 0:n.appLink)===c.CuratedDashboardAppLink.ClassificationLatestReleases)return{id:"classification-latest-releases",name:"All new releases",cover:{url:B.j.getUrlById(e.imageCdnUrl,z.__.Covers,e.metadata.imageId,z.h2.Medium)},totalVideos:G(t)}}(e,e.content),r=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===c.CuratedDashboardAppLink.ClassificationLatestReleases;return i().createElement(V.e,{collection:a?[a].concat((n=e.content,function(e){if(Array.isArray(e))return H(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 H(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)?H(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:r?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:W.Vz,partialLoadingComponent:R.Q,heading:e.name,getSubtitle:r?_:void 0,description:e.description,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}var Y=n(98981),X={actionType:L.UserAction.Click,entity:L.EntityType.Playlist,location:L.LocationContext.PlaylistListItem,descriptor:L.ClickDescriptor.Cover};function $(e){return a.createElement("div",null,a.createElement(D.B,{name:e.name,description:e.description}),a.createElement(F.Row,{noGutters:!0,className:"mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(F.Col,{key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(Y.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===i?void 0:i.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),X)}))}))))}var q=n(49542),J=n(78276),Q=n(5465);const K={slidingSubjectSmall:"fgIje",slidingSubjectLarge:"CJwKL",heading:"P16Yg",posterContainer:"VtrLt",partialLoading:"IgCcl",labelContainer:"ujwlj"};function ee(e){var t,n=e.data,i=e.preloadImage,r=Object.assign(Object.assign({},e.analyticsOptions),{entity:L.EntityType.Classification,actionType:L.UserAction.Click,descriptor:L.ClickDescriptor.TallPoster});return a.createElement("div",{className:(t=K.posterContainer,e.context.type===c.WidgetType.Row?t+=" ".concat(K.slidingSubjectSmall):t+=" ".concat(K.slidingSubjectLarge),t)},a.createElement(J.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:z.__.TallPosters,preload:i,imageOptions:{size:z.h2.Medium},imageClassName:"rounded-lg",analyticsData:e.analyticsData,analyticsOptions:r},a.createElement(Q.oy,{type:Q.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat(K.heading)},n.name)))}function te(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 ne="explore-all-topics";function ae(e){var t,n=function(e){var t,n,a,i,r;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)===c.CuratedDashboardAppLink.ExploreAllTopics?ne:"",name:null===(i=e.metadata)||void 0===i?void 0:i.text,tallPoster:{url:(null===(r=e.metadata)||void 0===r?void 0:r.imageId)?B.j.getUrlById(e.imageCdnUrl,z.__.TallPosters,e.metadata.imageId,z.h2.Medium):""}}}(e),a=q.d.getCustomAppLink(e);return i().createElement("div",null,i().createElement(g.k,{name:e.name,appLink:a,description:e.description,type:c.WidgetType.Row,contents:p.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return te(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 te(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)?te(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:ee,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,i,r;return t.id?t.id===ne?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n):null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t):null},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function ie(e){var t;return i().createElement("div",null,i().createElement(g.k,{name:e.name,description:e.description,type:c.WidgetType.Row,contents:p.z.SmallSeries,collection:e.content,childComponent:k,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}))}var re=function(e){return i().createElement("div",{className:"".concat(e.type===c.WidgetType.Row?K.slidingSubjectSmall:K.slidingSubjectLarge," px-1")},i().createElement("div",{className:"".concat(K.partialLoading," partial-loading-background rounded-lg")}))};function oe(e){for(var t,n,a=(t=e.type,(n=(0,x.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===c.WidgetType.LargeRow?5:6),r=[],o=0;o<a;o++)r.push(i().createElement(re,{key:o,type:e.type}));return i().createElement("div",{className:"pb-3"},i().createElement(N.l,null),i().createElement("div",{className:"row no-gutters mx-n1"},r))}var le=n(55460);const ce="eSMIx",se="layDP";function de(e){var t,n,a=q.d.getCustomAppLink(e),r=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?B.j.getUrlById(e.imageCdnUrl,z.__.Banners,e.metadata.imageId,z.h2.Medium):"";return i().createElement("div",null,i().createElement(T.F,{appLink:a,style:r?{backgroundImage:"url(".concat(r,")")}:{},className:"".concat(ce," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":se),analyticsData:{url:le.AppLinkHelper.getHref(a)},analyticsOptions:{actionType:L.UserAction.Click,entity:L.EntityType.Url,location:L.LocationContext.ContentUpdatesBanner}},i().createElement("h2",{className:"h4 text-white mb-0"},e.name)),i().createElement(g.k,{type:c.WidgetType.Row,contents:p.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:y,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 ue=n(75896);const me={banner:"iCyo4",bannerContent:"cgv_6",cta:"BXwH2"};function pe(e){var t,n,a,r,o,l,c=(0,x.k)(),s=Object.assign(Object.assign({},e.analyticsOptions),{location:L.LocationContext.Classification,actionType:L.UserAction.Click,entity:L.EntityType.Classification,descriptor:L.ClickDescriptor.Banner});return i().createElement(T.F,{appLink:function(){var t,n,a=ue.m.first(e.content);return null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,a)}(),analyticsData:e.analyticsData,analyticsOptions:s},i().createElement("div",{className:"banner rounded-lg position-relative ".concat(me.banner),style:{backgroundImage:"url('".concat((l=ue.m.first(e.content),B.j.createBannerUrl(l.banner,{fallbackBaseUrl:"",fallbackCategoryName:l.name,type:z.__.Banners},{size:z.h2.Large})),"')")}},e.name&&i().createElement("div",{className:me.bannerContent},i().createElement("h2",{className:(o="text-white clamp-2",c.xs||c.sm?o+=" h4":c.md?o+=" h3":o+=" h2",o+=" text-white")},e.name)),!!(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.text)&&i().createElement("div",{className:me.cta},i().createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(r=null===(a=e.metadata)||void 0===a?void 0:a.cta)||void 0===r?void 0:r.text))))}function ge(){return i().createElement("div",{className:"banner rounded-lg position-relative ".concat(me.banner)},i().createElement("div",{className:"".concat(me.bannerContent)}))}var ve=n(92802),fe=n(23481),he=n(83345),ye=n(98364),be=n(10874),Ee=n(82644),Te=n(38365),we=n(23201),Le=n(69883),Ce=n(5173),ke=Ce.Ry().shape({feedbackInput:Ce.Z_().max(5e3,(function(){return fe.T.getPhrase("shared.feedbackForm","tooLong")}))});const xe={promptContainer:"A_kCD",text:"UFm9h",form:"na9Vb"};function Ne(e){return Ne="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},Ne(e)}function Se(){Se=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,i){var r=t&&t.prototype instanceof m?t:m,o=Object.create(r.prototype),l=new k(i||[]);return a(o,"_invoke",{value:T(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}}}e.wrap=s;var u={};function m(){}function p(){}function g(){}var v={};c(v,r,(function(){return this}));var f=Object.getPrototypeOf,h=f&&f(f(x([])));h&&h!==t&&n.call(h,r)&&(v=h);var y=g.prototype=m.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function i(a,r,o,l){var c=d(e[a],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Ne(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,o,l)}),(function(e){i("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return i("throw",e,o,l)}))}l(c.arg)}var r;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){i(e,n,t,a)}))}return r=r?r.then(a,a):a()}})}function T(e,t,n){var a="suspendedStart";return function(i,r){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===i)throw r;return{value:void 0,done:!0}}for(n.method=i,n.arg=r;;){var o=n.delegate;if(o){var l=w(o,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===a)throw a="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a="executing";var c=d(e,t,n);if("normal"===c.type){if(a=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a="completed",n.method="throw",n.arg=c.arg)}}}function w(e,t){var n=t.method,a=e.iterator[n];if(void 0===a)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),u;var i=d(a,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,u;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function L(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function x(e){if(e||""===e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function t(){for(;++a<e.length;)if(n.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}throw new TypeError(Ne(e)+" is not iterable")}return p.prototype=g,a(y,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:p,configurable:!0}),p.displayName=c(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,l,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(E.prototype),c(E.prototype,o,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,a,i,r){void 0===r&&(r=Promise);var o=new E(s(t,n,a,i),r);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},b(y),c(y,l,"Generator"),c(y,r,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.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}},e.values=x,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function a(n,a){return o.type="throw",o.arg=e,t.next=n,a&&(t.method="next",t.arg=void 0),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],o=r.completion;if("root"===r.tryLoc)return a("end");if(r.tryLoc<=this.prev){var l=n.call(r,"catchLoc"),c=n.call(r,"finallyLoc");if(l&&c){if(this.prev<r.catchLoc)return a(r.catchLoc,!0);if(this.prev<r.finallyLoc)return a(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return a(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return a(r.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,u):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),u},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),C(n),u}},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 i=a.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function Oe(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 je=function(e,t,n,a){return new(n||(n=Promise))((function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function l(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(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())}))},De="shared.feedbackForm";function Ae(e){var t,n,a=(t=i().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,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 Oe(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)?Oe(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.")}()),r=a[0],l=a[1],c=(0,Le.Z)();function d(t,n){return je(this,void 0,void 0,Se().mark((function a(){return Se().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"===r?"positive":"negative"});case 3:l("done"),a.next=10;break;case 6:a.prev=6,a.t0=a.catch(0),l("prompt"),c.error(fe.T.getPhrase(De,"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 o.q.isFunction(e.onSubmit)?"prompt"===r?i().createElement("div",{className:xe.promptContainer},i().createElement("p",{className:"font-weight-500 mr-2 ".concat(xe.text)},i().createElement(ye.V,{emoji:"🔎"},i().createElement(he.x,{namespace:De,phrase:"feedbackQuestion"}))),i().createElement("div",{className:"d-flex align-items-center"},i().createElement(be.h,{className:"btn btn-outline-dark mr-2",onClick:function(){l("yes")},svgName:s.vn.ThumbsUp},i().createElement(he.x,{namespace:De,phrase:"yes"})),i().createElement(be.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:s.vn.ThumbsDown},i().createElement(he.x,{namespace:De,phrase:"no"})))):"yes"===r?i().createElement(Ee.n,{onSubmit:d,initialValues:{feedbackInput:""},validationSchema:ke},i().createElement(ve.l0,{className:xe.form},i().createElement("p",{className:"font-weight-500 ".concat(xe.text)},i().createElement(ye.V,{emoji:"👏"},i().createElement(he.x,{namespace:De,phrase:"happyFeedback"}))),i().createElement(Te.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:fe.T.getPhrase(De,"feedbackPlaceholder"),spellCheck:!1}),i().createElement("div",{className:"d-flex justify-content-end w-100"},i().createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},i().createElement(he.x,{namespace:De,phrase:"back"})),i().createElement(we.A,{variant:"dark",submitText:fe.T.getPhrase(De,"sendFeedback")})))):"no"===r?i().createElement(Ee.n,{onSubmit:d,initialValues:{feedbackInput:""},validationSchema:ke},i().createElement(ve.l0,{className:xe.form},i().createElement("p",{className:"font-weight-500 ".concat(xe.text)},i().createElement(ye.V,{emoji:"😢"},i().createElement(he.x,{namespace:De,phrase:"unhappyFeedback"}))),i().createElement(Te.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:fe.T.getPhrase(De,"feedbackPlaceholder"),spellCheck:!1}),i().createElement("div",{className:"d-flex justify-content-end w-100"},i().createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},i().createElement(he.x,{namespace:De,phrase:"back"})),i().createElement(we.A,{variant:"dark",submitText:fe.T.getPhrase(De,"sendFeedback")})))):"done"===r?i().createElement("p",{className:"font-weight-500 text-center"},i().createElement(ye.V,{emoji:"🙌"},i().createElement(he.x,{namespace:De,phrase:"thankYou"}))):i().createElement(i().Fragment,null):i().createElement(i().Fragment,null)}const Fe="MtcB3",Ie="Geg0V";function Pe(e){return i().createElement(i().Fragment,null,i().createElement("div",{className:"".concat(Fe," px-4 py-3 rounded-lg mb-3")},i().createElement("h2",{className:"h5"},e.name),i().createElement(F.Row,{className:"mb-2 ".concat(Ie)},e.content.map((function(t){var n,a,r,o=B.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:z.h2.Small});return i().createElement(F.Col,{key:t.id,xs:12,sm:6,lg:4},i().createElement(T.F,{appLink:null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.classification)||void 0===r?void 0:r.call(a,t),className:"d-flex align-items-center mb-2"},i().createElement("div",{className:"".concat("ZMjnx"," mr-2")},i().createElement("div",{className:"".concat("SsxEf"," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),i().createElement("div",null,t.name)))})))),i().createElement(Ae,{onSubmit:e.onSubmitFeedback}))}var We=n(2284);const Me="OZATG",Ue="hcAU2",Ve="Tbieu",Re="mGGrd",Be="VtzxT",ze="jrY7R",He="yAgR6",Ge="RjJ7O",_e="TJ7Sl",Ze="yzmvY",Ye="hGi43";function Xe(e){var t,n,a,r=B.j.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:z.h2.Small}),o=B.j.createUrl(null===(n=e.data.thumbnail)||void 0===n?void 0:n.url,{size:z.h2.Medium}),l={backgroundColor:null===(a=e.data.metadata)||void 0===a?void 0:a.backgroundColor};return o&&(l.backgroundImage="url('".concat(o,"')")),i().createElement("div",{className:"d-flex position-relative rounded-lg h-100 ".concat(Ue," ").concat(e.isLarge?Ve:Re),style:l},i().createElement("div",{className:"".concat(Be)},i().createElement("div",{className:"".concat(ze)},i().createElement("h3",{className:"".concat(He," h4 ").concat(e.isLarge?"text-nowrap text-truncate":"text-wrap clamp-3")},e.data.name),e.isLarge&&i().createElement("div",{className:"text-left ".concat(Ge)},i().createElement("p",{className:Ze},e.data.description))),e.isLarge&&i().createElement("div",{className:Ye},i().createElement("div",{className:"".concat(!e.appLink&&"cursor-default"," btn btn-outline-dark")},fe.T.getPhrase("shared.subjectThumbnailWidgetItem","buttonLabel")))),!o&&!!r&&i().createElement("div",{className:"".concat(_e),style:{backgroundImage:"url('".concat(r,"')")}}))}var $e=i().memo((function(e){var t,n,a,r,o=(null===(t=e.data)||void 0===t?void 0:t.status)===We.W.ComingSoon,l=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(a=e.data)||void 0===a?void 0:a.name,presentationId:null===(r=e.data)||void 0===r?void 0:r.presentationId,comingSoon:!!o}),c=Object.assign(Object.assign({location:L.LocationContext.ClassificationListItem},e.analyticsOptions),{actionType:L.UserAction.Click,entity:L.EntityType.Classification,descriptor:L.ClickDescriptor.Thumbnail});return e.appLink?i().createElement(T.F,{className:Me,appLink:e.appLink,analyticsData:l,analyticsOptions:c},i().createElement(Xe,Object.assign({},e))):i().createElement(Xe,Object.assign({},e))}));function qe(e){return i().createElement(i().Fragment,null,i().createElement(D.B,{name:e.name,description:e.description}),i().createElement(F.Row,{noGutters:!0,className:"mx-n1 mb-n2"},e.content.map((function(t){var n,a;return i().createElement(F.Col,{key:t.id,sm:12,md:6,className:"px-1 pb-2"},i().createElement($e,{data:t,appLink:null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t),isLarge:!0,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))}))))}function Je(e){return i().createElement(i().Fragment,null,i().createElement(D.B,{name:e.name,description:e.description}),i().createElement(F.Row,{noGutters:!0,className:"mx-n1 mb-n2"},e.content.map((function(t){var n,a;return i().createElement(F.Col,{key:t.id,lg:4,md:6,sm:6,xs:12,className:"px-1 pb-2"},i().createElement($e,{data:t,appLink: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}))}))))}function Qe(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,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 et=n(1048),tt=n(91028),nt=n(83914),at=n(11607),it=n(83523),rt=n(92038),ot="shared.subjectWidgetItem",lt=i().forwardRef((function(e,t){var n;return"hidden"===(null===(n=e.style)||void 0===n?void 0:n.visibility)?i().createElement("div",{ref:t,className:"d-flex align-items-center position-relative clamp-2 ".concat(rt.Z.widgetItem," ").concat(rt.Z.draggingItem),style:et.t.omit(e.style,["visibility"])}):i().createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(rt.Z.widgetItem),style:et.t.omit(e.style,["visibility"])},i().createElement("div",Object.assign({className:"\n ".concat(rt.Z.dragHandle," ml-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),i().createElement(nt.x,{svgName:s.vn.Hamburger})),i().createElement("div",{className:"px-3 text-center d-flex flex-column justify-content-center text-nowrap text-truncate"},i().createElement("h3",{className:"".concat(rt.Z.name," h6 text-truncate mb-0 mt-1 pb-1 ").concat(e.isVisible?"":"text-muted")},e.data.name)),i().createElement("div",{className:"ml-auto mr-3"},i().createElement(it.Z,{on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?fe.T.getPhrase(ot,e.isVisible?"hideFromDashboard":"showOnDashboard"):fe.T.getPhrase(ot,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),ct=n(13112),st=n(1287),dt=n(2102),ut=n(54569),mt=n(49985);function pt(e){return pt="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},pt(e)}function gt(){gt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,i){var r=t&&t.prototype instanceof m?t:m,o=Object.create(r.prototype),l=new k(i||[]);return a(o,"_invoke",{value:T(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}}}e.wrap=s;var u={};function m(){}function p(){}function g(){}var v={};c(v,r,(function(){return this}));var f=Object.getPrototypeOf,h=f&&f(f(x([])));h&&h!==t&&n.call(h,r)&&(v=h);var y=g.prototype=m.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function i(a,r,o,l){var c=d(e[a],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==pt(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,o,l)}),(function(e){i("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return i("throw",e,o,l)}))}l(c.arg)}var r;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){i(e,n,t,a)}))}return r=r?r.then(a,a):a()}})}function T(e,t,n){var a="suspendedStart";return function(i,r){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===i)throw r;return{value:void 0,done:!0}}for(n.method=i,n.arg=r;;){var o=n.delegate;if(o){var l=w(o,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===a)throw a="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a="executing";var c=d(e,t,n);if("normal"===c.type){if(a=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a="completed",n.method="throw",n.arg=c.arg)}}}function w(e,t){var n=t.method,a=e.iterator[n];if(void 0===a)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),u;var i=d(a,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,u;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function L(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function x(e){if(e||""===e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function t(){for(;++a<e.length;)if(n.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}throw new TypeError(pt(e)+" is not iterable")}return p.prototype=g,a(y,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:p,configurable:!0}),p.displayName=c(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,l,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(E.prototype),c(E.prototype,o,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,a,i,r){void 0===r&&(r=Promise);var o=new E(s(t,n,a,i),r);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},b(y),c(y,l,"Generator"),c(y,r,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.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}},e.values=x,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function a(n,a){return o.type="throw",o.arg=e,t.next=n,a&&(t.method="next",t.arg=void 0),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],o=r.completion;if("root"===r.tryLoc)return a("end");if(r.tryLoc<=this.prev){var l=n.call(r,"catchLoc"),c=n.call(r,"finallyLoc");if(l&&c){if(this.prev<r.catchLoc)return a(r.catchLoc,!0);if(this.prev<r.finallyLoc)return a(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return a(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return a(r.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,u):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),u},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),C(n),u}},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 i=a.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function vt(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,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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ft(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)?ft(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 ft(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 ht="shared.editableCoverFixedPillListSmall";function yt(e){var t,n,a=vt(i().useState(!1),2),r=a[0],o=a[1],l=vt(i().useState(!1),2),c=l[0],d=l[1],u=i().useMemo((function(){var t,n;return null!==(n=null===(t=e.preferences)||void 0===t?void 0:t.reduce((function(e,t){return e[t.id]=t,e}),{}))&&void 0!==n?n:{}}),[e.preferences]),m=vt(i().useState(u),2),p=m[0],g=m[1],v=vt(i().useState(u),2),f=v[0],h=v[1],y=q.d.useGetContent(e.unfilteredContent,Object.values(f)),b=y.content,E=y.unfilteredContent,T=r?E:b,w=(0,Le.Z)();i().useEffect((function(){o(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var C=i().useMemo((function(){return!(r||!T.length)&&Object.values(f).some((function(e){return e.hidden}))}),[r,f]);function k(e){return f[e.id]?f[e.id].index:T.findIndex((function(t){return t.id===e.id}))}function x(e){var t;return!(null===(t=f[e.id])||void 0===t?void 0:t.hidden)}function N(e){var t=Object.assign({},f),n=x(e);t[e.id]={id:e.id,hidden:n,index:k(e)},mt.k.logUserAction({id:e.id,name:e.name},{location:L.LocationContext.EditableSubjectPreferencesWidget,entity:L.EntityType.Classification,actionType:L.UserAction.Hide,descriptor:n?L.ToggleDescriptor.On:L.ToggleDescriptor.Off}),h(t)}var S=i().useMemo((function(){return!et.t.isEqual(u,f)}),[u,f]),O={id:e.presentation.id,name:fe.T.getPhrase(ht,"exploreAll"),cover:e.presentation.cover};return T.length?i().createElement("div",null,i().createElement("div",{className:"d-flex flex-wrap align-items-center justify-content-between ".concat(e.description||r?"":"mb-1")},i().createElement("div",null,i().createElement("div",{className:"d-flex no-wrap flex-row"},i().createElement("h2",{className:"h4 mb-2 align-self-end flex-shrink-0"},r?fe.T.getPhrase(ht,"updating"):e.name),!r&&e.canManageDiscoverPreferences&&i().createElement(at.L,{className:"ml-1 align-self-end mb-2",onClick:function(){return o(!0)}},i().createElement(nt.x,{svgName:s.vn.Edit}))),!!e.description&&!r&&i().createElement("p",{className:"text-truncate description mb-2"},e.description),r&&i().createElement("p",{className:"description mb-2"},i().createElement(he.x,{namespace:ht,phrase:"editingDescription"}))),r&&e.canManageDiscoverPreferences&&i().createElement("div",{className:"mb-2 d-flex align-items-start"},i().createElement(F.Button,{variant:"link",className:"mr-2",onClick:function(){h(p),o(!1)}},i().createElement(he.x,{namespace:ht,phrase:"cancel"})),i().createElement(dt.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,i=gt().mark((function t(){return gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:d(!0),e.updatePreferences(e.id,Object.values(f)).then((function(){g(f),d(!1),o(!1)})).catch((function(){d(!1),w.error(fe.T.getPhrase(ht,"error"))}));case 2:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,r){function o(e){try{c(i.next(e))}catch(e){r(e)}}function l(e){try{c(i.throw(e))}catch(e){r(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((i=i.apply(t,n||[])).next())}));var t,n,a,i},showSpinner:c,disabled:!S},i().createElement(he.x,{namespace:ht,phrase:"update"})))),i().createElement(F.Row,{noGutters:!0,className:"mx-n1 mb-n2"},C&&i().createElement(F.Col,{className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},i().createElement(tt.V,{data:O,getChildAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.allTopics,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,multiline:!0})),i().createElement(ct.Q,{ids:T.map((function(e){return e.id})),getDragOverlay:function(e){var t=T.find((function(t){return t.id===e}));return i().createElement("div",{className:"bg-white rounded-lg ".concat("K1Ce4")},i().createElement(lt,{data:t,onToggleVisibility:N,isVisible:x(t),isDragging:!0,canToggle:!0}))},onSortStart:function(e){var t=T.find((function(t){return t.id.toString()===e.active.id.toString()})),n=T.findIndex((function(t){return t.id.toString()===e.active.id.toString()}));mt.k.logUserAction({id:t.id,name:t.name,index:n},{location:L.LocationContext.EditableSubjectPreferencesWidget,entity:L.EntityType.Classification,actionType:L.UserAction.Move,workflowPhase:L.WorkflowPhase.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=k({id:t.id}),i=T.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==i){var r=T[a];if(r){var o=Object.assign({},f);ut.l.reorder(T,a,i).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!x(e)}})),h(o),mt.k.logUserAction({id:r.id,name:r.name,oldIndex:a,newIndex:i},{location:L.LocationContext.EditableSubjectPreferencesWidget,entity:L.EntityType.Classification,actionType:L.UserAction.Move,workflowPhase:L.WorkflowPhase.Complete})}}},vertical:!1},T.map((function(t){return i().createElement(F.Col,{className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},i().createElement(i().Fragment,null,r?i().createElement(st.W,{id:t.id,childComponent:lt,childProps:{data:t,onToggleVisibility:N,isVisible:x(t),isDragging:!1,canToggle:!x(t)||e.content.length>1}}):i().createElement(tt.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})))}))))):i().createElement(i().Fragment,null)}var bt=n(11025),Et=n(80143),Tt=n(68626),wt=n(90927),Lt=n(47325),Ct=n(96022),kt=n(38647);function xt(e){var t,n,a,r,o,l,c,s,u,m=e.content[0],p=i().useRef(),g=(0,Et.n)(null===(t=m.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),f=bt.M.hasSeries(m),h=mt.k.mergeOptions(e.analyticsOptions,{actionType:L.UserAction.Click,entity:bt.M.getAnalyticsEntity(m),location:L.LocationContext.ThumbnailHeroMediaWidget}),y=bt.M.getCanBeConsumed(m).canNavigate;return m?i().createElement("div",null,i().createElement(D.B,{name:e.name,description:e.description}),i().createElement("div",{ref:p},i().createElement(v.u,{video:m,imageOptions:{size:z.h2.Large},type:"static",textPosition:Tt.z.Independent,analyticsOptions:h,audience:g,hideRating:!!g,appLink:null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,m),seriesAppLink:null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.series)||void 0===o?void 0:o.call(r,function(e){if(bt.M.isVideo(e))return e.series}(m)),setFavourite:e.setFavourite,canFavourite:e.canFavourite})),i().createElement("div",{className:"RmYET"},i().createElement("div",null,bt.M.isVideo(m)&&f&&i().createElement(Ct.M,{video:m,appLink:null===(c=null===(l=e.appLinks)||void 0===l?void 0:l.series)||void 0===c?void 0:c.call(l,m.series),analyticsOptions:h,className:"mt-2 ".concat("zmtsM")}),i().createElement("div",{className:f?"":"mt-2"},i().createElement(T.F,{appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.videoType)||void 0===u?void 0:u.call(s,m),analyticsData:{id:m.id,name:m.name},analyticsOptions:Object.assign(Object.assign({},h),{descriptor:L.ClickDescriptor.Title}),className:"d-inline-block ".concat(y?"":"cursor-default text-decoration-none disabled"),disabled:!y},i().createElement("h3",{className:"h4 mb-0"},m.name,i().createElement(kt.m,{video:m,yearGroups:e.yearGroups}))))),!!e.showVideoGuidance&&i().createElement("div",{className:"d-flex mt-2 ".concat("EQXKD")},i().createElement(wt.N,{containerRef:p,widgetTemplate:d.f.ThumbnailHeroMedia,video:m,curriculums:e.curriculums}),i().createElement(Lt.I,{containerRef:p,widgetTemplate:d.f.ThumbnailHeroMedia,video:m,imageCdnUrl:e.imageCdnUrl})))):i().createElement(i().Fragment,null)}function Nt(e){return i().createElement("div",null,i().createElement("h2",{className:"curated-widget-heading"},e.name),!!e.description&&i().createElement("p",{className:"description curated-widget-description"},e.description))}var St=i().memo((function(e){var t,n=e.data,a=e.getSeriesAppLink,r=e.context,o=e.thumbnailSize,l=e.preloadImage,s=e.presentationAudiences,d=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,u=(0,Et.n)(d,s),m=(0,x.k)(),p="JSM4l";return r.type===c.WidgetType.LargeRow&&(p="YYpNz"),i().createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(p)},i().createElement(v.u,{type:m.xs?"static":"popout",textPosition:Tt.z.Below,video:n,appLink:e.getAppLink(n),seriesAppLink:bt.M.isVideo(n)&&bt.M.hasSeries(n)?null==a?void 0:a(n.series):void 0,imageOptions:{size:o},preload:l,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,canFavourite:e.canFavourite,setFavourite:e.setFavourite,imageCdnUrl:e.imageCdnUrl,audience:u,hideRating:!!u,hideDuration:!1,yearGroups:e.yearGroups,curriculums:e.curriculums,hideTitle:e.hideTitle,hideSeries:e.hideSeries,showVideoGuidance:e.showVideoGuidance}))}));function Ot(e){var t,n,a,r,o,l,s,d;return i().createElement(g.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:c.WidgetType.LargeRow,contents:p.z.Videos,collection:e.content,childComponent:St,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSeriesAppLink:null===(a=e.appLinks)||void 0===a?void 0:a.series,imageCdnUrl:e.imageCdnUrl,yearGroups:e.yearGroups,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(o=e.metadata)||void 0===o?void 0:o.hideObjectSeries,showVideoGuidance:e.showVideoGuidance,curriculums:e.curriculums},getChildAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===d?void 0:d.call(s,e.id,e.name)})}function jt(e){return i().createElement("div",{className:"col-".concat(e.colSize," px-1")},i().createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-lg",style:{paddingBottom:"56.25%"}}),i().createElement("div",{className:"mt-2"},i().createElement("div",{style:{height:"1.4rem"}},i().createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),i().createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}function Dt(e){var t,n,a,r,o,l,s,d,m,v,f,h=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===u.z.ContinueWatching&&(null===(a=e.appLinks)||void 0===a?void 0:a.watchHistory)&&(h=null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.watchHistory)||void 0===o?void 0:o.call(r)),i().createElement(g.k,{name:!(null===(l=e.metadata)||void 0===l?void 0:l.hideWidgetHeading)&&e.name,description:!(null===(s=e.metadata)||void 0===s?void 0:s.hideWidgetDescription)&&e.description,type:c.WidgetType.Row,contents:p.z.Videos,collection:e.content,childComponent:St,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSeriesAppLink:null===(d=e.appLinks)||void 0===d?void 0:d.series,imageCdnUrl:e.imageCdnUrl,hideTitle:null===(m=e.metadata)||void 0===m?void 0:m.hideObjectTitle,hideSeries:null===(v=e.metadata)||void 0===v?void 0:v.hideObjectSeries,showVideoGuidance:e.showVideoGuidance,curriculums:e.curriculums,yearGroups:e.yearGroups},getChildAppLink:null===(f=e.appLinks)||void 0===f?void 0:f.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:h})}function At(e){return i().createElement("div",{className:"col-".concat(e.colSize," px-1")},i().createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-lg",style:{paddingBottom:"56.25%"}}),i().createElement("div",{className:"mt-2"},i().createElement("div",{style:{height:"1.4rem"}},i().createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),i().createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}var Ft=n(22843);const It={guidance:"uCRU1"};function Pt(e){var t,n,a,r,o,l=bt.M.isVideo(e.video)&&bt.M.hasSeries(e.video),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=l?null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.series)||void 0===r?void 0:r.call(a,e.video.series):null,u=i().useRef(null),m={actionType:L.UserAction.Click,entity:bt.M.getAnalyticsEntity(e.video),location:L.LocationContext.ThumbnailFixedListMediaLargeWidget,descriptor:L.ClickDescriptor.Thumbnail},p=(0,Et.n)(null===(o=e.video.subjectPresentationAudiences)||void 0===o?void 0:o.data,e.audiences);return i().createElement("div",{className:"col-md-6"},i().createElement("div",{ref:u},i().createElement(v.u,{analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),m),video:e.video,appLink:c,seriesAppLink:s,imageOptions:{size:z.h2.Medium},textPosition:Tt.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:p,hideRating:!!p})),i().createElement(Ft.h,{video:e.video,appLink:c,seriesAppLink:s,yearGroups:e.yearGroups}),!!e.showVideoGuidance&&i().createElement("div",{className:"d-flex justify-content-start align-items-center pt-1 ".concat(It.guidance)},i().createElement(wt.N,{video:e.video,containerRef:u,widgetTemplate:d.f.ThumbnailFixedListMediaLarge,curriculums:e.curriculums}),i().createElement(Lt.I,{video:e.video,containerRef:u,widgetTemplate:d.f.ThumbnailFixedListMediaLarge,imageCdnUrl:e.imageCdnUrl})))}function Wt(e){return i().createElement(i().Fragment,null,i().createElement(D.B,{name:e.name,description:e.description}),i().createElement("div",{className:"row ".concat("KItVW")},e.content.map((function(t){return i().createElement(Pt,Object.assign({key:t.id,video:t},e))}))))}const Mt="HwejH";var Ut=function(){return i().createElement("div",{className:"mt-2"},i().createElement("div",{style:{height:"1.4rem"}},i().createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"12rem"}})),i().createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"15rem"}}))},Vt=n(81993);const Rt={rowWidth:"TzZuL"};function Bt(e){return i().createElement(T.F,{appLink:e.getAppLink(e.data),className:"".concat(Rt.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.EntityType.Rating,actionType:L.UserAction.Click,location:L.LocationContext.FilterSlidingPillListSmallWidget})},i().createElement("div",{className:"".concat(Vt.u.mapRatingToClass(e.data.value)," py-3 rounded-lg ")},i().createElement("div",{className:"d-flex justify-content-center align-items-center text-white"},i().createElement(nt.x,{svgName:s.vn.Search,size:nt.S.Medium}),i().createElement("h4",{className:"mb-0"},e.data.code))))}function zt(e){var t=e.content.filter((function(e){return e.code&&e.value<128}));return i().createElement(i().Fragment,null,i().createElement(g.k,{name:e.name,description:e.description,type:c.WidgetType.Row,contents:p.z.Ratings,getChildAppLink:function(n){var a,i;return null===(i=null===(a=e.appLinks)||void 0===a?void 0:a.rating)||void 0===i?void 0:i.call(a,n,t)},collection:t,childComponent:Bt,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,extraChildComponentProps:{ratingsLength:t.length},prefetched:!0}))}function Ht(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 Gt=n(9085),_t=n(7733);var Zt=function(e){var t,n,a,r=B.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:z.h2.Medium}),o=(0,Gt.x)(e.data.name,_t.o),l=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(a=e.data)||void 0===a?void 0:a.name}),c=Object.assign(Object.assign({},e.analyticsOptions),{location:L.LocationContext.CircleLogoSlidingListWidget,actionType:L.UserAction.Click,entity:L.EntityType.Company});return i().createElement(T.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:l,analyticsOptions:c},i().createElement("div",{className:"rounded-circle w-100 h-100 ".concat("vt0gx"," ").concat(o),style:{backgroundImage:"url(".concat(r,")")}}))};function Yt(e){var t;return i().createElement(g.k,{name:e.name,description:e.description,type:c.WidgetType.Row,contents:p.z.Companies,collection:e.content,childComponent:Zt,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})}const Xt={bannerContent:"lkPfM",cta:"nA9th",banner:"b5ljD",bannerImage:"dj_1H",blurb:"UBcVE"};function $t(e){return i().createElement("div",{className:"banner rounded-lg position-relative ".concat(Xt.banner)},i().createElement("div",{className:"".concat(Xt.bannerImage," ").concat(Xt.blurb),style:{backgroundImage:"url('".concat(B.j.getUrlById(e.imageCdnUrl,z.__.Banners,e.metadata.imageId,z.h2.Large),"')")}},e.name&&i().createElement("div",{className:"".concat(Xt.bannerContent," ").concat(e.widgetTypeId===u.z.Blurb?Xt.blurb:"")},i().createElement("h2",{className:"h6 mb-0"},e.name))))}function qt(e){var t,n,a,r,o,l,c=ue.m.first(e.content),s=Object.assign(Object.assign({},e.analyticsOptions),{location:L.LocationContext.Classification,actionType:L.UserAction.Click,entity:L.EntityType.Classification,descriptor:L.ClickDescriptor.Banner});return i().createElement(T.F,{appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,c),analyticsData:e.analyticsData,analyticsOptions:s},i().createElement("div",{className:"banner rounded-lg position-relative ".concat(Xt.banner)},i().createElement("div",{className:Xt.bannerImage,style:{backgroundImage:"url('".concat(B.j.createBannerUrl(c.banner,{fallbackBaseUrl:"",fallbackCategoryName:c.name,type:z.__.Banners},{size:z.h2.Large}),"')")}},e.name&&i().createElement("div",{className:Xt.bannerContent},i().createElement("h2",{className:"text-white h4 clamp-1"},e.name)),!!(null===(r=null===(a=e.metadata)||void 0===a?void 0:a.cta)||void 0===r?void 0:r.text)&&i().createElement("div",{className:Xt.cta},i().createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(l=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===l?void 0:l.text)))))}function Jt(e){return e.widgetTypeId===u.z.Blurb?i().createElement($t,Object.assign({},e)):i().createElement(qt,Object.assign({},e))}function Qt(){return i().createElement("div",{className:"banner rounded-lg position-relative ".concat(Xt.banner)},i().createElement("div",{className:"".concat(Xt.bannerContent)}))}function Kt(e){return i().createElement(g.k,{name:e.name,description:e.description,type:c.WidgetType.LargeRow,contents:p.z.Subjects,collection:e.content,childComponent:ee,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 en(e){var t,n,a,r,o,l,c=ue.m.first(e.content),s=B.j.createUrl(null===(t=c.thumbnail)||void 0===t?void 0:t.url,{size:z.h2.Medium}),d=null===(n=c.metadata)||void 0===n?void 0:n.backgroundColor,u={backgroundColor:d};s&&(u.backgroundImage="url('".concat(s,"')"));var m=Object.assign(Object.assign({},e.analyticsData),{id:c.id,name:c.name,presentationId:c.presentationId}),p=Object.assign(Object.assign({},e.analyticsOptions),{location:L.LocationContext.ClassificationListItem,actionType:L.UserAction.Click,entity:L.EntityType.Classification,descriptor:L.ClickDescriptor.Thumbnail});return s&&d?i().createElement(i().Fragment,null,i().createElement(T.F,{appLink:null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.classification)||void 0===r?void 0:r.call(a,c),className:"text-decoration-none",analyticsData:m,analyticsOptions:p},i().createElement("div",{className:"d-flex position-relative rounded-lg h-100 ".concat("EkoYD"),style:u},i().createElement("div",{className:"".concat("SSmWX")},i().createElement("div",{className:"".concat("vEXH2")},i().createElement("h2",{className:"".concat("bMbF2"," text-decoration-none h4 text-nowrap text-truncate")},e.name),i().createElement("div",{className:"text-left ".concat("gDFxm")},i().createElement("p",{className:"clamp-3"},c.description))),i().createElement("div",null,i().createElement("div",{className:"btn btn-outline-dark text-nowrap"},(null===(l=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===l?void 0:l.text)||fe.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):i().createElement(pe,Object.assign({},e))}var tn;function nn(e){var t,n,a,r,o,l,c=ue.m.first(e.content),s=B.j.createUrl(null===(t=c.thumbnail)||void 0===t?void 0:t.url,{size:z.h2.Medium}),d=null===(n=c.metadata)||void 0===n?void 0:n.backgroundColor,u={backgroundColor:d};s&&(u.backgroundImage="url('".concat(s,"')"));var m=Object.assign(Object.assign({},e.analyticsData),{id:c.id,name:c.name,presentationId:c.presentationId}),p=Object.assign(Object.assign({},e.analyticsOptions),{location:L.LocationContext.ClassificationListItem,actionType:L.UserAction.Click,entity:L.EntityType.Classification,descriptor:L.ClickDescriptor.Thumbnail});return s&&d?i().createElement(T.F,{appLink:null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.classification)||void 0===r?void 0:r.call(a,c),className:"text-decoration-none",analyticsData:m,analyticsOptions:p},i().createElement("div",{className:"banner rounded-lg position-relative ".concat("LPw_x")},i().createElement("div",{className:"".concat("UJ8IR"," d-flex justify-content-between align-items-center"),style:u},e.name&&i().createElement("div",{className:"d-flex align-items-center pl-3 h-100"},i().createElement("h2",{className:"text-white h4 clamp-1"},e.name)),i().createElement("div",{className:"btn btn-outline-dark mr-3"},(null===(l=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===l?void 0:l.text)||fe.T.getPhrase("shared.heroThumbnailSmall","buttonLabel"))))):i().createElement(Jt,Object.assign({},e))}function an(e){return an="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},an(e)}function rn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==an(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!==an(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===an(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=(rn(tn={},d.f.ThumbnailHeroMedia,{getComponent:function(){return xt},partialLoading:function(){return i().createElement("div",null,i().createElement("div",{className:"w-100 partial-loading-background rounded-lg",style:{paddingBottom:"56.25%"}}),i().createElement("div",{className:"KjaI4"},i().createElement("div",null,i().createElement("div",{style:{height:"1.5rem"}},i().createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),i().createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),i().createElement("div",{className:"pt-2 mw-100"},i().createElement(P,null))))},icon:s.vn.WidgetTemplateThumbnailHeroMedia,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.Company]},className:""}),rn(tn,d.f.PosterSlidingListLarge,{getComponent:function(){return O},partialLoading:function(){var e,t,n=(e=(0,x.k)()).xs?2:e.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(N.l,null),a.createElement("div",{className:"row mb-n2"},(t=Array(n),function(e){if(Array.isArray(e))return S(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 S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(t)||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(C.partialLoading," partial-loading-background rounded-lg")}))}))))},icon:s.vn.WidgetTemplatePosterSlidingListLarge,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company]},className:""}),rn(tn,d.f.PosterSlidingListMedium,{getComponent:function(){return Kt},partialLoading:function(){return i().createElement(oe,{type:c.WidgetType.LargeRow})},icon:s.vn.WidgetTemplatePosterSlidingListMedium,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company]},className:""}),rn(tn,d.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case u.z.CuratedClassifications:return ae;case u.z.CuratedSeries:return ie;default:return ae}},partialLoading:function(){return i().createElement(oe,{type:c.WidgetType.Row})},icon:s.vn.WidgetTemplatePosterSlidingListSmall,getTargets:function(e){switch(e){case u.z.CuratedClassifications:return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.MoviesAndTv];case u.z.CuratedSeries:return[c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company];default:return[]}},className:""}),rn(tn,d.f.ThumbnailFeaturedMedia,{getComponent:function(){return A},partialLoading:function(){return i().createElement(i().Fragment,null,i().createElement(F.Row,null,i().createElement(F.Col,{xs:12,md:6},i().createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-lg")})),i().createElement(F.Col,{xs:12,md:6},i().createElement("div",{className:"J5CAD"},i().createElement("div",null,i().createElement("div",{style:{height:"1.5rem"}},i().createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),i().createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),i().createElement("div",{className:"pt-2 mw-100"},i().createElement(P,null))))))},icon:s.vn.WidgetTemplateThumbnailFeaturedMedia,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.Company]},className:""}),rn(tn,d.f.CoverFixedPillListLarge,{getComponent:function(){return U.K},partialLoading:function(){return i().createElement("div",{className:"py-2"},i().createElement(N.l,null),i().createElement(F.Row,{className:"no-gutters"},Array(5).fill(null).map((function(e,t){return i().createElement(F.Col,{key:t,xs:12,sm:6,lg:4},i().createElement("div",{className:"position-relative mb-2"},i().createElement(W.Ml,null)))}))))},icon:s.vn.WidgetTemplateCoverFixedPillListLarge,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover]},className:""}),rn(tn,d.f.CoverFixedPillListXSmall,{getComponent:function(){return Pe},partialLoading:function(){return i().createElement("div",{className:"".concat(Fe," px-4 py-3 rounded-lg mb-3")},i().createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.35rem",width:"8rem"}}),i().createElement(F.Row,{className:"mb-2 ".concat(Ie)},Array(8).fill(null).map((function(e,t){return i().createElement(F.Col,{key:t,xs:12,sm:6,lg:4},i().createElement("div",{className:"d-flex align-items-center mb-2"},i().createElement("div",{className:"partial-loading-background mr-2 rounded",style:{width:"2rem",height:"2rem"}}),i().createElement("div",{className:"partial-loading-background",style:{width:"5rem",height:"1.3125rem"}})))}))))},icon:s.vn.WidgetTemplateCoverFixedPillListXSmall,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover]},className:""}),rn(tn,d.f.CoverSlidingPillListSmall,{getComponent:function(){return Z},partialLoading:function(){return i().createElement("div",{className:"py-2"},i().createElement(N.l,null),i().createElement(M.QL,{partialLoadingComponent:W.Qh}))},icon:s.vn.WidgetTemplateCoverSlidingPillListSmall,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company]},className:""}),rn(tn,d.f.CoverFixedTileList,{getComponent:function(){return $},partialLoading:function(){return i().createElement(i().Fragment,null,i().createElement(N.l,null),i().createElement(Y.YA,{itemClassName:"columns-of-five"}))},icon:s.vn.WidgetTemplateCoverFixedTileList,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.Company]},className:""}),rn(tn,d.f.FeaturedThumbnailSlidingList,{getComponent:function(){return de},partialLoading:function(){return i().createElement("div",null,i().createElement("div",{className:"banner rounded-lg position-relative partial-loading-background ".concat(ce," ").concat(se," mb-1 ")}),i().createElement(m.j7,{hideDescription:!0,hideHeading:!0}))},icon:s.vn.WidgetTemplateFeaturedThumbnailSlidingList,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover]},className:""}),rn(tn,d.f.HeroBanner,{getComponent:function(){return pe},partialLoading:ge,icon:s.vn.WidgetTemplateHeroBanner,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover]},className:""}),rn(tn,d.f.HeroBannerSmall,{getComponent:function(){return Jt},partialLoading:Qt,icon:s.vn.WidgetTemplateHeroBannerSmall,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover]},className:""}),rn(tn,d.f.HeroThumbnailSmall,{getComponent:function(){return nn},partialLoading:function(){return i().createElement(Qt,null)},icon:s.vn.WidgetTemplateHeroThumbnailSmall,getTargets:function(){return[c.DashboardTargetType.Discover,c.DashboardTargetType.Classification,c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company]},className:""}),rn(tn,d.f.ThumbnailFixedListXLarge,{getComponent:function(){return en},partialLoading:function(){return i().createElement(ge,null)},icon:s.vn.WidgetTemplateThumbnailFixedListXLarge,getTargets:function(){return[c.DashboardTargetType.Discover,c.DashboardTargetType.Classification,c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company]},className:""}),rn(tn,d.f.ThumbnailFixedListLarge,{getComponent:function(){return qe},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return Qe(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 Qe(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)?Qe(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 i().createElement("div",null,i().createElement(N.l,null),i().createElement(F.Row,{noGutters:!0,className:"mx-n1"},t.map((function(e,t){return i().createElement(F.Col,{key:t,sm:12,md:6,className:"p-1"},i().createElement("div",{className:"".concat("pRXSM"," partial-loading-background rounded-lg")}))}))))},icon:s.vn.WidgetTemplateThumbnailFixedListLarge,getTargets:function(){return[c.DashboardTargetType.Discover,c.DashboardTargetType.Classification,c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company]},className:""}),rn(tn,d.f.ThumbnailFixedListSmall,{getComponent:function(){return Je},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return Ke(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 Ke(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)?Ke(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 i().createElement(i().Fragment,null,i().createElement(N.l,null),i().createElement(F.Row,{noGutters:!0,className:"mx-n1 "},t.map((function(e,t){return i().createElement(F.Col,{key:t,lg:4,md:6,sm:6,xs:12,className:"p-1"},i().createElement("div",{className:"".concat("SNBRD"," partial-loading-background rounded-lg")}))}))))},icon:s.vn.WidgetTemplateThumbnailFixedListSmall,getTargets:function(){return[c.DashboardTargetType.Discover,c.DashboardTargetType.Classification,c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company]},className:""}),rn(tn,d.f.EditableCoverFixedPillListSmall,{getComponent:function(){return yt},partialLoading:function(){return i().createElement("div",{className:"py-2"},i().createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),i().createElement(F.Row,{className:"no-gutters"},Array(7).fill(null).map((function(e,t){return i().createElement(F.Col,{key:t,sm:6,lg:4},i().createElement("div",{className:"position-relative mb-2"},i().createElement(W.Qh,null)))}))))},icon:s.vn.WidgetTemplateEditableCoverFixedPillListSmall,getTargets:function(){return[c.DashboardTargetType.Discover]},className:""}),rn(tn,d.f.Heading,{getComponent:function(){return Nt},partialLoading:function(){return i().createElement("div",null,i().createElement("div",{className:"partial-loading-background curated-widget-heading",style:{height:"2.099625rem",width:"16.5rem",maxWidth:"80%"}}," "),i().createElement("div",{className:"partial-loading-background description curated-widget-description",style:{width:"21rem",height:"1.3125rem",maxWidth:"90%"}}," "))},icon:s.vn.WidgetTemplateHeading,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover]},className:"heading-widget-template"}),rn(tn,d.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return Wt},partialLoading:function(){return i().createElement(i().Fragment,null,i().createElement(N.l,null),i().createElement("div",{className:"row ".concat("hk2Ed")},i().createElement("div",{className:"col-sm-12 col-md-6"},i().createElement("div",{className:"".concat(Mt," partial-loading-background rounded-lg")}),i().createElement(Ut,null),i().createElement("div",{className:"pt-1 mw-100"},i().createElement(P,null))),i().createElement("div",{className:"col-sm-12 col-md-6"},i().createElement("div",{className:"".concat(Mt," partial-loading-background rounded-lg")}),i().createElement(Ut,null),i().createElement("div",{className:"pt-1 mw-100"},i().createElement(P,null)))))},icon:s.vn.WidgetTemplateThumbnailFixedListMediaLarge,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.Company]},className:""}),rn(tn,d.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return Ot},partialLoading:function(){return i().createElement(m.j7,{size:"lg",childComponent:jt})},icon:s.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company]},className:""}),rn(tn,d.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Dt},partialLoading:function(){return i().createElement(m.j7,{size:"sm",childComponent:At})},icon:s.vn.WidgetTemplatePopoutThumbnailSlidingListSmall,getTargets:function(){return[c.DashboardTargetType.Discover,c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company]},className:""}),rn(tn,d.f.FilterSlidingPillListSmall,{getComponent:function(){return zt},partialLoading:function(){var e,t=(0,x.k)();return i().createElement(i().Fragment,null,i().createElement(N.l,{hideDescription:!0}),i().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 Ht(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 Ht(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)?Ht(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 i().createElement("div",{key:t,className:"col px-1"},i().createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-lg pb-5"}))}))))},icon:s.vn.WidgetTemplateFilterSlidingPillListSmall,getTargets:function(){return[c.DashboardTargetType.MoviesAndTv]},className:""}),rn(tn,d.f.CircleLogoSlidingList,{getComponent:function(){return Yt},partialLoading:function(){var e=8,t=(0,x.k)();return(t.sm||t.xs)&&(e=4),t.md&&(e=6),i().createElement(i().Fragment,null,i().createElement(N.l,null),i().createElement("div",{className:"d-flex flex-no-wrap"},Array(e).fill(null).map((function(e,t){return i().createElement("div",{key:t,className:"uVZyX"},i().createElement("div",{className:"".concat("KbaRB"," h-100 d-inline-block partial-loading-background rounded-circle")}))}))))},icon:s.vn.WidgetTemplateCircleLogoSlidingList,getTargets:function(){return[c.DashboardTargetType.MoviesAndTv]},className:""}),rn(tn,d.f.ThumbnailSlidingListSmall,{getComponent:function(){return b},partialLoading:m.j7,icon:s.vn.WidgetTemplateThumbnailSlidingListSmall,getTargets:function(){return[]},className:""}),rn(tn,d.f.ThumbnailSlidingListLarge,{getComponent:function(){return E},partialLoading:function(){return i().createElement(m.j7,{size:"lg"})},icon:s.vn.WidgetTemplateThumbnailSlidingListLarge,getTargets:function(){return[]},className:""}),tn);const ln={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function cn(e){var t,n,a,c,s=i().createRef(),d=null===(t=e.lazyLoad)||void 0===t||t,m=(0,l.Y)({prevent:!d}),p=m.ref,g=m.inView,v=o.q.isFunction(e.getContentRequest),f=r.a.useBasicFetch(!(!g||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),h=q.d.useGetContent(e.content||(null===(n=f.data)||void 0===n?void 0:n.content),null===(a=f.data)||void 0===a?void 0:a.preferences),y=h.content,b=h.unfilteredContent,E=(0,x.k)(),T=function(e,t){return!(q.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,y),w=!q.d.canDisplayOnScreenSize(E,e.widgetTypeId,e.templateId);i().useEffect((function(){var t;v&&!f.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,T||w)}),[f.hasCompleted,T,w,v,e.setIsEmpty]),i().useEffect((function(){e.isScrollToTargetWidget&&s.current&&s.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,s.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 C=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}),k=v&&!f.hasCompleted||e.isEditing&&T,N=on[e.templateId].partialLoading,S=on[e.templateId].getComponent(e.widgetTypeId),O=on[e.templateId].className;return k||!T&&!w?i().createElement("div",{id:e.widgetTypeId===u.z.ContinueWatching?"continue-watching-videos-widget":null,ref:s,className:"curated-widget ".concat(O," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},i().createElement("div",{className:e.isScrollToTargetWidget?"".concat(ln.widgetHighlight," py-2 px-3 rounded-lg"):""},q.d.isWidgetInTableOfContents(e.metadata)&&i().createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(ln.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),k?i().createElement("div",{ref:p},i().createElement(N,null)):i().createElement(S,Object.assign({},e,{appLinks:L,content:y,unfilteredContent:b,preferences:null===(c=f.data)||void 0===c?void 0:c.preferences,analyticsData:C,showHighlight:e.isScrollToTargetWidget})))):i().createElement(i().Fragment,null)}},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(1024),i=n.n(a),r=n(99910),o=n(91028),l=n(94495);function c(e){return i().createElement(i().Fragment,null,i().createElement(l.B,{name:e.name,description:e.description}),i().createElement(r.Row,{className:"mb-n2"},e.content.map((function(t){return i().createElement(r.Col,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},i().createElement(o.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:()=>i});var a=n(92802),i={getCustomFormControlClassName:function(e,t,n,i,r){var o="form-control";return"sm"===i&&(o+=" form-control-sm"),"lg"===i&&(o+=" form-control-lg"),(0,a.u9)(t,n)&&(0,a.u9)(e,n)&&(o+=" is-invalid"),r&&(o+=" ".concat(r)),o}}}}]);