@clickview/streamable-learning 0.3.1-rc.4 → 0.5.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/css/{377-streamable-learning-2f0a2f8eb0.chunk.css → 329-streamable-learning-920657dc9a.chunk.css} +5 -3
- package/dist/css/{910-streamable-learning-38dab89c6c.chunk.css → 423-streamable-learning-797202911d.chunk.css} +1 -1
- package/dist/css/{650-streamable-learning-fa6c1f1003.chunk.css → 451-streamable-learning-f231ecaeb7.chunk.css} +6 -6
- package/dist/css/{487-streamable-learning-87571ab68f.chunk.css → 595-streamable-learning-8fe34e6118.chunk.css} +1 -1
- package/dist/css/{506-streamable-learning-d5d57d157f.chunk.css → 612-streamable-learning-ece14dc15a.chunk.css} +5 -5
- package/dist/css/{290-streamable-learning-b31ef33a85.chunk.css → 734-streamable-learning-07522bc624.chunk.css} +10 -2
- package/dist/css/784-streamable-learning-65bee36107.chunk.css +4 -0
- package/dist/css/{163-streamable-learning-02ddf096ae.chunk.css → 874-streamable-learning-fc1105674b.chunk.css} +7 -7
- package/dist/css/{streamable-learning-d37e4c8d60.css → streamable-learning-5fdf669c17.css} +4 -4
- package/dist/languages/en.json +1 -1
- package/dist/scripts/126-a8f4015e6b-streamable-learning.chunk.js +1 -0
- package/dist/scripts/137-3acaf3eb81-streamable-learning.chunk.js +1 -0
- package/dist/scripts/153-96e5857ce1-streamable-learning.chunk.js +1 -0
- package/dist/scripts/254-080a1ae654-streamable-learning.chunk.js +1 -0
- package/dist/scripts/279-0abac0ac0e-streamable-learning.chunk.js +2 -0
- package/dist/scripts/329-657eb0b697-streamable-learning.chunk.js +2 -0
- package/dist/scripts/419-ab0537215c-streamable-learning.chunk.js +1 -0
- package/dist/scripts/423-0e5b8fc171-streamable-learning.chunk.js +1 -0
- package/dist/scripts/451-eefb81f6f6-streamable-learning.chunk.js +1 -0
- package/dist/scripts/482-a25e9ee6c4-streamable-learning.chunk.js +1 -0
- package/dist/scripts/513-d90972c5f6-streamable-learning.chunk.js +1 -0
- package/dist/scripts/595-9f0d3525f0-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{993-640ab6fbe1-streamable-learning.chunk.js → 599-0c51007c46-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/612-81fbe786c0-streamable-learning.chunk.js +1 -0
- package/dist/scripts/662-8e5cb5a280-streamable-learning.chunk.js +1 -0
- package/dist/scripts/700-7eb84bf5ed-streamable-learning.chunk.js +1 -0
- package/dist/scripts/734-a912f9b6eb-streamable-learning.chunk.js +1 -0
- package/dist/scripts/784-23fcd1f2d8-streamable-learning.chunk.js +1 -0
- package/dist/scripts/815-9712baaadf-streamable-learning.chunk.js +1 -0
- package/dist/scripts/864-2c70ba4ec3-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{87-ddd86d3a91-streamable-learning.chunk.js → 87-b48ad637e7-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/872-188ebe516b-streamable-learning.chunk.js +1 -0
- package/dist/scripts/874-6a0accfef7-streamable-learning.chunk.js +2 -0
- package/dist/scripts/933-56a3fec71b-streamable-learning.chunk.js +1 -0
- package/dist/scripts/954-5083338784-streamable-learning.chunk.js +1 -0
- package/dist/scripts/987-ba8280a546-streamable-learning.chunk.js +1 -0
- package/dist/scripts/bundle-9ff4ac0416.min.js +2 -0
- package/package.json +1 -1
- package/dist/css/513-streamable-learning-85c08e0392.chunk.css +0 -3
- package/dist/scripts/163-90706e4ce3-streamable-learning.chunk.js +0 -2
- package/dist/scripts/254-7849dedd0f-streamable-learning.chunk.js +0 -1
- package/dist/scripts/290-4735177507-streamable-learning.chunk.js +0 -1
- package/dist/scripts/308-512464c006-streamable-learning.chunk.js +0 -1
- package/dist/scripts/377-5975cd8fc1-streamable-learning.chunk.js +0 -2
- package/dist/scripts/482-b6d04c79bd-streamable-learning.chunk.js +0 -1
- package/dist/scripts/487-3a9cad0ec2-streamable-learning.chunk.js +0 -1
- package/dist/scripts/50-3a07bf6e83-streamable-learning.chunk.js +0 -1
- package/dist/scripts/500-54fb1362fb-streamable-learning.chunk.js +0 -1
- package/dist/scripts/506-d2c98b1917-streamable-learning.chunk.js +0 -1
- package/dist/scripts/513-0decd08fd9-streamable-learning.chunk.js +0 -1
- package/dist/scripts/518-96cb1fb356-streamable-learning.chunk.js +0 -1
- package/dist/scripts/650-bb8e2b11d8-streamable-learning.chunk.js +0 -1
- package/dist/scripts/662-1d6f5bf387-streamable-learning.chunk.js +0 -1
- package/dist/scripts/707-737478321a-streamable-learning.chunk.js +0 -1
- package/dist/scripts/761-4a9bd152fc-streamable-learning.chunk.js +0 -2
- package/dist/scripts/771-fe40769986-streamable-learning.chunk.js +0 -1
- package/dist/scripts/872-7642dabb85-streamable-learning.chunk.js +0 -1
- package/dist/scripts/910-3b6bc5bb83-streamable-learning.chunk.js +0 -1
- package/dist/scripts/933-743cfeb04b-streamable-learning.chunk.js +0 -1
- package/dist/scripts/bundle-aa981544b4.min.js +0 -2
- /package/dist/css/{761-streamable-learning-77ef8960f0.chunk.css → 279-streamable-learning-77ef8960f0.chunk.css} +0 -0
- /package/dist/css/{500-streamable-learning-b5d226bbb6.chunk.css → 987-streamable-learning-b5d226bbb6.chunk.css} +0 -0
- /package/dist/scripts/{146-597d7e3082-streamable-learning.chunk.js → 146-1da0662b2a-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{163-90706e4ce3-streamable-learning.chunk.js.LICENSE.txt → 279-0abac0ac0e-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{284-6c7dcea81d-streamable-learning.chunk.js → 284-8e526c50b3-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{377-5975cd8fc1-streamable-learning.chunk.js.LICENSE.txt → 329-657eb0b697-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{596-9712ebc581-streamable-learning.chunk.js → 596-3ce0f27d9d-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{761-4a9bd152fc-streamable-learning.chunk.js.LICENSE.txt → 874-6a0accfef7-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-aa981544b4.min.js.LICENSE.txt → bundle-9ff4ac0416.min.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[933],{43933:(e,t,n)=>{n.d(t,{X:()=>N});var a=n(32735),r=n(110),o=n(23481),c=n(49439);const i={cellDate:"qcD_n",label:"sp6Gw",isHovering:"_6xWx",numberWrapper:"KZfe0"};function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var s=o.T.encloseNamespace("specialEventCalendar.calendarCellDate");function d(e){var t=r.O.isToday(e.date),n="".concat(i.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,d,u=(o=(0,c.L)({delay:250}),d=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,c,i=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(i.push(a.value),i.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw r}}return i}}(o,d)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(o,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.")}()),v=u[0],m=u[1];return a.createElement("div",{className:"".concat(n," ").concat(m?i.isHovering:""),ref:v},a.createElement("div",{className:"".concat(i.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(i.label," justify-content-start align-items-center")},s("today")))}var u=n(92582),v=n(65858),m=n(79878),f=n(12324),p=n(57408),g=n(11607);const y={sliderDot:"fk5o1",sm:"LjGGx",active:"jA0tn",dotContainer:"Lr30e",defaultCursor:"J8mC3"};function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function b(e){function t(t,n){t.stopPropagation(),t.preventDefault(),e.onSliderDotClick(n)}function n(t,n){var a="".concat(y.sliderDot," rounded-3");return t&&(a+=" ".concat(y.active)),"sm"===e.size&&(a+=" ".concat(y.sm)),(!e.onSliderDotClick||e.sliderClickable&&!e.sliderClickable(n))&&(a+=" pointer-events-none ".concat(y.defaultCursor)),a}return a.createElement("div",{className:"".concat(e.className," w-100 d-flex justify-content-around")},a.createElement("div",{className:"".concat(y.dotContainer," d-flex")},(r=Array(e.sliderLength),function(e){if(Array.isArray(e))return h(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(r,o){var c=o===e.sliderStep;return a.createElement(g.L,{key:o,className:n(c,o),onClick:function(e){return null==t?void 0:t(e,o)}})}))));var r}var E=n(83914),D=n(2284),C=n(73275),k=n(35223);const O={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",logo:"QRf1I"};function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function w(e){var t,n,o,c,i,l,s=e.sliderStep,y=e.setSliderStep,h=e.eventsOnDay.length>1,w=e.eventsOnDay.find((function(e,t){return t===s})),x=!!w.endDate,N=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,w.content),S=null===(n=e.getHardCodedEvent)||void 0===n?void 0:n.call(e,w.content),I=null===(o=e.getIconUrl)||void 0===o?void 0:o.call(e,w.content),j=null===(c=e.getCoverUrl)||void 0===c?void 0:c.call(e,w.content),A=w.content.status===D.W.ComingSoon,Y=(i=a.useState(e.hasInitialized?O.appear:""),l=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,c,i=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(i.push(a.value),i.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw r}}return i}}(i,l)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(i,l)||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.")}()),H=Y[0],T=Y[1];a.useEffect((function(){if(!e.hasInitialized){var t=Math.floor(600*Math.random()+400);window.setTimeout((function(){T(O.appear),window.setTimeout((function(){e.setHasInitialized(!0)}),400)}),t)}}),[e.hasInitialized]),a.useEffect((function(){e.isHovering&&e.setHoveredEvent(w)}),[e.isHovering,w]),a.useEffect((function(){return function(){var t;e.isHovering&&(null===(t=e.hoveredEvent)||void 0===t?void 0:t.specialEventId)===w.specialEventId&&e.setHoveredEvent(null)}}),[e.isHovering,e.hoveredEvent,w]);var L=function(){var t={date:r.O.format(e.date,"YYYY-MM-DD"),presentationId:e.presentationId,eventCount:e.eventsOnDay.length};return h?(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=w.specialEventId,t.topicId=w.content.id,t.eventStatus=w.content.status),t}(),U={actionType:v.Vw.Click,entity:v.py.SpecialEvent,location:v.LZ.CalendarDay};function z(e){return r.O.format(e,"YYYY-MM-DD")}return a.createElement("div",{onClick:function(){A&&u.k.logUserAction(L,U)}},a.createElement(p.F,{appLink:function(){var t,n;return h?null===(t=e.getEventsListAppLink)||void 0===t?void 0:t.call(e):A?null:null===(n=e.getTopicAppLink)||void 0===n?void 0:n.call(e,w.content.id,w.name)}(),className:"d-flex justify-content-end",analyticsOptions:U,analyticsData:L},a.createElement("div",{className:"".concat(O.tagWrap," p-1")},A&&a.createElement(m.r,{className:"justify-content-center p-0 rounded-circle ".concat(O.tag," ").concat(H),onlyIcon:!0})),!e.hideDay&&a.createElement(d,{date:e.date,notCurrentMonth:e.notCurrentMonth,className:"".concat(O.date," ").concat(H),isHovering:e.isHovering,hasEvent:!0}),a.createElement("div",{className:"postion-relative ".concat(O.wrapper)},a.createElement("div",{style:{backgroundColor:N},className:"position-absolute d-flex flex-column justify-content-end align-items-center text-white px-1 pt-2 pb-1 ".concat(O.eventCard," ").concat(H," ").concat(e.isHovering?"rounded-3":""," ").concat(e.isMultiEventDate?O.multiEventFilter:""," ").concat(e.className)},a.createElement("div",{style:{backgroundImage:"url('".concat(I||j,"')")},className:"".concat(e.className," ").concat(H," ")+[S?"".concat(O.hardcodedCover," position-absolute"):O.backgroundImage,I?"":O.cover,A?O.comingSoon:"",e.hasInitialized?O.noAnimation:"",e.isHovering?"rounded-3":"",e.isMultiEventDate?O.multiEventFilter:"",e.contentType===C.VH.Webinar?O.logo:""].join(" ")}),x&&a.createElement("div",{className:"".concat(O.displayDate)},f.T.getDisplayDate(w.startDate,w.endDate)),a.createElement("div",{className:"text-center ".concat(O.title," ").concat(h?"mb-1":"mb-2")},a.createElement("div",{className:"".concat(O.titleText," ").concat(e.isHovering?"mb-0":"clamp-2"," h6"),title:w.name},w.name)),h&&0!==s&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(O.left)},a.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),y((function(e){return e-1})),u.k.logUserAction({date:z(e.date),action:"previous",eventCount:e.eventsOnDay.length},U)}},a.createElement(E.x,{svgName:k.vn.ChevronLeft,className:"d-inline-block svg-container text-dark ".concat(O.arrow)}))),h&&s!==e.eventsOnDay.length-1&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(O.right)},a.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),y((function(e){return e+1})),u.k.logUserAction({date:z(e.date),action:"next",eventCount:e.eventsOnDay.length},U)}},a.createElement(E.x,{svgName:k.vn.ChevronRight,className:"d-inline-block svg-container text-dark ".concat(O.arrow)}))),h&&a.createElement("div",{className:"d-flex ".concat(O.bottomBar," ").concat(h?"":O.bottomPlaceholder)},a.createElement(b,{sliderStep:s,sliderLength:e.eventsOnDay.length,size:"sm",className:"".concat(e.isHovering?"mb-2":"mb-1"),onSliderDotClick:function(t){y(t),u.k.logUserAction({date:z(e.date),action:"jump",eventCount:e.eventsOnDay.length},U)}}))))))}const x={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]),c=null===(t=e.hoveredEvent)||void 0===t?void 0:t.content.metadata.backgroundColor;return a.createElement("div",{className:"".concat(x.cell," fw-semibold")},!e.hideDay&&a.createElement(d,{date:e.date,notCurrentMonth:e.notCurrentMonth}),o&&a.createElement("div",{style:{backgroundColor:c},className:x.multiEventCell}),(null===(n=e.eventsOnDay)||void 0===n?void 0:n.length)>0&&a.createElement(w,Object.assign({},e,{isMultiEventDate:o})))}},79878:(e,t,n)=>{n.d(t,{r:()=>d});var a=n(32735),r=n(23481),o=n(83914),c=n(64444),i=n(35223);const l={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function d(e){return a.createElement(c.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(l.tooltip),spanHack:!0},a.createElement("div",{className:"d-flex text-dark align-items-center ".concat(l.tag," ").concat(e.className)},a.createElement(o.x,{svgName:i.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},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"))}}}}]);
|