@clickview/lite 0.50.1 → 0.50.3
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.
- package/dist/bundles.json +1 -1
- package/dist/scripts/{1437-5b1889cf0d-lite.chunk.js → 1437-f76bfeecb0-lite.chunk.js} +1 -1
- package/dist/scripts/{1437-5b1889cf0d-lite.chunk.js.map → 1437-f76bfeecb0-lite.chunk.js.map} +1 -1
- package/dist/scripts/9839-8d44a3235c-lite.chunk.js +3 -0
- package/dist/scripts/9839-8d44a3235c-lite.chunk.js.map +1 -0
- package/dist/scripts/{bundle-575d337427.min.js → bundle-2535722aa2.min.js} +3 -3
- package/dist/scripts/{bundle-575d337427.min.js.map → bundle-2535722aa2.min.js.map} +1 -1
- package/package.json +1 -1
- package/dist/scripts/9839-5befd54d51-lite.chunk.js +0 -3
- package/dist/scripts/9839-5befd54d51-lite.chunk.js.map +0 -1
- /package/dist/scripts/{9839-5befd54d51-lite.chunk.js.LICENSE.txt → 9839-8d44a3235c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-575d337427.min.js.LICENSE.txt → bundle-2535722aa2.min.js.LICENSE.txt} +0 -0
package/dist/bundles.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1437],{78259:(e,t,n)=>{n.d(t,{O:()=>l});var a=n(58176),r=n.n(a),o=n(39479),i={className:"info-link",defaultProtocol:"https"},l={linkifyText:function(e,t){if(e){var n=t?o.extend({},i,t):i;return r()(e,n)}}}},29711:(e,t,n)=>{n.d(t,{X:()=>N});var a=n(32735),r=n(110),o=n(23481),i=n(49439);const l={cellDate:"qcD_n",label:"sp6Gw",isHovering:"_6xWx",numberWrapper:"KZfe0"};function c(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 s=o.T.encloseNamespace("specialEventCalendar.calendarCellDate");function u(e){var t=r.O.isToday(e.date),n="".concat(l.cellDate," d-flex flex-nowrap");t&&(n+=" bg-dark text-white"),e.notCurrentMonth&&!e.isHovering&&(n+=" text-secondary"),e.hasEvent&&(n+=" text-white"),e.className&&(n+=" ".concat(e.className));var o,u,d=(o=(0,i.L)({delay:250}),u=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,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(o,u)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(o,u)||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.")}()),m=d[0],v=d[1];return a.createElement("div",{className:"".concat(n," ").concat(v?l.isHovering:""),ref:m},a.createElement("div",{className:"".concat(l.numberWrapper," ").concat("d-flex text-center justify-content-center align-items-center flex-shrink-0")},r.O.format(e.date,"D")),t&&a.createElement("div",{className:"".concat(l.label," justify-content-start align-items-center")},s("today")))}var d=n(49985),m=n(65858),v=n(84963),f=n(12324),p=n(36848),g=n(11607),y=n(36518),h=n(44435),E=n(83914),b=n(2284),O=n(35223);const D={hardcodedCover:"ByD0q",tag:"ZHW8B",date:"AKOWh",backgroundImage:"RDtch",eventCard:"YtMiS",wrapper:"ylxwf",left:"iTqxB",right:"bUUXX",noAnimation:"oZacR",cover:"kpH3Y",tagWrap:"KvlZ8",appear:"xlSdc",displayDate:"rkBJb",title:"c4_Kj",titleText:"nRMvg",circle:"wu4hg",active:"tbdFj",arrow:"omZKz",bottomBar:"hxKUP",bottomPlaceholder:"dzeZ7",multiEventFilter:"dSxjc"};function C(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}function S(e){var t,n,o,i,l,c,s=e.sliderStep,S=e.setSliderStep,k=e.eventsOnDay.length>1,N=e.eventsOnDay.find((function(e,t){return t===s})),A=!!N.endDate,w=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,N.content),M=null===(n=e.getHardCodedEvent)||void 0===n?void 0:n.call(e,N.content),L=null===(o=e.getIconUrl)||void 0===o?void 0:o.call(e,N.content),T=null===(i=e.getCoverUrl)||void 0===i?void 0:i.call(e,N.content),Y=N.content.status===b.W.ComingSoon,I=(l=a.useState(e.hasInitialized?D.appear:""),c=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(l,c)||function(e,t){if(e){if("string"==typeof e)return C(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)?C(e,t):void 0}}(l,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=I[0],U=I[1];a.useEffect((function(){if(!e.hasInitialized){var t=Math.floor(600*Math.random()+400);window.setTimeout((function(){U(D.appear),window.setTimeout((function(){e.setHasInitialized(!0)}),400)}),t)}}),[e.hasInitialized]),a.useEffect((function(){e.isHovering&&e.setHoveredEvent(N)}),[e.isHovering,N]),a.useEffect((function(){return function(){var t;e.isHovering&&(null===(t=e.hoveredEvent)||void 0===t?void 0:t.specialEventId)===N.specialEventId&&e.setHoveredEvent(null)}}),[e.isHovering,e.hoveredEvent,N]);var j=function(){var t={date:r.O.format(e.date,"YYYY-MM-DD"),presentationId:e.presentationId,eventCount:e.eventsOnDay.length};return k?(t.eventId=e.eventsOnDay.map((function(e){return e.specialEventId})).join(","),t.topicId=e.eventsOnDay.map((function(e){return e.content.id})).join(",")):(t.eventId=N.specialEventId,t.topicId=N.content.id,t.eventStatus=N.content.status),t}(),H={actionType:m.Vw.Click,entity:m.py.SpecialEvent,location:m.LZ.CalendarDay};function P(e){return r.O.format(e,"YYYY-MM-DD")}function _(){return"".concat(e.className," ").concat(x," ")+[M?"".concat(D.hardcodedCover," position-absolute"):D.backgroundImage,L?"my-auto":D.cover,Y?D.comingSoon:"",e.hasInitialized?D.noAnimation:"",e.isHovering?"rounded-3":"",e.isMultiEventDate?D.multiEventFilter:"","company"in N.content?"rounded-circle":""].join(" ")}return a.createElement("div",{onClick:function(){Y&&d.k.logUserAction(j,H)}},a.createElement(p.F,{appLink:function(){var t,n;return k?null===(t=e.getEventsListAppLink)||void 0===t?void 0:t.call(e):Y?null:null===(n=e.getTopicAppLink)||void 0===n?void 0:n.call(e,N.content.id,N.name)}(),className:"d-flex justify-content-end",analyticsOptions:H,analyticsData:j},a.createElement("div",{className:"".concat(D.tagWrap," p-1")},Y&&a.createElement(v.r,{className:"justify-content-center p-0 rounded-circle ".concat(D.tag," ").concat(x),onlyIcon:!0})),!e.hideDay&&a.createElement(u,{date:e.date,notCurrentMonth:e.notCurrentMonth,className:"".concat(D.date," ").concat(x),isHovering:e.isHovering,hasEvent:!0}),a.createElement("div",{className:"postion-relative ".concat(D.wrapper)},a.createElement("div",{style:{backgroundColor:w},className:"position-absolute d-flex flex-column justify-content-end align-items-center text-white px-1 pt-2 pb-1 ".concat(D.eventCard," ").concat(x," ").concat(e.isHovering?"rounded-3":""," ").concat(e.isMultiEventDate?D.multiEventFilter:""," ").concat(e.className)},L&&a.createElement(y.w,{src:L,alt:N.content.name,className:_()}),T&&!L&&a.createElement("div",{style:{backgroundImage:"url('".concat(T,"')")},className:_()}),A&&a.createElement("div",{className:"".concat(D.displayDate)},f.T.getDisplayDate(N.startDate,N.endDate)),a.createElement("div",{className:"text-center ".concat(D.title," ").concat(k?"mb-1":"mb-2")},a.createElement("div",{className:"".concat(D.titleText," ").concat(e.isHovering?"mb-0":"clamp-2"," h6"),title:N.name},N.name)),k&&0!==s&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(D.left)},a.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),S((function(e){return e-1})),d.k.logUserAction({date:P(e.date),action:"previous",eventCount:e.eventsOnDay.length},H)}},a.createElement(E.x,{svgName:O.vn.ChevronLeft,className:"d-inline-block svg-container text-dark ".concat(D.arrow)}))),k&&s!==e.eventsOnDay.length-1&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(D.right)},a.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),S((function(e){return e+1})),d.k.logUserAction({date:P(e.date),action:"next",eventCount:e.eventsOnDay.length},H)}},a.createElement(E.x,{svgName:O.vn.ChevronRight,className:"d-inline-block svg-container text-dark ".concat(D.arrow)}))),k&&a.createElement("div",{className:"d-flex ".concat(D.bottomBar," ").concat(k?"":D.bottomPlaceholder)},a.createElement(h.e,{sliderStep:s,sliderLength:e.eventsOnDay.length,size:"sm",className:"".concat(e.isHovering?"mb-2":"mb-1"),onSliderDotClick:function(t){S(t),d.k.logUserAction({date:P(e.date),action:"jump",eventCount:e.eventsOnDay.length},H)}}))))))}const k={cell:"nsEjO",multiEventCell:"vvFYj",fadeIn:"BX0cX"};function N(e){var t,n,o=a.useMemo((function(){var t,n,a,o;return(null===(t=e.hoveredEvent)||void 0===t?void 0:t.endDate)&&!r.O.isSame(e.date,null===(n=e.hoveredEvent)||void 0===n?void 0:n.startDate)&&r.O.isBetween(r.O.format(e.date,"YYYY-MM-DD"),null===(a=e.hoveredEvent)||void 0===a?void 0:a.startDate,null===(o=e.hoveredEvent)||void 0===o?void 0:o.endDate)}),[e.hoveredEvent]),i=e.hoveredEvent?null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,e.hoveredEvent.content):null;return a.createElement("div",{className:"".concat(k.cell," fw-semibold")},!e.hideDay&&a.createElement(u,{date:e.date,notCurrentMonth:e.notCurrentMonth}),o&&a.createElement("div",{style:{backgroundColor:i},className:k.multiEventCell}),(null===(n=e.eventsOnDay)||void 0===n?void 0:n.length)>0&&a.createElement(S,Object.assign({},e,{isMultiEventDate:o})))}},84963:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(32735),r=n(23481),o=n(83914),i=n(76177),l=n(35223);const c={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function u(e){return a.createElement(i.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(c.tooltip),spanHack:!0},a.createElement("div",{className:"d-flex text-dark align-items-center ".concat(c.tag," ").concat(e.className)},a.createElement(o.x,{svgName:l.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},6107:(e,t,n)=>{n.d(t,{b:()=>p});var a=n(32735),r=n(110),o=n(78259),i=n(49985),l=n(65858),c=n(84963),s=n(12324),u=n(42735),d=n(36848),m=n(75163),v=n(2284);const f={modalWidth:"SgHYb",banner:"PLw1p",pill:"UNBr0",logo:"xv_tc"};function p(e){var t,n,p,g,y,h=e.getAppLink(e.event.content.id,e.event.name),E=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,e.event.content),b=null===(n=e.getIconUrl)||void 0===n?void 0:n.call(e,e.event.content),O=null===(p=e.getBannerUrl)||void 0===p?void 0:p.call(e,e.event.content),D=!!e.event.endDate,C=e.event.content.status===v.W.ComingSoon,S=null===(g=e.getStartTime)||void 0===g?void 0:g.call(e,e.event.content),k=null===(y=e.getActionLabel)||void 0===y?void 0:y.call(e),N={actionType:l.Vw.Click,entity:l.py.SpecialEvent,location:e.inPopup?l.LZ.CalendarPopup:l.LZ.CalendarDay},A={topicId:e.event.content.id,eventId:e.event.specialEventId,presentationId:e.presentationId,date:r.O.format(new Date(e.event.startDate),"YYYY-MM-DD"),status:e.event.content.status};return a.createElement("div",null,S&&a.createElement("h6",null,S),a.createElement("div",{onClick:function(){C&&i.k.logUserAction(A,N)}},a.createElement(d.F,{appLink:!C&&h,className:"".concat(C?"":"cursor-pointer"," text-decoration-none"),onClick:e.onClick,analyticsOptions:N,analyticsData:A},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(f.banner),style:{backgroundColor:E,backgroundImage:"url('".concat(O,"')")}},a.createElement("div",{className:"d-flex justify-content-between align-items-center w-100 h-100 px-3"},a.createElement("div",{className:"d-flex align-items-center"},b&&a.createElement("div",{className:"".concat(f.logo," rounded-circle flex-shrink-0 overflow-hidden me-2")},a.createElement(m.Z,{data:b})),a.createElement("div",{className:"text-white"},C&&a.createElement(c.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start ".concat(f.pill)}),D&&a.createElement("div",{className:"mb-1"},s.T.getDisplayDate(e.event.startDate,e.event.endDate)),a.createElement("h2",{className:"h4 text-white text-shadow ".concat(e.event.description?"clamp-2":"clamp-1"),title:e.event.name},e.event.name))),a.createElement("div",{className:"d-none d-sm-block flex-shrink-0"},!C&&a.createElement(u.K,{className:"btn btn-outline-dark fw-semibold"},k))))),a.createElement("div",{className:"mt-2 mb-3 pre-wrap text-break",dangerouslySetInnerHTML:{__html:o.O.linkifyText(e.event.description||e.event.content.description)}})))}},7870:(e,t,n)=>{n.d(t,{N:()=>l});var a=n(97395),r=n(75896),o=n(110),i=n(40424),l={calendarEvents:function(e,t,n){return{url:a._.urlBuilder("{gateway}/v1/discover/special-events/content",{from:e,to:t,presentationId:n}),publicUrl:a._.urlBuilder("/api/discover/special-events/content",{from:e,to:t,presentationId:n}),key:"presentation:".concat(n,":events:from:").concat(e,":to").concat(t)}},nextTopicSpecialEvent:function(e,t){var n={presentationId:t,limit:1,from:o.O.format(new Date,"YYYY-MM-DD"),objectType:i.VH.Classification};return{url:a._.urlBuilder("{gateway}/v1/discover/special-events/object/".concat(e,"/next-events"),n),publicUrl:a._.urlBuilder("/api/discover/special-events/object/".concat(e,"/next-events"),n),key:"presentation:".concat(t,":events:classification:").concat(e),formatData:function(e){return r.m.first(e)}}}}},12324:(e,t,n)=>{n.d(t,{T:()=>r});var a=n(110),r={getDisplayDate:function(e,t){return t?e.slice(5,7)!==t.slice(5,7)?"".concat(a.O.format(e,"D MMM")," - ").concat(a.O.format(t,"D MMM")):"".concat(a.O.format(e,"D")," - ").concat(a.O.format(t,"D")," ").concat(a.O.format(e,"MMM")):a.O.format(e,"D MMM")},getEventsInMonth:function(e,t){return e.filter((function(e){return a.O.format(e.startDate,"YYYY-MM")===a.O.format(t,"YYYY-MM")}))},getOrdinalDate:function(e){return"".concat(a.O.getLocalDateOrdinal(a.O.get(e,"date"))," ").concat(a.O.format(e,"MMMM"))}}},3278:(e,t,n)=>{n.d(t,{z:()=>m});var a=n(32735),r=n(39202),o=n(23481),i=n(65858),l=n(38502),c=n(83345),s=n(40424);const u={pillTab:"bMJM0"};var d="discover.header";function m(e){var t,n,m,v,f,p;if(!e.type)return a.createElement(a.Fragment,null);if(e.type===s.Yv.Learner||e.hasStudentExperience)return a.createElement("div",{className:"py-3"},a.createElement("h1",{className:"h2 mb-0"},a.createElement(c.x,{namespace:d,phrase:"heading"})));var g=[{name:o.T.getPhrase(d,"forYou"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.forYou,active:"forYou"===e.active,analyticsData:{name:o.T.getPhrase(d,"forYou"),url:r.C$.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.forYou)},analyticsOptions:{actionType:i.Vw.Click,entity:i.py.Url,location:i.LZ.MagicTabs}},{name:o.T.getPhrase(d,"whatsNew"),appLink:null===(m=e.appLinks)||void 0===m?void 0:m.whatsNew,active:"whatsNew"===e.active,analyticsData:{name:o.T.getPhrase(d,"whatsNew"),url:r.C$.getHref(null===(v=e.appLinks)||void 0===v?void 0:v.whatsNew)},analyticsOptions:{actionType:i.Vw.Click,entity:i.py.Url,location:i.LZ.MagicTabs}}];return e.showCalendar&&g.push({name:o.T.getPhrase(d,"calendar"),appLink:null===(f=e.appLinks)||void 0===f?void 0:f.calendar,active:"calendar"===e.active,analyticsData:{name:o.T.getPhrase(d,"calendar"),url:r.C$.getHref(null===(p=e.appLinks)||void 0===p?void 0:p.calendar)},analyticsOptions:{actionType:i.Vw.Click,entity:i.py.Url,location:i.LZ.MagicTabs}}),a.createElement("div",{className:"py-3 text-center"},a.createElement(l.r,{tabs:g,className:u.pillTab}))}},38502:(e,t,n)=>{n.d(t,{r:()=>d});var a=n(32735),r=n(49985),o=n(36848),i=n(18559),l=n(11607),c=n(83914),s=n(87432);function u(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(i.C,{type:i.g.Count,data:e.tab.count})))}function d(e){var t;return a.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:""},a.createElement("ul",{className:"\n list-unstyled d-inline-block m-0 ".concat(s.Z.pillTabSelector,"\n ").concat(e.borderRadius?s.Z.radiusSmall:"","\n ").concat(e.listClassName,"\n ")},e.tabs.map((function(e,t){return a.createElement("li",{className:"\n p-0 ".concat(s.Z.tab," ").concat(e.active?"btn btn-dark":"btn btn-outline-dark","\n ").concat(e.name?s.Z.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(s.Z.tabLink,"\n ")},a.createElement(u,{tab:e})):a.createElement(l.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.Z.tabLink,"\n "),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&r.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},a.createElement(u,{tab:e})))}))))}d.defaultProps={borderRadius:"lg"}},2284:(e,t,n)=>{var a;n.d(t,{W:()=>a}),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(a||(a={}))},91437:(e,t,n)=>{n.r(t),n.d(t,{CalendarView:()=>we});var a=n(32735),r=n(23481),o=n(81886),i=n(20354),l=n(110),c=n(80247),s=n(28400),u=n(29711),d=n(64446);const m={wrapper:"WRLhh",notCurrentMonth:"L0rbf",weekend:"mF0ka"};function v(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}function f(e){var t,n,r,o=e.date,i=e.notCurrentMonth,c=(n=a.useState(0),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(n,r)||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,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.")}()),s=c[0],f=c[1],p="position-relative border ".concat(e.theme.border," ").concat(m.wrapper);(function(e){return 0===l.O.getWeekday(e)||6===l.O.getWeekday(e)})(o)&&(p+=" ".concat(m.weekend)),i&&(p+=" ".concat(m.notCurrentMonth));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:f});return a.createElement("td",{className:p},(null==g?void 0:g.length)>0?a.createElement(d.K,{hoverableComponent:u.X,componentProps:y,hoverScale:1.35}):a.createElement(u.X,Object.assign({},y,{isHovering:!1})))}var p=n(12324),g=n(79967),y=n(36848),h=n(23232),E=n(83345),b="specialEvent.eventsEmptyState",O=r.T.encloseNamespace(b);function D(e){return a.createElement(E.D.Provider,{value:b},a.createElement(h.u,null,a.createElement(h.u.Image,{src:e.imageUrl,altText:O("info")}),a.createElement(h.u.Heading,null,e.heading||a.createElement(E.x,{phrase:"heading"})),e.appLink&&a.createElement(h.u.Info,null,a.createElement(a.Fragment,null,a.createElement(E.x,{namespace:b,phrase:"info"}),a.createElement(y.F,{appLink:e.appLink},a.createElement("span",{className:"text-info"},O("link")))))))}var C=n(6107);const S={date:"k2lLG",first:"E18Bv"};function k(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})),a.createElement("div",{className:"py-1"},n.map((function(n,r){var o="",i="";return a.createElement("div",{key:n},a.createElement("div",{className:"h4 mt-4 ".concat(S.date," ").concat(0===r?S.first:"")},p.T.getOrdinalDate(n)),t[n].map((function(t){var n;return o=i,i=null===(n=e.getStartTime)||void 0===n?void 0:n.call(e,t.content),a.createElement(C.b,{key:t.content.id,getAppLink:function(t,n){return e.appLink(t,s.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&&o!==i?e.getStartTime:null})})))})))}const N={header:"sTIcQ",thead:"ekxZd"};function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(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)?w(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 w(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}function M(e){var t,n=e.appLinks,r=e.imageUrls,o=(0,g.k)(),i=p.T.getEventsInMonth(e.events||[],e.viewingMonth),l=A(a.useState(!1),2),u=l[0],d=l[1],m=A(a.useState(null),2),v=m[0],y=m[1];return e.eventsLoaded&&!(null==i?void 0:i.length)?a.createElement(D,{imageUrl:r.emptyState,appLink:null===(t=n.emptyStateRedirect)||void 0===t?void 0:t.call(n),heading:e.emptyStateHeading}):"list"===e.viewMode||o.xs||o.sm||o.md?e.eventsLoaded?a.createElement(k,{events:i,presentationId:e.presentationId,appLink:e.appLinks.event,getIconUrl:e.getIconUrl,getBannerUrl:e.getBannerUrl,getBackgroundColor:e.getBackgroundColor,getActionLabel:e.getActionLabel,getStartTime:e.getStartTime}):a.createElement("div",{className:"d-flex justify-content-center align-items-center mb-4"},a.createElement(c.Z,{as:"div",animation:"border",role:"status"})):a.createElement("table",{className:"user-select-none w-100 mt-3 overflow-hidden rounded-top-lg"},a.createElement("thead",{className:"border ".concat(e.theme.border," ").concat(N.thead)},a.createElement("tr",{className:"fw-semibold ".concat(e.theme.background," ").concat(N.header)},e.weekDaysHeader.map((function(e){return a.createElement("th",{key:e,className:"px-2 h4"},e)})))),a.createElement("tbody",null,e.weekDays.map((function(t){return a.createElement("tr",{key:t[0].toString()},t.map((function(t){return a.createElement(f,{key:t.toString(),date:t,notCurrentMonth:!!t.notCurrentMonth,events:e.events,monthQuery:e.monthQuery,hasInitialized:u,setHasInitialized:d,presentationId:e.presentationId,hoveredEvent:v,theme:e.theme,setHoveredEvent:y,getEventsListAppLink:function(){return e.appLinks.eventList(e.monthQuery,t,e.presentationId)},getTopicAppLink:function(t,n){return e.appLinks.event(t,s.m.slugify(n))},getIconUrl:e.getIconUrl,getBackgroundColor:e.getBackgroundColor,getCoverUrl:e.getCoverUrl,getHardCodedEvent:e.getHardCodedEvent})})))}))))}M.defaultProps={theme:{border:"border-light-blue",background:"bg-light-blue"}};var L=n(65858),T=n(75896),Y=new Date("2023-01-01"),I=12;function x(e,t){for(var n=l.O.startOf(e,"month"),a=l.O.getWeekday(n),r=[],o=t?0===a?6:a-1:a,i=t?1:0;i<=o;i++){var c=n,s=l.O.weekday(c,a-i);r.push(Object.assign(s,{notCurrentMonth:!0}))}return r.reverse()}function U(e,t){for(var n=l.O.endOf(e,"month"),a=l.O.getWeekday(n),r=[],o=t?7-(0===a?7:a):7-a,i=1;i<=o;i+=1){var c=l.O.add(n,i,"days");r.push(Object.assign(c,{notCurrentMonth:!0}))}return r}function j(e){var t=l.O.startOf(e,"month");return 1===l.O.getWeekday(t)?t:T.m.first(x(e,!0))}function H(e){var t=l.O.endOf(e,"month");return 0===l.O.getWeekday(t)?t:T.m.last(U(e,!0))}function P(e){return[j(e),H(e)]}function _(e){return e.charAt(0).toUpperCase()+e.slice(1)}var B=new Date,R=n(11607),W=n(10874),V=n(83914),F=n(35223);const Z={chevron:"U_GAM",left:"t_wDz",right:"KgpGw",viewModeContainer:"csNfk"};var z="specialEventCalendar.calendarNav";function G(e){return a.createElement("div",{className:"".concat(Z.viewModeContainer," d-none d-lg-block")},a.createElement(W.h,{svgName:F.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:L.py.AppLink,actionType:L.Vw.Click,descriptor:L.Jf.Calendar,location:L.LZ.CalendarNav}}),a.createElement(W.h,{svgName:F.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:L.py.AppLink,actionType:L.Vw.Click,descriptor:L.Jf.List,location:L.LZ.CalendarNav}}))}function $(e){var t="previous"===e.action?F.vn.ChevronLeft:F.vn.ChevronRight,n="previous"===e.action?Z.left:Z.right;return a.createElement(R.L,{className:"".concat(Z.chevron," ").concat(n," border border-dark rounded-circle bg-white d-flex align-items-center justify-content-center"),onClick:e.onClick},a.createElement(V.x,{svgName:t,size:V.S.Medium,className:"svg-container d-inline-block ".concat(Z.svg)}))}var K=new Date;function J(e){var t=e.appLinks,n=(0,g.k)();function o(n){var a,r,o=l.O.format(n,"MMMM").toLocaleLowerCase(),i=t.month(o),c={};if(n){var s=(new Date).getFullYear(),u=n.getFullYear();s!==u&&(c.year=u)}return(null===(a=e.queryParams)||void 0===a?void 0:a.classification)&&(c.classification=e.queryParams.classification),(null===(r=e.queryParams)||void 0===r?void 0:r.yearGroup)&&(c.yearGroup=e.queryParams.yearGroup),i.params=c,i}var i,c,s=(i=e.monthDate,c=l.O.diffBetween(l.O.startOf(i,"month"),l.O.startOf(B,"month"),"months"),{showPrev:l.O.isAfter(i,Y,"month"),showNext:c<I}),u=s.showPrev,d=s.showNext,m={actionType:L.Vw.Click,entity:L.py.SpecialEvent,location:L.LZ.CalendarNav};function v(e){return l.O.format(e,"YYYY-MM-DD")}return a.createElement("div",{className:"d-flex flex-wrap gap-3 justify-content-end align-items-center"},a.createElement("h1",{className:"mb-0 h2 me-auto"},l.O.format(e.monthDate,n.xs?"MMM YYYY":"MMMM YYYY")),e.children,e.setViewMode&&a.createElement(G,{viewMode:e.viewMode,setViewMode:e.setViewMode}),a.createElement("div",{className:"d-flex gap-3"},u&&a.createElement(y.F,{appLink:o(l.O.startOf(l.O.subtract(e.monthDate,1,"month"),"month")),className:"d-flex",analyticsOptions:m,analyticsData:{action:"previous",date:v(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month"))}},a.createElement($,{action:"previous",onClick:function(){var t=l.O.subtract(e.monthDate,1,"month");e.setViewingMonthDate(t)}})),a.createElement(y.F,{appLink:o(),className:"d-flex",analyticsOptions:m,analyticsData:{action:"today",date:v(l.O.startOf(K,"month"))}},a.createElement(R.L,{className:"".concat(Z.todayWrapper," btn btn-outline-dark fw-semibold"),onClick:function(){l.O.format(K,"M YY")!==l.O.format(e.monthDate,"M YY")&&e.setViewingMonthDate()}},r.T.getPhrase(z,"today"))),d&&a.createElement(y.F,{appLink:o(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month")),className:"d-flex",analyticsOptions:m,analyticsData:{action:"next",date:v(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month"))}},a.createElement($,{action:"next",onClick:function(){var t=l.O.add(e.monthDate,1,"month");e.setViewingMonthDate(t)}}))))}var Q="specialEvent.eventsErrorState",X=r.T.encloseNamespace(Q);function q(e){return a.createElement(E.D.Provider,{value:Q},a.createElement(h.u,null,a.createElement(h.u.Image,{src:e.imageUrl}),a.createElement(h.u.Heading,null,a.createElement(E.x,{phrase:"heading"})),a.createElement(h.u.Info,null,a.createElement(E.x,{namespace:Q,phrase:"info"}),a.createElement("br",null),a.createElement(y.F,{appLink:e.appLink},a.createElement("span",{className:"text-info"},X("link"))))))}var ee=n(7870);function te(e){return function(e){if(Array.isArray(e))return re(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ae(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 ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||ae(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 ae(e,t){if(e){if("string"==typeof e)return re(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)?re(e,t):void 0}}function re(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}function oe(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 ie=new Date;function le(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie,r=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c=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),s=a.useRef({}),u=(e=a.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 a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oe(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)?oe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=u[0],m=u[1],v=l.O.format(n,"YYYY-MM");a.useEffect((function(){var e=s.current[v];if(e)m(e.weeksTable);else{var t=function(e,t){for(var n=[],a={},r=x(e,t).concat(function(e){for(var t=l.O.daysInMonth(e),n=[],a=1;a<=t;a++){var r=l.O.set(e,"date",a);n.push(Object.assign(r,{notCurrentMonth:!1}))}return n}(e)).concat(U(e,t)),o=function(e){var t=r.slice(i,i+7);t.forEach((function(t,n){a[l.O.format(t,"YYYY-MM-DD")]={row:e,col:n}})),n.push(t),e++,c=e},i=0,c=0;i<r.length;i+=7)o(c);return{datePositionMap:a,weeksTable:n}}(n,i),a=t.weeksTable,r=t.datePositionMap;s.current[v]={weeksTable:a,datePositionMap:r},m(a)}}),[l.O.format(n,"YYYY-MM")]);var f=T.m.first(T.m.first(d)),p=T.m.last(T.m.last(d));return{weekDaysHeader:c,weekDays:d,monthDate:n,setMonthDate:function(e){if(e){if(v!==l.O.format(e,"YYYY-MM")){var t=l.O.format(e,"MMMM").toLocaleLowerCase(),a=(new Date).getFullYear(),i=n.getFullYear(),c=r.month(t);a!==i&&(c.params={year:i}),o.Q.C$.trigger(c)}}else o.Q.C$.trigger(r.calendar())},startDate:f,endDate:p}}var ce=n(3278),se=n(55171),ue=n(54610),de=n(31949),me=n(79612),ve=n(40424),fe=n(67453),pe=n(76753),ge=n(86698),ye=n(85369),he=n(30241),Ee=n(33192),be=n(93824),Oe=n(99742),De=n(14070),Ce=n(97291);function Se(e){switch(null==e?void 0:e.toLocaleLowerCase()){case be.C.AU:return{emptyState:Oe.W.EmptyStates.CALENDAR.NO_EVENTS_AU,errorState:Oe.W.EmptyStates.CALENDAR.INVALID_DATE};case be.C.US:return{emptyState:Oe.W.EmptyStates.CALENDAR.NO_EVENTS_US,errorState:Oe.W.EmptyStates.CALENDAR.INVALID_DATE};case be.C.UK:return{emptyState:Oe.W.EmptyStates.CALENDAR.NO_EVENTS_UK,errorState:Oe.W.EmptyStates.CALENDAR.INVALID_DATE};default:return{emptyState:Oe.W.EmptyStates.CALENDAR.NO_EVENTS,errorState:Oe.W.EmptyStates.CALENDAR.INVALID_DATE}}}function ke(){return{calendar:function(){return{application:Ce.O.CALENDAR,action:De.e.Calendar.CALENDAR}},month:function(e){return{application:Ce.O.CALENDAR,action:De.e.Calendar.CALENDAR_MONTH,args:[e]}},event:function(e,t){return{application:Ce.O.SUBJECT,action:De.e.Subjects.CLASSIFICATION,args:[e,t]}},eventList:function(e,t,n){return{application:Ce.O.CALENDAR,action:De.e.Calendar.SPECIAL_EVENT_LIST,params:Object.assign(Object.assign({},e),{date:t.toString(),presentationId:n})}},emptyStateRedirect:function(){return{application:Ce.O.CONTENT_UPDATES,action:De.e.ContentUpdates.CONTENT_UPDATES}}}}var Ne=n(27051),Ae=r.T.encloseNamespace("specialEventCalendar.calendarView");function we(e){var t=(0,g.k)(),n=(0,ge.y)({redirectOnError:!0}).activePresentation,r=(0,ye.N)(),c=r.showCalendar,s=r.isLoading,u=i.a.useBasicFetch(de.N.currentUser()),d=function(e){if(!e)return!0;var t=_(e);if(!l.O.formatIsValid(t,"MMMM-YYYY",!0))return!1;var n=l.O.parseDateString(t,"MMMM-YYYY");return l.O.isSame(n,Y,"month")||l.O.isAfter(n,Y,"month")}(e.month);a.useEffect((function(){s||c||o.Q.C$.trigger((0,Ne.u)().forYou,{replace:!0})}),[c,s]);var m=function(e){if(!e)return l.O.parseDateString();var t=_(e);return l.O.parseDateString(t,"MMMM-YYYY")}(e.month),v=le(m,ke()),f=v.monthDate,p=v.setMonthDate,y=v.weekDays,h=v.weekDaysHeader,E=v.startDate,b=v.endDate,O=function(e,t){var n=t,a=ne(P(e),2),r=a[0],o=a[1],c=ne(P(l.O.add(e,1,"month")),2),s=c[0],u=c[1],d=ne(P(l.O.subtract(e,1,"month")),2),m=d[0],v=d[1],f=i.a.useBasicFetch(r&&o&&n&&ee.N.calendarEvents(l.O.format(r,"YYYY-MM-DD"),l.O.format(o,"YYYY-MM-DD"),n)),p=i.a.useBasicFetch(s&&u&&n&&ee.N.calendarEvents(l.O.format(s,"YYYY-MM-DD"),l.O.format(u,"YYYY-MM-DD"),n)),g=i.a.useBasicFetch(m&&v&&n&&ee.N.calendarEvents(l.O.format(m,"YYYY-MM-DD"),l.O.format(v,"YYYY-MM-DD"),n));return{events:T.m.uniq([].concat(te(g.data||[]),te(f.data||[]),te(p.data||[])),(function(e){return e.specialEventPolicyId})),loaded:f.hasCompleted}}(m,n.id),D=O.events,C=O.loaded,S=l.O.format(f,"MMMM YYYY");if((0,me.M)(pe.CG.getDefaultMetadata({title:S,phraseContext:{phraseHandler:Ae,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:Ee.f.getCanonicalLink({allowedParams:["year"]}),allowIndexing:Ee.f.allowIndexing(),hrefLang:Ee.f.getStaticRouteHrefLang(null==n?void 0:n.learningLevel,ke().calendar,he.Bg)})),null!==e.month&&!d)return a.createElement(q,{imageUrl:Se().errorState,appLink:ke().calendar()});function k(e){return se.e.SpecialEvents[e.id]}return!s&&(null==n?void 0:n.id)&&u.data.countryCode?a.createElement("div",{className:"bg-white px-3"},a.createElement(ce.z,{type:ve.Yv.Staff,appLinks:(0,Ne.u)(),showCalendar:c,active:"calendar"}),a.createElement(J,{monthDate:f,setViewingMonthDate:p,appLinks:ke()}),a.createElement(M,{weekDays:y,weekDaysHeader:h,events:D,monthQuery:{from:null==E?void 0:E.toString(),to:null==b?void 0:b.toString()},viewingMonth:m,eventsLoaded:C,presentationId:n.id,appLinks:ke(),imageUrls:Se(u.data.countryCode),getIconUrl:function(e){return function(e,t){var n;return t?fe.j.createUrl(t.iconUrl,{size:ue.h2.Medium}):fe.j.createUrl(null===(n=e.icon)||void 0===n?void 0:n.url,{size:ue.h2.Small})}(e,k(e))},getCoverUrl:function(e){var t;return fe.j.createUrl(null===(t=e.cover)||void 0===t?void 0:t.url,{size:ue.h2.Small})},getBackgroundColor:function(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.backgroundColor},getBannerUrl:function(e){var t;return null===(t=e.banner)||void 0===t?void 0:t.url},getActionLabel:function(){return t.xs?Ae("mobileButtonLabel"):Ae("buttonLabel")},getHardCodedEvent:k})):a.createElement(a.Fragment,null)}},27051:(e,t,n)=>{n.d(t,{E:()=>v,u:()=>f});var a=n(75896),r=n(28400),o=n(17475),i=n(183),l=n(14070),c=n(97291),s=n(22490),u=n(67963),d=n(82431),m="classification-latest-releases";function v(e){return{classification:function(t){return{application:c.O.SUBJECT,action:l.e.Subjects.CLASSIFICATION,args:[null==t?void 0:t.id,r.m.slugify(null==t?void 0:t.name)],params:e||{}}},videoType:function(e,t){return s.W.getAppLink(e,Object.assign(Object.assign({},t),{context:i.Q.Widget}))},series:d.j.getSeriesAppLink,subText:function(e){return d.j.getSeriesAppLink(e.series)},playlist:function(e){return{application:c.O.PLAYLISTS,action:l.e.Playlists.PLAYLIST,args:[e.id,r.m.slugify(e.name)]}},latestReleases:function(){return{application:c.O.CONTENT_UPDATES,action:l.e.ContentUpdates.CONTENT_UPDATES}},allTopics:function(){return{application:c.O.SUBJECT,action:l.e.Subjects.CLASSIFICATION_ALL}},classificationLatestReleases:function(e){return e.id===m?{application:c.O.CONTENT_UPDATES,action:l.e.ContentUpdates.CONTENT_UPDATES}:{application:c.O.CONTENT_UPDATES,action:l.e.ContentUpdates.CLASSIFICATION_UPDATE,args:[e.id,r.m.slugify(e.name)]}},widgetVideoList:function(e,t){return{application:c.O.DASHBOARD,action:l.e.Dashboard.DASHBOARD,args:[e,r.m.slugify(t)]}},watchHistory:function(){return{application:c.O.WATCH_HISTORY,action:l.e.WatchHistory.HOME}},rating:function(e,t){return{application:c.O.SEARCH,action:l.e.Search.HOME,params:{moviesAndTv:!0,rating:o.S.getFrontendParamValue([a.m.first(t),e])}}},company:function(e){return{application:c.O.MOVIES_AND_TV,action:l.e.MoviesAndTv.COMPANY_DASHBOARD,args:[e.id,r.m.slugify(e.name)]}},discover:function(){return{application:c.O.DASHBOARD,action:l.e.Dashboard.HOME}},calendar:function(){return{application:c.O.CALENDAR,action:l.e.Calendar.CALENDAR}},calendarMonth:function(e,t){var n={application:c.O.CALENDAR,action:l.e.Calendar.CALENDAR_MONTH,args:[e.toLowerCase()]};return t&&(n.params={year:t}),n},onboardingStep:function(e){return(0,u.u)()[e]},onboardingAppLinks:function(){return(0,u.u)()},classroomGuide:s.W.getClassroomGuideAppLink,interactiveGuidance:s.W.getInteractiveGuidanceAppLink,resourceGuidance:s.W.getResourceGuidanceAppLink}}function f(){return{forYou:{application:c.O.DASHBOARD,action:l.e.Dashboard.HOME},whatsNew:{application:c.O.CONTENT_UPDATES,action:l.e.ContentUpdates.CONTENT_UPDATES},calendar:{application:c.O.CALENDAR,action:l.e.Calendar.CALENDAR}}}},85369:(e,t,n)=>{n.d(t,{N:()=>y});var a=n(32735),r=n(35242),o=n(20354),i=n(27022),l=n(72639),c=n(31949),s=n(37802),u=n(87114),d=n(86698);function m(e){return m="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},m(e)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(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)?f(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 f(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}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=m(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=p(p(p(p(p(p({},i.t.AU,[l.p.Level_1]),i.t.US,[l.p.Level_1]),i.t.UK,[l.p.Level_1]),i.t.SCOT,[l.p.Level_1]),i.t.NZ,[]),i.t.GLOBAL,[]);function y(){var e,t=(0,s.r)(null),n=t.hasSpecialEventCalendar,i=t.isLoadingSettings,l=(0,d.y)({redirectOnError:!0}).activePresentation,m=o.a.useBasicFetch(c.N.currentUser()),f=g[null===(e=m.data)||void 0===e?void 0:e.contentRegion],p=u.i.getMappedPresentationLevel(null==l?void 0:l.learningLevel),y=!(null==f?void 0:f.find((function(e){return e.toString()===(null==p?void 0:p.toString())}))),h=!i&&!n,E=v(a.useState(!h&&!y),2),b=E[0],O=E[1],D=v(a.useState(i||!(null==l?void 0:l.id)),2),C=D[0],S=D[1];return a.useEffect((function(){h||y?O(!1):C||O(!0),S(i||!(null==l?void 0:l.id))}),[n,null==l?void 0:l.id,C]),r.h.isDevelopment?{showCalendar:!0,isLoading:!1}:{showCalendar:b,isLoading:C}}},87432:(e,t,n)=>{n.d(t,{Z:()=>a});const a={pillTabSelector:"Hdi6o",tab:"RvNxr",minWidth:"GHSz9",radiusSmall:"VhJJa",tabLink:"WFyvo"}}}]);
|
|
2
|
-
//# sourceMappingURL=1437-
|
|
2
|
+
//# sourceMappingURL=1437-f76bfeecb0-lite.chunk.js.map
|