@clickview/streamable-learning 0.8.0-rc.3 → 0.8.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/109-streamable-learning-8f682301c6.chunk.css +1 -0
- package/dist/css/122-streamable-learning-c067c7cc15.chunk.css +76 -0
- package/dist/css/146-streamable-learning-b32369e5cf.chunk.css +13 -0
- package/dist/css/177-streamable-learning-ced7ccbc48.chunk.css +82 -0
- package/dist/css/254-streamable-learning-8e088350b1.chunk.css +2 -0
- package/dist/css/301-streamable-learning-b344f90d44.chunk.css +12 -0
- package/dist/css/397-streamable-learning-abf107d19e.chunk.css +46 -0
- package/dist/css/423-streamable-learning-1cfeeb77c0.chunk.css +5 -0
- package/dist/css/498-streamable-learning-8c9306617b.chunk.css +2 -0
- package/dist/css/596-streamable-learning-2c51a5f976.chunk.css +2 -0
- package/dist/css/662-streamable-learning-6dc93ba4b5.chunk.css +2 -0
- package/dist/css/784-streamable-learning-4df822d203.chunk.css +4 -0
- package/dist/css/843-streamable-learning-ce0ad8fa07.chunk.css +7 -0
- package/dist/css/862-streamable-learning-76d0adfd6b.chunk.css +23 -0
- package/dist/css/983-streamable-learning-edac0e9a90.chunk.css +28 -0
- package/dist/css/987-streamable-learning-b5d226bbb6.chunk.css +5 -0
- package/dist/css/streamable-learning-0d7fed6ed7.css +21 -0
- package/dist/scripts/109-70ccbbb4c1-streamable-learning.chunk.js +1 -0
- package/dist/scripts/122-959a2ea9ec-streamable-learning.chunk.js +2 -0
- package/dist/scripts/146-c708270a5b-streamable-learning.chunk.js +1 -0
- package/dist/scripts/153-e37595064a-streamable-learning.chunk.js +1 -0
- package/dist/scripts/173-aaf002a53f-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{242-3e9dfea9e6-streamable-learning.chunk.js → 177-8033f67d44-streamable-learning.chunk.js} +2 -2
- package/dist/scripts/254-f8db663999-streamable-learning.chunk.js +1 -0
- package/dist/scripts/284-bf81e61339-streamable-learning.chunk.js +1 -0
- package/dist/scripts/301-5e078bdc7c-streamable-learning.chunk.js +1 -0
- package/dist/scripts/325-3b5dd0c00f-streamable-learning.chunk.js +1 -0
- package/dist/scripts/367-0ef88760ca-streamable-learning.chunk.js +1 -0
- package/dist/scripts/397-d4b2cba8e1-streamable-learning.chunk.js +1 -0
- package/dist/scripts/411-e804050536-streamable-learning.chunk.js +1 -0
- package/dist/scripts/423-0cae205f86-streamable-learning.chunk.js +1 -0
- package/dist/scripts/446-a55b3e48f4-streamable-learning.chunk.js +1 -0
- package/dist/scripts/498-d523790e40-streamable-learning.chunk.js +1 -0
- package/dist/scripts/542-8ee03e29d1-streamable-learning.chunk.js +1 -0
- package/dist/scripts/546-593366d046-streamable-learning.chunk.js +1 -0
- package/dist/scripts/596-01b5bc87c5-streamable-learning.chunk.js +1 -0
- package/dist/scripts/598-08223f84bf-streamable-learning.chunk.js +2 -0
- package/dist/scripts/599-33381dfe97-streamable-learning.chunk.js +1 -0
- package/dist/scripts/662-828f957536-streamable-learning.chunk.js +1 -0
- package/dist/scripts/689-a364250bc4-streamable-learning.chunk.js +1 -0
- package/dist/scripts/700-e8ef858f86-streamable-learning.chunk.js +1 -0
- package/dist/scripts/784-3253e18c6a-streamable-learning.chunk.js +1 -0
- package/dist/scripts/790-55600082ef-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{551-cf7b6fe11c-streamable-learning.chunk.js → 843-c818b856c2-streamable-learning.chunk.js} +2 -2
- package/dist/scripts/862-280c8ba0b9-streamable-learning.chunk.js +1 -0
- package/dist/scripts/87-d101c79621-streamable-learning.chunk.js +1 -0
- package/dist/scripts/872-8ab45c2689-streamable-learning.chunk.js +1 -0
- package/dist/scripts/877-45cd37056a-streamable-learning.chunk.js +1 -0
- package/dist/scripts/881-6d0436d4d0-streamable-learning.chunk.js +1 -0
- package/dist/scripts/925-fe7566e0ee-streamable-learning.chunk.js +1 -0
- package/dist/scripts/933-22a4679e3d-streamable-learning.chunk.js +1 -0
- package/dist/scripts/934-944fb24dbc-streamable-learning.chunk.js +2 -0
- package/dist/scripts/937-06fa03cb07-streamable-learning.chunk.js +1 -0
- package/dist/scripts/958-34ccd07dd2-streamable-learning.chunk.js +1 -0
- package/dist/scripts/979-a0a98ef5cf-streamable-learning.chunk.js +1 -0
- package/dist/scripts/983-e30fa73a28-streamable-learning.chunk.js +1 -0
- package/dist/scripts/987-cf29e8d04b-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{bundle-8897f21ebf.min.js → bundle-50beefe07b.min.js} +2 -2
- package/package.json +1 -1
- package/dist/css/1072-streamable-learning-ee6c3d6f42.chunk.css +0 -1
- package/dist/css/1823-streamable-learning-1a2f63bee9.chunk.css +0 -1
- package/dist/css/242-streamable-learning-3a80ad3f7a.chunk.css +0 -35
- package/dist/css/2421-streamable-learning-78a29f6353.chunk.css +0 -4
- package/dist/css/253-streamable-learning-fcf1713a95.chunk.css +0 -2
- package/dist/css/2700-streamable-learning-c44307ff26.chunk.css +0 -3
- package/dist/css/2872-streamable-learning-a02fea9b90.chunk.css +0 -5
- package/dist/css/2987-streamable-learning-fa1bea0282.chunk.css +0 -1
- package/dist/css/3498-streamable-learning-05cf500c35.chunk.css +0 -2
- package/dist/css/3737-streamable-learning-a4c018fbc5.chunk.css +0 -1
- package/dist/css/3975-streamable-learning-adbd45b653.chunk.css +0 -1
- package/dist/css/3983-streamable-learning-f2efd8f575.chunk.css +0 -5
- package/dist/css/4109-streamable-learning-161314e1d4.chunk.css +0 -1
- package/dist/css/438-streamable-learning-1691a9b50c.chunk.css +0 -1
- package/dist/css/4546-streamable-learning-6fb0330d4f.chunk.css +0 -17
- package/dist/css/490-streamable-learning-8182c2708b.chunk.css +0 -2
- package/dist/css/507-streamable-learning-3f25ef5af5.chunk.css +0 -1
- package/dist/css/5440-streamable-learning-c7322a5d7e.chunk.css +0 -1
- package/dist/css/551-streamable-learning-c09801c210.chunk.css +0 -4
- package/dist/css/5708-streamable-learning-cf26b8c23a.chunk.css +0 -1
- package/dist/css/5902-streamable-learning-f8d01144f7.chunk.css +0 -9
- package/dist/css/6040-streamable-learning-515f538f33.chunk.css +0 -4
- package/dist/css/6138-streamable-learning-db155d5e7f.chunk.css +0 -1
- package/dist/css/6284-streamable-learning-39004842a5.chunk.css +0 -1
- package/dist/css/6411-streamable-learning-b7d9b456c1.chunk.css +0 -1
- package/dist/css/6542-streamable-learning-e1a1f5b43b.chunk.css +0 -4
- package/dist/css/6699-streamable-learning-d6f402980b.chunk.css +0 -1
- package/dist/css/6772-streamable-learning-30586450d3.chunk.css +0 -1
- package/dist/css/7245-streamable-learning-d8d5651563.chunk.css +0 -2
- package/dist/css/7504-streamable-learning-26c7f5a404.chunk.css +0 -1
- package/dist/css/8446-streamable-learning-1907659342.chunk.css +0 -3
- package/dist/css/8499-streamable-learning-01e557811a.chunk.css +0 -1
- package/dist/css/8559-streamable-learning-3ea2d2872f.chunk.css +0 -1
- package/dist/css/9019-streamable-learning-019e5fa797.chunk.css +0 -63
- package/dist/css/954-streamable-learning-f5675f2e37.chunk.css +0 -4
- package/dist/css/9596-streamable-learning-5ba5ce3997.chunk.css +0 -1
- package/dist/css/9725-streamable-learning-1bd1b1d293.chunk.css +0 -3
- package/dist/css/9826-streamable-learning-81d6c6f491.chunk.css +0 -1
- package/dist/css/streamable-learning-4dc19cf59f.css +0 -21
- package/dist/scripts/2087-c594edcf24-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2421-f5733cf1d7-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2700-c0a14f4c46-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2872-1bf19786f9-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2877-068bcf885b-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2987-a7ad77781d-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3498-143b3c727b-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3737-345cab6916-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3790-7d7e470f14-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3958-22fae60668-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3983-437a9c3be4-streamable-learning.chunk.js +0 -1
- package/dist/scripts/4109-56460a5b28-streamable-learning.chunk.js +0 -1
- package/dist/scripts/4254-cd48772def-streamable-learning.chunk.js +0 -1
- package/dist/scripts/4546-717b7a0862-streamable-learning.chunk.js +0 -1
- package/dist/scripts/5173-f4e285c96f-streamable-learning.chunk.js +0 -1
- package/dist/scripts/5446-3358713eae-streamable-learning.chunk.js +0 -1
- package/dist/scripts/5708-2fbc08de4e-streamable-learning.chunk.js +0 -1
- package/dist/scripts/5902-053ea0988e-streamable-learning.chunk.js +0 -2
- package/dist/scripts/6040-3d3e1ef89a-streamable-learning.chunk.js +0 -1
- package/dist/scripts/6138-cb40231f04-streamable-learning.chunk.js +0 -1
- package/dist/scripts/6284-9fd7a3cf97-streamable-learning.chunk.js +0 -1
- package/dist/scripts/6367-3e950e235f-streamable-learning.chunk.js +0 -1
- package/dist/scripts/6411-4fb2168198-streamable-learning.chunk.js +0 -1
- package/dist/scripts/6542-7e0f834bc2-streamable-learning.chunk.js +0 -1
- package/dist/scripts/6772-6306df9658-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7025-ec9f48359a-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7153-852adeb826-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7689-4e84237fa3-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7925-b208942885-streamable-learning.chunk.js +0 -1
- package/dist/scripts/8446-63c07eb7cf-streamable-learning.chunk.js +0 -1
- package/dist/scripts/8598-80abd9d41d-streamable-learning.chunk.js +0 -2
- package/dist/scripts/8599-f4b6336a38-streamable-learning.chunk.js +0 -1
- package/dist/scripts/8937-2cb21b93cf-streamable-learning.chunk.js +0 -1
- package/dist/scripts/9019-68121d0ecc-streamable-learning.chunk.js +0 -2
- package/dist/scripts/9325-2154cffa7f-streamable-learning.chunk.js +0 -1
- package/dist/scripts/9596-4806cb747f-streamable-learning.chunk.js +0 -1
- package/dist/scripts/9725-8452c832c4-streamable-learning.chunk.js +0 -1
- package/dist/scripts/9979-711727cd5a-streamable-learning.chunk.js +0 -1
- /package/dist/scripts/{242-3e9dfea9e6-streamable-learning.chunk.js.LICENSE.txt → 122-959a2ea9ec-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{551-cf7b6fe11c-streamable-learning.chunk.js.LICENSE.txt → 177-8033f67d44-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{253-4781ccc6a0-streamable-learning.chunk.js → 253-88f9e0d37d-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{8598-80abd9d41d-streamable-learning.chunk.js.LICENSE.txt → 598-08223f84bf-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9019-68121d0ecc-streamable-learning.chunk.js.LICENSE.txt → 843-c818b856c2-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5902-053ea0988e-streamable-learning.chunk.js.LICENSE.txt → 934-944fb24dbc-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{954-627d9c1782-streamable-learning.chunk.js → 954-8d22a768cc-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{bundle-8897f21ebf.min.js.LICENSE.txt → bundle-50beefe07b.min.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 5902-053ea0988e-streamable-learning.chunk.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[5902],{51934:function(t){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function i(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(n,!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var r="undefined"!=typeof window&&void 0!==window.document,h=r?window:{},s=!!r&&"ontouchstart"in h.document.documentElement,c=!!r&&"PointerEvent"in h,l="cropper",d="all",p="crop",m="move",u="zoom",g="e",f="w",v="s",w="n",b="ne",x="nw",y="se",M="sw",C="".concat(l,"-crop"),D="".concat(l,"-disabled"),k="".concat(l,"-hidden"),B="".concat(l,"-hide"),O="".concat(l,"-invisible"),T="".concat(l,"-modal"),E="".concat(l,"-move"),W="".concat(l,"Action"),N="".concat(l,"Preview"),H="crop",L="move",z="none",Y="crop",X="cropend",R="cropmove",S="cropstart",A="dblclick",j=c?"pointerdown":s?"touchstart":"mousedown",P=c?"pointermove":s?"touchmove":"mousemove",I=c?"pointerup pointercancel":s?"touchend touchcancel":"mouseup",U="ready",q="resize",$="wheel",_="zoom",Q="image/jpeg",K=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,Z=/^data:/,G=/^data:image\/jpeg;base64,/,V=/^img|canvas$/i,F={viewMode:0,dragMode:H,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},J=Number.isNaN||h.isNaN;function tt(t){return"number"==typeof t&&!J(t)}var et=function(t){return t>0&&t<1/0};function it(t){return void 0===t}function at(e){return"object"===t(e)&&null!==e}var nt=Object.prototype.hasOwnProperty;function ot(t){if(!at(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&nt.call(i,"isPrototypeOf")}catch(t){return!1}}function rt(t){return"function"==typeof t}var ht=Array.prototype.slice;function st(t){return Array.from?Array.from(t):ht.call(t)}function ct(t,e){return t&&rt(e)&&(Array.isArray(t)||tt(t.length)?st(t).forEach((function(i,a){e.call(t,i,a,t)})):at(t)&&Object.keys(t).forEach((function(i){e.call(t,t[i],i,t)}))),t}var lt=Object.assign||function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];return at(t)&&i.length>0&&i.forEach((function(e){at(e)&&Object.keys(e).forEach((function(i){t[i]=e[i]}))})),t},dt=/\.\d*(?:0|9){12}\d*$/;function pt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return dt.test(t)?Math.round(t*e)/e:t}var mt=/^width|height|left|top|marginLeft|marginTop$/;function ut(t,e){var i=t.style;ct(e,(function(t,e){mt.test(e)&&tt(t)&&(t="".concat(t,"px")),i[e]=t}))}function gt(t,e){if(e)if(tt(t.length))ct(t,(function(t){gt(t,e)}));else if(t.classList)t.classList.add(e);else{var i=t.className.trim();i?i.indexOf(e)<0&&(t.className="".concat(i," ").concat(e)):t.className=e}}function ft(t,e){e&&(tt(t.length)?ct(t,(function(t){ft(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function vt(t,e,i){e&&(tt(t.length)?ct(t,(function(t){vt(t,e,i)})):i?gt(t,e):ft(t,e))}var wt=/([a-z\d])([A-Z])/g;function bt(t){return t.replace(wt,"$1-$2").toLowerCase()}function xt(t,e){return at(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(bt(e)))}function yt(t,e,i){at(i)?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-".concat(bt(e)),i)}var Mt=/\s\s*/,Ct=function(){var t=!1;if(r){var e=!1,i=function(){},a=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});h.addEventListener("test",i,a),h.removeEventListener("test",i,a)}return t}();function Dt(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=i;e.trim().split(Mt).forEach((function(e){if(!Ct){var o=t.listeners;o&&o[e]&&o[e][i]&&(n=o[e][i],delete o[e][i],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete t.listeners)}t.removeEventListener(e,n,a)}))}function kt(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=i;e.trim().split(Mt).forEach((function(e){if(a.once&&!Ct){var o=t.listeners,r=void 0===o?{}:o;n=function(){delete r[e][i],t.removeEventListener(e,n,a);for(var o=arguments.length,h=new Array(o),s=0;s<o;s++)h[s]=arguments[s];i.apply(t,h)},r[e]||(r[e]={}),r[e][i]&&t.removeEventListener(e,r[e][i],a),r[e][i]=n,t.listeners=r}t.addEventListener(e,n,a)}))}function Bt(t,e,i){var a;return rt(Event)&&rt(CustomEvent)?a=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0}):(a=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i),t.dispatchEvent(a)}function Ot(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var Tt=h.location,Et=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function Wt(t){var e=t.match(Et);return null!==e&&(e[1]!==Tt.protocol||e[2]!==Tt.hostname||e[3]!==Tt.port)}function Nt(t){var e="timestamp=".concat((new Date).getTime());return t+(-1===t.indexOf("?")?"?":"&")+e}function Ht(t){var e=t.rotate,i=t.scaleX,a=t.scaleY,n=t.translateX,o=t.translateY,r=[];tt(n)&&0!==n&&r.push("translateX(".concat(n,"px)")),tt(o)&&0!==o&&r.push("translateY(".concat(o,"px)")),tt(e)&&0!==e&&r.push("rotate(".concat(e,"deg)")),tt(i)&&1!==i&&r.push("scaleX(".concat(i,")")),tt(a)&&1!==a&&r.push("scaleY(".concat(a,")"));var h=r.length?r.join(" "):"none";return{WebkitTransform:h,msTransform:h,transform:h}}function Lt(t,e){var i=t.pageX,a=t.pageY,o={endX:i,endY:a};return e?o:n({startX:i,startY:a},o)}function zt(t){var e=t.aspectRatio,i=t.height,a=t.width,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=et(a),r=et(i);if(o&&r){var h=i*e;"contain"===n&&h>a||"cover"===n&&h<a?i=a/e:a=i*e}else o?i=a/e:r&&(a=i*e);return{width:a,height:i}}var Yt=String.fromCharCode;var Xt=/^data:.*,/;function Rt(t){var e,i=new DataView(t);try{var a,n,o;if(255===i.getUint8(0)&&216===i.getUint8(1))for(var r=i.byteLength,h=2;h+1<r;){if(255===i.getUint8(h)&&225===i.getUint8(h+1)){n=h;break}h+=1}if(n){var s=n+10;if("Exif"===function(t,e,i){var a="";i+=e;for(var n=e;n<i;n+=1)a+=Yt(t.getUint8(n));return a}(i,n+4,4)){var c=i.getUint16(s);if(((a=18761===c)||19789===c)&&42===i.getUint16(s+2,a)){var l=i.getUint32(s+4,a);l>=8&&(o=s+l)}}}if(o){var d,p,m=i.getUint16(o,a);for(p=0;p<m;p+=1)if(d=o+12*p+2,274===i.getUint16(d,a)){d+=8,e=i.getUint16(d,a),i.setUint16(d,1,a);break}}}catch(t){e=1}return e}var St={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,i=this.container,a=this.cropper;gt(a,k),ft(t,k);var n={width:Math.max(i.offsetWidth,Number(e.minContainerWidth)||200),height:Math.max(i.offsetHeight,Number(e.minContainerHeight)||100)};this.containerData=n,ut(a,{width:n.width,height:n.height}),gt(t,k),ft(a,k)},initCanvas:function(){var t=this.containerData,e=this.imageData,i=this.options.viewMode,a=Math.abs(e.rotate)%180==90,n=a?e.naturalHeight:e.naturalWidth,o=a?e.naturalWidth:e.naturalHeight,r=n/o,h=t.width,s=t.height;t.height*r>t.width?3===i?h=t.height*r:s=t.width/r:3===i?s=t.width/r:h=t.height*r;var c={aspectRatio:r,naturalWidth:n,naturalHeight:o,width:h,height:s};c.left=(t.width-h)/2,c.top=(t.height-s)/2,c.oldLeft=c.left,c.oldTop=c.top,this.canvasData=c,this.limited=1===i||2===i,this.limitCanvas(!0,!0),this.initialImageData=lt({},e),this.initialCanvasData=lt({},c)},limitCanvas:function(t,e){var i=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,r=i.viewMode,h=n.aspectRatio,s=this.cropped&&o;if(t){var c=Number(i.minCanvasWidth)||0,l=Number(i.minCanvasHeight)||0;r>1?(c=Math.max(c,a.width),l=Math.max(l,a.height),3===r&&(l*h>c?c=l*h:l=c/h)):r>0&&(c?c=Math.max(c,s?o.width:0):l?l=Math.max(l,s?o.height:0):s&&(c=o.width,(l=o.height)*h>c?c=l*h:l=c/h));var d=zt({aspectRatio:h,width:c,height:l});c=d.width,l=d.height,n.minWidth=c,n.minHeight=l,n.maxWidth=1/0,n.maxHeight=1/0}if(e)if(r>(s?0:1)){var p=a.width-n.width,m=a.height-n.height;n.minLeft=Math.min(0,p),n.minTop=Math.min(0,m),n.maxLeft=Math.max(0,p),n.maxTop=Math.max(0,m),s&&this.limited&&(n.minLeft=Math.min(o.left,o.left+(o.width-n.width)),n.minTop=Math.min(o.top,o.top+(o.height-n.height)),n.maxLeft=o.left,n.maxTop=o.top,2===r&&(n.width>=a.width&&(n.minLeft=Math.min(0,p),n.maxLeft=Math.max(0,p)),n.height>=a.height&&(n.minTop=Math.min(0,m),n.maxTop=Math.max(0,m))))}else n.minLeft=-n.width,n.minTop=-n.height,n.maxLeft=a.width,n.maxTop=a.height},renderCanvas:function(t,e){var i=this.canvasData,a=this.imageData;if(e){var n=function(t){var e=t.width,i=t.height,a=t.degree;if(90==(a=Math.abs(a)%180))return{width:i,height:e};var n=a%90*Math.PI/180,o=Math.sin(n),r=Math.cos(n),h=e*r+i*o,s=e*o+i*r;return a>90?{width:s,height:h}:{width:h,height:s}}({width:a.naturalWidth*Math.abs(a.scaleX||1),height:a.naturalHeight*Math.abs(a.scaleY||1),degree:a.rotate||0}),o=n.width,r=n.height,h=i.width*(o/i.naturalWidth),s=i.height*(r/i.naturalHeight);i.left-=(h-i.width)/2,i.top-=(s-i.height)/2,i.width=h,i.height=s,i.aspectRatio=o/r,i.naturalWidth=o,i.naturalHeight=r,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,ut(this.canvas,lt({width:i.width,height:i.height},Ht({translateX:i.left,translateY:i.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,i=this.imageData,a=i.naturalWidth*(e.width/e.naturalWidth),n=i.naturalHeight*(e.height/e.naturalHeight);lt(i,{width:a,height:n,left:(e.width-a)/2,top:(e.height-n)/2}),ut(this.image,lt({width:i.width,height:i.height},Ht(lt({translateX:i.left,translateY:i.top},i)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,i=t.aspectRatio||t.initialAspectRatio,a=Number(t.autoCropArea)||.8,n={width:e.width,height:e.height};i&&(e.height*i>e.width?n.height=n.width/i:n.width=n.height*i),this.cropBoxData=n,this.limitCropBox(!0,!0),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),n.width=Math.max(n.minWidth,n.width*a),n.height=Math.max(n.minHeight,n.height*a),n.left=e.left+(e.width-n.width)/2,n.top=e.top+(e.height-n.height)/2,n.oldLeft=n.left,n.oldTop=n.top,this.initialCropBoxData=lt({},n)},limitCropBox:function(t,e){var i=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,r=this.limited,h=i.aspectRatio;if(t){var s=Number(i.minCropBoxWidth)||0,c=Number(i.minCropBoxHeight)||0,l=r?Math.min(a.width,n.width,n.width+n.left,a.width-n.left):a.width,d=r?Math.min(a.height,n.height,n.height+n.top,a.height-n.top):a.height;s=Math.min(s,a.width),c=Math.min(c,a.height),h&&(s&&c?c*h>s?c=s/h:s=c*h:s?c=s/h:c&&(s=c*h),d*h>l?d=l/h:l=d*h),o.minWidth=Math.min(s,l),o.minHeight=Math.min(c,d),o.maxWidth=l,o.maxHeight=d}e&&(r?(o.minLeft=Math.max(0,n.left),o.minTop=Math.max(0,n.top),o.maxLeft=Math.min(a.width,n.left+n.width)-o.width,o.maxTop=Math.min(a.height,n.top+n.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=a.width-o.width,o.maxTop=a.height-o.height))},renderCropBox:function(){var t=this.options,e=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,t.movable&&t.cropBoxMovable&&yt(this.face,W,i.width>=e.width&&i.height>=e.height?m:d),ut(this.cropBox,lt({width:i.width,height:i.height},Ht({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Bt(this.element,Y,this.getData())}},At={initPreview:function(){var t=this.element,e=this.crossOrigin,i=this.options.preview,a=e?this.crossOriginUrl:this.url,n=t.alt||"The image to preview",o=document.createElement("img");if(e&&(o.crossOrigin=e),o.src=a,o.alt=n,this.viewBox.appendChild(o),this.viewBoxImage=o,i){var r=i;"string"==typeof i?r=t.ownerDocument.querySelectorAll(i):i.querySelector&&(r=[i]),this.previews=r,ct(r,(function(t){var i=document.createElement("img");yt(t,N,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(i.crossOrigin=e),i.src=a,i.alt=n,i.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(i)}))}},resetPreview:function(){ct(this.previews,(function(t){var e=xt(t,N);ut(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(at(t[e]))try{delete t[e]}catch(i){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(i){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(bt(e)))}(t,N)}))},preview:function(){var t=this.imageData,e=this.canvasData,i=this.cropBoxData,a=i.width,n=i.height,o=t.width,r=t.height,h=i.left-e.left-t.left,s=i.top-e.top-t.top;this.cropped&&!this.disabled&&(ut(this.viewBoxImage,lt({width:o,height:r},Ht(lt({translateX:-h,translateY:-s},t)))),ct(this.previews,(function(e){var i=xt(e,N),c=i.width,l=i.height,d=c,p=l,m=1;a&&(p=n*(m=c/a)),n&&p>l&&(d=a*(m=l/n),p=l),ut(e,{width:d,height:p}),ut(e.getElementsByTagName("img")[0],lt({width:o*m,height:r*m},Ht(lt({translateX:-h*m,translateY:-s*m},t))))})))}},jt={bind:function(){var t=this.element,e=this.options,i=this.cropper;rt(e.cropstart)&&kt(t,S,e.cropstart),rt(e.cropmove)&&kt(t,R,e.cropmove),rt(e.cropend)&&kt(t,X,e.cropend),rt(e.crop)&&kt(t,Y,e.crop),rt(e.zoom)&&kt(t,_,e.zoom),kt(i,j,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&kt(i,$,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&kt(i,A,this.onDblclick=this.dblclick.bind(this)),kt(t.ownerDocument,P,this.onCropMove=this.cropMove.bind(this)),kt(t.ownerDocument,I,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&kt(window,q,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,i=this.cropper;rt(e.cropstart)&&Dt(t,S,e.cropstart),rt(e.cropmove)&&Dt(t,R,e.cropmove),rt(e.cropend)&&Dt(t,X,e.cropend),rt(e.crop)&&Dt(t,Y,e.crop),rt(e.zoom)&&Dt(t,_,e.zoom),Dt(i,j,this.onCropStart),e.zoomable&&e.zoomOnWheel&&Dt(i,$,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&Dt(i,A,this.onDblclick),Dt(t.ownerDocument,P,this.onCropMove),Dt(t.ownerDocument,I,this.onCropEnd),e.responsive&&Dt(window,q,this.onResize)}},Pt={resize:function(){var t=this.options,e=this.container,i=this.containerData,a=Number(t.minContainerWidth)||200,n=Number(t.minContainerHeight)||100;if(!(this.disabled||i.width<=a||i.height<=n)){var o,r,h=e.offsetWidth/i.width;1===h&&e.offsetHeight===i.height||(t.restore&&(o=this.getCanvasData(),r=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(ct(o,(function(t,e){o[e]=t*h}))),this.setCropBoxData(ct(r,(function(t,e){r[e]=t*h})))))}},dblclick:function(){var t,e;this.disabled||this.options.dragMode===z||this.setDragMode((t=this.dragBox,e=C,(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)?L:H))},wheel:function(t){var e=this,i=Number(this.options.wheelZoomRatio)||.1,a=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50),t.deltaY?a=t.deltaY>0?1:-1:t.wheelDelta?a=-t.wheelDelta/120:t.detail&&(a=t.detail>0?1:-1),this.zoom(-a*i,t)))},cropStart:function(t){var e=t.buttons,i=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(tt(e)&&1!==e||tt(i)&&0!==i||t.ctrlKey))){var a,n=this.options,o=this.pointers;t.changedTouches?ct(t.changedTouches,(function(t){o[t.identifier]=Lt(t)})):o[t.pointerId||0]=Lt(t),a=Object.keys(o).length>1&&n.zoomable&&n.zoomOnTouch?u:xt(t.target,W),K.test(a)&&!1!==Bt(this.element,S,{originalEvent:t,action:a})&&(t.preventDefault(),this.action=a,this.cropping=!1,a===p&&(this.cropping=!0,gt(this.dragBox,T)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var i=this.pointers;t.preventDefault(),!1!==Bt(this.element,R,{originalEvent:t,action:e})&&(t.changedTouches?ct(t.changedTouches,(function(t){lt(i[t.identifier]||{},Lt(t,!0))})):lt(i[t.pointerId||0]||{},Lt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,i=this.pointers;t.changedTouches?ct(t.changedTouches,(function(t){delete i[t.identifier]})):delete i[t.pointerId||0],e&&(t.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,vt(this.dragBox,T,this.cropped&&this.options.modal)),Bt(this.element,X,{originalEvent:t,action:e}))}}},It={change:function(t){var e,i=this.options,a=this.canvasData,o=this.containerData,r=this.cropBoxData,h=this.pointers,s=this.action,c=i.aspectRatio,l=r.left,C=r.top,D=r.width,B=r.height,O=l+D,T=C+B,E=0,W=0,N=o.width,H=o.height,L=!0;!c&&t.shiftKey&&(c=D&&B?D/B:1),this.limited&&(E=r.minLeft,W=r.minTop,N=E+Math.min(o.width,a.width,a.left+a.width),H=W+Math.min(o.height,a.height,a.top+a.height));var z=h[Object.keys(h)[0]],Y={x:z.endX-z.startX,y:z.endY-z.startY},X=function(t){switch(t){case g:O+Y.x>N&&(Y.x=N-O);break;case f:l+Y.x<E&&(Y.x=E-l);break;case w:C+Y.y<W&&(Y.y=W-C);break;case v:T+Y.y>H&&(Y.y=H-T)}};switch(s){case d:l+=Y.x,C+=Y.y;break;case g:if(Y.x>=0&&(O>=N||c&&(C<=W||T>=H))){L=!1;break}X(g),(D+=Y.x)<0&&(s=f,l-=D=-D),c&&(B=D/c,C+=(r.height-B)/2);break;case w:if(Y.y<=0&&(C<=W||c&&(l<=E||O>=N))){L=!1;break}X(w),B-=Y.y,C+=Y.y,B<0&&(s=v,C-=B=-B),c&&(D=B*c,l+=(r.width-D)/2);break;case f:if(Y.x<=0&&(l<=E||c&&(C<=W||T>=H))){L=!1;break}X(f),D-=Y.x,l+=Y.x,D<0&&(s=g,l-=D=-D),c&&(B=D/c,C+=(r.height-B)/2);break;case v:if(Y.y>=0&&(T>=H||c&&(l<=E||O>=N))){L=!1;break}X(v),(B+=Y.y)<0&&(s=w,C-=B=-B),c&&(D=B*c,l+=(r.width-D)/2);break;case b:if(c){if(Y.y<=0&&(C<=W||O>=N)){L=!1;break}X(w),B-=Y.y,C+=Y.y,D=B*c}else X(w),X(g),Y.x>=0?O<N?D+=Y.x:Y.y<=0&&C<=W&&(L=!1):D+=Y.x,Y.y<=0?C>W&&(B-=Y.y,C+=Y.y):(B-=Y.y,C+=Y.y);D<0&&B<0?(s=M,C-=B=-B,l-=D=-D):D<0?(s=x,l-=D=-D):B<0&&(s=y,C-=B=-B);break;case x:if(c){if(Y.y<=0&&(C<=W||l<=E)){L=!1;break}X(w),B-=Y.y,C+=Y.y,D=B*c,l+=r.width-D}else X(w),X(f),Y.x<=0?l>E?(D-=Y.x,l+=Y.x):Y.y<=0&&C<=W&&(L=!1):(D-=Y.x,l+=Y.x),Y.y<=0?C>W&&(B-=Y.y,C+=Y.y):(B-=Y.y,C+=Y.y);D<0&&B<0?(s=y,C-=B=-B,l-=D=-D):D<0?(s=b,l-=D=-D):B<0&&(s=M,C-=B=-B);break;case M:if(c){if(Y.x<=0&&(l<=E||T>=H)){L=!1;break}X(f),D-=Y.x,l+=Y.x,B=D/c}else X(v),X(f),Y.x<=0?l>E?(D-=Y.x,l+=Y.x):Y.y>=0&&T>=H&&(L=!1):(D-=Y.x,l+=Y.x),Y.y>=0?T<H&&(B+=Y.y):B+=Y.y;D<0&&B<0?(s=b,C-=B=-B,l-=D=-D):D<0?(s=y,l-=D=-D):B<0&&(s=x,C-=B=-B);break;case y:if(c){if(Y.x>=0&&(O>=N||T>=H)){L=!1;break}X(g),B=(D+=Y.x)/c}else X(v),X(g),Y.x>=0?O<N?D+=Y.x:Y.y>=0&&T>=H&&(L=!1):D+=Y.x,Y.y>=0?T<H&&(B+=Y.y):B+=Y.y;D<0&&B<0?(s=x,C-=B=-B,l-=D=-D):D<0?(s=M,l-=D=-D):B<0&&(s=b,C-=B=-B);break;case m:this.move(Y.x,Y.y),L=!1;break;case u:this.zoom(function(t){var e=n({},t),i=[];return ct(t,(function(t,a){delete e[a],ct(e,(function(e){var a=Math.abs(t.startX-e.startX),n=Math.abs(t.startY-e.startY),o=Math.abs(t.endX-e.endX),r=Math.abs(t.endY-e.endY),h=Math.sqrt(a*a+n*n),s=(Math.sqrt(o*o+r*r)-h)/h;i.push(s)}))})),i.sort((function(t,e){return Math.abs(t)<Math.abs(e)})),i[0]}(h),t),L=!1;break;case p:if(!Y.x||!Y.y){L=!1;break}e=Ot(this.cropper),l=z.startX-e.left,C=z.startY-e.top,D=r.minWidth,B=r.minHeight,Y.x>0?s=Y.y>0?y:b:Y.x<0&&(l-=D,s=Y.y>0?M:x),Y.y<0&&(C-=B),this.cropped||(ft(this.cropBox,k),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}L&&(r.width=D,r.height=B,r.left=l,r.top=C,this.action=s,this.renderCropBox()),ct(h,(function(t){t.startX=t.endX,t.startY=t.endY}))}},Ut={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&>(this.dragBox,T),ft(this.cropBox,k),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=lt({},this.initialImageData),this.canvasData=lt({},this.initialCanvasData),this.cropBoxData=lt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(lt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),ft(this.dragBox,T),gt(this.cropBox,k)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,ct(this.previews,(function(e){e.getElementsByTagName("img")[0].src=t})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,ft(this.cropper,D)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,gt(this.cropper,D)),this},destroy:function(){var t=this.element;return t[l]?(t[l]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,a=i.left,n=i.top;return this.moveTo(it(t)?t:a+Number(t),it(e)?e:n+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,a=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(tt(t)&&(i.left=t,a=!0),tt(e)&&(i.top=e,a=!0),a&&this.renderCanvas(!0)),this},zoom:function(t,e){var i=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(i.width*t/i.naturalWidth,null,e)},zoomTo:function(t,e,i){var a=this.options,n=this.canvasData,o=n.width,r=n.height,h=n.naturalWidth,s=n.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&a.zoomable){var c=h*t,l=s*t;if(!1===Bt(this.element,_,{ratio:t,oldRatio:o/h,originalEvent:i}))return this;if(i){var d=this.pointers,p=Ot(this.cropper),m=d&&Object.keys(d).length?function(t){var e=0,i=0,a=0;return ct(t,(function(t){var n=t.startX,o=t.startY;e+=n,i+=o,a+=1})),{pageX:e/=a,pageY:i/=a}}(d):{pageX:i.pageX,pageY:i.pageY};n.left-=(c-o)*((m.pageX-p.left-n.left)/o),n.top-=(l-r)*((m.pageY-p.top-n.top)/r)}else ot(e)&&tt(e.x)&&tt(e.y)?(n.left-=(c-o)*((e.x-n.left)/o),n.top-=(l-r)*((e.y-n.top)/r)):(n.left-=(c-o)/2,n.top-=(l-r)/2);n.width=c,n.height=l,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return tt(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,tt(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(tt(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.imageData,a=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(tt(t)&&(i.scaleX=t,a=!0),tt(e)&&(i.scaleY=e,a=!0),a&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.options,a=this.imageData,n=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){t={x:o.left-n.left,y:o.top-n.top,width:o.width,height:o.height};var r=a.width/a.naturalWidth;if(ct(t,(function(e,i){t[i]=e/r})),e){var h=Math.round(t.y+t.height),s=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=s-t.x,t.height=h-t.y}}else t={x:0,y:0,width:0,height:0};return i.rotatable&&(t.rotate=a.rotate||0),i.scalable&&(t.scaleX=a.scaleX||1,t.scaleY=a.scaleY||1),t},setData:function(t){var e=this.options,i=this.imageData,a=this.canvasData,n={};if(this.ready&&!this.disabled&&ot(t)){var o=!1;e.rotatable&&tt(t.rotate)&&t.rotate!==i.rotate&&(i.rotate=t.rotate,o=!0),e.scalable&&(tt(t.scaleX)&&t.scaleX!==i.scaleX&&(i.scaleX=t.scaleX,o=!0),tt(t.scaleY)&&t.scaleY!==i.scaleY&&(i.scaleY=t.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var r=i.width/i.naturalWidth;tt(t.x)&&(n.left=t.x*r+a.left),tt(t.y)&&(n.top=t.y*r+a.top),tt(t.width)&&(n.width=t.width*r),tt(t.height)&&(n.height=t.height*r),this.setCropBoxData(n)}return this},getContainerData:function(){return this.ready?lt({},this.containerData):{}},getImageData:function(){return this.sized?lt({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&ct(["left","top","width","height","naturalWidth","naturalHeight"],(function(i){e[i]=t[i]})),e},setCanvasData:function(t){var e=this.canvasData,i=e.aspectRatio;return this.ready&&!this.disabled&&ot(t)&&(tt(t.left)&&(e.left=t.left),tt(t.top)&&(e.top=t.top),tt(t.width)?(e.width=t.width,e.height=t.width/i):tt(t.height)&&(e.height=t.height,e.width=t.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,i,a=this.cropBoxData,n=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&ot(t)&&(tt(t.left)&&(a.left=t.left),tt(t.top)&&(a.top=t.top),tt(t.width)&&t.width!==a.width&&(e=!0,a.width=t.width),tt(t.height)&&t.height!==a.height&&(i=!0,a.height=t.height),n&&(e?a.height=a.width/n:i&&(a.width=a.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,i=function(t,e,i,a){var n=e.aspectRatio,r=e.naturalWidth,h=e.naturalHeight,s=e.rotate,c=void 0===s?0:s,l=e.scaleX,d=void 0===l?1:l,p=e.scaleY,m=void 0===p?1:p,u=i.aspectRatio,g=i.naturalWidth,f=i.naturalHeight,v=a.fillColor,w=void 0===v?"transparent":v,b=a.imageSmoothingEnabled,x=void 0===b||b,y=a.imageSmoothingQuality,M=void 0===y?"low":y,C=a.maxWidth,D=void 0===C?1/0:C,k=a.maxHeight,B=void 0===k?1/0:k,O=a.minWidth,T=void 0===O?0:O,E=a.minHeight,W=void 0===E?0:E,N=document.createElement("canvas"),H=N.getContext("2d"),L=zt({aspectRatio:u,width:D,height:B}),z=zt({aspectRatio:u,width:T,height:W},"cover"),Y=Math.min(L.width,Math.max(z.width,g)),X=Math.min(L.height,Math.max(z.height,f)),R=zt({aspectRatio:n,width:D,height:B}),S=zt({aspectRatio:n,width:T,height:W},"cover"),A=Math.min(R.width,Math.max(S.width,r)),j=Math.min(R.height,Math.max(S.height,h)),P=[-A/2,-j/2,A,j];return N.width=pt(Y),N.height=pt(X),H.fillStyle=w,H.fillRect(0,0,Y,X),H.save(),H.translate(Y/2,X/2),H.rotate(c*Math.PI/180),H.scale(d,m),H.imageSmoothingEnabled=x,H.imageSmoothingQuality=M,H.drawImage.apply(H,[t].concat(o(P.map((function(t){return Math.floor(pt(t))}))))),H.restore(),N}(this.image,this.imageData,e,t);if(!this.cropped)return i;var a=this.getData(),n=a.x,r=a.y,h=a.width,s=a.height,c=i.width/Math.floor(e.naturalWidth);1!==c&&(n*=c,r*=c,h*=c,s*=c);var l=h/s,d=zt({aspectRatio:l,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),p=zt({aspectRatio:l,width:t.minWidth||0,height:t.minHeight||0},"cover"),m=zt({aspectRatio:l,width:t.width||(1!==c?i.width:h),height:t.height||(1!==c?i.height:s)}),u=m.width,g=m.height;u=Math.min(d.width,Math.max(p.width,u)),g=Math.min(d.height,Math.max(p.height,g));var f=document.createElement("canvas"),v=f.getContext("2d");f.width=pt(u),f.height=pt(g),v.fillStyle=t.fillColor||"transparent",v.fillRect(0,0,u,g);var w=t.imageSmoothingEnabled,b=void 0===w||w,x=t.imageSmoothingQuality;v.imageSmoothingEnabled=b,x&&(v.imageSmoothingQuality=x);var y,M,C,D,k,B,O=i.width,T=i.height,E=n,W=r;E<=-h||E>O?(E=0,y=0,C=0,k=0):E<=0?(C=-E,E=0,k=y=Math.min(O,h+E)):E<=O&&(C=0,k=y=Math.min(h,O-E)),y<=0||W<=-s||W>T?(W=0,M=0,D=0,B=0):W<=0?(D=-W,W=0,B=M=Math.min(T,s+W)):W<=T&&(D=0,B=M=Math.min(s,T-W));var N=[E,W,y,M];if(k>0&&B>0){var H=u/h;N.push(C*H,D*H,k*H,B*H)}return v.drawImage.apply(v,[i].concat(o(N.map((function(t){return Math.floor(pt(t))}))))),f},setAspectRatio:function(t){var e=this.options;return this.disabled||it(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,i=this.dragBox,a=this.face;if(this.ready&&!this.disabled){var n=t===H,o=e.movable&&t===L;t=n||o?t:z,e.dragMode=t,yt(i,W,t),vt(i,C,n),vt(i,E,o),e.cropBoxMovable||(yt(a,W,t),vt(a,C,n),vt(a,E,o))}return this}},qt=h.Cropper,$t=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e||!V.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=lt({},F,ot(i)&&i),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return i=t,n=[{key:"noConflict",value:function(){return window.Cropper=qt,t}},{key:"setDefaults",value:function(t){lt(F,ot(t)&&t)}}],(a=[{key:"init",value:function(){var t,e=this.element,i=e.tagName.toLowerCase();if(!e[l]){if(e[l]=this,"img"===i){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===i&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e,i,a,n,o=this;if(t){this.url=t,this.imageData={};var r=this.element,h=this.options;if(h.rotatable||h.scalable||(h.checkOrientation=!1),h.checkOrientation&&window.ArrayBuffer)if(Z.test(t))G.test(t)?this.read((e=t.replace(Xt,""),i=atob(e),a=new ArrayBuffer(i.length),ct(n=new Uint8Array(a),(function(t,e){n[e]=i.charCodeAt(e)})),a)):this.clone();else{var s=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=c,s.onerror=c,s.ontimeout=c,s.onprogress=function(){s.getResponseHeader("content-type")!==Q&&s.abort()},s.onload=function(){o.read(s.response)},s.onloadend=function(){o.reloading=!1,o.xhr=null},h.checkCrossOrigin&&Wt(t)&&r.crossOrigin&&(t=Nt(t)),s.open("GET",t),s.responseType="arraybuffer",s.withCredentials="use-credentials"===r.crossOrigin,s.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,i=this.imageData,a=Rt(t),n=0,o=1,r=1;if(a>1){this.url=function(t,e){for(var i=[],a=new Uint8Array(t);a.length>0;)i.push(Yt.apply(null,st(a.subarray(0,8192)))),a=a.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(i.join("")))}(t,Q);var h=function(t){var e=0,i=1,a=1;switch(t){case 2:i=-1;break;case 3:e=-180;break;case 4:a=-1;break;case 5:e=90,a=-1;break;case 6:e=90;break;case 7:e=90,i=-1;break;case 8:e=-90}return{rotate:e,scaleX:i,scaleY:a}}(a);n=h.rotate,o=h.scaleX,r=h.scaleY}e.rotatable&&(i.rotate=n),e.scalable&&(i.scaleX=o,i.scaleY=r),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,i=t.crossOrigin,a=e;this.options.checkCrossOrigin&&Wt(e)&&(i||(i="anonymous"),a=Nt(e)),this.crossOrigin=i,this.crossOriginUrl=a;var n=document.createElement("img");i&&(n.crossOrigin=i),n.src=a||e,n.alt=t.alt||"The image to crop",this.image=n,n.onload=this.start.bind(this),n.onerror=this.stop.bind(this),gt(n,B),t.parentNode.insertBefore(n,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var i=h.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(h.navigator.userAgent),a=function(e,i){lt(t.imageData,{naturalWidth:e,naturalHeight:i,aspectRatio:e/i}),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||i){var n=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=n,n.onload=function(){a(n.width,n.height),i||o.removeChild(n)},n.src=e.src,i||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(n))}else a(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,i=this.image,a=t.parentNode,n=document.createElement("div");n.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var o=n.querySelector(".".concat(l,"-container")),r=o.querySelector(".".concat(l,"-canvas")),h=o.querySelector(".".concat(l,"-drag-box")),s=o.querySelector(".".concat(l,"-crop-box")),c=s.querySelector(".".concat(l,"-face"));this.container=a,this.cropper=o,this.canvas=r,this.dragBox=h,this.cropBox=s,this.viewBox=o.querySelector(".".concat(l,"-view-box")),this.face=c,r.appendChild(i),gt(t,k),a.insertBefore(o,t.nextSibling),this.isImg||ft(i,B),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,gt(s,k),e.guides||gt(s.getElementsByClassName("".concat(l,"-dashed")),k),e.center||gt(s.getElementsByClassName("".concat(l,"-center")),k),e.background&>(o,"".concat(l,"-bg")),e.highlight||gt(c,O),e.cropBoxMovable&&(gt(c,E),yt(c,W,d)),e.cropBoxResizable||(gt(s.getElementsByClassName("".concat(l,"-line")),k),gt(s.getElementsByClassName("".concat(l,"-point")),k)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),rt(e.ready)&&kt(t,U,e.ready,{once:!0}),Bt(t,U)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),ft(this.element,k))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&e(i.prototype,a),n&&e(i,n),t;var i,a,n}();return lt($t.prototype,St,At,jt,Pt,It,Ut),$t}()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[6040],{43933:(e,t,n)=>{n.d(t,{X:()=>j});var r=n(32735),a=n(110),o=n(23481),i=n(49439);const c={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,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=o.T.encloseNamespace("specialEventCalendar.calendarCellDate");function u(e){var t=a.O.isToday(e.date),n="".concat(c.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 r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.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&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(o,u)||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,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.")}()),v=d[0],m=d[1];return r.createElement("div",{className:"".concat(n," ").concat(m?c.isHovering:""),ref:v},r.createElement("div",{className:"".concat(c.numberWrapper," ").concat("d-flex text-center justify-content-center align-items-center flex-shrink-0")},a.O.format(e.date,"D")),t&&r.createElement("div",{className:"".concat(c.label," justify-content-start align-items-center")},s("today")))}var d=n(92582),v=n(65858),m=n(79878),f=n(12324),p=n(57408),g=n(11607),y=n(16107);const b={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,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e){function t(t,n){t.stopPropagation(),t.preventDefault(),e.onSliderDotClick(n)}function n(t,n){var r="".concat(b.sliderDot," rounded-3");return t&&(r+=" ".concat(b.active)),"sm"===e.size&&(r+=" ".concat(b.sm)),(!e.onSliderDotClick||e.sliderClickable&&!e.sliderClickable(n))&&(r+=" pointer-events-none ".concat(b.defaultCursor)),r}return r.createElement("div",{className:"".concat(e.className," w-100 d-flex justify-content-around")},r.createElement("div",{className:"".concat(b.dotContainer," d-flex")},(a=Array(e.sliderLength),function(e){if(Array.isArray(e))return h(e)}(a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||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}}(a)||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(a,o){var i=o===e.sliderStep;return r.createElement(g.L,{key:o,className:n(i,o),onClick:function(e){return null==t?void 0:t(e,o)}})}))));var a}var D=n(83914),C=n(2284),O=n(35223);const k={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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e){var t,n,o,i,c,l,s=e.sliderStep,b=e.setSliderStep,h=e.eventsOnDay.length>1,M=e.eventsOnDay.find((function(e,t){return t===s})),S=!!M.endDate,j=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,M.content),x=null===(n=e.getHardCodedEvent)||void 0===n?void 0:n.call(e,M.content),N=null===(o=e.getIconUrl)||void 0===o?void 0:o.call(e,M.content),A=null===(i=e.getCoverUrl)||void 0===i?void 0:i.call(e,M.content),I=M.content.status===C.W.ComingSoon,Y=(c=r.useState(e.hasInitialized?k.appear:""),l=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.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&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(c,l)||function(e,t){if(e){if("string"==typeof e)return w(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)?w(e,t):void 0}}(c,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],L=Y[1];r.useEffect((function(){if(!e.hasInitialized){var t=Math.floor(600*Math.random()+400);window.setTimeout((function(){L(k.appear),window.setTimeout((function(){e.setHasInitialized(!0)}),400)}),t)}}),[e.hasInitialized]),r.useEffect((function(){e.isHovering&&e.setHoveredEvent(M)}),[e.isHovering,M]),r.useEffect((function(){return function(){var t;e.isHovering&&(null===(t=e.hoveredEvent)||void 0===t?void 0:t.specialEventId)===M.specialEventId&&e.setHoveredEvent(null)}}),[e.isHovering,e.hoveredEvent,M]);var T=function(){var t={date:a.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=M.specialEventId,t.topicId=M.content.id,t.eventStatus=M.content.status),t}(),U={actionType:v.Vw.Click,entity:v.py.SpecialEvent,location:v.LZ.CalendarDay};function P(e){return a.O.format(e,"YYYY-MM-DD")}function B(){return"".concat(e.className," ").concat(H," ")+[x?"".concat(k.hardcodedCover," position-absolute"):k.backgroundImage,N?"my-auto":k.cover,I?k.comingSoon:"",e.hasInitialized?k.noAnimation:"",e.isHovering?"rounded-3":"",e.isMultiEventDate?k.multiEventFilter:"","company"in M.content?"rounded-circle":""].join(" ")}return r.createElement("div",{onClick:function(){I&&d.k.logUserAction(T,U)}},r.createElement(p.F,{appLink:function(){var t,n;return h?null===(t=e.getEventsListAppLink)||void 0===t?void 0:t.call(e):I?null:null===(n=e.getTopicAppLink)||void 0===n?void 0:n.call(e,M.content.id,M.name)}(),className:"d-flex justify-content-end",analyticsOptions:U,analyticsData:T},r.createElement("div",{className:"".concat(k.tagWrap," p-1")},I&&r.createElement(m.r,{className:"justify-content-center p-0 rounded-circle ".concat(k.tag," ").concat(H),onlyIcon:!0})),!e.hideDay&&r.createElement(u,{date:e.date,notCurrentMonth:e.notCurrentMonth,className:"".concat(k.date," ").concat(H),isHovering:e.isHovering,hasEvent:!0}),r.createElement("div",{className:"postion-relative ".concat(k.wrapper)},r.createElement("div",{style:{backgroundColor:j},className:"position-absolute d-flex flex-column justify-content-end align-items-center text-white px-1 pt-2 pb-1 ".concat(k.eventCard," ").concat(H," ").concat(e.isHovering?"rounded-3":""," ").concat(e.isMultiEventDate?k.multiEventFilter:""," ").concat(e.className)},N?r.createElement(y.w,{src:N,alt:M.content.name,className:B()}):r.createElement("div",{style:{backgroundImage:"url('".concat(A,"')")},className:B()}),S&&r.createElement("div",{className:"".concat(k.displayDate)},f.T.getDisplayDate(M.startDate,M.endDate)),r.createElement("div",{className:"text-center ".concat(k.title," ").concat(h?"mb-1":"mb-2")},r.createElement("div",{className:"".concat(k.titleText," ").concat(e.isHovering?"mb-0":"clamp-2"," h6"),title:M.name},M.name)),h&&0!==s&&r.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(k.left)},r.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),b((function(e){return e-1})),d.k.logUserAction({date:P(e.date),action:"previous",eventCount:e.eventsOnDay.length},U)}},r.createElement(D.x,{svgName:O.vn.ChevronLeft,className:"d-inline-block svg-container text-dark ".concat(k.arrow)}))),h&&s!==e.eventsOnDay.length-1&&r.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(k.right)},r.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),b((function(e){return e+1})),d.k.logUserAction({date:P(e.date),action:"next",eventCount:e.eventsOnDay.length},U)}},r.createElement(D.x,{svgName:O.vn.ChevronRight,className:"d-inline-block svg-container text-dark ".concat(k.arrow)}))),h&&r.createElement("div",{className:"d-flex ".concat(k.bottomBar," ").concat(h?"":k.bottomPlaceholder)},r.createElement(E,{sliderStep:s,sliderLength:e.eventsOnDay.length,size:"sm",className:"".concat(e.isHovering?"mb-2":"mb-1"),onSliderDotClick:function(t){b(t),d.k.logUserAction({date:P(e.date),action:"jump",eventCount:e.eventsOnDay.length},U)}}))))))}const S={cell:"nsEjO",multiEventCell:"vvFYj",fadeIn:"BX0cX"};function j(e){var t,n,o=r.useMemo((function(){var t,n,r,o;return(null===(t=e.hoveredEvent)||void 0===t?void 0:t.endDate)&&!a.O.isSame(e.date,null===(n=e.hoveredEvent)||void 0===n?void 0:n.startDate)&&a.O.isBetween(a.O.format(e.date,"YYYY-MM-DD"),null===(r=e.hoveredEvent)||void 0===r?void 0:r.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 r.createElement("div",{className:"".concat(S.cell," fw-semibold")},!e.hideDay&&r.createElement(u,{date:e.date,notCurrentMonth:e.notCurrentMonth}),o&&r.createElement("div",{style:{backgroundColor:i},className:S.multiEventCell}),(null===(n=e.eventsOnDay)||void 0===n?void 0:n.length)>0&&r.createElement(M,Object.assign({},e,{isMultiEventDate:o})))}},79878:(e,t,n)=>{n.d(t,{r:()=>u});var r=n(32735),a=n(23481),o=n(83914),i=n(64444),c=n(35223);const l={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function u(e){return r.createElement(i.u,{title:a.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(l.tooltip),spanHack:!0},r.createElement("div",{className:"d-flex text-dark align-items-center ".concat(l.tag," ").concat(e.className)},r.createElement(o.x,{svgName:c.vn.Timer}),!e.onlyIcon&&a.T.getPhrase(s,"comingSoon")))}},12324:(e,t,n)=>{n.d(t,{T:()=>a});var r=n(110),a={getDisplayDate:function(e,t){return t?e.slice(5,7)!==t.slice(5,7)?"".concat(r.O.format(e,"D MMM")," - ").concat(r.O.format(t,"D MMM")):"".concat(r.O.format(e,"D")," - ").concat(r.O.format(t,"D")," ").concat(r.O.format(e,"MMM")):r.O.format(e,"D MMM")},getEventsInMonth:function(e,t){return e.filter((function(e){return r.O.format(e.startDate,"YYYY-MM")===r.O.format(t,"YYYY-MM")}))},getOrdinalDate:function(e){return"".concat(r.O.getLocalDateOrdinal(r.O.get(e,"date"))," ").concat(r.O.format(e,"MMMM"))}}},6117:(e,t,n)=>{n.d(t,{f:()=>c});var r=n(39202),a=n(14292),o=n(97395);function i(e){return i="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},i(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),function(e,t,n){var r;return r=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==i(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{});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)),o._.safeUrlConcat(t,l)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[6138],{96138:(e,r,a)=>{a.r(r),a.d(r,{AccountSettingsView:()=>ue});var t,n=a(32735),s=a(70680),i=a(23481),o=a(20354),u=a(92582),l=a(65858),d=a(81886),c=a(75896),m=a(1048),p=a(66770);!function(e){e.Ok="Ok",e.UsernameRequired="UsernameRequired",e.EmailRequired="EmailRequired",e.FirstnameRequired="FirstnameRequired",e.SurnameRequired="SurnameRequired",e.YearGroupRequired="YearGroupRequired",e.EmailAlreadyExisted="EmailAlreadyExisted",e.UsernameAlreadyExisted="UsernameAlreadyExisted",e.UserTypeRequired="UserTypeRequired",e.MasterYearGroupRequired="MasterYearGroupRequired",e.EmptyUserEntity="EmptyUserEntity",e.CustomerIdRequired="CustomerIdRequired",e.CustomerNotFoundInOnline="CustomerNotFoundInOnline",e.EmailTooLong="EmailTooLong",e.UsernameTooLong="UsernameTooLong",e.FirstnameTooLong="FirstnameTooLong",e.SurnameTooLong="SurnameTooLong",e.EmailInvalid="EmailInvalid",e.EmailInUse="EmailInUse",e.UsernameInvalid="UsernameInvalid",e.PasswordTooShort="PasswordTooShort",e.EmailDuplicated="EmailDuplicated",e.UsernameDuplicated="UsernameDuplicated",e.DisplayNameTooLong="DisplayNameTooLong",e.DisplayNameTooShort="DisplayNameTooShort",e.UsernameTooShort="UsernameTooShort",e.FirstnameInvalid="FirstnameInvalid",e.SurnameInvalid="SurnameInvalid",e.UserTypeMismatch="UserTypeMismatch",e.UserCanBeAddedInCustomer="UserCanBeAddedInCustomer",e.UserCanBeCreated="UserCanBeCreated",e.CustomerFoundInOnline="CustomerFoundInOnline",e.UserInCustomerWithOnline="UserInCustomerWithOnline",e.InvalidUserStatus="InvalidUserStatus",e.UserAlreadyExistsInCustomer="UserAlreadyExistsInCustomer",e.Rostered="UserRostered"}(t||(t={}));var f=a(40424),h=a(76881),y=a(86613),v=a(2997);function g(e){return g="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},g(e)}function w(e,r,a){var t;return t=function(e,r){if("object"!=g(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var t=a.call(e,"string");if("object"!=g(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r),(r="symbol"==g(t)?t:t+"")in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var E="userManager.utils",b={active:f.w.Active.toLowerCase(),deactivated:f.w.Disabled.toLowerCase(),pending:f.w.Inactive.toLowerCase()},S={filterIdenticalEntries:function(e){var r=function(e){var r,a,t,n,s,i,o,u,l,d,c,m;return[null!==(a=null===(r=e.firstName)||void 0===r?void 0:r.trim())&&void 0!==a?a:"",null!==(n=null===(t=e.surname)||void 0===t?void 0:t.trim())&&void 0!==n?n:"",null!==(i=null===(s=e.masterYearGroup)||void 0===s?void 0:s.id)&&void 0!==i?i:"",null!==(l=null===(u=null===(o=e.username)||void 0===o?void 0:o.toLowerCase())||void 0===u?void 0:u.trim())&&void 0!==l?l:"",null!==(m=null===(c=null===(d=e.email)||void 0===d?void 0:d.toLowerCase())||void 0===c?void 0:c.trim())&&void 0!==m?m:""].join(":")};return e.filter((function(e,a,t){return a===t.findIndex((function(a){return r(a)===r(e)}))}))},getNewDuplicates:function(e){if(!e)return null;var r=[],a=[],n={};e.forEach((function(e){e.username?n[e.username]?n[e.username].push(e):n[e.username]=[e]:a.push(e)})),Object.keys(n).map((function(e){1!==n[e].length?r.push({errorCodes:[t.UsernameAlreadyExisted],users:n[e]}):a.push(n[e][0])}));var s={};return e.forEach((function(e){e.email&&(s[e.email]?s[e.email].push(e):s[e.email]=[e])})),Object.keys(s).map((function(e){if(1!==s[e].length){var a=c.m.first(s[e]).username;if(a&&1!==n[a].length){var i=r.findIndex((function(e){return c.m.first(e.users).username===a}));r[i].errorCodes.push(t.EmailAlreadyExisted)}else r.push({errorCodes:[t.EmailAlreadyExisted],users:s[e]})}})),r},formatCreateOrValidateUserRequest:function(e,r,a){return{users:e.map((function(e){var t={firstName:e.firstName,email:e.email,surname:e.surname,username:e.username,userType:r,customerId:a,masterRole:e.masterRole||y.i.User,requirePasswordChange:!1,generatePassword:!!e.generatePassword,password:e.password,displayName:e.displayName||null};return r===h.Y.Learner&&(t.masterYearGroup=e.masterYearGroup),t.username||delete t.username,t.password||delete t.password,t.password&&t.generatePassword&&(t.generatePassword=!1),e.userId&&(t.userId=e.userId),t}))}},formatEditUserRequest:function(e){return e.displayName||(e.displayName=null),e},formatDeleteRequest:function(e,r,a){var t={customerId:e};if(!r.length){var n=d.Q.Ab.DeserializeQueryParams(d.Q.Ab.GetCurrentQueryString().substring(1));n.query&&(t.searchQuery=n.query);var s=n.status&&(Array.isArray(n.status)?n.status:[n.status]);(null==s?void 0:s.length)&&(t.userStatuses=[],s.forEach((function(e){"active"===e&&t.userStatuses.push(f.w.Active),"deactivated"===e&&t.userStatuses.push(f.w.Disabled),"pending"===e&&t.userStatuses.push(f.w.Inactive)}))),n.yearGroup&&(t.yearGroupValues=Array.isArray(n.yearGroup)?n.yearGroup:[n.yearGroup])}return 1===Object.keys(t).length?t.userIds=r.map((function(e){return e.id})):t.userType=a,t},formatToggleStatusRequest:function(e,r,a){return{customerId:r,users:[{userId:e.id,status:a}]}},getErrorMessages:function(e,r,a,n){var s,o,u={},l=i.T.encloseNamespace("userManager.utils"),d=(w(w(w(w(w(w(w(w(w(w(s={},t.Ok,""),t.UsernameRequired,""),t.EmailRequired,l("emailRequired")),t.FirstnameRequired,l("nameRequired")),t.SurnameRequired,l("surnameRequired")),t.YearGroupRequired,l("yearGroupRequired")),t.EmailAlreadyExisted,l(a?"emailExistsShort":"emailExistsLong")),t.UsernameAlreadyExisted,l(a?"usernameExistsShort":"usernameExistsLong")),t.UserTypeRequired,""),t.MasterYearGroupRequired,l("yearGroupRequired")),w(w(w(w(w(w(w(w(w(w(s,t.EmptyUserEntity,""),t.CustomerIdRequired,""),t.CustomerNotFoundInOnline,""),t.EmailTooLong,l("emailExceeds")),t.UsernameTooLong,l("usernameExceeds")),t.FirstnameTooLong,l("nameExceeds")),t.SurnameTooLong,l("surnameExceeds")),t.EmailInvalid,l(a?"emailInvalidShort":"emailInvalidLong")),t.EmailInUse,l(a?"emailExistsShort":"emailExistsLong")),t.UsernameInvalid,l(a?"usernameInvalidShort":"usernameInvalidLong")),w(w(w(w(w(w(w(w(w(w(s,t.PasswordTooShort,l(a?"passwordTooShortShort":"passwordTooShortLong",{minLength:r})),t.EmailDuplicated,""),t.UsernameDuplicated,""),t.DisplayNameTooLong,l("displayNameExceeds")),t.DisplayNameTooShort,l("displayNameTooShort")),t.UsernameTooShort,l("usernameTooShort")),t.FirstnameInvalid,l("firstNameInvalid")),t.SurnameInvalid,l("surnameInvalid")),t.CustomerFoundInOnline,l("support")),t.UserInCustomerWithOnline,l("support")),w(w(w(w(w(w(s,t.InvalidUserStatus,l("support")),t.UserTypeMismatch,""),t.UserCanBeAddedInCustomer,""),t.UserCanBeCreated,""),t.UserAlreadyExistsInCustomer,""),t.Rostered,"")),c=(w(w(w(w(w(w(w(w(w(w(o={},t.Ok,""),t.UsernameRequired,""),t.EmailRequired,"email"),t.FirstnameRequired,"firstName"),t.SurnameRequired,"surname"),t.YearGroupRequired,"masterYearGroup"),t.EmailAlreadyExisted,"email"),t.UsernameAlreadyExisted,"username"),t.UserTypeRequired,""),t.MasterYearGroupRequired,"masterYearGroup"),w(w(w(w(w(w(w(w(w(w(o,t.EmptyUserEntity,""),t.CustomerIdRequired,""),t.CustomerNotFoundInOnline,""),t.EmailTooLong,"email"),t.UsernameTooLong,"username"),t.FirstnameTooLong,"firstName"),t.SurnameTooLong,"surname"),t.EmailInvalid,"email"),t.EmailInUse,"email"),t.UsernameInvalid,"username"),w(w(w(w(w(w(w(w(w(w(o,t.PasswordTooShort,"password"),t.EmailDuplicated,""),t.UsernameDuplicated,""),t.DisplayNameTooLong,"displayName"),t.DisplayNameTooShort,"displayName"),t.UsernameTooShort,"username"),t.FirstnameInvalid,"firstName"),t.SurnameInvalid,"surname"),t.UserTypeMismatch,"email"),t.UserCanBeAddedInCustomer,"email"),w(w(w(w(w(w(o,t.UserCanBeCreated,"email"),t.CustomerFoundInOnline,"email"),t.UserInCustomerWithOnline,"email"),t.InvalidUserStatus,"email"),t.UserAlreadyExistsInCustomer,"email"),t.Rostered,"email"));return e.forEach((function(e){var r,a,t,s,i=null!==(a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:d[e])&&void 0!==a?a:"";if(i){var o=c[e];o&&(u[o]=null!==(s=null===(t=null==n?void 0:n[e])||void 0===t?void 0:t[o])&&void 0!==s?s:i)}})),u},showEmptyState:function(e,r){var a;if(!e.data)return!1;var t=Object.keys(r).length;return!("results"in e.data)&&!t&&!(null===(a=e.data.data)||void 0===a?void 0:a.length)},getFilters:function(e,r){var a=[p.x$.SortBy(p.qr.getNameSortOptions())];return e===h.Y.Learner&&a.push(p.x$.YearGroup(p.qr.getYearGroupOptions(r))),a.push(p.x$.Status()),e===h.Y.Staff&&a.push(p.x$.IsAdmin()),a},getMinimumPasswordLength:function(e,r,a){var t;if(!e)return 8;var n=null===(t=e.securitySettings)||void 0===t?void 0:t.find((function(e){return e.userRole===a&&e.userType===r}));return n?n.minPasswordLength:a===y.i.Admin?e.defaultAdminMinPasswordLength:e.defaultMinPasswordLength},mapStatusParamsToValue:function(e){if(e){var r=function(e){switch(e){case"active":return f.w.Active;case"deactivated":return f.w.Disabled;case"pending":return f.w.Inactive}};return Array.isArray(e)?e.map(r):[r(e)]}},buildSearchData:function(e){var r=e.customerId,a=e.userId,t=e.userType,n=e.queryParams,s=void 0===n?{}:n,i=S.buildSearchFiltersData(r,t,s),o=S.buildSearchSortData(r,s);return{query:s.query,indices:["user"],searchType:"user",customerIdOverride:r,userId:a,customerId:r,filters:i,sorts:o}},buildSearchDataAndKey:function(e){var r=e.customerId,a=e.userId,t=e.userType,n=e.queryParams,s=e.cursor,i=S.buildSearchData({customerId:r,userId:a||"",userType:t,queryParams:n||{}});s&&(i.cursor=s);var o="search:users:".concat(s||"");return{key:o+=m.t.flattenObjectToString(i),data:i}},buildSearchParams:function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=S.buildSearchFiltersObject(e,r,a);return t=Object.keys(t).reduce((function(e,r){return e["".concat(v.w.FILTER_PARAM_PREFIX).concat(r)]=t[r],e}),{}),Object.assign({query:a.query,index:"user",customerIdOverride:e},t)},buildSearchSortData:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a={};if(r.sort)switch(r.sort){case"first-name-atoz":a.firstName="asc";break;case"first-name-ztoa":a.firstName="desc";break;case"surname-atoz":a.surname="asc";break;case"surname-ztoa":a.surname="desc";break;case"newest":a.userProfile={customerId:e,fieldOrders:{dateCreated:"desc"}};break;case"oldest":a.userProfile={customerId:e,fieldOrders:{dateCreated:"asc"}}}else a.userProfile={customerId:e,fieldOrders:{dateCreated:"desc"}};return a},buildSearchFiltersData:function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t={userType:r.toLowerCase()};return t.userProfile={customerId:e},"true"===a.isAdmin&&(t.userProfile.role=[y.i.Admin.toLowerCase()]),a.yearGroup&&(t.yearGroup={customerId:e},Array.isArray(a.yearGroup)?t.yearGroup.value=a.yearGroup:t.yearGroup.value=[a.yearGroup]),a.status&&(Array.isArray(a.status)?t.userProfile.status=a.status.map((function(e){return b[e]})):t.userProfile.status=[b[a.status]]),a.isAdmin&&(t.userProfile.role=[y.i.Admin.toLowerCase()]),t},buildSearchFiltersObject:function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t={userType:r.toLowerCase(),customerId:e.toString()};return"true"===a.isAdmin&&(t.userRole=y.i.Admin.toLowerCase()),a.yearGroup&&(Array.isArray(a.yearGroup)?t.yearGroup="".concat(a.yearGroup.join(",")):t.yearGroup=a.yearGroup),a.status&&(Array.isArray(a.status)?t.userProfileStatus=a.status.map((function(e){return b[e]})).join(","):t.userProfileStatus=b[a.status]),t},buildGetUsersQuery:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.yearGroup,t=void 0===a?"":a,n=r.status,s=void 0===n?"":n,i=r.isAdmin,o=void 0===i?"":i,u=r.sort,l=void 0===u?"newest":u,d=["usertype:".concat(e)];if(t&&(Array.isArray(t)?d.push("yeargroups.value:[".concat(t.join(","),"]")):d.push("yeargroups.value:".concat(t))),"true"===o&&d.push("userprofiles.role:".concat(y.i.Admin)),s&&(Array.isArray(s)?d.push("status:[".concat(s.map((function(e){return b[e]})).join(","),"]")):d.push("status:".concat(b[s]))),l)switch(l){case"first-name-atoz":d.push("orderby:name");break;case"first-name-ztoa":d.push("orderbydesc:name");break;case"surname-atoz":d.push("orderby:surname");break;case"surname-ztoa":d.push("orderbydesc:surname");break;case"newest":d.push("orderbydesc:timestamp");break;case"oldest":d.push("orderby:timestamp")}return"{".concat(d.join(","),"}avatar")},shouldDisplayAuthenticationMethods:function(e){var r;if(!(null==e?void 0:e.length))return!1;if(!(null===(r=c.m.first(e).authenticationMethods)||void 0===r?void 0:r.length))return!1;var a=e.find((function(e){var r;return!!(null===(r=e.authenticationMethods)||void 0===r?void 0:r.find((function(e){return!e.local})))}));return!!a},handleAsyncErrors:function(e,r,a,n){var s,o=null===(s=null==e?void 0:e[0])||void 0===s?void 0:s.errorCodes;if(!(null==o?void 0:o.length))return!0;var u={};return(o.includes(t.EmailAlreadyExisted)||o.includes(t.EmailInUse))&&(a&&a.email===r.email||(u.email=i.T.getPhrase(E,"emailExistsLong"))),o.includes(t.UsernameAlreadyExisted)&&(a&&a.username===r.username||(u.username=i.T.getPhrase(E,"usernameExistsLong"))),!Object.keys(u).length||(n({errors:u}),!1)}},C=a(86764),I=a(31949),P=a(55110),U=a(3747),T=a(92802),A=a(23201),N=a(1269),x=a(82644),q=a(83345),L=a(5173),R="settings.emailSettings",k=(0,L.Ry)().shape({email:(0,L.Z_)().required((function(){return i.T.getPhrase(R,"emailRequired")})).email((function(){return i.T.getPhrase(R,"emailInvalid")})).trim().default("")}),O=a(91967),D=a(64444),G=a(83914),j="d-inline-block svg-container",F="span";function M(e){var r=e.children,a=e.className,t=void 0===a?j:a,s=e.tagName,i=void 0===s?F:s,o=e.size,u=void 0===o?G.S.Standard:o,l=e.onClick,d=e.title,c=e.tooltipPlacement,m=void 0===c?"right":c,p=i,f={className:"".concat(t," svg-container ").concat(u),onClick:O.q.isFunction(l)?l:null};return d?n.createElement(D.u,{title:d,placement:m},n.createElement(p,Object.assign({},f),r)):n.createElement(p,Object.assign({},f),r)}function z(){return n.createElement(M,null,n.createElement("svg",{viewBox:"0 0 24 24"},n.createElement("path",{d:"M10.407 12.368l-1.22-1.22a.49.49 0 0 0-.698.004l-.583.583a.494.494 0 0 0-.004.697l2.135 2.135c.107.108.25.154.388.142a.488.488 0 0 0 .352-.143l4.362-4.362a.494.494 0 0 0-.004-.698l-.582-.582a.495.495 0 0 0-.698-.004l-3.448 3.448zm7.922-.37l1.437 1.406c.208.194.277.437.208.728a.716.716 0 0 1-.541.531l-1.957.5.551 1.936a.671.671 0 0 1-.197.729.671.671 0 0 1-.73.198l-1.935-.552-.5 1.957a.716.716 0 0 1-.53.541 1.28 1.28 0 0 1-.199.021.686.686 0 0 1-.53-.229L12 18.328l-1.405 1.436c-.195.208-.437.278-.729.208a.696.696 0 0 1-.53-.541l-.5-1.957-1.937.552a.671.671 0 0 1-.728-.198.671.671 0 0 1-.198-.729l.551-1.936-1.957-.5a.716.716 0 0 1-.54-.53c-.07-.292 0-.535.207-.73l1.437-1.405-1.437-1.405c-.208-.194-.277-.437-.208-.729a.716.716 0 0 1 .541-.53l1.957-.5-.551-1.936a.671.671 0 0 1 .198-.73.671.671 0 0 1 .728-.197l1.936.552.5-1.957a.675.675 0 0 1 .531-.531.671.671 0 0 1 .729.198L12 5.68l1.405-1.447a.697.697 0 0 1 .73-.198c.284.07.46.246.53.53l.5 1.958L17.1 5.97a.671.671 0 0 1 .729.198.671.671 0 0 1 .197.729l-.551 1.936 1.957.5a.715.715 0 0 1 .541.53c.07.292 0 .535-.208.73l-1.437 1.404z"})))}function Y(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,t=new Array(r);a<r;a++)t[a]=e[a];return t}var B="settings.emailSettings",W=i.T.encloseNamespace(B);function V(e){var r,a,t=(0,U.a)(C.r.MDDown),s=(r=n.useState(!t),a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,n,s,i,o=[],u=!0,l=!1;try{if(s=(a=a.call(e)).next,0===r){if(Object(a)!==a)return;u=!1}else for(;!(u=(t=s.call(a)).done)&&(o.push(t.value),o.length!==r);u=!0);}catch(e){l=!0,n=e}finally{try{if(!u&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(l)throw n}}return o}}(r,a)||function(e,r){if(e){if("string"==typeof e)return Y(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Y(e,r):void 0}}(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=s[0],o=s[1],u=e.currentUser.emailVerified;return n.useEffect((function(){t||i||o(!0)}),[t,i]),n.createElement(q.D.Provider,{value:B},n.createElement("h2",{className:"h4 d-flex align-items-center"},n.createElement(q.x,{phrase:"heading"}),u&&n.createElement("span",{className:"font-size-normal fw-semibold text-primary d-flex align-items-center mb-0 ms-2"},n.createElement(q.x,{phrase:"verified"}),n.createElement(z,null))),u&&n.createElement("p",null,n.createElement(q.x,{phrase:"info",options:{email:e.currentUser.email}})),i?n.createElement(x.n,{initialValues:{email:e.currentUser.email||""},onSubmit:e.onChangeEmail,validationSchema:k},n.createElement(T.l0,null,n.createElement(N.W,{className:"w-75",name:"email",placeholder:W("emailPlaceholder"),autoComplete:"email"}),n.createElement("div",{className:"d-flex justify-content-end w-75 ".concat(t?"ms-n2":"")},t&&n.createElement("button",{type:"button",className:"btn btn-link me-2",onClick:function(){return o(!1)}},n.createElement(q.x,{phrase:"cancel"})),n.createElement(A.A,{isNew:!1,submitText:W(u?"updateEmail":"verifyEmail"),variant:u?"outline-dark":"dark"})))):n.createElement(n.Fragment,null,n.createElement("div",{className:"d-flex"},n.createElement("button",{className:"btn btn-outline-dark me-2",onClick:function(){return o(!0)}},n.createElement(q.x,{phrase:"change"})))),n.createElement("p",{className:"mb-0 mt-2"},n.createElement(q.x,{phrase:"note"})))}const _={partialLabel:"aKssR",partialInfo:"ZrKZk",partialInput:"Lvn15",partialSubmit:"TActD",partialNote:"pqp7j"};function Z(){return n.createElement("div",{className:"w-50"},n.createElement("div",{className:"partial-loading-background mb-2 ".concat(_.partialLabel)}),n.createElement("div",{className:"partial-loading-background ".concat(_.partialInfo)}),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"partial-loading-background ".concat(_.partialInput)})),n.createElement("div",{className:"partial-loading-background ".concat(_.partialSubmit)}),n.createElement("div",{className:"partial-loading-background mt-2 ".concat(_.partialNote)}))}var Q="shared.changePasswordForm",$=i.T.encloseNamespace(Q);function K(e){var r=(0,T.u6)();return n.createElement(T.l0,null,!e.hideCurrentPassword&&n.createElement(N.W,{className:e.inputWidthClass,name:"currentPassword",label:$("currentPassword"),placeholder:$("currentPasswordPlaceholder"),type:"password",autoComplete:"current-password",showRequiredStar:!0}),n.createElement(N.W,{className:e.inputWidthClass,name:"newPassword",label:$("newPassword"),placeholder:$("newPasswordPlaceholder"),type:"password",autoComplete:"new-password",showRequiredStar:!0}),n.createElement(N.W,{className:e.inputWidthClass,name:"confirmPassword",label:$("confirmPassword"),placeholder:$("confirmPasswordPlaceholder"),type:"password",autoComplete:"off",showRequiredStar:!0}),e.showChangeOnNextLogin&&n.createElement(N.W,{id:"changeOnNextLogin",name:"changeOnNextLogin",label:$("changeOnNextLogin"),type:"checkbox",checked:r.values.changeOnNextLogin,checkboxLabelFontWeight:"normal"}),!e.hideButtons&&n.createElement("div",{className:e.buttonContainerClass},!e.hideCancelButton&&!!e.onClickCancel&&n.createElement("button",{type:"button",className:"btn btn-link me-2 ".concat("lg"===e.buttonSize?"btn-lg":""),onClick:e.onClickCancel},n.createElement(q.x,{namespace:Q,phrase:"cancel"})),n.createElement(A.A,{isNew:!1,submitText:e.submitText||$("save"),variant:e.submitVariant,size:e.buttonSize})))}K.defaultProps={submitVariant:"outline-dark",buttonContainerClass:"btn-container d-flex justify-content-end align-items-center",inputWidthClass:"w-100"};var H=i.T.encloseNamespace("settings.passwordSettings"),J=function(e){return(0,L.Ry)().shape({currentPassword:(0,L.Z_)().required((function(){return H("currentPasswordRequired")})).trim().default(""),newPassword:(0,L.Z_)().required((function(){return H("newPasswordRequired")})).min(e,(function(){return H("newPasswordMinLength",{minLen:e})})).trim().default(""),confirmPassword:(0,L.Z_)().required((function(){return H("confirmPasswordRequired")})).oneOf([(0,L.iH)("newPassword"),null],(function(){return H("passwordsDontMatch")})).trim().default("")})};function X(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,t=new Array(r);a<r;a++)t[a]=e[a];return t}var ee="settings.passwordSettings",re={currentPassword:"",newPassword:"",confirmPassword:""};function ae(e){var r,a,t=(0,U.a)(C.r.MDDown),s=(r=n.useState(!t),a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,n,s,i,o=[],u=!0,l=!1;try{if(s=(a=a.call(e)).next,0===r){if(Object(a)!==a)return;u=!1}else for(;!(u=(t=s.call(a)).done)&&(o.push(t.value),o.length!==r);u=!0);}catch(e){l=!0,n=e}finally{try{if(!u&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(l)throw n}}return o}}(r,a)||function(e,r){if(e){if("string"==typeof e)return X(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?X(e,r):void 0}}(r,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.")}()),o=s[0],u=s[1];return n.useEffect((function(){t||o||u(!0)}),[t,o]),n.createElement(q.D.Provider,{value:ee},n.createElement("h2",{className:"h4"},n.createElement(q.x,{phrase:"heading"})),o?n.createElement(n.Fragment,null,n.createElement("p",null,n.createElement(q.x,{phrase:"info"})),n.createElement(x.n,{initialValues:re,onSubmit:function(r,a){e.onChangePassword(r,a,(function(){return a({reset:!0})}))},validationSchema:J(e.minPasswordLength)},n.createElement(K,{onClickCancel:function(){return u(!1)},hideCancelButton:!t,submitText:i.T.getPhrase(ee,"savePassword"),buttonContainerClass:t?"d-flex justify-content-end ms-n2 w-75":"d-flex justify-content-end w-75",inputWidthClass:"w-75"}))):n.createElement("button",{className:"btn btn-outline-dark ",onClick:function(){return u(!0)}},n.createElement(q.x,{phrase:"change"})))}var te=a(81803),ne=a(99940),se={getCustomerSecuritySettings:function(e,r,a){return{url:"{gateway}/v1/customers/".concat(e,"/settings/security"),key:"customers:security:settings",normalize:!1,success:r,error:a}},setCustomerSecuritySettings:function(e,r,a,t){return{url:"{gateway}/v1/customers/".concat(e,"/settings/security"),key:"update:security:settings",invalidationKeys:"customers:security:settings",type:ne.k.PUT,normalize:!1,data:r,success:a,error:t}}},ie=a(68192),oe=i.T.encloseNamespace("settings.accountSettings");function ue(){var e,r=(0,s.I0)(),a=(0,P.Z)(),t=(0,U.a)(C.r.MDDown),i=o.a.useBasicFetch(I.N.currentUser()),d=o.a.useBasicFetch(i.data&&ie.N.getUser(i.data.id)),c=o.a.useBasicFetch(i.data&&se.getCustomerSecuritySettings(i.data.customerId)),m=S.getMinimumPasswordLength(c.data,null===(e=d.data)||void 0===e?void 0:e.userType,i.data.role);return n.createElement(te.d,{heading:oe("heading"),breadcrumbs:[oe("breadcrumb")]},n.createElement("div",{className:t?"w-100":"w-50"},i.data?n.createElement(V,{currentUser:i.data,onChangeEmail:function(e,t){o.a.fetch(r,ie.N.changeEmail(e.email,(function(){u.k.logUserAction({id:i.data.id,oldEmail:i.data.email,newEmail:e.email},{actionType:l.Vw.VerifyEmail,entity:l.py.User,location:l.LZ.Settings,workflowPhase:l.eu.Start}),a.success(oe("changeEmailRequestSuccess",{email:e.email,escapeText:!0}))}),(function(){a.error(oe("changeEmailRequestError"))}),t))}}):n.createElement(Z,null)),n.createElement("hr",null),n.createElement("div",{className:t?"w-100":"w-50"},c.data&&n.createElement(ae,{onChangePassword:function(e,t,n){o.a.fetch(r,ie.N.changePassword(e,(function(){u.k.logUserAction({id:i.data.id,oldPassword:e.currentPassword,newPassword:e.newPassword},{actionType:l.Vw.ChangePassword,entity:l.py.User,location:l.LZ.Settings,workflowPhase:l.eu.Complete}),a.success(oe("changePasswordSuccess")),n()}),(function(e){var r=e.responseJSON;console.log(r),"user.password-too-short"===r.errorCode?a.error(oe("changePasswordRequirementsError")):"user.invalid-password"===r.errorCode?a.error(oe("changePasswordInvalid")):"user.same-password"===r.errorCode?a.error(oe("changePasswordSame")):"user.locked-out"===r.errorCode?a.error(oe("changePasswordLockedOut")):a.error(oe("changePasswordError"))}),t))},minPasswordLength:m})))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[6284],{66869:(e,t,a)=>{a.d(t,{B:()=>u});var n=a(32735),i=a(23481),c=a(65858),r=a(57408);const s={seeMore:"yv0FS"};var o=i.T.encloseNamespace("shared.widgetHeader");function l(e){return n.createElement("div",{className:"ms-3 ".concat(s.seeMore)},n.createElement(r.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{descriptor:c._S.SeeMore}),className:"text-decoration-none ".concat(e.appLink?"curated-widget-link":"")},n.createElement("p",{className:"hover-text-underline text-dark curated-widget-heading"},o("seeMore"))))}function u(e){var t=!!e.description;return e.name||e.description?n.createElement("div",{className:"curated-widget-header"},n.createElement("div",{className:"d-flex justify-content-between"},!!e.name&&n.createElement("div",{className:s.title},n.createElement(r.F,{appLink:e.appLink,analyticsOptions:e.analyticsOptions,analyticsData:e.analyticsData,className:"text-decoration-none ".concat(e.appLink?"curated-widget-link":"")},n.createElement("h2",{className:"h4 curated-widget-heading"},e.name))),!!e.appLink&&!t&&!!e.showSeeMoreLink&&n.createElement(l,Object.assign({},e))),t&&n.createElement("div",{className:"d-flex justify-content-between align-items-end"},n.createElement("p",{className:"description curated-widget-description ".concat(s.description)},n.createElement("span",{className:"clamp-2"},e.description)),!!e.appLink&&!!e.showSeeMoreLink&&n.createElement(l,Object.assign({},e)))):n.createElement(n.Fragment,null)}},43872:(e,t,a)=>{a.d(t,{V:()=>u});var n=a(32735),i=a(82182),c=a(31069),r=a(91967),s=new Image;s.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var o=function(e){e.dataTransfer.setDragImage&&r.q.isFunction(e.dataTransfer.setDragImage)&&e.dataTransfer.setDragImage(s,0,0)},l=i.V.isTouchScreen(),u=n.forwardRef((function(e,t){var a,i,r,s,u=e.children,p=e.positionType,d=e.onDrag,m=e.onDragEnd,v=e.onTouchMove,f=e.onTouchEnd,b=e.percentageDragged,y=e.position,g=void 0===y?0:y;return n.createElement("div",Object.assign({className:"d-flex flex-nowrap position-relative w-100",style:(i=g,r=p,s=b,r===c.C.Percentage&&s&&(i-=s),{transform:"translate3d(".concat(i).concat(r,", 0px, 0px)"),transition:"transform .4s ease-in-out"}),ref:t},(a={},d&&m&&(a.draggable=!0,a.onDragEnd=m,a.onDragStart=o,a.onDragOver=d),v&&f&&l&&(a.onTouchMoveCapture=v,a.onTouchEndCapture=f),a)),u)}))},53855:(e,t,a)=>{a.d(t,{W:()=>l,f:()=>o});var n=a(32735),i=a(83914),c=a(35223);const r="VSAPU",s="kgeXh";var o;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(o||(o={}));var l=n.memo((function(e){var t,a,l,u=e.direction===o.Left,p=u?c.vn.ChevronLeft:c.vn.ChevronRight;return e.hide?n.createElement(n.Fragment,null):n.createElement("div",{className:"_ejId",style:"videos"===(null===(a=e.state)||void 0===a?void 0:a.contents)?{paddingBottom:56.25/(null===(l=e.state)||void 0===l?void 0:l.viewableItems)+"%"}:{height:"100%"}},e.useGradientBackdrop&&n.createElement("div",{className:u?"".concat("Pt3nx"," ").concat(e.leftGradientClassName):"".concat("ZuAif"," ").concat(e.rightGradientClassName)}),!e.hideExtendedClickableArea&&n.createElement("div",{role:"button",onClick:e.onClick,className:"".concat("AtsWP"," ").concat(u?r:s)}),n.createElement("div",{role:"button",className:"".concat((t="BVcIS",t+=u?" ".concat(r," ").concat(e.leftButtonClassName):" ".concat(s," ").concat(e.rightButtonClassName))," ").concat("gAsE9"," ").concat(e.className||""),onClick:e.onClick},e.hoverText&&n.createElement("span",{className:"ps-3 pe-2 ".concat("APA36")},e.hoverText),n.createElement(i.x,{svgName:p,size:i.S.Medium,className:"svg-container d-inline-block ".concat("Ev4hr")})))}))},31069:(e,t,a)=>{var n;a.d(t,{C:()=>n}),function(e){e.Percentage="%",e.Pixels="px"}(n||(n={}))},10841:(e,t,a)=>{var n;a.d(t,{n:()=>n}),function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag",e.Update="update",e.JumpToIndex="jump-to-index"}(n||(n={}))},21750:(e,t,a)=>{a.d(t,{x:()=>p});var n,i=a(97395),c=a(75896);!function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos",e.PinnedVideos="pinnedVideos"}(n||(n={}));var r=a(62803),s=a(78417),o=a(25925);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var u=function(e){return"subjectpresentationaudiences.id:[".concat(e.join(","),"]")},p={topicsFromAllAvailablePresentations:function(e){var t={filterType:"topics",presentationId:e};return{url:i._.urlBuilder("{gateway}/v1/search/filters",t),publicUrl:i._.urlBuilder("/api/search/filters",t),key:"classification:availableTopics",normalize:!1}},availablePresentations:function(e){var t={type:null==e?void 0:e.toLowerCase()};return{url:i._.urlBuilder("/api/domain/v1/subjects/presentations/available",t),publicUrl:i._.urlBuilder("/api/subjects/presentations/available",t),key:"available:presentations:".concat(e),normalizeOptions:{namespace:"presentation"}}},topLevelTopics:function(e){var t={query:r.v.CLASSIFICATION_COLLECTION,sort:"alphabetical"};return{url:i._.urlBuilder("/api/domain/v1/subjects/presentations/".concat(e,"/classifications"),t),publicUrl:i._.urlBuilder("/api/subjects/presentations/".concat(e,"/classifications"),t),key:"presentation:".concat(e,":classifications")}},presentationById:function(e){return{url:"/api/domain/v1/subjects/presentations/".concat(e),publicUrl:"/api/subjects/presentations/".concat(e),key:"presentation:".concat(e)}},presentationBySlug:function(e,t,a){var n={type:a.toLowerCase(),contentRegion:t};return{url:i._.urlBuilder("/api/subjects/presentations/".concat(e),n),publicUrl:i._.urlBuilder("/api/subjects/presentations/".concat(e),n),key:"current:presentation:".concat(a.toLowerCase(),":").concat(t,":").concat(null!=e?e:""),bootstrapName:"presentation",normalizeOptions:{namespace:"presentation"}}},presentation:function(e,t){var a={type:null==e?void 0:e.toLowerCase()};return{url:i._.urlBuilder("/api/domain/v1/subjects/presentations",a),publicUrl:i._.urlBuilder("/api/subjects/presentations/".concat(t),a),key:"current:presentation".concat(e?":".concat(e.toLowerCase()):"").concat(t?":".concat(t):""),normalizeOptions:{namespace:"presentation"}}},classifications:function(){return{url:i._.urlBuilder("/api/domain/v1/subjects",{query:r.v.CLASSIFICATION_COLLECTION,type:o.R.Subject.toLowerCase()}),publicUrl:i._.urlBuilder("/api/subjects/classifications",{query:r.t.CLASSIFICATION_COLLECTION,type:o.R.Subject.toLowerCase()}),key:"classifications"}},classification:function(e,t,a){return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e),{query:r.v.CLASSIFICATION(t)}),publicUrl:i._.urlBuilder("/api/subjects/classifications/".concat(e),{query:r.t.CLASSIFICATION}),key:"classification:".concat(e),error:a}},path:function(e,t){var a={type:t};return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/path"),a),publicUrl:"/api/subjects/classifications/".concat(e,"/path"),key:"classification:".concat(e,":path")}},children:function(e){return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/children"),{query:r.v.CLASSIFICATION_COLLECTION}),publicUrl:i._.urlBuilder("/api/subjects/classifications/".concat(e,"/children"),{query:r.t.CLASSIFICATION_COLLECTION}),key:"classification:".concat(e,":children")}},videos:function(e,t,a){if(t){var c="limit:100,orderbydesc:timestamp";a.length&&(c+=",".concat(u(a)));var r={query:"{".concat(c,"}(videoCollection),subjectpresentationaudiences{presentationId:").concat(t,"}"),permissionFilterOption:s.r.StripMetadata};return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/").concat(n.PinnedVideos),r),publicUrl:i._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(n.PinnedVideos),r),key:"classification:".concat(e,":").concat(n.PinnedVideos,":").concat(a.join(":"))}}},playlists:function(e,t,a){if(t){var c="limit:100,orderby:name";a.length&&(c+=",".concat(u(a)));var o={query:"{".concat(c,"}").concat(r.v.PLAYLIST_COLLECTION)+",subjectpresentationaudiences{presentationId:".concat(t,"}"),permissionFilterOption:s.r.StripMetadata};return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/").concat(n.Playlists),o),publicUrl:i._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(n.Playlists),o),key:"classification:".concat(e,":").concat(n.Playlists,":").concat(a.join(":")),formatData:function(e){var t;if(e)return Object.assign(Object.assign({},e),{data:null===(t=e.data)||void 0===t?void 0:t.filter((function(e){var t;return null===(t=e.cover)||void 0===t?void 0:t.url}))})}}}},series:function(e,t,a){if(t){var c="limit:100";a.length&&(c+=",".concat(u(a)));var o={query:"{".concat(c,"}").concat(r.v.SERIES)+",subjectpresentationaudiences{presentationId:".concat(t,"}"),permissionFilterOption:s.r.StripMetadata};return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/").concat(n.Series),o),publicUrl:i._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(n.Series),o),key:"classification:".concat(e,":").concat(n.Series,":").concat(a.join(":")),formatData:function(e){var t;if(e)return Object.assign(Object.assign({},e),{data:null===(t=e.data)||void 0===t?void 0:t.filter((function(e){var t;return null===(t=e.tallPoster)||void 0===t?void 0:t.url}))})}}}},curriculumLinks:function(e,t){return{url:i._.urlBuilder("/api/domain/v1/subjects/objects/".concat(e,"/classifications/paths"),{type:o.R.Curriculum.toLowerCase()}),publicUrl:i._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:o.R.Curriculum.toLowerCase()}),key:"curriculum:links:".concat(e,":").concat(t),normalize:!1}},checkAllCurriculumsLinks:function(e,t,a){var n={type:o.R.Curriculum.toLowerCase()};return{url:i._.urlBuilder("/api/domain/v1/subjects/objects/".concat(e,"/presentations"),n),publicUrl:i._.urlBuilder("/api/subjects/".concat(e,"/presentations"),Object.assign(Object.assign({},n),{pid:t})),key:"check:all:curriculums:links:".concat(e),success:a}},hasCurriculumLinks:function(e,t,a,n){var r=c.m.uniq(e).sort(),s=c.m.uniq(t).sort(),u={type:o.R.Curriculum.toLowerCase(),objectId:r};return(null==t?void 0:t.length)&&(u.presentationId=s),{url:i._.urlBuilder("/api/domain/v1/subjects/presentations/objects",u),publicUrl:i._.urlBuilder("/api/subjects/presentations/objects/exists",u),key:"has:curriculum:links:".concat(r.join(":"),":").concat(s.join(":")),normalizeOptions:{namespace:a},formatData:function(e){return Object.entries(e).map((function(e){var t,a,n=(a=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,i,c,r,s=[],o=!0,l=!1;try{if(c=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=c.call(a)).done)&&(s.push(n.value),s.length!==t);o=!0);}catch(e){l=!0,i=e}finally{try{if(!o&&null!=a.return&&(r=a.return(),Object(r)!==r))return}finally{if(l)throw i}}return s}}(t,a)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?l(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return{id:n[0],_hasCurriculumLinks:n[1]}}))},success:n}},regionAlternatives:function(e,t,a,n){return{url:"/api/subjects/classifications/".concat(e,"/region-alternatives"),publicUrl:"/api/subjects/classifications/".concat(e,"/region-alternatives"),key:"classification:regionAlternatives:".concat(e),normalize:!1,success:t,error:a,always:n}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[6367],{59049:(e,t,s)=>{const n=s(65401),{defaults:r}=s(88104),{inline:i}=s(42611),{findClosingBracket:l,escape:a}=s(26567);e.exports=class e{constructor(e,t){if(this.options=t||r,this.links=e,this.rules=i.normal,this.options.renderer=this.options.renderer||new n,this.renderer=this.options.renderer,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=i.pedantic:this.options.gfm&&(this.options.breaks?this.rules=i.breaks:this.rules=i.gfm)}static get rules(){return i}static output(t,s,n){return new e(s,n).output(t)}output(t){let s,n,r,i,o,h,c="";for(;t;)if(o=this.rules.escape.exec(t))t=t.substring(o[0].length),c+=a(o[1]);else if(o=this.rules.tag.exec(t))!this.inLink&&/^<a /i.test(o[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(o[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.inRawBlock=!1),t=t.substring(o[0].length),c+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):a(o[0]):o[0];else if(o=this.rules.link.exec(t)){const n=l(o[2],"()");if(n>-1){const e=(0===o[0].indexOf("!")?5:4)+o[1].length+n;o[2]=o[2].substring(0,n),o[0]=o[0].substring(0,e).trim(),o[3]=""}t=t.substring(o[0].length),this.inLink=!0,r=o[2],this.options.pedantic?(s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r),s?(r=s[1],i=s[3]):i=""):i=o[3]?o[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),c+=this.outputLink(o,{href:e.escapes(r),title:e.escapes(i)}),this.inLink=!1}else if((o=this.rules.reflink.exec(t))||(o=this.rules.nolink.exec(t))){if(t=t.substring(o[0].length),s=(o[2]||o[1]).replace(/\s+/g," "),s=this.links[s.toLowerCase()],!s||!s.href){c+=o[0].charAt(0),t=o[0].substring(1)+t;continue}this.inLink=!0,c+=this.outputLink(o,s),this.inLink=!1}else if(o=this.rules.strong.exec(t))t=t.substring(o[0].length),c+=this.renderer.strong(this.output(o[4]||o[3]||o[2]||o[1]));else if(o=this.rules.em.exec(t))t=t.substring(o[0].length),c+=this.renderer.em(this.output(o[6]||o[5]||o[4]||o[3]||o[2]||o[1]));else if(o=this.rules.code.exec(t))t=t.substring(o[0].length),c+=this.renderer.codespan(a(o[2].trim(),!0));else if(o=this.rules.br.exec(t))t=t.substring(o[0].length),c+=this.renderer.br();else if(o=this.rules.del.exec(t))t=t.substring(o[0].length),c+=this.renderer.del(this.output(o[1]));else if(o=this.rules.autolink.exec(t))t=t.substring(o[0].length),"@"===o[2]?(n=a(this.mangle(o[1])),r="mailto:"+n):(n=a(o[1]),r=n),c+=this.renderer.link(r,null,n);else if(this.inLink||!(o=this.rules.url.exec(t))){if(o=this.rules.text.exec(t))t=t.substring(o[0].length),this.inRawBlock?c+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):a(o[0]):o[0]):c+=this.renderer.text(a(this.smartypants(o[0])));else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0))}else{if("@"===o[2])n=a(o[0]),r="mailto:"+n;else{do{h=o[0],o[0]=this.rules._backpedal.exec(o[0])[0]}while(h!==o[0]);n=a(o[0]),r="www."===o[1]?"http://"+n:n}t=t.substring(o[0].length),c+=this.renderer.link(r,null,n)}return c}static escapes(t){return t?t.replace(e.rules._escapes,"$1"):t}outputLink(e,t){const s=t.href,n=t.title?a(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(s,n,this.output(e[1])):this.renderer.image(s,n,a(e[1]))}smartypants(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e}mangle(e){if(!this.options.mangle)return e;const t=e.length;let s,n="",r=0;for(;r<t;r++)s=e.charCodeAt(r),Math.random()>.5&&(s="x"+s.toString(16)),n+="&#"+s+";";return n}}},88337:(e,t,s)=>{const{defaults:n}=s(88104),{block:r}=s(42611),{rtrim:i,splitCells:l,escape:a}=s(26567);e.exports=class e{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||n,this.rules=r.normal,this.options.pedantic?this.rules=r.pedantic:this.options.gfm&&(this.rules=r.gfm)}static get rules(){return r}static lex(t,s){return new e(s).lex(t)}lex(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.token(e,!0)}token(e,t){let s,n,o,h,c,p,u,g,d,f,k,m,b,x,_,w;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e)){const t=this.tokens[this.tokens.length-1];e=e.substring(o[0].length),t&&"paragraph"===t.type?t.text+="\n"+o[0].trimRight():(o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?o:i(o,"\n")}))}else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2]?o[2].trim():o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if((o=this.rules.nptable.exec(e))&&(p={type:"table",header:l(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]},p.header.length===p.align.length)){for(e=e.substring(o[0].length),k=0;k<p.align.length;k++)/^ *-+: *$/.test(p.align[k])?p.align[k]="right":/^ *:-+: *$/.test(p.align[k])?p.align[k]="center":/^ *:-+ *$/.test(p.align[k])?p.align[k]="left":p.align[k]=null;for(k=0;k<p.cells.length;k++)p.cells[k]=l(p.cells[k],p.header.length);this.tokens.push(p)}else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),h=o[2],x=h.length>1,u={type:"list_start",ordered:x,start:x?+h:"",loose:!1},this.tokens.push(u),o=o[0].match(this.rules.item),g=[],s=!1,b=o.length,k=0;k<b;k++)p=o[k],f=p.length,p=p.replace(/^ *([*+-]|\d+\.) */,""),~p.indexOf("\n ")&&(f-=p.length,p=this.options.pedantic?p.replace(/^ {1,4}/gm,""):p.replace(new RegExp("^ {1,"+f+"}","gm"),"")),k!==b-1&&(c=r.bullet.exec(o[k+1])[0],(h.length>1?1===c.length:c.length>1||this.options.smartLists&&c!==h)&&(e=o.slice(k+1).join("\n")+e,k=b-1)),n=s||/\n\n(?!\s*$)/.test(p),k!==b-1&&(s="\n"===p.charAt(p.length-1),n||(n=s)),n&&(u.loose=!0),_=/^\[[ xX]\] /.test(p),w=void 0,_&&(w=" "!==p[1],p=p.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:_,checked:w,loose:n},g.push(d),this.tokens.push(d),this.token(p,!1),this.tokens.push({type:"list_item_end"});if(u.loose)for(b=g.length,k=0;k<b;k++)g[k].loose=!0;this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):a(o[0]):o[0]});else if(t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),o[3]&&(o[3]=o[3].substring(1,o[3].length-1)),m=o[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[m]||(this.tokens.links[m]={href:o[2],title:o[3]});else if((o=this.rules.table.exec(e))&&(p={type:"table",header:l(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]},p.header.length===p.align.length)){for(e=e.substring(o[0].length),k=0;k<p.align.length;k++)/^ *-+: *$/.test(p.align[k])?p.align[k]="right":/^ *:-+: *$/.test(p.align[k])?p.align[k]="center":/^ *:-+ *$/.test(p.align[k])?p.align[k]="left":p.align[k]=null;for(k=0;k<p.cells.length;k++)p.cells[k]=l(p.cells[k].replace(/^ *\| *| *\| *$/g,""),p.header.length);this.tokens.push(p)}else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2].charAt(0)?1:2,text:o[1]});else if(t&&(o=this.rules.paragraph.exec(e)))e=e.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens}}},56920:(e,t,s)=>{const n=s(65401),r=s(89791),i=s(59049),l=s(737),{defaults:a}=s(88104),{merge:o,unescape:h}=s(26567);e.exports=class e{constructor(e){this.tokens=[],this.token=null,this.options=e||a,this.options.renderer=this.options.renderer||new n,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new r}static parse(t,s){return new e(s).parse(t)}parse(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,o({},this.options,{renderer:new l})),this.tokens=e.reverse();let t="";for(;this.next();)t+=this.tok();return t}next(){return this.token=this.tokens.pop(),this.token}peek(){return this.tokens[this.tokens.length-1]||0}parseText(){let e=this.token.text;for(;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)}tok(){let e="";switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,h(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{let t,s,n,r,i="";for(n="",t=0;t<this.token.header.length;t++)n+=this.renderer.tablecell(this.inline.output(this.token.header[t]),{header:!0,align:this.token.align[t]});for(i+=this.renderer.tablerow(n),t=0;t<this.token.cells.length;t++){for(s=this.token.cells[t],n="",r=0;r<s.length;r++)n+=this.renderer.tablecell(this.inline.output(s[r]),{header:!1,align:this.token.align[r]});e+=this.renderer.tablerow(n)}return this.renderer.table(i,e)}case"blockquote_start":for(e="";"blockquote_end"!==this.next().type;)e+=this.tok();return this.renderer.blockquote(e);case"list_start":{e="";const t=this.token.ordered,s=this.token.start;for(;"list_end"!==this.next().type;)e+=this.tok();return this.renderer.list(e,t,s)}case"list_item_start":{e="";const t=this.token.loose,s=this.token.checked,n=this.token.task;if(this.token.task)if(t)if("text"===this.peek().type){const e=this.peek();e.text=this.renderer.checkbox(s)+" "+e.text}else this.tokens.push({type:"text",text:this.renderer.checkbox(s)});else e+=this.renderer.checkbox(s);for(;"list_item_end"!==this.next().type;)e+=t||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(e,n,s)}case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:{const e='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(e);console.log(e)}}}}},65401:(e,t,s)=>{const{defaults:n}=s(88104),{cleanUrl:r,escape:i}=s(26567);e.exports=class{constructor(e){this.options=e||n}code(e,t,s){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,n);null!=t&&t!==e&&(s=!0,e=t)}return n?'<pre><code class="'+this.options.langPrefix+i(n,!0)+'">'+(s?e:i(e,!0))+"</code></pre>\n":"<pre><code>"+(s?e:i(e,!0))+"</code></pre>"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,s,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.slug(s)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,s){const n=t?"ol":"ul";return"<"+n+(t&&1!==s?' start="'+s+'"':"")+">\n"+e+"</"+n+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const s=t.header?"th":"td";return(t.align?"<"+s+' align="'+t.align+'">':"<"+s+">")+e+"</"+s+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,s){if(null===(e=r(this.options.sanitize,this.options.baseUrl,e)))return s;let n='<a href="'+i(e)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+s+"</a>",n}image(e,t,s){if(null===(e=r(this.options.sanitize,this.options.baseUrl,e)))return s;let n='<img src="'+e+'" alt="'+s+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">",n}text(e){return e}}},89791:e=>{e.exports=class{constructor(){this.seen={}}slug(e){let t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){const e=t;do{this.seen[e]++,t=e+"-"+this.seen[e]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t}}},737:e=>{e.exports=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}text(e){return e}link(e,t,s){return""+s}image(e,t,s){return""+s}br(){return""}}},88104:e=>{e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1},getDefaults:function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},changeDefaults:function(t){e.exports.defaults=t}}},26567:e=>{const t=/[&<>"']/,s=/[&<>"']/g,n=/[<>"']|&(?!#?\w+;)/,r=/[<>"']|&(?!#?\w+;)/g,i={"&":"&","<":"<",">":">",'"':""","'":"'"},l=e=>i[e],a=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function o(e){return e.replace(a,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const h=/(^|[^\[])\^/g,c=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,u={},g=/^[^:]+:\/*[^/]*$/,d=/^([^:]+:)[\s\S]*$/,f=/^([^:]+:\/*[^/]*)[\s\S]*$/;function k(e,t){u[" "+e]||(g.test(e)?u[" "+e]=e+"/":u[" "+e]=m(e,"/",!0));const s=-1===(e=u[" "+e]).indexOf(":");return"//"===t.substring(0,2)?s?t:e.replace(d,"$1")+t:"/"===t.charAt(0)?s?t:e.replace(f,"$1")+t:e+t}function m(e,t,s){const n=e.length;if(0===n)return"";let r=0;for(;r<n;){const i=e.charAt(n-r-1);if(i!==t||s){if(i===t||!s)break;r++}else r++}return e.substr(0,n-r)}e.exports={escape:function(e,i){if(i){if(t.test(e))return e.replace(s,l)}else if(n.test(e))return e.replace(r,l);return e},unescape:o,edit:function(e,t){e=e.source||e,t=t||"";const s={replace:(t,n)=>(n=(n=n.source||n).replace(h,"$1"),e=e.replace(t,n),s),getRegex:()=>new RegExp(e,t)};return s},cleanUrl:function(e,t,s){if(e){let e;try{e=decodeURIComponent(o(s)).replace(c,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!p.test(s)&&(s=k(t,s));try{s=encodeURI(s).replace(/%25/g,"%")}catch(e){return null}return s},resolveUrl:k,noopTest:{exec:function(){}},merge:function(e){let t,s,n=1;for(;n<arguments.length;n++)for(s in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},splitCells:function(e,t){const s=e.replace(/\|/g,((e,t,s)=>{let n=!1,r=t;for(;--r>=0&&"\\"===s[r];)n=!n;return n?"|":" |"})).split(/ \|/);let n=0;if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;n<s.length;n++)s[n]=s[n].trim().replace(/\\\|/g,"|");return s},rtrim:m,findClosingBracket:function(e,t){if(-1===e.indexOf(t[1]))return-1;const s=e.length;let n=0,r=0;for(;r<s;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1},checkSanitizeDeprecation:function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}}},16367:(e,t,s)=>{const n=s(88337),r=s(56920),i=s(65401),l=s(737),a=s(59049),o=s(89791),{merge:h,checkSanitizeDeprecation:c,escape:p}=s(26567),{getDefaults:u,changeDefaults:g,defaults:d}=s(88104);function f(e,t,s){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(s||"function"==typeof t){s||(s=t,t=null),t=h({},f.defaults,t||{}),c(t);const i=t.highlight;let l,a,o=0;try{l=n.lex(e,t)}catch(e){return s(e)}a=l.length;const p=function(e){if(e)return t.highlight=i,s(e);let n;try{n=r.parse(l,t)}catch(t){e=t}return t.highlight=i,e?s(e):s(null,n)};if(!i||i.length<3)return p();if(delete t.highlight,!a)return p();for(;o<l.length;o++)!function(e){"code"!==e.type?--a||p():i(e.text,e.lang,(function(t,s){return t?p(t):null==s||s===e.text?--a||p():(e.text=s,e.escaped=!0,void(--a||p()))}))}(l[o])}else try{return t=h({},f.defaults,t||{}),c(t),r.parse(n.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||f.defaults).silent)return"<p>An error occurred:</p><pre>"+p(e.message+"",!0)+"</pre>";throw e}}f.options=f.setOptions=function(e){return h(f.defaults,e),g(f.defaults),f},f.getDefaults=u,f.defaults=d,f.Parser=r,f.parser=r.parse,f.Renderer=i,f.TextRenderer=l,f.Lexer=n,f.lexer=n.lex,f.InlineLexer=a,f.inlineLexer=a.output,f.Slugger=o,f.parse=f,e.exports=f},42611:(e,t,s)=>{const{noopTest:n,edit:r,merge:i}=s(26567),l={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:n,table:n,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};l.def=r(l.def).replace("label",l._label).replace("title",l._title).getRegex(),l.bullet=/(?:[*+-]|\d{1,9}\.)/,l.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,l.item=r(l.item,"gm").replace(/bull/g,l.bullet).getRegex(),l.list=r(l.list).replace(/bull/g,l.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+l.def.source+")").getRegex(),l._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",l._comment=/<!--(?!-?>)[\s\S]*?-->/,l.html=r(l.html,"i").replace("comment",l._comment).replace("tag",l._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),l.paragraph=r(l._paragraph).replace("hr",l.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",l._tag).getRegex(),l.blockquote=r(l.blockquote).replace("paragraph",l.paragraph).getRegex(),l.normal=i({},l),l.gfm=i({},l.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),l.pedantic=i({},l.normal,{html:r("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",l._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:n,paragraph:r(l.normal._paragraph).replace("hr",l.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",l.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const a={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:n,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:n,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,_punctuation:"!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~"};a.em=r(a.em).replace(/punctuation/g,a._punctuation).getRegex(),a._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,a._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,a._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,a.autolink=r(a.autolink).replace("scheme",a._scheme).replace("email",a._email).getRegex(),a._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,a.tag=r(a.tag).replace("comment",l._comment).replace("attribute",a._attribute).getRegex(),a._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,a._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,a._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,a.link=r(a.link).replace("label",a._label).replace("href",a._href).replace("title",a._title).getRegex(),a.reflink=r(a.reflink).replace("label",a._label).getRegex(),a.normal=i({},a),a.pedantic=i({},a.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:r(/^!?\[(label)\]\((.*?)\)/).replace("label",a._label).getRegex(),reflink:r(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",a._label).getRegex()}),a.gfm=i({},a.normal,{escape:r(a.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),a.gfm.url=r(a.gfm.url,"i").replace("email",a.gfm._extended_email).getRegex(),a.breaks=i({},a.gfm,{br:r(a.br).replace("{2,}","*").getRegex(),text:r(a.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),e.exports={block:l,inline:a}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[6411],{72861:(t,e,n)=>{n.d(e,{e:()=>C,Q:()=>R});var i=n(32735),r=n(91967),a=n(82182),o=n(75896),l=n(1048),s=n(92582),c=n(66869),u=n(43872),f=n(53855),d=n(31069),m=n(10841),g=n(81514),p=n(65294),h=n(10038),y=n(5859),v=n(49542),b=function(t,e,n){return function(){t.container.current&&(t.container.current.style.transition=""),e({type:m.n.Resize,payload:{elementRefs:t,mediaQuery:n}})}},E=function(t){return function(){t.current&&(t.current.style.transition="transform .4s ease-in-out")}},O=function(t,e,n,i,r){return function(a){var o=a.clientX,l=i;l||(l=Object.assign(Object.assign({},e),{initialMouseX:o}),r(l),t.current.style.transition=""),n({type:m.n.Drag,payload:{widgetSnapshot:l,currentMouseX:o}})}},S=function(t,e){return function(){t.current.style.transition="transform .4s ease-in-out",e(null)}},L=n(14244);const j={itemSpacing:"fDc_6",mobileScroll:"aLSzv",leftGradient:"YheD1",leftButton:"ISepF",rightGradient:"i9XEE",rightButton:"OxM84"};function P(t){return function(t){if(Array.isArray(t))return B(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||A(t)||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 w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,a,o,l=[],s=!0,c=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=a.call(n)).done)&&(l.push(i.value),l.length!==e);s=!0);}catch(t){c=!0,r=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return l}}(t,e)||A(t,e)||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(t,e){if(t){if("string"==typeof t)return B(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function C(t){var e=t.childComponent,n=t.staticChildren,y=t.getWidgetItemAnalyticsData,A=void 0===y?function(){}:y,B=w(i.useReducer(L.E,L.C),2),C=B[0],x=B[1],I=w(i.useState(null),2),M=I[0],k=I[1],D={container:i.useRef(null),firstElement:i.useRef(null),lastElement:i.useRef(null)},N=(0,g.V)(),X=a.V.isTabletOrMobile();(0,h.H)(b(D,x,N),E(D.container),[N]);var G=(0,p.Y)({prevent:!t.lazyLoad}),T=G.ref,W=G.inView,_=t.collection;if(!t.collection&&r.q.isFunction(t.fetch)){var z=t.fetch(W);_=z.data}i.useEffect((function(){_&&!l.t.isEmpty(_)&&x({type:m.n.Init,payload:{elementRefs:D,mediaQuery:N}})}),[_]);var Q=i.useMemo((function(){var r,a;if(_){var l=null!==(r=null==n?void 0:n.filter((function(t){return"start"===t.position})))&&void 0!==r?r:[],s=null!==(a=null==n?void 0:n.filter((function(t){return"end"===t.position})))&&void 0!==a?a:[],c=_.map((function(n,r){var a;n===o.m.first(_)&&(null==l?void 0:l.length)&&(a=D.firstElement),n!==o.m.last(_)||(null==s?void 0:s.length)||(a=D.lastElement);var c=r+1===_.length;return i.createElement("div",{key:n.id,ref:a,className:"".concat(j.itemSpacing," ").concat(c&&X?"pe-4":"")},i.createElement(e,{getChildAppLink:t.getChildAppLink,data:n,getSubtitle:t.getSubtitle,analyticsData:Object.assign(Object.assign({itemIndex:r},t.analyticsData),A(n)),analyticsOptions:Object.assign(Object.assign({},null==t?void 0:t.analyticsOptions),v.d.getSliderItemAnalyticsOptions())}))}));return l.length&&(c=[].concat(P(l.map((function(t,e){var n=t.component;return i.createElement("div",{key:"first-widget-component:".concat(e),ref:0===e?D.firstElement:null,className:j.itemSpacing},i.createElement(n,null))}))),P(c))),s.length&&(c=[].concat(P(c),P(s.map((function(t,e){var n=t.component;return i.createElement("div",{key:"end-widget-component:".concat(e),ref:e===s.length-1?D.lastElement:null,className:j.itemSpacing},i.createElement(n,null))}))))),i.createElement(i.Fragment,null,c)}}),[_]);if(_&&!_.length&&!(null==n?void 0:n.length))return i.createElement(i.Fragment,null);if(!_||l.t.isEmpty(_))return i.createElement("div",{ref:T},i.createElement(R,{partialLoadingComponent:t.partialLoadingComponent,partialLoadingOptions:t.partialLoadingOptions}));var U=function(e){return Object.assign(Object.assign({},t.analyticsData),{name:t.heading,direction:e===m.n.Next?"right":"left"})},V=X||t.hideButtons;return i.createElement("div",{className:"mx-n4"},i.createElement("div",{className:"px-4"},i.createElement(c.B,{name:t.heading,description:t.description,appLink:t.headingAppLink})),i.createElement("div",{className:"position-relative"},i.createElement("div",{className:"px-4 py-3 my-n3 position-relative ".concat(X?j.mobileScroll:"overflow-hidden-x")},i.createElement("div",{className:"position-relative ".concat(t.hideButtons?"overflow-hidden-x":"")},!V&&i.createElement(f.W,{direction:f.f.Left,onClick:function(){x({type:m.n.Previous}),s.k.logUserAction(U(m.n.Previous),v.d.getSliderAnalyticsOptions())},leftButtonClassName:j.leftButton,leftGradientClassName:j.leftGradient,hide:C.hideLeftButton,useGradientBackdrop:!0}),i.createElement(u.V,{position:C.offset,positionType:d.C.Pixels,onDrag:O(D.container,C,x,M,k),onDragEnd:S(D.container,k),ref:D.container},Q),!V&&i.createElement(f.W,{direction:f.f.Right,onClick:function(){x({type:m.n.Next}),s.k.logUserAction(U(m.n.Next),v.d.getSliderAnalyticsOptions())},hide:C.hideRightButton,rightButtonClassName:j.rightButton,rightGradientClassName:j.rightGradient,useGradientBackdrop:!0})))))}C.defaultProps={heading:"",description:""};var R=function(t){var e=t.partialLoadingComponent,n=t.partialLoadingOptions;return i.createElement("div",{className:"d-flex flex-nowrap overflow-hidden"},y.u.getPartialLoadingItems(n).map((function(t,n){return i.createElement(e,{key:n})})))}},14244:(t,e,n)=>{n.d(e,{C:()=>o,E:()=>d});var i=n(86764),r=n(10841);function a(t){return t===i.r.XS?200:t===i.r.SM||t===i.r.MD?350:500}var o={offset:0,containerLeftPosition:null,containerRightPosition:null,firstElementPosition:null,lastElementPosition:null,hideLeftButton:!0,hideRightButton:!0,maxSlideDistance:0,leftOffsetLimit:null},l=function(t){var e=t.elementRefs,n=e.container,i=e.lastElement;if(!(null==n?void 0:n.current)||!(null==i?void 0:i.current))return o;var r=n.current.getBoundingClientRect(),l=r.left,s=r.right,c=l,u=i.current.getBoundingClientRect().right,f=s-u;return Object.assign(Object.assign({},o),{containerLeftPosition:l,containerRightPosition:s,firstElementPosition:c,lastElementPosition:u,hideRightButton:u<s,leftOffsetLimit:f,maxSlideDistance:a(t.mediaQuery)})},s=function(t){var e=l(Object.assign(Object.assign({},t),t.elementRefs));return Object.assign(Object.assign({},e),{maxSlideDistance:a(t.mediaQuery)})},c=function(t){var e=t.firstElementPosition,n=t.lastElementPosition,i=t.maxSlideDistance,r=t.offset,a=t.containerRightPosition,o=n-a>=i?i:n-a;return{firstElementPosition:e-o,lastElementPosition:n-o,offset:r-o,hideRightButton:n-o===a,hideLeftButton:!1}},u=function(t){var e=t.containerLeftPosition,n=t.firstElementPosition,i=t.lastElementPosition,r=t.maxSlideDistance,a=t.offset,o=n+r<=e,l=o?r:Math.abs(a);return{firstElementPosition:n+l,lastElementPosition:i+l,offset:a+l,hideLeftButton:!o||n+l===e,hideRightButton:!1}},f=function(t,e){var n=e.widgetSnapshot,i=e.currentMouseX;if(n.hideLeftButton&&n.hideRightButton)return{};var r=n.initialMouseX-i,a=n.offset-r,o=n.firstElementPosition-r,l=n.lastElementPosition-r,s=!1,c=!1;return o>t.containerLeftPosition&&(a=0,o=t.containerLeftPosition,l=t.lastElementPosition,s=!0),l<=t.containerRightPosition&&(a=t.leftOffsetLimit,o=t.containerLeftPosition-Math.abs(t.leftOffsetLimit),l=n.containerRightPosition,c=!0),{offset:a,firstElementPosition:o,lastElementPosition:l,hideLeftButton:s,hideRightButton:c}};function d(t,e){switch(e.type){case r.n.Init:return Object.assign(Object.assign({},t),l(e.payload));case r.n.Resize:return Object.assign(Object.assign({},t),s(e.payload));case r.n.Next:return Object.assign(Object.assign({},t),c(t));case r.n.Previous:return Object.assign(Object.assign({},t),u(t));case r.n.Drag:return Object.assign(Object.assign({},t),f(t,e.payload));default:return t}}},2284:(t,e,n)=>{var i;n.d(e,{W:()=>i}),function(t){t.Draft="Draft",t.ComingSoon="ComingSoon",t.Published="Published"}(i||(i={}))},81514:(t,e,n)=>{n.d(e,{V:()=>a});var i=n(86764),r=n(3747);function a(){var t=(0,r.a)(i.r.XS),e=(0,r.a)(i.r.SM),n=(0,r.a)(i.r.MD),a=(0,r.a)(i.r.LG),o=(0,r.a)(i.r.XL),l=(0,r.a)(i.r.XXL),s=i.r.LG;return t&&(s=i.r.XS),e&&(s=i.r.SM),n&&(s=i.r.MD),a&&(s=i.r.LG),o&&(s=i.r.XL),l&&(s=i.r.XXL),s}},10038:(t,e,n)=>{n.d(e,{H:()=>a});var i=n(32735);function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){var n,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=function(){t(),window.clearTimeout(n),n=window.setTimeout(e,100)};i.useEffect((function(){return window.addEventListener("resize",e?l:t),function(){return window.removeEventListener("resize",e?l:t)}}),function(t){if(Array.isArray(t))return r(t)}(a=o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(a)||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.")}())}},5859:(t,e,n)=>{function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.d(e,{u:()=>a});var r={numItems:5,minWidth:50,maxWidth:100},a={getPartialLoadingItems:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},r),e);return(t=Array(n.numItems),function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t)||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(){return{width:"".concat(Math.max(Math.floor(Math.random()*n.maxWidth),n.minWidth),"px")}}))}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[6542],{78259:(e,t,n)=>{n.d(t,{O:()=>c});var i=n(58176),r=n.n(i),a=n(21161),o={className:"info-link",defaultProtocol:"https"},c={linkifyText:function(e,t){if(e){var n=t?a.extend({},o,t):o;return r()(e,n)}}}},70498:(e,t,n)=>{n.d(t,{P:()=>r});var i=n(32735);function r(e){return e.audience?i.createElement("div",{className:"audience-label border rounded-pill d-inline-block px-2 text-nowrap \n ".concat("border-"+e.border," ").concat(e.className?e.className:"")},e.audience.name):i.createElement(i.Fragment,null)}},17464:(e,t,n)=>{n.d(t,{c:()=>a});var i=n(32735),r=n(86474);function a(e){var t="d-flex align-items-center badge-list ".concat(r.Z.minHeight);return e.className&&(t+=" ".concat(e.className)),i.createElement("div",{className:t},e.children)}},97663:(e,t,n)=>{n.d(t,{m:()=>o});var i=n(32735),r=n(57408);const a={subText:"F_1ii",sm:"BxmrB"};function o(e){var t="text-uppercase text-truncate mb-0 ".concat(a.subText," ").concat("sm"===e.size?"".concat(a.sm," fw-normal"):""," ").concat(e.className);return e.appLink?i.createElement(r.F,{className:t,appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,title:e.title},e.children):i.createElement("div",{className:t,title:e.title},e.children)}},1948:(e,t,n)=>{n.d(t,{y:()=>p});var i=n(32735),r=n(23481),a=n(83914),o=n(5960),c=n(4594),s=n(35223);const u={topLeftContainer:"iwBld",draft:"QBpxh",badge:"KcvGx",svg:"gW733",text:"QiH5Q",sm:"tn2BH"};var l=r.T.encloseNamespace("shared.typeBadge");function d(e){switch(e){case c.E.Clip:return s.vn.Clip;case c.E.Interactive:return s.vn.Interactive;case c.E.Resource:return s.vn.Resources;default:return""}}function v(e,t){switch(e){case c.E.Clip:return"bg-dark-blue";case c.E.Interactive:return t===o.X.Draft?u.draft:"bg-green";case c.E.Resource:return"bg-indigo";default:return""}}function p(e){var t="".concat(u.badge," rounded-pill text-white ps-0 ").concat("sm"===e.size?u.sm:"");return i.createElement("div",{className:u.topLeftContainer},i.createElement("div",{className:"".concat(t," ").concat(v(e.typeId,e.status))},i.createElement(a.x,{className:"svg-container d-block ".concat(u.svg),size:"sm"===e.size?a.S.Small:a.S.Standard,svgName:d(e.typeId)}),i.createElement("span",{className:u.text},function(e){switch(e){case c.E.Clip:return l("clip");case c.E.Interactive:return l("interactive");case c.E.Resource:return l("resource");default:return""}}(e.typeId))))}p.default={size:"md"}},17034:(e,t,n)=>{n.d(t,{Q:()=>v,$:()=>g});var i=n(32735),r=n(28400),a=n(74254),o={padNumber:function(e,t){var n=e.toString();if(n.length>=t)return n;for(t-=n.length;t>0;)n="0"+n,t--;return n}},c=n(4594),s={isSeries:function(e){return(null==e?void 0:e.typeId)===c.E.Series},buildSeriesSeasonEpisodeText:function(e,t,n){if(!e)return"";if(!t||!n)return e.toUpperCase();var i=o.padNumber(t,2),r=o.padNumber(n,2);return"".concat(e.toUpperCase()," S").concat(i," • E").concat(r)}},u=n(40370),l=n(97663);const d={appLink:"yI6tx",hoverUnderline:"ehDUT"};function v(e){var t=e.video,n=t.season;if(!t.episodeNumber||!n)return i.createElement(i.Fragment,null);var r=o.padNumber(n.number,2),a=o.padNumber(t.episodeNumber,2);return i.createElement("span",{className:"d-inline-block ".concat(e.appLink?d.hoverUnderline:"")},e.withSeriesTitle&&i.createElement(i.Fragment,null," "),!!r&&"S".concat(r," • "),"E",a)}function p(e){var t=u.M.getReleaseDate(e.video);return t?u.M.hasSeries(e.video)?i.createElement(i.Fragment,null," • ".concat(t)):i.createElement(i.Fragment,null,t):i.createElement(i.Fragment,null)}function m(e){var t,n=e.appLink,o=e.video,c=e.className,m=void 0===c?"":c,f=null==o?void 0:o.series,g=u.M.getReleaseDate(e.video);if(!(null==f?void 0:f.id)&&!g)return i.createElement(i.Fragment,null);var y=(null==f?void 0:f.id)&&n&&Object.assign(Object.assign({},n),{args:[f.id,r.m.slugify(f.name)]}),b=Object.assign(Object.assign({},e.analyticsData),{id:null==f?void 0:f.id,name:null==f?void 0:f.name,videoId:null==o?void 0:o.id,videoName:null==o?void 0:o.name}),h=Object.assign(Object.assign({},e.analyticsOptions),{entity:a.py.Series,actionType:a.Vw.Click,descriptor:a._S.Title}),C=s.buildSeriesSeasonEpisodeText(null==f?void 0:f.name,null===(t=o.season)||void 0===t?void 0:t.number,o.episodeNumber);return i.createElement(l.m,{appLink:y,className:"d-block ".concat(d.appLink," ").concat(m),analyticsData:b,analyticsOptions:h,title:C},(null==f?void 0:f.name)&&f.name,i.createElement(v,Object.assign({},e,{withSeriesTitle:!0})),i.createElement(p,Object.assign({},e)))}function f(e){var t,n,o=e.appLink,c=e.video,s=e.className,u=void 0===s?"":s,v=null===(n=null===(t=null==c?void 0:c.productionCompanies)||void 0===t?void 0:t.data)||void 0===n?void 0:n[0];if(!(null==v?void 0:v.id))return i.createElement(i.Fragment,null);var p=(null==v?void 0:v.id)&&o&&Object.assign(Object.assign({},o),{args:[v.id,r.m.slugify(v.name)]}),m=Object.assign(Object.assign({},e.analyticsData),{id:null==v?void 0:v.id,name:null==v?void 0:v.name,videoId:null==c?void 0:c.id,videoName:null==c?void 0:c.name}),f=Object.assign(Object.assign({},e.analyticsOptions),{entity:a.py.Company,actionType:a.Vw.Click,descriptor:a._S.Title});return i.createElement(l.m,{appLink:p,className:"d-block ".concat(d.appLink," ").concat(u),analyticsData:m,analyticsOptions:f,title:v.name},v.name)}function g(e){var t=e.type,n=void 0===t?"series":t;return"none"===n?i.createElement(i.Fragment,null):"series"===n?i.createElement(m,Object.assign({},e)):i.createElement(f,Object.assign({},e))}},1164:(e,t,n)=>{var i;n.d(t,{L:()=>i}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(i||(i={}))},5345:(e,t,n)=>{var i;n.d(t,{c:()=>i}),function(e){e.Custom="custom",e.User="year_group"}(i||(i={}))},89454:(e,t,n)=>{n.d(t,{O:()=>a});var i=n(97395),r=n(25925),a={presentationAudiences:function(e,t){var n=t||r.R.Subject.toLowerCase(),a={type:n,presentationId:e};return{bootstrapName:"presentationAudiences",url:i._.urlBuilder("/api/domain/v1/subjects/audiences",a),publicUrl:i._.urlBuilder("/api/subjects/presentation/".concat(e,"/audiences"),a),key:"presentation:audiences:".concat(e,":").concat(n),normalize:!1}},audiencesByPresentationId:function(e){return{url:"/api/domain/v1/subjects/presentations/".concat(e,"/audiences"),publicUrl:i._.urlBuilder("/api/subjects/presentation/".concat(e,"/audiences"),{type:r.R.Subject.toLowerCase(),presentationId:e}),key:"presentation:".concat(e,":audiences"),normalize:!1}}}},11565:(e,t,n)=>{n.d(t,{R:()=>f});var i,r,a=n(99940),o=n(97395),c=n(62803),s=n(5960),u=n(4594),l=n(78417);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget"}(i||(i={})),n(57900),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(r||(r={})),r.RecentlyAdded;var d=function(e,t){return o._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:c.v.VIDEO})},v=function(e,t){return o._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating,libraries{typeId:[17]}",permissionFilterOption:l.r.StripMetadata,shareId:t})},p=function(e){return o._.urlBuilder("{gateway}/v1/objects",{"query.video":c.v.VIDEO_COLLECTION,"query.clip":c.v.CLIP_COLLECTION,"query.interactive":c.v.INTERACTIVE_COLLECTION,id:e})},m=function(e){var t=e.videoId,n=e.context,r=e.collectionId,a=e.moviesAndTv,s={videoId:t,limit:e.limit,query:c.v.VIDEO_COLLECTION};return n&&(n===i.Widget?s["context.widgetId"]=r:(s["context.collectionType"]=n,s["context.collectionId"]=r)),a&&(s["context.moviesAndTv"]=!0),o._.urlBuilder("{gateway}/v1/suggestions/related-videos",s)},f={video:function(e,t){return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:c.v.VIDEO,permissionFilterOption:t}),publicUrl:o._.urlBuilder("/api/objects/".concat(e),{query:c.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t),formatData:function(e){var t,n;return(null===(t=e.interactives)||void 0===t?void 0:t.data)&&(e.interactives.data=e.interactives.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),(null===(n=e.clips)||void 0===n?void 0:n.data)&&(e.clips.data=e.clips.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),e}}},publicVideo:function(e,t,n,i){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:i}},sharedVideo:function(e,t,n,i){return{url:d(e,t),key:"shared:video:".concat(e),formatData:function(e){var t,n;return(null===(t=e.interactives)||void 0===t?void 0:t.data)&&(e.interactives.data=e.interactives.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),(null===(n=e.clips)||void 0===n?void 0:n.data)&&(e.clips.data=e.clips.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),e},success:n,error:i}},myVideos:function(e,t){var n=c.v.VIDEO_COLLECTION,i=c.v.CLIP_COLLECTION,r=c.v.INTERACTIVE,a="videos[".concat(n,"]{libraries.typeid:").concat(u.E.WorkspaceCollection,"}"),d="clips[".concat(i,"]"),v="interactives[".concat(r,"]{status:[").concat(s.X.Published,",").concat(s.X.Draft,"]}"),p={query:"(".concat(a,"|").concat(d,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:l.r.StripMetadata};return t&&(p.cursor=t),{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),p),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:p(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:p(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,n,i,r){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:a.k.PUT,data:t,success:n,error:i,always:r}},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:o._.urlBuilder("{gateway}/v1/objects",{query:"interactives{limit:100},resources{limit:100}",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(u.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:a.k.DELETE,success:t,error:n,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,n,i,r){var o=e.map((function(e){return"videoIds=".concat(e)})).join("&"),c=["categoryId=".concat(n),"".concat(o)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(c),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(n),type:a.k.DELETE,success:i,error:r,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,n=e.context,i=e.collectionId,r=e.moviesAndTv;return{url:m(e),key:"related:videos:".concat(t,":").concat(n,":").concat(i,":").concat(r)}},collectionVideos:function(e,t,n,i,a,u){var d=function(e){switch(e){case r.AtoZ:return"orderby:name";case r.ZtoA:return"orderbydesc:name";case r.Newest:return"orderbydesc:datecreated";case r.Oldest:return"orderby:datecreated";case r.RecentlyAdded:return"orderbydesc:timestamp";case r.Series:return"orderby:seriessort";default:return}}(t),v=c.v.VIDEO_COLLECTION,p=c.v.CLIP_COLLECTION,m=c.v.INTERACTIVE,f="videos[".concat(v,"]"),g="clips[".concat(p,"]"),y="interactives[".concat(m,"]{status:[").concat(s.X.Published,",").concat(s.X.Draft,"]}"),b=Object.assign({query:"(".concat(f,"|").concat(g,"|").concat(y,")").concat(d?"{".concat(d,"}"):""),permissionFilterOption:l.r.FilterOut},n?{cursor:n}:{}),h=["folder","videos",e,n,t].filter((function(e){return!!e})).join(":");return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),b),key:h,success:i,error:a,always:u}},pointsOfInterest:function(e,t,n,i,r){var a={query:"{limit:100}",cursor:t};return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),a),publicUrl:o._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),a),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:n,error:i,always:r}},regionAlternatives:function(e,t,n,i){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:i}}}},80143:(e,t,n)=>{n.d(t,{n:()=>a});var i=n(32735),r=n(69454);function a(e,t){var n=i.useMemo((function(){return(null==e?void 0:e.length)&&t&&r.T.shouldShowAudiences(t)?r.T.getSortedPresentationAudiences(e,t):null}),[e]);return i.useMemo((function(){return(null==n?void 0:n.length)?r.T.getMergedPresentationAudienceString(n):null}),[n])}},93264:(e,t,n)=>{n.d(t,{T:()=>a});var i=n(21161),r=function(e,t,n){var i=t-(e=e.toString()).length;return i<=0?e:new Array(i+1).join(n)+e},a={ToDisplayDuration:function(e,t){if(!i.isNumber(e))return"";var n=new Date(e),a=n.getUTCHours(),o=r(n.getUTCMinutes(),2,"0"),c=r(n.getUTCSeconds(),2,"0");return t||a>0?"".concat(a,":").concat(o,":").concat(c):"".concat(o,":").concat(c)},ToDisplayDurationNewStyle:function(e,t){if(!i.isNumber(e))return"";var n=new Date(e),r=n.getUTCHours(),a=n.getUTCMinutes(),o=n.getUTCSeconds();if((r>0||a>0)&&o>=30&&(a+=1),r>0){var c=r>1?"hrs":"hr";return a>0?t&&o>0?"".concat(r).concat(c," ").concat(a,"m ").concat(o,"s"):"".concat(r).concat(c," ").concat(a,"m "):"".concat(r," ").concat(c)}return a>0?t&&o>0?"".concat(a,"m ").concat(o,"s"):"".concat(a,"m"):"".concat(o,"s")}}},26361:(e,t,n)=>{n.d(t,{l:()=>f});var i=n(23481),r=n(110),a=n(86474),o=n(5345),c=n(35223);function s(e){return s="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},s(e)}function u(e,t,n){var i;return i=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==s(i)?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=i.T.encloseNamespace("shared.shared-utils"),d=u(u({},o.c.Custom,a.Z.restrictionBadgeCustom),o.c.User,a.Z.restrictionBadgeUser),v=u(u({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),p=u(u({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),m=u(u({},o.c.Custom,200),o.c.User,100),f={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var n=f.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=f.getWeightedRestriction(e.value);return v[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 i=f.getWeightedRestriction(e.value),r=t.find((function(e){return e.value===i.yearGroup})),a=p[i.type];if(i.type===o.c.User)return null===i.yearGroup?l("restrictionStaff"):r?l(a,{yearGroup:r.name}):"";if(i.type===o.c.Custom){var c=f.getRestrictionDuration(i);return c?l(a,{duration:c,smartCount:c}):l("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 i=m[e.type],r=m[n.type];return"highest"===t&&i>r||"lowest"===t&&i<r?e:n}))},getRestrictionByType:function(e,t){if(!f.hasRestrictions(e))return null;var n=Array.isArray(t)?t:[t],i=e._restrictions.value.filter((function(e){return n.includes(e.type)}));return f.getWeightedRestriction(i)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=r.O.convertUTCToLocal(e.expiresOn);if(t)return r.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!f.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)}}},40370:(e,t,n)=>{n.d(t,{M:()=>h});var i,r=n(56050),a=n(23481),o=n(81886),c=n(110),s=n(65858);!function(e){e.Screenrights="screenrights",e.Era="era",e.ClickView="clickview"}(i||(i={}));var u=n(5960),l=n(4594),d=n(5345),v=(n(99940),n(97395)),p=n(62803),m=(n(78417),function(e,t){return{key:"clip:".concat(e,":").concat(t),url:v._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:p.v.CLIP,permissionFilterOption:t})}}),f=n(11565),g=n(26361),y=n(16714),b=a.T.encloseNamespace("shared.shared-utils"),h={isVideo:function(e){return(null==e?void 0:e.typeId)===l.E.Video},isClip:function(e){return(null==e?void 0:e.typeId)===l.E.Clip},isInteractive:function(e){return(null==e?void 0:e.typeId)===l.E.Interactive},isVideoTypeArchived:function(e){return(null==e?void 0:e.status)===u.X.Archived},isVideoType:function(e){return h.isVideo(e)||h.isInteractive(e)||h.isClip(e)},hasSeries:function(e){var t;return!!(null===(t=null==e?void 0:e.series)||void 0===t?void 0:t.id)},showVideoGuidance:function(e){return!e(y.C.StudentExperience)},getVideoProgress:function(e){var t,n;return(null==e?void 0:e.lastProgressPoint)?null==e?void 0:e.lastProgressPoint:(null===(t=null==e?void 0:e._videoProgress)||void 0===t?void 0:t.progress)?null===(n=null==e?void 0:e._videoProgress)||void 0===n?void 0:n.progress:0},getThumbnail:function(e){var t,n;return e?h.isVideo(e)?e.thumbnail:(null==e?void 0:e._thumbnail)?e._thumbnail:h.isClip(e)?e.thumbnail||(null===(t=e._parentVideo)||void 0===t?void 0:t.thumbnail):h.isInteractive(e)?null===(n=e._parentVideo)||void 0===n?void 0:n.thumbnail:void 0:null},getDuration:function(e){var t,n;if(e){if(h.isVideo(e))return e.duration;if(h.isInteractive(e)){if(null===(t=e._parentClip)||void 0===t?void 0:t.id)return 1e3*(e._parentClip.endTime-e._parentClip.startTime);if(null===(n=e._parentVideo)||void 0===n?void 0:n.duration)return e._parentVideo.duration}return h.isClip(e)?1e3*(e.endTime-e.startTime):void 0}},getAnalyticsEntity:function(e){return h.isVideo(e)?s.py.Video:h.isInteractive(e)?s.py.Interactive:h.isClip(e)?s.py.Clip:void 0},getAnalyticsData:function(e){var t,n,i,r,a,o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(h.isVideo(e))return Object.assign(Object.assign({},c||{}),{id:e.id});if(h.isClip(e)){var s=Object.assign(Object.assign({},c||{}),{id:e.id});return(null===(t=e._parentVideo)||void 0===t?void 0:t.id)&&(s.video={id:null===(n=e._parentVideo)||void 0===n?void 0:n.id}),s}var u=Object.assign(Object.assign({},c),{id:e.id,interactiveId:e.interactiveId,name:e.name,status:e.status,originType:e.originType});return(null===(i=null==e?void 0:e._parentClip)||void 0===i?void 0:i.id)&&(u.clip={id:null===(r=null==e?void 0:e._parentClip)||void 0===r?void 0:r.id}),(null===(a=null==e?void 0:e._parentVideo)||void 0===a?void 0:a.id)&&(u.video={id:null===(o=null==e?void 0:e._parentVideo)||void 0===o?void 0:o.id}),u},getCanBeConsumed:function(e){var t,n;return e&&h.isVideoType(e)?e._canBeConsumed?{canNavigate:"login-required"===(null===(t=e._canBeConsumed)||void 0===t?void 0:t.reason)&&h.isVideo(e)||!0===e._canBeConsumed.value,canConsume:e._canBeConsumed.value,reason:null===(n=e._canBeConsumed)||void 0===n?void 0:n.reason}:{canNavigate:!0,canConsume:!0}:{canNavigate:!1,canConsume:!1}},getPrivacyReasoning:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=h.getCanBeConsumed(e),r=i.canConsume,a=i.canNavigate,o=i.reason,c=function(){return h.isClip(e)?b("clipLoginRequired"):h.isInteractive(e)?b("interactiveLoginRequired"):b("videoLoginRequired")};if(!r&&!a){if(n)return c();switch(o){case"rating-not-allowed":return b("ratingNotAllowed");case"video-deleted":return h.isClip(e)?b("clipParentDeleted"):h.isInteractive(e)?b("interactiveParentDeleted"):b("videoDeleted");case"clickview-private":return b("clickViewPrivate");case"private":default:return b("genericCannotAccess");case"login-required":return c();case"restricted-access":var s=g.l.getWeightedRestriction(null===(t=e._restrictions)||void 0===t?void 0:t.value);return(null==s?void 0:s.type)===d.c.Custom?b("awaitingApproval"):b("restrictedAccess")}}return h.isInteractive(e)&&e.status===u.X.Draft?b("draftInteractive"):""},getTitle:function(e){if(e.name)return h.isInteractive(e)&&e.status===u.X.Draft?b("draftInteractiveTitle",{name:e.name}):e.name;var t=h.getCanBeConsumed(e),n=t.canConsume,i=t.reason;return b(n||"private"!==i?n||"video-deleted"!==i?"privateVideo":"videoUnavailable":"privateVideo")},getParentVideo:function(e){return h.isVideo(e)?e:h.isClip(e)||h.isInteractive(e)?e._parentVideo:void 0},getRating:function(e){var t;return h.isVideo(e)?e.rating:null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t.rating},getVideoRequest:function(e,t,n){if(n){switch(t){case l.E.Video:return f.R.sharedVideo(e,n);case l.E.Clip:return function(e,t,n,i){return{key:"shared:clip:".concat(e),url:v._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:p.v.CLIP}),success:n,error:i}}(e,n);case l.E.Interactive:return function(e,t,n,i){return{url:v._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:p.v.INTERACTIVE}),key:"shared:interactive:metadata:".concat(e),success:n,error:i}}(e,n)}o.Q.Ry.throw(new r.H("Unsupported master type"))}switch(t){case l.E.Video:return f.R.video(e);case l.E.Clip:return m(e);case l.E.Interactive:return i=e,{url:v._.urlBuilder("{gateway}/v1/objects/".concat(i),{query:p.v.INTERACTIVE,permissionFilterOption:a}),key:"interactive:metadata:".concat(i,":").concat(a)}}var i,a;o.Q.Ry.throw(new r.H("Unsupported master type"))},isBroadcast:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.contentLicences)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.systemName===i.Era||e.systemName===i.Screenrights})))},getReleaseDate:function(e){return e&&e.dateReleased&&h.isBroadcast(e)?c.O.format(e.dateReleased,"DD/MM/YYYY"):""},canViewOriginalVideo:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t._canBeConsumed)||void 0===n?void 0:n.value)},getTrackingCode:function(e){return h.isVideo(e)?e.trackingCode:h.isClip(e)||h.isInteractive(e)?e._parentVideo.trackingCode:void 0},isInExchange:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.libraries)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.typeId===l.E.ExchangeCollection})))}}},69454:(e,t,n)=>{n.d(t,{T:()=>d});var i=n(75896),r=n(1048),a=n(55171);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var c=/\d/,s=function(e){var t,n,r=i.m.first(e),a=i.m.last(e);return r.name===a.name?r.name:"Advanced"===a.name?"lower"===(t=r.name.split(" "),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,c=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=a.call(n)).done)&&(c.push(i.value),c.length!==t);s=!0);}catch(e){u=!0,r=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw r}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return o(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)?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.")}())[0].toLowerCase()?"Lower Sec - Adv":"Upper Sec - Adv":"Lower - Upper Sec"},u=/([0-9]+)/gi,l=/\s|\+/gi,d={getSortedPresentationAudiences:function(e,t){var n=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return t.filter((function(e){return n.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var t,n,r,o="";switch(+i.m.first(e).presentationId){case a.e.PresentationIds.DEFAULT:case a.e.PresentationIds.AU_SECONDARY:case a.e.PresentationIds.US_ELEMENTARY:case a.e.PresentationIds.AU_PRIMARY:case a.e.PresentationIds.STREAMABLE_LEARNING:if(1===e.length)return e[0];o=function(e){var t=e.map((function(e){return e.name})).join(" "),n=t.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],i=t.split(" ").filter((function(e){return isNaN(+e)}))||[],r=e.find((function(e){return!c.test(e.name)})),a=i.find((function(e){return e!==(null==r?void 0:r.name)}));if(e.length>1&&(a+="s"),r&&n.length)return"".concat(a," ").concat(r.name.charAt(0)," - ").concat(n.pop());var o=function(e){var t,n,i,r,a=!1,o=[];for(e=e.sort((function(e,t){return e-t})),i=0;i<e.length;i++)r=i+1,a||(t=e[i]),n=e[r],e[i]+1===n?a=!0:a?(o.push("".concat(t," - ").concat(e[i])),a=!1):(o.push("".concat(e[i])),a=!1);return o}(n);return"".concat(a," ").concat(o.join(", "))}(e);break;case a.e.PresentationIds.SCOTLAND_PRIMARY:case a.e.PresentationIds.INTERNATIONAL_PRIMARY:case a.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];o=function(e){var t=e.map((function(e){return e.name})),n={};t.forEach((function(e,t){if(0!==t){var i=e.split(" ");Object.keys(n).forEach((function(e){i.includes(e)||delete n[e]}))}else e.split(" ").forEach((function(e,t){n[e]=0===t?"start":"end"}))}));var i=Object.keys(n)[0],r=n[i];if(!i)return e[0].name;var a=e[0].name,o=e[e.length-1].name,c=function(e){return e.split(i)[0]},s="".concat(c(a)," - ").concat(c(o));return"start"===r?"".concat(i," ").concat(s):"".concat(s," ").concat(i)}(e);break;case a.e.PresentationIds.ENGLISH_SECONDARY:o=s(e);break;case a.e.PresentationIds.SCOTLAND_SECONDARY:t=e,n=i.m.first(t),r=i.m.last(t),o=n.name===r.name?n.name:"Senior Phase"===r.name?"".concat(n.name," - Senior"):"Third - Fourth Level";break;case a.e.PresentationIds.ENGLAND_PRIMARY:o=function(e){var t=i.m.first(e),n=i.m.last(e),r=i.m.first(t.name.split(" ")),a=i.m.first(n.name.split(" ")),o=t.name.split(" ").find((function(e){return!isNaN(+e)})),c=n.name.split(" ").find((function(e){return!isNaN(+e)}));if(t===n)return"Key"===r||"Reception"===r?t.name:"".concat(r," KS").concat(o);var s="",u="";return s="Reception"===r?"R":"KS".concat(o),u="KS".concat(c),"Lower"===r&&"Upper"===a?"L ".concat(s," - U ").concat(u):("Lower"===r&&(s="Lower ".concat(s)),"Upper"===a&&(u="Upper ".concat(u)),"Key"===a&&(u=n.name),"".concat(s," - ").concat(u))}(e);case a.e.PresentationIds.US_MIDDLE:case a.e.PresentationIds.US_HIGH:}return o?{name:o}:null},sortMembersWithDuplicateNamesByAudience:function(e){var t=function(e){return e.length?(e.forEach((function(e){var r=+i.m.first(e.name.match(u));if(!t)return t=e,void(n=r);r<n&&(t=e)})),t):null;var t,n},n={},r=[];return e.forEach((function(e){if(!n[e.name])return n[e.name]=1,void r.push(e);r.push(e),n[e.name]++;var i=r.splice(r.length-n[e.name]).sort((function(e,n){var i=t(e.subjectPresentationAudiences.data),r=t(n.subjectPresentationAudiences.data);if(!i&&r)return 1;if(!r)return-1;var a=i.name.localeCompare(r.name);return 0===a?a:a>0?-1:1}));r=r.concat(i)})),r},getActiveAudiencesFromParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.t.isObject(t)&&!r.t.isEmpty(t)&&e&&e.length&&d.shouldShowAudiences(e)){var n=t.a;if(n){"string"==typeof n&&(n=[n]);var i=function(e){return e.replace(l,"").toLowerCase()},a=n.reduce((function(e,t){return e[i(t)]=t,e}),{});return e.filter((function(e){return a[i(e.name)]}))}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map((function(e){return e.name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}},86474:(e,t,n)=>{n.d(t,{Z:()=>i});const i={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[6772],{49267:(e,t,n)=>{n.d(t,{a:()=>p});var r=n(23481),i=n(64364);function a(e){return a="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},a(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}function s(e,t,n){return t=u(t),function(e,t){if(t&&("object"===a(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,l()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var f="shared.regionLockedResourceError",p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,t,[r.T.getPhrase(f,"title")])}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&&d(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return r.T.getPhrase(f,"heading")}},{key:"description",get:function(){return r.T.getPhrase(f,"description")}}])&&o(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.H)},45445:(e,t,n)=>{n.d(t,{r:()=>w});var r=n(50242),i=n(81886),a=n(67058),o=n(23481),c=n(64364);function s(e){return s="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},s(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function d(e,t,n){return t=p(t),function(e,t){if(t&&("object"===s(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,f()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var y="shared.privateResourceError",b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,t,[o.T.getPhrase(y,"title")])}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&&m(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return o.T.getPhrase(y,"heading")}},{key:"description",get:function(){return o.T.getPhrase(y,"description")}}])&&l(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(c.H),v=n(49267),g=n(49075),h={notFound:a.d,forbidden:{rating:b,yearLevel:b,region:v.a,privacy:b},badRequest:g._};function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var a;a="number"==typeof e?e:e.status;var o=Object.assign(Object.assign({},h),t);a&&i.Q.Ry.isStatusCodeError(a)&&(a!==r.o.NotFound?a!==r.o.Forbidden?n.badRequest||i.Q.Ry.throw(new o.badRequest):n.forbidden||i.Q.Ry.throw(new o.forbidden.privacy):n.notFound||i.Q.Ry.throw(new o.notFound))}}},91286:(e,t,n)=>{n.d(t,{v:()=>o});var r=n(32735),i=n(45445);function a(e){return e.map((function(e){return e.statusCode})).join(":")}function o(e,t,n){var o=Array.isArray(e)?e:[e];(0,r.useEffect)((function(){o.forEach((function(e){(0,i.r)(e.statusCode,t,n)}))}),[a(o),t,n])}},56772:(e,t,n)=>{n.r(t),n.d(t,{StreamableClassificationView:()=>Ce});var r=n(32735),i=n(23481),a=n(20354),o=n(81886),c=n(15800),s=n(83345),l=n(64444),u=n(26154),d=n(35223),f="subjects.curatedClassificationEmptyState",p=i.T.encloseNamespace(f);function m(e){var t,n,a=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===u.GL.Archived;return r.createElement(s.D.Provider,{value:f},r.createElement(c.u,null,r.createElement(c.u.Image,{src:e.imageUrl,altText:p("headingForNP")}),e.isReadonly?r.createElement(r.Fragment,null,r.createElement(c.u.Heading,null,r.createElement(s.x,{namespace:f,phrase:"headingForCurator"})),r.createElement(c.u.Info,null,r.createElement(s.x,{namespace:f,phrase:"info"})),r.createElement(l.u,{title:a?i.T.getPhrase(f,"archivedCtaTooltip"):"",spanHack:!0},r.createElement(c.u.Cta,{text:i.T.getPhrase(f,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:d.vn.Plus,disabled:a}))):r.createElement(c.u.Heading,null,r.createElement(s.x,{phrase:"headingForNP"}))))}var y=n(92869),b=n(65858),v=n(57408);const g={container:"k1iOO",itemsWrapper:"IC4wJ",anchorWrapper:"ciEf6",default:"CJonr",selectedItem:"A9mBx",disabled:"sp1Xl"};function h(e){return r.createElement("div",{className:"".concat(g.container," ps-3")},r.createElement("h2",{className:"h5"},e.title),r.createElement("div",{className:"".concat(g.itemsWrapper)},e.widgets.map((function(t,n){return r.createElement(v.F,{key:t.id,appLink:(i=t,a=o.Q.C$.getCurrentAppLink(),c=a.params?Object.assign({},a.params):{},c.tocId=i.id,Object.assign(Object.assign({},a),{params:c})),appLinkOptions:{replace:!0},className:"".concat(g.anchorWrapper," ").concat(e.clickable?"":g.disabled," ").concat(e.activeId===t.id?g.selectedItem:""),onClick:function(){y.t.preventScrollTop(),e.setControlledId(t.id)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,name:t.name}),analyticsOptions:{actionType:b.Vw.Click,entity:b.py.Widget,location:b.LZ.TableOfContents}},r.createElement("div",{className:"".concat(e.activeId||0!==n?"":g.default," ")},t.name));var i,a,c}))))}var w="subjects.teacherOnlyEmptyState",E=i.T.encloseNamespace(w);function O(e){var t;return r.createElement(s.D.Provider,{value:w},r.createElement(c.u,null,r.createElement(c.u.Image,{src:e.imageUrl,altText:E("heading")}),r.createElement(c.u.Heading,null,r.createElement(s.x,{phrase:"heading"})),r.createElement(c.u.Info,null,r.createElement(s.x,{phrase:"info"})),r.createElement(c.u.Cta,{text:E("cta"),appLink:null===(t=e.ctaAppLink)||void 0===t?void 0:t.call(e),className:"btn btn-dark"})))}var T,S=n(75896),P=n(42308),k=n(80889),C=n(21366),I=n(75553),j=n(49935),L=n(24546),A=n(66869),F=n(2605),R=n(86764),x=n(78479),_=n(67058),N=n(3747),B=function(e){var t=e.setActiveId,n=e.headingElements,i=e.controlledId,a=e.setControlledId,o=r.useRef(0);r.useEffect((function(){var e=new IntersectionObserver((function(e){e.forEach((function(e){if(i)return t(i),void(T=window.setTimeout((function(){a("")}),800));if(e.isIntersecting)t(e.target.id),o.current=window.scrollY;else{var r=o.current-window.scrollY>0,c=n.findIndex((function(t){return t.id===e.target.id})),s=n[c-1];r&&(null==s?void 0:s.id)&&t(null==s?void 0:s.id)}}))}),{rootMargin:"-67px 0px -80% 0px"});return n.forEach((function(t){return e.observe(t)})),function(){T&&window.clearTimeout(T),e.disconnect()}}),[t,n.length,i])};function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var D=function(e,t){var n,i,a,o,c=(a=r.useState(!1),o=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return c}}(a,o)||function(e,t){if(e){if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}(a,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],l=c[1],u=(n=t,i=r.useRef(),r.useEffect((function(){i.current=n})),i.current),d=t;r.useLayoutEffect((function(){if(!s||u!==d){var t=e.find((function(e){return e&&(null==e?void 0:e.id)===d}));if(t){var n=t.getBoundingClientRect();window.scrollBy({top:n.top-80,behavior:"smooth"}),s||l(!0)}}}),[e,u,d,s])},W=n(99105),G=n(69454);function V(e){var t;return e.isComingSoon||e.isEmpty&&!(null===(t=e.activeAudiences)||void 0===t?void 0:t.length)?r.createElement(r.Fragment,null):G.T.shouldShowAudiences(e.audiences)?r.createElement(W.x,{audiences:e.audiences,activeAudiences:e.activeAudiences,disabled:e.isReadonly,appLink:e.appLink,disablePersist:e.disablePersist}):r.createElement(r.Fragment,null)}function H(e){return H="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},H(e)}function M(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,i,a,o,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return q(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)?q(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 q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var z="shared.classificationDashboard";function Q(e){return e.widgetId===P.z.Blurb&&e.templateId===x.f.Heading}function J(e){var t,n,c,s,l=function(e,t){var n,i,o,c,s=r.useMemo((function(){return e?{isSystemGeneratedDashboard:C.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=s.isSystemGeneratedDashboard,u=s.systemGeneratedVideoWidget,d=a.a.useBasicFetch(!!u&&k._.dashboardWidgetContent(null==u?void 0:u.id,C.S.getWidgetParams(u.widgetId,u.templateId,C.S.getDashboardTargetType(e),null==t?void 0:t.map((function(e){return e.masterId}))),null==u?void 0:u.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!==(c=null===(o=d.data)||void 0===o?void 0:o.content)&&void 0!==c?c:[],videoListWidgetId:null==u?void 0:u.id}:{widgets:S.m.sortBy(null==e?void 0:e.widgets,"index")}}(e.dashboard,e.activeAudiences),d=l.widgets,f=l.videoList,p=l.videoListWidgetId,y=(0,N.a)(R.r.LGDown),b=r.useRef(new Set),v=r.useMemo((function(){return d.reduce((function(e,t){return e[t.id]=!1,e}),{})}),[null==d?void 0:d.length]),g=M(r.useState(v),2),w=g[0],E=g[1],T=M(r.useState(window.location.hash.slice(1)||""),2),x=T[0],U=T[1],W=M(r.useState(""),2),G=W[0],q=W[1],J=Array.from(b.current);function Z(t,n,r){var i,a=C.S.getWidgetParams(n,r,C.S.getDashboardTargetType(e.dashboard),null===(i=e.activeAudiences)||void 0===i?void 0:i.map((function(e){return e.masterId})));return e.getWidgetContentRequest(t,a,r)}D(J,e.tableOfContentsId),B({setActiveId:q,headingElements:J,controlledId:x,setControlledId:U});var $=!e.isComingSoon&&!e.isTeacherOnly&&(!e.dashboard||e.dashboard.status===u.GL.Archived&&!e.isReadonly||e.dashboard.status===u.GL.Draft&&!e.isPreviewing||!e.isComingSoon&&(!(null==d?void 0:d.length)||(!f||!f.length)&&Object.values(w).every((function(e){return!!e})))),Y=null===(t=e.getBreadcrumbs)||void 0===t?void 0:t.call(e);r.useEffect((function(){$&&E(v)}),[null==d?void 0:d.length]);var X=r.useCallback((function(e,t){if(w[e]!==t){for(var n,r=(Object.assign(Object.assign({},w),(l={},f=t,p=void 0,p=function(e,t){if("object"!=H(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(u=e),(u="symbol"==H(p)?p:p+"")in l?Object.defineProperty(l,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):l[u]=f,l))),i=0;i<d.length;){var a=d[i];if(Q(a)){for(var o=!0,c=i+1;o&&c<d.length;){var s=d[c];if(Q(s))break;r[s.id]||(n=s).widgetId===P.z.CuratedClassifications||n.widgetId===P.z.Classifications||(o=!1),c++}i=c,r[a.id]=o}else i++}E(r)}var l,u,f,p}),[w,d]);function K(e){return Q(e)&&w[e.id]}var ee=d.filter((function(e){var t;return!K(e)&&!!(null===(t=e.metadata)||void 0===t?void 0:t.showInTableOfContents)})),te=ee.length>=2&&!y;return e.isComingSoon&&o.Q.Ry.throw(new _.d),r.createElement("div",{className:"bg-white px-4 ".concat(e.moviesAndTv?"":"topic-dashboard")},r.createElement(I.p,{heading:e.classification.name,banner:e.classification.banner,imageCdnUrl:e.imageCdnUrl,actions:null===(n=e.getBannerActions)||void 0===n?void 0:n.call(e),actionsDropdownClassName:"btn btn-outline-dark",specialEvent:e.specialEvent,calendarTheme:{background:"bg-light-blue",border:"border-light-blue"},showComingSoon:e.isComingSoon}),r.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 ".concat(e.isComingSoon?"":"border-bottom")},r.createElement(j.Oo,{breadcrumbs:Y}),r.createElement(V,{classification:e.classification,audiences:e.audiences,activeAudiences:e.activeAudiences,appLink:null===(s=(c=e.appLinks).audience)||void 0===s?void 0:s.call(c),isEmpty:$,isReadonly:e.isReadonly,isComingSoon:e.isComingSoon,disablePersist:!e.isViewCurrentPresentation})),r.createElement("div",{className:"".concat(te?"row no-wrap":"")},r.createElement("div",{className:te?"col-9":""},d.map((function(t,n){return K(t)?r.createElement(r.Fragment,{key:t.id}):r.createElement(F.L,{headingElementRef:b,key:t.id,id:t.id,name:t.name,description:t.description,templateId:t.templateId,widgetTypeId:t.widgetId,audiences:e.audiences,getContentRequest:Z,setIsEmpty:X,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:te,lazyLoad:e.lazyLoad,dashboardTarget:u.ku.Classification,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})})),!!(null==f?void 0:f.length)&&r.createElement(r.Fragment,null,r.createElement(A.B,{name:i.T.getPhrase(z,"videos"),description:""}),r.createElement(L.E4,{videos:f,yearGroups:e.yearGroups,getVideoAppLink:function(t,n){return e.appLinks.videoType(t,Object.assign(Object.assign({},n),{contextId:p}))},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}))),te&&r.createElement("aside",{className:"col-3"},r.createElement(h,{widgets:ee,title:e.classification.name,activeId:G,clickable:!e.isReadonly,analyticsData:e.analyticsData,setControlledId:U}))),$&&r.createElement(m,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.appLinks.widgetWizard}),e.isTeacherOnly&&r.createElement(O,{imageUrl:e.emptyImageUrl,ctaAppLink:function(){return e.appLinks.allTopics(e.classification.presentationId)}}))}J.defaultProps={appLinks:{}};var Z=n(70275),$=n(51365),Y=n(25925),X=n(89454),K=n(21750),ee=n(39151),te=n(31949),ne=n(91286),re=n(79612),ie=n(25301),ae=n(99742),oe=n(41760),ce=n(31700),se=n(73688),le=n(49433),ue=n(6117),de=n(64364),fe=n(96359),pe=n(41135);function me(e){return me="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},me(e)}function ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,be(r.key),r)}}function be(e){var t=function(e,t){if("object"!=me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==me(t)?t:t+""}function ve(e,t,n){return t=he(t),function(e,t){if(t&&("object"===me(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,ge()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function ge(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ge=function(){return!!e})()}function he(e){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},he(e)}function we(e,t){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},we(e,t)}var Ee="subjects.topicNotFoundError",Oe=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ve(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&&we(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"TopicNotFoundError"}},{key:"heading",get:function(){return i.T.getPhrase(Ee,"heading")}},{key:"description",get:function(){return i.T.getPhrase(Ee,"description")}},{key:"cta",get:function(){return{text:i.T.getPhrase(Ee,"cta"),appLink:{application:pe.O.SUBJECTS,action:fe.e.Subjects.CLASSIFICATION_ALL}}}}])&&ye(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(de.H);function Te(){return r.createElement("div",{className:"bg-white px-4"},r.createElement(I.v,null),r.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},r.createElement(j.b2,null),r.createElement(W.N,null)))}var Se=n(65751),Pe=i.T.encloseNamespace("subjects.classificationView"),ke=i.T.encloseNamespace("subjects.classificationView");function Ce(e){var t,n,i,o,c,s,l,d,f,p,m=(0,le.V)("video-list"),y=a.a.useBasicFetch(ee.L.config()),b=a.a.useBasicFetch(te.N.currentUser()),v=a.a.useBasicFetch(ce.g.streamablePresentation()),g=a.a.useBasicFetch(K.x.classification(e.id,null===(t=b.data)||void 0===t?void 0:t.id)),h=(0,se.B)({targetType:u.ku.Classification,dashboardId:null===(n=e.queryParams)||void 0===n?void 0:n.dashboardId,classificationId:e.id}),w=h.dashboard,E=h.isPreviewing;(0,re.M)(ie.CG.getClassificationMetadata({content:g.data,phraseContext:{phraseHandler:ke,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:ue.f.getCanonicalLink(),allowIndexing:!0,product:oe.L.PRODUCT_NAME})),(0,ne.v)(g,{notFound:Oe});var O,T,S=a.a.useBasicFetch(v.data&&X.O.presentationAudiences(v.data.id,Y.R.StreamableLearning)),P=a.a.useBasicFetch(K.x.path(e.id,Y.R.StreamableLearning)),C=G.T.getActiveAudiencesFromParams(S.data,e.queryParams),I=null!==(i=null==C?void 0:C.map((function(e){return e.masterId})))&&void 0!==i?i:[],j={presentationId:null===(o=v.data)||void 0===o?void 0:o.id,presentationName:null===(c=v.data)||void 0===c?void 0:c.name,currentClassificationId:null===(s=g.data)||void 0===s?void 0:s.id,currentClassificationName:null===(l=g.data)||void 0===l?void 0:l.name,followingCurrentClassification:!!(null===(p=null===(f=null===(d=g.data)||void 0===d?void 0:d.followers)||void 0===f?void 0:f.data)||void 0===p?void 0:p.length),activeAudienceNames:(null==C?void 0:C.length)?C.map((function(e){return e.name})):null,activeAudienceIds:I.length?I:null},L=(O=g.data,T=e.queryParams,Object.assign(Object.assign({},Se.y),{classification:function(e){return Se.y.classification(e||O,T)},classificationTopics:function(){return Se.y.classificationTopics(T)},audience:function(){return Se.y.classification(O,T)}}));return y.data&&w.hasCompleted&&g.data&&v.data&&P.data&&S.data?r.createElement($.M.Provider,{value:{getVideoActions:m}},r.createElement("div",{className:"position-relative"},!(!E||!w.data)&&r.createElement(Z.a,{status:w.data.status,type:"topic"}),r.createElement(J,{dashboard:w.data,classification:g.data,getWidgetContentRequest:k._.dashboardWidgetContent,getBreadcrumbs:function(){return function(e){var t=e.classification,n=e.path,r=e.appLinks,i=[{name:Pe("discover"),appLink:{application:pe.O.DASHBOARD,action:fe.e.Dashboard.HOME}},{name:Pe("exploreAllTopicsHeading"),appLink:{application:pe.O.SUBJECTS,action:fe.e.Subjects.CLASSIFICATION_ALL}}];return n.forEach((function(e){i.push({name:e.name,appLink:r.classification(e),active:e.name===t.name})})),i}({appLinks:L,classification:g.data,path:P.data})},hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},presentation:v.data,getBannerActions:function(){return[]},audiences:S.data,activeAudiences:C,analyticsData:j,imageCdnUrl:y.data.imageCdnUrl,resourceThumbnailFallbackImageUrl:ae.W.Fallbacks.RESOURCE_THUMBNAIL,emptyImageUrl:ae.W.EmptyStates.Topics.TOPIC,appLinks:L,isPreviewing:E,isViewCurrentPresentation:!0,canFollowSubjects:!1,tableOfContentsId:e.queryParams.tocId,lazyLoad:!ue.f.isBot(),isTeacherOnly:!1,companyLogoFallbackUrl:ae.W.StreamableLearning.LOGO,subTextType:"productionCompany",contentType:u.VH.Livestream}))):r.createElement(Te,null)}},49433:(e,t,n)=>{n.d(t,{V:()=>i});var r=n(65858);function i(e){return function(t){return t.id,t.name,"video-list"===e?r.LZ.VideoListItem:r.LZ.PlayPage,[]}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[7025],{27025:(e,a,t)=>{t.r(a),t.d(a,{CompanyDashboardView:()=>Y});var n=t(32735),r=t(23481),i=t(81886),o=t(20354),l=t(75896),c=t(78259),s=t(15800),d=t(83345),u=t(64444),m=t(26154),p=t(35223),y="streamable.companyDashboardEmptyState",g=r.T.encloseNamespace(y);function b(e){var a,t,i=(null===(a=e.dashboard)||void 0===a?void 0:a.status)===m.GL.Archived;return n.createElement(d.D.Provider,{value:y},n.createElement(s.u,null,n.createElement(s.u.Image,{src:e.imageUrl,altText:g("headingForStreamable")}),e.isReadOnly?n.createElement(n.Fragment,null,n.createElement(s.u.Heading,null,n.createElement(d.x,{namespace:y,phrase:"headingForCurator"})),n.createElement(s.u.Info,null,n.createElement(d.x,{namespace:y,phrase:"info"})),n.createElement(u.u,{title:i?r.T.getPhrase(y,"archivedCtaTooltip"):"",spanHack:!0},n.createElement(s.u.Cta,{text:r.T.getPhrase(y,"add"),appLink:null===(t=e.addWidgetApplink)||void 0===t?void 0:t.call(e),className:"btn btn-dark",icon:p.vn.Plus,disabled:i}))):n.createElement(s.u.Heading,null,n.createElement(d.x,{phrase:"headingForStreamable"}))))}var v=t(99105),f=t(75553),h=t(49935),C=t(2605),E=t(7733),k=t(21366),T=t(9085);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 A(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t<a;t++)n[t]=e[t];return n}function O(e){var a,t,r,i,o,s,d=l.m.sortBy(null===(a=e.dashboard)||void 0===a?void 0:a.widgets,"index"),u=n.useMemo((function(){return d.reduce((function(e,a){return e[a.id]=!1,e}),{})}),[null==d?void 0:d.length]),p=(o=n.useState(u),s=2,function(e){if(Array.isArray(e))return e}(o)||function(e,a){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(t=t.call(e)).next,0===a){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=i.call(t)).done)&&(l.push(n.value),l.length!==a);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(o,s)||function(e,a){if(e){if("string"==typeof e)return A(e,a);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,a):void 0}}(o,s)||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.")}()),y=p[0],g=p[1];function O(a,t,n){var r,i=k.S.getWidgetParams(t,n,k.S.getDashboardTargetType(e.dashboard),null===(r=e.activeAudiences)||void 0===r?void 0:r.map((function(e){return e.masterId})));return e.getWidgetContentRequest(a,i,n)}var w=n.useCallback((function(e,a){if(y[e]!==a){var t=Object.assign(Object.assign({},y),function(e,a,t){var n;return n=function(e,a){if("object"!=L(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(a),(a="symbol"==L(n)?n:n+"")in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}({},e,a));g(t)}}),[y,d]),S=!(null==d?void 0:d.length)||Object.values(y).every((function(e){return!!e}));return n.createElement(n.Fragment,null,!!d.length&&n.createElement(n.Fragment,null,e.company?n.createElement(f.p,{heading:e.company.name,logo:e.company.logo,alignLogoLeft:!0,banner:e.company.banner,imageCdnUrl:e.imageCdnUrl,blockColourClass:(0,T.x)(e.company.name,E.o),actions:null===(t=e.getBannerActions)||void 0===t?void 0:t.call(e),actionsDropdownClassName:"btn btn-outline-dark"}):n.createElement(f.v,null),n.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},n.createElement(h.Oo,{breadcrumbs:null===(r=e.getBreadcrumbs)||void 0===r?void 0:r.call(e)}),n.createElement(v.x,{audiences:e.audiences,activeAudiences:e.activeAudiences,disabled:e.isReadOnly,appLink:null===(i=e.appLinks)||void 0===i?void 0:i.audience()})),e.company.description&&n.createElement("div",{className:"mb-5"},n.createElement("span",{dangerouslySetInnerHTML:{__html:c.O.linkifyText(e.company.description)}})),n.createElement("div",null,d.map((function(a){return n.createElement(C.L,{key:a.id,id:a.id,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,getContentRequest:O,audiences:e.audiences,name:a.name,description:a.description,templateId:a.templateId,metadata:a.metadata,setIsEmpty:w,presentation:e.presentation,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===a.id,widgetTypeId:a.widgetId,yearGroups:e.yearGroups,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,isPreviewing:e.isReadOnly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,lazyLoad:e.lazyLoad,contentType:m.VH.Livestream,preferences:a.preferences})})))),S&&n.createElement(b,{dashboard:e.dashboard,isReadOnly:e.isReadOnly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var w=t(70275),S=t(25925),I=t(67058),P=t(89454),F=t(39151),U=t(80889),x=t(79612),D=t(69454),B=t(25301),R=t(99742),_=t(96359),j=t(41760),W=t(41135),H=t(97395),N={company:function(e,a){return{url:H._.urlBuilder("{gateway}/v1/objects/".concat(e),a),publicUrl:H._.urlBuilder("/api/objects/".concat(e),a),key:"company:".concat(e)}}},M=t(31700),q=t(73688),G=t(65751),z=t(6117),V=t(28400),Q=r.T.encloseNamespace("dashboard.companyDashboard");function Y(e){var a,t,r,l=o.a.useBasicFetch(F.L.config()),c=o.a.useBasicFetch(N.company(e.companyId,{query:"banner,logo"})),s=o.a.useBasicFetch(M.g.streamablePresentation()),d=o.a.useBasicFetch(s.data&&P.O.presentationAudiences(s.data.id,S.R.StreamableLearning)),u=D.T.getActiveAudiencesFromParams(d.data,e.queryParams),p=c.data&&function(e,a){return{audience:function(){return{application:W.O.DASHBOARD,action:_.e.Dashboard.COMPANY_DASHBOARD,args:[e.id,V.m.slugify(e.name)],params:a}}}}(c.data,e.queryParams),y=(0,q.B)({targetType:m.ku.Company,companyId:e.companyId,dashboardId:null===(a=e.queryParams)||void 0===a?void 0:a.dashboardId}),g=y.dashboard,b=y.isPreviewing;return(0,x.M)(B.CG.getDefaultMetadata({title:null===(t=c.data)||void 0===t?void 0:t.name,phraseContext:{phraseHandler:Q,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:z.f.getCanonicalLink(),allowIndexing:!0,product:j.L.PRODUCT_NAME})),n.useEffect((function(){g.hasCompleted&&!g.data&&i.Q.Ry.throw(new I.d)}),[g.data,g.hasCompleted]),l.hasCompleted&&g.hasCompleted&&s.hasCompleted&&d.hasCompleted&&c.hasCompleted?n.createElement("div",{className:"position-relative px-4"},!(!b||!g.data)&&n.createElement(w.a,{status:g.data.status,type:"company"}),n.createElement(O,{company:c.data,dashboard:g.data,getWidgetContentRequest:U._.dashboardWidgetContent,imageCdnUrl:null===(r=l.data)||void 0===r?void 0:r.imageCdnUrl,resourceThumbnailFallbackImageUrl:R.W.Fallbacks.RESOURCE_THUMBNAIL,presentation:s.data,widgetAppLinks:G.y,getBreadcrumbs:function(){return c.hasCompleted?[{name:Q("discover"),appLink:{application:W.O.DASHBOARD,action:_.e.Dashboard.HOME}},{name:c.data.name,active:!0}]:[]},hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},companyLogoFallbackUrl:R.W.StreamableLearning.LOGO,subTextType:"productionCompany",audiences:d.data,activeAudiences:u,appLinks:p,emptyImageUrl:R.W.EmptyStates.Topics.TOPIC,lazyLoad:!z.f.isBot()})):n.createElement(n.Fragment,null)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[7153],{49267:(r,e,t)=>{t.d(e,{a:()=>b});var n=t(23481),o=t(64364);function i(r){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},i(r)}function a(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,u(n.key),n)}}function u(r){var e=function(r,e){if("object"!=i(r)||!r)return r;var t=r[Symbol.toPrimitive];if(void 0!==t){var n=t.call(r,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(r);return"symbol"==i(e)?e:e+""}function c(r,e,t){return e=l(e),function(r,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r)}(r,s()?Reflect.construct(e,t||[],l(r).constructor):e.apply(r,t))}function s(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(r){}return(s=function(){return!!r})()}function l(r){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},l(r)}function f(r,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,e){return r.__proto__=e,r},f(r,e)}var y="shared.regionLockedResourceError",b=function(r){function e(){return function(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,[n.T.getPhrase(y,"title")])}return function(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&f(r,e)}(e,r),t=e,(o=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return n.T.getPhrase(y,"heading")}},{key:"description",get:function(){return n.T.getPhrase(y,"description")}}])&&a(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(o.H)},45445:(r,e,t)=>{t.d(e,{r:()=>w});var n=t(50242),o=t(81886),i=t(67058),a=t(23481),u=t(64364);function c(r){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},c(r)}function s(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,l(n.key),n)}}function l(r){var e=function(r,e){if("object"!=c(r)||!r)return r;var t=r[Symbol.toPrimitive];if(void 0!==t){var n=t.call(r,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(r);return"symbol"==c(e)?e:e+""}function f(r,e,t){return e=b(e),function(r,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r)}(r,y()?Reflect.construct(e,t||[],b(r).constructor):e.apply(r,t))}function y(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(r){}return(y=function(){return!!r})()}function b(r){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},b(r)}function d(r,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,e){return r.__proto__=e,r},d(r,e)}var p="shared.privateResourceError",v=function(r){function e(){return function(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,e,[a.T.getPhrase(p,"title")])}return function(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&d(r,e)}(e,r),t=e,(n=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return a.T.getPhrase(p,"heading")}},{key:"description",get:function(){return a.T.getPhrase(p,"description")}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(u.H),m=t(49267),g=t(49075),h={notFound:i.d,forbidden:{rating:v,yearLevel:v,region:m.a,privacy:v},badRequest:g._};function w(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r){var i;i="number"==typeof r?r:r.status;var a=Object.assign(Object.assign({},h),e);i&&o.Q.Ry.isStatusCodeError(i)&&(i!==n.o.NotFound?i!==n.o.Forbidden?t.badRequest||o.Q.Ry.throw(new a.badRequest):t.forbidden||o.Q.Ry.throw(new a.forbidden.privacy):t.notFound||o.Q.Ry.throw(new a.notFound))}}},98064:(r,e,t)=>{t.d(e,{D:()=>u});var n=t(99940),o=t(97395),i=t(75896),a=t(62803),u={domainLibraries:function(r,e,t,n){return{url:o._.urlBuilder("/api/domain/v2/me/libraries",{type:r,maxCategoryDepth:0}),key:"libraries:".concat(r.sort().join(":")),formatData:function(r){return r.map((function(r){return r.data}))},success:e,error:t,always:n}},libraryRequestLibraries:function(){return{url:"{gateway}/v1/library-requests/libraries",key:"libraries"}},librariesWithCategories:function(){return{url:o._.urlBuilder("/api/domain/v2/me/libraries",{type:["sharedLibrary","customLibrary","unpublishedCustomLibrary"],maxCategoryDepth:5}),key:"libraries:with:categories",normalize:!1}},librariesWithOwnerLogos:function(r,e,t,n){return r.sort(),{url:o._.urlBuilder("/api/domain/v2/objects",{query:a.v.LIBRARY_COLLECTION,id:r}),key:"libraries:owner:logo:".concat(r.join(",")),success:e,error:t,always:n}},library:function(r,e,t,n){return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(r),{query:a.v.LIBRARY}),key:"library:".concat(r),success:e,error:t,always:n}},exchange:function(r){return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(r),{query:"categorytree"}),key:"exchange"}},streamableLearning:function(){return{url:"{gateway}/v1/streamable-learning-library",key:"streamable:learning"}},librarySubscribers:function(r,e){var t={};return e&&(t.cursor=e),{url:o._.urlBuilder("{gateway}/v1/library-requests/libraries/".concat(r,"/subscribers"),t),key:"library:subscribers:".concat(r,":").concat(e)}},libraryOwner:function(r){return{url:"{gateway}/v1/library-requests/libraries/".concat(r,"/subscribers?ownerOnly=true"),key:"library:owner:".concat(r),formatData:function(r){return i.m.first(r.data)}}},updateSubscriberPermissions:function(r,e,t,o,i){return{url:"{gateway}/v1/libraries/".concat(r,"/library-request-permissions"),key:"update:subscriber:permissions:".concat(r,":").concat(e),type:n.k.PUT,data:{customerId:e,granted:t},invalidationKeys:["library:owner:".concat(r),"library:subscribers:".concat(r)],success:o,error:i}},removeSubscriber:function(r,e,t,o){return{url:"{gateway}/v1/objects/".concat(r,"/subscribedcustomers?memberId=").concat(e),key:"revoke:subscription:".concat(r,":").concat(e),type:n.k.DELETE,invalidationKeys:["library:subscribers:".concat(r)],success:t,error:o}},folder:function(r,e,t,n){return{url:"{gateway}/v1/objects/".concat(r,"?query=banner,libraries"),key:"library:folder:".concat(r),success:e,error:t,always:n}},folderParentTree:function(r,e,t,n){return{url:"/api/domain/v2/categories/".concat(r,"/parent-tree?includeAll=false"),key:"folder:parent:tree".concat(r),success:e,error:t,always:n}},childFolders:function(r,e,t,n,o){var i="{gateway}/v1/objects/".concat(r,"/categories?query={limit:100}thumbnail"),a="child:folders:".concat(r);return e&&(i+="&cursor=".concat(e),a+=":".concat(e)),{url:i,key:a,formatData:function(r){var e=r.data.sort((function(r,e){return r.name.toLowerCase().localeCompare(e.name.toLowerCase())}));return Object.assign(Object.assign({},r),{data:e})},success:t,error:n,always:o}},addToLibrary:function(r,e){var t=["folder","videos",r.metadata.destinationCategoryId,e].filter((function(r){return!!r})).join(":");return{url:"{gateway}/v1/library-requests",key:"add:".concat(r.objectId,":to:").concat(r.destinationLibraryId,":").concat(r.metadata.destinationCategoryId),type:n.k.POST,data:r,invalidationKeys:t}},libraries:function(){return{url:"{gateway}/v1/users/me/libraries",key:"objects:libraries"}}}},45719:(r,e,t)=>{t.d(e,{P:()=>l});var n=t(32735),o=t(70680),i=t(50242),a=t(91967),u=t(20354);function c(r){return function(r){if(Array.isArray(r))return s(r)}(r)||function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function(r,e){if(r){if("string"==typeof r)return s(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(r,e):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.")}()}function s(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function l(r,e,t){function i(r){if(r)return a.q.isFunction(e)?c(e(r)):c(r.data)}function s(r){var e,n;if(r)return t?t(r):null===(n=null===(e=r.pagination)||void 0===e?void 0:e.cursors)||void 0===n?void 0:n.next}return(0,o.v9)((0,n.useMemo)((function(){return function(e){if(a.q.isFunction(r)){for(var t=r,n=a.q.isFunction(r)&&t(),o=n&&u.a.getResponse(e,n),l=o&&o.isFetching,f=o&&o.statusCode,y=o&&o.hasCompleted,b=y,d=o&&o.shouldFetch,p=i(o&&o.data),v=s(o&&o.data),m=function(r){if(r)return null==r?void 0:r.count}(o&&o.data);v&&(o=u.a.getResponse(e,t(v)),l=l||o.isFetching,f=o.statusCode,y=o.hasCompleted,!o.shouldFetch);){var g=i(o.data);g&&p.push.apply(p,c(g));var h=s(o.data);v=h===v?null:h}var w={shouldInitialFetch:d,items:p,nextCursor:v,isFetching:l,statusCode:f,hasCompleted:y,hasFirstPageCompleted:b};return"number"==typeof m&&(w.totalItems=m),w}}}),[r]))}i.o.Ok}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[7689],{85473:(e,t,n)=>{n.d(t,{Z:()=>u});var i=n(32735),r=n(1048),a=n(57408),o=n(16107),l=n(54610),c=n(67453);const s={image:"vdd4V",thumbnail:"Ez0E7",tallPoster:"H9bQA",cover:"Nudts",banner:"IOvDH",poster:"iiY56",pdf:"aDJiJ",link:"wDpui"};function d(e){var t=s.image,n="";return e.imageType===l.__.Thumbnails&&(n="thumbnail ".concat(s.thumbnail)),e.imageType===l.__.TallPosters&&(n=s.tallPoster),e.imageType===l.__.Covers&&(n=s.cover),e.imageType===l.__.Banners&&(n=s.banner),e.imageType===l.__.Posters&&(n=s.poster),e.imageType===l.__.Pdf&&(n=s.pdf),e.imageType===l.__.Link&&(n=s.link),n&&(t+=" ".concat(n)),e.className&&(t+=" ".concat(e.className)),t}function u(e){var t=e.data,n=e.imageOptions,l=e.appLink,s=e.preload,u=e.preventLoad,p=e.analyticsOptions,v=e.analyticsData,g=e.imageClassName,h=e.alt,m="";"string"==typeof t?m=t:r.t.isObject(t)&&(m=t.url);var f=m&&n?c.j.createUrl(m,n):m;return i.createElement("div",{className:d(e),style:e.imageStyle},i.createElement(a.F,{appLink:l,analyticsData:v,analyticsOptions:p,onClick:e.onClick},e.children,f&&i.createElement(o.w,{src:f,alt:h,forceLoad:s,preventLoad:u,extraClasses:g,errorFallbackImageSrc:e.errorFallbackImageSrc})))}},71063:(e,t,n)=>{n.d(t,{M:()=>i});var i={WELCOME_POPUP_SELECTOR:"welcome-dialog",RESOURCE_ITEM_SELECTOR:"resource-item",GLOBAL_PLAYER_SELECTOR:"global-player"}},5960:(e,t,n)=>{var i,r;n.d(t,{H:()=>r,X:()=>i}),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"}(i||(i={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(r||(r={}))},25301:(e,t,n)=>{n.d(t,{CG:()=>y});var i,r=n(23481),a=n(110),o=n(71063);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e,t,n){var i;return i=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==l(i)?i:i+"")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"}(i||(i={}));var d=r.T.encloseNamespace("shared.shared-utils"),u=/^(.*)\s/,p="pageTitle",v="pageDescription",g=s(s(s(s(s(s({},"au",i.AU),"gb",i.UK),"us",i.US),i.AU,"au"),i.UK,"gb"),i.US,"us");function h(e){return e?e.substring(0,e.length-3)+"...":""}function m(e){var t,n,i=e.title,r=e.phraseContext,a=e.product,o=void 0===a?"ClickView":a;if(!i)return"";if(!r)return d(p,{title:i,product:o});var l=70-(null!==(n=null===(t=r.phraseHandler(r.titlePhrase,{value:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);return i.length>=l?d(p,{title:i,product:o}):r.phraseHandler(r.titlePhrase,{title:i})}function f(e){var t,n,i,r,a,o=e.title,l=e.description,c=e.phraseContext,s=h((160,(a=l||o)?a.substring(0,160):""));if(!c)return d(v,{description:s});var p=160-(null!==(n=null===(t=c.phraseHandler(c.descriptionPhrase,{title:"",description:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);if((null==o?void 0:o.length)>=p)return d(v,{description:s});var g=h(function(e,t,n){if(!e)return"";var i=160-n;if(e.length<=i)return e;var r=e.slice(0,i),a=r.match(u);return a?a[1]:r}(l,0,null!==(r=null===(i=c.phraseHandler(c.descriptionPhrase,{title:o,description:""}))||void 0===i?void 0:i.length)&&void 0!==r?r:0));return c.phraseHandler(c.descriptionPhrase,{title:o,description:g})}function b(e,t){var n;return null!==(n=null==e?void 0:e.reduce((function(e,n){var i,r,a,o=null===(i=g[n.contentRegion])||void 0===i?void 0:i.toUpperCase();return(null===(r=n.id)||void 0===r?void 0:r.toString())===(null==t?void 0:t.toString())&&o?[].concat(function(e){if(Array.isArray(e))return c(e)}(a=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(a)||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.")}(),[{"@type":"Place",name:o}]):e}),[]))&&void 0!==n?n:[]}function C(e,t,n){var i;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===(i=null==e?void 0:e.thumbnail)||void 0===i?void 0:i.url,uploadDate:null==e?void 0:e.dateCreated,duration:a.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:b(n,null==e?void 0:e.id),potentialAction:{"@type":"WatchAction",actionAccessibilityRequirement:{"@type":"ActionAccessSpecification",requiresSubscription:!0}}}}var y={getDefaultMetadata:function(e){var t=e.title,n=e.description,i=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing,o=e.hrefLang;return{title:m({title:t,phraseContext:r,product:e.product}),description:f({title:t,description:n,phraseContext:r}),canonicalLink:i,allowIndexing:a,hrefLang:o}},getVideoMetadata:function(e){var t=e.content,n=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing,a=e.hrefLang,o=e.regionAlternatives,l=e.product;return{title:m({title:null==t?void 0:t.name,phraseContext:i,product:l}),description:f({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:i}),jsonLd:C(t,n,o),canonicalLink:n,allowIndexing:r,hrefLang:a}},getClipMetadata:function(e){var t,n=e.content,i=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing;return{title:m({title:null==n?void 0:n.name,phraseContext:r}),description:f({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:r}),canonicalLink:i,allowIndexing:a}},getInteractiveMetadata:function(e){var t,n=e.content,i=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing;return{title:m({title:null==n?void 0:n.name,phraseContext:r}),description:f({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:r}),canonicalLink:i,allowIndexing:a}},getPlaylistMetadata:function(e){var t=e.content,n=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing;return{title:m({title:null==t?void 0:t.name,phraseContext:i}),description:f({title:null==t?void 0:t.name,phraseContext:i}),canonicalLink:n,allowIndexing:r}},getSeriesMetadata:function(e){var t=e.content,n=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing;return{title:m({title:null==t?void 0:t.name,phraseContext:i}),description:f({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:i}),canonicalLink:n,allowIndexing:r}},getClassificationMetadata:function(e){var t=e.content,n=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing,a=e.hrefLang,o=e.product;return{title:m({title:null==t?void 0:t.name,phraseContext:i,product:o}),description:f({title:null==t?void 0:t.name,phraseContext:i}),canonicalLink:n,allowIndexing:r,hrefLang:a}},getDiscoverMetadata:function(e){var t=e.content,n=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing,a=e.hrefLang,o=e.product;return{title:m({title:null==t?void 0:t.name,phraseContext:i,product:o}),description:f({title:null==t?void 0:t.name,phraseContext:i}),canonicalLink:n,allowIndexing:r,hrefLang:a}}}},41760:(e,t,n)=>{n.d(t,{L:()=>i});var i={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"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[7925],{7925:(e,t,n)=>{n.r(t),n.d(t,{DialogView:()=>i});var c=n(32735),l=n(91967),o=n(75896),s=n(28400),a=n(58960);function i(e){var t=e.buttons.map((function(t){return{buttonText:t.text,className:t.className,onClick:function(){t.success?l.q.isFunction(e.onDone)&&e.onDone():l.q.isFunction(e.onFail)&&e.onFail(),e.closePopup()},type:t.type,close:t.close}}));return t=o.m.sortBy(t,"close"),c.createElement(a.G,{title:e.title,closePopup:e.closePopup},c.createElement("p",{dangerouslySetInnerHTML:{__html:s.m.sanitize(e.text)}}),c.createElement("div",{className:"d-flex justify-content-end border-top pt-3 px-3 mx-n3"},t.map((function(e,t){return c.createElement("button",{key:t,className:e.className,onClick:e.onClick,type:e.type},e.buttonText)}))))}}}]);
|