@clickview/streamable-learning 0.1.0-rc.0 → 0.2.0-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 (66) hide show
  1. package/dist/bundles.json +4 -0
  2. package/dist/css/146-streamable-learning-b32369e5cf.chunk.css +13 -0
  3. package/dist/css/154-streamable-learning-75a527f710.chunk.css +33 -0
  4. package/dist/css/21-streamable-learning-a9c96622d9.chunk.css +2 -0
  5. package/dist/css/254-streamable-learning-8e088350b1.chunk.css +2 -0
  6. package/dist/css/297-streamable-learning-62f3804bc8.chunk.css +8 -0
  7. package/dist/css/306-streamable-learning-1b19dfc8dd.chunk.css +52 -0
  8. package/dist/css/498-streamable-learning-8c9306617b.chunk.css +2 -0
  9. package/dist/css/513-streamable-learning-85c08e0392.chunk.css +3 -0
  10. package/dist/css/561-streamable-learning-87571ab68f.chunk.css +11 -0
  11. package/dist/css/596-streamable-learning-75ed3a71dd.chunk.css +2 -0
  12. package/dist/css/662-streamable-learning-6dc93ba4b5.chunk.css +2 -0
  13. package/dist/css/677-streamable-learning-078d160389.chunk.css +15 -0
  14. package/dist/css/838-streamable-learning-b5d226bbb6.chunk.css +5 -0
  15. package/dist/css/888-streamable-learning-81ca2f2f6d.chunk.css +71 -0
  16. package/dist/css/985-streamable-learning-5b24c1851a.chunk.css +79 -0
  17. package/dist/css/streamable-learning-1174bc2e97.css +25 -0
  18. package/dist/languages/en.json +1 -0
  19. package/dist/scripts/146-19048cc544-streamable-learning.chunk.js +1 -0
  20. package/dist/scripts/154-5a195cb74f-streamable-learning.chunk.js +1 -0
  21. package/dist/scripts/173-740d2207ab-streamable-learning.chunk.js +1 -0
  22. package/dist/scripts/176-46cdc42b54-streamable-learning.chunk.js +1 -0
  23. package/dist/scripts/21-a5cffdcc0f-streamable-learning.chunk.js +1 -0
  24. package/dist/scripts/254-8600ef7080-streamable-learning.chunk.js +1 -0
  25. package/dist/scripts/262-d0129c71af-streamable-learning.chunk.js +2 -0
  26. package/dist/scripts/262-d0129c71af-streamable-learning.chunk.js.LICENSE.txt +32 -0
  27. package/dist/scripts/284-bc28ced024-streamable-learning.chunk.js +1 -0
  28. package/dist/scripts/297-35c42f36d2-streamable-learning.chunk.js +1 -0
  29. package/dist/scripts/306-53049b1741-streamable-learning.chunk.js +1 -0
  30. package/dist/scripts/446-cea6b4d373-streamable-learning.chunk.js +1 -0
  31. package/dist/scripts/498-8608aa0951-streamable-learning.chunk.js +1 -0
  32. package/dist/scripts/50-b87d4b42b6-streamable-learning.chunk.js +1 -0
  33. package/dist/scripts/513-f30722c6d3-streamable-learning.chunk.js +1 -0
  34. package/dist/scripts/518-4c184dafa4-streamable-learning.chunk.js +1 -0
  35. package/dist/scripts/542-976d254d59-streamable-learning.chunk.js +1 -0
  36. package/dist/scripts/561-dcf206b282-streamable-learning.chunk.js +1 -0
  37. package/dist/scripts/587-233c1a5b6a-streamable-learning.chunk.js +1 -0
  38. package/dist/scripts/596-7071128cc4-streamable-learning.chunk.js +1 -0
  39. package/dist/scripts/639-ec1b4101eb-streamable-learning.chunk.js +1 -0
  40. package/dist/scripts/65-afa26c23fb-streamable-learning.chunk.js +2 -0
  41. package/dist/scripts/65-afa26c23fb-streamable-learning.chunk.js.LICENSE.txt +105 -0
  42. package/dist/scripts/662-ff56331fc6-streamable-learning.chunk.js +1 -0
  43. package/dist/scripts/677-af043d1b6a-streamable-learning.chunk.js +1 -0
  44. package/dist/scripts/680-d7e46d7666-streamable-learning.chunk.js +1 -0
  45. package/dist/scripts/838-59433153e5-streamable-learning.chunk.js +1 -0
  46. package/dist/scripts/853-f1bdff4b42-streamable-learning.chunk.js +1 -0
  47. package/dist/scripts/87-86296e48af-streamable-learning.chunk.js +1 -0
  48. package/dist/scripts/872-ac628d63a5-streamable-learning.chunk.js +1 -0
  49. package/dist/scripts/877-082a559e39-streamable-learning.chunk.js +1 -0
  50. package/dist/scripts/888-e4e4e4daa0-streamable-learning.chunk.js +2 -0
  51. package/dist/scripts/888-e4e4e4daa0-streamable-learning.chunk.js.LICENSE.txt +1 -0
  52. package/dist/scripts/895-e3e70ec6d4-streamable-learning.chunk.js +1 -0
  53. package/dist/scripts/912-39f48c405f-streamable-learning.chunk.js +1 -0
  54. package/dist/scripts/925-17933662aa-streamable-learning.chunk.js +1 -0
  55. package/dist/scripts/933-09bf5050c2-streamable-learning.chunk.js +1 -0
  56. package/dist/scripts/934-83c6e5f3a1-streamable-learning.chunk.js +2 -0
  57. package/dist/scripts/934-83c6e5f3a1-streamable-learning.chunk.js.LICENSE.txt +9 -0
  58. package/dist/scripts/958-4cea4aa543-streamable-learning.chunk.js +1 -0
  59. package/dist/scripts/974-ab1d535355-streamable-learning.chunk.js +1 -0
  60. package/dist/scripts/985-7abea2f0e6-streamable-learning.chunk.js +2 -0
  61. package/dist/scripts/985-7abea2f0e6-streamable-learning.chunk.js.LICENSE.txt +1 -0
  62. package/dist/scripts/bundle-2251d1ef65.min.js +2 -0
  63. package/dist/scripts/bundle-2251d1ef65.min.js.LICENSE.txt +108 -0
  64. package/dist/scripts/pdf.worker.entry-0b35cddafa.min.worker.js +2 -0
  65. package/dist/scripts/pdf.worker.entry-0b35cddafa.min.worker.js.LICENSE.txt +21 -0
  66. package/package.json +1 -1
@@ -0,0 +1 @@
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})}}]);
@@ -0,0 +1 @@
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})}}]);
@@ -0,0 +1 @@
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:25,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:()=>{}}]);
@@ -0,0 +1 @@
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}}}}]);