@clickview/streamable-learning 0.12.0 → 0.12.1-rc.1

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 (83) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{8664-streamable-learning-f0eefa4abe.chunk.css → 1067-streamable-learning-629bbd0a42.chunk.css} +1 -1
  3. package/dist/css/{1437-streamable-learning-e9b3e621e5.chunk.css → 1437-streamable-learning-5f51fab46d.chunk.css} +1 -1
  4. package/dist/css/{2568-streamable-learning-ee9378ce96.chunk.css → 4797-streamable-learning-4feb015d59.chunk.css} +4 -2
  5. package/dist/css/{5594-streamable-learning-82a602553e.chunk.css → 5594-streamable-learning-ffb770af33.chunk.css} +3 -3
  6. package/dist/css/{719-streamable-learning-f53cbbb6cc.chunk.css → 719-streamable-learning-2753997e3f.chunk.css} +1 -1
  7. package/dist/css/{7303-streamable-learning-b7adc6f6dc.chunk.css → 7303-streamable-learning-339eb189ee.chunk.css} +6 -6
  8. package/dist/css/{8069-streamable-learning-b49d0dd7a8.chunk.css → 8069-streamable-learning-37ac0f07b5.chunk.css} +1 -1
  9. package/dist/css/streamable-learning-6cf570b2e4.css +21 -0
  10. package/dist/languages/en.json +1 -1
  11. package/dist/scripts/1067-7f82ade4a9-streamable-learning.chunk.js +1 -0
  12. package/dist/scripts/1437-76d56b4d4c-streamable-learning.chunk.js +1 -0
  13. package/dist/scripts/1661-6f55953c13-streamable-learning.chunk.js +1 -0
  14. package/dist/scripts/2042-2eb4fc393d-streamable-learning.chunk.js +1 -0
  15. package/dist/scripts/262-1c5176a55f-streamable-learning.chunk.js +1 -0
  16. package/dist/scripts/2676-9799905e4b-streamable-learning.chunk.js +2 -0
  17. package/dist/scripts/2700-49c1bcb970-streamable-learning.chunk.js +1 -0
  18. package/dist/scripts/2861-0236ce939f-streamable-learning.chunk.js +1 -0
  19. package/dist/scripts/{2967-073ef8276e-streamable-learning.chunk.js → 2967-fc7e5dd922-streamable-learning.chunk.js} +1 -1
  20. package/dist/scripts/2987-151cbbceda-streamable-learning.chunk.js +1 -0
  21. package/dist/scripts/3093-9218f2dd9a-streamable-learning.chunk.js +1 -0
  22. package/dist/scripts/339-1ae03fbc50-streamable-learning.chunk.js +1 -0
  23. package/dist/scripts/3933-27535488c4-streamable-learning.chunk.js +1 -0
  24. package/dist/scripts/3958-4efeb0bebf-streamable-learning.chunk.js +1 -0
  25. package/dist/scripts/{4018-79febe5bcb-streamable-learning.chunk.js → 4018-168a7bb0bd-streamable-learning.chunk.js} +2 -2
  26. package/dist/scripts/{4254-355be6131d-streamable-learning.chunk.js → 4254-c97776bd5d-streamable-learning.chunk.js} +1 -1
  27. package/dist/scripts/4797-15f87e7824-streamable-learning.chunk.js +2 -0
  28. package/dist/scripts/487-aff6b95fc8-streamable-learning.chunk.js +1 -0
  29. package/dist/scripts/4959-d9342d3256-streamable-learning.chunk.js +2 -0
  30. package/dist/scripts/520-8734f2e0f7-streamable-learning.chunk.js +1 -0
  31. package/dist/scripts/5594-63024a37f0-streamable-learning.chunk.js +1 -0
  32. package/dist/scripts/625-1200e876e9-streamable-learning.chunk.js +1 -0
  33. package/dist/scripts/6533-c9404f21a3-streamable-learning.chunk.js +1 -0
  34. package/dist/scripts/{6909-2740b17e80-streamable-learning.chunk.js → 6909-31e9162346-streamable-learning.chunk.js} +1 -1
  35. package/dist/scripts/7102-76f958374d-streamable-learning.chunk.js +1 -0
  36. package/dist/scripts/719-ba682f08a8-streamable-learning.chunk.js +2 -0
  37. package/dist/scripts/7303-5265ba8daa-streamable-learning.chunk.js +2 -0
  38. package/dist/scripts/7545-aae090520f-streamable-learning.chunk.js +1 -0
  39. package/dist/scripts/7694-1e367e4f68-streamable-learning.chunk.js +2 -0
  40. package/dist/scripts/8069-598c1883bc-streamable-learning.chunk.js +1 -0
  41. package/dist/scripts/{8598-80abd9d41d-streamable-learning.chunk.js → 8598-2184349983-streamable-learning.chunk.js} +2 -2
  42. package/dist/scripts/9596-02a53132fb-streamable-learning.chunk.js +1 -0
  43. package/dist/scripts/9908-6393e6dae9-streamable-learning.chunk.js +2 -0
  44. package/dist/scripts/9908-6393e6dae9-streamable-learning.chunk.js.LICENSE.txt +1 -0
  45. package/dist/scripts/bundle-101a80372c.min.js +2 -0
  46. package/package.json +1 -1
  47. package/dist/css/streamable-learning-80de1e9260.css +0 -21
  48. package/dist/scripts/1437-fe853c2920-streamable-learning.chunk.js +0 -1
  49. package/dist/scripts/1661-c201fdd00b-streamable-learning.chunk.js +0 -1
  50. package/dist/scripts/2020-6022dd9225-streamable-learning.chunk.js +0 -1
  51. package/dist/scripts/2206-876c57f924-streamable-learning.chunk.js +0 -2
  52. package/dist/scripts/2568-f15a06f42e-streamable-learning.chunk.js +0 -2
  53. package/dist/scripts/2700-bc11c55e61-streamable-learning.chunk.js +0 -1
  54. package/dist/scripts/2861-a4788e04aa-streamable-learning.chunk.js +0 -1
  55. package/dist/scripts/2987-b88afe0360-streamable-learning.chunk.js +0 -1
  56. package/dist/scripts/339-4d308b4b85-streamable-learning.chunk.js +0 -1
  57. package/dist/scripts/3933-9081df6e1b-streamable-learning.chunk.js +0 -1
  58. package/dist/scripts/3958-4053217e7e-streamable-learning.chunk.js +0 -1
  59. package/dist/scripts/487-0f5693b89a-streamable-learning.chunk.js +0 -1
  60. package/dist/scripts/520-a33d823ad2-streamable-learning.chunk.js +0 -1
  61. package/dist/scripts/5594-ef43e6cbdf-streamable-learning.chunk.js +0 -1
  62. package/dist/scripts/625-fa9cd15e25-streamable-learning.chunk.js +0 -1
  63. package/dist/scripts/6284-1854ac15da-streamable-learning.chunk.js +0 -1
  64. package/dist/scripts/6533-cfa299a803-streamable-learning.chunk.js +0 -1
  65. package/dist/scripts/719-2ae6ad3acb-streamable-learning.chunk.js +0 -2
  66. package/dist/scripts/7303-399f2f4d66-streamable-learning.chunk.js +0 -2
  67. package/dist/scripts/7545-31217597c7-streamable-learning.chunk.js +0 -1
  68. package/dist/scripts/7694-4affa05b0f-streamable-learning.chunk.js +0 -2
  69. package/dist/scripts/8069-9e470ae93e-streamable-learning.chunk.js +0 -1
  70. package/dist/scripts/8664-361731a4c2-streamable-learning.chunk.js +0 -1
  71. package/dist/scripts/9531-32201ab9da-streamable-learning.chunk.js +0 -1
  72. package/dist/scripts/9596-77a1e197d4-streamable-learning.chunk.js +0 -1
  73. package/dist/scripts/9908-b22183dac6-streamable-learning.chunk.js +0 -2
  74. package/dist/scripts/bundle-307ad2277c.min.js +0 -2
  75. /package/dist/scripts/{2206-876c57f924-streamable-learning.chunk.js.LICENSE.txt → 2676-9799905e4b-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  76. /package/dist/scripts/{2568-f15a06f42e-streamable-learning.chunk.js.LICENSE.txt → 4018-168a7bb0bd-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  77. /package/dist/scripts/{4018-79febe5bcb-streamable-learning.chunk.js.LICENSE.txt → 4797-15f87e7824-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  78. /package/dist/scripts/{719-2ae6ad3acb-streamable-learning.chunk.js.LICENSE.txt → 4959-d9342d3256-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  79. /package/dist/scripts/{7303-399f2f4d66-streamable-learning.chunk.js.LICENSE.txt → 719-ba682f08a8-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  80. /package/dist/scripts/{7694-4affa05b0f-streamable-learning.chunk.js.LICENSE.txt → 7303-5265ba8daa-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  81. /package/dist/scripts/{9908-b22183dac6-streamable-learning.chunk.js.LICENSE.txt → 7694-1e367e4f68-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  82. /package/dist/scripts/{8598-80abd9d41d-streamable-learning.chunk.js.LICENSE.txt → 8598-2184349983-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  83. /package/dist/scripts/{bundle-307ad2277c.min.js.LICENSE.txt → bundle-101a80372c.min.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[7545],{78259:(e,t,n)=>{n.d(t,{O:()=>c});var r=n(58176),a=n.n(r),i=n(21161),o={className:"info-link",defaultProtocol:"https"},c={linkifyText:function(e,t){if(e){var n=t?i.extend({},o,t):o;return a()(e,n)}}}},23062:(e,t,n)=>{n.d(t,{b:()=>g});var r=n(32735),a=n(110),i=n(78259),o=n(28400),c=n(92582),l=n(65858),s=n(79878),u=n(12324),d=n(42735),m=n(57408),p=n(85473),f=n(2284);const v={modalWidth:"SgHYb",banner:"PLw1p",pill:"UNBr0",logo:"xv_tc"};function g(e){var t,n,g,y,h,b=e.getAppLink(e.event.content.id,o.m.slugify(e.event.name)),E=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,e.event.content),C=null===(n=e.getIconUrl)||void 0===n?void 0:n.call(e,e.event.content),w=null===(g=e.getBannerUrl)||void 0===g?void 0:g.call(e,e.event.content),O=!!e.event.endDate,L=e.event.content.status===f.W.ComingSoon,S=null===(y=e.getStartTime)||void 0===y?void 0:y.call(e,e.event.content),k=null===(h=e.getActionLabel)||void 0===h?void 0:h.call(e),T={actionType:l.Vw.Click,entity:l.py.SpecialEvent,location:e.inPopup?l.LZ.CalendarPopup:l.LZ.CalendarDay},D={topicId:e.event.content.id,eventId:e.event.specialEventId,presentationId:e.presentationId,date:a.O.format(new Date(e.event.startDate),"YYYY-MM-DD"),status:e.event.content.status};return r.createElement("div",null,S&&r.createElement("h6",null,S),r.createElement("div",{onClick:function(){L&&c.k.logUserAction(D,T)}},r.createElement(m.F,{appLink:!L&&b,className:"".concat(L?"":"cursor-pointer"," text-decoration-none"),onClick:e.onClick,analyticsOptions:T,analyticsData:D},r.createElement("div",{className:"banner rounded-3 position-relative ".concat(v.banner),style:{backgroundColor:E,backgroundImage:"url('".concat(w,"')")}},r.createElement("div",{className:"d-flex justify-content-between align-items-center w-100 h-100 px-3"},r.createElement("div",{className:"d-flex align-items-center"},C&&r.createElement("div",{className:"".concat(v.logo," rounded-circle flex-shrink-0 overflow-hidden me-2")},r.createElement(p.Z,{data:C})),r.createElement("div",{className:"text-white"},L&&r.createElement(s.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start ".concat(v.pill)}),O&&r.createElement("div",{className:"mb-1"},u.T.getDisplayDate(e.event.startDate,e.event.endDate)),r.createElement("h2",{className:"h4 text-white text-shadow ".concat(e.event.description?"clamp-2":"clamp-1"),title:e.event.name},e.event.name))),r.createElement("div",{className:"d-none d-sm-block flex-shrink-0"},!L&&r.createElement(d.K,{className:"btn btn-outline-dark fw-semibold"},k))))),r.createElement("div",{className:"mt-2 mb-3 pre-wrap text-break",dangerouslySetInnerHTML:{__html:i.O.linkifyText(e.event.description||e.event.content.description)}})))}},19716:(e,t,n)=>{n.d(t,{D:()=>u});var r=n(32735),a=n(39202),i=n(23481),o=n(65858),c=n(88818);const l={pillTab:"Vrjid"};var s="streamable.header";function u(e){var t,n,u,d,m,p,f=[{name:i.T.getPhrase(s,"heading"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.discover,active:"discover"===e.active,analyticsData:{name:i.T.getPhrase(s,"heading"),url:a.C$.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.discover)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:i.T.getPhrase(s,"livestreams"),appLink:null===(u=e.appLinks)||void 0===u?void 0:u.calendar,active:"calendar"===e.active,analyticsData:{name:i.T.getPhrase(s,"livestreams"),url:a.C$.getHref(null===(d=e.appLinks)||void 0===d?void 0:d.calendar)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:i.T.getPhrase(s,"partners"),appLink:null===(m=e.appLinks)||void 0===m?void 0:m.partners,active:"partners"===e.active,analyticsData:{name:i.T.getPhrase(s,"partners"),url:a.C$.getHref(null===(p=e.appLinks)||void 0===p?void 0:p.partners)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}}];return r.createElement("div",{className:"py-3 text-center"},r.createElement(c.r,{tabs:f,className:l.pillTab}))}},54168:(e,t,n)=>{n.d(t,{d:()=>c});var r=n(32735),a=n(40290),i=n(83914),o=n(35223);function c(){var e;return r.createElement("div",null,r.createElement(i.x,{svgName:o.vn.Globe}),r.createElement("span",{className:"ms-1"},null===(e=a.F[a.r.EST])||void 0===e?void 0:e.name))}},18559:(e,t,n)=>{n.d(t,{C:()=>g,g:()=>s});var r,a=n(32735),i=n(23481),o=n(83914),c=n(64444),l=n(5960);!function(e){e.Exchange="exchange",e.Streamable="streamable",e.MoviesAndTv="movies_and_tv",e.Twig="twig"}(r||(r={}));var s,u=n(93264),d=n(26361),m=n(35223),p=n(81993),f=n(86474),v=i.T.encloseNamespace("shared.badges");function g(e){var t=e.type,n=e.data;if(!function(e,t){var n,r;return"boolean"==typeof t?!!t:e===s.Rating?t&&!!t.value:e===s.Interactive?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===s.Captions?!!(null==t?void 0:t.length)||!!(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.length):e===s.Status?"number"==typeof t:!!t}(t,n))return a.createElement(a.Fragment,null);var i=function(e,t){var n,a="";if(e===s.DurationApproximate&&(a="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===s.DurationExact&&(a="duration-badge"),e===s.Interactive&&(a="interactive-badge"),e===s.Rating&&(a="rating-badge text-shadow ".concat(p.u.mapRatingToClass(t.value))),e===s.ProductionYear&&(a="production-year-badge text-shadow"),e===s.Captions)return"p-0";if(e===s.Status)return"badge ".concat(function(e){switch(e){case l.X.Published:return"bg-success";case l.X.Archived:case l.X.Rejected:return"bg-danger";case l.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case l.X.Pending:case l.X.Processing:return"bg-warning"}}(t));if(e===s.Trending)return"trending-badge px-2 d-flex align-items-center";if(e===s.Count&&(a="count-badge px-1 rounded"),e===s.Restriction){var i=d.l.mapRestrictionToClass(t.restrictions);return"restriction-badge rounded-pill px-2 d-flex align-items-center ".concat(i)}return e===s.Source&&(a=(n=t).includes(r.Streamable)?"px-1 text-nowrap d-flex align-items-center ".concat(f.Z.streamable):n.includes(r.MoviesAndTv)?"bg-indigo text-white px-1 text-nowrap d-flex align-items-center":n.includes(r.Exchange)?"bg-orange text-white px-1 text-nowrap d-flex align-items-center":n.includes(r.Twig)?"bg-pink text-white px-1 text-nowrap d-flex align-items-center":""),"".concat("badge"," ").concat(a)}(t,n);i="".concat(i," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var g=function(e,t){if(e===s.Interactive)return v("interactive");if(e===s.DurationApproximate)return u.T.ToDisplayDurationNewStyle(t);if(e===s.DurationExact)return u.T.ToDisplayDuration(t);if(e===s.Rating)return t.code;if(e===s.ProductionYear)return t;if(e===s.Captions)return a.createElement(o.x,{svgName:m.vn.CloseCaptionBadge});if(e===s.Status)return l.X[t];if(e===s.Trending)return a.createElement(a.Fragment,null,a.createElement(o.x,{svgName:m.vn.Trending}),a.createElement("span",{className:"ps-1"},t));if(e===s.Count)return t;if(e===s.Restriction)return a.createElement(a.Fragment,null,a.createElement(o.x,{svgName:d.l.mapRestrictionToSvg(t.restrictions)}),a.createElement("span",null,d.l.mapRestrictionToText(t.restrictions,t.yearGroups)));if(e===s.Source){var n=t;return n.includes(r.Streamable)?"streamable":n.includes(r.MoviesAndTv)?"movies + tv":n.includes(r.Exchange)?"exchange":n.includes(r.Twig)?"twig":"-"}}(t,n),y=function(e,t){return e===s.Rating?{title:t.name,placement:"top"}:null}(t,n),h=e.inline&&"d-inline-block";return y?a.createElement("div",{className:"badge-wrapper d-inline"},a.createElement(c.u,Object.assign({},y,{spanHack:!0,spanHackClassName:h}),a.createElement("span",{className:i},g))):a.createElement("span",{className:"".concat(i," badge-wrapper")},g)}!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction",e.Source="source"}(s||(s={}))},85473:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(32735),a=n(1048),i=n(57408),o=n(16107),c=n(54610),l=n(67453);const s={image:"vdd4V",thumbnail:"Ez0E7",tallPoster:"H9bQA",cover:"Nudts",banner:"IOvDH",poster:"iiY56",pdf:"aDJiJ",link:"wDpui"};function u(e){var t=s.image,n="";return e.imageType===c.__.Thumbnails&&(n="thumbnail ".concat(s.thumbnail)),e.imageType===c.__.TallPosters&&(n=s.tallPoster),e.imageType===c.__.Covers&&(n=s.cover),e.imageType===c.__.Banners&&(n=s.banner),e.imageType===c.__.Posters&&(n=s.poster),e.imageType===c.__.Pdf&&(n=s.pdf),e.imageType===c.__.Link&&(n=s.link),n&&(t+=" ".concat(n)),e.className&&(t+=" ".concat(e.className)),t}function d(e){var t=e.data,n=e.imageOptions,c=e.appLink,s=e.preload,d=e.preventLoad,m=e.analyticsOptions,p=e.analyticsData,f=e.imageClassName,v=e.alt,g="";"string"==typeof t?g=t:a.t.isObject(t)&&(g=t.url);var y=g&&n?l.j.createUrl(g,n):g;return r.createElement("div",{className:u(e),style:e.imageStyle},r.createElement(i.F,{appLink:c,analyticsData:p,analyticsOptions:m,onClick:e.onClick,preventFocus:e.preventFocus},e.children,y&&r.createElement(o.w,{src:y,alt:v,forceLoad:s,preventLoad:d,extraClasses:f,errorFallbackImageSrc:e.errorFallbackImageSrc,errorFallbackImageClassName:e.errorFallbackImageClassName})))}},16107:(e,t,n)=>{n.d(t,{w:()=>c});var r=n(32735),a=n(65294);const i="fVSzb";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c=r.memo((function(e){var t,n,c=e.forceLoad,l=e.extraClasses,s=void 0===l?"":l,u=e.errorFallbackImageSrc,d=e.preventLoad,m=void 0!==d&&d,p=e.errorFallbackImageClassName,f=e.src,v=e.alt,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["forceLoad","extraClasses","errorFallbackImageSrc","preventLoad","errorFallbackImageClassName","src","alt"]),y=(0,a.Y)({rootMargin:"500px"}),h=y.ref,b=y.inView,E=(t=r.useState(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(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.")}()),C=E[0],w=E[1];function O(){return C&&u?u:e.src}if(r.useEffect((function(){if((c||b)&&!m){var e=new Image;return e.onerror=function(){w(!0),u&&(e.src=u)},e.src=f,function(){return e.onerror=null}}}),[b,m]),C&&!u)return r.createElement(r.Fragment,null);if(!h)return r.createElement("img",Object.assign({className:"".concat(i," ").concat(s," ").concat(C&&p||""),alt:v,src:O()},g));var L=Object.assign(Object.assign({alt:v},g),!b&&!c||m?{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}:{src:O()});return c||(L.ref=h),r.createElement("img",Object.assign({className:"".concat(i," ").concat(s," ").concat(C&&p||"")},L))}))},88818:(e,t,n)=>{n.d(t,{r:()=>d});var r=n(32735),a=n(92582),i=n(57408),o=n(18559),c=n(11607),l=n(83914);const s={pillTabSelector:"Hdi6o",tab:"RvNxr",minWidth:"GHSz9",radiusSmall:"VhJJa",tabLink:"WFyvo"};function u(e){return r.createElement(r.Fragment,null,!!e.tab.svgName&&r.createElement("div",{className:e.tab.name?"pe-1":""},r.createElement(l.x,{svgName:e.tab.svgName})),e.tab.name,"number"==typeof e.tab.count&&r.createElement("div",{className:"ps-2"},r.createElement(o.C,{type:o.g.Count,data:e.tab.count})))}function d(e){var t;return r.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:"",ref:e.containerRef},r.createElement("ul",{className:"\n list-unstyled d-inline-block m-0 ".concat(s.pillTabSelector,"\n ").concat(e.borderRadius?s.radiusSmall:"","\n ").concat(e.listClassName,"\n ")},e.tabs.map((function(e,t){return r.createElement("li",{className:"\n p-0 ".concat(s.tab," ").concat(e.active?"btn btn-dark":"btn btn-outline-dark","\n ").concat(e.name?s.minWidth:""," ").concat(e.className,"\n "),key:t},e.appLink?r.createElement(i.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset px-2 text-nowrap ".concat(s.tabLink,"\n ")},r.createElement(u,{tab:e})):r.createElement(c.L,{className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset p-2 text-nowrap ".concat(s.tabLink,"\n "),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&a.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},r.createElement(u,{tab:e})))}))))}d.defaultProps={borderRadius:"lg"}},71063:(e,t,n)=>{n.d(t,{M:()=>r});var r={WELCOME_POPUP_SELECTOR:"welcome-dialog",RESOURCE_ITEM_SELECTOR:"resource-item",GLOBAL_PLAYER_SELECTOR:"global-player"}},2284:(e,t,n)=>{var r;n.d(t,{W:()=>r}),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(r||(r={}))},5960:(e,t,n)=>{var r,a;n.d(t,{H:()=>a,X:()=>r}),function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(r||(r={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(a||(a={}))},1164:(e,t,n)=>{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={}))},5345:(e,t,n)=>{var r;n.d(t,{c:()=>r}),function(e){e.Custom="custom",e.User="year_group"}(r||(r={}))},89454:(e,t,n)=>{n.d(t,{O:()=>i});var r=n(97395),a=n(25925),i={presentationAudiences:function(e,t){var n=t||a.R.Subject.toLowerCase(),i={type:n,presentationId:e};return{bootstrapName:"presentationAudiences",url:r._.urlBuilder("/api/domain/v1/subjects/audiences",i),publicUrl:r._.urlBuilder("/api/subjects/presentation/".concat(e,"/audiences"),i),key:"presentation:audiences:".concat(e,":").concat(n),normalize:!1}},audiencesByPresentationId:function(e){return{url:"/api/domain/v1/subjects/presentations/".concat(e,"/audiences"),publicUrl:r._.urlBuilder("/api/subjects/presentation/".concat(e,"/audiences"),{type:a.R.Subject.toLowerCase(),presentationId:e}),key:"presentation:".concat(e,":audiences"),normalize:!1}}}},93264:(e,t,n)=>{n.d(t,{T:()=>i});var r=n(21161),a=function(e,t,n){var r=t-(e=e.toString()).length;return r<=0?e:new Array(r+1).join(n)+e},i={ToDisplayDuration:function(e,t){if(!r.isNumber(e))return"";var n=new Date(e),i=n.getUTCHours(),o=a(n.getUTCMinutes(),2,"0"),c=a(n.getUTCSeconds(),2,"0");return t||i>0?"".concat(i,":").concat(o,":").concat(c):"".concat(o,":").concat(c)},ToDisplayDurationNewStyle:function(e,t){if(!r.isNumber(e))return"";var n=new Date(e),a=n.getUTCHours(),i=n.getUTCMinutes(),o=n.getUTCSeconds();if((a>0||i>0)&&o>=30&&(i+=1),a>0){var c=a>1?"hrs":"hr";return i>0?t&&o>0?"".concat(a).concat(c," ").concat(i,"m ").concat(o,"s"):"".concat(a).concat(c," ").concat(i,"m "):"".concat(a," ").concat(c)}return i>0?t&&o>0?"".concat(i,"m ").concat(o,"s"):"".concat(i,"m"):"".concat(o,"s")}}},25301:(e,t,n)=>{n.d(t,{CG:()=>E});var r,a=n(23481),i=n(110),o=n(71063);function c(e){return c="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},c(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(r||(r={}));var u=a.T.encloseNamespace("shared.shared-utils"),d=/^(.*)\s/,m="pageTitle",p="pageDescription",f=s(s(s(s(s(s({},"au",r.AU),"gb",r.UK),"us",r.US),r.AU,"au"),r.UK,"gb"),r.US,"us");function v(e){return e?e.substring(0,e.length-3)+"...":""}function g(e){var t,n,r=e.title,a=e.phraseContext,i=e.product,o=void 0===i?"ClickView":i;if(!r)return"";if(!a)return u(m,{title:r,product:o});var c=70-(null!==(n=null===(t=a.phraseHandler(a.titlePhrase,{value:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);return r.length>=c?u(m,{title:r,product:o}):a.phraseHandler(a.titlePhrase,{title:r})}function y(e){var t,n,r,a,i,o=e.title,c=e.description,l=e.phraseContext,s=v((160,(i=c||o)?i.substring(0,160):""));if(!l)return u(p,{description:s});var m=160-(null!==(n=null===(t=l.phraseHandler(l.descriptionPhrase,{title:"",description:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);if((null==o?void 0:o.length)>=m)return u(p,{description:s});var f=v(function(e,t,n){if(!e)return"";var r=160-n;if(e.length<=r)return e;var a=e.slice(0,r),i=a.match(d);return i?i[1]:a}(c,0,null!==(a=null===(r=l.phraseHandler(l.descriptionPhrase,{title:o,description:""}))||void 0===r?void 0:r.length)&&void 0!==a?a:0));return l.phraseHandler(l.descriptionPhrase,{title:o,description:f})}function h(e,t){var n;return null!==(n=null==e?void 0:e.reduce((function(e,n){var r,a,i=null===(r=f[n.contentRegion])||void 0===r?void 0:r.toUpperCase();return(null===(a=n.id)||void 0===a?void 0:a.toString())===(null==t?void 0:t.toString())&&i?[].concat(function(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),[{"@type":"Place",name:i}]):e}),[]))&&void 0!==n?n:[]}function b(e,t,n){var r;return{"@context":"https://schema.org","@type":"VideoObject",mainEntityOfPage:{"@type":"WebPage","@id":t},name:null==e?void 0:e.name,description:null==e?void 0:e.description,thumbnailUrl:null===(r=null==e?void 0:e.thumbnail)||void 0===r?void 0:r.url,uploadDate:null==e?void 0:e.dateCreated,duration:i.O.getDurationISOString(null==e?void 0:e.duration,"milliseconds"),hasPart:[{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.GLOBAL_PLAYER_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.RESOURCE_ITEM_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.WELCOME_POPUP_SELECTOR)}],requiresSubscription:!0,isAccessibleForFree:!1,regionsAllowed:h(n,null==e?void 0:e.id),potentialAction:{"@type":"WatchAction",actionAccessibilityRequirement:{"@type":"ActionAccessSpecification",requiresSubscription:!0}}}}var E={getDefaultMetadata:function(e){var t=e.title,n=e.description,r=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,o=e.hrefLang;return{title:g({title:t,phraseContext:a,product:e.product}),description:y({title:t,description:n,phraseContext:a}),canonicalLink:r,allowIndexing:i,hrefLang:o}},getVideoMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing,i=e.hrefLang,o=e.regionAlternatives,c=e.product;return{title:g({title:null==t?void 0:t.name,phraseContext:r,product:c}),description:y({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:r}),jsonLd:b(t,n,o),canonicalLink:n,allowIndexing:a,hrefLang:i}},getClipMetadata:function(e){var t,n=e.content,r=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing;return{title:g({title:null==n?void 0:n.name,phraseContext:a}),description:y({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:a}),canonicalLink:r,allowIndexing:i}},getInteractiveMetadata:function(e){var t,n=e.content,r=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing;return{title:g({title:null==n?void 0:n.name,phraseContext:a}),description:y({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:a}),canonicalLink:r,allowIndexing:i}},getPlaylistMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing;return{title:g({title:null==t?void 0:t.name,phraseContext:r}),description:y({title:null==t?void 0:t.name,phraseContext:r}),canonicalLink:n,allowIndexing:a}},getSeriesMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing;return{title:g({title:null==t?void 0:t.name,phraseContext:r}),description:y({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:r}),canonicalLink:n,allowIndexing:a}},getClassificationMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing,i=e.hrefLang,o=e.product;return{title:g({title:null==t?void 0:t.name,phraseContext:r,product:o}),description:y({title:null==t?void 0:t.name,phraseContext:r}),canonicalLink:n,allowIndexing:a,hrefLang:i}},getDiscoverMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing,i=e.hrefLang,o=e.product;return{title:g({title:null==t?void 0:t.name,phraseContext:r,product:o}),description:y({title:null==t?void 0:t.name,phraseContext:r}),canonicalLink:n,allowIndexing:a,hrefLang:i}}}},26361:(e,t,n)=>{n.d(t,{l:()=>v});var r=n(23481),a=n(110),i=n(86474),o=n(5345),c=n(35223);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=r.T.encloseNamespace("shared.shared-utils"),d=s(s({},o.c.Custom,i.Z.restrictionBadgeCustom),o.c.User,i.Z.restrictionBadgeUser),m=s(s({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),p=s(s({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),f=s(s({},o.c.Custom,200),o.c.User,100),v={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var n=v.getWeightedRestriction(e.value);return d[n.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var n=v.getWeightedRestriction(e.value);return m[n.type]},mapRestrictionToText:function(e,t){var n;if(!(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.length)||!(null==t?void 0:t.length))return"";var r=v.getWeightedRestriction(e.value),a=t.find((function(e){return e.value===r.yearGroup})),i=p[r.type];if(r.type===o.c.User)return null===r.yearGroup?u("restrictionStaff"):a?u(i,{yearGroup:a.name}):"";if(r.type===o.c.Custom){var c=v.getRestrictionDuration(r);return c?u(i,{duration:c,smartCount:c}):u("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(null==e?void 0:e.length)return 1===e.length?e[0]:e.reduce((function(e,n){var r=f[e.type],a=f[n.type];return"highest"===t&&r>a||"lowest"===t&&r<a?e:n}))},getRestrictionByType:function(e,t){if(!v.hasRestrictions(e))return null;var n=Array.isArray(t)?t:[t],r=e._restrictions.value.filter((function(e){return n.includes(e.type)}));return v.getWeightedRestriction(r)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=a.O.convertUTCToLocal(e.expiresOn);if(t)return a.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!v.getRestrictionByType(e,[o.c.Custom])},hasRestrictions:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===n?void 0:n.length)}}},81993:(e,t,n)=>{n.d(t,{u:()=>u});var r=n(23481),a=n(96560),i=n(1164),o=n(35223);function c(e){return c="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},c(e)}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="shared.shared-utils",u={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-blue";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case a.r.HostedLibrary:case a.r.CustomLibrary:return e.name;case a.r.Exchange:return r.T.getPhrase(s,"exchange");case a.r.Workspace:return r.T.getPhrase(s,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case a.r.HostedLibrary:case a.r.CustomLibrary:return"bg-blue";case a.r.Exchange:return"bg-green";case a.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t=l(l(l(l(l(l(l({},i.L.Pdf,o.vn.FilePDF),i.L.Image,o.vn.FileImg),i.L.PowerPoint,o.vn.FilePowerpoint),i.L.Document,o.vn.FileWord),i.L.Excel,o.vn.FileExcel),i.L.Zip,o.vn.FileZip),i.L.File,o.vn.File)[e];return t||(t=o.vn.Folder),t},mapTypeToClass:function(e){switch(e){case i.L.Pdf:return"icon-red";case i.L.Image:return"icon-purple";case i.L.Document:return"icon-blue";case i.L.Excel:return"icon-green";case i.L.PowerPoint:return"icon-orange";case i.L.Zip:return"icon-teal";case i.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case i.L.Pdf:return r.T.getPhrase(s,"pdf");case i.L.Image:return r.T.getPhrase(s,"image");case i.L.Document:return r.T.getPhrase(s,"document");case i.L.Excel:return r.T.getPhrase(s,"spreadsheet");case i.L.PowerPoint:return r.T.getPhrase(s,"presentation");case i.L.Zip:return r.T.getPhrase(s,"zipArchive");case i.L.File:return r.T.getPhrase(s,"file");default:return""}}}},26255:(e,t,n)=>{n.d(t,{y:()=>i});var r=n(110),a=n(59795),i={getStartTime:function(e){return r.O.format(a.t.convertUTCToTimezoneDate(e.startDateTime),"h:mm a")},isSameTime:function(e,t){return 0!==t&&r.O.isSame(e[t].content.startDateTime,e[t-1].content.startDateTime)},isPastEvent:function(e){return r.O.isBefore(e.endDateTime,new Date)}}},42553:(e,t,n)=>{n.r(t),n.d(t,{CalendarView:()=>Me});var r=n(32735),a=n(23481),i=n(57900),o=n(2948),c=n(20354),l=n(110),s=n(1048),u=n(80247),d=n(28400),m=n(43933),p=n(41353);const f={wrapper:"WRLhh",weekend:"mF0ka"};function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(e){var t,n,a,i=e.date,o=e.notCurrentMonth,c=(n=r.useState(0),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(n,a)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],u=c[1],d="position-relative border ".concat(e.theme.border," ").concat(f.wrapper);(function(e){return 0===l.O.getWeekday(e)||6===l.O.getWeekday(e)})(i)&&(d+=" ".concat(f.weekend)),o&&(d+="opacity-50");var g=(null===(t=e.events)||void 0===t?void 0:t.filter((function(t){return l.O.isSame(e.date,t.startDate)})))||[],y=Object.assign(Object.assign({},e),{eventsOnDay:g,sliderStep:s,setSliderStep:u});return r.createElement("td",{className:d},(null==g?void 0:g.length)>0?r.createElement(p.K,{hoverableComponent:m.X,componentProps:y,hoverScale:1.35}):r.createElement(m.X,Object.assign({},y,{isHovering:!1})))}var y=n(12324),h=n(79967),b=n(57408),E=n(15800),C=n(83345),w="specialEvent.eventsEmptyState",O=a.T.encloseNamespace(w);function L(e){return r.createElement(C.D.Provider,{value:w},r.createElement(E.u,null,r.createElement(E.u.Image,{src:e.imageUrl,altText:O("info")}),r.createElement(E.u.Heading,null,e.heading||r.createElement(C.x,{phrase:"heading"})),e.appLink&&r.createElement(E.u.Info,null,r.createElement(r.Fragment,null,r.createElement(C.x,{namespace:w,phrase:"info"}),r.createElement(b.F,{appLink:e.appLink},r.createElement("span",{className:"text-info"},O("link")))))))}var S=n(23062);const k={date:"k2lLG",first:"E18Bv"};function T(e){var t={};e.events.forEach((function(e){var n=e.startDate;t[n]?t[n].push(e):t[n]=[e]}));var n=Object.keys(t);return n.sort((function(e,t){return l.O.isBefore(e,t)?-1:0})),r.createElement("div",{className:"py-1"},n.map((function(n,a){var i="",o="";return r.createElement("div",{key:n},r.createElement("div",{className:"h4 mt-4 ".concat(k.date," ").concat(0===a?k.first:"")},y.T.getOrdinalDate(n)),t[n].map((function(t){var n;return i=o,o=null===(n=e.getStartTime)||void 0===n?void 0:n.call(e,t.content),r.createElement(S.b,{key:t.content.id,getAppLink:function(t,n){return e.appLink(t,d.m.slugify(n))},event:t,presentationId:e.presentationId,getIconUrl:e.getIconUrl,getBannerUrl:e.getBannerUrl,getBackgroundColor:e.getBackgroundColor,getActionLabel:function(){return e.getActionLabel(t.content)},getStartTime:e.getStartTime&&i!==o?e.getStartTime:null,isPastEvent:e.isPastEvent})})))})))}const D={header:"sTIcQ",thead:"ekxZd"};function x(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,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function M(e){var t,n=e.appLinks,a=e.imageUrls,i=(0,h.k)(),o=y.T.getEventsInMonth(e.events||[],e.viewingMonth),c=x(r.useState(!1),2),l=c[0],s=c[1],m=x(r.useState(null),2),p=m[0],f=m[1];return e.eventsLoaded&&!(null==o?void 0:o.length)?r.createElement(L,{imageUrl:a.emptyState,appLink:null===(t=n.emptyStateRedirect)||void 0===t?void 0:t.call(n),heading:e.emptyStateHeading}):"list"===e.viewMode||i.xs||i.sm||i.md?e.eventsLoaded?r.createElement(T,{events:o,presentationId:e.presentationId,appLink:e.appLinks.event,getIconUrl:e.getIconUrl,getBannerUrl:e.getBannerUrl,getBackgroundColor:e.getBackgroundColor,getActionLabel:e.getActionLabel,getStartTime:e.getStartTime,isPastEvent:e.isPastEvent}):r.createElement("div",{className:"d-flex justify-content-center align-items-center mb-4"},r.createElement(u.Z,{as:"div",animation:"border",role:"status"})):r.createElement("table",{className:"user-select-none w-100 mt-3 overflow-hidden rounded-top-lg"},r.createElement("thead",{className:"border ".concat(e.theme.border," ").concat(D.thead)},r.createElement("tr",{className:"fw-semibold ".concat(e.theme.background," ").concat(D.header)},e.weekDaysHeader.map((function(e){return r.createElement("th",{key:e,className:"px-2 h4",scope:"col"},e)})))),r.createElement("tbody",null,e.weekDays.map((function(t){return r.createElement("tr",{key:t[0].toString()},t.map((function(t){return r.createElement(g,{key:t.toString(),date:t,notCurrentMonth:!!t.notCurrentMonth,events:e.events,monthQuery:e.monthQuery,hasInitialized:l,setHasInitialized:s,presentationId:e.presentationId,hoveredEvent:p,theme:e.theme,setHoveredEvent:f,getEventsListAppLink:function(){return e.appLinks.eventList(e.monthQuery,t,e.presentationId)},getTopicAppLink:function(t,n){return e.appLinks.event(t,d.m.slugify(n))},getIconUrl:e.getIconUrl,getBackgroundColor:e.getBackgroundColor,getCoverUrl:e.getCoverUrl,getHardCodedEvent:e.getHardCodedEvent,fadePastEvents:e.fadePastEvents,timezone:e.timezone})})))}))))}M.defaultProps={theme:{border:"border-light-blue",background:"bg-light-blue"}};var P=n(81886),I=n(65858),N=n(75896),j=new Date("2023-01-01"),Y=12;function U(e,t){for(var n=l.O.startOf(e,"month"),r=l.O.getWeekday(n),a=[],i=t?0===r?6:r-1:r,o=t?1:0;o<=i;o++){var c=n,s=l.O.weekday(c,r-o);a.push(Object.assign(s,{notCurrentMonth:!0}))}return a.reverse()}function R(e,t){for(var n=l.O.endOf(e,"month"),r=l.O.getWeekday(n),a=[],i=t?7-(0===r?7:r):7-r,o=1;o<=i;o+=1){var c=l.O.add(n,o,"days");a.push(Object.assign(c,{notCurrentMonth:!0}))}return a}function _(e){var t=l.O.startOf(e,"month");return 1===l.O.getWeekday(t)?t:N.m.first(U(e,!0))}function F(e){var t=l.O.endOf(e,"month");return 0===l.O.getWeekday(t)?t:N.m.last(R(e,!0))}function B(e){return[_(e),F(e)]}function H(e){return e.charAt(0).toUpperCase()+e.slice(1)}var V=new Date,W=n(63855),G=n(83914),Z=n(35223);const q={chevron:"U_GAM",left:"t_wDz",right:"KgpGw",viewModeContainer:"csNfk"};var z="specialEventCalendar.calendarNav";function Q(e){return r.createElement("div",{className:"".concat(q.viewModeContainer," d-none d-lg-block")},r.createElement(W.h,{svgName:Z.vn.Calendar,className:"".concat("calendar"===e.viewMode?"bg-dark text-white":""," btn btn-outline-dark rounded-start rounded-end-0 border-end-0 px-3 h-100"),onClick:function(){return e.setViewMode("calendar")},analyticsData:{},analyticsOptions:{entity:I.py.AppLink,actionType:I.Vw.Click,descriptor:I.Jf.Calendar,location:I.LZ.CalendarNav}}),r.createElement(W.h,{svgName:Z.vn.TableOfContents,className:"".concat("list"===e.viewMode?"bg-dark text-white":""," btn btn-outline-dark rounded-end rounded-start-0 border-start-0 px-3 h-100"),onClick:function(){return e.setViewMode("list")},analyticsData:{},analyticsOptions:{entity:I.py.AppLink,actionType:I.Vw.Click,descriptor:I.Jf.List,location:I.LZ.CalendarNav}}))}function $(e){var t="previous"===e.action?Z.vn.ChevronLeft:Z.vn.ChevronRight,n="previous"===e.action?q.left:q.right;return r.createElement(b.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"".concat(q.chevron," ").concat(n," border border-dark rounded-circle bg-white d-flex align-items-center justify-content-center"),onClick:function(){P.Q.C$.trigger(e.appLink),e.onClick()}},r.createElement(G.x,{svgName:t,size:G.S.Medium,className:"svg-container d-inline-block ".concat(q.svg)}))}var X=new Date;function J(e){var t=e.appLinks,n=(0,h.k)();function i(n){var r,a,i=l.O.format(n,"MMMM").toLocaleLowerCase(),o=t.month(i),c={};if(n){var s=(new Date).getFullYear(),u=n.getFullYear();s!==u&&(c.year=u)}return(null===(r=e.queryParams)||void 0===r?void 0:r.classification)&&(c.classification=e.queryParams.classification),(null===(a=e.queryParams)||void 0===a?void 0:a.yearGroup)&&(c.yearGroup=e.queryParams.yearGroup),o.params=c,o}var o,c,s=(o=e.monthDate,c=l.O.diffBetween(l.O.startOf(o,"month"),l.O.startOf(V,"month"),"months"),{showPrev:l.O.isAfter(o,j,"month"),showNext:c<Y}),u=s.showPrev,d=s.showNext,m={actionType:I.Vw.Click,entity:I.py.SpecialEvent,location:I.LZ.CalendarNav};function p(e){return l.O.format(e,"YYYY-MM-DD")}return r.createElement("div",{className:"d-flex flex-wrap gap-3 justify-content-end align-items-center"},r.createElement("h1",{className:"mb-0 h2 me-auto"},l.O.format(e.monthDate,n.xs?"MMM YYYY":"MMMM YYYY")),e.children,e.setViewMode&&r.createElement(Q,{viewMode:e.viewMode,setViewMode:e.setViewMode}),r.createElement("div",{className:"d-flex gap-3"},u&&r.createElement($,{appLink:i(l.O.startOf(l.O.subtract(e.monthDate,1,"month"),"month")),action:"previous",onClick:function(){var t=l.O.subtract(e.monthDate,1,"month");e.setViewingMonthDate(t)},analyticsOptions:m,analyticsData:{action:"previous",date:p(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month"))}}),r.createElement(b.F,{appLink:i(),className:"".concat(q.todayWrapper," btn btn-outline-dark fw-semibold"),onClick:function(){l.O.format(X,"M YY")!==l.O.format(e.monthDate,"M YY")&&e.setViewingMonthDate()},analyticsOptions:m,analyticsData:{action:"today",date:p(l.O.startOf(X,"month"))}},a.T.getPhrase(z,"today")),d&&r.createElement($,{appLink:i(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month")),analyticsOptions:m,analyticsData:{action:"next",date:p(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month"))},action:"next",onClick:function(){var t=l.O.add(e.monthDate,1,"month");e.setViewingMonthDate(t)}})))}var K="specialEvent.eventsErrorState",ee=a.T.encloseNamespace(K);function te(e){return r.createElement(C.D.Provider,{value:K},r.createElement(E.u,null,r.createElement(E.u.Image,{src:e.imageUrl}),r.createElement(E.u.Heading,null,r.createElement(C.x,{phrase:"heading"})),r.createElement(E.u.Info,null,r.createElement(C.x,{namespace:K,phrase:"info"}),r.createElement("br",null),r.createElement(b.F,{appLink:e.appLink},r.createElement("span",{className:"text-info"},ee("link"))))))}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var re=new Date;function ae(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re,a=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=function(e){var t=e?[1,2,3,4,5,6,0]:[0,1,2,3,4,5,6],n=new Date;return t.map((function(e){return l.O.format(l.O.weekday(n,e),"ddd")}))}(i),c=r.useRef({}),s=(e=r.useState([]),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ne(e,t);var n={}.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)?ne(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1],m=l.O.format(n,"YYYY-MM");r.useEffect((function(){var e=c.current[m];if(e)d(e.weeksTable);else{var t=function(e,t){for(var n=[],r={},a=U(e,t).concat(function(e){for(var t=l.O.daysInMonth(e),n=[],r=1;r<=t;r++){var a=l.O.set(e,"date",r);n.push(Object.assign(a,{notCurrentMonth:!1}))}return n}(e)).concat(R(e,t)),i=function(e){var t=a.slice(o,o+7);t.forEach((function(t,n){r[l.O.format(t,"YYYY-MM-DD")]={row:e,col:n}})),n.push(t),e++,c=e},o=0,c=0;o<a.length;o+=7)i(c);return{datePositionMap:r,weeksTable:n}}(n,i),r=t.weeksTable,a=t.datePositionMap;c.current[m]={weeksTable:r,datePositionMap:a},d(r)}}),[l.O.format(n,"YYYY-MM")]);var p=N.m.first(N.m.first(u)),f=N.m.last(N.m.last(u));return{weekDaysHeader:o,weekDays:u,monthDate:n,setMonthDate:function(e){if(e){if(m!==l.O.format(e,"YYYY-MM")){var t=l.O.format(e,"MMMM").toLocaleLowerCase(),r=(new Date).getFullYear(),i=n.getFullYear(),o=a.month(t);r!==i&&(o.params={year:i}),P.Q.C$.trigger(o)}}else P.Q.C$.trigger(a.calendar())},startDate:p,endDate:f}}var ie=n(56909),oe=n(19716),ce=n(54168),le=n(40290),se=n(54610),ue=n(16714),de=n(25925),me=n(89454),pe=n(21750),fe=n(22902),ve=n(79612),ge=n(67453),ye=n(25301),he=n(41760),be=n(31700),Ee=n(6117),Ce=n(55941);function we(e){return function(e){if(Array.isArray(e))return Se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Le(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(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,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||Le(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){if(e){if("string"==typeof e)return Se(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Se(e,t):void 0}}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ke=n(26255),Te=n(323),De=n(27051);function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ae=a.T.encloseNamespace("livestreamCalendar.calendarView");function Me(e){var t,n,a,u,d,m=(u=(0,o.D)("calendar:mode",{viewMode:"calendar"},{storage:i.Z1.LocalStorage}),d=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(u,d)||function(e,t){if(e){if("string"==typeof e)return xe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}(u,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=m[0].viewMode,f=m[1],v=(0,(0,fe.T)().hasPermissions)(ue.C.StudentExperience),g=c.a.useBasicFetch(be.g.streamablePresentation()),h=c.a.useBasicFetch(g.data&&me.O.presentationAudiences(g.data.id,de.R.StreamableLearning)),b=c.a.useBasicFetch(g.data&&pe.x.topicsFromAllAvailablePresentations([g.data.id])),E=function(e){if(!e)return!0;var t=H(e);if(!l.O.formatIsValid(t,"MMMM-YYYY",!0))return!1;var n=l.O.parseDateString(t,"MMMM-YYYY");return l.O.isSame(n,j,"month")||l.O.isAfter(n,j,"month")}(e.month),C=function(e){if(!e)return l.O.parseDateString();var t=H(e);return l.O.parseDateString(t,"MMMM-YYYY")}(e.month),w=ae(C,(0,Te.C)()),O=w.monthDate,L=w.setMonthDate,S=w.weekDays,k=w.weekDaysHeader,T=w.startDate,D=w.endDate,x=function(e,t){var n=Oe(B(e),2),r=n[0],a=n[1],i=Oe(B(l.O.add(e,1,"month")),2),o=i[0],s=i[1],u=Oe(B(l.O.subtract(e,1,"month")),2),d=u[0],m=u[1],p={};t.yearGroup&&(p.audienceId=t.yearGroup),t.classification&&(p.topicId=t.classification,p.includeChildrenTopics=!0);var f=c.a.useBasicFetch(r&&a&&Ce.H.calendarLivestreams(Object.assign({from:l.O.format(r,"YYYY-MM-DD"),to:l.O.format(a,"YYYY-MM-DD")},p))),v=c.a.useBasicFetch(o&&s&&Ce.H.calendarLivestreams(Object.assign({from:l.O.format(o,"YYYY-MM-DD"),to:l.O.format(s,"YYYY-MM-DD")},p))),g=c.a.useBasicFetch(d&&m&&Ce.H.calendarLivestreams(Object.assign({from:l.O.format(d,"YYYY-MM-DD"),to:l.O.format(m,"YYYY-MM-DD")},p)));return{events:N.m.uniq([].concat(we(g.data||[]),we(f.data||[]),we(v.data||[])),(function(e){return e.id})),loaded:f.hasCompleted}}(C,e.queryParams),A=x.events,P=x.loaded,I=l.O.format(O,"MMMM YYYY");if((0,ve.M)(ye.CG.getDefaultMetadata({title:I,phraseContext:{phraseHandler:Ae,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:Ee.f.getCanonicalLink({allowedParams:["year"]}),allowIndexing:!0,product:he.L.PRODUCT_NAME})),null!==e.month&&!E)return r.createElement(te,{imageUrl:(0,Te.j)().errorState,appLink:(0,De.h)().calendar});var Y,U,R,_,F,V=[{id:"classification",name:Ae("subjectFilter"),options:null===(t=b.data)||void 0===t?void 0:t.topics.map((function(e){return{name:e.name,id:e.topicIds.join(":")}})),type:"checkbox",compatibleIndices:[]},{id:"yearGroup",name:Ae("gradeFilter"),type:"checkbox",options:null===(n=h.data)||void 0===n?void 0:n.map((function(e){return{name:e.name,id:e.masterId}})),compatibleIndices:[]}];return r.createElement("div",{className:"bg-white px-4"},r.createElement(oe.D,{appLinks:(0,De.h)(),active:"calendar"}),r.createElement(J,{monthDate:O,setViewingMonthDate:L,appLinks:(0,Te.C)(),queryParams:e.queryParams,viewMode:p,setViewMode:function(e){return f({viewMode:e})}},r.createElement("div",{className:"mx-n1 order-1 order-sm-0"},r.createElement(ie.J,{queryParams:s.t.omit(e.queryParams,["year"]),mainFilters:V,appLink:(Y=l.O.format(O,"MMMM").toLocaleLowerCase(),U=(new Date).getFullYear(),R=O.getFullYear(),_=(0,Te.C)().month(Y),F={},U!==R&&(F.year=R),e.queryParams.classification&&(F.classification=e.queryParams.classification),e.queryParams.yearGroup&&(F.yearGroup=e.queryParams.yearGroup),_),isFetchingOptions:!b.data||!g.data||!h.data,alignResetButtonLeft:!0,hideDivider:!0,hideHeading:!0,hideCaret:!1}))),r.createElement("div",{className:"position-relative mt-3 ".concat("list"===p?"":"mt-lg-0")},r.createElement("div",{className:"d-block ".concat("list"===p?"":"d-lg-none"," position-absolute top-0 end-0 mt-2")},r.createElement(ce.d,null)),r.createElement(M,{weekDays:S,weekDaysHeader:k,events:A,monthQuery:{from:null==T?void 0:T.toString(),to:null==D?void 0:D.toString()},viewingMonth:C,eventsLoaded:P,presentationId:null===(a=g.data)||void 0===a?void 0:a.id,appLinks:(0,Te.C)(),imageUrls:(0,Te.j)(),viewMode:p,getActionLabel:function(e){return Ae(function(e){return v||l.O.isBefore(e.endDateTime,new Date)?"pastActionLabel":"actionLabel"}(e))},getBackgroundColor:function(e){var t;return null===(t=e.company.metadata)||void 0===t?void 0:t.colour},getBannerUrl:function(e){var t;return ge.j.createUrl(null===(t=e.company.banner)||void 0===t?void 0:t.url,{size:se.h2.Large})},getIconUrl:function(e){var t;return ge.j.createUrl(null===(t=e.company.logo)||void 0===t?void 0:t.url,{size:se.h2.Small})},getStartTime:ke.y.getStartTime,theme:{background:"bg-light-green",border:"border-light-green"},emptyStateHeading:function(){if(!y.T.getEventsInMonth(A||[],C).length&&(e.queryParams.yearGroup||e.queryParams.classification))return Ae("emptyStateText")}(),fadePastEvents:!0,timezone:le.r.EST,isPastEvent:ke.y.isPastEvent})))}Me.defaultProps={queryParams:{}}},323:(e,t,n)=>{n.d(t,{C:()=>c,j:()=>o});var r=n(99742),a=n(96359),i=n(41135);function o(){return{emptyState:r.W.EmptyStates.CALENDAR.NO_EVENTS,errorState:r.W.EmptyStates.CALENDAR.INVALID_DATE}}function c(){return{calendar:function(){return{application:i.O.CALENDAR,action:a.e.Calendar.CALENDAR}},month:function(e){return{application:i.O.CALENDAR,action:a.e.Calendar.CALENDAR_MONTH,args:[e]}},event:function(e,t){return{application:i.O.LIVESTREAMS,action:a.e.Livestreams.LIVESTREAM,args:[e,t]}},eventList:function(e,t,n){return{application:i.O.CALENDAR,action:a.e.Calendar.SPECIAL_EVENT_LIST,params:Object.assign(Object.assign({},e),{date:t.toString(),presentationId:n})}}}}},27051:(e,t,n)=>{n.d(t,{E:()=>o,h:()=>c});var r=n(96359),a=n(41135),i=n(65751);function o(e){return Object.assign(Object.assign({},i.y),{classification:function(t){return i.y.classification(t,e)},classificationDirectory:function(){return i.y.classificationDirectory(e)}})}function c(){return{discover:{application:a.O.DASHBOARD,action:r.e.Dashboard.HOME},calendar:{application:a.O.CALENDAR,action:r.e.Calendar.CALENDAR},partners:{application:a.O.DASHBOARD,action:r.e.Dashboard.CONTENT_PARTNERS}}}},41760:(e,t,n)=>{n.d(t,{L:()=>r});var r={VIDEO_START_TIME_CUTOFF:10,PUBLIC_SEARCH_QUERY_DEBOUNCE:600,AUTHENTICATED_SEARCH_QUERY_DEBOUNCE:300,LEGACY_ACTION_SUFFIX:":legacy",MINIMUM_GLANCE_HEIGHT:368,PRODUCT_NAME:"Streamable Learning"}},55941:(e,t,n)=>{n.d(t,{H:()=>c});var r=n(97395),a=n(110),i=n(59795),o=n(5960),c={livestream:function(e){return{url:r._.urlBuilder("/api/discover/v1/livestreams/".concat(e),{query:"audiences,recording"}),key:"streamable:livestream:".concat(e,"}")}},calendarLivestreams:function(e){var t=Object.keys(e).map((function(t){return"".concat(t,":").concat(e[t])})).join(":");return{url:r._.urlBuilder("/api/discover/v1/livestreams",Object.assign({status:o.X.Published,limit:100},e)),key:"streamable:calendar:livestreams:".concat(t),normalize:!1,formatData:function(e){return e.data.map((function(e){return{id:e.id,startDate:a.O.format(i.t.convertUTCToTimezoneDate(e.startDateTime),"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}}))}}}}},6117:(e,t,n)=>{n.d(t,{f:()=>c});var r=n(39202),a=n(14292),i=n(97395);function o(e){return o="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},o(e)}var c={isBot:function(){if(!window.URLSearchParams)return!1;var e=new URLSearchParams(window.location.search);return"true"===(null==e?void 0:e.get("isBot"))},getCanonicalLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.A.GetCurrentOrigin(),n=(null==e?void 0:e.customAppLink)||r.C$.getCurrentAppLink(),c=function(e,t){if(!(null==t?void 0:t.length)||"string"==typeof e||!e)return{};var n=t.reduce((function(e,t){return Object.assign(Object.assign({},e),(n={},a=!0,(r=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(r=t))in n?Object.defineProperty(n,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[r]=a,n));var n,r,a}),{});return Object.keys(e).reduce((function(t,r){return r in n&&(t[r]=e[r]),t}),{})}(n.params,e.allowedParams),l=r.C$.getHref(Object.assign(Object.assign({},n),{params:c}));return"function"==typeof e.hrefTransformer&&(l=e.hrefTransformer(l)),i._.safeUrlConcat(t,l)}}},86474:(e,t,n)=>{n.d(t,{Z:()=>r});const r={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 7694-4affa05b0f-streamable-learning.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[7694],{78259:(e,t,r)=>{r.d(t,{O:()=>l});var a=r(58176),n=r.n(a),i=r(21161),o={className:"info-link",defaultProtocol:"https"},l={linkifyText:function(e,t){if(e){var r=t?i.extend({},o,t):o;return n()(e,r)}}}},85473:(e,t,r)=>{r.d(t,{Z:()=>m});var a=r(32735),n=r(1048),i=r(57408),o=r(16107),l=r(54610),c=r(67453);const s={image:"vdd4V",thumbnail:"Ez0E7",tallPoster:"H9bQA",cover:"Nudts",banner:"IOvDH",poster:"iiY56",pdf:"aDJiJ",link:"wDpui"};function u(e){var t=s.image,r="";return e.imageType===l.__.Thumbnails&&(r="thumbnail ".concat(s.thumbnail)),e.imageType===l.__.TallPosters&&(r=s.tallPoster),e.imageType===l.__.Covers&&(r=s.cover),e.imageType===l.__.Banners&&(r=s.banner),e.imageType===l.__.Posters&&(r=s.poster),e.imageType===l.__.Pdf&&(r=s.pdf),e.imageType===l.__.Link&&(r=s.link),r&&(t+=" ".concat(r)),e.className&&(t+=" ".concat(e.className)),t}function m(e){var t=e.data,r=e.imageOptions,l=e.appLink,s=e.preload,m=e.preventLoad,d=e.analyticsOptions,p=e.analyticsData,v=e.imageClassName,f=e.alt,h="";"string"==typeof t?h=t:n.t.isObject(t)&&(h=t.url);var g=h&&r?c.j.createUrl(h,r):h;return a.createElement("div",{className:u(e),style:e.imageStyle},a.createElement(i.F,{appLink:l,analyticsData:p,analyticsOptions:d,onClick:e.onClick,preventFocus:e.preventFocus},e.children,g&&a.createElement(o.w,{src:g,alt:f,forceLoad:s,preventLoad:m,extraClasses:v,errorFallbackImageSrc:e.errorFallbackImageSrc,errorFallbackImageClassName:e.errorFallbackImageClassName})))}},5960:(e,t,r)=>{var a,n;r.d(t,{H:()=>n,X:()=>a}),function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(a||(a={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(n||(n={}))},91286:(e,t,r)=>{r.d(t,{v:()=>o});var a=r(32735),n=r(45445);function i(e){return e.map((function(e){return e.statusCode})).join(":")}function o(e,t,r){var o=Array.isArray(e)?e:[e];(0,a.useEffect)((function(){o.forEach((function(e){(0,n.r)(e.statusCode,t,r)}))}),[i(o),t,r])}},65294:(e,t,r)=>{r.d(t,{Y:()=>i});var a=r(34152);function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function i(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.prevent,o=r.rootMargin,l=r.triggerOnce,c=void 0===l||l,s=(e=(0,a.YD)({triggerOnce:c,rootMargin:o}),t=3,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,i,o,l=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(a=i.call(r)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,n=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw n}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(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],m=s[1],d=s[2];return!0!==i&&void 0!==window.IntersectionObserver||(m=!0,u=null),{ref:u,inView:m,initialized:!!d}}},92593:(e,t,r)=>{r.r(t),r.d(t,{LivestreamView:()=>Re});var a=r(32735),n=r(95846),i=r(81886),o=r(23481),l=r(57900),c=r(92869),s=r(97395),u=r(67575),m=r(2948),d=r(20354),p=r(110),v=r(28400),f=r(92582),h=r(65858),g=r(72688),y=r(99504),b=r(80412),E=r(78259),N=r(40290),w=r(59795),x=r(57408),S=r(85473),k=r(83914),L=r(83345),O=r(54610),A=r(69454),T=r(67453),P=r(35223);const _={logoContainer:"L5WZ0"};var j="streamable.livestreamDetails";function D(e){var t,r,n;function i(e){return w.t.convertUTCToTimezoneDate(e)}return a.createElement(a.Fragment,null,a.createElement("div",{className:"d-flex align-items-center mb-2"},e.logoUrl&&a.createElement(x.F,{appLink:e.companyAppLink},a.createElement("div",{className:"".concat(_.logoContainer," rounded-circle flex-shrink-0 overflow-hidden partial-loading-background me-2")},a.createElement(S.Z,{data:T.j.createUrl(e.logoUrl,{size:O.h2.Small}),alt:e.companyName,preload:!0}))),a.createElement("div",{className:"d-flex flex-column justify-content-between"},e.companyName&&a.createElement(x.F,{appLink:e.companyAppLink,className:"text-uppercase text-wrap d-block text-truncate mb-0",title:e.companyName},e.companyName),a.createElement("h1",{className:"h4 mb-0"},e.eventName))),a.createElement("div",{className:"d-flex gap-2 mb-3"},!!(null===(t=e.audiences)||void 0===t?void 0:t.length)&&a.createElement("div",{className:"rounded-pill border border-dark px-2"},function(){var t;return null===(t=A.T.getMergedPresentationAudienceString(e.audiences))||void 0===t?void 0:t.name}()),a.createElement("div",{className:"rounded-pill fw-semibold bg-dark text-white px-2"},a.createElement("span",{className:"align-middle"},"".concat(p.O.diffBetween(e.endTime,e.startTime,"minutes"),"m")))),e.isPastLivestream&&a.createElement("div",{className:"d-inline-flex align-items-center bg-light-green rounded-pill p-1 pe-2 gap-2 mb-3"},a.createElement(k.x,{svgName:P.vn.Check,className:"svg-container text-white bg-success rounded-circle"}),a.createElement("p",{className:"align-middle mb-0"},a.createElement(L.x,{namespace:j,phrase:"pastLivestream"}))),!e.isPastLivestream&&a.createElement(a.Fragment,null,a.createElement("p",{className:"mb-2"},a.createElement(k.x,{svgName:P.vn.Timer,size:k.S.Small}),a.createElement("span",{className:"ms-1"},(n=e.startTime,p.O.format(i(n),"h:mma")))),a.createElement("p",{className:"mb-2"},a.createElement(k.x,{svgName:P.vn.Calendar,size:k.S.Small}),a.createElement("span",{className:"ms-1"},(r=e.startTime,p.O.format(i(r),"Do MMMM")))),a.createElement("p",{className:"mb-3"},a.createElement(k.x,{svgName:P.vn.Globe,size:k.S.Small}),a.createElement("span",{className:"ms-1"},function(e){var t,r;return"".concat(null===(t=N.F[e])||void 0===t?void 0:t.code," - ").concat(null===(r=N.F[e])||void 0===r?void 0:r.name)}(e.timezone)))),e.description&&a.createElement("p",{className:"mb-3 pre-wrap text-break",dangerouslySetInnerHTML:{__html:E.O.linkifyText(e.description)}}))}var F=r(99940),C={createBooking:function(e){return{publicUrl:"/api/integrations/api/v1/bookings",url:"{gateway}/v1/events/booking",key:"streamable:create:booking",type:F.k.POST,data:e}}},I=r(58960),U=r(5960),R=r(16714),M=r(67058),V=r(7822),q=r(39151),B=r(31949),z=r(91286),G=r(35286),Z=r(22902),H=r(79612),Y=r(75795),W=r(25301),K=r(96359),Q=r(41760),$=r(41135),X=r(67946),J=r(55941),ee=r(22314),te=r(6117);const re={logo:"mOQW9"};var ae="streamable.bookingSuccess";function ne(e){var t;return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(re.logo," rounded-circle flex-shrink-0 overflow-hidden partial-loading-background mx-auto mb-3")},a.createElement(S.Z,{data:T.j.createUrl(null===(t=e.livestream.company.logo)||void 0===t?void 0:t.url,{size:O.h2.Small}),alt:e.livestream.company.name,preload:!0})),a.createElement("div",{className:"d-flex align-items-center justify-content-center mb-3 gap-1"},a.createElement(k.x,{svgName:P.vn.CheckCircle,className:"svg-container std text-success"}),a.createElement("h1",{className:"h3 mb-0 fw-semibold"},a.createElement(L.x,{namespace:ae,phrase:"booked"}))),a.createElement("div",{className:"my-3"},a.createElement(D,{companyId:e.livestream.company.id,companyName:e.livestream.company.name,eventName:e.livestream.name,audiences:e.livestream.audiences,startTime:e.livestream.startDateTime,endTime:e.livestream.endDateTime,timezone:e.livestream.timezone})),a.createElement("p",null,a.createElement(L.x,{namespace:ae,phrase:"emailReminder"})))}var ie=r(99742);const oe={image:"dxgov"};var le="streamable.bookingError";function ce(e){return a.createElement("div",{className:"d-flex flex-column justify-content-center"},a.createElement("div",{className:"".concat(oe.logo," rounded-circle flex-shrink-0 overflow-hidden partial-loading-background mx-auto mb-3")},a.createElement("img",{className:oe.image,src:ie.W.General.LOST_MESSAGE_BOTTLE})),a.createElement("h3",{className:"text-center mb-3"},a.createElement(L.x,{namespace:le,phrase:"heading"})),a.createElement("p",{className:"text-center mb-3"},a.createElement(L.x,{namespace:le,phrase:"description"})),a.createElement("button",{className:"btn btn-dark",onClick:e.onTryAgain},a.createElement(L.x,{namespace:le,phrase:"buttonLabel"})))}function se(e){return a.createElement("div",{className:"".concat(e.className),style:e.coverImageUrl&&{backgroundImage:"url(".concat(T.j._createUrl(e.coverImageUrl,{size:O.h2.Large}),")")}})}var ue=r(92802),me=r(5173),de=r(68293),pe=r(47464),ve=r(76530),fe=r(1269),he=r(82644),ge=r(2102),ye=r(93824);function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,i,o,l=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(a=i.call(r)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,n=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw n}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ee(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ee(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}var Ne="streamable.livestreamView",we=o.T.encloseNamespace(Ne),xe=me.Ry({firstName:me.Z_().required(we("firstNameRequired")),lastName:me.Z_().required(we("lastNameRequired")),email:me.Z_().email(we("emailValid")).required(we("emailRequired")),attendees:me.Z_().required(we("attendeesRequired"))}),Se=xe.concat(me.Ry({schoolOrDistrict:me.Z_().required(we("schoolOrDistrictRequired")),jobTitle:me.Z_().required(we("jobTitleRequired")),phoneNumber:me.Z_().required(we("phoneNumberRequired")).matches(/^[0-9]+$/,we("phoneNumberValid"))}));function ke(e){var t,r,n,i,o,l,c,s,u,m=(0,he.b)(),d=be(a.useState({}),2),p=d[0],v=d[1],f=be(a.useState(!1),2),h=f[0],g=f[1];function y(){m.setFieldValue("schoolOrDistrict",""),m.setFieldValue("country",""),m.setFieldValue("province",""),m.setFieldValue("prospectId",""),b()}function b(){window.setTimeout((function(){return m.validateForm()}),0)}return a.createElement(ue.l0,null,a.createElement("div",{className:"row my-3"},a.createElement("div",{className:"col-12 col-sm-6"},a.createElement(fe.W,{label:we("firstName"),name:"firstName",placeholder:we("firstNamePlaceholder"),value:null===(t=m.values)||void 0===t?void 0:t.firstName,disabled:e.isAuthenticated,showRequiredStar:!e.isAuthenticated})),a.createElement("div",{className:"col-12 col-sm-6"},a.createElement(fe.W,{label:we("lastName"),name:"lastName",placeholder:we("lastNamePlaceholder"),value:null===(r=m.values)||void 0===r?void 0:r.lastName,disabled:e.isAuthenticated,showRequiredStar:!e.isAuthenticated})),a.createElement("div",{className:"col-12"},a.createElement(fe.W,{label:we("email"),name:"email",placeholder:we("emailPlaceholder"),value:null===(n=m.values)||void 0===n?void 0:n.email,disabled:e.isAuthenticated,showRequiredStar:!e.isAuthenticated})),!e.isAuthenticated&&a.createElement(a.Fragment,null,a.createElement("div",{className:"col-12"},h?a.createElement(fe.W,{label:we("schoolOrDistrict"),name:"schoolOrDistrict",value:null===(i=m.values)||void 0===i?void 0:i.schoolOrDistrict,showRequiredStar:!0,placeholder:we("schoolOrDistrictPlaceholder"),autoFocus:!0}):a.createElement(a.Fragment,null,a.createElement(pe.l,{data:p,setData:function(e){v(Object.assign(Object.assign({},p),e)),y()},clearData:function(){v({}),y()},labelClassName:"form-label",geoLocation:{countryCode:"US"},googleMapsApiKey:e.googleMapsApiKey,required:!0,hideOnBlur:!0}),a.createElement(ve.X,{data:p,setData:function(e){v(Object.assign(Object.assign({},p),e)),m.setFieldValue("schoolOrDistrict",e.schoolName),m.setFieldValue("country",e.country),m.setFieldValue("province",e.province),m.setFieldValue("prospectId",e.prospectId),b()},clearData:function(){v(Object.assign(Object.assign({},p),{prospectId:void 0,schoolName:void 0,schoolPostCode:void 0})),y()},disabled:!p.schoolLocality,searchUrl:e.searchProspectsUrl,onClickNoSuggestions:function(){return g(!0)},required:!0,placeholder:!p.schoolLocality&&we("schoolPlaceholder"),hideOnBlur:!0}))),a.createElement("div",{className:"col-12"},a.createElement(de.B,{id:"job-title",error:(null===(o=m.touched)||void 0===o?void 0:o.jobTitle)&&(null===(l=m.errors)||void 0===l?void 0:l.jobTitle),countryCode:ye.C.US,initialValue:null===(c=m.values)||void 0===c?void 0:c.jobTitle,onChange:function(e){return m.setFieldValue("jobTitle",e,!1)},labelClassName:"form-label",required:!0}))),a.createElement("div",{className:"col-12 col-sm-6 col-xl-4"},a.createElement(fe.W,{type:"number",label:we("attendees"),name:"attendees",placeholder:we("attendeesPlaceholder"),min:1,value:null===(s=m.values)||void 0===s?void 0:s.attendees,showRequiredStar:!0})),!e.isAuthenticated&&a.createElement("div",{className:"col"},a.createElement(fe.W,{label:we("phoneNumber"),name:"phoneNumber",placeholder:we("phoneNumberPlaceholder"),value:null===(u=m.values)||void 0===u?void 0:u.phoneNumber,showRequiredStar:!0}))),a.createElement(ge.m,{type:"submit",className:"w-100",variant:"dark",showSpinner:e.showSpinner,disabled:!m.isValid},a.createElement(L.x,{namespace:Ne,phrase:"book"})))}function Le(e){return a.createElement(he.n,{initialValues:e.initialValues,validationSchema:e.isAuthenticated?xe:Se,validateOnMount:!0,onSubmit:e.onSubmit},a.createElement(ke,{isAuthenticated:e.isAuthenticated,showSpinner:e.showSpinner,googleMapsApiKey:e.googleMapsApiKey,searchProspectsUrl:e.searchProspectsUrl}))}const Oe={noRecording:"O0mTQ",coverImage:"G47S2",popup:"DydcO",page:"YxTMr"};function Ae(e){return Ae="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},Ae(e)}function Te(){Te=function(){return t};var e,t={},r=Object.prototype,a=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,a){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),l=new P(a||[]);return n(o,"_invoke",{value:L(e,r,l)}),o}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",v="executing",f="completed",h={};function g(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var N=Object.getPrototypeOf,w=N&&N(N(_([])));w&&w!==r&&a.call(w,o)&&(E=w);var x=b.prototype=g.prototype=Object.create(E);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(n,i,o,l){var c=m(e[n],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Ae(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return r("throw",e,o,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,a){function n(){return new t((function(t,n){r(e,a,t,n)}))}return i=i?i.then(n,n):n()}})}function L(t,r,a){var n=d;return function(i,o){if(n===v)throw Error("Generator is already running");if(n===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=O(l,a);if(c){if(c===h)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===d)throw n=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=v;var s=m(t,r,a);if("normal"===s.type){if(n=a.done?f:p,s.arg===h)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(n=f,a.method="throw",a.arg=s.arg)}}}function O(t,r){var a=r.method,n=t.iterator[a];if(n===e)return r.delegate=null,"throw"===a&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),h;var i=m(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(a.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Ae(t)+" is not iterable")}return y.prototype=b,n(x,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},S(k.prototype),s(k.prototype,l,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,a,n,i){void 0===i&&(i=Promise);var o=new k(u(e,r,a,n),i);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(x),s(x,c,"Generator"),s(x,o,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var a in t)r.push(a);return r.reverse(),function e(){for(;r.length;){var a=r.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=_,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(a,n){return l.type="throw",l.arg=t,r.next=a,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;T(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,a){return this.delegate={iterator:_(t),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=e),h}},t}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,i,o,l=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(a=i.call(r)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,n=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw n}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _e(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_e(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 _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}var je=function(e,t,r,a){return new(r||(r=Promise))((function(n,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))},De="streamable.livestreamView",Fe=o.T.encloseNamespace(De);function Ce(e){var t,r=i.Q.C$.getHref(i.Q.C$.getCurrentAppLink()),n="/"!==r?{redirectUrl:r}:{},o="newsletter"===e.origin,l=!e.isAuthenticated&&!o&&!e.livestream.recording,c=!e.isPastLivestream&&!e.formStage&&(e.isAuthenticated&&!e.isStudent||o),s={application:$.O.DEFAULT,action:K.e.Default.LOG_IN,params:n},u={application:$.O.DASHBOARD,action:K.e.Dashboard.COMPANY_DASHBOARD,args:[e.livestream.company.id,v.m.slugify(e.livestream.company.name)]};return a.createElement(a.Fragment,null,!e.success&&!e.error&&a.createElement(a.Fragment,null,a.createElement(D,{logoUrl:null===(t=e.livestream.company.logo)||void 0===t?void 0:t.url,companyId:e.livestream.company.id,companyName:e.livestream.company.name,eventName:e.livestream.name,audiences:e.livestream.audiences,startTime:e.livestream.startDateTime,endTime:e.livestream.endDateTime,timezone:e.livestream.timezone,description:!e.formStage&&e.livestream.description,isPastLivestream:e.isPastLivestream,companyAppLink:u}),e.formStage&&a.createElement(Le,{initialValues:e.initialValues,isAuthenticated:e.isAuthenticated,showSpinner:e.showSpinner,onSubmit:e.onSubmit,googleMapsApiKey:e.googleMapsApiKey,searchProspectsUrl:e.searchProspectsUrl}),c&&a.createElement("button",{className:"btn btn-dark w-100",onClick:function(){return e.setFormStage(!0)}},a.createElement(L.x,{namespace:De,phrase:"book"})),e.isPastLivestream&&!e.livestream.recording&&a.createElement("div",{className:"".concat(Oe.noRecording," p-2 rounded")},a.createElement(L.x,{namespace:De,phrase:"noRecording"})),e.livestream.recording&&a.createElement(x.F,{appLink:{application:$.O.VIDEOS,action:K.e.Videos.PLAY_VIDEO,args:[e.livestream.recording.id,v.m.slugify(e.livestream.recording.name)]}},a.createElement("button",{className:"btn btn-outline-dark w-100"},a.createElement(L.x,{namespace:De,phrase:"recording"}))),l&&a.createElement(a.Fragment,null,a.createElement(x.F,{className:"mt-3 btn btn-dark w-100",appLink:s},a.createElement(L.x,{namespace:De,phrase:"signInButton"})),a.createElement(x.F,{className:"d-flex justify-content-center align-items-center mt-3 text-info",appLink:{application:$.O.DEFAULT,action:K.e.Default.CONTACT_US_POPUP}},a.createElement(L.x,{namespace:De,phrase:"contactUsLink"})))),e.success&&a.createElement(ne,{livestream:e.livestream}),e.error&&a.createElement(ce,{onTryAgain:e.onTryAgain}))}function Ie(e){var t;function r(){var t;e.closePopup(),c.t.preventScrollTop(),i.Q.C$.trigger(null===(t=Y.O.getPreviousRoute())||void 0===t?void 0:t.appLink)}return(0,G.L)(n.G.SHELL,i.Q.Vy.ROUTE,e.closePopup),a.createElement(I.G,{size:"xl",bodyClassName:"rounded-3 overflow-hidden p-0",closePopup:r},a.createElement("button",{className:"btn-close position-absolute top-0 end-0 p-3",onClick:r}),a.createElement("div",{className:"row g-0"},a.createElement("div",{className:"col-12 col-lg-6"},a.createElement(se,{className:"".concat(Oe.coverImage," ").concat(Oe.popup),coverImageUrl:null===(t=e.livestream.company.cover)||void 0===t?void 0:t.url})),a.createElement("div",{className:"col-12 col-lg p-4 m-lg-2"},a.createElement(Ce,Object.assign({},e)))))}function Ue(e){var t;return a.createElement("div",{className:"row g-0 px-3"},a.createElement("div",{className:"col-12 col-md-6 col-lg-5"},a.createElement(se,{className:"".concat(Oe.coverImage," ").concat(Oe.page," rounded"),coverImageUrl:null===(t=e.livestream.company.cover)||void 0===t?void 0:t.url})),a.createElement("div",{className:"col-12 col-md px-md-3 pt-2 pt-md-0"},a.createElement(Ce,Object.assign({},e))))}function Re(e){var t,r,n,o,c,v=d.a.useBasicFetch(q.L.config()),E=(0,u.useGetFetchAsync)(),N=(0,ee.m)(),w=Pe(a.useState(!1),2),x=w[0],S=w[1],k=Pe(a.useState(!1),2),L=k[0],O=k[1],A=Pe(a.useState(!1),2),T=A[0],P=A[1],_=Pe(a.useState(!1),2),j=_[0],D=_[1],F=Pe(a.useState({firstName:"",lastName:"",email:"",attendees:"",schoolOrDistrict:"",jobTitle:"",phoneNumber:"",country:"",province:"",prospectId:""}),2),I=F[0],G=F[1],Y=Pe((0,m.D)(X.d,null,{storage:l.Z1.SessionStorage}),1)[0],K=d.a.useBasicFetch(B.N.currentUser()),$=d.a.useBasicFetch(J.H.livestream(e.id)),re=(0,(0,Z.T)().hasPermissions)(R.C.StudentExperience);function ae(t){f.k.logUserAction({id:$.data.id,name:$.data.name},{entity:h.py.Livestream,actionType:h.Vw.Submit,location:h.LZ.LivestreamBookingForm,descriptor:e.fromPageLoad?h.Ik.FullPage:h.Ik.Popup,workflowPhase:t})}if((0,H.M)(e.fromPageLoad&&W.CG.getDefaultMetadata({title:null===(t=$.data)||void 0===t?void 0:t.name,description:null===(r=$.data)||void 0===r?void 0:r.description,phraseContext:{phraseHandler:Fe,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:te.f.getCanonicalLink(),allowIndexing:!0,product:Q.L.PRODUCT_NAME})),(0,z.v)($),a.useEffect((function(){var e;$.data&&(null===(e=$.data)||void 0===e?void 0:e.status)!==U.H.Published&&i.Q.Ry.throw(new M.d)}),[null===(n=$.data)||void 0===n?void 0:n.status]),a.useEffect((function(){var e;(null===(e=K.data)||void 0===e?void 0:e.isAuthenticated)&&G(Object.assign(Object.assign({},I),{firstName:K.data.givenName,lastName:K.data.familyName,email:K.data.email}))}),[null===(o=K.data)||void 0===o?void 0:o.isAuthenticated]),!($.hasCompleted&&N.hasLoaded&&v.hasCompleted))return a.createElement(a.Fragment,null);var ne={livestream:$.data,formStage:x,initialValues:I,isAuthenticated:null===(c=K.data)||void 0===c?void 0:c.isAuthenticated,isStudent:re,success:L,error:T,isPastLivestream:p.O.isBefore($.data.endDateTime,new Date),showSpinner:j,origin:Y,onSubmit:function(e){var t,r,a;return je(this,void 0,void 0,Te().mark((function n(){var i,o,l,c,s,u;return Te().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,D(!0),G(e),n.next=5,E(C.createBooking({eventId:$.data.id,eventType:"Livestream",firstName:e.firstName,lastName:e.lastName,email:e.email,attendees:e.attendees,status:1}));case 5:if(ae(h.eu.Complete),null===(t=K.data)||void 0===t?void 0:t.isAuthenticated){n.next=26;break}return n.next=9,E(V.D.checkEmail(e.email));case 9:if(i=n.sent,!e.prospectId){n.next=15;break}return n.next=13,E(V.D.prospectLookups(e.prospectId));case 13:l=n.sent,o=null===(r=null==l?void 0:l.find((function(e){return"crm_id"===e.type})))||void 0===r?void 0:r.externalId;case 15:return c={email:e.email,first_name:e.firstName,last_name:e.lastName,phone:e.phoneNumber,account_name:e.schoolOrDistrict,job_title:e.jobTitle,account_address:(null==e?void 0:e.province)?{country_code:null==e?void 0:e.country,province:b.F.parseProvince((null==e?void 0:e.province)||"")}:void 0,sync_to_crm:!(null===(a=null==i?void 0:i.users)||void 0===a?void 0:a.length)||void 0,cvc_id:o||void 0,topic:"Livestream Booking"},(s=y.F.getUtmParameters())&&(c.utms=s),(null==(u=g.N.getDecodedAttributionData())?void 0:u.originalReferrer)&&(c.original_referrer=u.originalReferrer),(null==u?void 0:u.internalReferrer)&&(c.internal_referrer=u.internalReferrer),N.initialize(),N.setLeadData(c),N.enqueueEvent({type:ee.T.LivestreamBookingFormSubmit,data:c}),n.next=26,N.flush();case 26:O(!0),n.next=33;break;case 29:n.prev=29,n.t0=n.catch(0),P(!0),S(!1);case 33:return n.prev=33,D(!1),n.finish(33);case 36:case"end":return n.stop()}}),n,null,[[0,29,33,36]])})))},onTryAgain:function(){P(!1),S(!0)},setFormStage:function(){S(!0),ae(h.eu.Start)},googleMapsApiKey:v.data.googleMapsApiKey,searchProspectsUrl:s._.safeUrlConcat(v.data.gatewayApiUrl,"/v1/search/prospects")};return e.fromPageLoad?a.createElement(Ue,Object.assign({},ne)):a.createElement(Ie,Object.assign({},ne,{closePopup:e.closePopup}))}},55941:(e,t,r)=>{r.d(t,{H:()=>l});var a=r(97395),n=r(110),i=r(59795),o=r(5960),l={livestream:function(e){return{url:a._.urlBuilder("/api/discover/v1/livestreams/".concat(e),{query:"audiences,recording"}),key:"streamable:livestream:".concat(e,"}")}},calendarLivestreams:function(e){var t=Object.keys(e).map((function(t){return"".concat(t,":").concat(e[t])})).join(":");return{url:a._.urlBuilder("/api/discover/v1/livestreams",Object.assign({status:o.X.Published,limit:100},e)),key:"streamable:calendar:livestreams:".concat(t),normalize:!1,formatData:function(e){return e.data.map((function(e){return{id:e.id,startDate:n.O.format(i.t.convertUTCToTimezoneDate(e.startDateTime),"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}}))}}}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[8069],{71471:(e,t,a)=>{a.d(t,{S:()=>s});var n=a(32735),r=a(68050),i=a(69111),c=a(9977),o=a(79967);const l={partialOptions:"Gufgq",partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function s(e){return n.createElement("div",{className:"mx-2"},Array(e.numVideos).fill(null).map((function(t,a){return n.createElement("div",{className:"d-flex",key:a},e.allowBulkActions&&n.createElement("div",{className:"form-check pe-3 pe-sm-2 mx-0 mx-md-2"}),n.createElement(u,Object.assign({},e)))})))}function u(e){var t=(0,o.k)(),a="sm"===c.O.getSize(t,"md"),s=e.withReordering&&!t.xs;return n.createElement(r.Z,{className:"".concat(a?"":"py-2"," flex-grow-1")},n.createElement(i.Z,Object.assign({},c.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(a?"pb-2 pe-1":"mb-1 pe-3 pe-md-2")}),n.createElement(r.Z,null,!!s&&n.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},n.createElement("div",{className:"partial-loading-background ".concat(l.partialDragHandle)})),n.createElement(i.Z,{xs:c.O.getThumbnailColSize(s)},n.createElement("div",{className:"partial-loading-background ".concat(a?"rounded":"rounded-3"," ").concat(l.partialThumbnail)})))),n.createElement(i.Z,Object.assign({},c.O.getDetailsColumns(),{className:a?"pb-2":"px-2"}),n.createElement("div",{className:"partial-loading-background mb-1 ".concat(l.partialName)}),n.createElement("div",{className:"partial-loading-background ".concat(l.partialDescription)})))}s.defaultProps={numVideos:15}},80889:(e,t,a)=>{a.d(t,{_:()=>p});var n=a(99940),r=a(97395),i=a(75896),c=a(49542),o=a(55171),l=a(78479),s=a(45778);function u(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var a={}.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}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}var m=new Set([].concat(u(Object.values(o.e.Classifications.Twig.EnglandPrimary)),u(Object.values(o.e.Classifications.Twig.InternationalPrimary)),u(Object.values(o.e.Classifications.Twig.ScotlandPrimary)))),p={classificationDashboard:function(e,t,a,n){var c={target:"classification:".concat(e),status:a,userType:t};return{url:r._.urlBuilder("{gateway}/v1/discover/dashboards",c),publicUrl:r._.urlBuilder("/api/discover/dashboards",c),key:"classification:dashboard:".concat(e,":").concat(t,":").concat(n,":").concat(null==a?void 0:a.join(":")),formatData:function(e){var t;return n?null===(t=e.data)||void 0===t?void 0:t.find((function(e){return e.id.toString()===n.toString()})):i.m.first(e.data)}}},dashboardWidgetContent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=Object.keys(t).map((function(e){return t[e]})).join(":");return{url:r._.urlBuilder("{gateway}/v1/discover/widgets/".concat(e),t),publicUrl:r._.urlBuilder("/api/discover/widgets/".concat(e),t),key:"widget:".concat(e,":").concat(o),formatData:function(e){return c.d.formatResponseData(e,n)},normalizeOptions:{namespace:o},normalize:a!==l.f.EditableCoverFixedPillListSmall,success:i}},discoverWidgetContent:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,u=Object.keys(a).map((function(e){return a[e]})).join(":");return{url:r._.urlBuilder("{gateway}/v1/discover/widgets/".concat(t),a),publicUrl:r._.urlBuilder("/api/discover/widgets/".concat(t),a),key:"widget:".concat(t,":").concat(u),formatData:function(t){var a=c.d.formatResponseData(t,i);if(e)return a;if(Array.isArray(a.content)){var n=a.content.filter((function(e){return!s.G.isClassification(e)||!m.has(e.id)}));a.content=n}return a},normalizeOptions:{namespace:u},normalize:n!==l.f.EditableCoverFixedPillListSmall,success:o}},getDashboard:function(e,t,a,n,c,o){var l={target:a,status:t,userType:e};(null==n?void 0:n.length)&&(l["widgets.curriculum"]=n);var s="dashboard:".concat(a,":").concat(e,":").concat(c,":").concat(t.join(":"));return{url:r._.urlBuilder("{gateway}/v1/discover/dashboards",l),publicUrl:r._.urlBuilder("/api/discover/dashboards",l),key:s,formatData:function(e){var t;return c?null===(t=e.data)||void 0===t?void 0:t.find((function(e){return e.id.toString()===c.toString()})):i.m.first(e.data)},success:o}},updateWidgetPreferences:function(e,t,a){return{url:"{gateway}/v1/discover/widgets/".concat(e,"/preferences"),key:"update:widget:preferences",invalidationKeys:["widget:".concat(e)],type:n.k.PUT,data:{userId:a.id,customerId:a.customerId,metadata:t}}}}},81514:(e,t,a)=>{a.d(t,{V:()=>i});var n=a(86764),r=a(3747);function i(){var e=(0,r.a)(n.r.XS),t=(0,r.a)(n.r.SM),a=(0,r.a)(n.r.MD),i=(0,r.a)(n.r.LG),c=(0,r.a)(n.r.XL),o=(0,r.a)(n.r.XXL),l=n.r.LG;return e&&(l=n.r.XS),t&&(l=n.r.SM),a&&(l=n.r.MD),i&&(l=n.r.LG),c&&(l=n.r.XL),o&&(l=n.r.XXL),l}},45778:(e,t,a)=>{a.d(t,{G:()=>r});var n=a(4594),r={isType:function(e,t){return(null==e?void 0:e.typeId)===t},isResource:function(e){return r.isType(e,n.E.Resource)},isClassification:function(e){return"Subject"===e.type}}},80553:(e,t,a)=>{a.r(t),a.d(t,{DashboardWidgetView:()=>b});var n=a(32735),r=a(20354),i=a(24546),c=a(51365),o=a(25925),l=a(89454),s=a(80889),u=a(99742),d=a(31700),m=a(49433),p=a(65751),g=a(71471);const f={partialHeading:"RSm4L"};function v(){return n.createElement("div",{className:"px-3"},n.createElement("div",{className:"partial-loading-background mb-2 ".concat(f.partialHeading)}),n.createElement(g.S,null))}function b(e){var t=r.a.useBasicFetch(d.g.streamablePresentation()),a=r.a.useBasicFetch(s._.dashboardWidgetContent(e.widgetId)),g=r.a.useBasicFetch(t.data&&l.O.presentationAudiences(t.data.id,o.R.StreamableLearning)),f=(0,m.V)("video-list");return t.hasCompleted&&a.hasCompleted&&g.hasCompleted?n.createElement(c.M.Provider,{value:{getVideoActions:f}},n.createElement("div",{className:"px-3"},n.createElement("h1",{className:"h2 mb-2"},a.data.name),n.createElement(i.E4,{videos:a.data.content,yearGroups:null,getVideoAppLink:p.y.videoType,getSubTextAppLink:p.y.subText,presentationAudiences:g.data,companyLogoFallbackUrl:u.W.StreamableLearning.LOGO,subTextType:"productionCompany",getPreviewQuestionsAppLink:function(){return null},hasPermissions:function(){return!1},isPlugin:!1,getClassroomGuideAppLink:p.y.classroomGuide,getResourceGuidanceAppLink:p.y.resourceGuidance,getInteractiveGuidanceAppLink:function(){return null}}))):n.createElement(v,null)}},49433:(e,t,a)=>{a.d(t,{V:()=>r});var n=a(65858);function r(e){return function(t){return t.id,t.name,"video-list"===e?n.LZ.VideoListItem:n.LZ.PlayPage,[]}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[8664],{88818:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(32735),i=n(92582),o=n(57408),r=n(18559),s=n(11607),c=n(83914);const l={pillTabSelector:"Hdi6o",tab:"RvNxr",minWidth:"GHSz9",radiusSmall:"VhJJa",tabLink:"WFyvo"};function d(e){return a.createElement(a.Fragment,null,!!e.tab.svgName&&a.createElement("div",{className:e.tab.name?"pe-1":""},a.createElement(c.x,{svgName:e.tab.svgName})),e.tab.name,"number"==typeof e.tab.count&&a.createElement("div",{className:"ps-2"},a.createElement(r.C,{type:r.g.Count,data:e.tab.count})))}function u(e){var t;return a.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:"",ref:e.containerRef},a.createElement("ul",{className:"\n list-unstyled d-inline-block m-0 ".concat(l.pillTabSelector,"\n ").concat(e.borderRadius?l.radiusSmall:"","\n ").concat(e.listClassName,"\n ")},e.tabs.map((function(e,t){return a.createElement("li",{className:"\n p-0 ".concat(l.tab," ").concat(e.active?"btn btn-dark":"btn btn-outline-dark","\n ").concat(e.name?l.minWidth:""," ").concat(e.className,"\n "),key:t},e.appLink?a.createElement(o.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset px-2 text-nowrap ".concat(l.tabLink,"\n ")},a.createElement(d,{tab:e})):a.createElement(s.L,{className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset p-2 text-nowrap ".concat(l.tabLink,"\n "),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&i.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},a.createElement(d,{tab:e})))}))))}u.defaultProps={borderRadius:"lg"}},91286:(e,t,n)=>{n.d(t,{v:()=>r});var a=n(32735),i=n(45445);function o(e){return e.map((function(e){return e.statusCode})).join(":")}function r(e,t,n){var r=Array.isArray(e)?e:[e];(0,a.useEffect)((function(){r.forEach((function(e){(0,i.r)(e.statusCode,t,n)}))}),[o(r),t,n])}},26909:(e,t,n)=>{n.r(t),n.d(t,{StreamableClassificationView:()=>ze});var a=n(32735),i=n(23481),o=n(20354),r=n(65858),s=n(15800),c=n(83345),l=n(64444),d=n(26154),u=n(35223),p="subjects.curatedClassificationEmptyState",f=i.T.encloseNamespace(p);function m(e){var t,n,o=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===d.GL.Archived;return a.createElement(c.D.Provider,{value:p},a.createElement(s.u,null,a.createElement(s.u.Image,{src:e.imageUrl,altText:f("headingForNP")}),e.isReadonly?a.createElement(a.Fragment,null,a.createElement(s.u.Heading,null,a.createElement(c.x,{namespace:p,phrase:"headingForCurator"})),a.createElement(s.u.Info,null,a.createElement(c.x,{namespace:p,phrase:"info"})),a.createElement(l.u,{title:o?i.T.getPhrase(p,"archivedCtaTooltip"):"",spanHack:!0},a.createElement(s.u.Cta,{text:i.T.getPhrase(p,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:u.vn.Plus,disabled:o}))):a.createElement(s.u.Heading,null,a.createElement(c.x,{phrase:"headingForNP"}))))}var v=n(92869),b=n(57408),g=n(11607);const y={itemsWrapper:"m6mGm",anchorWrapper:"QptZj",default:"_AZa8",selectedItem:"Nuiel",disabled:"WIzWJ",floatIcon:"ARudn",arrowIcon:"tEF5Q",listIcon:"Ql2wi"};function h(e){var t={actionType:r.Vw.Click,entity:r.py.Widget,location:r.LZ.TableOfContents};return a.createElement("div",{className:"".concat(y.itemsWrapper)},e.items.map((function(n,i){return e.localState?a.createElement(g.L,{key:n.id,className:"".concat(y.anchorWrapper," ").concat(e.activeId===n.id?y.selectedItem:""),onClick:function(){var t;v.t.preventScrollTop(),e.setControlledId(n.id),null===(t=e.onItemClick)||void 0===t||t.call(e,n)}},a.createElement("div",{className:"".concat(e.activeId||0!==i?"":y.default," ")},n.name)):a.createElement(b.F,{key:n.id,appLink:e.getAppLink(n),appLinkOptions:{replace:!0},className:"".concat(y.anchorWrapper," ").concat(e.activeId===n.id?y.selectedItem:""),onClick:function(){var t;v.t.preventScrollTop(),e.setControlledId(n.id),null===(t=e.onItemClick)||void 0===t||t.call(e,n)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:n.id,name:n.name}),analyticsOptions:t},a.createElement("div",{className:"".concat(e.activeId||0!==i?"":y.default," ")},n.name))})))}var w=n(75795);const T={container:"k1iOO"};function k(e){return a.createElement("div",{className:"".concat(T.container," ps-3")},a.createElement("h2",{className:"h5"},e.title),a.createElement(h,{items:e.widgets,activeId:e.activeId,appLink:e.appLink,analyticsData:e.analyticsData,setControlledId:e.setControlledId,getAppLink:function(e){var t=w.O.getCurrentRoute().appLink,n=t.params?Object.assign({},t.params):{};return n.tocId=e.id,Object.assign(Object.assign({},t),{params:n})}}))}var E="subjects.teacherOnlyEmptyState",L=i.T.encloseNamespace(E);function C(e){var t;return a.createElement(c.D.Provider,{value:E},a.createElement(s.u,null,a.createElement(s.u.Image,{src:e.imageUrl,altText:L("heading")}),a.createElement(s.u.Heading,null,a.createElement(c.x,{phrase:"heading"})),a.createElement(s.u.Info,null,a.createElement(c.x,{phrase:"info"})),a.createElement(s.u.Cta,{text:L("cta"),appLink:null===(t=e.ctaAppLink)||void 0===t?void 0:t.call(e),className:"btn btn-dark"})))}var I,S=n(75896),P=n(42308),x=n(80889),O=n(21366),A=n(75553),N=n(24546),D=n(66869),j=n(81326),F=n(86764),R=n(78479),U=n(3747),V=function(e){var t=e.setActiveId,n=e.headingElements,i=e.controlledId,o=e.setControlledId,r=a.useRef(0);a.useEffect((function(){var e=new IntersectionObserver((function(e){e.forEach((function(e){if(i)return t(i),void(I=window.setTimeout((function(){o("")}),800));if(e.isIntersecting)t(e.target.id),r.current=window.scrollY;else{var a=r.current-window.scrollY>0,s=n.findIndex((function(t){return t.id===e.target.id})),c=n[s-1];a&&(null==c?void 0:c.id)&&t(null==c?void 0:c.id)}}))}),{rootMargin:"-67px 0px -80% 0px"});return n.forEach((function(t){return e.observe(t)})),function(){I&&window.clearTimeout(I),e.disconnect()}}),[t,n.length,i])};function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var W=function(e,t){var n,i,o,r,s=(o=a.useState(!1),r=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,o,r,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(l)throw i}}return s}}(o,r)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.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)?B(e,t):void 0}}(o,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],l=s[1],d=(n=t,i=a.useRef(),a.useEffect((function(){i.current=n})),i.current),u=t;a.useLayoutEffect((function(){if(!c||d!==u){var t=e.find((function(e){return e&&(null==e?void 0:e.id)===u}));if(t){var n=t.getBoundingClientRect();window.scrollBy({top:n.top-80,behavior:"smooth"}),c||l(!0)}}}),[e,d,u,c])},G=n(42735),H="subjects.classificationComingSoon",_=i.T.encloseNamespace(H);function M(e){var t,n,i=!!(null===(n=null===(t=e.data.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length);return a.createElement(c.D.Provider,{value:H},a.createElement(s.u,{className:"pt-0"},a.createElement(s.u.Image,{src:e.imageUrl,altText:_("comingSoon")}),a.createElement(s.u.Heading,null,a.createElement(c.x,{phrase:"comingSoon"})),a.createElement(s.u.Info,null,a.createElement(c.x,{phrase:"info"})),e.canFollowSubjects&&a.createElement(G.K,{svgName:i?u.vn.BellFilled:u.vn.Bell,onClick:function(){var t;null===(t=e.onToggleFollow)||void 0===t||t.call(e)},showSpinner:e.showFollowButtonSpinner,className:"btn follow-btn me-2 ".concat(i?"btn-outline-dark":"btn-dark")},a.createElement(c.x,{phrase:i?"following":"follow"}))))}var z=n(49935),Z=n(79967),Q=n(69454),q=n(87114),$=n(99105);function J(e){return a.createElement($.x,{audiences:e.audiences,activeAudiences:e.activeAudiences,disabled:e.isReadonly,appLink:e.appLink,disablePersist:e.disablePersist})}var Y=n(81886),K=n(88818),X=a.createContext({setProductTipRef:function(){},cleanUpProductTipRef:function(){},refs:{}}),ee=n(2948);function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}const ne={curatedTopicTab:"CmVlO",tabTransition:"rX31t"};var ae="shared.classificationDashboard";function ie(e,t,n,a){var o,s,c,l,d,p,f,m,v,b,g,y,h,w,T,k,E,L=t.lg||t.xl||t.xxl||t.xs;return q.i.isTopLevelTopic(e.classification)?[{name:L?i.T.getPhrase(ae,"newReleases"):"",appLink:e.isReadonly?null:null===(s=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===s?void 0:s.call(o,e.classification),active:"new-releases"===n,svgName:u.vn.Sparkle,analyticsData:{id:"new-releases",classificationId:e.classification.id,classificationName:e.classification.name,presentationId:e.presentation.id,presentationDescription:e.presentation.description,name:i.T.getPhrase(ae,"newReleases"),url:Y.Q.C$.getHref(null===(l=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===l?void 0:l.call(c,e.classification))},analyticsOptions:{actionType:r.Vw.Click,entity:r.py.Url,location:r.LZ.MagicTabs},className:"".concat(t.xs?"w-100":""," ").concat(a?ne.tabTransition:"")},{name:L?i.T.getPhrase(ae,"allTopics"):"",appLink:e.isReadonly?null:null===(p=null===(d=e.appLinks)||void 0===d?void 0:d.classificationDirectory)||void 0===p?void 0:p.call(d,e.classification),active:"all-topics"===n,svgName:u.vn.Grid,analyticsData:{id:"all-topics",classificationId:e.classification.id,classificationName:e.classification.name,presentationId:e.presentation.id,presentationDescription:e.presentation.description,name:i.T.getPhrase(ae,"allTopics"),url:Y.Q.C$.getHref(null===(m=null===(f=e.appLinks)||void 0===f?void 0:f.classificationDirectory)||void 0===m?void 0:m.call(f,e.classification))},analyticsOptions:{actionType:r.Vw.Click,entity:r.py.Url,location:r.LZ.MagicTabs},className:"".concat(t.xs?"w-100":""," ").concat(a?ne.tabTransition:"")}]:[{name:L?i.T.getPhrase(ae,"topic"):"",appLink:e.isReadonly?null:null===(b=null===(v=e.appLinks)||void 0===v?void 0:v.classification)||void 0===b?void 0:b.call(v,e.classification),active:"curated-topic"===n,svgName:u.vn.Rectangles,analyticsData:{id:"curated-topic",classificationId:e.classification.id,classificationName:e.classification.name,presentationId:e.presentation.id,presentationDescription:e.presentation.description,name:i.T.getPhrase(ae,"topic"),url:Y.Q.C$.getHref(null===(y=null===(g=e.appLinks)||void 0===g?void 0:g.classification)||void 0===y?void 0:y.call(g,e.classification))},analyticsOptions:{actionType:r.Vw.Click,entity:r.py.Url,location:r.LZ.MagicTabs},className:(E=a?ne.tabTransition:"",t.xs?E+" w-100":L?" ".concat(ne.curatedTopicTab):E)},{name:L?i.T.getPhrase(ae,"videoList"):"",appLink:e.isReadonly?null:null===(w=null===(h=e.appLinks)||void 0===h?void 0:h.classificationVideos)||void 0===w?void 0:w.call(h,e.classification),active:"video-list"===n,svgName:u.vn.WidgetSeries,analyticsData:{id:"video-list",classificationId:e.classification.id,classificationName:e.classification.name,presentationId:e.presentation.id,presentationDescription:e.presentation.description,name:i.T.getPhrase(ae,"videoList"),url:Y.Q.C$.getHref(null===(k=null===(T=e.appLinks)||void 0===T?void 0:T.classificationVideos)||void 0===k?void 0:k.call(T,e.classification))},analyticsOptions:{actionType:r.Vw.Click,entity:r.py.Url,location:r.LZ.MagicTabs},className:"".concat(t.xs?"w-100":""," ").concat(a?ne.tabTransition:"")}]}function oe(e){var t,n,i,o,r,s,c,l,d,u,p,f,m=(0,Z.k)(),v=(n={on:!1,tab:(t=e.activeTab)||"new-releases"},p=(0,ee.D)("directory:product:tip:switcher",n),f=2,i=function(e){if(Array.isArray(e))return e}(p)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,o,r,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(l)throw i}}return s}}(p,f)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(p,f)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],r=i[1],a.useEffect((function(){t&&r("tab",t)}),[t]),a.useEffect((function(){var e=null;return o.on&&(e=window.setInterval((function(){"new-releases"===o.tab||"all-topics"===o.tab?r("tab","new-releases"===o.tab?"all-topics":"new-releases"):r("tab","curated-topic"===o.tab?"video-list":"curated-topic")}),2e3)),function(){window.clearInterval(e)}}),[o.on,o.tab]),{tab:o.tab,isHighlighting:o.on,start:function(){return r("on",!0)},stop:function(){r({on:!1,tab:t||o.tab})}}),b=v.tab,g=v.isHighlighting,y=(s="topics-directory-tab",c=a.useContext(X),l=c.setProductTipRef,d=c.cleanUpProductTipRef,u=c.refs,a.useEffect((function(){if(s)return function(){return d(s)}}),[s]),{setProductTipRef:function(e){return l(s,e)},refs:u}).setProductTipRef;return a.createElement(K.r,{borderRadius:"sm",containerRef:function(e){return y(e)},className:m.xs?"w-100":"",listClassName:"d-flex flex-nowrap",tabs:ie(e,m,b,g)})}function re(e){var t,n,i,o,r,s,c,l=(0,Z.k)(),d=(o=e.audiences,r=e.activeAudiences,s=e.isEmpty,!!e.isComingSoon||!(!s||(null==r?void 0:r.length))||!Q.T.shouldShowAudiences(o));function u(){return!(!e.classification||!e.dashboard)&&!O.S.isSystemGeneratedDashboard(e.dashboard.widgets)&&!!e.canViewTopicTabs&&(q.i.isTopLevelTopic(e.classification)?e.hasTopicDirectoryDashboard:!!e.hasTopicVideosDashboard)}return a.createElement("div",{className:(c="d-flex flex-column py-3 mb-3",e.isComingSoon||(c+=" border-bottom"),!u()&&!d||l.xs?c+" row-gap-3":c)},a.createElement("div",{className:function(){if(d)return l.xs?"d-flex flex-column justify-content-between row-gap-3":"d-flex align-items-center justify-content-between";var e="";return e+="d-flex align-items-center justify-content-between mb-1",l.xs&&(e+=" row-gap-3 mb-0"),e}()},a.createElement(z.Oo,{breadcrumbs:null===(t=e.getBreadcrumbs)||void 0===t?void 0:t.call(e)}),u()&&d&&a.createElement(oe,{classification:e.classification,activeTab:e.activeTab,appLinks:e.appLinks,presentation:e.presentation,isReadonly:e.isReadonly})),a.createElement("div",{className:function(){var e="d-flex align-items-end justify-content-between";return l.xs&&(e+=" row-gap-3 flex-wrap"),e}()},!d&&a.createElement(J,{audiences:e.audiences,activeAudiences:e.activeAudiences,appLink:null===(i=(n=e.appLinks).audience)||void 0===i?void 0:i.call(n),isReadonly:e.isReadonly,disablePersist:!e.isViewingCurrentPresentation}),u()&&!d&&a.createElement(oe,{classification:e.classification,activeTab:e.activeTab,appLinks:e.appLinks,presentation:e.presentation,isReadonly:e.isReadonly})))}function se(e){return se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se(e)}function ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,o,r,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return le(e,t);var n={}.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)?le(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var de="shared.classificationDashboard";function ue(e){return e.widgetId===P.z.Blurb&&e.templateId===R.f.Heading}function pe(e){var t,n=function(e,t){var n,i,r,s,c=a.useMemo((function(){return e?{isSystemGeneratedDashboard:O.S.isSystemGeneratedDashboard(e.widgets),systemGeneratedVideoWidget:e.widgets.find((function(e){return e.widgetId===P.z.ClassificationPinnedVideos}))}:{isSystemGeneratedDashboard:!1,systemGeneratedVideoWidget:null}}),[null==e?void 0:e.id]),l=c.isSystemGeneratedDashboard,d=c.systemGeneratedVideoWidget,u=o.a.useBasicFetch(!!d&&x._.dashboardWidgetContent(null==d?void 0:d.id,O.S.getWidgetParams(d.widgetId,d.templateId,O.S.getDashboardTargetType(e),null==t?void 0:t.map((function(e){return e.masterId}))),null==d?void 0:d.templateId));return l?{widgets:null!==(i=null===(n=null==e?void 0:e.widgets)||void 0===n?void 0:n.filter((function(e){return e.widgetId!==P.z.ClassificationPinnedVideos})))&&void 0!==i?i:[],videoList:null!==(s=null===(r=u.data)||void 0===r?void 0:r.content)&&void 0!==s?s:[],videoListWidgetId:null==d?void 0:d.id}:{widgets:S.m.sortBy(null==e?void 0:e.widgets,"index")}}(e.dashboard,e.activeAudiences),s=n.widgets,c=n.videoList,l=n.videoListWidgetId,u=(0,U.a)(F.r.LGDown),p=a.useRef(new Set),f=a.useMemo((function(){return s.reduce((function(e,t){return e[t.id]=!1,e}),{})}),[null==s?void 0:s.length]),v=ce(a.useState(f),2),b=v[0],g=v[1],y=ce(a.useState(window.location.hash.slice(1)||""),2),h=y[0],w=y[1],T=ce(a.useState(""),2),E=T[0],L=T[1],I=Array.from(p.current);function R(t,n,a){var i,o=O.S.getWidgetParams(n,a,O.S.getDashboardTargetType(e.dashboard),null===(i=e.activeAudiences)||void 0===i?void 0:i.map((function(e){return e.masterId})));return e.getWidgetContentRequest(t,o,a)}W(I,e.tableOfContentsId),V({setActiveId:L,headingElements:I,controlledId:h,setControlledId:w});var B=!e.isComingSoon&&!e.isTeacherOnly&&(!e.dashboard||e.dashboard.status===d.GL.Archived&&!e.isReadonly||e.dashboard.status===d.GL.Draft&&!e.isPreviewing||!(null==s?void 0:s.length)||(!c||!c.length)&&Object.values(b).every((function(e){return!!e})));a.useEffect((function(){B&&g(f)}),[null==s?void 0:s.length]);var G=a.useCallback((function(e,t){if(b[e]!==t){for(var n,a=(Object.assign(Object.assign({},b),(d={},p=t,(u=function(e){var t=function(e,t){if("object"!=se(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=se(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==se(t)?t:t+""}(u=e))in d?Object.defineProperty(d,u,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[u]=p,d))),i=0;i<s.length;){var o=s[i];if(ue(o)){for(var r=!0,c=i+1;r&&c<s.length;){var l=s[c];if(ue(l))break;a[l.id]||(n=l).widgetId===P.z.CuratedClassifications||n.widgetId===P.z.Classifications||(r=!1),c++}i=c,a[o.id]=r}else i++}g(a)}var d,u,p}),[b,s]);function H(e){return ue(e)&&b[e.id]}var _,z=s.filter((function(e){var t;return!H(e)&&!!(null===(t=e.metadata)||void 0===t?void 0:t.showInTableOfContents)})),Z=z.length>=2&&!u;return a.createElement("div",{className:"bg-white px-4 ".concat((_=O.S.getDashboardTargetType(e.dashboard),e.moviesAndTv||_===d.ku.ClassificationVideos?"":"dashboard-spacing-lg"))},a.createElement(A.p,{heading:e.classification.name,banner:e.classification.banner,imageCdnUrl:e.imageCdnUrl,actions:null===(t=e.getBannerActions)||void 0===t?void 0:t.call(e),actionsDropdownClassName:"btn btn-outline-dark",specialEvent:e.specialEvent,calendarTheme:{background:"bg-light-blue",border:"border-light-blue"},showComingSoon:e.isComingSoon}),a.createElement(re,{dashboard:e.dashboard,classification:e.classification,presentation:e.presentation,appLinks:e.appLinks,activeTab:e.tab,audiences:e.audiences,activeAudiences:e.activeAudiences,getBreadcrumbs:e.getBreadcrumbs,hasTopicDirectoryDashboard:e.hasTopicDirectoryDashboard,hasTopicVideosDashboard:e.hasTopicVideosDashboard,canViewTopicTabs:e.canViewTopicTabs,isComingSoon:e.isComingSoon,isEmpty:B,isViewingCurrentPresentation:e.isViewCurrentPresentation,isReadonly:e.isReadonly}),e.isComingSoon&&a.createElement(M,{imageUrl:e.comingSoonImageUrl,data:e.classification,canFollowSubjects:e.canFollowSubjects,showFollowButtonSpinner:e.showFollowButtonSpinner,onToggleFollow:function(){return e.onToggleFollow(e.classification,r.LZ.ClassificationComingSoon)}}),!e.isComingSoon&&a.createElement("div",{className:"".concat(Z?"row no-wrap":"")},a.createElement("div",{className:Z?"col-9":""},s.map((function(t,n){return H(t)?a.createElement(a.Fragment,{key:t.id}):a.createElement(j.L,{headingElementRef:p,key:t.id,id:t.id,name:t.name,description:t.description,templateId:t.templateId,widgetTypeId:t.widgetId,audiences:e.audiences,getContentRequest:R,setIsEmpty:G,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.appLinks,yearGroups:e.yearGroups,presentation:e.presentation,analyticsData:e.analyticsData,isScrollToTargetWidget:e.scrollToWidgetId===t.id,imageCdnUrl:e.imageCdnUrl,onSubmitFeedback:e.onSubmitFeedback,metadata:t.metadata,isBot:e.isBot,hasTableOfContents:Z,lazyLoad:e.lazyLoad,dashboardTarget:O.S.getDashboardTargetType(e.dashboard),widgetIndex:n,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,isPreviewing:e.isReadonly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,contentType:e.contentType,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,preferences:t.preferences,onToggleFollowClassification:e.onToggleFollow,isPlugin:e.isPlugin})}))),Z&&a.createElement("aside",{className:"col-3"},a.createElement(k,{widgets:z,title:e.classification.name,activeId:E,clickable:!e.isReadonly,analyticsData:e.analyticsData,setControlledId:w})),!!(null==c?void 0:c.length)&&a.createElement(a.Fragment,null,a.createElement(D.B,{name:i.T.getPhrase(de,"videos"),description:""}),a.createElement(N.E4,{videos:c,yearGroups:e.yearGroups,getVideoAppLink:function(t,n){return e.appLinks.videoType(t,Object.assign(Object.assign({},n),{contextId:l}))},getSubTextAppLink:e.appLinks.subText,hasPermissions:e.hasPermissions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,getPreviewQuestionsAppLink:e.appLinks.previewQuestions,isPlugin:e.isPlugin,getClassroomGuideAppLink:e.appLinks.classroomGuide,getInteractiveGuidanceAppLink:e.appLinks.interactiveGuidance,getResourceGuidanceAppLink:e.appLinks.resourceGuidance}))),B&&a.createElement(m,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.appLinks.widgetWizard}),e.isTeacherOnly&&a.createElement(C,{imageUrl:e.emptyImageUrl,ctaAppLink:function(){return e.appLinks.allTopics(e.classification.presentationId)}}))}pe.defaultProps={appLinks:{}};var fe=n(70275),me=n(51365),ve=n(25925),be=n(89454),ge=n(21750),ye=n(39151),he=n(31949),we=n(91286),Te=n(79612),ke=n(25301),Ee=n(99742),Le=n(41760),Ce=n(31700),Ie=n(73688),Se=n(49433),Pe=n(6117),xe=n(64364),Oe=n(96359),Ae=n(41135);function Ne(e){return Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ne(e)}function De(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,je(a.key),a)}}function je(e){var t=function(e,t){if("object"!=Ne(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=Ne(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ne(t)?t:t+""}function Fe(e,t,n){return t=Ue(t),function(e,t){if(t&&("object"==Ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Re()?Reflect.construct(t,n||[],Ue(e).constructor):t.apply(e,n))}function Re(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Re=function(){return!!e})()}function Ue(e){return Ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ue(e)}function Ve(e,t){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ve(e,t)}var Be="subjects.topicNotFoundError",We=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Fe(this,t,["Topic doesn't exist"])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ve(e,t)}(t,e),n=t,(a=[{key:"name",get:function(){return"TopicNotFoundError"}},{key:"heading",get:function(){return i.T.getPhrase(Be,"heading")}},{key:"description",get:function(){return i.T.getPhrase(Be,"description")}},{key:"cta",get:function(){return{text:i.T.getPhrase(Be,"cta"),appLink:{application:Ae.O.SUBJECTS,action:Oe.e.Subjects.CLASSIFICATION_ALL}}}}])&&De(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(xe.H);function Ge(){return a.createElement("div",{className:"bg-white px-4"},a.createElement(A.v,null),a.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},a.createElement(z.b2,null),a.createElement($.N,null)))}var He=n(65751),_e=i.T.encloseNamespace("subjects.classificationView"),Me=i.T.encloseNamespace("subjects.classificationView");function ze(e){var t,n,i,r,s,c,l,u,p,f,m=(0,Se.V)("video-list"),v=o.a.useBasicFetch(ye.L.config()),b=o.a.useBasicFetch(he.N.currentUser()),g=o.a.useBasicFetch(Ce.g.streamablePresentation()),y=o.a.useBasicFetch(ge.x.classification(e.id,null===(t=b.data)||void 0===t?void 0:t.id)),h=(0,Ie.B)({targetType:d.ku.Classification,dashboardId:null===(n=e.queryParams)||void 0===n?void 0:n.dashboardId,classificationId:e.id}),w=h.dashboard,T=h.isPreviewing;(0,Te.M)(ke.CG.getClassificationMetadata({content:y.data,phraseContext:{phraseHandler:Me,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:Pe.f.getCanonicalLink(),allowIndexing:!0,product:Le.L.PRODUCT_NAME})),(0,we.v)(y,{notFound:We});var k,E,L=o.a.useBasicFetch(g.data&&be.O.presentationAudiences(g.data.id,ve.R.StreamableLearning)),C=o.a.useBasicFetch(ge.x.path(e.id,ve.R.StreamableLearning)),I=Q.T.getActiveAudiencesFromParams(L.data,e.queryParams),S=null!==(i=null==I?void 0:I.map((function(e){return e.masterId})))&&void 0!==i?i:[],P={presentationId:null===(r=g.data)||void 0===r?void 0:r.id,presentationName:null===(s=g.data)||void 0===s?void 0:s.name,currentClassificationId:null===(c=y.data)||void 0===c?void 0:c.id,currentClassificationName:null===(l=y.data)||void 0===l?void 0:l.name,followingCurrentClassification:!!(null===(f=null===(p=null===(u=y.data)||void 0===u?void 0:u.followers)||void 0===p?void 0:p.data)||void 0===f?void 0:f.length),activeAudienceNames:(null==I?void 0:I.length)?I.map((function(e){return e.name})):null,activeAudienceIds:S.length?S:null},O=(k=y.data,E=e.queryParams,Object.assign(Object.assign({},He.y),{classification:function(e){return He.y.classification(e||k,E)},classificationDirectory:function(){return He.y.classificationDirectory(E)},audience:function(){return He.y.classification(k,E)}}));return v.data&&w.hasCompleted&&y.data&&g.data&&C.data&&L.data?a.createElement(me.M.Provider,{value:{getVideoActions:m}},a.createElement("div",{className:"position-relative"},!(!T||!w.data)&&a.createElement(fe.a,{status:w.data.status,type:"topic"}),a.createElement(pe,{dashboard:w.data,classification:y.data,getWidgetContentRequest:x._.dashboardWidgetContent,getBreadcrumbs:function(){return function(e){var t=e.classification,n=e.path,a=e.appLinks,i=[{name:_e("discover"),appLink:{application:Ae.O.DASHBOARD,action:Oe.e.Dashboard.HOME}},{name:_e("exploreAllTopicsHeading"),appLink:{application:Ae.O.SUBJECTS,action:Oe.e.Subjects.CLASSIFICATION_ALL}}];return n.forEach((function(e){i.push({name:e.name,appLink:a.classification(e),active:e.name===t.name})})),i}({appLinks:O,classification:y.data,path:C.data})},hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},presentation:g.data,getBannerActions:function(){return[]},audiences:L.data,activeAudiences:I,analyticsData:P,imageCdnUrl:v.data.imageCdnUrl,resourceThumbnailFallbackImageUrl:Ee.W.Fallbacks.RESOURCE_THUMBNAIL,emptyImageUrl:Ee.W.EmptyStates.Topics.TOPIC,appLinks:O,isPreviewing:T,isViewCurrentPresentation:!0,canFollowSubjects:!1,tableOfContentsId:e.queryParams.tocId,lazyLoad:!Pe.f.isBot(),isTeacherOnly:!1,companyLogoFallbackUrl:Ee.W.StreamableLearning.LOGO,subTextType:"productionCompany",contentType:d.VH.Livestream,canViewTopicTabs:!1,hasTopicDirectoryDashboard:!1,hasTopicVideosDashboard:!1,tab:"curated-topic",isPlugin:!1}))):a.createElement(Ge,null)}},49433:(e,t,n)=>{n.d(t,{V:()=>i});var a=n(65858);function i(e){return function(t){return t.id,t.name,"video-list"===e?a.LZ.VideoListItem:a.LZ.PlayPage,[]}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[9531],{64887:(e,a,n)=>{n.d(a,{e:()=>h});var t=n(32735),l=n(91967),c=n(63855),o=n(64444),r=n(42735),i=n(81886),s=n(45157),m=n(92582),d=n(57408),u=n(83914),g=n(35223);const b={dropdownToggle:"UCAnJ"};function p(){return t.createElement(t.Fragment,null,t.createElement("div",{style:{padding:"0.53125rem 1rem"}},t.createElement("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"8rem"}})),t.createElement("div",{style:{padding:"0.53125rem 1rem"}},t.createElement("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"12rem"}})),t.createElement("div",{style:{padding:"0.53125rem 1rem"}},t.createElement("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"11rem"}})),t.createElement("div",{style:{padding:"0.53125rem 1rem"}},t.createElement("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"9rem"}})))}function v(e){var a="dropdown-item";return e&&(a+=" ".concat(e)),a}function k(e){var a=l.q.isFunction(e.action.label)?e.action.label:function(){return t.createElement(t.Fragment,null,e.action.label)};if(e.action.appLink)return t.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},e.action.svgName&&t.createElement(u.x,{svgName:e.action.svgName,className:"d-inline-block svg-container me-2 align-middle"}),t.createElement("span",{className:"align-middle"},a()));function n(a){a.preventDefault(),e.action.analyticsData&&e.action.analyticsOptions&&m.k.logUserAction(e.action.analyticsData,e.action.analyticsOptions),l.q.isFunction(e.action.onClick)&&e.action.onClick(),e.action.href&&i.Q.Ab.PageLoad(e.action.href,e.action.openInNewTab)}return e.action.href?t.createElement("a",{className:v(e.action.className),onClick:n,href:e.action.href},e.action.svgName&&t.createElement(u.x,{svgName:e.action.svgName,className:"d-inline-block svg-container me-2 align-middle"}),t.createElement("span",{className:"align-middle"},a())):t.createElement("span",{className:"cursor-pointer ".concat(v(e.action.className)),onClick:n,role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&n(e)}},e.action.svgName&&t.createElement(u.x,{svgName:e.action.svgName,className:"d-inline-block svg-container me-2"}),a())}function N(e){if(!e.actions||!e.actions.length)return t.createElement(t.Fragment,null);var a=e.actions.some((function(e){return e.lazyPlaceholder})),n="dropdown";e.className&&(n+=" ".concat(e.className));var l,c="actions-dropdown-".concat(s.Y.getRandomInt()),r="dropdown-toggle px-0 ".concat(b.dropdownToggle);return e.dropdownToggleClassName&&(r+=" ".concat(e.dropdownToggleClassName)),t.createElement("div",{className:n},t.createElement("button",{className:r,type:"button",id:c,"data-bs-toggle":"dropdown","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"More actions dropdown",onClick:a?e.fetchMore:null},t.createElement(u.x,{svgName:g.vn.More,size:e.dropdownToggleSvgSize})),t.createElement("ul",{className:"dropdown-menu dropdown-menu-end dropdown-menu-right font-size-normal","aria-labelledby":c},a?t.createElement(p,null):e.actions.map((function(e,a){var n=void 0!==l&&l!==e.group;return l=e.group,e.tooltip?t.createElement("li",{key:a},n&&t.createElement("hr",{className:"dropdown-divider",role:"separator"}),t.createElement(o.u,{title:e.tooltip,spanHack:!0},t.createElement(k,{action:e}))):t.createElement("li",{key:a},n&&t.createElement("hr",{className:"dropdown-divider",role:"separator"}),t.createElement(k,{action:e}))}))))}function h(e){var a=t.useMemo((function(){return e.actions.sort((function(e,a){return e.order-a.order}))}),[e.actions]),n=[],i=[];a.forEach((function(e){e.button?n.push(e):i.push(e)}));var s="d-flex";return e.className&&(s+=" ".concat(e.className)),n.length||i.length?t.createElement("div",{className:s},n.length?n.map((function(a,n){return t.createElement(t.Fragment,{key:n},function(){if(a.label){var n=l.q.isFunction(a.label)?a.label:function(){return t.createElement(t.Fragment,null,a.label)};return t.createElement(r.K,{appLink:a.appLink,href:a.href,onClick:a.onClick,svgName:a.svgName,svgSize:e.dropdownToggleSvgSize,className:a.className,tooltip:a.tooltip,showSpinner:a.showSpinner,analyticsData:a.analyticsData,analyticsOptions:a.analyticsOptions,openInNewTab:a.openInNewTab,disabled:a.disabled},n())}var i=t.createElement(c.h,{appLink:a.appLink,href:a.href,onClick:a.onClick,svgName:a.svgName,className:a.className,analyticsData:a.analyticsData,analyticsOptions:a.analyticsOptions,openInNewTab:a.openInNewTab,disabled:a.disabled,showBorder:a.showBorder,customSize:e.customSize});return a.tooltip?t.createElement(o.u,{title:a.tooltip,spanHack:!0},i):i}())})):t.createElement(t.Fragment,null),e.sortComponent&&e.sortComponent,i.length?t.createElement(N,{actions:i,dropdownToggleClassName:e.actionsDropdownClassName,dropdownToggleSvgSize:e.dropdownToggleSvgSize,fetchMore:e.fetchMore}):t.createElement(t.Fragment,null)):t.createElement(t.Fragment,null)}N.defaultProps={dropdownToggleClassName:"btn btn-light",dropdownToggleSvgSize:u.S.Small}},85177:(e,a,n)=>{n.d(a,{oy:()=>u,mS:()=>s});var t=n(32735),l=n(83914),c=n(7733),o=n(9085),r=n(35223);const i={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,m,d;function u(e){var a,n=e.type,u=e.mediaType,g=e.extraClasses,b=e.containerClassSize;if(n===s.Video)return t.createElement("div",{className:"".concat(i.videoFallback," ").concat(e.extraClasses," bg-light-blue")});if(n===s.Folder)return t.createElement("div",{className:"".concat(i.folderFallback," ").concat(e.extraClasses," ").concat((0,o.x)(e.name,c.o))});var p=function(e){return e===s.SeriesThumbnail?i.seriesItemFallback:e===s.PlaylistThumbnail?i.playlistItemFallback:e===s.Playlist?i.playlistFallback:e===s.Series||e===s.TallSubject?i.posterFallback:e===s.Subject?"".concat(i.subjectFallback," svg-container d-inline-block"):""}(n),v=function(e){return e===s.SeriesThumbnail||e===s.PlaylistThumbnail?r.vn.Play:e===s.Playlist?r.vn.Image:e===s.Series?r.vn.Series:e===s.Subject||e===s.TallSubject?r.vn.Subject:""}(n),k=function(e){return e===s.Subject?l.S.ExtraLarge:l.S.Standard}(n),N="".concat(function(e,a,n){if(a===s.Subject){var t=n===d.Large?i.subjectFallbackContainerLarge:i.subjectFallbackContainerSmall;return"".concat(i.subjectFallbackContainer," ").concat(t)}return e===m.Svg?a===s.SeriesThumbnail||a===s.PlaylistThumbnail?"".concat(i.svgFallbackContainer," rounded-3"):i.svgFallbackContainer:i.baseFallbackContainer}(u,n,b));return g&&(N+=" ".concat(e.extraClasses)),t.createElement("div",{className:N},u===m.Svg?t.createElement(l.x,{svgName:v,className:"".concat(p," ").concat(null!==(a=e.svgContainerClassName)&&void 0!==a?a:""),tagName:"div",size:k}):t.createElement("div",{className:i.fallbackThumbnailImage,style:{backgroundImage:"url('".concat(v,"')")}}))}!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"}(m||(m={})),function(e){e[e.Large=0]="Large",e[e.Small=1]="Small"}(d||(d={})),u.defaultProps={mediaType:m.Svg,containerClassSize:d.Large}},2786:(e,a,n)=>{n.d(a,{Sd:()=>l});var t=n(32735);function l(){return t.createElement("svg",{viewBox:"0 0 41 70"},t.createElement("g",null,t.createElement("path",{fill:"#F8981D",d:"M 0 0 41 35 0 70z"})))}},7733:(e,a,n)=>{n.d(a,{o:()=>t});var t=["bg-pink","bg-orange"].concat(["bg-green","bg-cyan","bg-teal","bg-blue","bg-indigo","bg-purple"])},9085:(e,a,n)=>{function t(e,a){return a[e.charCodeAt(0)%a.length]}n.d(a,{x:()=>t})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[9596],{53855:(e,t,n)=>{"use strict";n.d(t,{W:()=>l,f:()=>s});var r=n(32735),c=n(83914),o=n(35223);const a="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?o.vn.ChevronLeft:o.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?a:i)}),r.createElement("div",{role:"button",className:"".concat((t="BVcIS",t+=u?" ".concat(a," ").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(c.x,{svgName:d,size:c.S.Medium,className:"svg-container d-inline-block ".concat("Ev4hr")})))}))},5960:(e,t,n)=>{"use strict";var r,c;n.d(t,{H:()=>c,X:()=>r}),function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(r||(r={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(c||(c={}))},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,c,o=n(99940),a=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"}(c||(c={})),c.RecentlyAdded;var d=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:i.v.VIDEO})},v=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating,libraries{typeId:[17]}",permissionFilterOption:u.r.StripMetadata,shareId:t})},m=function(e){return a._.urlBuilder("{gateway}/v1/objects",{"query.video":i.v.VIDEO_COLLECTION,"query.clip":i.v.CLIP_COLLECTION,"query.interactive":i.v.INTERACTIVE_COLLECTION,id:e})},p=function(e){var t=e.videoId,n=e.context,c=e.collectionId,o=e.moviesAndTv,s={videoId:t,limit:e.limit,query:i.v.VIDEO_COLLECTION};return n&&(n===r.Widget?s["context.widgetId"]=c:(s["context.collectionType"]=n,s["context.collectionId"]=c)),o&&(s["context.moviesAndTv"]=!0),a._.urlBuilder("{gateway}/v1/suggestions/related-videos",s)},f={video:function(e,t){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:i.v.VIDEO,permissionFilterOption:t}),publicUrl:a._.urlBuilder("/api/objects/".concat(e),{query:i.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t)}},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),success:n,error:r}},myVideos:function(e,t){var n=i.v.VIDEO_COLLECTION,r=i.v.CLIP_COLLECTION,c=i.v.INTERACTIVE,o="videos[".concat(n,"]{libraries.typeid:").concat(l.E.WorkspaceCollection,"}"),d="clips[".concat(r,"]"),v="interactives[".concat(c,"]{status:[").concat(s.X.Published,",").concat(s.X.Draft,"]}"),m={query:"(".concat(o,"|").concat(d,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:u.r.StripMetadata};return t&&(m.cursor=t),{url:a._.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,c){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:o.k.PUT,data:t,success:n,error:r,always:c}},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}}},videoMixinAssocs:function(e,t){if(e.map((function(e){return"id=".concat(e)})).length)return{url:a._.urlBuilder("{gateway}/v1/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},glance",id:e}),publicUrl:a._.urlBuilder("/api/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},glance",id:e}),key:"video:mixin:assocs:".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:o.k.DELETE,success:t,error:n,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,n,r,c){var a=e.map((function(e){return"videoIds=".concat(e)})).join("&"),i=["categoryId=".concat(n),"".concat(a)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(i),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(n),type:o.k.DELETE,success:r,error:c,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,n=e.context,r=e.collectionId,c=e.moviesAndTv;return{url:p(e),key:"related:videos:".concat(t,":").concat(n,":").concat(r,":").concat(c)}},collectionVideos:function(e,t,n,r,o,l){var d=function(e){switch(e){case c.AtoZ:return"orderby:name";case c.ZtoA:return"orderbydesc:name";case c.Newest:return"orderbydesc:datecreated";case c.Oldest:return"orderby:datecreated";case c.RecentlyAdded:return"orderbydesc:timestamp";case c.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:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),b),key:h,success:r,error:o,always:l}},pointsOfInterest:function(e,t,n,r,c){var o={query:"{limit:100}",cursor:t};return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),o),publicUrl:a._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),o),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:n,error:r,always:c}},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}}}},74237:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(97395),c=n(92582),o=n(65858),a=null,i={getVideoDownloadUrl:function(e,t){return r._.safeUrlConcat(r._.makeHttps(e),"/download?token=".concat(t))},downloadResource:function(e,t,n){var r,i=a;a||(i=a=document.createElement("iframe"),document.body.appendChild(i),i.style.display="none"),i.src=e.url,c.k.logUserAction(Object.assign({id:null==e?void 0:e.id,name:null==e?void 0:e.name,resourceType:null===(r=null==e?void 0:e.metadata)||void 0===r?void 0:r.resourceType},t),Object.assign({actionType:o.Vw.Download,entity:o.py.Resource,workflowPhase:o.eu.Complete},n))}}},38400:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PreviewPdfView:()=>R});var r=n(32735),c=n(74027),o=n(17327),a=n.n(o),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,t){var n="/api/objects/".concat(e);return t&&(n+="?shareId=".concat(t)),{url:n,key:"resources:".concat(e,":").concat(t)}},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,c){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:c}},updateResource:function(e,t,n,r,c){return{url:"/api/domain/v2/objects/".concat(e),key:"update:resource:".concat(e),data:t,type:b.k.PUT,success:n,error:r,always:c}},deleteResource:function(e,t,n,r,c){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:c}}},k=n(11565),w=n(74237),I=n(35223);const j={document:"frWZr",page:"BxRha",documentError:"swyjp",buttonLeft:"mVvyw",buttonRight:"XSAEx"};function C(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,c,o,a,i=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){l=!0,c=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw c}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.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)?N(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 N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var O=80,L="shared.previewPdf";function P(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:L,phrase:"errorHeading"})),r.createElement("p",null,r.createElement(f.x,{namespace:L,phrase:"downloadAnyway"})),r.createElement(d.h,{svgName:I.vn.Download,onClick:e.onClickDownload,className:"btn btn-dark"},r.createElement(f.x,{namespace:L,phrase:"download"})))}function R(e){var t,n,o,d=C(r.useState(null),2),b=d[0],h=d[1],N=C(r.useState(1),2),R=N[0],T=N[1],_=C(r.useState(!1),2),x=_[0],B=_[1],S=r.useRef(null),V=s.a.useBasicFetch(E.publicResource(e.id,e.shareId)),D=s.a.useBasicFetch(e.shareId?k.R.sharedVideo(e.videoId,e.shareId):k.R.video(e.videoId));function U(e){var t,n,r;!function(e){if(S.current){var t=S.current.style.height;e>+t.substring(0,t.length-2)&&(S.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 q(e){h(e.numPages)}function F(){R===b||x||T(R+1)}function z(){1===R||x||T(R-1)}function W(){var e,t;w.T.downloadResource(V.data,{videoId:null===(e=D.data)||void 0===e?void 0:e.id,videoName:null===(t=D.data)||void 0===t?void 0:t.name},{location:u.LZ.Popup})}return r.createElement(v.G,{title:null!==(n=null===(t=V.data)||void 0===t?void 0:t.name)&&void 0!==n?n:"",showLoadingSpinner:!V.data,size:"lg",closePopup:e.closePopup,headerButtons:(o=[{svgName:I.vn.Download,onClick:W,className:"btn btn-link me-2",svgSize:p.S.Large}],x||o.push({svgName:I.vn.Print,onClick:function(){var e;x||(a()(i._.urlBuilder(P(V.data),{dl:"false"}),V.data.metadata.type===g.L.Image?"image":"pdf"),l.k.logUserAction({id:null===(e=V.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}),o)},function(){var t;return V.data?(null===(t=V.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:V.data.name,className:"img-fluid",src:P(V.data)})):r.createElement(r.Fragment,null,r.createElement(c.BB,{file:P(V.data),className:"".concat(j.document," ").concat(x?j.documentError:""),onLoadSuccess:q,onLoadError:function(){return B(!0)},error:function(){return r.createElement(A,{onClickDownload:W,errorImageUrl:e.errorImageUrl})},loading:m.E},r.createElement(c.T3,{pageNumber:R,loading:m.E,inputRef:function(e){return S.current=e},className:"".concat(j.page," d-flex justify-content-center position-relative"),onLoadSuccess:U,onLoadError:function(){return B(!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===R,className:j.buttonLeft}),r.createElement(y.W,{onClick:F,direction:y.f.Right,hide:x||R===b,className:j.buttonRight})),!(!(b&&b>1)||x)&&r.createElement("p",{className:"mt-3 text-center"},r.createElement(f.x,{namespace:L,phrase:"pageNumber",options:{current:R,total:b}}))):r.createElement(r.Fragment,null)}())}},90502:()=>{},98530:()=>{},74042:()=>{},88312:()=>{},81465:()=>{}}]);