@clickview/streamable-learning 0.3.0 → 0.3.1-rc.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 (81) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/127-streamable-learning-77ef8960f0.chunk.css +6 -0
  3. package/dist/css/{985-streamable-learning-5b24c1851a.chunk.css → 163-streamable-learning-02ddf096ae.chunk.css} +8 -5
  4. package/dist/css/{677-streamable-learning-078d160389.chunk.css → 311-streamable-learning-b31ef33a85.chunk.css} +1 -1
  5. package/dist/css/{888-streamable-learning-c0a46eda1a.chunk.css → 377-streamable-learning-2f0a2f8eb0.chunk.css} +3 -3
  6. package/dist/css/{154-streamable-learning-75a527f710.chunk.css → 506-streamable-learning-d5d57d157f.chunk.css} +1 -1
  7. package/dist/css/{650-streamable-learning-1b19dfc8dd.chunk.css → 650-streamable-learning-fa6c1f1003.chunk.css} +1 -1
  8. package/dist/css/{297-streamable-learning-62f3804bc8.chunk.css → 910-streamable-learning-38dab89c6c.chunk.css} +0 -3
  9. package/dist/css/{streamable-learning-83ee08297c.css → streamable-learning-d37e4c8d60.css} +1 -1
  10. package/dist/languages/en.json +1 -1
  11. package/dist/scripts/127-60adbb3a47-streamable-learning.chunk.js +2 -0
  12. package/dist/scripts/{146-19048cc544-streamable-learning.chunk.js → 146-597d7e3082-streamable-learning.chunk.js} +1 -1
  13. package/dist/scripts/163-b982517cc2-streamable-learning.chunk.js +2 -0
  14. package/dist/scripts/{173-740d2207ab-streamable-learning.chunk.js → 173-a501018e4d-streamable-learning.chunk.js} +1 -1
  15. package/dist/scripts/{254-f528666dee-streamable-learning.chunk.js → 254-7849dedd0f-streamable-learning.chunk.js} +1 -1
  16. package/dist/scripts/308-9446caaec4-streamable-learning.chunk.js +1 -0
  17. package/dist/scripts/311-3aa2c5904d-streamable-learning.chunk.js +1 -0
  18. package/dist/scripts/376-1e5979c2a1-streamable-learning.chunk.js +2 -0
  19. package/dist/scripts/377-52d1a0c1cd-streamable-learning.chunk.js +2 -0
  20. package/dist/scripts/377-52d1a0c1cd-streamable-learning.chunk.js.LICENSE.txt +1 -0
  21. package/dist/scripts/482-b6d04c79bd-streamable-learning.chunk.js +1 -0
  22. package/dist/scripts/483-5e6ecd6180-streamable-learning.chunk.js +1 -0
  23. package/dist/scripts/487-3a9cad0ec2-streamable-learning.chunk.js +1 -0
  24. package/dist/scripts/506-d2c98b1917-streamable-learning.chunk.js +1 -0
  25. package/dist/scripts/{513-f30722c6d3-streamable-learning.chunk.js → 513-0decd08fd9-streamable-learning.chunk.js} +1 -1
  26. package/dist/scripts/596-9712ebc581-streamable-learning.chunk.js +1 -0
  27. package/dist/scripts/65-d7f708e85f-streamable-learning.chunk.js +2 -0
  28. package/dist/scripts/650-bb8e2b11d8-streamable-learning.chunk.js +1 -0
  29. package/dist/scripts/682-e745a49345-streamable-learning.chunk.js +1 -0
  30. package/dist/scripts/707-e610ec6f00-streamable-learning.chunk.js +1 -0
  31. package/dist/scripts/{872-e21bb81933-streamable-learning.chunk.js → 872-7642dabb85-streamable-learning.chunk.js} +1 -1
  32. package/dist/scripts/910-3b6bc5bb83-streamable-learning.chunk.js +1 -0
  33. package/dist/scripts/933-743cfeb04b-streamable-learning.chunk.js +1 -0
  34. package/dist/scripts/{934-83c6e5f3a1-streamable-learning.chunk.js → 934-944fb24dbc-streamable-learning.chunk.js} +1 -1
  35. package/dist/scripts/937-72d3082716-streamable-learning.chunk.js +1 -0
  36. package/dist/scripts/{176-46cdc42b54-streamable-learning.chunk.js → 993-640ab6fbe1-streamable-learning.chunk.js} +1 -1
  37. package/dist/scripts/bundle-58bcbc235b.min.js +2 -0
  38. package/dist/scripts/{pdf.worker.entry-0b35cddafa.min.worker.js → pdf.worker.entry-5059106716.min.worker.js} +1 -1
  39. package/package.json +1 -1
  40. package/dist/css/21-streamable-learning-a9c96622d9.chunk.css +0 -2
  41. package/dist/scripts/154-5a195cb74f-streamable-learning.chunk.js +0 -1
  42. package/dist/scripts/21-a5cffdcc0f-streamable-learning.chunk.js +0 -1
  43. package/dist/scripts/262-d0129c71af-streamable-learning.chunk.js +0 -2
  44. package/dist/scripts/297-35c42f36d2-streamable-learning.chunk.js +0 -1
  45. package/dist/scripts/542-3197a59d9e-streamable-learning.chunk.js +0 -1
  46. package/dist/scripts/561-dcf206b282-streamable-learning.chunk.js +0 -1
  47. package/dist/scripts/587-233c1a5b6a-streamable-learning.chunk.js +0 -1
  48. package/dist/scripts/596-8ca72f24b2-streamable-learning.chunk.js +0 -1
  49. package/dist/scripts/639-ec1b4101eb-streamable-learning.chunk.js +0 -1
  50. package/dist/scripts/65-afa26c23fb-streamable-learning.chunk.js +0 -2
  51. package/dist/scripts/650-07d551c90e-streamable-learning.chunk.js +0 -1
  52. package/dist/scripts/677-82fcf92ce8-streamable-learning.chunk.js +0 -1
  53. package/dist/scripts/680-e666641b3b-streamable-learning.chunk.js +0 -1
  54. package/dist/scripts/838-59433153e5-streamable-learning.chunk.js +0 -1
  55. package/dist/scripts/853-f1bdff4b42-streamable-learning.chunk.js +0 -1
  56. package/dist/scripts/888-a9ec631497-streamable-learning.chunk.js +0 -2
  57. package/dist/scripts/912-dc417b8ba7-streamable-learning.chunk.js +0 -1
  58. package/dist/scripts/933-09bf5050c2-streamable-learning.chunk.js +0 -1
  59. package/dist/scripts/974-ab1d535355-streamable-learning.chunk.js +0 -1
  60. package/dist/scripts/985-e1fd10c61f-streamable-learning.chunk.js +0 -2
  61. package/dist/scripts/bundle-5f6c5c509a.min.js +0 -2
  62. /package/dist/css/{838-streamable-learning-b5d226bbb6.chunk.css → 483-streamable-learning-b5d226bbb6.chunk.css} +0 -0
  63. /package/dist/css/{561-streamable-learning-87571ab68f.chunk.css → 487-streamable-learning-87571ab68f.chunk.css} +0 -0
  64. /package/dist/scripts/{888-a9ec631497-streamable-learning.chunk.js.LICENSE.txt → 127-60adbb3a47-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  65. /package/dist/scripts/{985-e1fd10c61f-streamable-learning.chunk.js.LICENSE.txt → 163-b982517cc2-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  66. /package/dist/scripts/{284-bc28ced024-streamable-learning.chunk.js → 284-6c7dcea81d-streamable-learning.chunk.js} +0 -0
  67. /package/dist/scripts/{262-d0129c71af-streamable-learning.chunk.js.LICENSE.txt → 376-1e5979c2a1-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  68. /package/dist/scripts/{446-cea6b4d373-streamable-learning.chunk.js → 446-1a2f2109f9-streamable-learning.chunk.js} +0 -0
  69. /package/dist/scripts/{498-8608aa0951-streamable-learning.chunk.js → 498-0309bc3a47-streamable-learning.chunk.js} +0 -0
  70. /package/dist/scripts/{50-b87d4b42b6-streamable-learning.chunk.js → 50-3a07bf6e83-streamable-learning.chunk.js} +0 -0
  71. /package/dist/scripts/{518-4c184dafa4-streamable-learning.chunk.js → 518-96cb1fb356-streamable-learning.chunk.js} +0 -0
  72. /package/dist/scripts/{65-afa26c23fb-streamable-learning.chunk.js.LICENSE.txt → 65-d7f708e85f-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  73. /package/dist/scripts/{662-ff56331fc6-streamable-learning.chunk.js → 662-1d6f5bf387-streamable-learning.chunk.js} +0 -0
  74. /package/dist/scripts/{87-86296e48af-streamable-learning.chunk.js → 87-ddd86d3a91-streamable-learning.chunk.js} +0 -0
  75. /package/dist/scripts/{877-082a559e39-streamable-learning.chunk.js → 877-45cd37056a-streamable-learning.chunk.js} +0 -0
  76. /package/dist/scripts/{895-e3e70ec6d4-streamable-learning.chunk.js → 895-d4c2379a1d-streamable-learning.chunk.js} +0 -0
  77. /package/dist/scripts/{925-17933662aa-streamable-learning.chunk.js → 925-1a8f304da0-streamable-learning.chunk.js} +0 -0
  78. /package/dist/scripts/{934-83c6e5f3a1-streamable-learning.chunk.js.LICENSE.txt → 934-944fb24dbc-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  79. /package/dist/scripts/{958-4cea4aa543-streamable-learning.chunk.js → 958-53d80abeb0-streamable-learning.chunk.js} +0 -0
  80. /package/dist/scripts/{bundle-5f6c5c509a.min.js.LICENSE.txt → bundle-58bcbc235b.min.js.LICENSE.txt} +0 -0
  81. /package/dist/scripts/{pdf.worker.entry-0b35cddafa.min.worker.js.LICENSE.txt → pdf.worker.entry-5059106716.min.worker.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[297],{70275:(e,t,a)=>{a.d(t,{a:()=>h});var n=a(32735),r=a(23481),i=a(75902),o=a(35223);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t,a){var n;return n=function(e,t){if("object"!=l(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==l(n)?n:String(n))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var s=c(c(c({},i.GL.Archived,{svgName:o.vn.Archive,svgColorClassName:"text-muted",actionName:"Archive",statusName:"Archived"}),i.GL.Draft,{svgName:o.vn.Edit,svgColorClassName:"",actionName:"Draft",statusName:"Draft"}),i.GL.Published,{svgName:o.vn.VisibleOn,svgColorClassName:"text-success",actionName:"Publish",statusName:"Published"}),d=a(83914),u=a(73275);const m={badge:"ciO47",draftLight:"A6Yi7",draftDark:"fkXBX",published:"Ovzwy",archived:"r_dco"};function p(e){var t="rounded-pill d-flex align-items-center ps-2 py-1 fw-semibold ms-2 ".concat(m.badge);switch(e.status){case u.GL.Published:t+=" ".concat(m.published);break;case u.GL.Archived:t+=" ".concat(m.archived);break;case u.GL.Draft:t+=" ".concat(e.darkMode?m.draftDark:m.draftLight)}return e.wrapperClassName&&(t+=" ".concat(e.wrapperClassName)),t}function f(e){var t=s[e.status],a=t.statusName,r=t.svgName;return n.createElement("div",{className:p(e)},n.createElement(d.x,{svgName:r}),n.createElement("div",null,a))}var v=a(10731);const b={stickyWrapper:"zhw6K",badgeWrapper:"NOvn1",badge:"pxQSR"};var g=r.T.encloseNamespace("shared.classificationPreviewBanner");function h(e){return n.createElement("div",{className:"".concat(b.stickyWrapper," py-2 d-flex justify-content-space-between bg-dark text-white mx-2 rounded")},n.createElement("div",{className:"position-absolute d-flex ".concat(b.badgeWrapper)},n.createElement(f,{status:e.status,wrapperClassName:"".concat(b.badge),darkMode:!0})),n.createElement("div",{className:"flex-grow-1"},n.createElement("h1",{className:"text-center my-3 h5"},n.createElement(v.V,{emoji:"👀"}),g("topic"===e.type?"topicTitle":"companyTitle"))))}},75553:(e,t,a)=>{a.d(t,{p:()=>I,v:()=>N});var n=a(32735),r=a(110),i=a(12788),o={renderInPortalIfExists:function(e,t){return t?(0,i.createPortal)(e,t):e}},l=a(79878),c=a(39880),s=a(64887),d=a(23481),u=a(57408),m=a(83914),p=a(35223),f="shared.backButton";function v(e){var t=Object.assign({textShadow:!0},e),a=t.backToName,r=t.appLink,i=t.color,o=t.extraClasses,l=t.textShadow,c=a?d.T.getPhrase(f,"backTo",{backToName:a}):d.T.getPhrase(f,"back"),s="black"===i?"":"text-white",v=l?"text-shadow":"";return n.createElement(u.F,{appLink:r,className:"d-inline-flex align-items-center h5 mb-0 ".concat(o," ").concat(s," ").concat(v)},n.createElement(m.x,{svgName:p.vn.ChevronLeft,size:m.S.Medium}),n.createElement("span",{className:"ms-1"},c))}v.defaultProps={color:"black",extraClasses:""};var b=a(83345),g=a(10587),h=a(94232),y=a(54610),E=a(79967),w=a(67453);const k={bannerContent:"sSCTB",actionsContainer:"Z5WI2",container:"M51HJ",logoContainer:"vkeJk",specialEventContainer:"rOxDc",headingLarge:"_8pnV",heading:"JXVBH"};var C="".concat(g.y[y.__.Banners].width,":").concat(g.y[y.__.Banners].height);function S(e){return e.length<160?"h1":k.headingLarge}var I=n.memo((function(e){var t,a=e.heading,i=e.banner,d=e.imageCdnUrl,u=e.actions,m=e.sortComponent,p=e.blockColourClass,f=e.specialEvent,g=n.useContext(h.n),I=(0,E.k)().xxl?1920:1200,N=n.useMemo((function(){if(!f||e.showComingSoon)return!1;var t=r.O.format(new Date,"YYYY-MM-DD");return f.endDate?f.startDate<=t&&f.endDate>=t:f.startDate===t}),[f]),x=e.imageOptions||{width:I,ratio:C,resizeType:y.Nq.Cover},L=!!i&&!!d&&w.j.createBannerUrl(i,{fallbackBaseUrl:d,fallbackCategoryName:a,type:y.__.Banners},x),T={className:"banner banner-header ".concat(e.bannerClassName),style:L?{backgroundImage:"url('".concat(L,"')")}:{}};!i&&p&&(delete T.style,T.className+=" ".concat(p));var A=e.detailsComponent;return o.renderInPortalIfExists(n.createElement("header",Object.assign({},T),n.createElement("div",{className:"container ".concat(k.container," position-relative inner-banner")},e.backButtonAppLink&&n.createElement("div",{className:"pt-3"},n.createElement(v,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),n.createElement("div",{className:"".concat(k.bannerContent)},!!f&&n.createElement("div",{className:"position-relative ".concat(k.specialEventContainer)},n.createElement(c.s,{body:{type:f.endDate?"range":"day",text:f.endDate?"".concat(r.O.format(f.startDate,"DD"),"-").concat(r.O.format(f.endDate,"DD")):r.O.format(f.startDate,"DD")},month:r.O.format(f.startDate,"MMMM")})),n.createElement("div",null,N&&n.createElement("div",{className:"rounded-pill py-1 px-2 my-1 me-1 fw-semibold bg-light-blue lh-1 d-inline-block"},n.createElement(b.x,{namespace:"shared.bannerHeader",phrase:"onToday"})),e.showComingSoon&&n.createElement(l.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start text-nowrap"}),n.createElement("h1",{className:"text-white text-shadow ".concat(k.heading," ").concat(S(a))},a,A&&n.createElement(A,null))),!!u&&n.createElement("div",{className:k.actionsContainer},n.createElement(s.e,{actions:u,sortComponent:m,actionsDropdownClassName:e.actionsDropdownClassName}))),!!(null===(t=e.logo)||void 0===t?void 0:t.url)&&n.createElement("div",{className:k.logoContainer},n.createElement("img",{src:w.j.createUrl(e.logo.url,{size:y.h2.Small}),className:"rounded-circle"})))),null==g?void 0:g.container)}),(function(e,t){var a,n;return e.actions===t.actions&&e.heading===t.heading&&(null===(a=e.logo)||void 0===a?void 0:a.url)===(null===(n=t.logo)||void 0===n?void 0:n.url)}));function N(){var e=n.useContext(h.n);return o.renderInPortalIfExists(n.createElement("div",{className:"partial-banner partial-loading-background ".concat(k.banner)}),null==e?void 0:e.container)}},49935:(e,t,a)=>{a.d(t,{Oo:()=>u,b2:()=>m});var n=a(32735),r=a(57408),i=a(86764),o=a(3747),l=a(5859),c=a(35223),s=a(83914),d=function(e){var t=e.breadcrumb,a=t.name,i=t.appLink,o=t.active,l=e.withBackIcon;return n.createElement("li",{className:"breadcrumb-item".concat(o?" active":"")},o?n.createElement("strong",null,a):n.createElement(r.F,{appLink:i},l&&n.createElement(s.x,{svgName:c.vn.ChevronLeft,size:s.S.Small}),n.createElement("span",{className:l?"ms-2":""},a)))},u=function(e){var t=e.breadcrumbs,a=(0,o.a)(i.r.XS),r=null==t?void 0:t.length;return!r||a&&r<2?n.createElement(n.Fragment,null):a?n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(d,{breadcrumb:t[r-2],withBackIcon:!0}))):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return n.createElement(d,{key:t,breadcrumb:e})}))))},m=n.memo((function(e){var t=e.numItems,a=void 0===t?3:t;return(0,o.a)(i.r.XS)?n.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},l.u.getPartialLoadingItems({numItems:a}).map((function(e,t){var a=e.width;return n.createElement("li",{key:t,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:a},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},10587:(e,t,a)=>{a.d(t,{y:()=>o});var n=a(54610);function r(e){return r="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},r(e)}function i(e,t,a){var n;return n=function(e,t){if("object"!=r(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==r(n)?n:String(n))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var o=i(i(i(i(i(i(i(i(i({},n.__.Thumbnails,{width:1280,height:720}),n.__.Banners,{width:1200,height:222}),n.__.Covers,{width:512,height:512}),n.__.Posters,{width:1e3,height:1500}),n.__.TallPosters,{width:1080,height:1920}),n.__.HeroBanners,{width:1920,height:640}),n.__.None,{width:1,height:1}),n.__.Avatars,{width:256,height:256}),n.__.Logos,{width:128,height:128})},82910:(e,t,a)=>{a.r(t),a.d(t,{StreamableClassificationView:()=>xe});var n=a(32735),r=a(20354),i=a(81886),o=a(23481),l=a(15800),c=a(83345),s=a(64444),d=a(73275),u=a(35223),m="subjects.curatedClassificationEmptyState",p=o.T.encloseNamespace(m);function f(e){var t,a,r=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===d.GL.Archived;return n.createElement(c.D.Provider,{value:m},n.createElement(l.u,null,n.createElement(l.u.Image,{src:e.imageUrl,altText:p("headingForNP")}),e.isReadonly?n.createElement(n.Fragment,null,n.createElement(l.u.Heading,null,n.createElement(c.x,{namespace:m,phrase:"headingForCurator"})),n.createElement(l.u.Info,null,n.createElement(c.x,{namespace:m,phrase:"info"})),n.createElement(s.u,{title:r?o.T.getPhrase(m,"archivedCtaTooltip"):"",spanHack:!0},n.createElement(l.u.Cta,{text:o.T.getPhrase(m,"add"),appLink:null===(a=e.addWidgetApplink)||void 0===a?void 0:a.call(e),className:"btn btn-dark",icon:u.vn.Plus,disabled:r}))):n.createElement(l.u.Heading,null,n.createElement(c.x,{phrase:"headingForNP"}))))}var v=a(92869),b=a(65858),g=a(57408);const h={container:"k1iOO",itemsWrapper:"IC4wJ",anchorWrapper:"ciEf6",default:"CJonr",selectedItem:"A9mBx",disabled:"sp1Xl"};function y(e){return n.createElement("div",{className:"".concat(h.container," ps-3")},n.createElement("h2",{className:"h5"},e.title),n.createElement("div",{className:"".concat(h.itemsWrapper)},e.widgets.map((function(t,a){return n.createElement(g.F,{key:t.id,appLink:(r=t,o=i.Q.C$.getCurrentAppLink(),l=o.params?Object.assign({},o.params):{},l.tocId=r.id,Object.assign(Object.assign({},o),{params:l})),appLinkOptions:{replace:!0},className:"".concat(h.anchorWrapper," ").concat(e.clickable?"":h.disabled," ").concat(e.activeId===t.id?h.selectedItem:""),onClick:function(){v.t.preventScrollTop(),e.setControlledId(t.id)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,name:t.name}),analyticsOptions:{actionType:b.Vw.Click,entity:b.py.Widget,location:b.LZ.TableOfContents}},n.createElement("div",{className:"".concat(e.activeId||0!==a?"":h.default," ")},t.name));var r,o,l}))))}var E="subjects.teacherOnlyEmptyState",w=o.T.encloseNamespace(E);function k(e){var t;return n.createElement(c.D.Provider,{value:E},n.createElement(l.u,null,n.createElement(l.u.Image,{src:e.imageUrl,altText:w("heading")}),n.createElement(l.u.Heading,null,n.createElement(c.x,{phrase:"heading"})),n.createElement(l.u.Info,null,n.createElement(c.x,{phrase:"info"})),n.createElement(l.u.Cta,{text:w("cta"),appLink:null===(t=e.ctaAppLink)||void 0===t?void 0:t.call(e),className:"btn btn-dark"})))}var C,S=a(75896),I=a(42308),N=a(80889),x=a(21366),L=a(75553),T=a(49935),A=a(56482),O=a(66869),P=a(36050),j=a(86764),D=a(16714),F=a(78479),_=a(67058),B=a(3747),U=a(22902),W=function(e){var t=e.setActiveId,a=e.headingElements,r=e.controlledId,i=e.setControlledId,o=n.useRef(0);n.useEffect((function(){var e=new IntersectionObserver((function(e){e.forEach((function(e){if(r)return t(r),void(C=window.setTimeout((function(){i("")}),800));if(e.isIntersecting)t(e.target.id),o.current=window.scrollY;else{var n=o.current-window.scrollY>0,l=a.findIndex((function(t){return t.id===e.target.id})),c=a[l-1];n&&(null==c?void 0:c.id)&&t(null==c?void 0:c.id)}}))}),{rootMargin:"-67px 0px -80% 0px"});return a.forEach((function(t){return e.observe(t)})),function(){C&&window.clearTimeout(C),e.disconnect()}}),[t,a.length,r])};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var G=function(e,t){var a,r,i,o,l=(i=n.useState(!1),o=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(i,o)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?R(e,t):void 0}}(i,o)||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.")}()),c=l[0],s=l[1],d=(a=t,r=n.useRef(),n.useEffect((function(){r.current=a})),r.current),u=t;n.useLayoutEffect((function(){if(!c||d!==u){var t=e.find((function(e){return e.id===u}));if(t){var a=t.getBoundingClientRect();window.scrollBy({top:a.top-80,behavior:"smooth"}),c||s(!0)}}}),[e,d,u,c])},M=a(57900),H=a(2948),V=a(1048),z=a(91967);const q={disabled:"pERi4",disabledHighlighted:"AxyWm"};function Y(e){var t=e.audience,a=e.highlight,r=e.setAudience,i=e.isDisabled,o=e.extraClasses,l=function(e,t){return e?t?"".concat(q.disabledHighlighted," text-light"):"bg-info text-light":t?"".concat(q.disabled," text-muted"):"bg-light"}(a,i),c="rounded-pill d-inline-block me-1 user-select-none ".concat(i?"cursor-default":"cursor-pointer"," ").concat(l," ").concat(o);return n.createElement("span",{className:c,onClick:function(){!i&&z.q.isFunction(r)&&r(t,!a)},role:"checkbox","aria-checked":a},t.name.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.substring(1)})).join(" "))}Y.defaultProps={extraClasses:""};var J=a(11607),X=a(38143),$=a(5859);function Q(e,t){if(e){if("string"==typeof e)return Z(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Z(e,t):void 0}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var K="subjects.audienceFilter";function ee(e){var t,a,r=e.audiences,o=e.activeAudiences,l=e.disabled,s=e.appLink,d=(t=(0,H.D)(X.g.AUDIENCE_FILTER,void 0,{storage:M.Z1.SessionStorage}),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,a)||Q(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];function u(e,t){var a,n,r=t?[].concat(function(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Q(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.")}()}(null!==(a=null==o?void 0:o.map((function(e){return e.name})))&&void 0!==a?a:[]),[e.name]):o.map((function(e){return e.name})).filter((function(t){return t!==e.name}));i.Q.C$.trigger(Object.assign(Object.assign({},s),{params:(n=V.t.omit(s.params,["a"]),r.length?Object.assign({},n,{a:r}):n)}),{replace:!0})}return n.useEffect((function(){e.disablePersist||d(o)}),[o]),r&&r.length?n.createElement("div",{className:"d-flex flex-wrap row-gap-2"},r.map((function(e){return n.createElement(Y,{key:e.masterId,audience:e,highlight:!!(null==o?void 0:o.find((function(t){return t.masterId===e.masterId}))),setAudience:u,isDisabled:l})})),!!o&&!!Object.keys(o).length&&n.createElement(J.L,{className:"info-link d-inline-block fw-semibold ms-1",onClick:function(){var e=V.t.omit(s.params,["a"]);i.Q.C$.trigger(Object.assign(Object.assign({},s),{params:e}),{replace:!0})}},n.createElement(c.x,{namespace:K,phrase:"clear"}))):n.createElement(n.Fragment,null)}var te=$.u.getPartialLoadingItems({numItems:6}),ae=function(){return n.createElement("div",{className:"d-flex flex-wrap row-gap-2"},te.map((function(e,t){var a=e.width;return n.createElement("span",{key:t,className:"rounded-pill partial-loading-background me-1",dangerouslySetInnerHTML:{__html:"&nbsp"},style:{width:a}})})))},ne=a(69454);function re(e){var t;return e.isComingSoon||e.isEmpty&&!(null===(t=e.activeAudiences)||void 0===t?void 0:t.length)?n.createElement(n.Fragment,null):ne.T.shouldShowAudiences(e.audiences)?n.createElement(ee,{audiences:e.audiences,activeAudiences:e.activeAudiences,disabled:e.isReadonly,appLink:e.appLink,disablePersist:e.disablePersist}):n.createElement(n.Fragment,null)}function ie(e){return ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie(e)}function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return le(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?le(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 le(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var ce="shared.classificationDashboard";function se(e){return e.widgetId===I.z.Blurb&&e.templateId===F.f.Heading}function de(e){var t,a,l,c,s=function(e,t){var a,i,o,l,c=n.useMemo((function(){return e?{isSystemGeneratedDashboard:x.S.isSystemGeneratedDashboard(e.widgets),systemGeneratedVideoWidget:e.widgets.find((function(e){return e.widgetId===I.z.ClassificationPinnedVideos}))}:{isSystemGeneratedDashboard:!1,systemGeneratedVideoWidget:null}}),[null==e?void 0:e.id]),s=c.isSystemGeneratedDashboard,d=c.systemGeneratedVideoWidget,u=r.a.useBasicFetch(!!d&&N._.dashboardWidgetContent(null==d?void 0:d.id,x.S.getWidgetParams(d.widgetId,d.templateId,x.S.getDashboardTargetType(e),null==t?void 0:t.map((function(e){return e.masterId})))));return s?{widgets:null!==(i=null===(a=null==e?void 0:e.widgets)||void 0===a?void 0:a.filter((function(e){return e.widgetId!==I.z.ClassificationPinnedVideos})))&&void 0!==i?i:[],videoList:null!==(l=null===(o=u.data)||void 0===o?void 0:o.content)&&void 0!==l?l:[],videoListWidgetId:null==d?void 0:d.id}:{widgets:S.m.sortBy(null==e?void 0:e.widgets,"index")}}(e.dashboard,e.activeAudiences),u=s.widgets,m=s.videoList,p=s.videoListWidgetId,v=(0,(0,U.T)().hasPermissions)(D.C.StudentExperience),b=(0,B.a)(j.r.LGDown),g=n.useRef(new Set),h=n.useMemo((function(){return u.reduce((function(e,t){return e[t.id]=!1,e}),{})}),[null==u?void 0:u.length]),E=oe(n.useState(h),2),w=E[0],C=E[1],F=oe(n.useState(window.location.hash.slice(1)||""),2),R=F[0],M=F[1],H=oe(n.useState(""),2),V=H[0],z=H[1],q=Array.from(g.current);function Y(t,a,n){var r,i=x.S.getWidgetParams(a,n,x.S.getDashboardTargetType(e.dashboard),null===(r=e.activeAudiences)||void 0===r?void 0:r.map((function(e){return e.masterId})));return e.getWidgetContentRequest(t,i)}G(q,e.tableOfContentsId),W({setActiveId:z,headingElements:q,controlledId:R,setControlledId:M});var J=!e.isComingSoon&&!e.isTeacherOnly&&(!e.dashboard||e.dashboard.status===d.GL.Archived&&!e.isReadonly||e.dashboard.status===d.GL.Draft&&!e.isPreviewing||!e.isComingSoon&&(!(null==u?void 0:u.length)||(!m||!m.length)&&Object.values(w).every((function(e){return!!e})))),X=null===(t=e.getBreadcrumbs)||void 0===t?void 0:t.call(e);n.useEffect((function(){J&&C(h)}),[null==u?void 0:u.length]);var $=n.useCallback((function(e,t){if(w[e]!==t){for(var a,n=(Object.assign(Object.assign({},w),(s={},m=t,p=void 0,p=function(e,t){if("object"!=ie(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,"string");if("object"!=ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(d=e),(d="symbol"==ie(p)?p:String(p))in s?Object.defineProperty(s,d,{value:m,enumerable:!0,configurable:!0,writable:!0}):s[d]=m,s))),r=0;r<u.length;){var i=u[r];if(se(i)){for(var o=!0,l=r+1;o&&l<u.length;){var c=u[l];if(se(c))break;n[c.id]||(a=c).widgetId===I.z.CuratedClassifications||a.widgetId===I.z.Classifications||(o=!1),l++}r=l,n[i.id]=o}else r++}C(n)}var s,d,m,p}),[w,u]);function Q(e){return se(e)&&w[e.id]}var Z=u.filter((function(e){var t;return!Q(e)&&!!(null===(t=e.metadata)||void 0===t?void 0:t.showInTableOfContents)})),K=Z.length>=2&&!b;return e.isComingSoon&&i.Q.Ry.throw(new _.d),n.createElement("div",{className:"bg-white px-4 ".concat(e.moviesAndTv?"":"topic-dashboard")},n.createElement(L.p,{heading:e.classification.name,banner:e.classification.banner,imageCdnUrl:e.imageCdnUrl,actions:null===(a=e.getBannerActions)||void 0===a?void 0:a.call(e),actionsDropdownClassName:"btn btn-outline-dark",specialEvent:e.specialEvent,showComingSoon:e.isComingSoon}),n.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 ".concat(e.isComingSoon?"":"border-bottom")},n.createElement(T.Oo,{breadcrumbs:X}),n.createElement(re,{classification:e.classification,audiences:e.audiences,activeAudiences:e.activeAudiences,appLink:null===(c=(l=e.appLinks).audience)||void 0===c?void 0:c.call(l),isEmpty:J,isReadonly:e.isReadonly,isComingSoon:e.isComingSoon,disablePersist:!e.isViewCurrentPresentation})),n.createElement("div",{className:"".concat(K?"row no-wrap":"")},n.createElement("div",{className:K?"col-9":""},u.map((function(t,a){return Q(t)?n.createElement(n.Fragment,{key:t.id}):n.createElement(P.L,{headingElementRef:g,key:t.id,id:t.id,name:t.name,description:t.description,templateId:t.templateId,widgetTypeId:t.widgetId,audiences:e.audiences,getContentRequest:Y,setIsEmpty:$,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.appLinks,yearGroups:e.yearGroups,curriculum:e.curriculum,presentation:e.presentation,getCurriculumLinksRequest:e.getCurriculumLinksRequest,analyticsData:e.analyticsData,isScrollToTargetWidget:e.scrollToWidgetId===t.id,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,onSubmitFeedback:e.onSubmitFeedback,metadata:t.metadata,hasTableOfContents:K,lazyLoad:e.lazyLoad,dashboardTarget:d.ku.Classification,widgetIndex:a,showVideoGuidance:!v,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,isPreviewing:e.isReadonly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType})})),!!(null==m?void 0:m.length)&&n.createElement(n.Fragment,null,n.createElement(O.B,{name:o.T.getPhrase(ce,"videos"),description:""}),n.createElement(A.E4,{videos:m,yearGroups:e.yearGroups,getVideoAppLink:function(t){return e.appLinks.videoType(t,p)},getSubTextAppLink:e.appLinks.subText,setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType}))),K&&n.createElement("aside",{className:"col-3"},n.createElement(y,{widgets:Z,title:e.classification.name,activeId:V,clickable:!e.isReadonly,analyticsData:e.analyticsData,setControlledId:M}))),J&&n.createElement(f,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.appLinks.widgetWizard}),e.isTeacherOnly&&n.createElement(k,{imageUrl:e.emptyImageUrl,ctaAppLink:function(){return e.appLinks.allTopics(e.classification.presentationId)}}))}de.defaultProps={appLinks:{}};var ue=a(70275),me=a(51365),pe=a(25925),fe=a(89454),ve=a(21750),be=a(39151),ge=a(31949),he=a(99742),ye=a(31700),Ee=a(73688),we=a(49433);function ke(){return n.createElement("div",{className:"bg-white px-4"},n.createElement(L.v,null),n.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},n.createElement(T.b2,null),n.createElement(ae,null)))}var Ce=a(96359),Se=a(41135),Ie=a(65751),Ne=o.T.encloseNamespace("subjects.classificationView");function xe(e){var t,a,i,o,l,c,s,u,m,p,f,v,b=(0,we.V)("video-list"),g=r.a.useBasicFetch(be.L.config()),h=r.a.useBasicFetch(ge.N.currentUser()),y=r.a.useBasicFetch(ye.g.streamablePresentation()),E=r.a.useBasicFetch(ve.x.classification(e.id,null===(t=h.data)||void 0===t?void 0:t.id)),w=(0,Ee.B)({targetType:d.ku.Classification,dashboardId:null===(a=e.queryParams)||void 0===a?void 0:a.dashboardId,classificationId:e.id}),k=w.dashboard,C=w.isPreviewing,S=r.a.useBasicFetch(y.data&&ve.x.presentation(pe.R.Curriculum,y.data.id)),I=r.a.useBasicFetch(y.data&&fe.O.presentationAudiences(y.data.id)),x=r.a.useBasicFetch(ve.x.path(e.id)),L=ne.T.getActiveAudiencesFromParams(I.data,e.queryParams),T=null!==(i=null==L?void 0:L.map((function(e){return e.masterId})))&&void 0!==i?i:[],A={presentationId:null===(o=y.data)||void 0===o?void 0:o.id,presentationName:null===(l=y.data)||void 0===l?void 0:l.name,currentClassificationId:null===(c=E.data)||void 0===c?void 0:c.id,currentClassificationName:null===(s=E.data)||void 0===s?void 0:s.name,followingCurrentClassification:!!(null===(p=null===(m=null===(u=E.data)||void 0===u?void 0:u.followers)||void 0===m?void 0:m.data)||void 0===p?void 0:p.length),activeAudienceNames:(null==L?void 0:L.length)?L.map((function(e){return e.name})):null,activeAudienceIds:T.length?T:null},O=(f=E.data,v=e.queryParams,Object.assign(Object.assign({},Ie.y),{classification:function(e){return Ie.y.classification(e||f,v)},classificationTopics:function(){return Ie.y.classificationTopics(v)},audience:function(){return Ie.y.classification(f,v)}}));return g.data&&k.hasCompleted&&E.data&&y.data&&x.data&&I.data?n.createElement(me.M.Provider,{value:b},n.createElement("div",{className:"position-relative"},!(!C||!k.data)&&n.createElement(ue.a,{status:k.data.status,type:"topic"}),n.createElement(de,{dashboard:k.data,classification:E.data,getWidgetContentRequest:N._.dashboardWidgetContent,getBreadcrumbs:function(){return function(e){var t=e.classification,a=e.path,n=e.appLinks,r=[{name:Ne("discover"),appLink:{application:Se.O.DASHBOARD,action:Ce.e.Dashboard.HOME}},{name:Ne("exploreAllTopicsHeading"),appLink:{application:Se.O.SUBJECTS,action:Ce.e.Subjects.CLASSIFICATION_ALL}}];return a.forEach((function(e){r.push({name:e.name,appLink:n.classification(e),active:e.name===t.name})})),r}({appLinks:O,classification:E.data,path:x.data})},hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},curriculum:S.data,presentation:y.data,getCurriculumLinksRequest:function(e){var t;return ve.x.curriculumLinks(e,null===(t=S.data)||void 0===t?void 0:t.id)},getBannerActions:function(){return[]},audiences:I.data,activeAudiences:L,analyticsData:A,imageCdnUrl:g.data.imageCdnUrl,resourceThumbnailFallbackImageUrl:he.W.Fallbacks.RESOURCE_THUMBNAIL,emptyImageUrl:he.W.EmptyStates.Topics.TOPIC,appLinks:O,isPreviewing:C,isViewCurrentPresentation:!0,canFollowSubjects:!1,tableOfContentsId:e.queryParams.tocId,lazyLoad:!0,isTeacherOnly:!1,companyLogoFallbackUrl:he.W.StreamableLearning.LOGO,subTextType:"productionCompany"}))):n.createElement(ke,null)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[542],{64887:(e,t,a)=>{a.d(t,{e:()=>b});var n=a(32735),r=a(91967),i=a(63855),o=a(64444),l=a(42735),c=a(81886),s=a(45157),u=a(92582),d=a(57408),m=a(83914),v=a(35223);const p={dropdownToggle:"UCAnJ"};function g(e){var t="dropdown-item";return e&&(t+=" ".concat(e)),t}function f(e){var t=r.q.isFunction(e.action.label)?e.action.label:function(){return n.createElement(n.Fragment,null,e.action.label)};if(e.action.appLink)return n.createElement(d.F,{appLink:e.action.appLink,onClick:e.action.onClick,className:g(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions,openInNewTab:e.action.openInNewTab,disabled:e.action.disabled},t());function a(t){t.preventDefault(),e.action.analyticsData&&e.action.analyticsOptions&&u.k.logUserAction(e.action.analyticsData,e.action.analyticsOptions),r.q.isFunction(e.action.onClick)&&e.action.onClick(),e.action.href&&c.Q.Ab.PageLoad(e.action.href,e.action.openInNewTab)}return e.action.href?n.createElement("a",{className:g(e.action.className),onClick:a,href:e.action.href},t()):n.createElement("span",{className:"cursor-pointer ".concat(g(e.action.className)),onClick:a,role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&a(e)}},t())}function y(e){if(!e.actions||!e.actions.length)return n.createElement(n.Fragment,null);var t="dropdown";e.className&&(t+=" ".concat(e.className));var a="actions-dropdown-".concat(s.Y.getRandomInt()),r="dropdown-toggle px-0 ".concat(p.dropdownToggle);return e.dropdownToggleClassName&&(r+=" ".concat(e.dropdownToggleClassName)),n.createElement("div",{className:t},n.createElement("button",{className:r,type:"button",id:a,"data-bs-toggle":"dropdown","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},n.createElement(m.x,{svgName:v.vn.More,size:e.dropdownToggleSvgSize})),n.createElement("div",{className:"dropdown-menu dropdown-menu-end dropdown-menu-right","aria-labelledby":a},e.actions.map((function(e,t){return e.tooltip?n.createElement(o.u,{key:t,title:e.tooltip,spanHack:!0},n.createElement(f,{action:e})):n.createElement(f,{key:t,action:e})}))))}function b(e){var t=n.useMemo((function(){return e.actions.sort((function(e,t){return e.order-t.order}))}),[e.actions]),a=[],c=[];t.forEach((function(e){e.button?a.push(e):c.push(e)}));var s="d-flex";return e.className&&(s+=" ".concat(e.className)),a.length||c.length?n.createElement("div",{className:s},n.createElement(n.Fragment,null,n.createElement("span",{className:"d-flex align-items-center"},a.length?a.map((function(e,t){return n.createElement(n.Fragment,{key:t},function(){if(e.label){var t=r.q.isFunction(e.label)?e.label:function(){return n.createElement(n.Fragment,null,e.label)};return n.createElement(l.K,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,tooltip:e.tooltip,showSpinner:e.showSpinner,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},t())}var a=n.createElement(i.h,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled});return e.tooltip?n.createElement(o.u,{title:e.tooltip,spanHack:!0},a):a}())})):n.createElement(n.Fragment,null),e.sortComponent&&e.sortComponent,c.length?n.createElement(y,{actions:c,dropdownToggleClassName:e.actionsDropdownClassName,dropdownToggleSvgSize:e.dropdownToggleSvgSize}):n.createElement(n.Fragment,null)))):n.createElement(n.Fragment,null)}y.defaultProps={dropdownToggleClassName:"btn btn-light",dropdownToggleSvgSize:m.S.Small}},18559:(e,t,a)=>{a.d(t,{C:()=>f,g:()=>s});var n,r=a(32735),i=a(23481),o=a(83914),l=a(64444),c=a(5960);!function(e){e.Exchange="exchange",e.Streamable="streamable",e.MoviesAndTv="movies_and_tv"}(n||(n={}));var s,u=a(93264),d=a(26361),m=a(35223),v=a(75981),p=a(86474),g=i.T.encloseNamespace("shared.badges");function f(e){var t=e.type,a=e.data;if(!function(e,t){var a,n;return"boolean"==typeof t?!!t:e===s.Rating?t&&!!t.value:e===s.Interactive?!!(null==t?void 0:t.length)||!!(null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.length):e===s.Captions?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===s.Status?"number"==typeof t:!!t}(t,a))return r.createElement(r.Fragment,null);var i=function(e,t){var a,r="";if(e===s.DurationApproximate&&(r="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===s.DurationExact&&(r="duration-badge"),e===s.Interactive&&(r="interactive-badge"),e===s.Rating&&(r="rating-badge ".concat(v.u.mapRatingToClass(t.value))),e===s.ProductionYear&&(r="production-year-badge"),e===s.Captions)return"p-0";if(e===s.Status)return"badge ".concat(function(e){switch(e){case c.X.Published:return"bg-success";case c.X.Archived:case c.X.Rejected:return"bg-danger";case c.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case c.X.Pending:case c.X.Processing:return"bg-warning"}}(t));if(e===s.Trending)return"trending-badge px-2 d-flex align-items-center";if(e===s.Count&&(r="count-badge px-1 rounded"),e===s.Restriction){var i=d.l.mapRestrictionToClass(t.restrictions);return"restriction-badge rounded-pill px-2 d-flex align-items-center ".concat(i)}return e===s.Source&&(r=(a=t).includes(n.Streamable)?"px-1 text-nowrap d-flex align-items-center ".concat(p.Z.streamable):a.includes(n.MoviesAndTv)?"bg-indigo text-white px-1 text-nowrap d-flex align-items-center":a.includes(n.Exchange)?"bg-orange text-white px-1 text-nowrap d-flex align-items-center":""),"".concat("badge"," ").concat(r)}(t,a);i="".concat(i," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var f=function(e,t){if(e===s.Interactive)return g("interactive");if(e===s.DurationApproximate)return u.T.ToDisplayDurationNewStyle(t);if(e===s.DurationExact)return u.T.ToDisplayDuration(t);if(e===s.Rating)return t.code;if(e===s.ProductionYear)return t;if(e===s.Captions)return r.createElement(o.x,{svgName:m.vn.CloseCaptionBadge});if(e===s.Status)return c.X[t];if(e===s.Trending)return r.createElement(r.Fragment,null,r.createElement(o.x,{svgName:m.vn.Trending}),r.createElement("span",{className:"ps-1"},t));if(e===s.Count)return t;if(e===s.Restriction)return r.createElement(r.Fragment,null,r.createElement(o.x,{svgName:d.l.mapRestrictionToSvg(t.restrictions)}),r.createElement("span",null,d.l.mapRestrictionToText(t.restrictions,t.yearGroups)));if(e===s.Source){var a=t;return a.includes(n.Streamable)?"streamable":a.includes(n.MoviesAndTv)?"movies + tv":a.includes(n.Exchange)?"exchange":""}}(t,a),y=function(e,t){return e===s.Rating?{title:t.name,placement:"top"}:null}(t,a),b=e.inline&&"d-inline-block";return y?r.createElement("div",{className:"badge-wrapper d-inline"},r.createElement(l.u,Object.assign({},y,{spanHack:!0,spanHackClassName:b}),r.createElement("span",{className:i},f))):r.createElement("span",{className:"".concat(i," badge-wrapper")},f)}!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction",e.Source="source"}(s||(s={}))},85177:(e,t,a)=>{a.d(t,{oy:()=>m,mS:()=>s});var n=a(32735),r=a(83914),i=a(7733),o=a(9085),l=a(35223);const c={baseFallbackContainer:"ZvbeV",svgFallbackContainer:"atIHN",subjectFallbackContainer:"m20L7",subjectFallbackContainerSmall:"QIbxu",subjectFallbackContainerLarge:"z_sHT",seriesItemFallback:"epoLB",playlistItemFallback:"h1S5T",playlistFallback:"ZbKBN",posterFallback:"I1mTo",subjectFallback:"kNG8Z",fallbackThumbnailImage:"nKsWZ",videoFallback:"LolCW",folderFallback:"mdrT5"};var s,u,d;function m(e){var t,a=e.type,m=e.mediaType,v=e.extraClasses,p=e.containerClassSize;if(a===s.Video)return n.createElement("div",{className:"".concat(c.videoFallback," ").concat(e.extraClasses," bg-light-blue")});if(a===s.Folder)return n.createElement("div",{className:"".concat(c.folderFallback," ").concat(e.extraClasses," ").concat((0,o.x)(e.name,i.o))});var g=function(e){return e===s.SeriesThumbnail?c.seriesItemFallback:e===s.PlaylistThumbnail?c.playlistItemFallback:e===s.Playlist?c.playlistFallback:e===s.Series||e===s.TallSubject?c.posterFallback:e===s.Subject?"".concat(c.subjectFallback," svg-container d-inline-block"):""}(a),f=function(e){return e===s.SeriesThumbnail||e===s.PlaylistThumbnail?l.vn.Play:e===s.Playlist?l.vn.Image:e===s.Series?l.vn.Series:e===s.Subject||e===s.TallSubject?l.vn.Subject:""}(a),y=function(e){return e===s.Subject?r.S.ExtraLarge:r.S.Standard}(a),b="".concat(function(e,t,a){if(t===s.Subject){var n=a===d.Large?c.subjectFallbackContainerLarge:c.subjectFallbackContainerSmall;return"".concat(c.subjectFallbackContainer," ").concat(n)}return e===u.Svg?t===s.SeriesThumbnail||t===s.PlaylistThumbnail?"".concat(c.svgFallbackContainer," rounded-3"):c.svgFallbackContainer:c.baseFallbackContainer}(m,a,p));return v&&(b+=" ".concat(e.extraClasses)),n.createElement("div",{className:b},m===u.Svg?n.createElement(r.x,{svgName:f,className:"".concat(g," ").concat(null!==(t=e.svgContainerClassName)&&void 0!==t?t:""),tagName:"div",size:y}):n.createElement("div",{className:c.fallbackThumbnailImage,style:{backgroundImage:"url('".concat(f,"')")}}))}!function(e){e[e.Playlist=0]="Playlist",e[e.PlaylistThumbnail=1]="PlaylistThumbnail",e[e.Series=2]="Series",e[e.SeriesThumbnail=3]="SeriesThumbnail",e[e.Subject=4]="Subject",e[e.TallSubject=5]="TallSubject",e[e.Video=6]="Video",e[e.Folder=7]="Folder"}(s||(s={})),function(e){e[e.Svg=0]="Svg",e[e.Image=1]="Image"}(u||(u={})),function(e){e[e.Large=0]="Large",e[e.Small=1]="Small"}(d||(d={})),m.defaultProps={mediaType:u.Svg,containerClassSize:d.Large}},54569:(e,t,a)=>{a.d(t,{z:()=>c,O:()=>l});var n=a(32735),r=a(83914),i=a(35223);const o={mask:"qpc7L",small:"L8Oxs",video:"b8kJW",playlist:"eo2p2",maskContainer:"lpwag"};var l;function c(e){var t=e.type,a=e.size,c=function(e){return e===l.Video?o.video:e===l.Playlist?o.playlist:""}(t),s=function(e){return e===l.Video?i.vn.PlayCircle:""}(t);return n.createElement("div",{className:"".concat(o.maskContainer," ").concat("sm"===a?o.small:"")},n.createElement("div",{className:o.mask}),n.createElement(r.x,{svgName:s,className:c}))}!function(e){e[e.Video=0]="Video",e[e.Playlist=1]="Playlist",e[e.Series=2]="Series"}(l||(l={})),c.defaults={size:"md"}},17808:(e,t,a)=>{a.d(t,{Q:()=>c});var n=a(32735),r=a(20455),i=a(95339),o=a(67445);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function c(e){var t,a,c=(t=n.useState(null),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,a)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?l(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],u=c[1],d=(0,r.Dy)((0,r.VT)(r.we,{activationConstraint:{distance:10}}),(0,r.VT)(r.Lg,{coordinateGetter:o.is}));return e.disabled?n.createElement(n.Fragment,null,e.children):n.createElement(r.LB,{sensors:d,collisionDetection:r.pE,onDragStart:function(t){var a;u(t.active.id),null===(a=e.onSortStart)||void 0===a||a.call(e,t)},onDragEnd:function(t){u(null),e.onSortEnd(t)},modifiers:e.vertical?[i.DL]:[]},n.createElement(o.Fo,{items:e.ids,strategy:e.vertical?o.qw:o.U2},e.children),n.createElement(r.y9,{dropAnimation:e.dropAnimation},s?e.getDragOverlay(s):null))}c.defaultProps={dropAnimation:{duration:250,easing:"ease"},vertical:!0}},1287:(e,t,a)=>{a.d(t,{W:()=>o});var n=a(32735),r=a(67445),i=a(17592);function o(e){var t=(0,r.nB)({id:e.id}),a=t.setNodeRef,o=t.transform,l=t.transition,c=t.isSorting,s=t.listeners,u=t.attributes,d=t.activeIndex,m=t.overIndex,v=t.index,p={transform:i.ux.Transform.toString(o),transition:l,touchAction:"none",position:"relative"};c&&v===d&&(p.visibility="hidden");var g=e.childComponent,f=function(e,t,a){return t!==e?null:a>t?"down":a<t?"up":null}(v,d,m);return n.createElement(g,Object.assign({},e.childProps,{ref:a,style:p,dragListeners:s,dragAttributes:u,dragDirection:f}))}},39802:(e,t,a)=>{a.d(t,{h:()=>u});var n=a(32735),r=a(65858),i=a(57408),o=a(38647),l=a(17034),c=a(40370);const s={container:"r70GR",titleContainer:"rULXI",seriesTitleBox:"h9k1p",badgeContainer:"QaDDX",audienceBadge:"hvsne"};function u(e){var t=e.video,a=e.appLink,u=e.subTextAppLink,d=c.M.getCanBeConsumed(t).canNavigate;return n.createElement("div",{className:"mt-2 ".concat(s.container)},n.createElement("div",{className:"d-flex flex-column ".concat(s.titleContainer)},c.M.isVideo(t)&&n.createElement(l.$,{type:e.subTextType,className:"text-truncate ".concat(s.seriesTitleBox),video:t,appLink:u,analyticsOptions:{location:r.LZ.VideoThumbnail}}),n.createElement(i.F,{className:"h6 text-reset clamp-2 align-middle",appLink:d?a:null},t.name,n.createElement(o.m,{video:e.video,yearGroups:e.yearGroups,size:"sm"}))))}},64632:(e,t,a)=>{a.d(t,{u:()=>we});var n=a(32735),r=a(1048),i=a(65858),o=a(18559),l=a(17464),c=a(23481),s=a(91967),u=a(11607),d=a(83914),m=a(55110),v=a(82182),p=a(75896),g=a(40370),f={isFavouritedByCurrentUser:function(e){var t;return!(1!==(null===(t=null==e?void 0:e.favouritedBy)||void 0===t?void 0:t.data.length))},isFavouritedByUser:function(e,t){var a;return!!p.m.findWhere(null===(a=null==e?void 0:e.favouritedBy)||void 0===a?void 0:a.data,{id:null==t?void 0:t.id})},updateVideoState:function(e,t,a){return{id:e.id,favouritedBy:{data:a?[{id:t.id}]:[],pagination:{limit:25,cursors:{next:"",previous:""}}}}},showFavouriteButton:function(e,t){var a;return!(!(null===(a=g.M.getCanBeConsumed(e))||void 0===a?void 0:a.canConsume)||!t&&!v.V.isTabletOrMobile()&&!f.isFavouritedByCurrentUser(e))}},y=a(35223);const b={favourited:"t0svX",favouriteButton:"CFRo3",heart:"ZMMQu",heartOutline:"truFo"};function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var E=c.T.encloseNamespace("shared.favouriteButton");function C(e){var t,a,r=(0,m.Z)(),i=f.isFavouritedByCurrentUser(e.video),o=(t=n.useState(i),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,a)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?h(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=o[0],c=o[1];n.useEffect((function(){c(i)}),[i]);var v="".concat("d-flex align-items-center justify-content-center"," cursor-pointer ").concat(b.favouriteButton," ").concat(l?b.favourited:"");return e.className&&(v+=" ".concat(e.className)),s.q.isFunction(e.setFavourite)&&s.q.isFunction(e.canFavourite)&&e.canFavourite(e.video)?n.createElement(u.L,{className:v,onClick:function(){var t=!l;c(t),e.setFavourite(e.video,t,null,(function(){r.error(E(g.M.isClip(e.video)?t?"favouriteClipError":"unfavouriteClipError":g.M.isInteractive(e.video)?t?"favouriteInteractiveError":"unfavouriteInteractiveError":t?"favouriteVideoError":"unfavouriteVideoError")),c(!t)}),e.analyticsData,e.analyticsOptions)}},n.createElement(d.x,{svgName:y.vn.Heart,className:"svg-container ".concat(b.heart)}),n.createElement(d.x,{svgName:y.vn.HeartOutline,className:"svg-container ".concat(b.heartOutline)})):n.createElement(n.Fragment,null)}var N=a(56247),w=a(85177);function S(e){var t=g.M.getVideoProgress(e.video),a=t&&e.video.duration&&t/e.video.duration*1e5;return a?n.createElement("div",{className:"bg-primary h-100",style:{width:"".concat(a,"%")}}):n.createElement(n.Fragment,null)}const k={bottomBar:"YnXtZ"};function x(e){return g.M.isVideo(e.video)?n.createElement("div",{className:k.bottomBar},n.createElement(S,{video:e.video})):n.createElement(n.Fragment,null)}const T={padlock:"w4cg8",sm:"JpIYd"};function F(e){var t="sm"===e.size?d.S.Small:d.S.Standard;return n.createElement("div",{className:"".concat(T.padlock," ").concat("sm"===e.size?T.sm:""," bg-white cursor-default d-flex align-items-center justify-content-center")},n.createElement(d.x,{svgName:y.vn.Lock,size:t}))}var O=a(64444);const j={topLeftContainer:"ia0ry",logo:"OA9ft",sm:"fyo2J"};function I(e){var t,a,r,i;if(!g.M.isVideo(e.video)||!e.companyLogoFallbackUrl)return n.createElement(n.Fragment,null);var o=null===(a=null===(t=e.video.productionCompanies)||void 0===t?void 0:t.data)||void 0===a?void 0:a[0],l=null!==(i=null===(r=null==o?void 0:o.logo)||void 0===r?void 0:r.url)&&void 0!==i?i:e.companyLogoFallbackUrl;return l?n.createElement("div",{className:j.topLeftContainer},n.createElement(O.u,{title:null==o?void 0:o.name,spanHack:!0},n.createElement("div",{className:"".concat(j.logo," ").concat("sm"===e.size?j.sm:""),style:{backgroundImage:"url(".concat(l,")")}}))):n.createElement(n.Fragment,null)}I.defaultProps={size:"md"};var L=a(17034);const A={topLeftContainer:"wWtAQ",badge:"Sc3C4",svg:"Ag_ex",text:"Ipmb3",sm:"Pi49o"};var P=c.T.encloseNamespace("shared.videoTypeBadge");function M(e){if(g.M.isVideo(e.video))return n.createElement(n.Fragment,null);var t="".concat(A.badge," rounded-pill text-white ps-0 ").concat("sm"===e.size?A.sm:"");return n.createElement("div",{className:A.topLeftContainer},g.M.isClip(e.video)&&n.createElement("div",{className:"".concat(t," bg-dark-blue")},n.createElement(d.x,{className:"svg-container d-block ".concat(A.svg),size:"sm"===e.size?d.S.Small:d.S.Standard,svgName:y.vn.Clip}),n.createElement("span",{className:A.text},P("clip"))),g.M.isInteractive(e.video)&&n.createElement("div",{className:"".concat(t," bg-green")},n.createElement(d.x,{className:"svg-container ".concat(A.svg),size:"sm"===e.size?d.S.Small:d.S.Standard,svgName:y.vn.Interactive}),n.createElement("span",{className:A.text},P("interactive"))))}M.default={size:"md"};var D=a(17082);a(4594),a(25964);var z=n.createContext({hasProvider:!1});const V={hoverContainer:"TzWQw",hovering:"gdTcW"};function R(e){var t,a=n.useContext(z);if(null===(t=a.useInitialize)||void 0===t||t.call(a,e),!a.hasProvider)return n.createElement(n.Fragment,null);if("picture-in-picture"===a.mode)return n.createElement(n.Fragment,null);if("hover"===e.mode&&a.isOnPlayPage)return n.createElement(n.Fragment,null);if("default"===a.mode||"play-page"===e.location)return n.createElement(D.t0,{node:a.portalNode});var r=a.started,i="rounded-3";"popout-video"===e.location&&(i="rounded-top-3");var o="".concat(V.hoverContainer," ").concat(r?V.hovering:""," ").concat(i," overflow-hidden");return n.createElement("div",{className:o},n.createElement(D.t0,{node:a.portalNode}))}var B=a(54610),U=a(49439);const H={overlayContainer:"qu3A3",topRightContainer:"XAfZW",overlay:"NTrtm",downScale:"puKcM",title:"_6FukN",gradient:"rXzR8",playIcon:"dndOA",videoProgress:"yhWf4",badgeContainer:"AtgmC",clipProgress:"E2egN",interactiveProgress:"WycwR"};function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function X(e){var t="mb-1";return e&&(t+=H.downScale),t}function Z(e){var t,a,c,s=e.video,u=e.appLink,m=e.imageOptions,v=e.setFavourite,p=e.canFavourite,b=e.preload,h=e.hovering,E=e.hoverToPlay,S=e.companyLogoFallbackUrl,k=g.M.getCanBeConsumed(e.video),T=k.canNavigate,j=k.canConsume,A=r.t.isObject(null==u?void 0:u.params)?null==u?void 0:u.params:{},P=Object.assign(Object.assign({},e.analyticsOptions),{entity:g.M.getAnalyticsEntity(s)}),D=f.showFavouriteButton(e.video,h),z=g.M.isVideo(s),V=g.M.getRating(e.video),Z=(a=(0,U.L)({delay:100}),c=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(a,c)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_(e,t):void 0}}(a,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),G=Z[0],W=Z[1]&&j&&E;return n.createElement(O.u,{title:g.M.getPrivacyReasoning(e.video),spanHack:!0,spanHackClassName:""},n.createElement("div",{className:"position-relative rounded-3 overflow-hidden",ref:G},D&&n.createElement("div",{className:H.topRightContainer},n.createElement(C,{setFavourite:v,canFavourite:p,video:s,analyticsData:e.analyticsData,analyticsOptions:P})),!T&&n.createElement("div",{className:H.topRightContainer},n.createElement(F,null)),n.createElement(M,{video:s}),n.createElement(I,{video:s,companyLogoFallbackUrl:S}),n.createElement(N.Z,{data:g.M.getThumbnail(s),appLink:T?u:null,imageType:B.__.Thumbnails,imageOptions:m,preload:b,className:H.gradient,alt:("series"in s&&(null===(t=s.series)||void 0===t?void 0:t.name)?"".concat(s.series.name,": "):"")+s.name,analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:s.id,name:s.name}),analyticsOptions:Object.assign(Object.assign({},P),{actionType:i.Vw.Click,descriptor:i._S.Thumbnail})},!(!h||!T)&&n.createElement(d.x,{className:H.playIcon,svgName:y.vn.PlayCircle}),n.createElement(w.oy,{type:w.mS.Video}),n.createElement("div",{className:H.overlayContainer},n.createElement("div",{className:H.overlay},n.createElement("div",{className:"".concat(X(h)," ").concat(H.title)},z&&n.createElement(L.$,{type:e.subTextType,className:"text-shadow clamp-1",video:s,appLink:null,analyticsOptions:null}),n.createElement("span",{className:"h6 text-reset text-shadow clamp-1"},g.M.getTitle(s))),n.createElement(x,{video:s}),h&&n.createElement(l.c,{className:"mt-1"},g.M.isVideo(s)&&n.createElement(n.Fragment,null,n.createElement(o.C,{type:o.g.Rating,data:V}),s.hasSubtitle&&n.createElement("span",{className:"badge p-0"},n.createElement(d.x,{svgName:y.vn.CloseCaptionBadge})),n.createElement(o.C,{type:o.g.Interactive,data:s.hasInteractives}),n.createElement(o.C,{type:o.g.DurationExact,data:g.M.getDuration(e.video)})))))),W&&n.createElement(R,{key:e.video.id,objectId:e.video.id,objectTypeId:e.video.typeId,mode:"hover",context:A.context,contextId:A.contextId,moviesAndTv:A.mtv})))}var G=a(98495),W=a(91876),q=a(70498);const Q={badgeContainer:"fy9Un",sm:"Rb0TL"};function $(e){var t=g.M.getRating(e.video),a=!!e.audience&&"sm"!==e.size,r=!a&&!e.hideRating&&!!t&&"sm"!==e.size;return!e.hideDuration||a||r?n.createElement(l.c,{className:"".concat(Q.badgeContainer," ").concat("sm"===e.size?Q.sm:"")},a&&n.createElement(q.P,{audience:e.audience,className:"bg-white text-dark",border:"dark"}),r&&n.createElement(o.C,{type:o.g.Rating,data:t}),!e.hideDuration&&n.createElement(o.C,{type:e.newDurationStyle?o.g.DurationApproximate:o.g.DurationExact,data:e.duration||g.M.getDuration(e.video)})):n.createElement(n.Fragment,null)}$.defaultProps={newDurationStyle:!0,size:"md"};var K=a(39802),J=a(92827),Y=a(6296),ee=a(45480),te=a(16226);function ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ne(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?ne(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 ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}const re={preview:"whbhf",details:"vMaXP",isHovering:"tR1jA",videoGuidanceTags:"KJrT1",dropdown:"oZXV7",show:"EiQ04",topRightContainer:"FAuzc"};function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var oe=function(e){var t,a,o,l=e.video,c=e.appLink,s=e.imageOptions,u=e.preload,d=e.setFavourite,m=e.canFavourite,v=e.isHovering,p=e.hoverToPlay,y=e.companyLogoFallbackUrl,b=r.t.isObject(null==c?void 0:c.params)?null==c?void 0:c.params:{},h=g.M.getCanBeConsumed(l),E=h.canNavigate,S=h.canConsume,k=(a=n.useState(!1),o=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(a,o)||function(e,t){if(e){if("string"==typeof e)return ie(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?ie(e,t):void 0}}(a,o)||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.")}()),T=k[0],j=k[1],L=function(){var e=ae(n.useState("none"),2),t=e[0],a=e[1],r=ae((0,U.X)(),2),i=r[0],o=r[1],l=ae((0,U.X)(),2),c=l[0],s=l[1];return n.useEffect((function(){o&&"why-this-video"!==t?a("why-this-video"):s&&"whats-included"!==t&&a("whats-included")}),[o,s,t]),{whyThisVideoRef:i,whatsIncludedRef:c,videoGuidance:t}}(),A=L.videoGuidance,P=L.whyThisVideoRef,D=L.whatsIncludedRef,z=n.useMemo((function(){return g.M.showWhatsIncluded(l)}),[l]),V=n.useMemo((function(){return g.M.showWhyThisVideo(l)}),[l]);n.useEffect((function(){return function(){var t;null===(t=e.cleanPortalNode)||void 0===t||t.call(e)}}),[]);var H="position-relative bg-white";e.extraClasses&&(H+=" ".concat(e.extraClasses)),v&&(H+=" rounded-3 shadow-lg");var _=Object.assign(Object.assign({},e.analyticsOptions),{entity:g.M.getAnalyticsEntity(l)}),X=e.isHovering&&S&&p,Z=f.showFavouriteButton(e.video,v),W=e.showVideoGuidance&&(z||V),q="none"!==A;return n.createElement("div",{className:H},Z&&n.createElement("div",{className:re.topRightContainer},n.createElement(C,{setFavourite:d,canFavourite:m,video:l,analyticsData:e.analyticsData,analyticsOptions:_})),!E&&n.createElement("div",{className:re.topRightContainer},n.createElement(O.u,{title:g.M.getPrivacyReasoning(e.video),spanHack:!0,spanHackClassName:""},n.createElement(F,null))),n.createElement("div",{className:"position-relative"},n.createElement(N.Z,{onClick:function(){var t;return null===(t=e.cleanPortalNode)||void 0===t?void 0:t.call(e)},data:g.M.getThumbnail(l),appLink:E?c:null,imageType:B.__.Thumbnails,imageOptions:s,preload:u,className:"overflow-hidden ".concat(v?re.preview:"rounded-3 ".concat(re.original)),alt:("series"in l&&(null===(t=l.series)||void 0===t?void 0:t.name)?"".concat(l.series.name,": "):"")+l.name,analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:l.id,name:l.name}),analyticsOptions:Object.assign(Object.assign({},_),{actionType:i.Vw.Click,descriptor:i._S.Thumbnail})},n.createElement(w.oy,{type:w.mS.Video}),n.createElement(x,{video:l}),n.createElement("div",{className:"p-absolute w-100 h-100 text-white"},n.createElement(M,{video:l}),n.createElement(I,{video:l,companyLogoFallbackUrl:y}),n.createElement($,{video:e.video,audience:e.audience,hideRating:e.hideRating,hideDuration:e.hideDuration}))),X&&n.createElement(R,{key:e.video.id,objectId:e.video.id,objectTypeId:e.video.typeId,mode:"hover",context:b.context,contextId:b.contextId,moviesAndTv:b.mtv,location:"popout-video"})),!v&&!e.hideTitle&&n.createElement(K.h,Object.assign({},e)),n.createElement("div",{className:"".concat(re.details," ").concat(v?"".concat(re.isHovering," box-shadow"):"")},v&&n.createElement(n.Fragment,null,n.createElement("div",{className:"".concat(T?"box-shadow":""," ").concat(v?re.videoGuidanceTags:"")},n.createElement(K.h,Object.assign({},e)),W&&v&&n.createElement("div",{className:"d-flex justify-content-start align-items-center pt-2"},V&&n.createElement(te.A,{ref:P,active:"why-this-video"===A}),z&&n.createElement(Y.V,{ref:D,active:"whats-included"===A}))),W&&v&&n.createElement(G.ZP,{autoHeight:!0,autoHeightMax:160,onUpdate:function(e){var t=e.top;T&&0===t?j(!1):!T&&t>0&&j(!0)}},n.createElement("div",{className:"".concat(re.dropdown," ").concat(q?re.show:"")},"why-this-video"===A&&n.createElement(ee.p,{video:e.video,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest}),"whats-included"===A&&n.createElement(J.V,{video:e.video,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl}),"none"!==A&&n.createElement("div",{className:"pb-2"}))))))};function le(e){return n.createElement(n.Fragment,null,n.createElement(W.K,{hoverableComponent:oe,componentProps:e,fixedHoverWidth:400,minHoverWidth:400}))}var ce=a(57408),se=a(54569);const ue={unchecked:"bup9I",checked:"A1Ov0",checkMark:"c14lI"};function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var me;function ve(e){var t,a,r=(t=n.useState(e.status===me.Complete),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,a)||function(e,t){if(e){if("string"==typeof e)return de(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?de(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=r[0],o=r[1];n.useEffect((function(){o(e.status===me.Complete)}),[e.status]);var l="cursor-pointer rounded-circle ".concat(i?ue.checked:ue.unchecked);return e.className&&(l+=" ".concat(e.className)),e.status&&e.status!==me.None&&s.q.isFunction(e.setStatus)?n.createElement("div",{className:l,onClick:function(){var t=!i;o(t);var a=t?me.Complete:me.Incomplete;e.setStatus(a).catch((function(){o(!t)}))}},n.createElement(d.x,{svgName:y.vn.Check,className:"svg-container ".concat(ue.checkMark)})):n.createElement(n.Fragment,null)}!function(e){e.None="None",e.Complete="Complete",e.Incomplete="Incomplete"}(me||(me={}));const pe={container:"efxnE",cvIcon:"OJ_ZQ",action:"vWvGn"};function ge(e){return g.M.getCanBeConsumed(e.video).canNavigate?function(e){var t;return!(null===(t=g.M.getCanBeConsumed(e.video))||void 0===t?void 0:t.canConsume)||!(!s.q.isFunction(e.setFavourite)||!s.q.isFunction(e.canFavourite))||!!s.q.isFunction(e.setCheckMarkStatus)}(e)?n.createElement("div",{className:"".concat(pe.container," d-flex align-items-center")},n.createElement(C,{setFavourite:e.setFavourite,canFavourite:e.canFavourite,video:e.video,className:pe.action,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}),n.createElement(ve,{status:e.checkMarkStatus,setStatus:e.setCheckMarkStatus,className:pe.action})):n.createElement(n.Fragment,null):n.createElement("div",{className:pe.container},n.createElement(F,{size:e.size}))}var fe=a(68626);const ye={titleOverlay:"krg9f",clip:"MPRU6",large:"g5_ww",interactive:"Zzo3e",titleBelow:"tZjPt",overlayContainer:"EElm1",gradient:"LS_EH"};function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return he(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?he(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 he(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var Ee="shared.staticVideoThumbnail";function Ce(e){var t,a=e.video,r=e.subTextAppLink,o=e.textPosition,l=e.appLink,s=o===fe.z.Overlay,u=g.M.getCanBeConsumed(e.video).canNavigate,d="";return s?(d=ye.titleOverlay,u&&(g.M.isClip(a)&&(d+=" "+ye.clip),g.M.isInteractive(a)&&(d+=" "+ye.interactive))):d=ye.titleBelow,n.createElement("div",{className:d},g.M.isVideo(a)&&n.createElement(L.$,{type:e.subTextType,className:s?"text-shadow clamp-1":"clamp-2",video:a,appLink:s?null:r,analyticsOptions:{location:i.LZ.VideoThumbnail}}),s||!u?n.createElement("span",{className:"h6 text-reset text-shadow clamp-1"},null!==(t=a.name)&&void 0!==t?t:c.T.getPhrase(Ee,"videoUnavailable")):n.createElement(ce.F,{className:"h6 text-reset clamp-2",appLink:l},a.name))}function Ne(e){var t,a,o=e.video,l=e.appLink,c=e.textPosition,s=e.imageOptions,u=e.setFavourite,d=e.preload,m=e.hoverToPlay,v=r.t.isObject(null==l?void 0:l.params)?null==l?void 0:l.params:{},p=be((0,U.X)(),2),y=p[0],b=p[1],h=be((0,U.L)({delay:100}),2),E=h[0],C=h[1],S=g.M.getCanBeConsumed(o),k=S.canNavigate,T=S.canConsume,F=C&&T&&m,j=Object.assign(Object.assign({},e.analyticsOptions),{entity:g.M.getAnalyticsEntity(o)}),L=!!l&&!e.hideMask&&k,A=g.M.getPrivacyReasoning(e.video,e.showSignIn);return n.createElement(O.u,{title:A,spanHack:!0,spanHackClassName:""},n.createElement("div",{className:(a="position-relative",a+=l&&k?" cursor-pointer":"",e.extraClasses&&(a+=" ".concat(e.extraClasses)),c===fe.z.Overlay&&(a+=" rounded overflow-hidden"),a),ref:function(e){y.current=e,E.current=e}},n.createElement(ge,{video:o,checkMarkStatus:e.checkMarkStatus,setCheckMarkStatus:e.setCheckMarkStatus,setFavourite:u,canFavourite:function(){var t;return(null===(t=e.canFavourite)||void 0===t?void 0:t.call(e,e.video))&&f.showFavouriteButton(o,b)},analyticsData:e.analyticsData,analyticsOptions:j,size:e.size}),n.createElement(N.Z,{data:g.M.getThumbnail(o),appLink:k?l:null,imageType:B.__.Thumbnails,imageOptions:s,preload:d,className:function(){var t="overflow-hidden ".concat("sm"===e.size?"rounded":"rounded-3");return e.imageClassName&&(t+=" ".concat(e.imageClassName)),c===fe.z.Overlay&&(t+=" ".concat(ye.gradient)),t}(),alt:("series"in o&&(null===(t=o.series)||void 0===t?void 0:t.name)?"".concat(o.series.name,": "):"")+o.name,analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:o.id,name:o.name}),analyticsOptions:Object.assign(Object.assign({},j),{actionType:i.Vw.Click,descriptor:i._S.Thumbnail})},L&&n.createElement(se.z,{type:se.O.Video,size:e.size}),n.createElement(w.oy,{type:w.mS.Video}),n.createElement("div",{className:ye.overlayContainer},c===fe.z.Overlay&&n.createElement(Ce,Object.assign({},e)),n.createElement(x,{video:o}),n.createElement(M,{video:o,size:e.size}),n.createElement(I,{video:o,companyLogoFallbackUrl:e.companyLogoFallbackUrl,size:e.size}),n.createElement($,{video:e.video,audience:e.audience,hideRating:e.hideRating,hideDuration:e.hideDuration,newDurationStyle:e.newDurationStyle,size:e.size}))),F&&n.createElement(R,{key:e.video.id,objectId:e.video.id,objectTypeId:e.video.typeId,mode:"hover",context:v.context,contextId:v.contextId,moviesAndTv:v.mtv}),c===fe.z.Below&&n.createElement(Ce,Object.assign({},e))))}function we(e){switch(e.type){case"static":return n.createElement(Ne,Object.assign({},e));case"cosmetic":return n.createElement(Ne,Object.assign({},e,{hoverToPlay:!1}));case"expandable":return n.createElement(Z,Object.assign({},e));case"popout":return n.createElement(le,Object.assign({},e));default:return}}we.defaultProps={hideRating:!0,size:"md",hoverToPlay:!0}},61402:(e,t,a)=>{a.d(t,{m:()=>o});var n=a(32735),r=a(83914);const i={tag:"OjHQZ",icon:"SS2zL",active:"kD1xM"};function o(e){return n.createElement("div",{className:"p-1 pe-2 rounded-pill d-inline-flex align-items-center cursor-pointer ".concat(i.tag," ").concat(e.active?i.active:"")},n.createElement(r.x,{className:"".concat(i.icon," rounded-circle bg-").concat(e.iconVariant," text-white"),svgName:e.svgName}),n.createElement("span",{className:"ps-1 text-nowrap user-select-none"},e.text))}},92827:(e,t,a)=>{a.d(t,{V:()=>p});var n=a(32735),r=a(23481),i=a(3778),o={getEnglishName:function(e,t){var a,n,i=e.language;return n=(null==t?void 0:t.filter((function(e){return e.language!==i}))).length>0?CVLanguages.getFullEnglishName(i):CVLanguages.getEnglishName(i),(null===(a=e.metadata)||void 0===a?void 0:a.autoGenerated)?r.T.getPhrase("shared.shared-utils","autoGeneratedSubtitle",{name:n}):n}},l=a(35223),c=a(83914);const s={container:"c4Hun",icon:"telfV",resourceContainer:"bdBNU",resourceThumbnailContainer:"QN5kl"};function u(e){return n.createElement("div",{className:"".concat(s.container," p-2 rounded-3")},n.createElement("div",{className:"d-flex align-items-center"},n.createElement("div",{className:"".concat(s.icon," bg-").concat(e.iconVariant," text-white rounded-circle")},n.createElement(c.x,{svgName:e.svgName})),n.createElement("div",{className:"ps-2 fw-semibold"},e.text)),e.children)}function d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var v=r.T.encloseNamespace("shared.whatsIncluded");function p(e){var t,a,r,c,m,p,g,f=null===(a=null===(t=e.video.interactives)||void 0===t?void 0:t.data)||void 0===a?void 0:a.length,y=[].concat(d((null===(r=e.video.resources)||void 0===r?void 0:r.data)||[]),d((null===(c=e.video.links)||void 0===c?void 0:c.data)||[])),b=y.length,h=null!==(g=null===(p=null===(m=e.video.subtitles)||void 0===m?void 0:m.data)||void 0===p?void 0:p.map((function(t){var a,n;return o.getEnglishName(t,null!==(n=null===(a=e.video.subtitles)||void 0===a?void 0:a.data)&&void 0!==n?n:[])})))&&void 0!==g?g:[];return n.createElement(n.Fragment,null,f>0&&n.createElement(u,{text:v("totalInteractives",{smartCount:f}),svgName:l.vn.Interactive,iconVariant:"green"}),b>0&&n.createElement(u,{text:v("totalResources",{smartCount:b}),svgName:l.vn.Resources,iconVariant:"indigo"},n.createElement("div",{className:"row g-0 mx-n1 pt-2"},y.slice(0,3).map((function(t){return n.createElement("div",{key:t.id,className:"col-4 px-1"},n.createElement(i.s,{data:t,imageCdnUrl:e.imageCdnUrl,imageErrorFallbackUrl:e.resourceThumbnailFallbackImageUrl,theme:{containerClass:s.resourceContainer,thumbnailContainerClass:s.resourceThumbnailContainer},preloadImage:e.isShowing,hideHeading:!0}))})))),!!(null==h?void 0:h.length)&&n.createElement(u,{text:v("videoSettings"),svgName:l.vn.CloseCaptionBadge,iconVariant:"dark"},n.createElement("div",{className:"d-flex align-items-center pt-1"},n.createElement("div",{className:"ps-1"},h.join(", ")))))}p.defaultProps={isShowing:!0}},6296:(e,t,a)=>{a.d(t,{V:()=>l});var n=a(32735),r=a(23481),i=a(61402),o=a(35223),l=n.forwardRef((function(e,t){return n.createElement("div",{ref:t},n.createElement(i.m,{svgName:o.vn.Video,iconVariant:"blue",text:r.T.getPhrase("shared.whatsIncluded","whatsIncluded"),active:e.active}))}))},45480:(e,t,a)=>{a.d(t,{p:()=>v});var n=a(32735),r=a(20354),i=a(45261),o=a(72189),l=a(16035),c=a(91743),s=a(83345),u=a(44829);const d={itemContainer:"KQ5Wt"};var m="shared.whyThisVideo";function v(e){var t,a,v,p,g,f,y,b=r.a.useBasicFetch(e.getCurriculumLinksRequest(e.video.id)),h=null!==(v=null===(a=null===(t=e.video.tags)||void 0===t?void 0:t.data)||void 0===a?void 0:a.filter((function(e){return e.tagType===u.Q.Pedagogy})))&&void 0!==v?v:[],E=null!==(f=null===(g=null===(p=e.video.tags)||void 0===p?void 0:p.data)||void 0===g?void 0:g.filter((function(e){return e.tagType===u.Q.Skill})))&&void 0!==f?f:[];return n.createElement(n.Fragment,null,!!h.length&&n.createElement("h3",{className:"font-size-normal fw-semibold"},n.createElement(s.x,{namespace:m,phrase:"pedagogy"})),h.map((function(e){return n.createElement("div",{key:e.name,className:"px-2 py-1 rounded-3 ".concat(d.itemContainer)},n.createElement(l.z,{tag:e}),e.description&&n.createElement("p",{className:"mb-2 pt-1"},e.description))})),!!E.length&&n.createElement(n.Fragment,null,n.createElement("h3",{className:"font-size-normal fw-semibold"},n.createElement(s.x,{namespace:m,phrase:"skills"})),n.createElement("div",{className:"p-2 rounded-3 ".concat(d.itemContainer)},n.createElement(c.P,{tags:E}))),!b.hasCompleted&&n.createElement(o.Z,null),b.hasCompleted&&!!(null===(y=b.data)||void 0===y?void 0:y.length)&&n.createElement(n.Fragment,null,n.createElement("h3",{className:"font-size-normal fw-semibold"},e.curriculum.name),b.data.map((function(e,t){return n.createElement("div",{key:t,className:"p-2 rounded-3 ".concat(d.itemContainer)},n.createElement(i.h,{curriculumLinks:[e]}))}))))}},16226:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(32735),r=a(23481),i=a(61402),o=a(35223),l=n.forwardRef((function(e,t){return n.createElement("div",{ref:t},n.createElement(i.m,{svgName:o.vn.StarOutline,iconVariant:"navy",text:r.T.getPhrase("shared.whyThisVideo","whyThisVideo"),active:e.active}))}))},38647:(e,t,a)=>{a.d(t,{m:()=>s});var n=a(32735),r=a(83914),i=a(64444),o=a(26361),l=a(35223),c=a(40370);function s(e){if(!e.yearGroups)return n.createElement(n.Fragment,null);var t=o.l.mapRestrictionToText(e.video._restrictions,e.yearGroups);return c.M.getCanBeConsumed(e.video).canConsume&&t?n.createElement(i.u,{spanHack:!0,spanHackClassName:e.className||"d-inline-block ps-1",title:t,placement:e.tooltipPlacement||"top"},n.createElement(r.x,{svgName:l.vn.Lock,size:"sm"===e.size?r.S.Small:r.S.Standard})):n.createElement(n.Fragment,null)}},85784:(e,t,a)=>{a.d(t,{Q:()=>l});var n=a(32735),r=a(91967),i=a(64887),o=a(51365);function l(e){var t=n.useContext(o.M);if(!r.q.isFunction(t))return n.createElement(n.Fragment,null);var a=t(e.video,{analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions});return n.createElement(i.e,{actions:a,className:"float-end mt-n1",actionsDropdownClassName:"btn btn-link ms-1"})}},70872:(e,t,a)=>{a.d(t,{u:()=>c});var n=a(32735),r=a(65858),i=a(57408),o=a(38647),l=a(40370);function c(e){var t,a,c,s=l.M.getCanBeConsumed(e.video).canNavigate,u=l.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===(a=e.video)||void 0===a?void 0:a.name}),m=Object.assign(Object.assign({},e.analyticsOptions),{actionType:r.Vw.Click,descriptor:r._S.Title}),v=e.textClassName||"m-0 clamp-1 mb-n1 pb-1 align-middle ".concat("md"===e.size?"h4":"h6");return n.createElement(i.F,{className:e.linkClassName,appLink:s?e.appLink:null,analyticsOptions:m,analyticsData:d},n.createElement("h5",{className:v,title:null!==(c=e.video.name)&&void 0!==c?c:""},u,n.createElement(o.m,{size:e.size,video:e.video,yearGroups:e.yearGroups})))}},7733:(e,t,a)=>{a.d(t,{o:()=>n});var n=["bg-pink","bg-orange"].concat(["bg-green","bg-cyan","bg-teal","bg-blue","bg-indigo","bg-purple"])},51365:(e,t,a)=>{a.d(t,{M:()=>n});var n=a(32735).createContext(null)},68626:(e,t,a)=>{var n;a.d(t,{z:()=>n}),function(e){e[e.Below=1]="Below",e[e.Overlay=2]="Overlay",e[e.Independent=3]="Independent"}(n||(n={}))},81514:(e,t,a)=>{a.d(t,{V:()=>i});var n=a(86764),r=a(3747);function i(){var e=(0,r.a)(n.r.XS),t=(0,r.a)(n.r.SM),a=(0,r.a)(n.r.MD),i=(0,r.a)(n.r.LG),o=(0,r.a)(n.r.XL),l=(0,r.a)(n.r.XXL),c=n.r.LG;return e&&(c=n.r.XS),t&&(c=n.r.SM),a&&(c=n.r.MD),i&&(c=n.r.LG),o&&(c=n.r.XL),l&&(c=n.r.XXL),c}},75981:(e,t,a)=>{a.d(t,{u:()=>u});var n,r=a(23481);!function(e){e.Folder="category",e.CategoryTree="category_tree",e.CustomLibrary="custom_library",e.HostedLibrary="hosted_library",e.Exchange="exchange",e.Workspace="workspace",e.Video="video",e.Clip="clip",e.Interactive="interactive"}(n||(n={}));var i=a(1164),o=a(35223);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t,a){var n;return n=function(e,t){if("object"!=l(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==l(n)?n:String(n))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var s="shared.shared-utils",u={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-info";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case n.HostedLibrary:case n.CustomLibrary:return e.name;case n.Exchange:return r.T.getPhrase(s,"exchange");case n.Workspace:return r.T.getPhrase(s,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case n.HostedLibrary:case n.CustomLibrary:return"bg-info";case n.Exchange:return"bg-green";case n.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,a;return!!(null===(a=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===a?void 0:a.length)},mapTypeToSvg:function(e){var t=c(c(c(c(c(c(c({},i.L.Pdf,o.vn.FilePDF),i.L.Image,o.vn.FileImg),i.L.PowerPoint,o.vn.FilePowerpoint),i.L.Document,o.vn.FileWord),i.L.Excel,o.vn.FileExcel),i.L.Zip,o.vn.FileZip),i.L.File,o.vn.File)[e];return t||(t=o.vn.Folder),t},mapTypeToClass:function(e){switch(e){case i.L.Pdf:return"icon-red";case i.L.Image:return"icon-purple";case i.L.Document:return"icon-blue";case i.L.Excel:return"icon-green";case i.L.PowerPoint:return"icon-orange";case i.L.Zip:return"icon-teal";case i.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case i.L.Pdf:return r.T.getPhrase(s,"pdf");case i.L.Image:return r.T.getPhrase(s,"image");case i.L.Document:return r.T.getPhrase(s,"document");case i.L.Excel:return r.T.getPhrase(s,"spreadsheet");case i.L.PowerPoint:return r.T.getPhrase(s,"presentation");case i.L.Zip:return r.T.getPhrase(s,"zipArchive");case i.L.File:return r.T.getPhrase(s,"file");default:return""}}}},9085:(e,t,a)=>{function n(e,t){return t[e.charCodeAt(0)%t.length]}a.d(t,{x:()=>n})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[561],{79878:(e,t,a)=>{a.d(t,{r:()=>u});var n=a(32735),r=a(23481),o=a(83914),i=a(64444),l=a(35223);const c={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function u(e){return n.createElement(i.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(c.tooltip),spanHack:!0},n.createElement("div",{className:"d-flex text-dark align-items-center ".concat(c.tag," ").concat(e.className)},n.createElement(o.x,{svgName:l.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},39880:(e,t,a)=>{a.d(t,{s:()=>i});var n=a(32735),r=a(57408);const o={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function i(e){var t;return n.createElement(r.F,{appLink:null===(t=e.getAppLink)||void 0===t?void 0:t.call(e),className:"text-decoration-none text-center bg-white text-dark border border-3 border-light-blue rounded-3 d-block fw-semibold ".concat(e.className),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},n.createElement("div",{className:"position-relative ".concat(o.dateItem)},n.createElement("div",{className:"bg-light-blue py-1 ".concat(o.label," d-flex align-items-center justify-content-center")},e.label?e.label:n.createElement(n.Fragment,null," ")),n.createElement("div",{className:"".concat(function(){switch(e.body.type){case"range":return o.bodyRange;case"day":return o.bodyDay;case"month":return o.bodyMonth}}()," ").concat(o.body," my-2")},e.body.text),n.createElement("div",{className:"mb-0 ".concat(o.month)},e.month)))}},64887:(e,t,a)=>{a.d(t,{e:()=>h});var n=a(32735),r=a(91967),o=a(63855),i=a(64444),l=a(42735),c=a(81886),s=a(45157),u=a(92582),d=a(57408),m=a(83914),p=a(35223);const b={dropdownToggle:"UCAnJ"};function v(e){var t="dropdown-item";return e&&(t+=" ".concat(e)),t}function g(e){var t=r.q.isFunction(e.action.label)?e.action.label:function(){return n.createElement(n.Fragment,null,e.action.label)};if(e.action.appLink)return n.createElement(d.F,{appLink:e.action.appLink,onClick:e.action.onClick,className:v(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions,openInNewTab:e.action.openInNewTab,disabled:e.action.disabled},t());function a(t){t.preventDefault(),e.action.analyticsData&&e.action.analyticsOptions&&u.k.logUserAction(e.action.analyticsData,e.action.analyticsOptions),r.q.isFunction(e.action.onClick)&&e.action.onClick(),e.action.href&&c.Q.Ab.PageLoad(e.action.href,e.action.openInNewTab)}return e.action.href?n.createElement("a",{className:v(e.action.className),onClick:a,href:e.action.href},t()):n.createElement("span",{className:"cursor-pointer ".concat(v(e.action.className)),onClick:a,role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&a(e)}},t())}function f(e){if(!e.actions||!e.actions.length)return n.createElement(n.Fragment,null);var t="dropdown";e.className&&(t+=" ".concat(e.className));var a="actions-dropdown-".concat(s.Y.getRandomInt()),r="dropdown-toggle px-0 ".concat(b.dropdownToggle);return e.dropdownToggleClassName&&(r+=" ".concat(e.dropdownToggleClassName)),n.createElement("div",{className:t},n.createElement("button",{className:r,type:"button",id:a,"data-bs-toggle":"dropdown","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},n.createElement(m.x,{svgName:p.vn.More,size:e.dropdownToggleSvgSize})),n.createElement("div",{className:"dropdown-menu dropdown-menu-end dropdown-menu-right","aria-labelledby":a},e.actions.map((function(e,t){return e.tooltip?n.createElement(i.u,{key:t,title:e.tooltip,spanHack:!0},n.createElement(g,{action:e})):n.createElement(g,{key:t,action:e})}))))}function h(e){var t=n.useMemo((function(){return e.actions.sort((function(e,t){return e.order-t.order}))}),[e.actions]),a=[],c=[];t.forEach((function(e){e.button?a.push(e):c.push(e)}));var s="d-flex";return e.className&&(s+=" ".concat(e.className)),a.length||c.length?n.createElement("div",{className:s},n.createElement(n.Fragment,null,n.createElement("span",{className:"d-flex align-items-center"},a.length?a.map((function(e,t){return n.createElement(n.Fragment,{key:t},function(){if(e.label){var t=r.q.isFunction(e.label)?e.label:function(){return n.createElement(n.Fragment,null,e.label)};return n.createElement(l.K,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,tooltip:e.tooltip,showSpinner:e.showSpinner,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},t())}var a=n.createElement(o.h,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled});return e.tooltip?n.createElement(i.u,{title:e.tooltip,spanHack:!0},a):a}())})):n.createElement(n.Fragment,null),e.sortComponent&&e.sortComponent,c.length?n.createElement(f,{actions:c,dropdownToggleClassName:e.actionsDropdownClassName,dropdownToggleSvgSize:e.dropdownToggleSvgSize}):n.createElement(n.Fragment,null)))):n.createElement(n.Fragment,null)}f.defaultProps={dropdownToggleClassName:"btn btn-light",dropdownToggleSvgSize:m.S.Small}},75553:(e,t,a)=>{a.d(t,{p:()=>w,v:()=>k});var n=a(32735),r=a(110),o=a(12788),i={renderInPortalIfExists:function(e,t){return t?(0,o.createPortal)(e,t):e}},l=a(79878),c=a(39880),s=a(64887),u=a(23481),d=a(57408),m=a(83914),p=a(35223),b="shared.backButton";function v(e){var t=Object.assign({textShadow:!0},e),a=t.backToName,r=t.appLink,o=t.color,i=t.extraClasses,l=t.textShadow,c=a?u.T.getPhrase(b,"backTo",{backToName:a}):u.T.getPhrase(b,"back"),s="black"===o?"":"text-white",v=l?"text-shadow":"";return n.createElement(d.F,{appLink:r,className:"d-inline-flex align-items-center h5 mb-0 ".concat(i," ").concat(s," ").concat(v)},n.createElement(m.x,{svgName:p.vn.ChevronLeft,size:m.S.Medium}),n.createElement("span",{className:"ms-1"},c))}v.defaultProps={color:"black",extraClasses:""};var g=a(83345),f=a(10587),h=a(94232),y=a(54610),E=a(79967),N=a(67453);const C={bannerContent:"sSCTB",actionsContainer:"Z5WI2",container:"M51HJ",logoContainer:"vkeJk",specialEventContainer:"rOxDc",headingLarge:"_8pnV",heading:"JXVBH"};var L="".concat(f.y[y.__.Banners].width,":").concat(f.y[y.__.Banners].height);function S(e){return e.length<160?"h1":C.headingLarge}var w=n.memo((function(e){var t,a=e.heading,o=e.banner,u=e.imageCdnUrl,d=e.actions,m=e.sortComponent,p=e.blockColourClass,b=e.specialEvent,f=n.useContext(h.n),w=(0,E.k)().xxl?1920:1200,k=n.useMemo((function(){if(!b||e.showComingSoon)return!1;var t=r.O.format(new Date,"YYYY-MM-DD");return b.endDate?b.startDate<=t&&b.endDate>=t:b.startDate===t}),[b]),T=e.imageOptions||{width:w,ratio:L,resizeType:y.Nq.Cover},_=!!o&&!!u&&N.j.createBannerUrl(o,{fallbackBaseUrl:u,fallbackCategoryName:a,type:y.__.Banners},T),I={className:"banner banner-header ".concat(e.bannerClassName),style:_?{backgroundImage:"url('".concat(_,"')")}:{}};!o&&p&&(delete I.style,I.className+=" ".concat(p));var O=e.detailsComponent;return i.renderInPortalIfExists(n.createElement("header",Object.assign({},I),n.createElement("div",{className:"container ".concat(C.container," position-relative inner-banner")},e.backButtonAppLink&&n.createElement("div",{className:"pt-3"},n.createElement(v,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),n.createElement("div",{className:"".concat(C.bannerContent)},!!b&&n.createElement("div",{className:"position-relative ".concat(C.specialEventContainer)},n.createElement(c.s,{body:{type:b.endDate?"range":"day",text:b.endDate?"".concat(r.O.format(b.startDate,"DD"),"-").concat(r.O.format(b.endDate,"DD")):r.O.format(b.startDate,"DD")},month:r.O.format(b.startDate,"MMMM")})),n.createElement("div",null,k&&n.createElement("div",{className:"rounded-pill py-1 px-2 my-1 me-1 fw-semibold bg-light-blue lh-1 d-inline-block"},n.createElement(g.x,{namespace:"shared.bannerHeader",phrase:"onToday"})),e.showComingSoon&&n.createElement(l.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start text-nowrap"}),n.createElement("h1",{className:"text-white text-shadow ".concat(C.heading," ").concat(S(a))},a,O&&n.createElement(O,null))),!!d&&n.createElement("div",{className:C.actionsContainer},n.createElement(s.e,{actions:d,sortComponent:m,actionsDropdownClassName:e.actionsDropdownClassName}))),!!(null===(t=e.logo)||void 0===t?void 0:t.url)&&n.createElement("div",{className:C.logoContainer},n.createElement("img",{src:N.j.createUrl(e.logo.url,{size:y.h2.Small}),className:"rounded-circle"})))),null==f?void 0:f.container)}),(function(e,t){var a,n;return e.actions===t.actions&&e.heading===t.heading&&(null===(a=e.logo)||void 0===a?void 0:a.url)===(null===(n=t.logo)||void 0===n?void 0:n.url)}));function k(){var e=n.useContext(h.n);return i.renderInPortalIfExists(n.createElement("div",{className:"partial-banner partial-loading-background ".concat(C.banner)}),null==e?void 0:e.container)}},49935:(e,t,a)=>{a.d(t,{Oo:()=>d,b2:()=>m});var n=a(32735),r=a(57408),o=a(86764),i=a(3747),l=a(5859),c=a(35223),s=a(83914),u=function(e){var t=e.breadcrumb,a=t.name,o=t.appLink,i=t.active,l=e.withBackIcon;return n.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?n.createElement("strong",null,a):n.createElement(r.F,{appLink:o},l&&n.createElement(s.x,{svgName:c.vn.ChevronLeft,size:s.S.Small}),n.createElement("span",{className:l?"ms-2":""},a)))},d=function(e){var t=e.breadcrumbs,a=(0,i.a)(o.r.XS),r=null==t?void 0:t.length;return!r||a&&r<2?n.createElement(n.Fragment,null):a?n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(u,{breadcrumb:t[r-2],withBackIcon:!0}))):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return n.createElement(u,{key:t,breadcrumb:e})}))))},m=n.memo((function(e){var t=e.numItems,a=void 0===t?3:t;return(0,i.a)(o.r.XS)?n.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},l.u.getPartialLoadingItems({numItems:a}).map((function(e,t){var a=e.width;return n.createElement("li",{key:t,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:a},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},85177:(e,t,a)=>{a.d(t,{oy:()=>m,mS:()=>s});var n=a(32735),r=a(83914),o=a(7733),i=a(9085),l=a(35223);const c={baseFallbackContainer:"ZvbeV",svgFallbackContainer:"atIHN",subjectFallbackContainer:"m20L7",subjectFallbackContainerSmall:"QIbxu",subjectFallbackContainerLarge:"z_sHT",seriesItemFallback:"epoLB",playlistItemFallback:"h1S5T",playlistFallback:"ZbKBN",posterFallback:"I1mTo",subjectFallback:"kNG8Z",fallbackThumbnailImage:"nKsWZ",videoFallback:"LolCW",folderFallback:"mdrT5"};var s,u,d;function m(e){var t,a=e.type,m=e.mediaType,p=e.extraClasses,b=e.containerClassSize;if(a===s.Video)return n.createElement("div",{className:"".concat(c.videoFallback," ").concat(e.extraClasses," bg-light-blue")});if(a===s.Folder)return n.createElement("div",{className:"".concat(c.folderFallback," ").concat(e.extraClasses," ").concat((0,i.x)(e.name,o.o))});var v=function(e){return e===s.SeriesThumbnail?c.seriesItemFallback:e===s.PlaylistThumbnail?c.playlistItemFallback:e===s.Playlist?c.playlistFallback:e===s.Series||e===s.TallSubject?c.posterFallback:e===s.Subject?"".concat(c.subjectFallback," svg-container d-inline-block"):""}(a),g=function(e){return e===s.SeriesThumbnail||e===s.PlaylistThumbnail?l.vn.Play:e===s.Playlist?l.vn.Image:e===s.Series?l.vn.Series:e===s.Subject||e===s.TallSubject?l.vn.Subject:""}(a),f=function(e){return e===s.Subject?r.S.ExtraLarge:r.S.Standard}(a),h="".concat(function(e,t,a){if(t===s.Subject){var n=a===d.Large?c.subjectFallbackContainerLarge:c.subjectFallbackContainerSmall;return"".concat(c.subjectFallbackContainer," ").concat(n)}return e===u.Svg?t===s.SeriesThumbnail||t===s.PlaylistThumbnail?"".concat(c.svgFallbackContainer," rounded-3"):c.svgFallbackContainer:c.baseFallbackContainer}(m,a,b));return p&&(h+=" ".concat(e.extraClasses)),n.createElement("div",{className:h},m===u.Svg?n.createElement(r.x,{svgName:g,className:"".concat(v," ").concat(null!==(t=e.svgContainerClassName)&&void 0!==t?t:""),tagName:"div",size:f}):n.createElement("div",{className:c.fallbackThumbnailImage,style:{backgroundImage:"url('".concat(g,"')")}}))}!function(e){e[e.Playlist=0]="Playlist",e[e.PlaylistThumbnail=1]="PlaylistThumbnail",e[e.Series=2]="Series",e[e.SeriesThumbnail=3]="SeriesThumbnail",e[e.Subject=4]="Subject",e[e.TallSubject=5]="TallSubject",e[e.Video=6]="Video",e[e.Folder=7]="Folder"}(s||(s={})),function(e){e[e.Svg=0]="Svg",e[e.Image=1]="Image"}(u||(u={})),function(e){e[e.Large=0]="Large",e[e.Small=1]="Small"}(d||(d={})),m.defaultProps={mediaType:u.Svg,containerClassSize:d.Large}},47770:(e,t,a)=>{a.d(t,{K:()=>c});var n=a(32735),r=a(68050),o=a(69111),i=a(66869),l=a(91028);function c(e){return n.createElement(n.Fragment,null,n.createElement(i.B,{name:e.name,description:e.description}),n.createElement(r.Z,{className:"mb-n2"},e.content.map((function(t){return n.createElement(o.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},n.createElement(l.V,{data:t,getChildAppLink:function(t){var a,n;return null===(n=null===(a=e.appLinks)||void 0===a?void 0:a.classification)||void 0===n?void 0:n.call(a,t)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,isLarge:!0}))}))))}},65163:(e,t,a)=>{a.d(t,{QL:()=>n.Q});var n=a(87608);a(14244)},7733:(e,t,a)=>{a.d(t,{o:()=>n});var n=["bg-pink","bg-orange"].concat(["bg-green","bg-cyan","bg-teal","bg-blue","bg-indigo","bg-purple"])},10587:(e,t,a)=>{a.d(t,{y:()=>i});var n=a(54610);function r(e){return r="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},r(e)}function o(e,t,a){var n;return n=function(e,t){if("object"!=r(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==r(n)?n:String(n))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var i=o(o(o(o(o(o(o(o(o({},n.__.Thumbnails,{width:1280,height:720}),n.__.Banners,{width:1200,height:222}),n.__.Covers,{width:512,height:512}),n.__.Posters,{width:1e3,height:1500}),n.__.TallPosters,{width:1080,height:1920}),n.__.HeroBanners,{width:1920,height:640}),n.__.None,{width:1,height:1}),n.__.Avatars,{width:256,height:256}),n.__.Logos,{width:128,height:128})},85594:(e,t,a)=>{var n;a.d(t,{A:()=>n}),function(e){e.Subject="Subject",e.CurriculumAudience="CurriculumAudience",e.CurriculumSubject="CurriculumSubject",e.CurriculumArea="CurriculumArea",e.CurriculumLeaf="CurriculumLeaf",e.CurriculumMetadata="CurriculumMetadata"}(n||(n={}))},25925:(e,t,a)=>{var n;a.d(t,{R:()=>n}),function(e){e.Subject="Subject",e.Curriculum="Curriculum",e.StreamableLearning="StreamableLearning"}(n||(n={}))},81514:(e,t,a)=>{a.d(t,{V:()=>o});var n=a(86764),r=a(3747);function o(){var e=(0,r.a)(n.r.XS),t=(0,r.a)(n.r.SM),a=(0,r.a)(n.r.MD),o=(0,r.a)(n.r.LG),i=(0,r.a)(n.r.XL),l=(0,r.a)(n.r.XXL),c=n.r.LG;return e&&(c=n.r.XS),t&&(c=n.r.SM),a&&(c=n.r.MD),o&&(c=n.r.LG),i&&(c=n.r.XL),l&&(c=n.r.XXL),c}},65294:(e,t,a)=>{a.d(t,{Y:()=>o});var n=a(10288);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function o(){var e,t,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=a.prevent,i=a.rootMargin,l=a.triggerOnce,c=void 0===l||l,s=(e=n.YD({triggerOnce:c,rootMargin:i}),t=3,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,o,i,l=[],c=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=o.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?r(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],m=s[2];return!0!==o&&void 0!==window.IntersectionObserver||(d=!0,u=null),{ref:u,inView:d,initialized:!!m}}},73275:(e,t,a)=>{var n,r,o,i;a.d(t,{VH:()=>u,OL:()=>r,GL:()=>p.GL,ku:()=>p.ku,Yv:()=>p.Yv,Z9:()=>n,JU:()=>s,l9:()=>l}),function(e){e[e.MultipleChoice=1]="MultipleChoice",e[e.ShortAnswer=2]="ShortAnswer",e[e.TrueOrFalse=3]="TrueOrFalse",e[e.Annotation=4]="Annotation",e[e.Image=5]="Image",e[e.MissingWord=6]="MissingWord"}(n||(n={})),function(e){e.LatestReleases="latest-releases",e.ExploreAllTopics="explore-all-topics",e.ClassificationLatestReleases="classification-latest-releases"}(r||(r={})),function(e){e.Video="video",e.Series="series",e.Playlist="playlist",e.Classification="subject",e.Company="company"}(o||(o={})),function(e){e.Pink="colour:0",e.Orange="colour:1",e.Green="colour:2",e.Blue="colour:3",e.Purple="colour:4",e.Indigo="colour:5"}(i||(i={}));var l,c,s,u,d,m,p=a(75902);!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(l||(l={})),function(e){e[e.None=1]="None",e[e.All=2]="All",e[e.Learner=3]="Learner",e[e.Teacher=4]="Teacher"}(c||(c={})),function(e){e[e.Holiday=0]="Holiday",e[e.SportingEvent=1]="SportingEvent",e[e.Observance=2]="Observance",e[e.NaturalDisaster=3]="NaturalDisaster",e[e.HistoricalEvent=4]="HistoricalEvent",e[e.BreakingNews=5]="BreakingNews",e[e.Informal=6]="Informal",e[e.ReligiousEvent=7]="ReligiousEvent",e[e.Webinar=8]="Webinar",e[e.Other=255]="Other"}(s||(s={})),function(e){e[e.Classification=0]="Classification",e[e.Webinar=1]="Webinar"}(u||(u={})),function(e){e[e.Regular=0]="Regular",e[e.Daily=1]="Daily",e[e.Weekly=2]="Weekly",e[e.Monthly=3]="Monthly",e[e.Yearly=4]="Yearly"}(d||(d={})),function(e){e[e.Owner=1]="Owner",e[e.Teacher=2]="Teacher",e[e.Student=3]="Student"}(m||(m={}))},75902:(e,t,a)=>{var n,r,o,i;a.d(t,{GL:()=>o,Yv:()=>r,ku:()=>i}),function(e){e.Any="Any",e.Level_1="Level_1",e.Level_2="Level_2",e.Level_3="Level_3",e.Level_4="Level_4"}(n||(n={})),function(e){e.Any="Any",e.Staff="Staff",e.Learner="Learner"}(r||(r={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(o||(o={})),function(e){e.Discover="discover",e.Classification="classification",e.MoviesAndTv="movies-and-tv",e.Company="company"}(i||(i={}))},9085:(e,t,a)=>{function n(e,t){return t[e.charCodeAt(0)%t.length]}a.d(t,{x:()=>n})},29768:(e,t,a)=>{a.r(t),a.d(t,{StreamableClassificationsView:()=>j});var n,r=a(32735),o=a(23481),i=a(57900),l=a(20354),c=a(2948),s=a(28400),u=a(65858),d=a(75553),m=a(49935),p=a(47770),b=a(65163),v=a(9513),g=a(38143),f=a(54610),h=a(78479),y=a(42308),E=a(21750),N=a(39151),C=a(31949),L=a(69454),S=a(55171),w=a(52641),k=a(85594);!function(e){e[e.Level_1=1]="Level_1",e[e.Level_2=2]="Level_2",e[e.Level_3=3]="Level_3",e[e.Level_4=4]="Level_4"}(n||(n={}));var T=o.T.encloseNamespace("subjects.utils"),_={isPresentation:function(e){return"learningLevel"in e},isTopicClassification:function(e){return(null==e?void 0:e.type)===k.A.Subject},getMappedPresentationLevel:function(e){return"string"==typeof e?n[e]:e},getMappedPresentationBackgroundColour:function(e){switch(_.getMappedPresentationLevel(e)){case n.Level_1:return"primary";case n.Level_3:return"secondary";default:case n.Level_2:return"tertiary"}},getPresentationLevelImage:function(e,t){switch(_.getMappedPresentationLevel(e)){case n.Level_1:if("topic-banner"===t)return S.e.Images.Level_1.TOPIC_BANNER;if("new-release-banner"===t)return S.e.Images.Level_1.NEW_RELEASES_BANNER;if("cover"===t)return S.e.Images.Level_1.TOPIC_COVER;if("tall-poster"===t)return S.e.Images.Level_1.TOPIC_TALL_POSTER;case n.Level_2:if("topic-banner"===t)return S.e.Images.Level_2.TOPIC_BANNER;if("new-release-banner"===t)return S.e.Images.Level_2.NEW_RELEASES_BANNER;if("cover"===t)return S.e.Images.Level_2.TOPIC_COVER;if("tall-poster"===t)return S.e.Images.Level_2.TOPIC_TALL_POSTER;default:case n.Level_3:if("topic-banner"===t)return S.e.Images.Level_3.TOPIC_BANNER;if("new-release-banner"===t)return S.e.Images.Level_3.NEW_RELEASES_BANNER;if("cover"===t)return S.e.Images.Level_3.TOPIC_COVER;if("tall-poster"===t)return S.e.Images.Level_3.TOPIC_TALL_POSTER;case n.Level_4:if("topic-banner"===t)return S.e.Images.Level_4.TOPIC_BANNER}},getExploreAllTopicsTitle:function(e,t){return t<w._.MULTI_PRESENTATION_THRESHOLD?T("exploreAllTopicsHeading"):T("exploreAllTopicsDynamicHeading",{presentationName:e})}},I=a(99742),O=a(96359),A=a(41135),x=a(31700);const P={classificationPane:"kx1WX"};function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var F=o.T.encloseNamespace("subjects.classificationsView");function j(e){var t,a,n,o,S,w,k,T,j,M=l.a.useBasicFetch(C.N.currentUser()),R=l.a.useBasicFetch(N.L.config()),B=l.a.useBasicFetch(x.g.streamablePresentation()),V=function(e,t,a){var n=l.a.useBasicFetch(t&&E.x.classification(t,a));return t?null==n?void 0:n.data:{name:F("exploreAllTopicsHeading"),banner:{url:_.getPresentationLevelImage(null==e?void 0:e.learningLevel,"topic-banner")}}}(null==B?void 0:B.data,e.id,null===(t=M.data)||void 0===t?void 0:t.id),H=(S=e.id,w=l.a.useBasicFetch(S&&E.x.path(S)),S?null==w?void 0:w.data:[]),U=e.id?E.x.children(e.id):B.data&&E.x.topLevelTopics(null===(a=B.data)||void 0===a?void 0:a.id),z=l.a.useBasicFetch(U),W=(k=(0,c.D)(g.g.AUDIENCE_FILTER,void 0,{storage:i.Z1.SessionStorage}),T=1,function(e){if(Array.isArray(e))return e}(k)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,o,i,l=[],c=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=o.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(k,T)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?D(e,t):void 0}}(k,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.")}())[0],X=function(e){var t=L.T.getAudienceParams(W);return{application:A.O.SUBJECTS,action:O.e.Subjects.CLASSIFICATION,args:e?[e.id,s.m.slugify(e.name)]:[],params:t||{}}},Y=(!e.id||!!V)&&!!R.data&&z.data,Z=!!H,G={presentationId:null===(n=B.data)||void 0===n?void 0:n.id,presentationName:null===(o=B.data)||void 0===o?void 0:o.name,currentClassificationName:null==V?void 0:V.name,widgetId:y.z.Classifications,templateId:h.f.CoverFixedPillListLarge};return r.createElement("main",{className:"bg-white px-3"},Y?r.createElement(d.p,{heading:null==V?void 0:V.name,banner:null==V?void 0:V.banner,imageCdnUrl:R.data.imageCdnUrl,actions:[],imageOptions:!e.id&&{size:f.h2.Large}}):r.createElement(d.v,null),r.createElement("div",{className:"py-3 mb-3 border-bottom"},Z?r.createElement(m.Oo,{breadcrumbs:(j=[{name:F("discover"),appLink:{application:A.O.DASHBOARD,action:O.e.Dashboard.HOME}},{name:F("exploreAllTopicsHeading"),appLink:{application:A.O.SUBJECTS,action:O.e.Subjects.CLASSIFICATION_ALL},active:!e.id}],H.forEach((function(e){j.push({name:e.name,appLink:X(e)})})),e.id&&j.push({name:F("subview"),active:!0}),j)}):r.createElement(m.b2,null)),r.createElement("div",{className:P.classificationPane},Y?r.createElement(p.K,{analyticsData:G,content:null==z?void 0:z.data,analyticsOptions:{location:u.LZ.SlidingListItem},appLinks:{classification:X},imageCdnUrl:R.data.imageCdnUrl,resourceThumbnailFallbackImageUrl:I.W.Fallbacks.RESOURCE_THUMBNAIL,companyLogoFallbackUrl:I.W.StreamableLearning.LOGO,subTextType:"productionCompany"}):r.createElement(b.QL,{partialLoadingComponent:v.Qh})))}},31700:(e,t,a)=>{a.d(t,{g:()=>o});var n=a(97395),r=a(25925),o={streamablePresentation:function(){return{url:n._.urlBuilder("/api/subjects/presentations/available",{type:r.R.StreamableLearning}),key:"streamable:learning:presentations",bootstrapName:"availablePresentations",formatData:function(e){return e[0]},normalizeOptions:{namespace:"internal:presentation"}}}}},68050:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(95685),r=a.n(n),o=a(32735),i=a(46304),l=a(74512);const c=o.forwardRef((({bsPrefix:e,className:t,as:a="div",...n},o)=>{const c=(0,i.vE)(e,"row"),s=(0,i.pi)(),u=(0,i.zG)(),d=`${c}-cols`,m=[];return s.forEach((e=>{const t=n[e];let a;delete n[e],null!=t&&"object"==typeof t?({cols:a}=t):a=t;const r=e!==u?`-${e}`:"";null!=a&&m.push(`${d}${r}-${a}`)})),(0,l.jsx)(a,{ref:o,...n,className:r()(t,c,...m)})}));c.displayName="Row";const s=c},10288:(e,t,a)=>{a.d(t,{YD:()=>h});var n=a(32735),r=!0,o="Invariant failed";function i(e,t){if(!e){if(r)throw new Error(o);var a="function"==typeof t?t():t,n=a?"".concat(o,": ").concat(a):o;throw new Error(n)}}function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=new Map,d=new Map,m=new Map,p=0;function b(e,t,a){void 0===a&&(a={}),a.threshold||(a.threshold=0);var n=a,r=n.root,o=n.rootMargin,l=n.threshold;if(u.has(e)&&i(!1),e){var c=function(e){return e?m.has(e)?m.get(e):(p+=1,m.set(e,p.toString()),m.get(e)+"_"):""}(r)+(o?l.toString()+"_"+o:l.toString()),s=d.get(c);s||(s=new IntersectionObserver(g,a),c&&d.set(c,s));var b={callback:t,element:e,inView:!1,observerId:c,observer:s,thresholds:s.thresholds||(Array.isArray(l)?l:[l])};return u.set(e,b),s.observe(e),b}}function v(e){if(e){var t=u.get(e);if(t){var a=t.observerId,n=t.observer,r=n.root;n.unobserve(e);var o=!1,i=!1;a&&u.forEach((function(t,n){n!==e&&(t.observerId===a&&(o=!0,i=!0),t.observer.root===r&&(i=!0))})),!i&&r&&m.delete(r),n&&!o&&n.disconnect(),u.delete(e)}}}function g(e){e.forEach((function(e){var t=e.isIntersecting,a=e.intersectionRatio,n=e.target,r=u.get(n);if(r&&a>=0){var o=r.thresholds.some((function(e){return r.inView?a>e:a>=e}));void 0!==t&&(o=o&&t),r.inView=o,r.callback(o,e)}}))}var f=function(e){var t,a;function r(){for(var t,a=arguments.length,n=new Array(a),r=0;r<a;r++)n[r]=arguments[r];return l(s(t=e.call.apply(e,[this].concat(n))||this),"state",{inView:!1,entry:void 0}),l(s(t),"node",null),l(s(t),"handleNode",(function(e){t.node&&v(t.node),t.node=e||null,t.observeNode()})),l(s(t),"handleChange",(function(e,a){(e!==t.state.inView||e)&&t.setState({inView:e,entry:a}),t.props.onChange&&t.props.onChange(e,a)})),t}a=e,(t=r).prototype=Object.create(a.prototype),t.prototype.constructor=t,t.__proto__=a;var o=r.prototype;return o.componentDidMount=function(){this.node||i(!1)},o.componentDidUpdate=function(e,t){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold||(v(this.node),this.observeNode()),t.inView!==this.state.inView&&this.state.inView&&this.props.triggerOnce&&(v(this.node),this.node=null)},o.componentWillUnmount=function(){this.node&&(v(this.node),this.node=null)},o.observeNode=function(){if(this.node){var e=this.props,t=e.threshold,a=e.root,n=e.rootMargin;b(this.node,this.handleChange,{threshold:t,root:a,rootMargin:n})}},o.render=function(){var e=this.state,t=e.inView,a=e.entry;if(!function(e){return"function"!=typeof e.children}(this.props))return this.props.children({inView:t,entry:a,ref:this.handleNode});var r=this.props,o=r.children,i=r.as,l=r.tag,s=(r.triggerOnce,r.threshold,r.root,r.rootMargin,r.onChange,function(e,t){if(null==e)return{};var a,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)a=o[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(r,["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange"]));return(0,n.createElement)(i||l||"div",c({ref:this.handleNode},s),o)},r}(n.Component);function h(e){void 0===e&&(e={});var t=(0,n.useRef)(),a=(0,n.useState)({inView:!1,entry:void 0}),r=a[0],o=a[1],i=(0,n.useCallback)((function(a){t.current&&v(t.current),a&&b(a,(function(t,n){o({inView:t,entry:n}),t&&e.triggerOnce&&v(a)}),e),t.current=a}),[e.threshold,e.root,e.rootMargin,e.triggerOnce]);return(0,n.useDebugValue)(r.inView),[i,r.inView,r.entry]}l(f,"displayName","InView"),l(f,"defaultProps",{threshold:0,triggerOnce:!1})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[587],{20455:(e,t,n)=>{n.d(t,{LB:()=>Je,y9:()=>ct,g4:()=>te,Lg:()=>ae,we:()=>de,pE:()=>D,ey:()=>S,VK:()=>A,_8:()=>R,hI:()=>B,Cj:()=>We,O1:()=>qe,Zj:()=>Ze,VT:()=>g,Dy:()=>p});var r=n(32735),o=n(12788),i=n(17592);const a={display:"none"};function s(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:a},n)}function l(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return r.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},n)}const c=(0,r.createContext)(null),u={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},d={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function f(e){let{announcements:t=d,container:n,hiddenTextDescribedById:a,screenReaderInstructions:f=u}=e;const{announce:h,announcement:v}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),g=(0,i.Ld)("DndLiveRegion"),[p,b]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{b(!0)}),[]),function(e){const t=(0,r.useContext)(c);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;h(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&h(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;h(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;h(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;h(t.onDragCancel({active:n,over:r}))}})),[h,t])),!p)return null;const m=r.createElement(r.Fragment,null,r.createElement(s,{id:a,value:f.draggable}),r.createElement(l,{id:g,announcement:v}));return n?(0,o.createPortal)(m,n):m}var h;function v(){}function g(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(h||(h={}));const b=Object.freeze({x:0,y:0});function m(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function y(e,t){const n=(0,i.DC)(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function w(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function x(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function C(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function R(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function E(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const D=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=E(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=m(E(r),o);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(w)},S=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=C(t),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=C(r),a=o.reduce(((e,t,r)=>e+m(n[r],t)),0),s=Number((a/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:s}})}}return i.sort(w)};function I(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*s;return Number((o/(n+r-o)).toFixed(4))}return 0}const M=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=I(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(x)};function N(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:b}function O(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const k=O(1);function L(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const T={ignoreTransform:!1};function A(e,t){void 0===t&&(t=T);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{getComputedStyle:t}=(0,i.Jj)(e),{transform:r,transformOrigin:o}=t(e);r&&(n=function(e,t,n){const r=L(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,l=e.left-a-(1-o)*parseFloat(n),c=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(n,r,o))}const{top:r,left:o,width:a,height:s,bottom:l,right:c}=n;return{top:r,left:o,width:a,height:s,bottom:l,right:c}}function j(e){return A(e,{ignoreTransform:!0})}function B(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,i.qk)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,i.Re)(o)||(0,i.vZ)(o))return n;if(n.includes(o))return n;const{getComputedStyle:a}=(0,i.Jj)(o),s=a(o);return o!==e&&function(e,t){void 0===t&&(t=(0,i.Jj)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,s)&&n.push(o),function(e,t){return void 0===t&&(t=(0,i.Jj)(e).getComputedStyle(e)),"fixed"===t.position}(o,s)?n:r(o.parentNode)}(e):n}function z(e){const[t]=B(e,1);return null!=t?t:null}function P(e){return i.Nq&&e?(0,i.FJ)(e)?e:(0,i.UG)(e)?(0,i.qk)(e)||e===(0,i.r3)(e).scrollingElement?window:(0,i.Re)(e)?e:null:null:null}function X(e){return(0,i.FJ)(e)?e.scrollX:e.scrollLeft}function F(e){return(0,i.FJ)(e)?e.scrollY:e.scrollTop}function V(e){return{x:X(e),y:F(e)}}var Y;function U(e){return!(!i.Nq||!e)&&e===document.scrollingElement}function J(e){const t={x:0,y:0},n=U(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Y||(Y={}));const _={x:.2,y:.2};function H(e,t,n,r,o){let{top:i,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===o&&(o=_);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=J(e),h={x:0,y:0},v={x:0,y:0},g=t.height*o.y,p=t.width*o.x;return!c&&i<=t.top+g?(h.y=Y.Backward,v.y=r*Math.abs((t.top+g-i)/g)):!u&&l>=t.bottom-g&&(h.y=Y.Forward,v.y=r*Math.abs((t.bottom-g-l)/g)),!f&&s>=t.right-p?(h.x=Y.Forward,v.x=r*Math.abs((t.right-p-s)/p)):!d&&a<=t.left+p&&(h.x=Y.Backward,v.x=r*Math.abs((t.left+p-a)/p)),{direction:h,speed:v}}function K(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function q(e){return e.reduce(((e,t)=>(0,i.IH)(e,V(t))),b)}function W(e,t){if(void 0===t&&(t=A),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);z(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const G=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+X(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+F(t)),0)}]];class ${constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=B(t),r=q(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of G)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Z{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Q(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var ee,te;function ne(e){e.preventDefault()}function re(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(ee||(ee={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(te||(te={}));const oe={start:[te.Space,te.Enter],cancel:[te.Esc],end:[te.Space,te.Enter]},ie=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case te.Right:return{...n,x:n.x+25};case te.Left:return{...n,x:n.x-25};case te.Down:return{...n,y:n.y+25};case te.Up:return{...n,y:n.y-25}}};class ae{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Z((0,i.r3)(t)),this.windowListeners=new Z((0,i.Jj)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ee.Resize,this.handleCancel),this.windowListeners.add(ee.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(ee.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&W(n),t(b)}handleKeyDown(e){if((0,i.vd)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=oe,coordinateGetter:a=ie,scrollBehavior:s="smooth"}=r,{code:l}=e;if(o.end.includes(l))return void this.handleEnd(e);if(o.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:c}=n.current,u=c?{x:c.left,y:c.top}:b;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=(0,i.$X)(d,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:a,isLeft:l,isBottom:c,maxScroll:u,minScroll:f}=J(n),h=K(n),v={x:Math.min(o===te.Right?h.right-h.width/2:h.right,Math.max(o===te.Right?h.left:h.left+h.width/2,d.x)),y:Math.min(o===te.Down?h.bottom-h.height/2:h.bottom,Math.max(o===te.Down?h.top:h.top+h.height/2,d.y))},g=o===te.Right&&!a||o===te.Left&&!l,p=o===te.Down&&!c||o===te.Up&&!i;if(g&&v.x!==d.x){const e=n.scrollLeft+t.x,i=o===te.Right&&e<=u.x||o===te.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:s});r.x=i?n.scrollLeft-e:o===te.Right?n.scrollLeft-u.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break}if(p&&v.y!==d.y){const e=n.scrollTop+t.y,i=o===te.Down&&e<=u.y||o===te.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:s});r.y=i?n.scrollTop-e:o===te.Down?n.scrollTop-u.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break}}this.handleMove(e,(0,i.IH)((0,i.$X)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function se(e){return Boolean(e&&"distance"in e)}function le(e){return Boolean(e&&"delay"in e)}ae.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=oe,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class ce{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,i.Jj)(e);return e instanceof t?e:(0,i.r3)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:a}=o;this.props=e,this.events=t,this.document=(0,i.r3)(a),this.documentListeners=new Z(this.document),this.listeners=new Z(n),this.windowListeners=new Z((0,i.Jj)(a)),this.initialCoordinates=null!=(r=(0,i.DC)(o))?r:b,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(ee.Resize,this.handleCancel),this.windowListeners.add(ee.DragStart,ne),this.windowListeners.add(ee.VisibilityChange,this.handleCancel),this.windowListeners.add(ee.ContextMenu,ne),this.documentListeners.add(ee.Keydown,this.handleKeydown),t){if(se(t))return;if(le(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(ee.Click,re,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ee.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:a,options:{activationConstraint:s}}=o;if(!r)return;const l=null!=(t=(0,i.DC)(e))?t:b,c=(0,i.$X)(r,l);if(!n&&s){if(le(s))return Q(c,s.tolerance)?this.handleCancel():void 0;if(se(s))return null!=s.tolerance&&Q(c,s.tolerance)?this.handleCancel():Q(c,s.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),a(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===te.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ue={move:{name:"pointermove"},end:{name:"pointerup"}};class de extends ce{constructor(e){const{event:t}=e,n=(0,i.r3)(t.target);super(e,ue,n)}}de.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const fe={move:{name:"mousemove"},end:{name:"mouseup"}};var he;!function(e){e[e.RightClick=2]="RightClick"}(he||(he={})),class extends ce{constructor(e){super(e,fe,(0,i.r3)(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==he.RightClick&&(null==r||r({event:n}),!0)}}];const ve={move:{name:"touchmove"},end:{name:"touchend"}};var ge,pe;(class extends ce{constructor(e){super(e,ve)}static setup(){return window.addEventListener(ve.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ve.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(ge||(ge={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(pe||(pe={}));const be={x:{[Y.Backward]:!1,[Y.Forward]:!1},y:{[Y.Backward]:!1,[Y.Forward]:!1}};var me,ye;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(me||(me={})),function(e){e.Optimized="optimized"}(ye||(ye={}));const we=new Map;function xe(e,t){return(0,i.Gj)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function Ce(e){let{callback:t,disabled:n}=e;const o=(0,i.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}function Re(e){return new $(A(e),e)}function Ee(e,t,n){void 0===t&&(t=Re);const[o,a]=(0,r.useReducer)((function(r){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i}),null),s=function(e){let{callback:t,disabled:n}=e;const o=(0,i.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),l=Ce({callback:a});return(0,i.LI)((()=>{a(),e?(null==l||l.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==s||s.disconnect())}),[e]),o}const De=[];function Se(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==b;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,i.$X)(e,n.current):b}function Ie(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const Me=[];function Ne(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,i.Re)(t)?t:e}const Oe=[{sensor:de,options:{}},{sensor:ae,options:{}}],ke={current:{}},Le={draggable:{measure:j},droppable:{measure:j,strategy:me.WhileDragging,frequency:ye.Optimized},dragOverlay:{measure:A}};class Te extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Ae={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Te,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:v},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Le,measureDroppableContainers:v,windowRect:null,measuringScheduled:!1},je={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:v,draggableNodes:new Map,over:null,measureDroppableContainers:v},Be=(0,r.createContext)(je),ze=(0,r.createContext)(Ae);function Pe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Te}}}function Xe(e,t){switch(t.type){case h.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case h.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case h.DragEnd:case h.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case h.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Te(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case h.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Te(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case h.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Te(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Fe(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:a}=(0,r.useContext)(Be),s=(0,i.D9)(o),l=(0,i.D9)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!o&&s&&null!=l){if(!(0,i.vd)(s))return;if(document.activeElement===s.target)return;const e=a.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,i.so)(e);if(t){t.focus();break}}}))}}),[o,t,a,l,s]),null}function Ve(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Ye=(0,r.createContext)({...b,scaleX:1,scaleY:1});var Ue;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ue||(Ue={}));const Je=(0,r.memo)((function(e){var t,n,a,s;let{id:l,accessibility:u,autoScroll:d=!0,children:v,sensors:g=Oe,collisionDetection:p=M,measuring:m,modifiers:y,...w}=e;const x=(0,r.useReducer)(Xe,void 0,Pe),[C,E]=x,[D,S]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[I,O]=(0,r.useState)(Ue.Uninitialized),L=I===Ue.Initialized,{draggable:{active:T,nodes:j,translate:X},droppable:{containers:F}}=C,J=T?j.get(T):null,_=(0,r.useRef)({initial:null,translated:null}),K=(0,r.useMemo)((()=>{var e;return null!=T?{id:T,data:null!=(e=null==J?void 0:J.data)?e:ke,rect:_}:null}),[T,J]),W=(0,r.useRef)(null),[G,Z]=(0,r.useState)(null),[Q,ee]=(0,r.useState)(null),te=(0,i.Ey)(w,Object.values(w)),ne=(0,i.Ld)("DndDescribedBy",l),re=(0,r.useMemo)((()=>F.getEnabled()),[F]),oe=(ie=m,(0,r.useMemo)((()=>({draggable:{...Le.draggable,...null==ie?void 0:ie.draggable},droppable:{...Le.droppable,...null==ie?void 0:ie.droppable},dragOverlay:{...Le.dragOverlay,...null==ie?void 0:ie.dragOverlay}})),[null==ie?void 0:ie.draggable,null==ie?void 0:ie.droppable,null==ie?void 0:ie.dragOverlay]));var ie;const{droppableRects:ae,measureDroppableContainers:se,measuringScheduled:le}=function(e,t){let{dragging:n,dependencies:o,config:a}=t;const[s,l]=(0,r.useState)(null),c=null!=s,{frequency:u,measure:d,strategy:f}=a,h=(0,r.useRef)(e),v=function(){switch(f){case me.Always:return!1;case me.BeforeDragging:return n;default:return!n}}(),g=(0,i.Ey)(v),p=(0,r.useCallback)((function(e){void 0===e&&(e=[]),g.current||l((t=>t?t.concat(e):e))}),[g]),b=(0,r.useRef)(null),m=(0,i.Gj)((t=>{if(v&&!n)return we;const r=s;if(!t||t===we||h.current!==e||null!=r){const t=new Map;for(let n of e){if(!n)continue;if(r&&r.length>0&&!r.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,o=e?new $(d(e),e):null;n.rect.current=o,o&&t.set(n.id,o)}return t}return t}),[e,s,n,v,d]);return(0,r.useEffect)((()=>{h.current=e}),[e]),(0,r.useEffect)((()=>{v||requestAnimationFrame((()=>p()))}),[n,v]),(0,r.useEffect)((()=>{c&&l(null)}),[c]),(0,r.useEffect)((()=>{v||"number"!=typeof u||null!==b.current||(b.current=setTimeout((()=>{p(),b.current=null}),u))}),[u,v,p,...o]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:c}}(re,{dragging:L,dependencies:[X.x,X.y],config:oe.droppable}),ce=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,i.Gj)((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(j,T),ue=(0,r.useMemo)((()=>Q?(0,i.DC)(Q):null),[Q]),de=function(){const e=!1===(null==G?void 0:G.autoScrollEnabled),t="object"==typeof d?!1===d.enabled:!1===d,n=L&&!e&&!t;return"object"==typeof d?{...d,enabled:n}:{enabled:n}}(),fe=function(e,t){return xe(e,t)}(ce,oe.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:a=!0}=e;const s=(0,r.useRef)(!1),{x:l,y:c}="boolean"==typeof a?{x:a,y:a}:a;(0,i.LI)((()=>{if(!l&&!c||!t)return void(s.current=!1);if(s.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=N(n(e),o);if(l||(r.x=0),c||(r.y=0),s.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=z(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,l,c,o,n])}({activeNode:T?j.get(T):null,config:de.layoutShiftCompensation,initialRect:fe,measure:oe.draggable.measure});const he=Ee(ce,oe.draggable.measure,fe),ve=Ee(ce?ce.parentElement:null),ye=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ce,collisionRect:null,collisions:null,droppableRects:ae,draggableNodes:j,draggingNode:null,draggingNodeRect:null,droppableContainers:F,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Re=F.getNodeFor(null==(t=ye.current.over)?void 0:t.id),Te=function(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),a=Ce({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,i.Re)(n)){o((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),s=(0,r.useCallback)((e=>{const n=Ne(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),o(n?t(n):null)}),[t,a]),[l,c]=(0,i.wm)(s);return(0,r.useMemo)((()=>({nodeRef:l,rect:n,setRef:c})),[n,l,c])}({measure:oe.dragOverlay.measure}),Ae=null!=(n=Te.nodeRef.current)?n:ce,je=L?null!=(a=Te.rect)?a:he:null,Je=Boolean(Te.nodeRef.current&&Te.rect),_e=N(He=Je?null:he,xe(He));var He;const Ke=Ie(Ae?(0,i.Jj)(Ae):null),qe=function(e){const t=(0,r.useRef)(e),n=(0,i.Gj)((n=>e?n&&n!==De&&e&&t.current&&e.parentNode===t.current.parentNode?n:B(e):De),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(L?null!=Re?Re:ce:null),We=function(e,t){void 0===t&&(t=A);const[n]=e,o=Ie(n?(0,i.Jj)(n):null),[a,s]=(0,r.useReducer)((function(){return e.length?e.map((e=>U(e)?o:new $(t(e),e))):Me}),Me),l=Ce({callback:s});return e.length>0&&a===Me&&s(),(0,i.LI)((()=>{e.length?e.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),s())}),[e]),a}(qe),Ge=Ve(y,{transform:{x:X.x-_e.x,y:X.y-_e.y,scaleX:1,scaleY:1},activatorEvent:Q,active:K,activeNodeRect:he,containerNodeRect:ve,draggingNodeRect:je,over:ye.current.over,overlayNodeRect:Te.rect,scrollableAncestors:qe,scrollableAncestorRects:We,windowRect:Ke}),$e=ue?(0,i.IH)(ue,X):null,Ze=function(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),a=(0,r.useCallback)((e=>{const t=P(e.target);t&&n((e=>e?(e.set(t,V(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=o.current;if(e!==t){r(t);const i=e.map((e=>{const t=P(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,V(t)]):null})).filter((e=>null!=e));n(i.length?new Map(i):null),o.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=P(e);null==t||t.removeEventListener("scroll",a)}))}}),[a,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,i.IH)(e,t)),b):q(e):b),[e,t])}(qe),Qe=Se(Ze),et=Se(Ze,[he]),tt=(0,i.IH)(Ge,Qe),nt=je?k(je,Ge):null,rt=K&&nt?p({active:K,collisionRect:nt,droppableRects:ae,droppableContainers:re,pointerCoordinates:$e}):null,ot=R(rt,"id"),[it,at]=(0,r.useState)(null),st=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Je?Ge:(0,i.IH)(Ge,et),null!=(s=null==it?void 0:it.rect)?s:null,he),lt=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==W.current)return;const i=j.get(W.current);if(!i)return;const a=e.nativeEvent,s=new n({active:W.current,activeNode:i,event:a,options:r,context:ye,onStart(e){const t=W.current;if(null==t)return;const n=j.get(t);if(!n)return;const{onDragStart:r}=te.current,i={active:{id:t,data:n.data,rect:_}};(0,o.unstable_batchedUpdates)((()=>{null==r||r(i),O(Ue.Initializing),E({type:h.DragStart,initialCoordinates:e,active:t}),D({type:"onDragStart",event:i})}))},onMove(e){E({type:h.DragMove,coordinates:e})},onEnd:l(h.DragEnd),onCancel:l(h.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=ye.current;let s=null;if(t&&i){const{cancelDrop:o}=te.current;s={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===h.DragEnd&&"function"==typeof o&&await Promise.resolve(o(s))&&(e=h.DragCancel)}W.current=null,(0,o.unstable_batchedUpdates)((()=>{E({type:e}),O(Ue.Uninitialized),at(null),Z(null),ee(null);const t=e===h.DragEnd?"onDragEnd":"onDragCancel";if(s){const e=te.current[t];null==e||e(s),D({type:t,event:s})}}))}}(0,o.unstable_batchedUpdates)((()=>{Z(s),ee(e.nativeEvent)}))}),[j]),ct=(0,r.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=j.get(r);if(null!==W.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},W.current=r,lt(n,t))}),[j,lt]),ut=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(g,ct);!function(e){(0,r.useEffect)((()=>{if(!i.Nq)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(g),(0,i.LI)((()=>{he&&I===Ue.Initializing&&O(Ue.Initialized)}),[he,I]),(0,r.useEffect)((()=>{const{onDragMove:e}=te.current,{active:t,activatorEvent:n,collisions:r,over:i}=ye.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:tt.x,y:tt.y},over:i};(0,o.unstable_batchedUpdates)((()=>{null==e||e(a),D({type:"onDragMove",event:a})}))}),[tt.x,tt.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=ye.current;if(!e||null==W.current||!t||!i)return;const{onDragOver:a}=te.current,s=r.get(ot),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:l};(0,o.unstable_batchedUpdates)((()=>{at(l),null==a||a(c),D({type:"onDragOver",event:c})}))}),[ot]),(0,i.LI)((()=>{ye.current={activatorEvent:Q,active:K,activeNode:ce,collisionRect:nt,collisions:rt,droppableRects:ae,draggableNodes:j,draggingNode:Ae,draggingNodeRect:je,droppableContainers:F,over:it,scrollableAncestors:qe,scrollAdjustedTranslate:tt},_.current={initial:je,translated:nt}}),[K,ce,rt,nt,j,Ae,je,ae,F,it,qe,tt]),function(e){let{acceleration:t,activator:n=ge.Pointer,canScroll:o,draggingRect:a,enabled:s,interval:l=5,order:c=pe.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:f,delta:h,threshold:v}=e;const g=function(e){let{delta:t,disabled:n}=e;const r=(0,i.D9)(t);return(0,i.Gj)((e=>{if(n||!r||!e)return be;const o=Math.sign(t.x-r.x),i=Math.sign(t.y-r.y);return{x:{[Y.Backward]:e.x[Y.Backward]||-1===o,[Y.Forward]:e.x[Y.Forward]||1===o},y:{[Y.Backward]:e.y[Y.Backward]||-1===i,[Y.Forward]:e.y[Y.Forward]||1===i}}}),[n,t,r])}({delta:h,disabled:!s}),[p,b]=(0,i.Yz)(),m=(0,r.useRef)({x:0,y:0}),y=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case ge.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case ge.DraggableRect:return a}}),[n,a,u]),x=(0,r.useRef)(null),C=(0,r.useCallback)((()=>{const e=x.current;if(!e)return;const t=m.current.x*y.current.x,n=m.current.y*y.current.y;e.scrollBy(t,n)}),[]),R=(0,r.useMemo)((()=>c===pe.TreeOrder?[...d].reverse():d),[c,d]);(0,r.useEffect)((()=>{if(s&&d.length&&w){for(const e of R){if(!1===(null==o?void 0:o(e)))continue;const n=d.indexOf(e),r=f[n];if(!r)continue;const{direction:i,speed:a}=H(e,r,w,t,v);for(const e of["x","y"])g[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return b(),x.current=e,p(C,l),m.current=a,void(y.current=i)}m.current={x:0,y:0},y.current={x:0,y:0},b()}else b()}),[t,C,o,b,s,l,JSON.stringify(w),JSON.stringify(g),p,d,R,f,JSON.stringify(v)])}({...de,delta:X,draggingRect:nt,pointerCoordinates:$e,scrollableAncestors:qe,scrollableAncestorRects:We});const dt=(0,r.useMemo)((()=>({active:K,activeNode:ce,activeNodeRect:he,activatorEvent:Q,collisions:rt,containerNodeRect:ve,dragOverlay:Te,draggableNodes:j,droppableContainers:F,droppableRects:ae,over:it,measureDroppableContainers:se,scrollableAncestors:qe,scrollableAncestorRects:We,measuringConfiguration:oe,measuringScheduled:le,windowRect:Ke})),[K,ce,he,Q,rt,ve,Te,j,F,ae,it,se,qe,We,oe,le,Ke]),ft=(0,r.useMemo)((()=>({activatorEvent:Q,activators:ut,active:K,activeNodeRect:he,ariaDescribedById:{draggable:ne},dispatch:E,draggableNodes:j,over:it,measureDroppableContainers:se})),[Q,ut,K,he,E,ne,j,it,se]);return r.createElement(c.Provider,{value:S},r.createElement(Be.Provider,{value:ft},r.createElement(ze.Provider,{value:dt},r.createElement(Ye.Provider,{value:st},v)),r.createElement(Fe,{disabled:!1===(null==u?void 0:u.restoreFocus)})),r.createElement(f,{...u,hiddenTextDescribedById:ne}))})),_e=(0,r.createContext)(null),He="button",Ke="Droppable";function qe(e){let{id:t,data:n,disabled:o=!1,attributes:a}=e;const s=(0,i.Ld)(Ke),{activators:l,activatorEvent:c,active:u,activeNodeRect:d,ariaDescribedById:f,draggableNodes:h,over:v}=(0,r.useContext)(Be),{role:g=He,roleDescription:p="draggable",tabIndex:b=0}=null!=a?a:{},m=(null==u?void 0:u.id)===t,y=(0,r.useContext)(m?Ye:_e),[w,x]=(0,i.wm)(),[C,R]=(0,i.wm)(),E=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e}),{})),[e,t])}(l,t),D=(0,i.Ey)(n);return(0,i.LI)((()=>(h.set(t,{id:t,key:s,node:w,activatorNode:C,data:D}),()=>{const e=h.get(t);e&&e.key===s&&h.delete(t)})),[h,t]),{active:u,activatorEvent:c,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:g,tabIndex:b,"aria-disabled":o,"aria-pressed":!(!m||g!==He)||void 0,"aria-roledescription":p,"aria-describedby":f.draggable})),[o,g,b,m,p,f.draggable]),isDragging:m,listeners:o?void 0:E,node:w,over:v,setNodeRef:x,setActivatorNodeRef:R,transform:y}}function We(){return(0,r.useContext)(ze)}const Ge="Droppable",$e={timeout:25};function Ze(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:a}=e;const s=(0,i.Ld)(Ge),{active:l,dispatch:c,over:u,measureDroppableContainers:d}=(0,r.useContext)(Be),f=(0,r.useRef)({disabled:n}),v=(0,r.useRef)(!1),g=(0,r.useRef)(null),p=(0,r.useRef)(null),{disabled:b,updateMeasurementsFor:m,timeout:y}={...$e,...a},w=(0,i.Ey)(null!=m?m:o),x=Ce({callback:(0,r.useCallback)((()=>{v.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),p.current=null}),y)):v.current=!0}),[y]),disabled:b||!l}),C=(0,r.useCallback)(((e,t)=>{x&&(t&&(x.unobserve(t),v.current=!1),e&&x.observe(e))}),[x]),[R,E]=(0,i.wm)(C),D=(0,i.Ey)(t);return(0,r.useEffect)((()=>{x&&R.current&&(x.disconnect(),v.current=!1,x.observe(R.current))}),[R,x]),(0,i.LI)((()=>(c({type:h.RegisterDroppable,element:{id:o,key:s,disabled:n,node:R,rect:g,data:D}}),()=>c({type:h.UnregisterDroppable,key:s,id:o}))),[o]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(c({type:h.SetDroppableDisabled,id:o,key:s,disabled:n}),f.current.disabled=n)}),[o,s,n,c]),{active:l,rect:g,isOver:(null==u?void 0:u.id)===o,node:R,over:u,setNodeRef:E}}function Qe(e){let{animation:t,children:n}=e;const[o,a]=(0,r.useState)(null),[s,l]=(0,r.useState)(null),c=(0,i.D9)(n);return n||o||!c||a(c),(0,i.LI)((()=>{if(!s)return;const e=null==o?void 0:o.key,n=null==o?void 0:o.props.id;null!=e&&null!=n?Promise.resolve(t(n,s)).then((()=>{a(null)})):a(null)}),[t,o,s]),r.createElement(r.Fragment,null,n,o?(0,r.cloneElement)(o,{ref:l}):null)}const et={x:0,y:0,scaleX:1,scaleY:1};function tt(e){let{children:t}=e;return r.createElement(Be.Provider,{value:je},r.createElement(Ye.Provider,{value:et},t))}const nt={position:"fixed",touchAction:"none"},rt=e=>(0,i.vd)(e)?"transform 250ms ease":void 0,ot=(0,r.forwardRef)(((e,t)=>{let{as:n,activatorEvent:o,adjustScale:a,children:s,className:l,rect:c,style:u,transform:d,transition:f=rt}=e;if(!c)return null;const h=a?d:{...d,scaleX:1,scaleY:1},v={...nt,width:c.width,height:c.height,top:c.top,left:c.left,transform:i.ux.Transform.toString(h),transformOrigin:a&&o?y(o,c):void 0,transition:"function"==typeof f?f(o):f,...u};return r.createElement(n,{className:l,style:v,ref:t},s)})),it=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:i,className:a}=e;if(null!=i&&i.active)for(const[e,t]of Object.entries(i.active))void 0!==t&&(o[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(const[e,t]of Object.entries(i.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(o))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},at={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:i.ux.Transform.toString(t)},{transform:i.ux.Transform.toString(n)}]},sideEffects:it({styles:{active:{opacity:"0"}}})};let st=0;function lt(e){return(0,r.useMemo)((()=>{if(null!=e)return st++,st}),[e])}const ct=r.memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:a,transition:s,modifiers:l,wrapperElement:c="div",className:u,zIndex:d=999}=e;const{activatorEvent:f,active:h,activeNodeRect:v,containerNodeRect:g,draggableNodes:p,droppableContainers:b,dragOverlay:m,over:y,measuringConfiguration:w,scrollableAncestors:x,scrollableAncestorRects:C,windowRect:R}=We(),E=(0,r.useContext)(Ye),D=lt(null==h?void 0:h.id),S=Ve(l,{activatorEvent:f,active:h,activeNodeRect:v,containerNodeRect:g,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:x,scrollableAncestorRects:C,transform:E,windowRect:R}),I=xe(v),M=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return(0,i.zX)(((e,a)=>{if(null===t)return;const s=n.get(e);if(!s)return;const l=s.node.current;if(!l)return;const c=Ne(a);if(!c)return;const{transform:u}=(0,i.Jj)(a).getComputedStyle(a),d=L(u);if(!d)return;const f="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...at,...e};return e=>{let{active:i,dragOverlay:a,transform:s,...l}=e;if(!t)return;const c=a.rect.left-i.rect.left,u=a.rect.top-i.rect.top,d={scaleX:1!==s.scaleX?i.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?i.rect.height*s.scaleY/a.rect.height:1},f={x:s.x-c,y:s.y-u,...d},h=o({...l,active:i,dragOverlay:a,transform:{initial:s,final:f}}),[v]=h,g=h[h.length-1];if(JSON.stringify(v)===JSON.stringify(g))return;const p=null==r?void 0:r({active:i,dragOverlay:a,...l}),b=a.node.animate(h,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{b.onfinish=()=>{null==p||p(),e()}}))}}(t);return W(l,o.draggable.measure),f({active:{id:e,data:s.data,node:l,rect:o.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:a,rect:o.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:o,transform:d})}))}({config:o,draggableNodes:p,droppableContainers:b,measuringConfiguration:w}),N=I?m.setRef:void 0;return r.createElement(tt,null,r.createElement(Qe,{animation:M},h&&D?r.createElement(ot,{key:D,id:h.id,ref:N,as:c,activatorEvent:f,adjustScale:t,className:u,transition:s,rect:I,style:{zIndex:d,...a},transform:S},n):null))}))},95339:(e,t,n)=>{n.d(t,{DL:()=>r}),n(17592);const r=({transform:e})=>({...e,x:0})},67445:(e,t,n)=>{n.d(t,{Fo:()=>v,U2:()=>c,is:()=>E,nB:()=>x,qw:()=>d});var r=n(32735),o=n(20455),i=n(17592);function a(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function s(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function l(e){return null!==e&&e>=0}const c=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=a(t,r,n),s=t[o],l=i[o];return l&&s?{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}:null},u={scaleX:1,scaleY:1},d=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const s=null!=(t=i[n])?t:r;if(!s)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(s.top+s.height):e.top-s.top,...u}:null}const l=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?n<t?o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}(i,o,n);return o>n&&o<=a?{x:0,y:-s.height-l,...u}:o<n&&o>=a?{x:0,y:s.height+l,...u}:{x:0,y:0,...u}},f="Sortable",h=r.createContext({activeIndex:-1,containerId:f,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:c,disabled:{draggable:!1,droppable:!1}});function v(e){let{children:t,id:n,items:a,strategy:l=c,disabled:u=!1}=e;const{active:d,dragOverlay:v,droppableRects:g,over:p,measureDroppableContainers:b,measuringScheduled:m}=(0,o.Cj)(),y=(0,i.Ld)(f,n),w=Boolean(null!==v.rect),x=(0,r.useMemo)((()=>a.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[a]),C=null!=d,R=d?x.indexOf(d.id):-1,E=p?x.indexOf(p.id):-1,D=(0,r.useRef)(x),S=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(x,D.current),I=-1!==E&&-1===R||S,M=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(u);(0,i.LI)((()=>{S&&C&&!m&&b(x)}),[S,x,C,b,m]),(0,r.useEffect)((()=>{D.current=x}),[x]);const N=(0,r.useMemo)((()=>({activeIndex:R,containerId:y,disabled:M,disableTransforms:I,items:x,overIndex:E,useDragOverlay:w,sortedRects:s(x,g),strategy:l})),[R,y,M.draggable,M.droppable,I,x,E,g,w,l]);return r.createElement(h.Provider,{value:N},t)}const g=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return a(n,r,o).indexOf(t)},p=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!(!c||!r||s!==i&&o===a||!n&&(a===o||t!==l))},b={duration:200,easing:"ease"},m="transform",y=i.ux.Transition.toString({property:m,duration:0,easing:"linear"}),w={roleDescription:"sortable"};function x(e){let{animateLayoutChanges:t=p,attributes:n,disabled:a,data:s,getNewIndex:c=g,id:u,strategy:d,resizeObserverConfig:f,transition:v=b}=e;const{items:x,containerId:C,activeIndex:R,disabled:E,disableTransforms:D,sortedRects:S,overIndex:I,useDragOverlay:M,strategy:N}=(0,r.useContext)(h),O=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(a,E),k=x.indexOf(u),L=(0,r.useMemo)((()=>({sortable:{containerId:C,index:k,items:x},...s})),[C,s,k,x]),T=(0,r.useMemo)((()=>x.slice(x.indexOf(u))),[x,u]),{rect:A,node:j,isOver:B,setNodeRef:z}=(0,o.Zj)({id:u,data:L,disabled:O.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...f}}),{active:P,activatorEvent:X,activeNodeRect:F,attributes:V,setNodeRef:Y,listeners:U,isDragging:J,over:_,setActivatorNodeRef:H,transform:K}=(0,o.O1)({id:u,data:L,attributes:{...w,...n},disabled:O.draggable}),q=(0,i.HB)(z,Y),W=Boolean(P),G=W&&!D&&l(R)&&l(I),$=!M&&J,Z=$&&G?K:null,Q=G?null!=Z?Z:(null!=d?d:N)({rects:S,activeNodeRect:F,activeIndex:R,overIndex:I,index:k}):null,ee=l(R)&&l(I)?c({id:u,items:x,activeIndex:R,overIndex:I}):k,te=null==P?void 0:P.id,ne=(0,r.useRef)({activeId:te,items:x,newIndex:ee,containerId:C}),re=x!==ne.current.items,oe=t({active:P,containerId:C,isDragging:J,isSorting:W,id:u,index:k,items:x,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:v,wasDragging:null!=ne.current.activeId}),ie=function(e){let{disabled:t,index:n,node:a,rect:s}=e;const[l,c]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,i.LI)((()=>{if(!t&&n!==u.current&&a.current){const e=s.current;if(e){const t=(0,o.VK)(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)}),[t,n,a,s]),(0,r.useEffect)((()=>{l&&requestAnimationFrame((()=>{c(null)}))}),[l]),l}({disabled:!oe,index:k,node:j,rect:A});return(0,r.useEffect)((()=>{W&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),C!==ne.current.containerId&&(ne.current.containerId=C),x!==ne.current.items&&(ne.current.items=x)}),[W,ee,C,x]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:P,activeIndex:R,attributes:V,data:L,rect:A,index:k,newIndex:ee,items:x,isOver:B,isSorting:W,isDragging:J,listeners:U,node:j,overIndex:I,over:_,setNodeRef:q,setActivatorNodeRef:H,setDroppableNodeRef:z,setDraggableNodeRef:Y,transform:null!=ie?ie:Q,transition:ie||re&&ne.current.newIndex===k?y:$&&!(0,i.vd)(X)||!v?void 0:W||oe?i.ux.Transition.toString({...v,property:m}):void 0}}function C(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const R=[o.g4.Down,o.g4.Right,o.g4.Up,o.g4.Left],E=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:a,droppableContainers:s,over:l,scrollableAncestors:c}}=t;if(R.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];s.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const i=a.get(n.id);if(i)switch(e.code){case o.g4.Down:r.top<i.top&&t.push(n);break;case o.g4.Up:r.top>i.top&&t.push(n);break;case o.g4.Left:r.left>i.left&&t.push(n);break;case o.g4.Right:r.left<i.left&&t.push(n)}}));const f=(0,o.ey)({active:n,collisionRect:r,droppableRects:a,droppableContainers:t,pointerCoordinates:null});let h=(0,o._8)(f,"id");if(h===(null==l?void 0:l.id)&&f.length>1&&(h=f[1].id),null!=h){const e=s.get(n.id),t=s.get(h),l=t?a.get(t.id):null,f=null==t?void 0:t.node.current;if(f&&l&&e&&t){const n=(0,o.hI)(f).some(((e,t)=>c[t]!==e)),a=D(e,t),s=(d=t,!(!C(u=e)||!C(d))&&!!D(u,d)&&u.data.current.sortable.index<d.data.current.sortable.index),h=n||!a?{x:0,y:0}:{x:s?r.width-l.width:0,y:s?r.height-l.height:0},v={x:l.left,y:l.top};return h.x&&h.y?v:(0,i.$X)(v,h)}}}var u,d};function D(e,t){return!(!C(e)||!C(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},17592:(e,t,n)=>{n.d(t,{$X:()=>E,D9:()=>y,DC:()=>S,Ey:()=>p,FJ:()=>a,Gj:()=>b,HB:()=>o,IH:()=>R,Jj:()=>l,LI:()=>h,Ld:()=>x,Nq:()=>i,Re:()=>u,UG:()=>s,Yz:()=>g,qk:()=>c,r3:()=>f,so:()=>N,ux:()=>I,vZ:()=>d,vd:()=>D,wm:()=>m,zX:()=>v});var r=n(32735);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}const i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function s(e){return"nodeType"in e}function l(e){var t,n;return e?a(e)?e:s(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){const{Document:t}=l(e);return e instanceof t}function u(e){return!a(e)&&e instanceof l(e).HTMLElement}function d(e){return e instanceof l(e).SVGElement}function f(e){return e?a(e)?e.document:s(e)?c(e)?e:u(e)||d(e)?e.ownerDocument:document:document:document}const h=i?r.useLayoutEffect:r.useEffect;function v(e){const t=(0,r.useRef)(e);return h((()=>{t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function g(){const e=(0,r.useRef)(null);return[(0,r.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function p(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return h((()=>{n.current!==e&&(n.current=e)}),t),n}function b(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function m(e){const t=v(e),n=(0,r.useRef)(null),o=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,o]}function y(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function x(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n}),[e,t])}function C(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const R=C(1),E=C(-1);function D(e){if(!e)return!1;const{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function S(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=l(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const I=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[I.Translate.toString(e),I.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),M="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function N(e){return e.matches(M)?e:e.querySelector(M)}},68050:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(95685),o=n.n(r),i=n(32735),a=n(46304),s=n(74512);const l=i.forwardRef((({bsPrefix:e,className:t,as:n="div",...r},i)=>{const l=(0,a.vE)(e,"row"),c=(0,a.pi)(),u=(0,a.zG)(),d=`${l}-cols`,f=[];return c.forEach((e=>{const t=r[e];let n;delete r[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const o=e!==u?`-${e}`:"";null!=n&&f.push(`${d}${o}-${n}`)})),(0,s.jsx)(n,{ref:i,...r,className:o()(t,l,...f)})}));l.displayName="Row";const c=l},10288:(e,t,n)=>{n.d(t,{YD:()=>m});var r=n(32735),o=!0,i="Invariant failed";function a(e,t){if(!e){if(o)throw new Error(i);var n="function"==typeof t?t():t,r=n?"".concat(i,": ").concat(n):i;throw new Error(r)}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=new Map,d=new Map,f=new Map,h=0;function v(e,t,n){void 0===n&&(n={}),n.threshold||(n.threshold=0);var r=n,o=r.root,i=r.rootMargin,s=r.threshold;if(u.has(e)&&a(!1),e){var l=function(e){return e?f.has(e)?f.get(e):(h+=1,f.set(e,h.toString()),f.get(e)+"_"):""}(o)+(i?s.toString()+"_"+i:s.toString()),c=d.get(l);c||(c=new IntersectionObserver(p,n),l&&d.set(l,c));var v={callback:t,element:e,inView:!1,observerId:l,observer:c,thresholds:c.thresholds||(Array.isArray(s)?s:[s])};return u.set(e,v),c.observe(e),v}}function g(e){if(e){var t=u.get(e);if(t){var n=t.observerId,r=t.observer,o=r.root;r.unobserve(e);var i=!1,a=!1;n&&u.forEach((function(t,r){r!==e&&(t.observerId===n&&(i=!0,a=!0),t.observer.root===o&&(a=!0))})),!a&&o&&f.delete(o),r&&!i&&r.disconnect(),u.delete(e)}}}function p(e){e.forEach((function(e){var t=e.isIntersecting,n=e.intersectionRatio,r=e.target,o=u.get(r);if(o&&n>=0){var i=o.thresholds.some((function(e){return o.inView?n>e:n>=e}));void 0!==t&&(i=i&&t),o.inView=i,o.callback(i,e)}}))}var b=function(e){var t,n;function o(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return s(c(t=e.call.apply(e,[this].concat(r))||this),"state",{inView:!1,entry:void 0}),s(c(t),"node",null),s(c(t),"handleNode",(function(e){t.node&&g(t.node),t.node=e||null,t.observeNode()})),s(c(t),"handleChange",(function(e,n){(e!==t.state.inView||e)&&t.setState({inView:e,entry:n}),t.props.onChange&&t.props.onChange(e,n)})),t}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=o.prototype;return i.componentDidMount=function(){this.node||a(!1)},i.componentDidUpdate=function(e,t){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold||(g(this.node),this.observeNode()),t.inView!==this.state.inView&&this.state.inView&&this.props.triggerOnce&&(g(this.node),this.node=null)},i.componentWillUnmount=function(){this.node&&(g(this.node),this.node=null)},i.observeNode=function(){if(this.node){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin;v(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r})}},i.render=function(){var e=this.state,t=e.inView,n=e.entry;if(!function(e){return"function"!=typeof e.children}(this.props))return this.props.children({inView:t,entry:n,ref:this.handleNode});var o=this.props,i=o.children,a=o.as,s=o.tag,c=(o.triggerOnce,o.threshold,o.root,o.rootMargin,o.onChange,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(o,["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange"]));return(0,r.createElement)(a||s||"div",l({ref:this.handleNode},c),i)},o}(r.Component);function m(e){void 0===e&&(e={});var t=(0,r.useRef)(),n=(0,r.useState)({inView:!1,entry:void 0}),o=n[0],i=n[1],a=(0,r.useCallback)((function(n){t.current&&g(t.current),n&&v(n,(function(t,r){i({inView:t,entry:r}),t&&e.triggerOnce&&g(n)}),e),t.current=n}),[e.threshold,e.root,e.rootMargin,e.triggerOnce]);return(0,r.useDebugValue)(o.inView),[a,o.inView,o.entry]}s(b,"displayName","InView"),s(b,"defaultProps",{threshold:0,triggerOnce:!1})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[596],{53855:(e,t,n)=>{"use strict";n.d(t,{W:()=>l,f:()=>s});var r=n(32735),a=n(83914),c=n(35223);const o="VSAPU",i="kgeXh";var s;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(s||(s={}));var l=r.memo((function(e){var t,n,l,u=e.direction===s.Left,d=u?c.vn.ChevronLeft:c.vn.ChevronRight;return e.hide?r.createElement(r.Fragment,null):r.createElement("div",{className:"_ejId",style:"videos"===(null===(n=e.state)||void 0===n?void 0:n.contents)?{paddingBottom:56.25/(null===(l=e.state)||void 0===l?void 0:l.viewableItems)+"%"}:{height:"100%"}},e.useGradientBackdrop&&r.createElement("div",{className:u?"".concat("Pt3nx"," ").concat(e.leftGradientClassName):"".concat("ZuAif"," ").concat(e.rightGradientClassName)}),!e.hideExtendedClickableArea&&r.createElement("div",{role:"button",onClick:e.onClick,className:"".concat("AtsWP"," ").concat(u?o:i)}),r.createElement("div",{role:"button",className:"".concat((t="BVcIS",t+=u?" ".concat(o," ").concat(e.leftButtonClassName):" ".concat(i," ").concat(e.rightButtonClassName))," ").concat("gAsE9"," ").concat(e.className||""),onClick:e.onClick},e.hoverText&&r.createElement("span",{className:"ps-3 pe-2 ".concat("APA36")},e.hoverText),r.createElement(a.x,{svgName:d,size:a.S.Medium,className:"svg-container d-inline-block ".concat("Ev4hr")})))}))},78417:(e,t,n)=>{"use strict";var r;n.d(t,{r:()=>r}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(r||(r={}))},1164:(e,t,n)=>{"use strict";var r;n.d(t,{L:()=>r}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(r||(r={}))},11565:(e,t,n)=>{"use strict";n.d(t,{R:()=>f});var r,a,c=n(99940),o=n(97395),i=n(62803),s=n(5960),l=n(4594),u=n(78417);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget"}(r||(r={})),n(57900),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(a||(a={})),a.RecentlyAdded;var d=function(e,t){return o._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:i.v.VIDEO})},v=function(e,t){return o._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating",permissionFilterOption:u.r.StripMetadata,shareId:t})},m=function(e){return o._.urlBuilder("{gateway}/v1/objects",{"query.video":i.v.VIDEO_COLLECTION,"query.clip":i.v.CLIP_COLLECTION,"query.interactive":i.v.INTERACTIVE,id:e})},p=function(e){var t=e.videoId,n=e.context,a=e.collectionId,c=e.moviesAndTv,s={videoId:t,limit:e.limit,query:i.v.VIDEO_COLLECTION};return n&&(n===r.Widget?s["context.widgetId"]=a:(s["context.collectionType"]=n,s["context.collectionId"]=a)),c&&(s["context.moviesAndTv"]=!0),o._.urlBuilder("{gateway}/v1/suggestions/related-videos",s)},f={video:function(e,t){return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:i.v.VIDEO,permissionFilterOption:t}),publicUrl:o._.urlBuilder("/api/objects/".concat(e),{query:i.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t),formatData:function(e){var t,n;return(null===(t=e.interactives)||void 0===t?void 0:t.data)&&(e.interactives.data=e.interactives.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),(null===(n=e.clips)||void 0===n?void 0:n.data)&&(e.clips.data=e.clips.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),e}}},publicVideo:function(e,t,n,r){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:r}},sharedVideo:function(e,t,n,r){return{url:d(e,t),key:"shared:video:".concat(e),formatData:function(e){var t,n;return(null===(t=e.interactives)||void 0===t?void 0:t.data)&&(e.interactives.data=e.interactives.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),(null===(n=e.clips)||void 0===n?void 0:n.data)&&(e.clips.data=e.clips.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),e},success:n,error:r}},myVideos:function(e,t){var n=i.v.VIDEO_COLLECTION,r=i.v.CLIP_COLLECTION,a=i.v.INTERACTIVE,c="videos[".concat(n,"]{libraries.typeid:").concat(l.E.WorkspaceCollection,"}"),d="clips[".concat(r,"]"),v="interactives[".concat(a,"]{status:[").concat(s.X.Published,",").concat(s.X.Draft,"]}"),m={query:"(".concat(c,"|").concat(d,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:u.r.StripMetadata};return t&&(m.cursor=t),{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),m),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:m(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:m(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,n,r,a){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:c.k.PUT,data:t,success:n,error:r,always:a}},videoRatings:function(e,t){var n=e.map((function(e){return"id=".concat(e)}));if(n.length)return{url:"/api/domain/v2/objects?query=rating&".concat(n.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(l.E.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video:".concat(e),type:c.k.DELETE,success:t,error:n,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,n,r,a){var o=e.map((function(e){return"videoIds=".concat(e)})).join("&"),i=["categoryId=".concat(n),"".concat(o)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(i),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(n),type:c.k.DELETE,success:r,error:a,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,n=e.context,r=e.collectionId,a=e.moviesAndTv;return{url:p(e),key:"related:videos:".concat(t,":").concat(n,":").concat(r,":").concat(a)}},collectionVideos:function(e,t,n,r,c,l){var d=function(e){switch(e){case a.AtoZ:return"orderby:name";case a.ZtoA:return"orderbydesc:name";case a.Newest:return"orderbydesc:datecreated";case a.Oldest:return"orderby:datecreated";case a.RecentlyAdded:return"orderbydesc:timestamp";case a.Series:return"orderby:seriessort";default:return}}(t),v=i.v.VIDEO_COLLECTION,m=i.v.CLIP_COLLECTION,p=i.v.INTERACTIVE,f="videos[".concat(v,"]"),y="clips[".concat(m,"]"),g="interactives[".concat(p,"]{status:[").concat(s.X.Published,",").concat(s.X.Draft,"]}"),b=Object.assign({query:"(".concat(f,"|").concat(y,"|").concat(g,")").concat(d?"{".concat(d,"}"):""),permissionFilterOption:u.r.FilterOut},n?{cursor:n}:{}),h=["folder","videos",e,n,t].filter((function(e){return!!e})).join(":");return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),b),key:h,success:r,error:c,always:l}},pointsOfInterest:function(e,t,n,r,a){var c={query:"{limit:100}",cursor:t};return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),c),publicUrl:o._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),c),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:n,error:r,always:a}},regionAlternatives:function(e,t,n,r){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:n,always:r}}}},38400:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PreviewPdfView:()=>_});var r=n(32735),a=n(74027),c=n(17327),o=n.n(c),i=n(97395),s=n(20354),l=n(92582),u=n(65858),d=n(63855),v=n(58960),m=n(50023),p=n(83914),f=n(83345),y=n(53855),g=n(1164),b=n(99940),h=n(45157),E={resource:function(e){return{url:"/api/domain/v2/objects/".concat(e),key:"resources:".concat(e)}},publicResource:function(e){return{url:"/api/objects/".concat(e),key:"resources:".concat(e)}},videoResources:function(e){return{url:"/api/domain/v2/objects/".concat(e,"/resources?query=customer"),key:"videos:".concat(e,":resources")}},addResource:function(e,t,n,r,a){return{url:"/api/domain/v2/objects/".concat(e,"/resources"),key:"create:resource:".concat(t.fileId||h.Y.getRandomInt()),data:t,type:b.k.POST,invalidationKeys:"videos:".concat(e,":resources"),success:n,error:r,always:a}},updateResource:function(e,t,n,r,a){return{url:"/api/domain/v2/objects/".concat(e),key:"update:resource:".concat(e),data:t,type:b.k.PUT,success:n,error:r,always:a}},deleteResource:function(e,t,n,r,a){return{url:"/api/domain/v2/objects/".concat(e),key:"delete:resource:".concat(e),type:b.k.DELETE,invalidationKeys:"videos:".concat(t,":resources"),success:n,error:r,always:a}}},w=n(11565),k=n(35223);const I={document:"frWZr",page:"BxRha",documentError:"swyjp",buttonLeft:"mVvyw",buttonRight:"XSAEx"};function j(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,a,c,o,i=[],s=!0,l=!1;try{if(c=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=c.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(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 C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var O=80,N="shared.previewPdf";function L(e){var t,n,r;return e?(null===(t=e.metadata)||void 0===t?void 0:t.type)===g.L.Pdf||(null===(n=e.metadata)||void 0===n?void 0:n.type)===g.L.Image?e.url:null===(r=e.pdf)||void 0===r?void 0:r.url:null}function A(e){return r.createElement("div",{className:"d-flex flex-column align-items-center justify-content-center"},r.createElement("img",{alt:"",role:"presentation",src:e.errorImageUrl,className:"w-50 pb-3"}),r.createElement("h2",{className:"h5"},r.createElement(f.x,{namespace:N,phrase:"errorHeading"})),r.createElement("p",null,r.createElement(f.x,{namespace:N,phrase:"downloadAnyway"})),r.createElement(d.h,{svgName:k.vn.Download,onClick:e.onClickDownload,className:"btn btn-dark"},r.createElement(f.x,{namespace:N,phrase:"download"})))}function _(e){var t,n,c,d=j(r.useState(null),2),b=d[0],h=d[1],C=j(r.useState(1),2),_=C[0],R=C[1],T=j(r.useState(!1),2),x=T[0],P=T[1],V=r.useRef(null),S=r.useRef(null),B=s.a.useBasicFetch(E.publicResource(e.id)),D=s.a.useBasicFetch(e.shareId?w.R.sharedVideo(e.videoId,e.shareId):w.R.video(e.videoId));function F(e){var t,n,r;!function(e){if(V.current){var t=V.current.style.height;e>+t.substring(0,t.length-2)&&(V.current.style.height=e+"px")}}(e.height),(t=e.width)>+(r=(n=document.getElementsByClassName("modal-dialog")[0]).style.width).substring(0,r.length-2)&&(n.style.width=t+O+"px"),n.style.maxWidth="100%"}function U(e){h(e.numPages)}function q(){_===b||x||R(_+1)}function z(){1===_||x||R(_-1)}function W(){var e,t,n,r=S.current;S.current||(r=S.current=document.createElement("iframe"),document.body.appendChild(r),r.style.display="none"),r.src=B.data.url;var a={id:null===(e=B.data)||void 0===e?void 0:e.id,name:null===(t=B.data)||void 0===t?void 0:t.name,videoName:null===(n=D.data)||void 0===n?void 0:n.name};l.k.logUserAction(a,{location:u.LZ.Popup,actionType:u.Vw.Download,entity:u.py.Resource,workflowPhase:u.eu.Complete})}return r.createElement(v.G,{title:null!==(n=null===(t=B.data)||void 0===t?void 0:t.name)&&void 0!==n?n:"",showLoadingSpinner:!B.data,size:"lg",closePopup:e.closePopup,headerButtons:(c=[{svgName:k.vn.Download,onClick:W,className:"btn btn-link me-2",svgSize:p.S.Large}],x||c.push({svgName:k.vn.Print,onClick:function(){var e;x||(o()(i._.urlBuilder(L(B.data),{dl:"false"}),B.data.metadata.type===g.L.Image?"image":"pdf"),l.k.logUserAction({id:null===(e=B.data)||void 0===e?void 0:e.id},{location:u.LZ.Popup,actionType:u.Vw.Print,entity:u.py.Resource,workflowPhase:u.eu.Complete}))},className:"btn btn-link",svgSize:p.S.Large}),c)},function(){var t;return B.data?(null===(t=B.data.metadata)||void 0===t?void 0:t.type)===g.L.Image?r.createElement("div",{className:"d-flex justify-content-center w-100 h-100"},r.createElement("img",{alt:B.data.name,className:"img-fluid",src:L(B.data)})):r.createElement(r.Fragment,null,r.createElement(a.BB,{file:L(B.data),className:"".concat(I.document," ").concat(x?I.documentError:""),onLoadSuccess:U,onLoadError:function(){return P(!0)},error:function(){return r.createElement(A,{onClickDownload:W,errorImageUrl:e.errorImageUrl})},loading:m.E},r.createElement(a.T3,{pageNumber:_,loading:m.E,inputRef:function(e){return V.current=e},className:"".concat(I.page," d-flex justify-content-center position-relative"),onLoadSuccess:F,onLoadError:function(){return P(!0)},error:function(){return r.createElement(A,{onClickDownload:W,errorImageUrl:e.errorImageUrl})}}),r.createElement(y.W,{onClick:z,direction:y.f.Left,hide:x||1===_,className:I.buttonLeft}),r.createElement(y.W,{onClick:q,direction:y.f.Right,hide:x||_===b,className:I.buttonRight})),!(!(b&&b>1)||x)&&r.createElement("p",{className:"mt-3 text-center"},r.createElement(f.x,{namespace:N,phrase:"pageNumber",options:{current:_,total:b}}))):r.createElement(r.Fragment,null)}())}},90502:()=>{},98530:()=>{},74042:()=>{},88312:()=>{},81465:()=>{}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[639],{78417:(e,t,n)=>{var i;n.d(t,{r:()=>i}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(i||(i={}))},78479:(e,t,n)=>{var i;n.d(t,{f:()=>i}),function(e){e.ThumbnailHeroMedia="thumbnail_hero_media",e.ThumbnailFeaturedMedia="thumbnail_featured_media",e.ThumbnailSlidingListSmall="thumbnail_sliding_list_small",e.ThumbnailSlidingListLarge="thumbnail_sliding_list_large",e.CoverSlidingPillListSmall="cover_sliding_pill_list_small",e.CoverFixedPillListLarge="cover_fixed_pill_list_large",e.CoverFixedPillListXSmall="cover_fixed_pill_list_xsmall",e.CoverFixedTileList="cover_fixed_tile_list",e.PosterSlidingListLarge="poster_sliding_list_large",e.PosterSlidingListMedium="poster_sliding_list_medium",e.PosterSlidingListSmall="poster_sliding_list_small",e.FeaturedThumbnailSlidingList="featured_thumbnail_sliding_list",e.HeroBanner="hero_banner",e.HeroBannerSmall="hero_banner_small",e.HeroThumbnailSmall="hero_thumbnail_small",e.ThumbnailFixedListXLarge="thumbnail_fixed_list_xlarge",e.ThumbnailFixedListLarge="thumbnail_fixed_list_large",e.ThumbnailFixedListSmall="thumbnail_fixed_list_small",e.EditableCoverFixedPillListSmall="editable_cover_fixed_pill_list_small",e.Heading="heading",e.ThumbnailFixedListMediaLarge="thumbnail_fixed_list_media_large",e.PopoutThumbnailSlidingListLarge="popout_thumbnail_sliding_list_large",e.PopoutThumbnailSlidingListSmall="popout_thumbnail_sliding_list_small",e.OnboardingSteps="onboarding_steps",e.CircleLogoSlidingList="circle_logo_sliding_list",e.FilterSlidingPillListSmall="filter_sliding_pill_list_small",e.EventIconSlidingList="event_icon_sliding_list"}(i||(i={}))},42308:(e,t,n)=>{var i;n.d(t,{z:()=>i}),function(e){e.CuratedMedia="curated_media",e.PlaylistMedia="playlist_media",e.ClassificationMedia="classification_media",e.LatestReleasedVideos="latest_released_videos",e.ContinueWatching="continue_watching_videos",e.CuratedClassifications="curated_classifications",e.Classifications="classifications",e.ClassificationLatestReleasedVideos="classification_latest_released_videos",e.SpecialEventClassifications="special_event_classifications",e.CuratedSeries="curated_series",e.CuratedPlaylists="curated_playlists",e.Blurb="blurb",e.DynamicBlurb="dynamic_blurb",e.CuratedCompanies="curated_companies",e.Ratings="ratings",e.Presentations="presentations",e.ClassificationPlaylists="classification_playlists",e.ClassificationSeries="classification_series",e.ClassificationFeaturedVideo="classification_featured_video",e.ClassificationPinnedVideos="classification_pinned_videos"}(i||(i={}))},49542:(e,t,n)=>{n.d(t,{d:()=>d});var i,r=n(32735),a=n(65858);!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived"}(i||(i={}));var l,o=n(78479),s=n(42308),c=n(73275);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}!function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(l||(l={}));var d={getSliderAnalyticsOptions:function(){return{actionType:a.Vw.Click,location:a.LZ.SlidingList,entity:a.py.Widget,descriptor:a._S.Slide}},getSliderItemAnalyticsOptions:function(){return{location:a.LZ.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:a.Vw.Click,location:a.LZ.SlidingList,entity:a.py.Widget,descriptor:a._S.Title}},useGetContent:function(e,t){return r.useMemo((function(){var n;if(!e)return{content:null,unfilteredContent:null};if(!Array.isArray(e))return{content:e,unfilteredContent:e};var i,r=null!==(n=null==t?void 0:t.reduce((function(e,t){return e[t.id]=t,e}),{}))&&void 0!==n?n:{},a=function(e){if(Array.isArray(e))return u(e)}(i=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(i)||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.")}(),l=a.sort((function(e,t){var n,i,l,o,s=null!==(i=null===(n=r[e.id])||void 0===n?void 0:n.index)&&void 0!==i?i:a.findIndex((function(t){return t.id===e.id})),c=null!==(o=null===(l=r[t.id])||void 0===l?void 0:l.index)&&void 0!==o?o:a.findIndex((function(e){return e.id===t.id}));return s<c?-1:s>c?1:0}));return{content:l.filter((function(e){var t;return!(null===(t=r[e.id])||void 0===t?void 0:t.hidden)})),unfilteredContent:l}}),[e,t])},getCustomAppLink:function(e){var t,n,i,r,a,l;return(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===c.OL.LatestReleases?null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.latestReleases)||void 0===i?void 0:i.call(n):(null===(r=e.metadata)||void 0===r?void 0:r.appLink)===c.OL.ExploreAllTopics?null===(l=null===(a=e.appLinks)||void 0===a?void 0:a.allTopics)||void 0===l?void 0:l.call(a,e.presentation.id):null},getWidgetStatus:function(e){var t=e.status;if("string"==typeof t)switch(t){case l.Archived:t=i.Archived;break;case l.Published:t=i.Published;break;case l.Draft:t=i.Draft}return t},formatResponseData:function(e,t){var n=e.content;if(!n)return e;switch("data"in n?e.content=n.data:Array.isArray(n)||(e.content=[n]),e.widgetId){case s.z.ClassificationSeries:e.content=e.content.filter((function(e){var t;return!!(null===(t=e.tallPoster)||void 0===t?void 0:t.id)}));break;case s.z.ClassificationPlaylists:e.content=e.content.filter((function(e){var t;return!!(null===(t=e.cover)||void 0===t?void 0:t.id)}));break;case s.z.ContinueWatching:e.content=e.content.map((function(e){return e.object}));default:break;case s.z.Presentations:e.content=e.content.filter((function(e){var n;return e.id.toString()!==(null===(n=null==t?void 0:t.id)||void 0===n?void 0:n.toString())}))}return e},isWidgetInTableOfContents:function(e){return!!(null==e?void 0:e.showInTableOfContents)},hasNoContent:function(e){return e===s.z.Blurb},canDisplayOnScreenSize:function(e,t,n){return t!==s.z.Blurb||n!==o.f.HeroBannerSmall||!e.xs&&!e.sm}}},69454:(e,t,n)=>{n.d(t,{T:()=>d});var i=n(75896),r=n(1048),a=n(55171);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var o=/\d/,s=function(e){var t,n,r=i.m.first(e),a=i.m.last(e);return r.name===a.name?r.name:"Advanced"===a.name?"lower"===(t=r.name.split(" "),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,l,o=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=a.call(n)).done)&&(o.push(i.value),o.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw r}}return o}}(t,n)||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}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].toLowerCase()?"Lower Sec - Adv":"Upper Sec - Adv":"Lower - Upper Sec"},c=/([0-9]+)/gi,u=/\s|\+/gi,d={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,n,r,l="";switch(+i.m.first(e).presentationId){case a.e.PresentationIds.DEFAULT:case a.e.PresentationIds.AU_SECONDARY:case a.e.PresentationIds.US_ELEMENTARY:case a.e.PresentationIds.AU_PRIMARY:case a.e.PresentationIds.STREAMABLE_LEARNING:if(1===e.length)return e[0];l=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}))||[],i=t.split(" ").filter((function(e){return isNaN(+e)}))||[],r=e.find((function(e){return!o.test(e.name)})),a=i.find((function(e){return e!==(null==r?void 0:r.name)}));if(e.length>1&&(a+="s"),r&&n.length)return"".concat(a," ").concat(r.name.charAt(0)," - ").concat(n.pop());var l=function(e){var t,n,i,r,a=!1,l=[];for(e=e.sort((function(e,t){return e-t})),i=0;i<e.length;i++)r=i+1,a||(t=e[i]),n=e[r],e[i]+1===n?a=!0:a?(l.push("".concat(t," - ").concat(e[i])),a=!1):(l.push("".concat(e[i])),a=!1);return l}(n);return"".concat(a," ").concat(l.join(", "))}(e);break;case a.e.PresentationIds.SCOTLAND_PRIMARY:case a.e.PresentationIds.INTERNATIONAL_PRIMARY:case a.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];l=function(e){var t=e.map((function(e){return e.name})),n={};t.forEach((function(e,t){if(0!==t){var i=e.split(" ");Object.keys(n).forEach((function(e){i.includes(e)||delete n[e]}))}else e.split(" ").forEach((function(e,t){n[e]=0===t?"start":"end"}))}));var i=Object.keys(n)[0],r=n[i];if(!i)return e[0].name;var a=e[0].name,l=e[e.length-1].name,o=function(e){return e.split(i)[0]},s="".concat(o(a)," - ").concat(o(l));return"start"===r?"".concat(i," ").concat(s):"".concat(s," ").concat(i)}(e);break;case a.e.PresentationIds.ENGLISH_SECONDARY:l=s(e);break;case a.e.PresentationIds.SCOTLAND_SECONDARY:t=e,n=i.m.first(t),r=i.m.last(t),l=n.name===r.name?n.name:"Senior Phase"===r.name?"".concat(n.name," - Senior"):"Third - Fourth Level";break;case a.e.PresentationIds.ENGLAND_PRIMARY:l=function(e){var t=i.m.first(e),n=i.m.last(e),r=i.m.first(t.name.split(" ")),a=i.m.first(n.name.split(" ")),l=t.name.split(" ").find((function(e){return!isNaN(+e)})),o=n.name.split(" ").find((function(e){return!isNaN(+e)}));if(t===n)return"Key"===r||"Reception"===r?t.name:"".concat(r," KS").concat(l);var s="",c="";return s="Reception"===r?"R":"KS".concat(l),c="KS".concat(o),"Lower"===r&&"Upper"===a?"L ".concat(s," - U ").concat(c):("Lower"===r&&(s="Lower ".concat(s)),"Upper"===a&&(c="Upper ".concat(c)),"Key"===a&&(c=n.name),"".concat(s," - ").concat(c))}(e);case a.e.PresentationIds.US_MIDDLE:case a.e.PresentationIds.US_HIGH:}return l?{name:l}:null},sortMembersWithDuplicateNamesByAudience:function(e){var t=function(e){return e.length?(e.forEach((function(e){var r=+i.m.first(e.name.match(c));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 i=r.splice(r.length-n[e.name]).sort((function(e,n){var i=t(e.subjectPresentationAudiences.data),r=t(n.subjectPresentationAudiences.data);if(!i&&r)return 1;if(!r)return-1;var a=i.name.localeCompare(r.name);return 0===a?a:a>0?-1:1}));r=r.concat(i)})),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&&d.shouldShowAudiences(e)){var n=t.a;if(n){"string"==typeof n&&(n=[n]);var i=function(e){return e.replace(u,"").toLowerCase()},a=n.reduce((function(e,t){return e[i(t)]=t,e}),{});return e.filter((function(e){return a[i(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}}}}]);