@clickview/lite 0.25.2-rc.4 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/css/{3505-lite-af7ca8feee.chunk.css → 3505-lite-a7589e38a5.chunk.css} +1 -1
  3. package/dist/css/{4090-lite-466b7417fd.chunk.css → 4090-lite-aa975855a6.chunk.css} +1 -1
  4. package/dist/css/{8230-lite-8b13566cdb.chunk.css → 6204-lite-9bd0e23a3e.chunk.css} +1 -0
  5. package/dist/css/{7532-lite-eac872effd.chunk.css → 7532-lite-c683dc5b17.chunk.css} +1 -1
  6. package/dist/languages/en.json +1 -1
  7. package/dist/scripts/{1095-24b83df4d1-lite.chunk.js → 1095-b4323e76da-lite.chunk.js} +1 -1
  8. package/dist/scripts/1766-2ce66d0a98-lite.chunk.js +1 -0
  9. package/dist/scripts/{1818-9585c081ac-lite.chunk.js → 1818-5b34cd48b3-lite.chunk.js} +1 -1
  10. package/dist/scripts/1820-8c2b57ce35-lite.chunk.js +1 -0
  11. package/dist/scripts/{1976-914348861c-lite.chunk.js → 1976-c07c9bcb8c-lite.chunk.js} +2 -2
  12. package/dist/scripts/6001-3310834c2a-lite.chunk.js +1 -0
  13. package/dist/scripts/6113-323d0917a9-lite.chunk.js +1 -0
  14. package/dist/scripts/6204-47c7a57be9-lite.chunk.js +1 -0
  15. package/dist/scripts/{9588-a376fe2911-lite.chunk.js → 7153-348ee74f6b-lite.chunk.js} +1 -1
  16. package/dist/scripts/7201-9616c390b4-lite.chunk.js +1 -0
  17. package/dist/scripts/{7293-2c09e694b3-lite.chunk.js → 7293-e2010c409c-lite.chunk.js} +1 -1
  18. package/dist/scripts/{7532-9dcc1feca7-lite.chunk.js → 7532-fd63f63078-lite.chunk.js} +1 -1
  19. package/dist/scripts/{8816-9cbda2336b-lite.chunk.js → 8816-d69451ba89-lite.chunk.js} +1 -1
  20. package/dist/scripts/9296-2681226283-lite.chunk.js +1 -0
  21. package/dist/scripts/{9478-5710d3d47a-lite.chunk.js → 9478-54ed57bd4c-lite.chunk.js} +2 -2
  22. package/dist/scripts/bundle-35e2014458.min.js +2 -0
  23. package/package.json +3 -3
  24. package/dist/scripts/1766-f9b993070e-lite.chunk.js +0 -1
  25. package/dist/scripts/1820-7ba90bdc2b-lite.chunk.js +0 -1
  26. package/dist/scripts/3594-f85b6b17d7-lite.chunk.js +0 -1
  27. package/dist/scripts/6113-c6614809bb-lite.chunk.js +0 -1
  28. package/dist/scripts/7201-cd930a4e94-lite.chunk.js +0 -1
  29. package/dist/scripts/8230-daeaac640b-lite.chunk.js +0 -1
  30. package/dist/scripts/9296-f7a7513fac-lite.chunk.js +0 -1
  31. package/dist/scripts/bundle-d5424b71c6.min.js +0 -2
  32. /package/dist/scripts/{1976-914348861c-lite.chunk.js.LICENSE.txt → 1976-c07c9bcb8c-lite.chunk.js.LICENSE.txt} +0 -0
  33. /package/dist/scripts/{3505-3f1646e6a3-lite.chunk.js → 3505-325a8f469d-lite.chunk.js} +0 -0
  34. /package/dist/scripts/{4090-fc8b824368-lite.chunk.js → 4090-9da25a0783-lite.chunk.js} +0 -0
  35. /package/dist/scripts/{9478-5710d3d47a-lite.chunk.js.LICENSE.txt → 9478-54ed57bd4c-lite.chunk.js.LICENSE.txt} +0 -0
  36. /package/dist/scripts/{bundle-d5424b71c6.min.js.LICENSE.txt → bundle-35e2014458.min.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see 1976-914348861c-lite.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1976],{98364:(e,t,n)=>{n.d(t,{V:()=>o});var a=n(1024),r=n.n(a);const i={emoji:"d86p2"};function o(e){return r().createElement(r().Fragment,null,r().createElement("span",{className:i.emoji},e.emoji),e.children)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(1024),r=n(92802),i=n(33936),o=n(83345),l=n(2102),c="shared.formButtons";function s(e){var t=(0,r.u6)(),n=(0,i.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),r=n(92802),i=n(99910),o=n(1048),l=n(79014),c=n(73814),s=n(8493),u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function d(e){var t=e.label,n=e.checkboxLabelClassName,r=e.checkboxLabelFontWeight,o=e.className,l=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(i.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(i.Form.Label,{className:"custom-control-label cursor-pointer ".concat("normal"===r?"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),f=n(83345);function v(e){var t=(0,r.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 g={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 r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},b="shared.formField";function E(e){var t,n,i=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,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 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=s[0],d=s[1],f=l.q.isFunction(i)?function(e){return i(e)}:a.Children.count(i)?i:null;if("password"!==c.type)return a.createElement(r.gN,Object.assign({},o.t.omit(c,["formSize"])),f);var v="position-relative ".concat(g.passwordContainer);return c.className&&(v+=" ".concat(c.className)),c.disabled&&(v+=" ".concat(g.passwordContainerDisabled)),a.createElement("div",{className:v},a.createElement(r.gN,Object.assign({},o.t.omit(c,["formSize","type","className"]),{type:u,className:"".concat(g.passwordInput," border-0 w-100 h-100 outline-none rounded")}),f),"password"===c.type&&a.createElement(m.x,{svgName:"password"===u?p.vn.VisibleOn:p.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(g.revealPassword),onClick:function(){d("password"===u?"text":"password")}}))}function T(e){var t=e.label,n=e.className,l=e.showCharacterCounter,s=e.showRequiredStar,u=e.infoTooltip,h=e.infoTooltipPlacement,T=e.infoText,w=e.formSize,L=e.showOptionalLabel,k=y(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),C=(0,r.u6)(),x=C.errors,N=C.touched,S=function(){};if("checkbox"===k.type){var O=o.t.omit(e,["formSize"]);return e.disabled&&(O.onChange=S),a.createElement(d,Object.assign({},O))}var A=Object.assign(Object.assign({},k),{className:c.w.getCustomFormControlClassName(x,N,k.name,w,n)});return e.disabled&&(A.onChange=S),a.createElement(i.Form.Group,null,!!t&&a.createElement(i.Form.Label,{htmlFor:k.id,className:"d-flex align-items-center"},t,s&&a.createElement("span",{className:"text-danger"},"*"),u&&a.createElement(m.x,{className:"svg-container text-muted ".concat(g.infoTooltip),svgName:p.vn.Info,title:u,tooltipPlacement:h,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-muted"}," ",a.createElement(f.x,{namespace:b,phrase:"optional"})),!!l&&!!k.maxLength&&a.createElement("div",{className:"ml-auto"},a.createElement(v,{fieldName:k.name,limit:k.maxLength}))),a.createElement(E,Object.assign({},A)),!!T&&a.createElement(i.Form.Text,{className:"text-muted"},T),a.createElement(r.Bc,{name:k.name},(function(e){return a.createElement(i.Form.Control.Feedback,{type:"invalid"},e)})))}E.defaultProps={autoComplete:"off"},T.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>s});var a=n(1024),r=n(92802),i=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 r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,d=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=o.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(o.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(r.J9,Object.assign({enableReinitialize:!0},d,{initialValues:m,onSubmit:function(t,a){var r=a.setSubmitting,i=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&i(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];o(u,d)}r(!1)}))},initialStatus:p}),i.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,r.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},85784:(e,t,n)=>{n.d(t,{Q:()=>l});var a=n(1024),r=n(79014),i=n(83657),o=n(51365);function l(e){var t=a.useContext(o.M);if(!r.q.isFunction(t))return a.createElement(a.Fragment,null);var n=t(e.video,{analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions});return a.createElement(i.e,{actions:n,className:"float-right mt-n1",actionsDropdownClassName:"btn btn-link ml-1"})}},70872:(e,t,n)=>{n.d(t,{u:()=>c});var a=n(1024),r=n(65858),i=n(8493),o=n(11025),l=n(38647);function c(e){var t,n,c,s=o.M.getCanBeConsumed(e.video).canNavigate,u=o.M.getTitle(e.video),d=Object.assign(Object.assign({},e.analyticsData),{id:null===(t=e.video)||void 0===t?void 0:t.id,name:null===(n=e.video)||void 0===n?void 0:n.name}),m=Object.assign(Object.assign({},e.analyticsOptions),{actionType:r.UserAction.Click,descriptor:r.ClickDescriptor.Title}),p=e.textClassName||"m-0 text-truncate mb-n1 pb-1 align-middle ".concat("md"===e.size?"h4":"h6");return a.createElement(i.F,{className:e.linkClassName,appLink:s?e.appLink:null,analyticsOptions:m,analyticsData:d},a.createElement("h5",{className:p,title:null!==(c=e.video.name)&&void 0!==c?c:""},u,a.createElement(l.m,{size:e.size,video:e.video,yearGroups:e.yearGroups})))}},46825:(e,t,n)=>{n.d(t,{L:()=>Jt});var a=n(1024),r=n.n(a),i=n(20354),o=n(79014),l=n(65294),c=n(53957),s=n(58130),u=n(78479),d=n(42308),m=n(11518),p=n(58704),f=n(5281),v=n(58564),g=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=r().memo((function(e){var t,n,a=e.data,i=e.seriesAppLink,o=e.context,l=e.thumbnailSize,s=e.preloadImage,u=(t=(0,g.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,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 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=u[0],m=u[1];r().useEffect((function(){e.onHover(m)}),[m]);var p="lcmBu";return o.type===c.WidgetType.LargeRow&&(p="iVL1A"),r().createElement("div",{ref:d,className:"px-1 flex-shrink-0 position-relative ".concat(p," ").concat("CmXOx")},r().createElement(v.u,{video:a,type:"expandable",appLink:e.getAppLink(a),seriesAppLink:i,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 r().createElement(f.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 r().createElement(f.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(8493),w=n(34004),L=n(65858);const k={largeSeriesItem:"HZ00X",smallSeriesItem:"PQ2sv",partialLoading:"hMoHO"};function C(e){var t=e.data,n=Object.assign(Object.assign({},e.analyticsData),{id:null==t?void 0:t.id,name:null==t?void 0:t.name}),r=Object.assign(Object.assign({},e.analyticsOptions),{actionType:L.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?k.smallSeriesItem:k.largeSeriesItem," "),analyticsData:n,analyticsOptions:r},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 r().createElement(f.k,{name:e.name,description:e.description,type:c.WidgetType.Row,contents:p.z.Series,collection:e.content,childComponent:C,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 A=n(3626),j=n(94495);function D(e){var t,n,a,i,o=e.content[0];return r().createElement(r().Fragment,null,r().createElement(j.B,{name:e.name,description:e.description}),r().createElement(A.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===(i=null===(a=e.appLinks)||void 0===a?void 0:a.series)||void 0===i?void 0:i.call(a,o.series),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,imageCdnUrl:e.imageCdnUrl,hideInteractiveBadge:!0,showVideoGuidance:!0,yearGroups:e.yearGroups}))}var I=n(99910);function F(){return r().createElement("div",{className:"partial-loading-background badge-pill mr-2",style:{height:"2.5rem",width:"9.375rem"}})}function P(){return r().createElement("div",{className:"d-flex align-items-center mw-100"},r().createElement(F,null),r().createElement(F,null))}var M=n(9513),R=n(65163),W=n(47770),U=n(16450),z=n(43741),V=n(67453),B=n(54610);function _(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 H(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function Y(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:V.j.getUrlById(e.imageCdnUrl,B.__.Covers,e.metadata.imageId)},totalVideos:G(t)}}(e,e.content),i=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===c.CuratedDashboardAppLink.ClassificationLatestReleases;return r().createElement(U.e,{collection:a?[a].concat((n=e.content,function(e){if(Array.isArray(e))return _(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 _(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)?_(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,getChildAppLink:i?function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationLatestReleases)||void 0===a?void 0:a.call(n,t)}:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},childComponent:M.Vz,partialLoadingComponent:z.Q,heading:e.name,getSubtitle:i?H:void 0,description:e.description,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}var X=n(98981),Z={actionType:L.UserAction.Click,entity:L.EntityType.Playlist,location:L.LocationContext.PlaylistListItem,descriptor:L.ClickDescriptor.Cover};function K(e){return a.createElement("div",null,a.createElement(j.B,{name:e.name,description:e.description}),a.createElement(I.Row,{noGutters:!0,className:"mx-n1 mb-n2"},e.content.map((function(t){var n,r;return a.createElement(I.Col,{key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(X.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===r?void 0:r.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),Z)}))}))))}var Q=n(49542),q=n(78276),$=n(5465);const J={slidingSubject:"ibXG0",heading:"P16Yg",thumbnailContainer:"erBxF",partialLoading:"IgCcl",labelContainer:"ujwlj"};function ee(e){var t=e.data,n=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:"".concat(J.slidingSubject," ").concat(J.thumbnailContainer)},a.createElement(q.Z,{data:t.tallPoster,appLink:e.getAppLink(t),imageType:B.__.TallPosters,preload:n,imageOptions:{size:B.h2.Medium},imageClassName:"rounded-lg",analyticsData:e.analyticsData,analyticsOptions:r},a.createElement($.oy,{type:$.mS.TallSubject}),a.createElement("h3",{className:"h5 px-2 ".concat(J.heading)},t.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,r,i;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===c.CuratedDashboardAppLink.ExploreAllTopics?ne:"",name:null===(r=e.metadata)||void 0===r?void 0:r.text,tallPoster:{url:(null===(i=e.metadata)||void 0===i?void 0:i.imageId)?V.j.getUrlById(e.imageCdnUrl,B.__.TallPosters,e.metadata.imageId):""}}}(e),a=Q.d.getCustomAppLink(e);return r().createElement("div",null,r().createElement(f.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,r,i;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===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t):null},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function re(e){var t;return r().createElement("div",null,r().createElement(f.k,{name:e.name,description:e.description,type:c.WidgetType.Row,contents:p.z.SmallSeries,collection:e.content,childComponent:C,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 ie=function(){return r().createElement("div",{className:"".concat(J.slidingSubject," px-1")},r().createElement("div",{className:"".concat(J.partialLoading," partial-loading-background rounded-lg")}))},oe=n(55460);const le="eSMIx",ce="layDP";function se(e){var t,n,a=Q.d.getCustomAppLink(e),i=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?V.j.getUrlById(e.imageCdnUrl,B.__.Banners,e.metadata.imageId):"";return r().createElement("div",null,r().createElement(T.F,{appLink:a,style:i?{backgroundImage:"url(".concat(i,")")}:{},className:"".concat(le," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":ce),analyticsData:{url:oe.AppLinkHelper.getHref(a)},analyticsOptions:{actionType:L.UserAction.Click,entity:L.EntityType.Url,location:L.LocationContext.ContentUpdatesBanner}},r().createElement("h2",{className:"h4 text-white mb-0"},e.name)),r().createElement(f.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}))}const ue={banner:"iCyo4",bannerContent:"cgv_6",small:"BVRPQ"};function de(e){var t,n,a=e.content[0],i="sm"===e.size,o=V.j.createBannerUrl(a.banner,{fallbackBaseUrl:"",fallbackCategoryName:a.name,type:B.__.Banners},{size:B.h2.Large}),l=function(e){var t=(0,x.k)();return e||t.xs||t.sm?"h4":t.md?"h3":"h2"}(i),c=function(e){return e?"clamp-1":"clamp-2"}(i),s=Object.assign(Object.assign({},e.analyticsOptions),{location:L.LocationContext.Classification,actionType:L.UserAction.Click,entity:L.EntityType.Classification,descriptor:L.ClickDescriptor.Banner});return r().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,a),analyticsData:e.analyticsData,analyticsOptions:s,className:i?ue.small:""},r().createElement("div",{className:"banner rounded-lg position-relative ".concat(ue.banner),style:{backgroundImage:"url('".concat(o,"')")}},e.name&&r().createElement("div",{className:"".concat(ue.bannerContent)},r().createElement("h2",{className:"".concat(l," ").concat(c," text-white")},e.name))))}function me(e){return r().createElement(de,Object.assign({},e))}function pe(e){var t="sm"===e.size?ue.small:"";return r().createElement("div",{className:t},r().createElement("div",{className:"banner rounded-lg position-relative ".concat(ue.banner)},r().createElement("div",{className:"".concat(ue.bannerContent)})))}de.defaults={size:"md"},pe.defaults={size:"md"};var fe=n(92802),ve=n(23481),ge=n(83345),he=n(98364),ye=n(10874),be=n(82644),Ee=n(38365),Te=n(23201),we=n(69883),Le=n(5173),ke=Le.Ry().shape({feedbackInput:Le.Z_().max(5e3,(function(){return ve.T.getPhrase("shared.feedbackForm","tooLong")}))});const Ce={promptContainer:"A_kCD",text:"UFm9h",form:"na9Vb"};function xe(e){return xe="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},xe(e)}function Ne(){Ne=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",l=r.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,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),l=new C(r||[]);return a(o,"_invoke",{value:T(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function m(){}function p(){}function f(){}var v={};c(v,i,(function(){return this}));var g=Object.getPrototypeOf,h=g&&g(g(x([])));h&&h!==t&&n.call(h,i)&&(v=h);var y=f.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 r(a,i,o,l){var c=u(e[a],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==xe(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return r("throw",e,o,l)}))}l(c.arg)}var i;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return i=i?i.then(a,a):a()}})}function T(e,t,n){var a="suspendedStart";return function(r,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===r)throw i;return{value:void 0,done:!0}}for(n.method=r,n.arg=i;;){var o=n.delegate;if(o){var l=w(o,n);if(l){if(l===d)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=u(e,t,n);if("normal"===c.type){if(a=n.done?"completed":"suspendedYield",c.arg===d)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")),d;var r=u(a,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,r=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 r.next=r}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=f,a(y,"constructor",{value:f,configurable:!0}),a(f,"constructor",{value:p,configurable:!0}),p.displayName=c(f,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,f):(e.__proto__=f,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,r,i){void 0===i&&(i=Promise);var o=new E(s(t,n,a,r),i);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,i,(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,C.prototype={constructor:C,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(k),!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 r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):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),d},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),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;k(n)}return r}}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),d}},e}function Se(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 Oe=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))},Ae="shared.feedbackForm";function je(e){var t,n,a=(t=r().useState("prompt"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Se(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)?Se(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.")}()),i=a[0],l=a[1],c=(0,we.Z)();function u(t,n){return Oe(this,void 0,void 0,Ne().mark((function a(){return Ne().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"===i?"positive":"negative"});case 3:l("done"),a.next=10;break;case 6:a.prev=6,a.t0=a.catch(0),l("prompt"),c.error(ve.T.getPhrase(Ae,"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"===i?r().createElement("div",{className:Ce.promptContainer},r().createElement("p",{className:"font-weight-500 mr-2 ".concat(Ce.text)},r().createElement(he.V,{emoji:"🔎"},r().createElement(ge.x,{namespace:Ae,phrase:"feedbackQuestion"}))),r().createElement("div",{className:"d-flex align-items-center"},r().createElement(ye.h,{className:"btn btn-outline-dark mr-2",onClick:function(){l("yes")},svgName:s.vn.ThumbsUp},r().createElement(ge.x,{namespace:Ae,phrase:"yes"})),r().createElement(ye.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:s.vn.ThumbsDown},r().createElement(ge.x,{namespace:Ae,phrase:"no"})))):"yes"===i?r().createElement(be.n,{onSubmit:u,initialValues:{feedbackInput:""},validationSchema:ke},r().createElement(fe.l0,{className:Ce.form},r().createElement("p",{className:"font-weight-500 ".concat(Ce.text)},r().createElement(he.V,{emoji:"👏"},r().createElement(ge.x,{namespace:Ae,phrase:"happyFeedback"}))),r().createElement(Ee.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:ve.T.getPhrase(Ae,"feedbackPlaceholder"),spellCheck:!1}),r().createElement("div",{className:"d-flex justify-content-end w-100"},r().createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},r().createElement(ge.x,{namespace:Ae,phrase:"back"})),r().createElement(Te.A,{variant:"dark",submitText:ve.T.getPhrase(Ae,"sendFeedback")})))):"no"===i?r().createElement(be.n,{onSubmit:u,initialValues:{feedbackInput:""},validationSchema:ke},r().createElement(fe.l0,{className:Ce.form},r().createElement("p",{className:"font-weight-500 ".concat(Ce.text)},r().createElement(he.V,{emoji:"😢"},r().createElement(ge.x,{namespace:Ae,phrase:"unhappyFeedback"}))),r().createElement(Ee.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:ve.T.getPhrase(Ae,"feedbackPlaceholder"),spellCheck:!1}),r().createElement("div",{className:"d-flex justify-content-end w-100"},r().createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},r().createElement(ge.x,{namespace:Ae,phrase:"back"})),r().createElement(Te.A,{variant:"dark",submitText:ve.T.getPhrase(Ae,"sendFeedback")})))):"done"===i?r().createElement("p",{className:"font-weight-500 text-center"},r().createElement(he.V,{emoji:"🙌"},r().createElement(ge.x,{namespace:Ae,phrase:"thankYou"}))):r().createElement(r().Fragment,null):r().createElement(r().Fragment,null)}const De="MtcB3",Ie="Geg0V";function Fe(e){return r().createElement(r().Fragment,null,r().createElement("div",{className:"".concat(De," px-4 py-3 rounded-lg mb-3")},r().createElement("h2",{className:"h5"},e.name),r().createElement(I.Row,{className:"mb-2 ".concat(Ie)},e.content.map((function(t){var n,a,i,o=V.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:B.h2.Small});return r().createElement(I.Col,{key:t.id,xs:12,sm:6,lg:4},r().createElement(T.F,{appLink:null===(i=null===(a=e.appLinks)||void 0===a?void 0:a.classification)||void 0===i?void 0:i.call(a,t),className:"d-flex align-items-center mb-2"},r().createElement("div",{className:"".concat("ZMjnx"," mr-2")},r().createElement("div",{className:"".concat("SsxEf"," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),r().createElement("div",null,t.name)))})))),r().createElement(je,{onSubmit:e.onSubmitFeedback}))}var Pe=n(2284),Me=n(42735);const Re="OZATG",We="hcAU2",Ue="Tbieu",ze="mGGrd",Ve="VtzxT",Be="jrY7R",_e="yAgR6",Ge="RjJ7O",He="TJ7Sl",Ye="yzmvY",Xe="hGi43";function Ze(e){var t,n,a,i=V.j.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:B.h2.Small}),o=V.j.createUrl(null===(n=e.data.thumbnail)||void 0===n?void 0:n.url,{size:B.h2.Medium}),l={backgroundColor:null===(a=e.data.metadata)||void 0===a?void 0:a.backgroundColor};return o&&(l.backgroundImage="url('".concat(o,"')")),r().createElement("div",{className:"d-flex position-relative rounded-lg h-100 ".concat(We," ").concat(e.isLarge?Ue:ze),style:l},r().createElement("div",{className:"".concat(Ve)},r().createElement("div",{className:"".concat(Be)},r().createElement("h3",{className:"".concat(_e," h4 ").concat(e.isLarge?"text-nowrap text-truncate":"text-wrap clamp-3")},e.data.name),e.isLarge&&r().createElement("div",{className:"text-left ".concat(Ge)},r().createElement("p",{className:Ye},e.data.description))),e.isLarge&&r().createElement("div",{className:Xe},r().createElement(Me.K,{className:"".concat(!e.appLink&&"cursor-default"," btn btn-outline-dark")},ve.T.getPhrase("shared.subjectThumbnailWidgetItem","buttonLabel")))),!o&&!!i&&r().createElement("div",{className:"".concat(He),style:{backgroundImage:"url('".concat(i,"')")}}))}var Ke=r().memo((function(e){var t,n,a,i,o=(null===(t=e.data)||void 0===t?void 0:t.status)===Pe.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===(i=e.data)||void 0===i?void 0:i.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?r().createElement(T.F,{className:Re,appLink:e.appLink,analyticsData:l,analyticsOptions:c},r().createElement(Ze,Object.assign({},e))):r().createElement(Ze,Object.assign({},e))}));function Qe(e){return r().createElement(r().Fragment,null,r().createElement(j.B,{name:e.name,description:e.description}),r().createElement(I.Row,{noGutters:!0,className:"mx-n1 mb-n2"},e.content.map((function(t){var n,a;return r().createElement(I.Col,{key:t.id,sm:12,md:6,className:"px-1 pb-2"},r().createElement(Ke,{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 qe(e){return r().createElement(r().Fragment,null,r().createElement(j.B,{name:e.name,description:e.description}),r().createElement(I.Row,{noGutters:!0,className:"mx-n1 mb-n2"},e.content.map((function(t){var n,a;return r().createElement(I.Col,{key:t.id,lg:4,md:6,sm:6,xs:12,className:"px-1 pb-2"},r().createElement(Ke,{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 $e(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 Je(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),rt=n(83523),it=n(92038),ot="shared.subjectWidgetItem",lt=r().forwardRef((function(e,t){var n;return"hidden"===(null===(n=e.style)||void 0===n?void 0:n.visibility)?r().createElement("div",{ref:t,className:"d-flex align-items-center position-relative clamp-2 ".concat(it.Z.widgetItem," ").concat(it.Z.draggingItem),style:et.t.omit(e.style,["visibility"])}):r().createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(it.Z.widgetItem),style:et.t.omit(e.style,["visibility"])},r().createElement("div",Object.assign({className:"\n ".concat(it.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),r().createElement(nt.x,{svgName:s.vn.Hamburger})),r().createElement("div",{className:"px-3 text-center d-flex flex-column justify-content-center text-nowrap text-truncate"},r().createElement("h3",{className:"".concat(it.Z.name," h6 text-truncate mb-0 mt-1 pb-1 ").concat(e.isVisible?"":"text-muted")},e.data.name)),r().createElement("div",{className:"ml-auto mr-3"},r().createElement(rt.Z,{on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?ve.T.getPhrase(ot,e.isVisible?"hideFromDashboard":"showOnDashboard"):ve.T.getPhrase(ot,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),ct=n(13112),st=n(1287),ut=n(2102),dt=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 ft(){ft=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",l=r.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,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),l=new C(r||[]);return a(o,"_invoke",{value:T(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function m(){}function p(){}function f(){}var v={};c(v,i,(function(){return this}));var g=Object.getPrototypeOf,h=g&&g(g(x([])));h&&h!==t&&n.call(h,i)&&(v=h);var y=f.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 r(a,i,o,l){var c=u(e[a],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==pt(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return r("throw",e,o,l)}))}l(c.arg)}var i;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return i=i?i.then(a,a):a()}})}function T(e,t,n){var a="suspendedStart";return function(r,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===r)throw i;return{value:void 0,done:!0}}for(n.method=r,n.arg=i;;){var o=n.delegate;if(o){var l=w(o,n);if(l){if(l===d)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=u(e,t,n);if("normal"===c.type){if(a=n.done?"completed":"suspendedYield",c.arg===d)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")),d;var r=u(a,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,r=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 r.next=r}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=f,a(y,"constructor",{value:f,configurable:!0}),a(f,"constructor",{value:p,configurable:!0}),p.displayName=c(f,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,f):(e.__proto__=f,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,r,i){void 0===i&&(i=Promise);var o=new E(s(t,n,a,r),i);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,i,(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,C.prototype={constructor:C,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(k),!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 r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):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),d},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),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;k(n)}return r}}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),d}},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,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 gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gt(e,t):void 0}}(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 gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var ht="shared.editableCoverFixedPillListSmall";function yt(e){var t,n,a=vt(r().useState(!1),2),i=a[0],o=a[1],l=vt(r().useState(!1),2),c=l[0],u=l[1],d=r().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(r().useState(d),2),p=m[0],f=m[1],v=vt(r().useState(d),2),g=v[0],h=v[1],y=Q.d.useGetContent(e.unfilteredContent,Object.values(g)),b=y.content,E=y.unfilteredContent,T=i?E:b,w=(0,we.Z)();r().useEffect((function(){o(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var k=r().useMemo((function(){return!(i||!T.length)&&Object.values(g).some((function(e){return e.hidden}))}),[i,g]);function C(e){return g[e.id]?g[e.id].index:T.findIndex((function(t){return t.id===e.id}))}function x(e){var t;return!(null===(t=g[e.id])||void 0===t?void 0:t.hidden)}function N(e){var t=Object.assign({},g),n=x(e);t[e.id]={id:e.id,hidden:n,index:C(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=r().useMemo((function(){return!et.t.isEqual(d,g)}),[d,g]),O={id:e.presentation.id,name:ve.T.getPhrase(ht,"exploreAll"),cover:e.presentation.cover};return T.length?r().createElement("div",null,r().createElement("div",{className:"d-flex flex-wrap align-items-center justify-content-between ".concat(e.description||i?"":"mb-1")},r().createElement("div",null,r().createElement("div",{className:"d-flex no-wrap flex-row"},r().createElement("h2",{className:"h4 mb-2 align-self-end flex-shrink-0"},i?ve.T.getPhrase(ht,"updating"):e.name),!i&&e.canManageDiscoverPreferences&&r().createElement(at.L,{className:"ml-1 align-self-end mb-2",onClick:function(){return o(!0)}},r().createElement(nt.x,{svgName:s.vn.Edit}))),!!e.description&&!i&&r().createElement("p",{className:"text-truncate description mb-2"},e.description),i&&r().createElement("p",{className:"description mb-2"},r().createElement(ge.x,{namespace:ht,phrase:"editingDescription"}))),i&&e.canManageDiscoverPreferences&&r().createElement("div",{className:"mb-2 d-flex align-items-start"},r().createElement(I.Button,{variant:"link",className:"mr-2",onClick:function(){h(p),o(!1)}},r().createElement(ge.x,{namespace:ht,phrase:"cancel"})),r().createElement(ut.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,r=ft().mark((function t(){return ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u(!0),e.updatePreferences(e.id,Object.values(g)).then((function(){f(g),u(!1),o(!1)})).catch((function(){u(!1),w.error(ve.T.getPhrase(ht,"error"))}));case 2:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,l)}c((r=r.apply(t,n||[])).next())}));var t,n,a,r},showSpinner:c,disabled:!S},r().createElement(ge.x,{namespace:ht,phrase:"update"})))),r().createElement(I.Row,{noGutters:!0,className:"mx-n1 mb-n2"},k&&r().createElement(I.Col,{className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},r().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})),r().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 r().createElement("div",{className:"bg-white rounded-lg ".concat("K1Ce4")},r().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=C({id:t.id}),r=T.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==r){var i=T[a];if(i){var o=Object.assign({},g);dt.l.reorder(T,a,r).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!x(e)}})),h(o),mt.k.logUserAction({id:i.id,name:i.name,oldIndex:a,newIndex:r},{location:L.LocationContext.EditableSubjectPreferencesWidget,entity:L.EntityType.Classification,actionType:L.UserAction.Move,workflowPhase:L.WorkflowPhase.Complete})}}},vertical:!1},T.map((function(t){return r().createElement(I.Col,{className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},r().createElement(r().Fragment,null,i?r().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}}):r().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})))}))))):r().createElement(r().Fragment,null)}var bt=n(11025),Et=n(80143),Tt=n(68626),wt=n(90927),Lt=n(47325),kt=n(96022),Ct=n(38647);function xt(e){var t,n,a,i,o,l,c,s,u=e.content[0],d=bt.M.getVideoAudiences(u),m=(0,Et.n)(d,e.audiences),p=bt.M.hasSeries(u),f=mt.k.mergeOptions(e.analyticsOptions,{actionType:L.UserAction.Click,entity:bt.M.getAnalyticsEntity(u),location:L.LocationContext.ThumbnailHeroMediaWidget}),g=bt.M.getCanBeConsumed(u).canNavigate;return u?r().createElement("div",null,r().createElement(j.B,{name:e.name,description:e.description}),r().createElement(v.u,{video:u,imageOptions:{size:B.h2.Large},type:"static",textPosition:Tt.z.Independent,analyticsOptions:f,audience:m,hideRating:!!m,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,u),seriesAppLink:null===(i=null===(a=e.appLinks)||void 0===a?void 0:a.series)||void 0===i?void 0:i.call(a,function(e){if(bt.M.isVideo(e))return e.series}(u)),setFavourite:e.setFavourite,canFavourite:e.canFavourite}),r().createElement("div",{className:"RmYET"},r().createElement("div",null,bt.M.isVideo(u)&&p&&r().createElement(kt.M,{video:u,appLink:null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.series)||void 0===l?void 0:l.call(o,u.series),analyticsOptions:f,className:"mt-2 ".concat("zmtsM")}),r().createElement("div",{className:p?"":"mt-2"},r().createElement(T.F,{appLink:null===(s=null===(c=e.appLinks)||void 0===c?void 0:c.videoType)||void 0===s?void 0:s.call(c,u),analyticsData:{id:u.id,name:u.name},analyticsOptions:Object.assign(Object.assign({},f),{descriptor:L.ClickDescriptor.Title}),className:"d-inline-block ".concat(g?"":"cursor-default text-decoration-none disabled"),disabled:!g},r().createElement("h3",{className:"h4 mb-0"},u.name,r().createElement(Ct.m,{video:u,yearGroups:e.yearGroups}))))),r().createElement("div",{className:"d-flex mt-2 ".concat("EQXKD")},r().createElement(wt.N,{video:u}),r().createElement(Lt.I,{video:u,imageCdnUrl:e.imageCdnUrl})))):r().createElement(r().Fragment,null)}function Nt(e){return r().createElement("div",null,r().createElement("h2",{className:"curated-widget-heading"},e.name),!!e.description&&r().createElement("p",{className:"description curated-widget-description"},e.description))}function St(e){return r().createElement(de,Object.assign({},e,{size:"sm"}))}var Ot=r().memo((function(e){var t,n=e.data,a=e.getSeriesAppLink,i=e.context,o=e.thumbnailSize,l=e.preloadImage,s=e.presentationAudiences,u=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,d=(0,Et.n)(u,s),m=(0,x.k)(),p="JSM4l";return i.type===c.WidgetType.LargeRow&&(p="YYpNz"),r().createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(p)},r().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:d,hideRating:!!d,hideDuration:!1,yearGroups:e.yearGroups,hideTitle:e.hideTitle,hideSeries:e.hideSeries}))}));function At(e){var t,n,a,i,o,l,s,u;return r().createElement(f.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:Ot,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===(i=e.metadata)||void 0===i?void 0:i.hideObjectTitle,hideSeries:null===(o=e.metadata)||void 0===o?void 0:o.hideObjectSeries},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===(u=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===u?void 0:u.call(s,e.id,e.name)})}function jt(e){return r().createElement("div",{className:"col-".concat(e.colSize," px-1")},r().createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-lg",style:{paddingBottom:"56.25%"}}),r().createElement("div",{className:"mt-2"},r().createElement("div",{style:{height:"1.4rem"}},r().createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),r().createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}function Dt(e){var t,n,a,i,o,l,s,u,m,v,g,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===d.z.ContinueWatching&&(null===(a=e.appLinks)||void 0===a?void 0:a.watchHistory)&&(h=null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.watchHistory)||void 0===o?void 0:o.call(i)),r().createElement(f.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:Ot,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSeriesAppLink:null===(u=e.appLinks)||void 0===u?void 0:u.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},getChildAppLink:null===(g=e.appLinks)||void 0===g?void 0:g.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:h})}function It(e){return r().createElement("div",{className:"col-".concat(e.colSize," px-1")},r().createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-lg",style:{paddingBottom:"56.25%"}}),r().createElement("div",{className:"mt-2"},r().createElement("div",{style:{height:"1.4rem"}},r().createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),r().createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}var Ft=n(22843);function Pt(e){var t,n,a,i,o=bt.M.isVideo(e.video)&&bt.M.hasSeries(e.video),l=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video),c=o?null===(i=null===(a=e.appLinks)||void 0===a?void 0:a.series)||void 0===i?void 0:i.call(a,e.video.series):null,s={actionType:L.UserAction.Click,entity:bt.M.getAnalyticsEntity(e.video),location:L.LocationContext.ThumbnailFixedListMediaLargeWidget,descriptor:L.ClickDescriptor.Thumbnail},u=bt.M.getVideoAudiences(e.video),d=(0,Et.n)(u,e.audiences);return r().createElement("div",{className:"col-md-6"},r().createElement(v.u,{analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),s),video:e.video,appLink:l,seriesAppLink:c,imageOptions:{size:B.h2.Medium},textPosition:Tt.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:d,hideRating:!!d}),r().createElement(Ft.h,{video:e.video,appLink:l,seriesAppLink:c,yearGroups:e.yearGroups}),r().createElement("div",{className:"d-flex justify-content-start align-items-center pt-1"},r().createElement(wt.N,{video:e.video}),r().createElement(Lt.I,{video:e.video,imageCdnUrl:e.imageCdnUrl})))}function Mt(e){return r().createElement(r().Fragment,null,r().createElement(j.B,{name:e.name,description:e.description}),r().createElement("div",{className:"row ".concat("KItVW")},e.content.map((function(t){return r().createElement(Pt,Object.assign({key:t.id,video:t},e))}))))}const Rt="HwejH";var Wt=function(){return r().createElement("div",{className:"mt-2"},r().createElement("div",{style:{height:"1.4rem"}},r().createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"12rem"}})),r().createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"15rem"}}))},Ut=n(81993);const zt={rowWidth:"TzZuL"};function Vt(e){return r().createElement(T.F,{appLink:e.getAppLink(e.data),className:"".concat(zt.rowWidth," 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})},r().createElement("div",{className:"".concat(Ut.u.mapRatingToClass(e.data.value)," py-3 rounded-lg ")},r().createElement("div",{className:"d-flex justify-content-center align-items-center text-white"},r().createElement(nt.x,{svgName:s.vn.Search,size:nt.S.Medium}),r().createElement("h4",{className:"mb-0"},e.data.code))))}function Bt(e){var t=e.content.filter((function(e){return e.code&&e.value<128}));return r().createElement(r().Fragment,null,r().createElement(f.k,{name:e.name,description:e.description,type:c.WidgetType.Row,contents:p.z.Ratings,getChildAppLink:function(t,n){var a,r;return null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.rating)||void 0===r?void 0:r.call(a,t,n)},collection:t,childComponent:Vt,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0}))}function _t(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),Ht=n(7733);var Yt=function(e){var t,n=V.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:B.h2.Medium}),a=(0,Gt.x)(e.data.name,Ht.o);return r().createElement(T.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz")},r().createElement("div",{className:"rounded-circle w-100 h-100 ".concat("vt0gx"," ").concat(a),style:{backgroundImage:"url(".concat(n,")")}}))};function Xt(e){return r().createElement(f.k,{name:e.name,description:e.description,type:c.WidgetType.Row,contents:p.z.Companies,collection:e.content,childComponent:Yt,extraChildComponentProps:{imageCdnUrl:e.imageCdnUrl},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,getChildAppLink:e.appLinks.company})}var Zt;function Kt(e){return Kt="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},Kt(e)}function Qt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Kt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!==Kt(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Kt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qt=(Qt(Zt={},u.f.ThumbnailHeroMedia,{getComponent:function(){return xt},partialLoading:function(){return r().createElement("div",null,r().createElement("div",{className:"w-100 partial-loading-background rounded-lg",style:{paddingBottom:"56.25%"}}),r().createElement("div",{className:"KjaI4"},r().createElement("div",null,r().createElement("div",{style:{height:"1.5rem"}},r().createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),r().createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),r().createElement("div",{className:"pt-2 mw-100"},r().createElement(P,null))))},icon:s.vn.WidgetTemplateThumbnailHeroMedia,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.Company]},className:""}),Qt(Zt,u.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(k.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:""}),Qt(Zt,u.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case d.z.CuratedClassifications:return ae;case d.z.CuratedSeries:return re;default:return ae}},partialLoading:function(){for(var e,t=(e=(0,x.k)()).xs?2:e.sm?3:e.md?4:e.lg?5:6,n=[],a=0;a<t;a++)n.push(r().createElement(ie,{key:a}));return r().createElement("div",{className:"pb-3"},r().createElement(N.l,null),r().createElement("div",{className:"row no-gutters mx-n1"},n))},icon:s.vn.WidgetTemplatePosterSlidingListSmall,getTargets:function(e){switch(e){case d.z.CuratedClassifications:return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.MoviesAndTv];case d.z.CuratedSeries:return[c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company];default:return[]}},className:""}),Qt(Zt,u.f.ThumbnailFeaturedMedia,{getComponent:function(){return D},partialLoading:function(){return r().createElement(r().Fragment,null,r().createElement(I.Row,null,r().createElement(I.Col,{xs:12,md:6},r().createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-lg")})),r().createElement(I.Col,{xs:12,md:6},r().createElement("div",{className:"J5CAD"},r().createElement("div",null,r().createElement("div",{style:{height:"1.5rem"}},r().createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),r().createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),r().createElement("div",{className:"pt-2 mw-100"},r().createElement(P,null))))))},icon:s.vn.WidgetTemplateThumbnailFeaturedMedia,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.Company]},className:""}),Qt(Zt,u.f.CoverFixedPillListLarge,{getComponent:function(){return W.K},partialLoading:function(){return r().createElement("div",{className:"py-2"},r().createElement(N.l,null),r().createElement(I.Row,{className:"no-gutters"},Array(5).fill(null).map((function(e,t){return r().createElement(I.Col,{key:t,xs:12,sm:6,lg:4},r().createElement("div",{className:"position-relative mb-2"},r().createElement(M.Ml,null)))}))))},icon:s.vn.WidgetTemplateCoverFixedPillListLarge,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover]},className:""}),Qt(Zt,u.f.CoverFixedPillListXSmall,{getComponent:function(){return Fe},partialLoading:function(){return r().createElement("div",{className:"".concat(De," px-4 py-3 rounded-lg mb-3")},r().createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.35rem",width:"8rem"}}),r().createElement(I.Row,{className:"mb-2 ".concat(Ie)},Array(8).fill(null).map((function(e,t){return r().createElement(I.Col,{key:t,xs:12,sm:6,lg:4},r().createElement("div",{className:"d-flex align-items-center mb-2"},r().createElement("div",{className:"partial-loading-background mr-2 rounded",style:{width:"2rem",height:"2rem"}}),r().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:""}),Qt(Zt,u.f.CoverSlidingPillListSmall,{getComponent:function(){return Y},partialLoading:function(){return r().createElement("div",{className:"py-2"},r().createElement(N.l,null),r().createElement(R.QL,{partialLoadingComponent:M.Qh}))},icon:s.vn.WidgetTemplateCoverSlidingPillListSmall,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company]},className:""}),Qt(Zt,u.f.CoverFixedTileList,{getComponent:function(){return K},partialLoading:function(){return r().createElement(r().Fragment,null,r().createElement(N.l,null),r().createElement(X.YA,{itemClassName:"columns-of-five"}))},icon:s.vn.WidgetTemplateCoverFixedTileList,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.Company]},className:""}),Qt(Zt,u.f.FeaturedThumbnailSlidingList,{getComponent:function(){return se},partialLoading:function(){return r().createElement("div",null,r().createElement("div",{className:"banner rounded-lg position-relative partial-loading-background ".concat(le," ").concat(ce," mb-1 ")}),r().createElement(m.j7,{hideDescription:!0,hideHeading:!0}))},icon:s.vn.WidgetTemplateFeaturedThumbnailSlidingList,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover]},className:""}),Qt(Zt,u.f.HeroBanner,{getComponent:function(){return me},partialLoading:function(){return r().createElement(pe,null)},icon:s.vn.WidgetTemplateHeroBanner,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover]},className:""}),Qt(Zt,u.f.HeroBannerSmall,{getComponent:function(){return St},partialLoading:function(){return r().createElement(pe,{size:"sm"})},icon:s.vn.WidgetTemplateHeroBannerSmall,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover]},className:""}),Qt(Zt,u.f.ThumbnailFixedListLarge,{getComponent:function(){return Qe},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return $e(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 $e(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)?$e(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 r().createElement("div",null,r().createElement(N.l,null),r().createElement(I.Row,{noGutters:!0,className:"mx-n1"},t.map((function(e,t){return r().createElement(I.Col,{key:t,sm:12,md:6,className:"p-1"},r().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:""}),Qt(Zt,u.f.ThumbnailFixedListSmall,{getComponent:function(){return qe},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return Je(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 Je(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)?Je(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 r().createElement(r().Fragment,null,r().createElement(N.l,null),r().createElement(I.Row,{noGutters:!0,className:"mx-n1 "},t.map((function(e,t){return r().createElement(I.Col,{key:t,lg:4,md:6,sm:6,xs:12,className:"p-1"},r().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:""}),Qt(Zt,u.f.EditableCoverFixedPillListSmall,{getComponent:function(){return yt},partialLoading:function(){return r().createElement("div",{className:"py-2"},r().createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),r().createElement(I.Row,{className:"no-gutters"},Array(7).fill(null).map((function(e,t){return r().createElement(I.Col,{key:t,sm:6,lg:4},r().createElement("div",{className:"position-relative mb-2"},r().createElement(M.Qh,null)))}))))},icon:s.vn.WidgetTemplateEditableCoverFixedPillListSmall,getTargets:function(){return[c.DashboardTargetType.Discover]},className:""}),Qt(Zt,u.f.Heading,{getComponent:function(){return Nt},partialLoading:function(){return r().createElement("div",null,r().createElement("div",{className:"partial-loading-background curated-widget-heading",style:{height:"2.099625rem",width:"16.5rem",maxWidth:"80%"}}," "),r().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"}),Qt(Zt,u.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return Mt},partialLoading:function(){return r().createElement(r().Fragment,null,r().createElement(N.l,null),r().createElement("div",{className:"row ".concat("hk2Ed")},r().createElement("div",{className:"col-sm-12 col-md-6"},r().createElement("div",{className:"".concat(Rt," partial-loading-background rounded-lg")}),r().createElement(Wt,null),r().createElement("div",{className:"pt-1 mw-100"},r().createElement(P,null))),r().createElement("div",{className:"col-sm-12 col-md-6"},r().createElement("div",{className:"".concat(Rt," partial-loading-background rounded-lg")}),r().createElement(Wt,null),r().createElement("div",{className:"pt-1 mw-100"},r().createElement(P,null)))))},icon:s.vn.WidgetTemplateThumbnailFixedListMediaLarge,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.Company]},className:""}),Qt(Zt,u.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return At},partialLoading:function(){return r().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:""}),Qt(Zt,u.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Dt},partialLoading:function(){return r().createElement(m.j7,{size:"sm",childComponent:It})},icon:s.vn.WidgetTemplatePopoutThumbnailSlidingListSmall,getTargets:function(){return[c.DashboardTargetType.Discover,c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company]},className:""}),Qt(Zt,u.f.FilterSlidingPillListSmall,{getComponent:function(){return Bt},partialLoading:function(){var e,t=(0,x.k)();return r().createElement(r().Fragment,null,r().createElement(N.l,{hideDescription:!0}),r().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 _t(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 _t(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)?_t(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 r().createElement("div",{key:t,className:"col px-1"},r().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:""}),Qt(Zt,u.f.CircleLogoSlidingList,{getComponent:function(){return Xt},partialLoading:function(){var e=8,t=(0,x.k)();return(t.sm||t.xs)&&(e=4),t.md&&(e=6),r().createElement(r().Fragment,null,r().createElement(N.l,null),r().createElement("div",{className:"d-flex flex-no-wrap"},Array(e).fill(null).map((function(e,t){return r().createElement("div",{key:t,className:"uVZyX"},r().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:""}),Qt(Zt,u.f.ThumbnailSlidingListSmall,{getComponent:function(){return b},partialLoading:m.j7,icon:s.vn.WidgetTemplateThumbnailSlidingListSmall,getTargets:function(){return[]},className:""}),Qt(Zt,u.f.ThumbnailSlidingListLarge,{getComponent:function(){return E},partialLoading:function(){return r().createElement(m.j7,{size:"lg"})},icon:s.vn.WidgetTemplateThumbnailSlidingListLarge,getTargets:function(){return[]},className:""}),Zt);const $t={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function Jt(e){var t,n,a,c,s=r().createRef(),u=null===(t=e.lazyLoad)||void 0===t||t,m=(0,l.Y)({prevent:!u}),p=m.ref,f=m.inView,v=o.q.isFunction(e.getContentRequest),g=i.a.useBasicFetch(!(!f||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),h=Q.d.useGetContent(e.content||(null===(n=g.data)||void 0===n?void 0:n.content),null===(a=g.data)||void 0===a?void 0:a.preferences),y=h.content,b=h.unfilteredContent,E=function(e){return!e||!(!Array.isArray(e)||e.length)}(y);r().useEffect((function(){var t;v&&!g.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,E)}),[g.hasCompleted,E,v,e.setIsEmpty]),r().useEffect((function(){e.isScrollToTargetWidget&&s.current&&s.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,s.current]);var T=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}),w=v&&!g.hasCompleted||e.isEditing&&E,L=qt[e.templateId].partialLoading,k=qt[e.templateId].getComponent(e.widgetTypeId),C=qt[e.templateId].className;return!w&&E?r().createElement(r().Fragment,null):r().createElement("div",{id:e.widgetTypeId===d.z.ContinueWatching?"continue-watching-videos-widget":"",ref:s,className:"curated-widget ".concat(C," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},r().createElement("div",{className:e.isScrollToTargetWidget?"".concat($t.widgetHighlight," py-2 px-3 rounded-lg"):""},Q.d.isWidgetInTableOfContents(e.metadata)&&r().createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat($t.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),w?r().createElement("div",{ref:p},r().createElement(L,null)):r().createElement(k,Object.assign({},e,{content:y,unfilteredContent:b,preferences:null===(c=g.data)||void 0===c?void 0:c.preferences,analyticsData:T,showHighlight:e.isScrollToTargetWidget}))))}},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(1024),r=n.n(a),i=n(99910),o=n(91028),l=n(94495);function c(e){return r().createElement(r().Fragment,null,r().createElement(l.B,{name:e.name,description:e.description}),r().createElement(i.Row,{className:"mb-n2"},e.content.map((function(t){return r().createElement(i.Col,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},r().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)},51365:(e,t,n)=>{n.d(t,{M:()=>a});var a=n(1024).createContext(null)},81514:(e,t,n)=>{n.d(t,{V:()=>i});var a=n(86764),r=n(3747);function i(){var e=(0,r.a)(a.r.XS),t=(0,r.a)(a.r.SM),n=(0,r.a)(a.r.MD),i=(0,r.a)(a.r.LG),o=(0,r.a)(a.r.XL),l=(0,r.a)(a.r.XXL),c=a.r.LG;return e&&(c=a.r.XS),t&&(c=a.r.SM),n&&(c=a.r.MD),i&&(c=a.r.LG),o&&(c=a.r.XL),l&&(c=a.r.XXL),c}},80143:(e,t,n)=>{n.d(t,{n:()=>o});var a=n(1024),r=n.n(a),i=n(69454);function o(e,t){var n=r().useMemo((function(){return(null==e?void 0:e.length)&&t&&i.T.shouldShowAudiences(t)?i.T.getSortedPresentationAudiences(e,t):null}),[e]);return r().useMemo((function(){return(null==n?void 0:n.length)?i.T.getMergedPresentationAudienceString(n):null}),[n])}},73814:(e,t,n)=>{n.d(t,{w:()=>r});var a=n(92802),r={getCustomFormControlClassName:function(e,t,n,r,i){var o="form-control";return"sm"===r&&(o+=" form-control-sm"),"lg"===r&&(o+=" form-control-lg"),(0,a.u9)(t,n)&&(0,a.u9)(e,n)&&(o+=" is-invalid"),i&&(o+=" ".concat(i)),o}}},69454:(e,t,n)=>{n.d(t,{T:()=>s});var a=n(75896),r=n(1048),i=/\d/,o=n(55171),l=/([0-9]+)/gi,c=/\s|\+/gi,s={getSortedPresentationAudiences:function(e,t){var n=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return t.filter((function(e){return n.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var t="";switch(+a.m.first(e).presentationId){case o.e.PresentationIds.DEFAULT:case o.e.PresentationIds.AU_SECONDARY:case o.e.PresentationIds.US_ELEMENTARY:case o.e.PresentationIds.AU_PRIMARY:if(1===e.length)return e[0];t=function(e){var t=e.map((function(e){return e.name})).join(" "),n=t.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],a=t.split(" ").filter((function(e){return isNaN(+e)}))||[],r=e.find((function(e){return!i.test(e.name)})),o=a.find((function(e){return e!==(null==r?void 0:r.name)}));if(e.length>1&&(o+="s"),r&&n.length)return"".concat(o," ").concat(r.name.charAt(0)," - ").concat(n.pop());var l=function(e){var t,n,a,r,i=!1,o=[];for(e=e.sort((function(e,t){return e-t})),a=0;a<e.length;a++)r=a+1,i||(t=e[a]),n=e[r],e[a]+1===n?i=!0:i?(o.push("".concat(t," - ").concat(e[a])),i=!1):(o.push("".concat(e[a])),i=!1);return o}(n);return"".concat(o," ").concat(l.join(", "))}(e);break;case o.e.PresentationIds.SCOTLAND_PRIMARY:case o.e.PresentationIds.SCOTLAND_SECONDARY:case o.e.PresentationIds.INTERNATIONAL_PRIMARY:case o.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];t=function(e){var t=e.map((function(e){return e.name})),n={};t.forEach((function(e,t){if(0!==t){var a=e.split(" ");Object.keys(n).forEach((function(e){a.includes(e)||delete n[e]}))}else e.split(" ").forEach((function(e,t){n[e]=0===t?"start":"end"}))}));var a=Object.keys(n)[0],r=n[a];if(!a)return e[0].name;var i=e[0].name,o=e[e.length-1].name,l=function(e){return e.split(a)[0]},c="".concat(l(i)," - ").concat(l(o));return"start"===r?"".concat(a," ").concat(c):"".concat(c," ").concat(a)}(e);break;case o.e.PresentationIds.ENGLAND_PRIMARY:t=function(e){var t=a.m.first(e),n=a.m.last(e),r=a.m.first(t.name.split(" ")),i=a.m.first(n.name.split(" ")),o=t.name.split(" ").find((function(e){return!isNaN(+e)})),l=n.name.split(" ").find((function(e){return!isNaN(+e)}));if(t===n)return"Key"===r||"Reception"===r?t.name:"".concat(r," KS").concat(o);var c="",s="";return c="Reception"===r?"R":"KS".concat(o),s="KS".concat(l),"Lower"===r&&"Upper"===i?"L ".concat(c," - U ").concat(s):("Lower"===r&&(c="Lower ".concat(c)),"Upper"===i&&(s="Upper ".concat(s)),"Key"===i&&(s=n.name),"".concat(c," - ").concat(s))}(e);case o.e.PresentationIds.US_MIDDLE:case o.e.PresentationIds.US_HIGH:}return t?{name:t}:null},sortMembersWithDuplicateNamesByAudience:function(e){var t=function(e){return e.length?(e.forEach((function(e){var r=+a.m.first(e.name.match(l));if(!t)return t=e,void(n=r);r<n&&(t=e)})),t):null;var t,n},n={},r=[];return e.forEach((function(e){if(!n[e.name])return n[e.name]=1,void r.push(e);r.push(e),n[e.name]++;var a=r.splice(r.length-n[e.name]).sort((function(e,n){var a=t(e.subjectPresentationAudiences.data),r=t(n.subjectPresentationAudiences.data);if(!a&&r)return 1;if(!r)return-1;var i=a.name.localeCompare(r.name);return 0===i?i:i>0?-1:1}));r=r.concat(a)})),r},getActiveAudiencesFromParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.t.isObject(t)&&!r.t.isEmpty(t)&&e&&e.length&&s.shouldShowAudiences(e)){var n=t.a;if(n){"string"==typeof n&&(n=[n]);var a=function(e){return e.replace(c,"").toLowerCase()},i=n.reduce((function(e,t){return e[a(t)]=t,e}),{});return e.filter((function(e){return i[a(e.name)]}))}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map((function(e){return e.name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}}}]);
1
+ /*! For license information please see 1976-c07c9bcb8c-lite.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1976],{98364:(e,t,n)=>{n.d(t,{V:()=>o});var a=n(1024),r=n.n(a);const i={emoji:"d86p2"};function o(e){return r().createElement(r().Fragment,null,r().createElement("span",{className:i.emoji},e.emoji),e.children)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(1024),r=n(92802),i=n(33936),o=n(83345),l=n(2102),c="shared.formButtons";function s(e){var t=(0,r.u6)(),n=(0,i.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),r=n(92802),i=n(99910),o=n(1048),l=n(79014),c=n(73814),s=n(8493),u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function d(e){var t=e.label,n=e.checkboxLabelClassName,r=e.checkboxLabelFontWeight,o=e.className,l=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(i.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(i.Form.Label,{className:"custom-control-label cursor-pointer ".concat("normal"===r?"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),f=n(83345);function v(e){var t=(0,r.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 g={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 r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},b="shared.formField";function E(e){var t,n,i=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,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 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=s[0],d=s[1],f=l.q.isFunction(i)?function(e){return i(e)}:a.Children.count(i)?i:null;if("password"!==c.type)return a.createElement(r.gN,Object.assign({},o.t.omit(c,["formSize"])),f);var v="position-relative ".concat(g.passwordContainer);return c.className&&(v+=" ".concat(c.className)),c.disabled&&(v+=" ".concat(g.passwordContainerDisabled)),a.createElement("div",{className:v},a.createElement(r.gN,Object.assign({},o.t.omit(c,["formSize","type","className"]),{type:u,className:"".concat(g.passwordInput," border-0 w-100 h-100 outline-none rounded")}),f),"password"===c.type&&a.createElement(m.x,{svgName:"password"===u?p.vn.VisibleOn:p.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(g.revealPassword),onClick:function(){d("password"===u?"text":"password")}}))}function T(e){var t=e.label,n=e.className,l=e.showCharacterCounter,s=e.showRequiredStar,u=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,r.u6)(),x=k.errors,N=k.touched,S=function(){};if("checkbox"===C.type){var O=o.t.omit(e,["formSize"]);return e.disabled&&(O.onChange=S),a.createElement(d,Object.assign({},O))}var A=Object.assign(Object.assign({},C),{className:c.w.getCustomFormControlClassName(x,N,C.name,w,n)});return e.disabled&&(A.onChange=S),a.createElement(i.Form.Group,null,!!t&&a.createElement(i.Form.Label,{htmlFor:C.id,className:"d-flex align-items-center"},t,s&&a.createElement("span",{className:"text-danger"},"*"),u&&a.createElement(m.x,{className:"svg-container text-muted ".concat(g.infoTooltip),svgName:p.vn.Info,title:u,tooltipPlacement:h,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-muted"}," ",a.createElement(f.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({},A)),!!T&&a.createElement(i.Form.Text,{className:"text-muted"},T),a.createElement(r.Bc,{name:C.name},(function(e){return a.createElement(i.Form.Control.Feedback,{type:"invalid"},e)})))}E.defaultProps={autoComplete:"off"},T.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>s});var a=n(1024),r=n(92802),i=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 r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,d=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=o.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(o.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(r.J9,Object.assign({enableReinitialize:!0},d,{initialValues:m,onSubmit:function(t,a){var r=a.setSubmitting,i=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&i(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];o(u,d)}r(!1)}))},initialStatus:p}),i.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,r.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},85784:(e,t,n)=>{n.d(t,{Q:()=>l});var a=n(1024),r=n(79014),i=n(83657),o=n(51365);function l(e){var t=a.useContext(o.M);if(!r.q.isFunction(t))return a.createElement(a.Fragment,null);var n=t(e.video,{analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions});return a.createElement(i.e,{actions:n,className:"float-right mt-n1",actionsDropdownClassName:"btn btn-link ml-1"})}},70872:(e,t,n)=>{n.d(t,{u:()=>c});var a=n(1024),r=n(65858),i=n(8493),o=n(11025),l=n(38647);function c(e){var t,n,c,s=o.M.getCanBeConsumed(e.video).canNavigate,u=o.M.getTitle(e.video),d=Object.assign(Object.assign({},e.analyticsData),{id:null===(t=e.video)||void 0===t?void 0:t.id,name:null===(n=e.video)||void 0===n?void 0:n.name}),m=Object.assign(Object.assign({},e.analyticsOptions),{actionType:r.UserAction.Click,descriptor:r.ClickDescriptor.Title}),p=e.textClassName||"m-0 text-truncate mb-n1 pb-1 align-middle ".concat("md"===e.size?"h4":"h6");return a.createElement(i.F,{className:e.linkClassName,appLink:s?e.appLink:null,analyticsOptions:m,analyticsData:d},a.createElement("h5",{className:p,title:null!==(c=e.video.name)&&void 0!==c?c:""},u,a.createElement(l.m,{size:e.size,video:e.video,yearGroups:e.yearGroups})))}},46825:(e,t,n)=>{n.d(t,{L:()=>Jt});var a=n(1024),r=n.n(a),i=n(20354),o=n(79014),l=n(65294),c=n(53957),s=n(58130),u=n(78479),d=n(42308),m=n(11518),p=n(58704),f=n(5281),v=n(58564),g=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=r().memo((function(e){var t,n,a=e.data,i=e.seriesAppLink,o=e.context,l=e.thumbnailSize,s=e.preloadImage,u=(t=(0,g.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,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 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=u[0],m=u[1];r().useEffect((function(){e.onHover(m)}),[m]);var p="lcmBu";return o.type===c.WidgetType.LargeRow&&(p="iVL1A"),r().createElement("div",{ref:d,className:"px-1 flex-shrink-0 position-relative ".concat(p," ").concat("CmXOx")},r().createElement(v.u,{video:a,type:"expandable",appLink:e.getAppLink(a),seriesAppLink:i,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 r().createElement(f.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 r().createElement(f.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(8493),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}),r=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:r},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 r().createElement(f.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 A=n(3626),j=n(94495);function D(e){var t,n,a,i,o=e.content[0];return r().createElement(r().Fragment,null,r().createElement(j.B,{name:e.name,description:e.description}),r().createElement(A.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===(i=null===(a=e.appLinks)||void 0===a?void 0:a.series)||void 0===i?void 0:i.call(a,o.series),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,imageCdnUrl:e.imageCdnUrl,hideInteractiveBadge:!0,showVideoGuidance:!0,yearGroups:e.yearGroups}))}var I=n(99910);function F(){return r().createElement("div",{className:"partial-loading-background badge-pill mr-2",style:{height:"2.5rem",width:"9.375rem"}})}function P(){return r().createElement("div",{className:"d-flex align-items-center mw-100"},r().createElement(F,null),r().createElement(F,null))}var M=n(9513),R=n(65163),W=n(47770),U=n(16450),z=n(43741),V=n(67453),B=n(54610);function _(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 H(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function Y(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:V.j.getUrlById(e.imageCdnUrl,B.__.Covers,e.metadata.imageId)},totalVideos:G(t)}}(e,e.content),i=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===c.CuratedDashboardAppLink.ClassificationLatestReleases;return r().createElement(U.e,{collection:a?[a].concat((n=e.content,function(e){if(Array.isArray(e))return _(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 _(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)?_(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,getChildAppLink:i?function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationLatestReleases)||void 0===a?void 0:a.call(n,t)}:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},childComponent:M.Vz,partialLoadingComponent:z.Q,heading:e.name,getSubtitle:i?H:void 0,description:e.description,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}var X=n(98981),Z={actionType:L.UserAction.Click,entity:L.EntityType.Playlist,location:L.LocationContext.PlaylistListItem,descriptor:L.ClickDescriptor.Cover};function K(e){return a.createElement("div",null,a.createElement(j.B,{name:e.name,description:e.description}),a.createElement(I.Row,{noGutters:!0,className:"mx-n1 mb-n2"},e.content.map((function(t){var n,r;return a.createElement(I.Col,{key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(X.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===r?void 0:r.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),Z)}))}))))}var Q=n(49542),q=n(78276),$=n(5465);const J={slidingSubject:"ibXG0",heading:"P16Yg",thumbnailContainer:"erBxF",partialLoading:"IgCcl",labelContainer:"ujwlj"};function ee(e){var t=e.data,n=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:"".concat(J.slidingSubject," ").concat(J.thumbnailContainer)},a.createElement(q.Z,{data:t.tallPoster,appLink:e.getAppLink(t),imageType:B.__.TallPosters,preload:n,imageOptions:{size:B.h2.Medium},imageClassName:"rounded-lg",analyticsData:e.analyticsData,analyticsOptions:r},a.createElement($.oy,{type:$.mS.TallSubject}),a.createElement("h3",{className:"h5 px-2 ".concat(J.heading)},t.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,r,i;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===c.CuratedDashboardAppLink.ExploreAllTopics?ne:"",name:null===(r=e.metadata)||void 0===r?void 0:r.text,tallPoster:{url:(null===(i=e.metadata)||void 0===i?void 0:i.imageId)?V.j.getUrlById(e.imageCdnUrl,B.__.TallPosters,e.metadata.imageId):""}}}(e),a=Q.d.getCustomAppLink(e);return r().createElement("div",null,r().createElement(f.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,r,i;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===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t):null},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function re(e){var t;return r().createElement("div",null,r().createElement(f.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 ie=function(){return r().createElement("div",{className:"".concat(J.slidingSubject," px-1")},r().createElement("div",{className:"".concat(J.partialLoading," partial-loading-background rounded-lg")}))},oe=n(55460);const le="eSMIx",ce="layDP";function se(e){var t,n,a=Q.d.getCustomAppLink(e),i=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?V.j.getUrlById(e.imageCdnUrl,B.__.Banners,e.metadata.imageId):"";return r().createElement("div",null,r().createElement(T.F,{appLink:a,style:i?{backgroundImage:"url(".concat(i,")")}:{},className:"".concat(le," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":ce),analyticsData:{url:oe.AppLinkHelper.getHref(a)},analyticsOptions:{actionType:L.UserAction.Click,entity:L.EntityType.Url,location:L.LocationContext.ContentUpdatesBanner}},r().createElement("h2",{className:"h4 text-white mb-0"},e.name)),r().createElement(f.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}))}const ue={banner:"iCyo4",bannerContent:"cgv_6",small:"BVRPQ"};function de(e){var t,n,a=e.content[0],i="sm"===e.size,o=V.j.createBannerUrl(a.banner,{fallbackBaseUrl:"",fallbackCategoryName:a.name,type:B.__.Banners},{size:B.h2.Large}),l=function(e){var t=(0,x.k)();return e||t.xs||t.sm?"h4":t.md?"h3":"h2"}(i),c=function(e){return e?"clamp-1":"clamp-2"}(i),s=Object.assign(Object.assign({},e.analyticsOptions),{location:L.LocationContext.Classification,actionType:L.UserAction.Click,entity:L.EntityType.Classification,descriptor:L.ClickDescriptor.Banner});return r().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,a),analyticsData:e.analyticsData,analyticsOptions:s,className:i?ue.small:""},r().createElement("div",{className:"banner rounded-lg position-relative ".concat(ue.banner),style:{backgroundImage:"url('".concat(o,"')")}},e.name&&r().createElement("div",{className:"".concat(ue.bannerContent)},r().createElement("h2",{className:"".concat(l," ").concat(c," text-white")},e.name))))}function me(e){return r().createElement(de,Object.assign({},e))}function pe(e){var t="sm"===e.size?ue.small:"";return r().createElement("div",{className:t},r().createElement("div",{className:"banner rounded-lg position-relative ".concat(ue.banner)},r().createElement("div",{className:"".concat(ue.bannerContent)})))}de.defaults={size:"md"},pe.defaults={size:"md"};var fe=n(92802),ve=n(23481),ge=n(83345),he=n(98364),ye=n(10874),be=n(82644),Ee=n(38365),Te=n(23201),we=n(69883),Le=n(5173),Ce=Le.Ry().shape({feedbackInput:Le.Z_().max(5e3,(function(){return ve.T.getPhrase("shared.feedbackForm","tooLong")}))});const ke={promptContainer:"A_kCD",text:"UFm9h",form:"na9Vb"};function xe(e){return xe="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},xe(e)}function Ne(){Ne=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",l=r.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,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),l=new k(r||[]);return a(o,"_invoke",{value:T(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function m(){}function p(){}function f(){}var v={};c(v,i,(function(){return this}));var g=Object.getPrototypeOf,h=g&&g(g(x([])));h&&h!==t&&n.call(h,i)&&(v=h);var y=f.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 r(a,i,o,l){var c=u(e[a],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==xe(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return r("throw",e,o,l)}))}l(c.arg)}var i;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return i=i?i.then(a,a):a()}})}function T(e,t,n){var a="suspendedStart";return function(r,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===r)throw i;return{value:void 0,done:!0}}for(n.method=r,n.arg=i;;){var o=n.delegate;if(o){var l=w(o,n);if(l){if(l===d)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=u(e,t,n);if("normal"===c.type){if(a=n.done?"completed":"suspendedYield",c.arg===d)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")),d;var r=u(a,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}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){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,r=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 r.next=r}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=f,a(y,"constructor",{value:f,configurable:!0}),a(f,"constructor",{value:p,configurable:!0}),p.displayName=c(f,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,f):(e.__proto__=f,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,r,i){void 0===i&&(i=Promise);var o=new E(s(t,n,a,r),i);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,i,(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 r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):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),d},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),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;C(n)}return r}}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),d}},e}function Se(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 Oe=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))},Ae="shared.feedbackForm";function je(e){var t,n,a=(t=r().useState("prompt"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Se(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)?Se(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.")}()),i=a[0],l=a[1],c=(0,we.Z)();function u(t,n){return Oe(this,void 0,void 0,Ne().mark((function a(){return Ne().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"===i?"positive":"negative"});case 3:l("done"),a.next=10;break;case 6:a.prev=6,a.t0=a.catch(0),l("prompt"),c.error(ve.T.getPhrase(Ae,"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"===i?r().createElement("div",{className:ke.promptContainer},r().createElement("p",{className:"font-weight-500 mr-2 ".concat(ke.text)},r().createElement(he.V,{emoji:"🔎"},r().createElement(ge.x,{namespace:Ae,phrase:"feedbackQuestion"}))),r().createElement("div",{className:"d-flex align-items-center"},r().createElement(ye.h,{className:"btn btn-outline-dark mr-2",onClick:function(){l("yes")},svgName:s.vn.ThumbsUp},r().createElement(ge.x,{namespace:Ae,phrase:"yes"})),r().createElement(ye.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:s.vn.ThumbsDown},r().createElement(ge.x,{namespace:Ae,phrase:"no"})))):"yes"===i?r().createElement(be.n,{onSubmit:u,initialValues:{feedbackInput:""},validationSchema:Ce},r().createElement(fe.l0,{className:ke.form},r().createElement("p",{className:"font-weight-500 ".concat(ke.text)},r().createElement(he.V,{emoji:"👏"},r().createElement(ge.x,{namespace:Ae,phrase:"happyFeedback"}))),r().createElement(Ee.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:ve.T.getPhrase(Ae,"feedbackPlaceholder"),spellCheck:!1}),r().createElement("div",{className:"d-flex justify-content-end w-100"},r().createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},r().createElement(ge.x,{namespace:Ae,phrase:"back"})),r().createElement(Te.A,{variant:"dark",submitText:ve.T.getPhrase(Ae,"sendFeedback")})))):"no"===i?r().createElement(be.n,{onSubmit:u,initialValues:{feedbackInput:""},validationSchema:Ce},r().createElement(fe.l0,{className:ke.form},r().createElement("p",{className:"font-weight-500 ".concat(ke.text)},r().createElement(he.V,{emoji:"😢"},r().createElement(ge.x,{namespace:Ae,phrase:"unhappyFeedback"}))),r().createElement(Ee.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:ve.T.getPhrase(Ae,"feedbackPlaceholder"),spellCheck:!1}),r().createElement("div",{className:"d-flex justify-content-end w-100"},r().createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},r().createElement(ge.x,{namespace:Ae,phrase:"back"})),r().createElement(Te.A,{variant:"dark",submitText:ve.T.getPhrase(Ae,"sendFeedback")})))):"done"===i?r().createElement("p",{className:"font-weight-500 text-center"},r().createElement(he.V,{emoji:"🙌"},r().createElement(ge.x,{namespace:Ae,phrase:"thankYou"}))):r().createElement(r().Fragment,null):r().createElement(r().Fragment,null)}const De="MtcB3",Ie="Geg0V";function Fe(e){return r().createElement(r().Fragment,null,r().createElement("div",{className:"".concat(De," px-4 py-3 rounded-lg mb-3")},r().createElement("h2",{className:"h5"},e.name),r().createElement(I.Row,{className:"mb-2 ".concat(Ie)},e.content.map((function(t){var n,a,i,o=V.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:B.h2.Small});return r().createElement(I.Col,{key:t.id,xs:12,sm:6,lg:4},r().createElement(T.F,{appLink:null===(i=null===(a=e.appLinks)||void 0===a?void 0:a.classification)||void 0===i?void 0:i.call(a,t),className:"d-flex align-items-center mb-2"},r().createElement("div",{className:"".concat("ZMjnx"," mr-2")},r().createElement("div",{className:"".concat("SsxEf"," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),r().createElement("div",null,t.name)))})))),r().createElement(je,{onSubmit:e.onSubmitFeedback}))}var Pe=n(2284),Me=n(42735);const Re="OZATG",We="hcAU2",Ue="Tbieu",ze="mGGrd",Ve="VtzxT",Be="jrY7R",_e="yAgR6",Ge="RjJ7O",He="TJ7Sl",Ye="yzmvY",Xe="hGi43";function Ze(e){var t,n,a,i=V.j.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:B.h2.Small}),o=V.j.createUrl(null===(n=e.data.thumbnail)||void 0===n?void 0:n.url,{size:B.h2.Medium}),l={backgroundColor:null===(a=e.data.metadata)||void 0===a?void 0:a.backgroundColor};return o&&(l.backgroundImage="url('".concat(o,"')")),r().createElement("div",{className:"d-flex position-relative rounded-lg h-100 ".concat(We," ").concat(e.isLarge?Ue:ze),style:l},r().createElement("div",{className:"".concat(Ve)},r().createElement("div",{className:"".concat(Be)},r().createElement("h3",{className:"".concat(_e," h4 ").concat(e.isLarge?"text-nowrap text-truncate":"text-wrap clamp-3")},e.data.name),e.isLarge&&r().createElement("div",{className:"text-left ".concat(Ge)},r().createElement("p",{className:Ye},e.data.description))),e.isLarge&&r().createElement("div",{className:Xe},r().createElement(Me.K,{className:"".concat(!e.appLink&&"cursor-default"," btn btn-outline-dark")},ve.T.getPhrase("shared.subjectThumbnailWidgetItem","buttonLabel")))),!o&&!!i&&r().createElement("div",{className:"".concat(He),style:{backgroundImage:"url('".concat(i,"')")}}))}var Ke=r().memo((function(e){var t,n,a,i,o=(null===(t=e.data)||void 0===t?void 0:t.status)===Pe.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===(i=e.data)||void 0===i?void 0:i.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?r().createElement(T.F,{className:Re,appLink:e.appLink,analyticsData:l,analyticsOptions:c},r().createElement(Ze,Object.assign({},e))):r().createElement(Ze,Object.assign({},e))}));function Qe(e){return r().createElement(r().Fragment,null,r().createElement(j.B,{name:e.name,description:e.description}),r().createElement(I.Row,{noGutters:!0,className:"mx-n1 mb-n2"},e.content.map((function(t){var n,a;return r().createElement(I.Col,{key:t.id,sm:12,md:6,className:"px-1 pb-2"},r().createElement(Ke,{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 qe(e){return r().createElement(r().Fragment,null,r().createElement(j.B,{name:e.name,description:e.description}),r().createElement(I.Row,{noGutters:!0,className:"mx-n1 mb-n2"},e.content.map((function(t){var n,a;return r().createElement(I.Col,{key:t.id,lg:4,md:6,sm:6,xs:12,className:"px-1 pb-2"},r().createElement(Ke,{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 $e(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 Je(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),rt=n(83523),it=n(92038),ot="shared.subjectWidgetItem",lt=r().forwardRef((function(e,t){var n;return"hidden"===(null===(n=e.style)||void 0===n?void 0:n.visibility)?r().createElement("div",{ref:t,className:"d-flex align-items-center position-relative clamp-2 ".concat(it.Z.widgetItem," ").concat(it.Z.draggingItem),style:et.t.omit(e.style,["visibility"])}):r().createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(it.Z.widgetItem),style:et.t.omit(e.style,["visibility"])},r().createElement("div",Object.assign({className:"\n ".concat(it.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),r().createElement(nt.x,{svgName:s.vn.Hamburger})),r().createElement("div",{className:"px-3 text-center d-flex flex-column justify-content-center text-nowrap text-truncate"},r().createElement("h3",{className:"".concat(it.Z.name," h6 text-truncate mb-0 mt-1 pb-1 ").concat(e.isVisible?"":"text-muted")},e.data.name)),r().createElement("div",{className:"ml-auto mr-3"},r().createElement(rt.Z,{on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?ve.T.getPhrase(ot,e.isVisible?"hideFromDashboard":"showOnDashboard"):ve.T.getPhrase(ot,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),ct=n(13112),st=n(1287),ut=n(2102),dt=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 ft(){ft=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",l=r.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,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),l=new k(r||[]);return a(o,"_invoke",{value:T(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function m(){}function p(){}function f(){}var v={};c(v,i,(function(){return this}));var g=Object.getPrototypeOf,h=g&&g(g(x([])));h&&h!==t&&n.call(h,i)&&(v=h);var y=f.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 r(a,i,o,l){var c=u(e[a],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==pt(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return r("throw",e,o,l)}))}l(c.arg)}var i;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return i=i?i.then(a,a):a()}})}function T(e,t,n){var a="suspendedStart";return function(r,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===r)throw i;return{value:void 0,done:!0}}for(n.method=r,n.arg=i;;){var o=n.delegate;if(o){var l=w(o,n);if(l){if(l===d)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=u(e,t,n);if("normal"===c.type){if(a=n.done?"completed":"suspendedYield",c.arg===d)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")),d;var r=u(a,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}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){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,r=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 r.next=r}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=f,a(y,"constructor",{value:f,configurable:!0}),a(f,"constructor",{value:p,configurable:!0}),p.displayName=c(f,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,f):(e.__proto__=f,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,r,i){void 0===i&&(i=Promise);var o=new E(s(t,n,a,r),i);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,i,(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 r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):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),d},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),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;C(n)}return r}}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),d}},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,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 gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gt(e,t):void 0}}(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 gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var ht="shared.editableCoverFixedPillListSmall";function yt(e){var t,n,a=vt(r().useState(!1),2),i=a[0],o=a[1],l=vt(r().useState(!1),2),c=l[0],u=l[1],d=r().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(r().useState(d),2),p=m[0],f=m[1],v=vt(r().useState(d),2),g=v[0],h=v[1],y=Q.d.useGetContent(e.unfilteredContent,Object.values(g)),b=y.content,E=y.unfilteredContent,T=i?E:b,w=(0,we.Z)();r().useEffect((function(){o(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var C=r().useMemo((function(){return!(i||!T.length)&&Object.values(g).some((function(e){return e.hidden}))}),[i,g]);function k(e){return g[e.id]?g[e.id].index:T.findIndex((function(t){return t.id===e.id}))}function x(e){var t;return!(null===(t=g[e.id])||void 0===t?void 0:t.hidden)}function N(e){var t=Object.assign({},g),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=r().useMemo((function(){return!et.t.isEqual(d,g)}),[d,g]),O={id:e.presentation.id,name:ve.T.getPhrase(ht,"exploreAll"),cover:e.presentation.cover};return T.length?r().createElement("div",null,r().createElement("div",{className:"d-flex flex-wrap align-items-center justify-content-between ".concat(e.description||i?"":"mb-1")},r().createElement("div",null,r().createElement("div",{className:"d-flex no-wrap flex-row"},r().createElement("h2",{className:"h4 mb-2 align-self-end flex-shrink-0"},i?ve.T.getPhrase(ht,"updating"):e.name),!i&&e.canManageDiscoverPreferences&&r().createElement(at.L,{className:"ml-1 align-self-end mb-2",onClick:function(){return o(!0)}},r().createElement(nt.x,{svgName:s.vn.Edit}))),!!e.description&&!i&&r().createElement("p",{className:"text-truncate description mb-2"},e.description),i&&r().createElement("p",{className:"description mb-2"},r().createElement(ge.x,{namespace:ht,phrase:"editingDescription"}))),i&&e.canManageDiscoverPreferences&&r().createElement("div",{className:"mb-2 d-flex align-items-start"},r().createElement(I.Button,{variant:"link",className:"mr-2",onClick:function(){h(p),o(!1)}},r().createElement(ge.x,{namespace:ht,phrase:"cancel"})),r().createElement(ut.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,r=ft().mark((function t(){return ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u(!0),e.updatePreferences(e.id,Object.values(g)).then((function(){f(g),u(!1),o(!1)})).catch((function(){u(!1),w.error(ve.T.getPhrase(ht,"error"))}));case 2:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,l)}c((r=r.apply(t,n||[])).next())}));var t,n,a,r},showSpinner:c,disabled:!S},r().createElement(ge.x,{namespace:ht,phrase:"update"})))),r().createElement(I.Row,{noGutters:!0,className:"mx-n1 mb-n2"},C&&r().createElement(I.Col,{className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},r().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})),r().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 r().createElement("div",{className:"bg-white rounded-lg ".concat("K1Ce4")},r().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}),r=T.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==r){var i=T[a];if(i){var o=Object.assign({},g);dt.l.reorder(T,a,r).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!x(e)}})),h(o),mt.k.logUserAction({id:i.id,name:i.name,oldIndex:a,newIndex:r},{location:L.LocationContext.EditableSubjectPreferencesWidget,entity:L.EntityType.Classification,actionType:L.UserAction.Move,workflowPhase:L.WorkflowPhase.Complete})}}},vertical:!1},T.map((function(t){return r().createElement(I.Col,{className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},r().createElement(r().Fragment,null,i?r().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}}):r().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})))}))))):r().createElement(r().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,i,o,l,c,s,u=e.content[0],d=bt.M.getVideoAudiences(u),m=(0,Et.n)(d,e.audiences),p=bt.M.hasSeries(u),f=mt.k.mergeOptions(e.analyticsOptions,{actionType:L.UserAction.Click,entity:bt.M.getAnalyticsEntity(u),location:L.LocationContext.ThumbnailHeroMediaWidget}),g=bt.M.getCanBeConsumed(u).canNavigate;return u?r().createElement("div",null,r().createElement(j.B,{name:e.name,description:e.description}),r().createElement(v.u,{video:u,imageOptions:{size:B.h2.Large},type:"static",textPosition:Tt.z.Independent,analyticsOptions:f,audience:m,hideRating:!!m,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,u),seriesAppLink:null===(i=null===(a=e.appLinks)||void 0===a?void 0:a.series)||void 0===i?void 0:i.call(a,function(e){if(bt.M.isVideo(e))return e.series}(u)),setFavourite:e.setFavourite,canFavourite:e.canFavourite}),r().createElement("div",{className:"RmYET"},r().createElement("div",null,bt.M.isVideo(u)&&p&&r().createElement(Ct.M,{video:u,appLink:null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.series)||void 0===l?void 0:l.call(o,u.series),analyticsOptions:f,className:"mt-2 ".concat("zmtsM")}),r().createElement("div",{className:p?"":"mt-2"},r().createElement(T.F,{appLink:null===(s=null===(c=e.appLinks)||void 0===c?void 0:c.videoType)||void 0===s?void 0:s.call(c,u),analyticsData:{id:u.id,name:u.name},analyticsOptions:Object.assign(Object.assign({},f),{descriptor:L.ClickDescriptor.Title}),className:"d-inline-block ".concat(g?"":"cursor-default text-decoration-none disabled"),disabled:!g},r().createElement("h3",{className:"h4 mb-0"},u.name,r().createElement(kt.m,{video:u,yearGroups:e.yearGroups}))))),r().createElement("div",{className:"d-flex mt-2 ".concat("EQXKD")},r().createElement(wt.N,{video:u}),r().createElement(Lt.I,{video:u,imageCdnUrl:e.imageCdnUrl})))):r().createElement(r().Fragment,null)}function Nt(e){return r().createElement("div",null,r().createElement("h2",{className:"curated-widget-heading"},e.name),!!e.description&&r().createElement("p",{className:"description curated-widget-description"},e.description))}function St(e){return r().createElement(de,Object.assign({},e,{size:"sm"}))}var Ot=r().memo((function(e){var t,n=e.data,a=e.getSeriesAppLink,i=e.context,o=e.thumbnailSize,l=e.preloadImage,s=e.presentationAudiences,u=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,d=(0,Et.n)(u,s),m=(0,x.k)(),p="JSM4l";return i.type===c.WidgetType.LargeRow&&(p="YYpNz"),r().createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(p)},r().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:d,hideRating:!!d,hideDuration:!1,yearGroups:e.yearGroups,hideTitle:e.hideTitle,hideSeries:e.hideSeries}))}));function At(e){var t,n,a,i,o,l,s,u;return r().createElement(f.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:Ot,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===(i=e.metadata)||void 0===i?void 0:i.hideObjectTitle,hideSeries:null===(o=e.metadata)||void 0===o?void 0:o.hideObjectSeries},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===(u=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===u?void 0:u.call(s,e.id,e.name)})}function jt(e){return r().createElement("div",{className:"col-".concat(e.colSize," px-1")},r().createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-lg",style:{paddingBottom:"56.25%"}}),r().createElement("div",{className:"mt-2"},r().createElement("div",{style:{height:"1.4rem"}},r().createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),r().createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}function Dt(e){var t,n,a,i,o,l,s,u,m,v,g,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===d.z.ContinueWatching&&(null===(a=e.appLinks)||void 0===a?void 0:a.watchHistory)&&(h=null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.watchHistory)||void 0===o?void 0:o.call(i)),r().createElement(f.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:Ot,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSeriesAppLink:null===(u=e.appLinks)||void 0===u?void 0:u.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},getChildAppLink:null===(g=e.appLinks)||void 0===g?void 0:g.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:h})}function It(e){return r().createElement("div",{className:"col-".concat(e.colSize," px-1")},r().createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-lg",style:{paddingBottom:"56.25%"}}),r().createElement("div",{className:"mt-2"},r().createElement("div",{style:{height:"1.4rem"}},r().createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),r().createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}var Ft=n(22843);function Pt(e){var t,n,a,i,o=bt.M.isVideo(e.video)&&bt.M.hasSeries(e.video),l=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video),c=o?null===(i=null===(a=e.appLinks)||void 0===a?void 0:a.series)||void 0===i?void 0:i.call(a,e.video.series):null,s={actionType:L.UserAction.Click,entity:bt.M.getAnalyticsEntity(e.video),location:L.LocationContext.ThumbnailFixedListMediaLargeWidget,descriptor:L.ClickDescriptor.Thumbnail},u=bt.M.getVideoAudiences(e.video),d=(0,Et.n)(u,e.audiences);return r().createElement("div",{className:"col-md-6"},r().createElement(v.u,{analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),s),video:e.video,appLink:l,seriesAppLink:c,imageOptions:{size:B.h2.Medium},textPosition:Tt.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:d,hideRating:!!d}),r().createElement(Ft.h,{video:e.video,appLink:l,seriesAppLink:c,yearGroups:e.yearGroups}),r().createElement("div",{className:"d-flex justify-content-start align-items-center pt-1"},r().createElement(wt.N,{video:e.video}),r().createElement(Lt.I,{video:e.video,imageCdnUrl:e.imageCdnUrl})))}function Mt(e){return r().createElement(r().Fragment,null,r().createElement(j.B,{name:e.name,description:e.description}),r().createElement("div",{className:"row ".concat("KItVW")},e.content.map((function(t){return r().createElement(Pt,Object.assign({key:t.id,video:t},e))}))))}const Rt="HwejH";var Wt=function(){return r().createElement("div",{className:"mt-2"},r().createElement("div",{style:{height:"1.4rem"}},r().createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"12rem"}})),r().createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"15rem"}}))},Ut=n(81993);const zt={rowWidth:"TzZuL"};function Vt(e){return r().createElement(T.F,{appLink:e.getAppLink(e.data),className:"".concat(zt.rowWidth," 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})},r().createElement("div",{className:"".concat(Ut.u.mapRatingToClass(e.data.value)," py-3 rounded-lg ")},r().createElement("div",{className:"d-flex justify-content-center align-items-center text-white"},r().createElement(nt.x,{svgName:s.vn.Search,size:nt.S.Medium}),r().createElement("h4",{className:"mb-0"},e.data.code))))}function Bt(e){var t=e.content.filter((function(e){return e.code&&e.value<128}));return r().createElement(r().Fragment,null,r().createElement(f.k,{name:e.name,description:e.description,type:c.WidgetType.Row,contents:p.z.Ratings,getChildAppLink:function(t,n){var a,r;return null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.rating)||void 0===r?void 0:r.call(a,t,n)},collection:t,childComponent:Vt,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0}))}function _t(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),Ht=n(7733);var Yt=function(e){var t,n,a,i=V.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:B.h2.Medium}),o=(0,Gt.x)(e.data.name,Ht.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 r().createElement(T.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:l,analyticsOptions:c},r().createElement("div",{className:"rounded-circle w-100 h-100 ".concat("vt0gx"," ").concat(o),style:{backgroundImage:"url(".concat(i,")")}}))};function Xt(e){var t;return r().createElement(f.k,{name:e.name,description:e.description,type:c.WidgetType.Row,contents:p.z.Companies,collection:e.content,childComponent:Yt,extraChildComponentProps:{imageCdnUrl:e.imageCdnUrl},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var Zt;function Kt(e){return Kt="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},Kt(e)}function Qt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Kt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!==Kt(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Kt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qt=(Qt(Zt={},u.f.ThumbnailHeroMedia,{getComponent:function(){return xt},partialLoading:function(){return r().createElement("div",null,r().createElement("div",{className:"w-100 partial-loading-background rounded-lg",style:{paddingBottom:"56.25%"}}),r().createElement("div",{className:"KjaI4"},r().createElement("div",null,r().createElement("div",{style:{height:"1.5rem"}},r().createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),r().createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),r().createElement("div",{className:"pt-2 mw-100"},r().createElement(P,null))))},icon:s.vn.WidgetTemplateThumbnailHeroMedia,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.Company]},className:""}),Qt(Zt,u.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:""}),Qt(Zt,u.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case d.z.CuratedClassifications:return ae;case d.z.CuratedSeries:return re;default:return ae}},partialLoading:function(){for(var e,t=(e=(0,x.k)()).xs?2:e.sm?3:e.md?4:e.lg?5:6,n=[],a=0;a<t;a++)n.push(r().createElement(ie,{key:a}));return r().createElement("div",{className:"pb-3"},r().createElement(N.l,null),r().createElement("div",{className:"row no-gutters mx-n1"},n))},icon:s.vn.WidgetTemplatePosterSlidingListSmall,getTargets:function(e){switch(e){case d.z.CuratedClassifications:return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.MoviesAndTv];case d.z.CuratedSeries:return[c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company];default:return[]}},className:""}),Qt(Zt,u.f.ThumbnailFeaturedMedia,{getComponent:function(){return D},partialLoading:function(){return r().createElement(r().Fragment,null,r().createElement(I.Row,null,r().createElement(I.Col,{xs:12,md:6},r().createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-lg")})),r().createElement(I.Col,{xs:12,md:6},r().createElement("div",{className:"J5CAD"},r().createElement("div",null,r().createElement("div",{style:{height:"1.5rem"}},r().createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),r().createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),r().createElement("div",{className:"pt-2 mw-100"},r().createElement(P,null))))))},icon:s.vn.WidgetTemplateThumbnailFeaturedMedia,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.Company]},className:""}),Qt(Zt,u.f.CoverFixedPillListLarge,{getComponent:function(){return W.K},partialLoading:function(){return r().createElement("div",{className:"py-2"},r().createElement(N.l,null),r().createElement(I.Row,{className:"no-gutters"},Array(5).fill(null).map((function(e,t){return r().createElement(I.Col,{key:t,xs:12,sm:6,lg:4},r().createElement("div",{className:"position-relative mb-2"},r().createElement(M.Ml,null)))}))))},icon:s.vn.WidgetTemplateCoverFixedPillListLarge,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover]},className:""}),Qt(Zt,u.f.CoverFixedPillListXSmall,{getComponent:function(){return Fe},partialLoading:function(){return r().createElement("div",{className:"".concat(De," px-4 py-3 rounded-lg mb-3")},r().createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.35rem",width:"8rem"}}),r().createElement(I.Row,{className:"mb-2 ".concat(Ie)},Array(8).fill(null).map((function(e,t){return r().createElement(I.Col,{key:t,xs:12,sm:6,lg:4},r().createElement("div",{className:"d-flex align-items-center mb-2"},r().createElement("div",{className:"partial-loading-background mr-2 rounded",style:{width:"2rem",height:"2rem"}}),r().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:""}),Qt(Zt,u.f.CoverSlidingPillListSmall,{getComponent:function(){return Y},partialLoading:function(){return r().createElement("div",{className:"py-2"},r().createElement(N.l,null),r().createElement(R.QL,{partialLoadingComponent:M.Qh}))},icon:s.vn.WidgetTemplateCoverSlidingPillListSmall,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company]},className:""}),Qt(Zt,u.f.CoverFixedTileList,{getComponent:function(){return K},partialLoading:function(){return r().createElement(r().Fragment,null,r().createElement(N.l,null),r().createElement(X.YA,{itemClassName:"columns-of-five"}))},icon:s.vn.WidgetTemplateCoverFixedTileList,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.Company]},className:""}),Qt(Zt,u.f.FeaturedThumbnailSlidingList,{getComponent:function(){return se},partialLoading:function(){return r().createElement("div",null,r().createElement("div",{className:"banner rounded-lg position-relative partial-loading-background ".concat(le," ").concat(ce," mb-1 ")}),r().createElement(m.j7,{hideDescription:!0,hideHeading:!0}))},icon:s.vn.WidgetTemplateFeaturedThumbnailSlidingList,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover]},className:""}),Qt(Zt,u.f.HeroBanner,{getComponent:function(){return me},partialLoading:function(){return r().createElement(pe,null)},icon:s.vn.WidgetTemplateHeroBanner,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover]},className:""}),Qt(Zt,u.f.HeroBannerSmall,{getComponent:function(){return St},partialLoading:function(){return r().createElement(pe,{size:"sm"})},icon:s.vn.WidgetTemplateHeroBannerSmall,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover]},className:""}),Qt(Zt,u.f.ThumbnailFixedListLarge,{getComponent:function(){return Qe},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return $e(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 $e(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)?$e(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 r().createElement("div",null,r().createElement(N.l,null),r().createElement(I.Row,{noGutters:!0,className:"mx-n1"},t.map((function(e,t){return r().createElement(I.Col,{key:t,sm:12,md:6,className:"p-1"},r().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:""}),Qt(Zt,u.f.ThumbnailFixedListSmall,{getComponent:function(){return qe},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return Je(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 Je(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)?Je(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 r().createElement(r().Fragment,null,r().createElement(N.l,null),r().createElement(I.Row,{noGutters:!0,className:"mx-n1 "},t.map((function(e,t){return r().createElement(I.Col,{key:t,lg:4,md:6,sm:6,xs:12,className:"p-1"},r().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:""}),Qt(Zt,u.f.EditableCoverFixedPillListSmall,{getComponent:function(){return yt},partialLoading:function(){return r().createElement("div",{className:"py-2"},r().createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),r().createElement(I.Row,{className:"no-gutters"},Array(7).fill(null).map((function(e,t){return r().createElement(I.Col,{key:t,sm:6,lg:4},r().createElement("div",{className:"position-relative mb-2"},r().createElement(M.Qh,null)))}))))},icon:s.vn.WidgetTemplateEditableCoverFixedPillListSmall,getTargets:function(){return[c.DashboardTargetType.Discover]},className:""}),Qt(Zt,u.f.Heading,{getComponent:function(){return Nt},partialLoading:function(){return r().createElement("div",null,r().createElement("div",{className:"partial-loading-background curated-widget-heading",style:{height:"2.099625rem",width:"16.5rem",maxWidth:"80%"}}," "),r().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"}),Qt(Zt,u.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return Mt},partialLoading:function(){return r().createElement(r().Fragment,null,r().createElement(N.l,null),r().createElement("div",{className:"row ".concat("hk2Ed")},r().createElement("div",{className:"col-sm-12 col-md-6"},r().createElement("div",{className:"".concat(Rt," partial-loading-background rounded-lg")}),r().createElement(Wt,null),r().createElement("div",{className:"pt-1 mw-100"},r().createElement(P,null))),r().createElement("div",{className:"col-sm-12 col-md-6"},r().createElement("div",{className:"".concat(Rt," partial-loading-background rounded-lg")}),r().createElement(Wt,null),r().createElement("div",{className:"pt-1 mw-100"},r().createElement(P,null)))))},icon:s.vn.WidgetTemplateThumbnailFixedListMediaLarge,getTargets:function(){return[c.DashboardTargetType.Classification,c.DashboardTargetType.Discover,c.DashboardTargetType.Company]},className:""}),Qt(Zt,u.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return At},partialLoading:function(){return r().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:""}),Qt(Zt,u.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Dt},partialLoading:function(){return r().createElement(m.j7,{size:"sm",childComponent:It})},icon:s.vn.WidgetTemplatePopoutThumbnailSlidingListSmall,getTargets:function(){return[c.DashboardTargetType.Discover,c.DashboardTargetType.MoviesAndTv,c.DashboardTargetType.Company]},className:""}),Qt(Zt,u.f.FilterSlidingPillListSmall,{getComponent:function(){return Bt},partialLoading:function(){var e,t=(0,x.k)();return r().createElement(r().Fragment,null,r().createElement(N.l,{hideDescription:!0}),r().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 _t(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 _t(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)?_t(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 r().createElement("div",{key:t,className:"col px-1"},r().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:""}),Qt(Zt,u.f.CircleLogoSlidingList,{getComponent:function(){return Xt},partialLoading:function(){var e=8,t=(0,x.k)();return(t.sm||t.xs)&&(e=4),t.md&&(e=6),r().createElement(r().Fragment,null,r().createElement(N.l,null),r().createElement("div",{className:"d-flex flex-no-wrap"},Array(e).fill(null).map((function(e,t){return r().createElement("div",{key:t,className:"uVZyX"},r().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:""}),Qt(Zt,u.f.ThumbnailSlidingListSmall,{getComponent:function(){return b},partialLoading:m.j7,icon:s.vn.WidgetTemplateThumbnailSlidingListSmall,getTargets:function(){return[]},className:""}),Qt(Zt,u.f.ThumbnailSlidingListLarge,{getComponent:function(){return E},partialLoading:function(){return r().createElement(m.j7,{size:"lg"})},icon:s.vn.WidgetTemplateThumbnailSlidingListLarge,getTargets:function(){return[]},className:""}),Zt);const $t={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function Jt(e){var t,n,a,c,s=r().createRef(),u=null===(t=e.lazyLoad)||void 0===t||t,m=(0,l.Y)({prevent:!u}),p=m.ref,f=m.inView,v=o.q.isFunction(e.getContentRequest),g=i.a.useBasicFetch(!(!f||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),h=Q.d.useGetContent(e.content||(null===(n=g.data)||void 0===n?void 0:n.content),null===(a=g.data)||void 0===a?void 0:a.preferences),y=h.content,b=h.unfilteredContent,E=function(e){return!e||!(!Array.isArray(e)||e.length)}(y);r().useEffect((function(){var t;v&&!g.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,E)}),[g.hasCompleted,E,v,e.setIsEmpty]),r().useEffect((function(){e.isScrollToTargetWidget&&s.current&&s.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,s.current]);var T=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}),w=v&&!g.hasCompleted||e.isEditing&&E,L=qt[e.templateId].partialLoading,C=qt[e.templateId].getComponent(e.widgetTypeId),k=qt[e.templateId].className;return!w&&E?r().createElement(r().Fragment,null):r().createElement("div",{id:e.widgetTypeId===d.z.ContinueWatching?"continue-watching-videos-widget":"",ref:s,className:"curated-widget ".concat(k," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},r().createElement("div",{className:e.isScrollToTargetWidget?"".concat($t.widgetHighlight," py-2 px-3 rounded-lg"):""},Q.d.isWidgetInTableOfContents(e.metadata)&&r().createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat($t.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),w?r().createElement("div",{ref:p},r().createElement(L,null)):r().createElement(C,Object.assign({},e,{content:y,unfilteredContent:b,preferences:null===(c=g.data)||void 0===c?void 0:c.preferences,analyticsData:T,showHighlight:e.isScrollToTargetWidget}))))}},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(1024),r=n.n(a),i=n(99910),o=n(91028),l=n(94495);function c(e){return r().createElement(r().Fragment,null,r().createElement(l.B,{name:e.name,description:e.description}),r().createElement(i.Row,{className:"mb-n2"},e.content.map((function(t){return r().createElement(i.Col,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},r().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)},51365:(e,t,n)=>{n.d(t,{M:()=>a});var a=n(1024).createContext(null)},81514:(e,t,n)=>{n.d(t,{V:()=>i});var a=n(86764),r=n(3747);function i(){var e=(0,r.a)(a.r.XS),t=(0,r.a)(a.r.SM),n=(0,r.a)(a.r.MD),i=(0,r.a)(a.r.LG),o=(0,r.a)(a.r.XL),l=(0,r.a)(a.r.XXL),c=a.r.LG;return e&&(c=a.r.XS),t&&(c=a.r.SM),n&&(c=a.r.MD),i&&(c=a.r.LG),o&&(c=a.r.XL),l&&(c=a.r.XXL),c}},80143:(e,t,n)=>{n.d(t,{n:()=>o});var a=n(1024),r=n.n(a),i=n(69454);function o(e,t){var n=r().useMemo((function(){return(null==e?void 0:e.length)&&t&&i.T.shouldShowAudiences(t)?i.T.getSortedPresentationAudiences(e,t):null}),[e]);return r().useMemo((function(){return(null==n?void 0:n.length)?i.T.getMergedPresentationAudienceString(n):null}),[n])}},73814:(e,t,n)=>{n.d(t,{w:()=>r});var a=n(92802),r={getCustomFormControlClassName:function(e,t,n,r,i){var o="form-control";return"sm"===r&&(o+=" form-control-sm"),"lg"===r&&(o+=" form-control-lg"),(0,a.u9)(t,n)&&(0,a.u9)(e,n)&&(o+=" is-invalid"),i&&(o+=" ".concat(i)),o}}},69454:(e,t,n)=>{n.d(t,{T:()=>s});var a=n(75896),r=n(1048),i=/\d/,o=n(55171),l=/([0-9]+)/gi,c=/\s|\+/gi,s={getSortedPresentationAudiences:function(e,t){var n=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return t.filter((function(e){return n.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var t="";switch(+a.m.first(e).presentationId){case o.e.PresentationIds.DEFAULT:case o.e.PresentationIds.AU_SECONDARY:case o.e.PresentationIds.US_ELEMENTARY:case o.e.PresentationIds.AU_PRIMARY:if(1===e.length)return e[0];t=function(e){var t=e.map((function(e){return e.name})).join(" "),n=t.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],a=t.split(" ").filter((function(e){return isNaN(+e)}))||[],r=e.find((function(e){return!i.test(e.name)})),o=a.find((function(e){return e!==(null==r?void 0:r.name)}));if(e.length>1&&(o+="s"),r&&n.length)return"".concat(o," ").concat(r.name.charAt(0)," - ").concat(n.pop());var l=function(e){var t,n,a,r,i=!1,o=[];for(e=e.sort((function(e,t){return e-t})),a=0;a<e.length;a++)r=a+1,i||(t=e[a]),n=e[r],e[a]+1===n?i=!0:i?(o.push("".concat(t," - ").concat(e[a])),i=!1):(o.push("".concat(e[a])),i=!1);return o}(n);return"".concat(o," ").concat(l.join(", "))}(e);break;case o.e.PresentationIds.SCOTLAND_PRIMARY:case o.e.PresentationIds.SCOTLAND_SECONDARY:case o.e.PresentationIds.INTERNATIONAL_PRIMARY:case o.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];t=function(e){var t=e.map((function(e){return e.name})),n={};t.forEach((function(e,t){if(0!==t){var a=e.split(" ");Object.keys(n).forEach((function(e){a.includes(e)||delete n[e]}))}else e.split(" ").forEach((function(e,t){n[e]=0===t?"start":"end"}))}));var a=Object.keys(n)[0],r=n[a];if(!a)return e[0].name;var i=e[0].name,o=e[e.length-1].name,l=function(e){return e.split(a)[0]},c="".concat(l(i)," - ").concat(l(o));return"start"===r?"".concat(a," ").concat(c):"".concat(c," ").concat(a)}(e);break;case o.e.PresentationIds.ENGLAND_PRIMARY:t=function(e){var t=a.m.first(e),n=a.m.last(e),r=a.m.first(t.name.split(" ")),i=a.m.first(n.name.split(" ")),o=t.name.split(" ").find((function(e){return!isNaN(+e)})),l=n.name.split(" ").find((function(e){return!isNaN(+e)}));if(t===n)return"Key"===r||"Reception"===r?t.name:"".concat(r," KS").concat(o);var c="",s="";return c="Reception"===r?"R":"KS".concat(o),s="KS".concat(l),"Lower"===r&&"Upper"===i?"L ".concat(c," - U ").concat(s):("Lower"===r&&(c="Lower ".concat(c)),"Upper"===i&&(s="Upper ".concat(s)),"Key"===i&&(s=n.name),"".concat(c," - ").concat(s))}(e);case o.e.PresentationIds.US_MIDDLE:case o.e.PresentationIds.US_HIGH:}return t?{name:t}:null},sortMembersWithDuplicateNamesByAudience:function(e){var t=function(e){return e.length?(e.forEach((function(e){var r=+a.m.first(e.name.match(l));if(!t)return t=e,void(n=r);r<n&&(t=e)})),t):null;var t,n},n={},r=[];return e.forEach((function(e){if(!n[e.name])return n[e.name]=1,void r.push(e);r.push(e),n[e.name]++;var a=r.splice(r.length-n[e.name]).sort((function(e,n){var a=t(e.subjectPresentationAudiences.data),r=t(n.subjectPresentationAudiences.data);if(!a&&r)return 1;if(!r)return-1;var i=a.name.localeCompare(r.name);return 0===i?i:i>0?-1:1}));r=r.concat(a)})),r},getActiveAudiencesFromParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.t.isObject(t)&&!r.t.isEmpty(t)&&e&&e.length&&s.shouldShowAudiences(e)){var n=t.a;if(n){"string"==typeof n&&(n=[n]);var a=function(e){return e.replace(c,"").toLowerCase()},i=n.reduce((function(e,t){return e[a(t)]=t,e}),{});return e.filter((function(e){return i[a(e.name)]}))}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map((function(e){return e.name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6001],{92869:(e,t,n)=>{n.d(t,{t:()=>o});var r=n(48088),a=n(95846),o={preventScrollTop:function(){r.Radio.channel(a.G.SHELL).trigger("prevent:scroll:top")}}},75097:(e,t,n)=>{n.d(t,{U:()=>o});var r=n(1024),a=n(95245);function o(e){var t=e.count,n=void 0===t?6:t;return r.createElement("div",{className:"d-flex"},r.createElement("div",{className:"d-flex pl-1"},Array(n).fill(null).map((function(e,t){return r.createElement("div",{key:t,className:"".concat(a.Z.partialButton," partial-loading-background mx-1")})}))))}},49935:(e,t,n)=>{n.d(t,{Oo:()=>d,b2:()=>m});var r=n(1024),a=n(8493),o=n(5859),l=n(86764),i=n(3747),c=n(83914),u=n(58130),s=function(e){var t=e.breadcrumb,n=t.name,o=t.appLink,l=t.active,i=e.withBackIcon;return r.createElement("li",{className:"breadcrumb-item".concat(l?" active":"")},l?r.createElement("strong",null,n):r.createElement(a.F,{appLink:o},i&&r.createElement(c.x,{svgName:u.vn.ChevronLeft,size:c.S.Small}),r.createElement("span",{className:i?"ml-2":""},n)))},d=function(e){var t=e.breadcrumbs,n=(0,i.a)(l.r.XS),a=null==t?void 0:t.length;return!a||n&&a<2?r.createElement(r.Fragment,null):n?r.createElement("ol",{className:"breadcrumb m-0 p-0"},r.createElement(s,{breadcrumb:t[a-2],withBackIcon:!0})):r.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return r.createElement(s,{key:t,breadcrumb:e})})))},m=r.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return(0,i.a)(l.r.XS)?r.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb m-0 p-0"},o.u.getPartialLoadingItems({numItems:n}).map((function(e,t){var n=e.width;return r.createElement("li",{key:t,className:"breadcrumb-item"},r.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},37395:(e,t,n)=>{n.d(t,{t:()=>d});var r=n(1024),a=n(99910),o=n(92869),l=n(8493),i=n(83345),c=n(49985),u=n(65858);function s(e,t){var n;if(!t)return null;var r=null!==(n=e.params)&&void 0!==n?n:{};return{application:e.application,action:e.action,args:e.args,params:Object.assign(Object.assign({},r),{cursor:t})}}function d(e){var t=e.appLink,n=e.cursors,d=e.className,m=e.buttonVariant,f=e.onClick;function v(e){t&&o.t.preventScrollTop(),c.k.logUserAction({page:e},{location:u.LocationContext.Pagination,entity:u.EntityType.Pagination,actionType:u.UserAction.Navigate}),f&&f(n[e])}return t?r.createElement(i.D.Provider,{value:"shared.pagination"},r.createElement("div",{className:d},r.createElement(l.F,{appLink:s(t,n.previous),className:"btn btn-".concat(m," mr-1 ").concat(n.previous?"":"disabled"),onClick:function(){return v("previous")}},r.createElement(i.x,{phrase:"previous"})),r.createElement(l.F,{appLink:s(t,n.next),className:"btn btn-".concat(m," ").concat(n.next?"":"disabled"),onClick:function(){return v("next")}},r.createElement(i.x,{phrase:"next"})))):r.createElement(i.D.Provider,{value:"shared.pagination"},r.createElement("div",{className:d},r.createElement(a.Button,{variant:m,className:"mr-1 ".concat(n.previous?"":"disabled"),onClick:function(){return v("previous")}},r.createElement(i.x,{phrase:"previous"})),r.createElement(a.Button,{variant:m,className:"btn ".concat(n.next?"":"disabled"),onClick:function(){return v("next")}},r.createElement(i.x,{phrase:"next"}))))}d.defaultProps={className:"py-2",buttonVariant:"secondary"}},69674:(e,t,n)=>{n.d(t,{i:()=>C});var r=n(1024),a=n.n(r),o=n(35509),l=n(54976),i=n.n(l),c=n(83914),u=n(58130),s=n(16930),d=n(8493),m=n(1287),f=n(13112),v={opacity:"0.8",cursor:"grabbing"},p=n(79014);function g(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(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 b(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}}function h(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 y(e){var t,n,r,a;return{canScrollLeft:(null===(t=e.current)||void 0===t?void 0:t.scrollLeft)>0,canScrollRight:(null===(n=e.current)||void 0===n?void 0:n.scrollLeft)<(null===(r=e.current)||void 0===r?void 0:r.scrollWidth)-(null===(a=e.current)||void 0===a?void 0:a.clientWidth)}}const S={sortIndicator:"gFhu0",scrollContainer:"sWUp9",scrollbarTrack:"Vn2qM"};function E(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 w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function k(e){var t,n;return e.column.canSort?a().createElement("span",{className:"".concat(S.sortIndicator,"\n ").concat(e.column.isSorted?"":"text-muted","\n ").concat(null!==(n=null===(t=e.theme)||void 0===t?void 0:t.sortIndicator)&&void 0!==n?n:"")},a().createElement(c.x,{svgName:e.column.isSortedDesc||!e.column.isSorted?u.vn.ArrowRight:u.vn.ArrowLeft,size:c.S.Small})):a().createElement(a().Fragment,null)}function N(e){var t,n,r,l,i,c,u,s,p={columns:e.columns,data:e.data,disableSortBy:!e.enableSort,manualSortBy:e.manualSort,autoResetHiddenColumns:e.autoResetHiddenColumns,autoResetSortBy:e.autoResetSortBy};e.initialSelectedRowIds&&(p.initialState={selectedRowIds:(u=e.initialSelectedRowIds,s={},u.forEach((function(e){return s[e]=!0})),s)}),e.getRowId&&(p.getRowId=e.getRowId);var b,h=o.useTable.apply(void 0,[p].concat((b=function(e){var t=[o.useFlexLayout,o.useSortBy,o.useRowSelect];return e.allowFiltering&&(t=[].concat(g(t),[o.useFilters])),e.allowGlobalFiltering&&(t=[].concat(g(t),[o.useGlobalFilter])),t}(Object.assign({},e)),function(e){if(Array.isArray(e))return E(e)}(b)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(b)||function(e,t){if(e){if("string"==typeof e)return E(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)?E(e,t):void 0}}(b)||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.")}()))),y=h.getTableProps,S=h.getTableBodyProps,w=h.headerGroups,N=h.rows,C=h.prepareRow,R=h.toggleAllRowsSelected,L=h.setGlobalFilter,j=h.setHiddenColumns,x=h.state.sortBy;function O(){return N.map((function(t){C(t);var n=function(t){var n,r,a,o,l=null!==(r=null===(n=e.theme)||void 0===n?void 0:n.row)&&void 0!==r?r:"";return t.isSelected&&(null===(a=e.theme)||void 0===a?void 0:a.selectedRow)&&(l+=" ".concat(null===(o=e.theme)||void 0===o?void 0:o.selectedRow)),e.onSelectRow&&(l+=" cursor-pointer"),e.enableSortableRows&&(l+=" cursor-grab"),l}(t),r=!!e.getRowAppLink&&e.getRowAppLink(t);function o(){e.onSelectRow&&(e.allowSelectMultipleRows||R(!1),e.onSelectRow(t),t.toggleRowSelected(!0))}function l(e,l){var i=function(e,t){return"dragAttributes"in e&&"dragListeners"in e?Object.assign(Object.assign(Object.assign({},e.dragAttributes),e.dragListeners),{"aria-roledescription":"Sortable row",ref:t}):{}}(e,l);return r?a().createElement("div",{role:"row",key:t.id},a().createElement(d.F,Object.assign({},e,i,{className:n,appLink:r}),I(t))):a().createElement("div",Object.assign({},e,i,{key:t.id,role:"row",className:n,onClick:o}),I(t))}var i=t.getRowProps();return e.enableSortableRows?a().createElement(m.W,{id:t.original.id,key:t.id,childProps:i,childComponent:a().forwardRef((function(e,t){return l(e,t)}))}):l(i)}))}function I(t){return t.cells.map((function(n){var r=function(t,n){var r,a,o="";return"function"==typeof(null===(r=e.theme)||void 0===r?void 0:r.cell)&&(o=e.theme.cell(t,n)),"string"==typeof(null===(a=e.theme)||void 0===a?void 0:a.cell)&&(o=e.theme.cell),e.onSelectCell&&(o+=" cursor-pointer"),o}(t,n);return a().createElement("div",Object.assign({key:n.column.id},n.getCellProps(),{className:r,onClick:function(){e.onSelectCell&&e.onSelectCell(n)}}),n.render("Cell"))}))}return a().useEffect((function(){e.onSort&&e.onSort(x)}),[x]),a().useEffect((function(){e.globalFilter&&L(e.globalFilter)}),[e.globalFilter]),a().useEffect((function(){e.hiddenColumns&&j(e.hiddenColumns)}),[e.hiddenColumns&&e.hiddenColumns.length]),a().createElement("div",Object.assign({},y(),{className:null!==(n=null===(t=e.theme)||void 0===t?void 0:t.table)&&void 0!==n?n:""}),a().createElement("div",{className:null!==(l=null===(r=e.theme)||void 0===r?void 0:r.header)&&void 0!==l?l:""},w.map((function(t){var n,r;return a().createElement("div",Object.assign({},t.getHeaderGroupProps(),{className:null!==(r=null===(n=e.theme)||void 0===n?void 0:n.headerRow)&&void 0!==r?r:""}),t.headers.map((function(t){var n,r;return a().createElement("div",Object.assign({},t.getHeaderProps(t.getSortByToggleProps()),{className:null!==(r=null===(n=e.theme)||void 0===n?void 0:n.headerCell)&&void 0!==r?r:""}),t.render("Header",{renderSortIndicator:function(){return a().createElement(k,{column:t,theme:e.theme})}}),!t.hideSortIndicator&&a().createElement(k,{column:t,theme:e.theme}))})))}))),a().createElement("div",Object.assign({},S(),{className:null!==(c=null===(i=e.theme)||void 0===i?void 0:i.body)&&void 0!==c?c:""}),e.enableSortableRows?a().createElement(f.Q,{ids:N.map((function(e){return e.original.id})),getDragOverlay:function(t){var n,r,o=N.findIndex((function(e){return e.original.id===t})),l=N[o];return a().createElement("div",Object.assign({},e,{className:(n=e.theme,r="no-gutters ",n&&(r+=n.row),r),style:v}),I(l))},onSortEnd:e.onSortingRowsEnd},O()):O()))}function C(e){var t=e.enableSlider,n=e.scrollIncrement,r=e.scrollable,o=w(e,["enableSlider","scrollIncrement","scrollable"]),l=function(){var e,t,n=a().useRef(),r=(e=a().useState(y(n)),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 r,a,o,l,i=[],c=!0,u=!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)&&(i.push(r.value),i.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return i}}(e,t)||b(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.")}()),o=r[0],l=r[1],i=p.q.throttle((function(){l(y(n))}),200),c=a().useCallback((function(e){var t;n.current&&(null===(t=n.current)||void 0===t||t.removeEventListener("scroll",i)),e&&(l(y(n)),e.addEventListener("scroll",i)),n.current=e}),[]);return a().useEffect((function(){(null==n?void 0:n.current)&&l(y(n))}),[n]),{ref:c,scrollState:o,scroll:function(e){var t;null===(t=n.current)||void 0===t||t.scrollBy({left:e,top:0,behavior:"smooth"})}}}(),c=l.ref,u=l.scrollState,d=l.scroll;if(r)return a().createElement(i(),{renderTrackHorizontal:function(){return a().createElement("div",{className:S.scrollbarTrack})},autoHeightMax:1e4,autoHeight:!0},a().createElement(N,Object.assign({},o)));if(!t)return a().createElement(N,Object.assign({},o));function m(e){d(n*("right"===e?1:-1))}return a().createElement("div",{className:"mx-n3 overflow-hidden-x"},a().createElement("div",{className:"px-3"},a().createElement("div",{className:"position-relative"},a().createElement(s.W,{direction:s.f.Left,onClick:function(){return m("left")},hide:!u.canScrollLeft}),a().createElement("div",{className:S.scrollContainer,ref:c},a().createElement(N,Object.assign({},o))),a().createElement(s.W,{direction:s.f.Right,onClick:function(){return m("right")},hide:!u.canScrollRight}))))}C.defaultProps={scrollIncrement:250,scrollable:!1}},16035:(e,t,n)=>{n.d(t,{z:()=>s});var r=n(1024),a=n.n(r),o=n(8493),l=n(44829),i=n(58130),c=n(83914),u=n(91807);function s(e){var t,n,r=e.tag,s=e.appLink,d=e.onClick,m=e.disabled,f=e.tagClass,v=void 0===f?"tag":f,p=r.name.toLowerCase(),g=null===(t=r.tagType)||void 0===t?void 0:t.toLowerCase(),b="badge-pill py-1 px-2 my-1 mr-1 ".concat(v," ").concat(function(e){switch(e){case l.Q.Pedagogy:case l.Q.Skill:return"pedagogy-tag text-white";case l.Q.Hidden:return"hidden-tag";case l.Q.Normal:default:return""}}(g)),h=g===l.Q.Normal&&!!(null===(n=e.themeColours)||void 0===n?void 0:n.secondary);h&&(b+=" text-white"),!s&&!d||m||(b+=" cursor-pointer"),m&&(b+=" "+u.Z.disabled),e.onRemove&&(b+=" "+u.Z.badge),s||(b+=" d-inline-block");var y=h?{backgroundColor:e.themeColours.secondary}:{};return s?a().createElement(o.F,{onClick:d,appLink:s,className:b,title:p,style:y},a().createElement("span",{className:"text-truncate text-nowrap"},p)):a().createElement("span",{onClick:d,className:b,title:p,style:y},a().createElement("span",{className:"text-truncate text-nowrap"},p,e.onRemove&&a().createElement("button",{onClick:e.onRemove,className:"".concat(u.Z.close," close font-size-normal")},a().createElement(c.x,{size:c.S.Small,svgName:i.vn.Close,className:"d-inline-block svg-container"}))))}},81514:(e,t,n)=>{n.d(t,{V:()=>o});var r=n(86764),a=n(3747);function o(){var e=(0,a.a)(r.r.XS),t=(0,a.a)(r.r.SM),n=(0,a.a)(r.r.MD),o=(0,a.a)(r.r.LG),l=(0,a.a)(r.r.XL),i=(0,a.a)(r.r.XXL),c=r.r.LG;return e&&(c=r.r.XS),t&&(c=r.r.SM),n&&(c=r.r.MD),o&&(c=r.r.LG),l&&(c=r.r.XL),i&&(c=r.r.XXL),c}},91286:(e,t,n)=>{n.d(t,{v:()=>l});var r=n(1024),a=n(94644);function o(e){return e.map((function(e){return e.statusCode})).join(":")}function l(e,t,n){var l=Array.isArray(e)?e:[e];(0,r.useEffect)((function(){l.forEach((function(e){(0,a.r)(e.statusCode,t,n)}))}),[o(l),t,n])}},299:(e,t,n)=>{n.d(t,{X:()=>i});var r=n(1024),a=n.n(r),o=n(94631),l=n(69217),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idField,r=void 0===n?"id":n,i=t.persistNamespace,c=t.initialState?t.initialState:new Map,u=a().useRef(c),s=(0,l.N)(),d=(0,o.D)(e),m=(0,o.D)(i);function f(){u.current.clear(),s()}function v(e){return"number"==typeof e?e=e.toString():"string"!=typeof e&&(e=e[r].toString()),u.current.get(e)}function p(){return!!(null==e?void 0:e.length)&&e.every(v)}function g(e){e.forEach((function(e){u.current.set(e,!0)})),s()}return a().useEffect((function(){t.initialState||i&&m===i||(null==d?void 0:d.map((function(e){return e[r]})).join())!==(null==e?void 0:e.map((function(e){return e[r]})).join())&&f()}),[d,m,e,t.initialState]),a().useEffect((function(){var e;(null===(e=t.preselectedIds)||void 0===e?void 0:e.length)&&g(t.preselectedIds)}),[]),{onToggleBulk:function(){var t=!p();e.forEach((function(e){t?u.current.set(e[r].toString(),!0):u.current.delete(e[r].toString())})),s()},onToggleItem:function(e){var t=!u.current.get(e.toString());t?u.current.set(e.toString(),t):u.current.delete(e.toString()),s()},getSelected:function(){return Array.from(u.current.keys())},isChecked:v,bulkChecked:p(),deselectAll:function(){(null==e?void 0:e.length)&&(e.forEach((function(e){u.current.delete(e[r].toString())})),s())},hasSomeSelections:function(){return!!(null==e?void 0:e.length)&&!!e.find((function(e){return v(e)}))},setSelected:g,getSelectedCount:function(){return u.current.size},reset:f,getMap:function(){return u.current}}}},94631:(e,t,n)=>{n.d(t,{D:()=>o});var r=n(1024),a=n.n(r);function o(e){var t=a().useRef();return a().useEffect((function(){t.current=e})),t.current}},91807:(e,t,n)=>{n.d(t,{Z:()=>r});const r={tagList:"Zw6d9",disabled:"jlL1c",partialTag:"too_N",badge:"OjtN8",close:"X9joI"}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6113],{83818:(e,t,n)=>{n.d(t,{J:()=>_});var r=n(1024),i=n.n(r),a=n(83345),o=n(99910),c=n(94605),l=n(96675),u=n(11607),s="search.filterActions";function f(e){return r.createElement("div",{className:"d-flex justify-content-between ".concat(e.className)},e.active?r.createElement(u.L,{className:"text-muted hover-text-underline cursor-pointer",onClick:e.onClickReset},r.createElement(a.x,{namespace:s,phrase:"reset"})):r.createElement("div",{className:"invisible"}),r.createElement(u.L,{className:"info-link",onClick:e.onClickApply},r.createElement(a.x,{namespace:s,phrase:"apply"})))}f.defaultProps={active:!1,className:""};const m={filterButton:"A_tE0",hideCaret:"KDq7l",filterMenu:"E9o_Q",twoColumnsWidth:"C70vU",nestedCheckboxesWidth:"kUHcg",switchWidth:"bi1FH",moreFiltersWidth:"rbr22",svgContainer:"UwDMA"};var d=n(83914);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,c=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(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)?v(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 v(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 b(e){var t=r.useContext(l.f).state,n=t[e.filter.id],i="dropdown"===e.filter.type,a=y(r.useState(e.filter.name),2),u=a[0],s=a[1],v=y(r.useState(!1),2),b=v[0],g=v[1],h=y(r.useState(n),2),E=h[0],S=h[1];function C(e){S(e),i&&w(e)}function w(){var r,i,a,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E;c.qr.applyFilter([e.filter],n,(r={},i=e.filter.id,a=o,(i=function(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===p(t)?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r),t.appLink)}r.useEffect((function(){s(c.qr.getLabel(e.filter,n)),S(n)}),[e.filter,n.selection]);var A,k=r.useMemo((function(){return e.filter.customComponent?e.filter.customComponent:c.qr.mapTypeToComponent(e.filter.type)}),[e.filter.type,e.filter.customComponent]),x="".concat(m.filterButton," mx-1 btn d-flex align-items-center"),F=i?"":m.hideCaret,j=(A=e.filter,c.qr.displayTwoColumns(A)?m.twoColumnsWidth:"classification"===A.id?m.classificationWidth:c.qr.displayTwoLayers(A)?m.nestedCheckboxesWidth:"switch"===A.type?m.switchWidth:"");return"button"===e.filter.type?r.createElement(k,{filter:e.filter,draftState:E,setDraftState:C}):r.createElement(o.Dropdown,{onToggle:function(e){g(e),e||i||w()},show:b},r.createElement(o.Dropdown.Toggle,{id:"filterButton-".concat(e.filter.id),className:"".concat(x," ").concat(F),variant:n.active&&!i?"dark":"outline-dark",disabled:e.filter.disabled},!!e.filter.icon&&r.createElement("div",{className:m.svgContainer},r.createElement(d.x,{svgName:e.filter.icon})),u),r.createElement(o.Dropdown.Menu,null,r.createElement("div",{className:"mx-1 ".concat(m.filterMenu," ").concat(j," ").concat(i?"":"px-2 py-1")},r.createElement(k,{filter:e.filter,draftState:E,setDraftState:C}),!i&&!e.filter.disabled&&r.createElement(f,{active:E.active,onClickReset:function(){var t,n=null===(t=e.filter.options)||void 0===t?void 0:t.find((function(e){return e.default}));S({active:!1,selection:n?[n]:[]})},onClickApply:function(){w(),g(!1)}}))))}var g=n(81886);function h(e){var t=r.useContext(l.f).state;return r.createElement(u.L,{onClick:function(){g.Q.AppLinkHelper.trigger(Object.assign(Object.assign({},t.appLink),{params:e.currentQueryParam?{query:e.currentQueryParam}:null}))},className:"hover-text-underline cursor-pointer d-flex align-items-center ml-2"},r.createElement(a.x,{namespace:"search.resetButton",phrase:"reset"}))}var E=n(79014);function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}var C={getSetStateByKey:function(e,t,n){return function(r){return e((function(e){var i=E.q.isFunction(n)?n:E.q.useIdentity();return Object.assign(Object.assign({},e),function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==S(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===S(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,i(r,e)))}))}}};function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,c=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(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)?A(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 A(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 k(e){return Object.keys(e).reduce((function(t,n){return e[n].active?t+1:t}),0)}function x(e){var t=r.useContext(l.f).state,n=t.moreFilters,i=w(r.useState(e.filter.name),2),a=i[0],u=i[1],s=w(r.useState(!1),2),d=s[0],p=s[1],y=w(r.useState(n),2),v=y[0],b=y[1],g=w(r.useState(k(n)),2),h=g[0],E=g[1],S=Object.keys(n).map((function(e){return"".concat(e,":").concat(n[e].active)})).join("-");function A(){c.qr.applyFilter(e.filter.filters,n,v,t.appLink)}r.useEffect((function(){b(n),E(k(n))}),[e.filter,S]),r.useEffect((function(){u(h?"".concat(e.filter.name," - ").concat(h):e.filter.name)}),[h]);var x="".concat(m.filterButton," ").concat(m.hideCaret," mx-1 btn"),F=h?"btn-dark":"btn-outline-dark";return r.createElement(o.Dropdown,{onToggle:function(e){p(e),e||A()},show:d},r.createElement(o.Dropdown.Toggle,{id:e.filter.id,className:"".concat(x," ").concat(F)},a),r.createElement(o.Dropdown.Menu,{onClick:function(e){return e.stopPropagation()}},r.createElement("div",{className:"mx-1 ".concat(m.moreFiltersWidth," ").concat("dropdown"!==e.filter.type?"px-2 py-1":"")},e.filter.filters.map((function(e){var t=e.customComponent?e.customComponent:c.qr.mapTypeToComponent(e.type);return r.createElement("div",{key:e.id,className:"mb-2"},r.createElement(t,{filter:e,draftState:v[e.id],setDraftState:C.getSetStateByKey(b,e.id),isOnMoreFilters:!0}))})),r.createElement(f,{active:!!Object.keys(v).find((function(e){return v[e].active})),onClickReset:function(){var t=Object.keys(n).reduce((function(t,n){var r,i=null===(r=e.filter.filters.find((function(e){return e.id===n})).options)||void 0===r?void 0:r.find((function(e){return e.default}));return t[n]={active:!1,selection:i?[i]:[]},t}),{});b(t)},onClickApply:function(){A(),p(!1)}}))))}var F=n(16450),j=n(16035);const O={tagItem:"EcurS",selected:"FypfE"};function N(e){var t=e.selectedItems.find((function(t){return t.id===e.data.id}))?"".concat(O.selected," text-info"):"bg-light";return i().createElement(j.z,{tag:e.data,appLink:e.appLink,tagClass:"no-decoration ".concat(t," ").concat(O.tagItem),onClick:function(){return e.onClick(e.data)}})}var I=n(91807),T=i().memo((function(e){var t=e.tagClass,n="partial-loading-background d-inline-block badge-pill py-1 px-2 mb-1 mt-n3 mr-1 text-nowrap ".concat(void 0===t?"":t," ").concat(I.Z.partialTag);return i().createElement("span",{className:n}," ")}));const q={tagItem:"j84HW"};function D(e){return D="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},D(e)}function P(e){return function(e){if(Array.isArray(e))return L(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 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)||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 L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function B(e){var t,n,r,a,o=i().useContext(l.f).state;if(!(null===(t=e.filter)||void 0===t?void 0:t.id))return i().createElement(i().Fragment,null);var u=o[e.filter.id],s=u.selection,f=null!==(a=null===(r=null===(n=e.filter)||void 0===n?void 0:n.options)||void 0===r?void 0:r.filter((function(e){return!(null==s?void 0:s.find((function(t){return t.id===e.id})))})))&&void 0!==a?a:[];function m(t){var n,r,i,a=null,l=-1;if(s.find((function(e,n){l>-1||e.id.toString()===t.id.toString()&&(l=n)})),l>=0){var f=[].concat(P(s.slice(0,l)),P(s.slice(l+1)));a={active:!!f.length,selection:f}}else a={active:!0,selection:s.concat(t)};c.qr.applyFilter([e.filter],u,(n={},r=e.filter.id,i=a,(r=function(e){var t=function(e,t){if("object"!==D(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===D(t)?t:String(t)}(r))in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n),o.appLink)}var d,p=[].concat(P(s),P(e.isFetching?[]:f));return i().createElement("div",{className:"py-2"},i().createElement("div",{className:(d="mb-3",!p.length&&e.isFetching?d+=" pt-3":p.length&&e.isFetching?d+=" mt-n1":p.length||e.isFetching||(d+=" d-none"),d)},(!!p.length||e.isFetching)&&i().createElement(F.e,{collection:p,childComponent:function(e){return i().createElement(N,Object.assign({},e,{selectedItems:s,onClick:m}))},staticChildren:e.isFetching?new Array(3).fill({component:function(){return i().createElement(T,{tagClass:q.tagItem})},position:"end"}):[],partialLoadingComponent:function(){return i().createElement(T,{tagClass:q.tagItem})}})))}var M=n(75896),R=n(1048),Q=n(95245);function H(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||W(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 W(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}}function U(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 _(e){var t,n,i=e.queryParams,o=e.appLink,u=e.hideHeading,s=e.isFetchingOptions,f=e.constantIndices,m=void 0===f?[]:f,d=r.useMemo((function(){return c.qr.deriveInitialStateFromQuery(i,e.mainFilters,e.moreFilters,o)}),[i,s]),p=(t=r.useReducer(l.O,d),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,c=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}(t,n)||W(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.")}()),y=p[0],v=p[1];r.useEffect((function(){R.t.isEqual(d,y)||(v({type:"update",payload:d}),e.analyticsOptions&&c.qr.logFilterEvent(e.mainFilters,e.moreFilters,d,i.query,e.analyticsOptions))}),[d]);var g=M.m.uniq([].concat(H(c.qr.getAppliedIndices(i)),H(m))),E=c.qr.mixinDisabledFields(y,g,e.mainFilters,e.moreFilters),S=E.mainFilters,C=E.moreFilters,w=S.filter((function(e){return"tag"!==e.type})),A=S.find((function(e){return"tag"===e.type}));return r.createElement(l.f.Provider,{value:{state:y,dispatch:v}},r.createElement(a.D.Provider,{value:"search.searchFilters"},r.createElement("section",null,r.createElement("div",{className:"d-flex ".concat(e.hideDivider?"":"border-bottom pb-3 mb-3")},!u&&r.createElement("h2",{className:"h5 mb-0 d-inline-block pr-2 border-right d-flex align-items-center"},r.createElement(a.x,{phrase:"heading"})),r.createElement("div",{className:"d-flex flex-wrap ".concat(Q.Z.filtersContainer," ").concat(u?"":"ml-2")},w.map((function(e){return r.createElement(b,{key:e.id,filter:e})})),C&&r.createElement(x,{filter:C}),c.qr.hasActiveFilters(i)&&!e.hideResetButton&&r.createElement(h,{mainFilters:e.mainFilters,moreFilters:e.moreFilters,currentQueryParam:i.query,analyticsOptions:e.analyticsOptions}))),r.createElement(B,{filter:A,queryParams:i,isFetching:e.isFetchingOptions}))))}},94495:(e,t,n)=>{n.d(t,{B:()=>l});var r=n(1024),i=n.n(r),a=n(58130),o=n(8493),c=n(83914);function l(e){return i().createElement(i().Fragment,null,!!e.name&&i().createElement(o.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"text-decoration-none ".concat(e.appLink?"curated-widget-link":"")},i().createElement("h2",{className:"h4 curated-widget-heading"},e.name,!!e.appLink&&i().createElement(c.x,{svgName:a.vn.ChevronRight,size:c.S.Small}))),!!e.description&&i().createElement("p",{className:"description curated-widget-description"},i().createElement("span",{className:"clamp-2"},e.description)))}},43872:(e,t,n)=>{n.d(t,{V:()=>s});var r=n(1024),i=n(82182),a=n(31069),o=n(79014),c=new Image;c.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var l=function(e){e.dataTransfer.setDragImage&&o.q.isFunction(e.dataTransfer.setDragImage)&&e.dataTransfer.setDragImage(c,0,0)},u=i.V.isTouchScreen(),s=r.forwardRef((function(e,t){var n,i,o,c,s=e.children,f=e.positionType,m=e.onDrag,d=e.onDragEnd,p=e.onTouchMove,y=e.onTouchEnd,v=e.percentageDragged,b=e.position,g=void 0===b?0:b;return r.createElement("div",Object.assign({className:"d-flex flex-nowrap position-relative w-100 pb-1",style:(i=g,o=f,c=v,o===a.C.Percentage&&c&&(i-=c),{transform:"translate3d(".concat(i).concat(o,", 0px, 0px)"),transition:"transform .4s ease-in-out"}),ref:t},(n={},m&&d&&(n.draggable=!0,n.onDragEnd=d,n.onDragStart=l,n.onDragOver=m),p&&y&&u&&(n.onTouchMoveCapture=p,n.onTouchEndCapture=y),n)),s)}))},16930:(e,t,n)=>{n.d(t,{W:()=>c,f:()=>o});var r=n(1024),i=n(83914),a=n(58130);var o;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(o||(o={}));var c=r.memo((function(e){var t,n=e.direction===o.Left,c=n?a.vn.ChevronLeft:a.vn.ChevronRight;return e.hide?r.createElement(r.Fragment,null):r.createElement(r.Fragment,null,r.createElement("div",{role:"button",className:"".concat((t="BVcIS",t+=n?" ".concat("VSAPU"," ").concat(e.leftButtonClassName):" ".concat("kgeXh"," ").concat(e.rightButtonClassName))," ").concat("gAsE9"," ").concat(e.className||""),onClick:e.onClick},e.hoverText&&r.createElement("span",{className:"pl-3 pr-2 ".concat("APA36")},e.hoverText),r.createElement(i.x,{svgName:c,size:i.S.Medium,className:"svg-container d-inline-block ".concat("Ev4hr")})),e.useGradientBackdrop&&r.createElement("div",{className:n?"".concat("Pt3nx"," ").concat(e.leftGradientClassName):"".concat("ZuAif"," ").concat(e.rightGradientClassName)}),!e.hideExtendedClickableArea&&r.createElement("div",{role:"button",onClick:e.onClick,className:n?"wi8c2":"aLa_J"}))}))},31069:(e,t,n)=>{var r;n.d(t,{C:()=>r}),function(e){e.Percentage="%",e.Pixels="px"}(r||(r={}))},10841:(e,t,n)=>{var r;n.d(t,{n:()=>r}),function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag",e.Update="update",e.JumpToIndex="jump-to-index"}(r||(r={}))},94644:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(81886),i=n(50242),a=n(67058),o=n(49075),c=n(14553),l=n(49267),u={notFound:a.d,forbidden:{rating:c.q,yearLevel:c.q,region:l.a,privacy:c.q},badRequest:o._};function s(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 a;a="number"==typeof e?e:e.status;var o=Object.assign(Object.assign({},u),t);a&&r.Q.ErrorHelper.isStatusCodeError(a)&&(a!==i.o.NotFound?a!==i.o.Forbidden?n.badRequest||r.Q.ErrorHelper.throw(new o.badRequest):n.forbidden||r.Q.ErrorHelper.throw(new o.forbidden.privacy):n.notFound||r.Q.ErrorHelper.throw(new o.notFound))}}},95245:(e,t,n)=>{n.d(t,{Z:()=>r});const r={partialFilterHeading:"O8f8H",partialButton:"ThKam",filtersContainer:"JIp3h"}}}]);