@clickview/reports 0.43.1-rc.2 → 0.44.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/css/{194-reports-c62eb64bbf.chunk.css → 194-reports-183e760212.chunk.css} +1 -1
- package/dist/css/{592-reports-ec968887ff.chunk.css → 592-reports-6a4d6517b8.chunk.css} +1 -1
- package/dist/css/{607-reports-20616efe7f.chunk.css → 607-reports-ba31e4900b.chunk.css} +12 -12
- package/dist/css/{reports-app-1292011fc9.css → reports-app-a5d2b241b2.css} +3 -3
- package/dist/languages/en.json +1 -1
- package/dist/scripts/{120-8d57d5277a-reports.chunk.js → 120-e9230a234e-reports.chunk.js} +1 -1
- package/dist/scripts/{156-2242650920-reports.chunk.js → 156-59db8ea3fa-reports.chunk.js} +1 -1
- package/dist/scripts/169-a0f10a0ac3-reports.chunk.js +1 -0
- package/dist/scripts/246-c123a53cb3-reports.chunk.js +1 -0
- package/dist/scripts/309-7ca9758813-reports.chunk.js +1 -0
- package/dist/scripts/{356-a485ad2e46-reports.chunk.js → 356-00060efdd2-reports.chunk.js} +1 -1
- package/dist/scripts/50-c28c2059e4-reports.chunk.js +2 -0
- package/dist/scripts/521-68253fec3e-reports.chunk.js +1 -0
- package/dist/scripts/572-aac1afa908-reports.chunk.js +1 -0
- package/dist/scripts/607-77aa1b9b1c-reports.chunk.js +2 -0
- package/dist/scripts/{612-45f07c2d3e-reports.chunk.js → 612-d5c934fd78-reports.chunk.js} +1 -1
- package/dist/scripts/{651-5436855eab-reports.chunk.js → 651-94a258cbc6-reports.chunk.js} +1 -1
- package/dist/scripts/755-87fb860465-reports.chunk.js +1 -0
- package/dist/scripts/{837-995ae88e61-reports.chunk.js → 837-9f0b8267c8-reports.chunk.js} +1 -1
- package/dist/scripts/{876-04b6313339-reports.chunk.js → 876-1b08a01a84-reports.chunk.js} +1 -1
- package/dist/scripts/997-7dc2d935a7-reports.chunk.js +1 -0
- package/dist/scripts/bundle-df7059db47.min.js +2 -0
- package/package.json +1 -1
- package/dist/scripts/169-e193d98801-reports.chunk.js +0 -1
- package/dist/scripts/29-d97ea38535-reports.chunk.js +0 -1
- package/dist/scripts/521-6b9a3f2dcf-reports.chunk.js +0 -1
- package/dist/scripts/572-60cdde4edb-reports.chunk.js +0 -1
- package/dist/scripts/607-e952489249-reports.chunk.js +0 -2
- package/dist/scripts/755-5f761aaeaf-reports.chunk.js +0 -1
- package/dist/scripts/998-5cc3e34891-reports.chunk.js +0 -2
- package/dist/scripts/bundle-d8f82f764c.min.js +0 -2
- /package/dist/scripts/{109-3df5846231-reports.chunk.js → 109-103175d9c8-reports.chunk.js} +0 -0
- /package/dist/scripts/{194-4a972c85eb-reports.chunk.js → 194-0d0941dd86-reports.chunk.js} +0 -0
- /package/dist/scripts/{198-d84ffad5ab-reports.chunk.js → 198-4d59523773-reports.chunk.js} +0 -0
- /package/dist/scripts/{421-417640b6df-reports.chunk.js → 421-1d1950f52f-reports.chunk.js} +0 -0
- /package/dist/scripts/{998-5cc3e34891-reports.chunk.js.LICENSE.txt → 50-c28c2059e4-reports.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{592-26c75aa476-reports.chunk.js → 592-8444c6682e-reports.chunk.js} +0 -0
- /package/dist/scripts/{603-bd70447922-reports.chunk.js → 603-101cdfd058-reports.chunk.js} +0 -0
- /package/dist/scripts/{607-e952489249-reports.chunk.js.LICENSE.txt → 607-77aa1b9b1c-reports.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{616-096188aba4-reports.chunk.js → 616-c0ef0b997b-reports.chunk.js} +0 -0
- /package/dist/scripts/{651-5436855eab-reports.chunk.js.LICENSE.txt → 651-94a258cbc6-reports.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{726-938b8d7a6d-reports.chunk.js → 726-82d11b32bb-reports.chunk.js} +0 -0
- /package/dist/scripts/{731-78433d2097-reports.chunk.js → 731-a2d2aaca23-reports.chunk.js} +0 -0
- /package/dist/scripts/{864-5fb05e1b85-reports.chunk.js → 864-ebbaccb5f7-reports.chunk.js} +0 -0
- /package/dist/scripts/{bundle-d8f82f764c.min.js.LICENSE.txt → bundle-df7059db47.min.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[120],{30321:(t,e,r)=>{r.d(e,{b:()=>ht});var n=r(32735),o=r(81886),i=r(20354),c=r(49267),u=r(49075),a=r(23481),f=r(31908);function l(t){return l="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},l(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function p(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function y(t,e,r){return e=v(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,b()?Reflect.construct(e,r||[],v(t).constructor):e.apply(t,r))}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(b=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var m=a.T.encloseNamespace("shared.loginRequired"),h=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=y(this,e,[m("title")])).video=t,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"LoginRequiredError"}},{key:"heading",get:function(){return m("title")}},{key:"description",get:function(){return t=this.video,f.M.isClip(t)?m("clipDescription"):f.M.isInteractive(t)?m("interactiveDescription"):m("videoDescription");var t}}])&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(o.Q.jj),w=r(64364);function O(t){return O="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},O(t)}function j(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,g(n.key),n)}}function g(t){var e=function(t,e){if("object"!=O(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==O(e)?e:e+""}function P(t,e,r){return e=S(e),function(t,e){if(e&&("object"==O(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_()?Reflect.construct(e,r||[],S(t).constructor):e.apply(t,r))}function _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}var E=a.T.encloseNamespace("shared.videoNotInSubscriptionError"),k=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=P(this,e,["VideoNotInSubscriptionError"])).video=t,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&T(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"VideoNotInSubscriptionError"}},{key:"heading",get:function(){return E("title")}},{key:"description",get:function(){return E("description")}}])&&j(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(w.H);function R(t){return R="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},R(t)}function C(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,D(n.key),n)}}function D(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==R(e)?e:e+""}function I(t,e,r){return e=B(e),function(t,e){if(e&&("object"==R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,M()?Reflect.construct(e,r||[],B(t).constructor):e.apply(t,r))}function M(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(M=function(){return!!t})()}function B(t){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},B(t)}function N(t,e){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},N(t,e)}var V=a.T.encloseNamespace("shared.parentVideoDeletedError");function x(t){return f.M.isClip(t)?V("clipTitle"):f.M.isInteractive(t)?V("interactiveTitle"):V("videoTitle")}var H=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=I(this,e,[x(t)])).video=t,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&N(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"ParentVideoDeletedError"}},{key:"heading",get:function(){return x(this.video)}},{key:"description",get:function(){return t=this.video,f.M.isClip(t)?V("clipDescription"):f.M.isInteractive(t)?V("interactiveDescription"):V("videoDescription");var t}}])&&C(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(w.H);function F(t){return F="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},F(t)}function q(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,A(n.key),n)}}function A(t){var e=function(t,e){if("object"!=F(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=F(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==F(e)?e:e+""}function U(t,e,r){return e=Q(e),function(t,e){if(e&&("object"==F(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,z()?Reflect.construct(e,r||[],Q(t).constructor):e.apply(t,r))}function z(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(z=function(){return!!t})()}function Q(t){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Q(t)}function G(t,e){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},G(t,e)}var K=a.T.encloseNamespace("shared.videoPrivateError");function L(t){return f.M.isClip(t)?K("clipTitle"):f.M.isInteractive(t)?K("interactiveTitle"):K("videoTitle")}var W=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=U(this,e,[L(t)])).video=t,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&G(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"VideoPrivateError"}},{key:"heading",get:function(){return L(this.video)}},{key:"description",get:function(){return t=this.video,f.M.isClip(t)?K("clipDescription"):f.M.isInteractive(t)?K("interactiveDescription"):K("videoDescription");var t}}])&&q(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(w.H);function J(t){return J="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},J(t)}function X(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Y(n.key),n)}}function Y(t){var e=function(t,e){if("object"!=J(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=J(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==J(e)?e:e+""}function Z(t,e,r){return e=tt(e),function(t,e){if(e&&("object"==J(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,$()?Reflect.construct(e,r||[],tt(t).constructor):e.apply(t,r))}function $(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($=function(){return!!t})()}function tt(t){return tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tt(t)}function et(t,e){return et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},et(t,e)}var rt=a.T.encloseNamespace("shared.videoRatingAccess");function nt(t){return f.M.isClip(t)?rt("clipTitle"):f.M.isInteractive(t)?rt("interactiveTitle"):rt("videoTitle")}var ot=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=Z(this,e,[nt(t)])).video=t,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&et(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"VideoRatingAccessError"}},{key:"heading",get:function(){return nt(this.video)}},{key:"description",get:function(){return t=this.video,f.M.isClip(t)?rt("clipDescription"):f.M.isInteractive(t)?rt("interactiveDescription"):rt("videoDescription");var t}}])&&X(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(w.H);function it(t){return it="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},it(t)}function ct(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ut(n.key),n)}}function ut(t){var e=function(t,e){if("object"!=it(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=it(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==it(e)?e:e+""}function at(t,e,r){return e=lt(e),function(t,e){if(e&&("object"==it(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ft()?Reflect.construct(e,r||[],lt(t).constructor):e.apply(t,r))}function ft(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ft=function(){return!!t})()}function lt(t){return lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lt(t)}function st(t,e){return st=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},st(t,e)}var pt=a.T.encloseNamespace("shared.videoRestrictedError");function yt(t){return f.M.isClip(t)?pt("clipTitle"):f.M.isInteractive(t)?pt("interactiveTitle"):pt("videoTitle")}var bt=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=at(this,e,[yt(t)])).video=t,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&st(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"VideoRestrictedError"}},{key:"heading",get:function(){return yt(this.video)}},{key:"description",get:function(){return t=this.video,f.M.isClip(t)?pt("clipDescription"):f.M.isInteractive(t)?pt("interactiveDescription"):pt("videoDescription");var t}}])&&ct(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(w.H),vt=r(31949),dt={"rating-not-allowed":ot,"video-deleted":H,private:W,"clickview-private":k,"login-required":h,"restricted-access":bt,"content-region-violated":c.a},mt=Object.assign(Object.assign({},dt),{private:h,"clickview-private":h}),ht=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.a.useBasicFetch(vt.N.currentUser());n.useEffect((function(){var n;if(t.hasCompleted&&r.hasCompleted){var i=t.data;if(i){var c=f.M.getCanBeConsumed(i),a=c.canConsume,l=c.reason;if(!a){var s=null!==(n=Object.assign(Object.assign({},r.data.isAuthenticated?dt:mt),e)[null!=l?l:"private"])&&void 0!==n?n:u._;o.Q.Ry.throw(new s(i))}}}}),[t.hasCompleted,r.hasCompleted])}},39553:(t,e,r)=>{r.d(e,{W:()=>u});var n=r(20354),o=r(31949),i=r(94884),c=r(99827);function u(t,e){var r,u=(0,c.R)(),a=n.a.useBasicFetch(o.N.currentUser()),f=n.a.useBasicFetch(!!t&&i.b.interactiveMetadata(t)),l=n.a.useBasicFetch(!!(null===(r=f.data)||void 0===r?void 0:r.interactiveId)&&i.b.interactive(f.data.interactiveId)),s=!(!a.data||!l.data||!e&&!u);return n.a.useBasicFetch(s&&i.b.interactiveResultSet(f.data.interactiveId,f.data.id,a.data,null!=e?e:u))}},94884:(t,e,r)=>{r.d(e,{b:()=>c});var n=r(99940),o=r(82974);function i(t,e){return{currentUserId:t.id,currentCustomerId:t.customerId,dateRange:{start:e.start,end:e.end},userIds:e.userId,classroomsAndGroups:e.groupId}}var c={interactiveMetadata:function(t,e,r,n){return{url:"{gateway}/v1/objects/".concat(t,"?query=_canBeConsumed,_thumbnail,_parentVideo[rating],_parentClip"),key:"interactive:metadata:".concat(t),success:e,error:r,always:n}},interactive:function(t,e,r,n){return{url:"/api/domain/v1/interactives/".concat(t),key:"interactive:".concat(t),success:e,error:r,always:n}},interactiveResultSet:function(t,e,r,c,u,a,f){return{url:"/api/domain/v2/analytics/interactives/".concat(t,"/metadata/").concat(e),key:(0,o.H)("interactive:result:set:".concat(t,":").concat(e),c),data:i(r,c),type:n.k.POST,normalize:!1,success:u,error:a,always:f}},mark:function(t,e,r,o,i,c,u){return{url:"/api/domain/v1/analytics/answers/".concat(r),key:"mark:answer:".concat(r,":").concat(o.resultId),type:n.k.PUT,data:o,normalize:!1,invalidationKeys:"interactive:result:set:".concat(t,":").concat(e),success:i,error:c,always:u}}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[120],{30321:(t,e,r)=>{r.d(e,{b:()=>ht});var n=r(32735),o=r(81886),i=r(20354),c=r(49267),u=r(49075),a=r(23481),f=r(31908);function l(t){return l="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},l(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function p(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function y(t,e,r){return e=v(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,b()?Reflect.construct(e,r||[],v(t).constructor):e.apply(t,r))}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(b=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var m=a.T.encloseNamespace("shared.loginRequired"),h=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=y(this,e,[m("title")])).video=t,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"LoginRequiredError"}},{key:"heading",get:function(){return m("title")}},{key:"description",get:function(){return t=this.video,f.M.isClip(t)?m("clipDescription"):f.M.isInteractive(t)?m("interactiveDescription"):m("videoDescription");var t}}])&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(o.Q._R),w=r(64364);function O(t){return O="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},O(t)}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,j(n.key),n)}}function j(t){var e=function(t,e){if("object"!=O(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==O(e)?e:e+""}function P(t,e,r){return e=S(e),function(t,e){if(e&&("object"==O(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_()?Reflect.construct(e,r||[],S(t).constructor):e.apply(t,r))}function _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}var E=a.T.encloseNamespace("shared.videoNotInSubscriptionError"),k=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=P(this,e,["VideoNotInSubscriptionError"])).video=t,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&T(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"VideoNotInSubscriptionError"}},{key:"heading",get:function(){return E("title")}},{key:"description",get:function(){return E("description")}}])&&g(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(w.H);function R(t){return R="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},R(t)}function C(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,D(n.key),n)}}function D(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==R(e)?e:e+""}function I(t,e,r){return e=B(e),function(t,e){if(e&&("object"==R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,M()?Reflect.construct(e,r||[],B(t).constructor):e.apply(t,r))}function M(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(M=function(){return!!t})()}function B(t){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},B(t)}function N(t,e){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},N(t,e)}var V=a.T.encloseNamespace("shared.parentVideoDeletedError");function x(t){return f.M.isClip(t)?V("clipTitle"):f.M.isInteractive(t)?V("interactiveTitle"):V("videoTitle")}var H=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=I(this,e,[x(t)])).video=t,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&N(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"ParentVideoDeletedError"}},{key:"heading",get:function(){return x(this.video)}},{key:"description",get:function(){return t=this.video,f.M.isClip(t)?V("clipDescription"):f.M.isInteractive(t)?V("interactiveDescription"):V("videoDescription");var t}}])&&C(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(w.H);function F(t){return F="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},F(t)}function q(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,A(n.key),n)}}function A(t){var e=function(t,e){if("object"!=F(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=F(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==F(e)?e:e+""}function U(t,e,r){return e=Q(e),function(t,e){if(e&&("object"==F(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,z()?Reflect.construct(e,r||[],Q(t).constructor):e.apply(t,r))}function z(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(z=function(){return!!t})()}function Q(t){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Q(t)}function G(t,e){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},G(t,e)}var K=a.T.encloseNamespace("shared.videoPrivateError");function L(t){return f.M.isClip(t)?K("clipTitle"):f.M.isInteractive(t)?K("interactiveTitle"):K("videoTitle")}var W=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=U(this,e,[L(t)])).video=t,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&G(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"VideoPrivateError"}},{key:"heading",get:function(){return L(this.video)}},{key:"description",get:function(){return t=this.video,f.M.isClip(t)?K("clipDescription"):f.M.isInteractive(t)?K("interactiveDescription"):K("videoDescription");var t}}])&&q(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(w.H);function J(t){return J="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},J(t)}function X(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Y(n.key),n)}}function Y(t){var e=function(t,e){if("object"!=J(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=J(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==J(e)?e:e+""}function Z(t,e,r){return e=tt(e),function(t,e){if(e&&("object"==J(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,$()?Reflect.construct(e,r||[],tt(t).constructor):e.apply(t,r))}function $(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($=function(){return!!t})()}function tt(t){return tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tt(t)}function et(t,e){return et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},et(t,e)}var rt=a.T.encloseNamespace("shared.videoRatingAccess");function nt(t){return f.M.isClip(t)?rt("clipTitle"):f.M.isInteractive(t)?rt("interactiveTitle"):rt("videoTitle")}var ot=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=Z(this,e,[nt(t)])).video=t,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&et(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"VideoRatingAccessError"}},{key:"heading",get:function(){return nt(this.video)}},{key:"description",get:function(){return t=this.video,f.M.isClip(t)?rt("clipDescription"):f.M.isInteractive(t)?rt("interactiveDescription"):rt("videoDescription");var t}}])&&X(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(w.H);function it(t){return it="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},it(t)}function ct(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ut(n.key),n)}}function ut(t){var e=function(t,e){if("object"!=it(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=it(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==it(e)?e:e+""}function at(t,e,r){return e=lt(e),function(t,e){if(e&&("object"==it(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ft()?Reflect.construct(e,r||[],lt(t).constructor):e.apply(t,r))}function ft(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ft=function(){return!!t})()}function lt(t){return lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lt(t)}function st(t,e){return st=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},st(t,e)}var pt=a.T.encloseNamespace("shared.videoRestrictedError");function yt(t){return f.M.isClip(t)?pt("clipTitle"):f.M.isInteractive(t)?pt("interactiveTitle"):pt("videoTitle")}var bt=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=at(this,e,[yt(t)])).video=t,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&st(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"VideoRestrictedError"}},{key:"heading",get:function(){return yt(this.video)}},{key:"description",get:function(){return t=this.video,f.M.isClip(t)?pt("clipDescription"):f.M.isInteractive(t)?pt("interactiveDescription"):pt("videoDescription");var t}}])&&ct(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(w.H),vt=r(31949),dt={"rating-not-allowed":ot,"video-deleted":H,private:W,"clickview-private":k,"login-required":h,"restricted-access":bt,"content-region-violated":c.a},mt=Object.assign(Object.assign({},dt),{private:h,"clickview-private":h}),ht=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.a.useBasicFetch(vt.N.currentUser());n.useEffect((function(){var n;if(t.hasCompleted&&r.hasCompleted){var i=t.data;if(i){var c=f.M.getCanBeConsumed(i),a=c.canConsume,l=c.reason;if(!a){var s=null!==(n=Object.assign(Object.assign({},r.data.isAuthenticated?dt:mt),e)[null!=l?l:"private"])&&void 0!==n?n:u._;o.Q.Ry.throw(new s(i))}}}}),[t.hasCompleted,r.hasCompleted])}},39553:(t,e,r)=>{r.d(e,{W:()=>u});var n=r(20354),o=r(31949),i=r(94884),c=r(99827);function u(t,e){var r,u=(0,c.R)(),a=n.a.useBasicFetch(o.N.currentUser()),f=n.a.useBasicFetch(!!t&&i.b.interactiveMetadata(t)),l=n.a.useBasicFetch(!!(null===(r=f.data)||void 0===r?void 0:r.interactiveId)&&i.b.interactive(f.data.interactiveId)),s=!(!a.data||!l.data||!e&&!u);return n.a.useBasicFetch(s&&i.b.interactiveResultSet(f.data.interactiveId,f.data.id,a.data,null!=e?e:u))}},94884:(t,e,r)=>{r.d(e,{b:()=>c});var n=r(99940),o=r(82974);function i(t,e){return{currentUserId:t.id,currentCustomerId:t.customerId,dateRange:{start:e.start,end:e.end},userIds:e.userId,classroomsAndGroups:e.groupId}}var c={interactiveMetadata:function(t,e,r,n){return{url:"{gateway}/v1/objects/".concat(t,"?query=_canBeConsumed,_thumbnail,_parentVideo[rating],_parentClip"),key:"interactive:metadata:".concat(t),success:e,error:r,always:n}},interactive:function(t,e,r,n){return{url:"/api/domain/v1/interactives/".concat(t),key:"interactive:".concat(t),success:e,error:r,always:n}},interactiveResultSet:function(t,e,r,c,u,a,f){return{url:"/api/domain/v2/analytics/interactives/".concat(t,"/metadata/").concat(e),key:(0,o.H)("interactive:result:set:".concat(t,":").concat(e),c),data:i(r,c),type:n.k.POST,normalize:!1,success:u,error:a,always:f}},mark:function(t,e,r,o,i,c,u){return{url:"/api/domain/v1/analytics/answers/".concat(r),key:"mark:answer:".concat(r,":").concat(o.resultId),type:n.k.PUT,data:o,normalize:!1,invalidationKeys:"interactive:result:set:".concat(t,":").concat(e),success:i,error:c,always:u}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[156],{32119:(e,t,n)=>{n.d(t,{G:()=>o});var r=n(32735),a=n(71365);function o(e){var t,n;return t=e,n=a.u.getInstance(t),r.useEffect((function(){return function(){a.u.releaseInstance(t)}})),n}},10731:(e,t,n)=>{n.d(t,{V:()=>o});var r=n(32735);const a={emoji:"d86p2"};function o(e){return r.createElement(r.Fragment,null,r.createElement("span",{className:a.emoji},e.emoji),e.children)}},2849:(e,t,n)=>{n.d(t,{E:()=>S});var r=n(32735),a=n(23481),o=n(57900),i=n(92582),c=n(65858),l=n(57408),s=n(39202);function u(e){var t=e.href,n=e.className,a=e.newTab,o=e.children,c={onClick:function(n){var r;n.preventDefault(),null===(r=e.onClick)||void 0===r||r.call(e,n),e.analyticsData&&e.analyticsOptions&&i.k.logUserAction(Object.assign({href:t},e.analyticsData),e.analyticsOptions),s.Ab.PageLoad(t,a)},href:t,className:n};return r.createElement("a",Object.assign({},c),o)}var m=n(83914),d=n(83345),f=n(86764),p=n(3747),y=n(35223);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var v="shared.productBanner",g=a.T.encloseNamespace(v),h=function(e){var t=e.analyticsData,n=e.analyticsOptions,a=e.externalUrl;return r.createElement("div",{className:"d-flex align-items-center py-3 pe-3 mb-3 box-shadow ".concat("fUBkC")},r.createElement("p",{className:"mb-0 ps-3 text-dark d-inline-block"},r.createElement("span",{className:"fw-bold"},g("eduScotHeading")),r.createElement("div",null,g("eduScotBody")))," ",r.createElement(u,{className:"ms-auto btn btn-outline-dark fw-bold text-nowrap",href:a,newTab:!0,analyticsData:t,analyticsOptions:i.k.mergeOptions(n,{actionType:c.Vw.Click,entity:c.py.Url,descriptor:c._S.ExternalLink})},g("eduScotCta")))},E=function(e){var t=e.analyticsData,n=e.analyticsOptions,a=e.appLink;return r.createElement("div",{className:"bg-white d-flex align-items-center py-2 pe-3 mb-3 box-shadow"},r.createElement("p",{className:"mb-0 px-3 pe-2"},r.createElement("span",{className:"fw-bold"},g("albertHeading",{emoji:"🔎"}))," ",g("albertBody")),r.createElement(l.F,{className:"ms-auto btn btn-outline-dark fw-bold",appLink:a,analyticsData:t,analyticsOptions:i.k.mergeOptions(n,{actionType:c.Vw.Click,entity:c.py.Url,descriptor:c._S.Button})},g("albertCta")))},w=function(e){var t=e.analyticsData,n=e.analyticsOptions,a=e.appLink;return r.createElement("div",{className:"".concat("_8PwEI"," bg-white mb-3 box-shadow")},r.createElement("div",{className:"px-4 py-3"},r.createElement("h2",{className:"h4"},g("albertHeading",{emoji:""})),r.createElement("p",{className:""}," ",g("albertBody")," "),r.createElement(l.F,{className:"btn btn-outline-dark fw-bold",appLink:a,analyticsData:t,analyticsOptions:i.k.mergeOptions(n,{actionType:c.Vw.Click,entity:c.py.Url,descriptor:c._S.Button})},g("albertCta"))))},N=function(){return r.createElement("div",{className:"bg-blue text-white text-center py-2 mb-3 box-shadow"},r.createElement("p",{className:"mb-0"},r.createElement(d.x,{namespace:v,phrase:"moviesAndTv"})))},O=function(e){var t=e.onClick,n=e.styleOptions,a=e.appLink;return r.createElement("div",{className:"py-4 px-3 mb-3 rounded h4 position-relative ".concat("ja6Bm"),style:{backgroundImage:n.backgroundImage}},g("analyticsHeading"),r.createElement(l.F,{className:"btn btn-outline-dark ms-3",appLink:a},g("analyticsCta")),r.createElement("div",{className:"cursor-pointer position-absolute ".concat("d7mQ8"),onClick:t},r.createElement(m.x,{svgName:y.vn.Close})))};function S(e){var t,n,a=o.SG.get(e.localStorageKey),l=(t=r.useState(!a),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,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}}(t,n)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(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.")}()),s=l[0],u=l[1],m=(0,p.a)(f.r.LGDown),d=Object.assign(Object.assign({},e.analyticsData),{bannerType:e.type}),y=i.k.mergeOptions(e.analyticsOptions,{location:c.LZ.ProductBanner}),v=e.type;return v&&s?"eduscot"===v?r.createElement(h,{analyticsData:d,analyticsOptions:y,externalUrl:e.externalUrl}):"albert"===v?m?r.createElement(E,{appLink:e.appLink,analyticsData:Object.assign(Object.assign({},d),{bannerType:"albert-info"}),analyticsOptions:y}):r.createElement(w,{appLink:e.appLink,analyticsData:Object.assign(Object.assign({},d),{bannerType:"albert"}),analyticsOptions:y}):"moviesAndTv"===v?r.createElement(N,null):"analytics"===v?r.createElement(O,{onClick:function(){e.localStorageKey&&(o.SG.set(e.localStorageKey,"1"),u(!1))},styleOptions:e.styleOptions,appLink:e.appLink}):r.createElement(r.Fragment,null):r.createElement(r.Fragment,null)}},49267:(e,t,n)=>{n.d(t,{a:()=>f});var r=n(23481),a=n(64364);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(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"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}function l(e,t,n){return t=u(t),function(e,t){if(t&&("object"==o(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,s()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var d="shared.regionLockedResourceError",f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,t,[r.T.getPhrase(d,"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,(a=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return r.T.getPhrase(d,"heading")}},{key:"description",get:function(){return r.T.getPhrase(d,"description")}}])&&i(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(a.H)},69883:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(79976),a=n(60139),o=n(32119);function i(){var e=(0,o.G)(r.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:a.NK.Warning,heading:a.R6.Warning,message:t})}}}},16562:(e,t,n)=>{n.d(t,{v:()=>N});var r=n(32735),a=n(50242),o=n(81886),i=n(67058),c=n(23481),l=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 u(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,m(r.key),r)}}function m(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 y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var b="shared.privateResourceError",v=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,[c.T.getPhrase(b,"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&&y(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return c.T.getPhrase(b,"heading")}},{key:"description",get:function(){return c.T.getPhrase(b,"description")}}])&&u(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(l.H),g=n(49267),h=n(49075),E={notFound:i.d,forbidden:{rating:v,yearLevel:v,region:g.a,privacy:v},badRequest:h._};function w(e){return e.map((function(e){return e.statusCode})).join(":")}function N(e,t,n){var i=Array.isArray(e)?e:[e];(0,r.useEffect)((function(){i.forEach((function(e){!function(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 r;r="number"==typeof e?e:e.status;var i=Object.assign(Object.assign({},E),t);r&&o.Q.Ry.isStatusCodeError(r)&&(r!==a.o.NotFound?r!==a.o.Forbidden?n.badRequest||o.Q.Ry.throw(new i.badRequest):n.forbidden||o.Q.Ry.throw(new i.forbidden.privacy):n.notFound||o.Q.Ry.throw(new i.notFound))}}(e.statusCode,t,n)}))}),[w(i),t,n])}},48848:(e,t,n)=>{n.d(t,{u:()=>T});var r=n(32735),a=n(42648),o=n(23481),i=n(20354),c=n(10731),l=n(83914),s=n(16714),u=n(16562),m=n(22902),d=n(35223),f=n(97395),p=n(82974),y={topSearches:function(e,t,n,r){return{url:f._.urlBuilder("{gateway}/v1/analytics/search/top",e),key:(0,p.H)("top:searches",e),normalize:!1,success:t,error:n,always:r}}},b=n(80763),v=n(99827),g=n(51644);const h={query:"BZYgY",partialQuery:"VfCCp",newWindowIcon:"EdOLu",searchItem:"s649l"};function E(e){return E="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},E(e)}function w(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=o.T.encloseNamespace("reportsDashboard.topSearchesCard");function O(){return r.createElement("ul",{className:"list-unstyled m-0 pt-2"},r.createElement("li",{className:"py-1"},r.createElement("div",{className:"".concat(h.partialQuery," partial-loading-background")})),r.createElement("li",{className:"py-1"},r.createElement("div",{className:"".concat(h.partialQuery," partial-loading-background")})),r.createElement("li",{className:"py-1"},r.createElement("div",{className:"".concat(h.partialQuery," partial-loading-background")})),r.createElement("li",{className:"py-1"},r.createElement("div",{className:"".concat(h.partialQuery," partial-loading-background")})))}function S(e){return r.createElement("div",{className:"d-flex align-items-center justify-content-center text-center h-100"},N(e.isAdmin?"emptyStateAdmin":"emptyStateTeacher"))}var j=w(w(w({},0,"🥇"),1,"🥈"),2,"🥉");function k(e){var t="d-flex flex-column bg-white rounded p-3";return e.className&&(t+=" ".concat(e.className)),t}function T(e){var t,n=(0,v.R)(),o=(0,m.T)().hasPermissions,f=i.a.useBasicFetch(!!n&&y.topSearches(n)),p=(0,b.L)(g.P.getPrimarySearchUrl);return(0,u.v)(f),r.createElement("div",{className:k(e)},r.createElement("h3",{className:"h6 mb-2"},N("topSearches")),!!(null===(t=f.data)||void 0===t?void 0:t.length)&&r.createElement("div",{className:"h-100 me-n2"},r.createElement(a.$B,{height:"100%"},r.createElement("ul",{className:"list-unstyled m-0 pe-3"},f.data.map((function(e,t){var n=j[t];return r.createElement("li",{key:t,className:"py-1 ".concat(h.searchItem)},r.createElement("a",{href:p(e.query),target:"_blank",className:"position-relative d-flex justify-content-between align-items-center"},r.createElement("span",null,n?r.createElement(c.V,{emoji:n}):r.createElement(r.Fragment,null," "),r.createElement("span",{className:h.query},e.query)),r.createElement(l.x,{svgName:d.vn.NewWindow,className:"svg-container ".concat(h.newWindowIcon)})))}))))),!f.data&&r.createElement(O,null),!!f.data&&!f.data.length&&r.createElement(S,{isAdmin:o(s.C.ViewCustomerAnalytics)}))}},85091:(e,t,n)=>{n.d(t,{f:()=>A});var r=n(32735),a=n(7531),o=n(42648),i=n(23481),c=n(20354),l=n(45157),s=n(85177),u=n(29309);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=function(){var e,t,n=(e=r.useState(l.Y.getRandomInt(5)+3+"rem"),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(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.")}())[0];return r.createElement("div",{className:"border d-flex position-relative me-2 ".concat(u.Z.widgetItem)},r.createElement("div",{className:u.Z.imagePanel}),r.createElement("div",{className:"px-2",style:{width:n}}),r.createElement("div",{className:u.Z.partialIcon},r.createElement(s.oy,{type:s.mS.Subject})))},f=n(97914),p=n(16714),y=n(22902),b=n(24685),v=n(43990),g=n(99827);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 E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t,n){return(t=function(e){var t=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)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=i.T.encloseNamespace("reportsDashboard.topTopicsCard"),O=w(w({},b.T.RootTopic,{toggle:"subjects",heading:"popularSubjects",emptyState:{admin:"emptySubjectsAdmin",teacher:"emptySubjectsTeacher"}}),b.T.ChildTopic,{toggle:"topics",heading:"popularTopics",emptyState:{admin:"emptyTopicsAdmin",teacher:"emptyTopicsTeacher"}}),S="top:topics:selection";function j(e){var t=O[e.type].emptyState;return r.createElement("div",{className:"d-flex align-items-center justify-content-center text-center h-100"},N(e.isAdmin?t.admin:t.teacher))}function k(e){return r.createElement(a.Z,{align:"end"},r.createElement(a.Z.Toggle,{id:"topic-type-dropdown",variant:"outline-dark",className:"no-caret"},N(O[e.type].toggle)),r.createElement(a.Z.Menu,null,Object.values(b.T).filter((function(e){return"number"==typeof e})).map((function(t,n){return e.type===t?r.createElement(r.Fragment,{key:n}):r.createElement(a.Z.Item,{key:n,onClick:function(){return e.onSelectType(t)}},N(O[t].toggle))}))))}function T(e){var t="d-flex flex-column bg-white rounded p-3";return e.className&&(t+=" ".concat(e.className)),t}function A(e){var t,n,a,i=(0,g.R)(),l=(0,y.T)().hasPermissions,s=r.useState(function(e){var t=e(p.C.ViewCustomerAnalytics)?b.T.RootTopic:b.T.ChildTopic,n=localStorage.getItem(S);if(!n)return t;var r=parseInt(n);return!isNaN(r)&&b.T[r]?r:t}(l)),u=(a=2,function(e){if(Array.isArray(e))return e}(n=s)||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}}(n,a)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=u[0],h=u[1],w=c.a.useBasicFetch(!!i&&v.x.topTopics(i,m));return r.createElement("div",{className:T(e)},r.createElement("div",{className:"d-flex justify-content-between align-items-center pb-1"},r.createElement("h3",{className:"h6 m-0"},N(O[m].heading)),r.createElement(k,{type:m,onSelectType:function(e){!function(e){localStorage.setItem(S,e.toString())}(e),h(e)}})),!w.data&&r.createElement("ul",{className:"list-unstyled m-0"},r.createElement("li",{className:"py-2"},r.createElement(d,null)),r.createElement("li",{className:"py-2"},r.createElement(d,null)),r.createElement("li",{className:"py-2"},r.createElement(d,null))),!!(null===(t=w.data)||void 0===t?void 0:t.length)&&r.createElement("div",{className:"h-100 me-n2"},r.createElement(o.$B,{height:"100%"},r.createElement("ul",{className:"list-unstyled m-0 pe-3"},w.data.map((function(e,t){return r.createElement("li",{key:t,className:"py-2"},r.createElement(f.V,{data:e}))}))))),!!w.data&&!w.data.length&&r.createElement(j,{type:m,isAdmin:l(p.C.ViewCustomerAnalytics)}))}},32630:(e,t,n)=>{n.d(t,{H:()=>k});var r=n(32735),a=n(42648),o=n(23481),i=n(20354),c=n(57408),l=n(16714),s=n(16562),u=n(22902),m=n(92209),d=n(28512),f=n(9537),p=n(99827);const y={thumbnail:"lK1s9",name:"_3ouh"};var b=new Array(7).fill(null).map((function(e,t){return t}));function v(){return r.createElement("ul",{className:"list-unstyled"},b.map((function(e){return r.createElement("li",{key:e,className:"py-2"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col-6"},r.createElement("div",{className:"".concat(y.thumbnail," rounded partial-loading-background")})),r.createElement("div",{className:"col-6 d-flex align-items-center"},r.createElement("div",{className:"".concat(y.name," partial-loading-background")}))))})))}var g=n(33029),h=n(54610),E=n(68626),w=n(99349);function N(e){var t=(0,p.b)();return r.createElement("li",{className:"py-2"},r.createElement(c.F,{appLink:(0,w.l)(e.video,t)},r.createElement("div",{className:"row"},r.createElement("div",{className:"col-6"},r.createElement(g.u,{video:e.video,imageOptions:{size:h.h2.Small},textPosition:E.z.Independent,type:"cosmetic",hideMask:!0,newDurationStyle:!0,size:"sm"})),r.createElement("div",{className:"col-6 d-flex align-items-center"},r.createElement("span",{className:"clamp-2 fw-bold"},e.video.name)))))}var O=o.T.encloseNamespace("reportsDashboard.topVideosEmptyState");function S(e){return r.createElement("div",{className:"d-flex align-items-center justify-content-center text-center h-100"},O(e.isAdmin?"messageAdmin":"messageTeacher"))}var j=o.T.encloseNamespace("reportsDashboard.topVideosCard");function k(){var e,t,n,o=(0,p.R)(),y=(n=(0,p.b)(),{application:d.O.VIDEOS,action:m.e.Videos.VIEWS,params:n}),b=(0,u.T)().hasPermissions,g=i.a.useBasicFetch(!!o&&f.u.topVideos(o));return(0,s.v)(g),r.createElement("div",{className:"d-flex flex-column bg-white rounded p-3 h-100"},r.createElement("h3",{className:"h6 mb-2"},j("topVideos")),!!(null===(t=null===(e=g.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&r.createElement("div",{className:"h-100 me-n2"},r.createElement(a.$B,{height:"100%"},r.createElement("ul",{className:"list-unstyled m-0 pe-3"},g.data.data.map((function(e,t){return r.createElement(N,{key:t,video:e.object})}))),r.createElement("div",{className:"d-flex align-items-center justify-content-center mt-2 mb-1"},r.createElement(c.F,{appLink:y,className:"btn btn-outline-dark rounded-pill"},j("seeMore"))))),!g.data&&r.createElement(v,null),!!g.data&&!g.data.data.length&&r.createElement(S,{isAdmin:b(l.C.ViewCustomerAnalytics)}))}},79939:(e,t,n)=>{n.d(t,{M:()=>o});var r=n(32735),a=n(30114);function o(){return r.createElement("div",{className:"partial-loading-background mb-2 ".concat(a.Z.partialHeading)})}},15184:(e,t,n)=>{n.d(t,{P:()=>w});var r=n(32735),a=n(72306),o=n.n(a),i=n(70312),c=n.n(i),l=n(99827),s=n(99183),u=n(75896),m=n(110),d=n(85408),f=n(39709),p={MONTH:35,YEAR:365},y={day:"YYYY-MM-DD",month:"YYYY-MM",year:"YYYY"},b={day:"D MMM",month:"MMM",year:"YYYY"},v={enabled:!0,align:"right",verticalAlign:"top",floating:!0,y:-45},g={title:{text:null},credits:{enabled:!1},yAxis:{title:{text:null},min:0,minRange:10,minPadding:0,maxPadding:.02,endOnTick:!1},chart:{backgroundColor:"transparent",spacing:[45,0,0,0]},plotOptions:{series:{stacking:"normal"}}};function h(e,t,n){var r=function(e,t,n){var r=function(e){var t=m.O.diffBetween(e.end,e.start,"day");return t>p.YEAR?"year":t>p.MONTH?"month":"day"}(n),a=function(e,t){var n=[],r=m.O.format(e.start,y[t]);do{n.push(r),r=m.O.format(m.O.add(r,1,t),y[t])}while(!m.O.isAfter(r,e.end,t));return n}(n,r),o={};e.forEach((function(e){var n,a;if(e.userType){var i=m.O.format(m.O.convertUTCToLocal(t(e)),y[r]);o[e.userType]=null!==(n=o[e.userType])&&void 0!==n?n:{},o[e.userType][i]=null!==(a=o[e.userType][i])&&void 0!==a?a:0,o[e.userType][i]+=e.count}}));var i=Object.keys(o),c=i.length?u.m.sortBy(i.map((function(e){return{name:(0,f.j)(e),type:"column",data:a.map((function(t){var n;return null!==(n=o[e][t])&&void 0!==n?n:0}))}})),"name"):[{type:"column",data:a.map((function(){return 0}))}],l=Object.assign({},v);return i.length||(l.enabled=!1),{categories:a.map((function(e){return m.O.format(e,b[r])})),legendOptions:l,seriesData:(0,d.n)(c)}}(e,t,n);return Object.assign(Object.assign({},g),{xAxis:{categories:r.categories},legend:r.legendOptions,series:r.seriesData})}var E=n(30114);function w(e){var t=(0,l.R)();return(0,s.I)(),r.createElement("div",{className:"position-relative h-100"},r.createElement("h3",{className:"h6 ".concat(E.Z.heading)},e.title),!!t&&r.createElement(c(),{highcharts:o(),options:h(e.events,e.getEventDate,t),containerProps:{className:"".concat(E.Z.chartContainer," position-absolute w-100 h-100")}}))}},80763:(e,t,n)=>{n.d(t,{L:()=>i});var r=n(20354),a=n(12754),o=n(70145);function i(e){var t,n=null===(t=r.a.useBasicFetch(o.h.userProducts()).data)||void 0===t?void 0:t.find((function(e){return e.id===a.x.Primary}));if(n)return function(t){return e(n,t)}}},87480:(e,t,n)=>{n.d(t,{U:()=>c});var r=n(32735),a=n(2948),o=n(79489);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e){var t,n,c=(t=(0,a.D)(o.y.HEADER_TITLE),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,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}}(t,n)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(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.")}())[1];(0,r.useEffect)((function(){return c(e),function(){c(null)}}),[e])}},82974:(e,t,n)=>{function r(e,t,n){var r="".concat(e,":").concat(t.start,":").concat(t.end),a=Array.isArray(t.userId)?t.userId.sort().join(":"):t.userId,o=Array.isArray(t.groupId)?t.groupId.sort().join(":"):t.groupId;return a&&(r+=":".concat(a)),o&&(r+=":".concat(o)),n&&(r+=":".concat(n)),r}n.d(t,{H:()=>r})},59699:(e,t,n)=>{n.d(t,{Y:()=>p});var r=n(32735),a=n(23481),o=n(20354),i=n(31949),c=n(16562),l=n(79939),s=n(15184),u=n(9537),m=n(99827),d=n(9977),f=a.T.encloseNamespace("shared.viewCountBarChartCard");function p(e){var t,n=(0,m.R)(),a=o.a.useBasicFetch(!!e.useSharerId&&i.N.currentUser()),p=o.a.useBasicFetch(!!n&&(e.useSharerId?!!a.data&&u.u.views(n,e.objectId,a.data.id):u.u.views(n,e.objectId)));return(0,c.v)(p),(0,d.n)(p),r.createElement("div",{className:"bg-white rounded p-3 ".concat(null!==(t=e.className)&&void 0!==t?t:"")},p.data?r.createElement(s.P,{events:p.data.data,getEventDate:function(e){return e.groupedDateWatched},title:f("videoViews")}):r.createElement(l.M,null))}},30114:(e,t,n)=>{n.d(t,{Z:()=>r});const r={chartContainer:"_KT3q",heading:"Cfb8d",partialHeading:"Ydnic"}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[156],{32119:(e,t,n)=>{n.d(t,{G:()=>o});var r=n(32735),a=n(71365);function o(e){var t,n;return t=e,n=a.u.getInstance(t),r.useEffect((function(){return function(){a.u.releaseInstance(t)}})),n}},10731:(e,t,n)=>{n.d(t,{V:()=>o});var r=n(32735);const a={emoji:"d86p2"};function o(e){return r.createElement(r.Fragment,null,r.createElement("span",{className:a.emoji},e.emoji),e.children)}},2849:(e,t,n)=>{n.d(t,{E:()=>S});var r=n(32735),a=n(23481),o=n(57900),i=n(92582),c=n(65858),l=n(57408),s=n(39202);function u(e){var t=e.href,n=e.className,a=e.newTab,o=e.children,c={onClick:function(n){var r;n.preventDefault(),null===(r=e.onClick)||void 0===r||r.call(e,n),e.analyticsData&&e.analyticsOptions&&i.k.logUserAction(Object.assign({href:t},e.analyticsData),e.analyticsOptions),s.Ab.PageLoad(t,a)},href:t,className:n};return r.createElement("a",Object.assign({},c),o)}var m=n(83914),d=n(83345),f=n(86764),p=n(3747),y=n(35223);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var v="shared.productBanner",g=a.T.encloseNamespace(v),h=function(e){var t=e.analyticsData,n=e.analyticsOptions,a=e.externalUrl;return r.createElement("div",{className:"d-flex align-items-center py-3 pe-3 mb-3 box-shadow ".concat("fUBkC")},r.createElement("p",{className:"mb-0 ps-3 text-dark d-inline-block"},r.createElement("span",{className:"fw-bold"},g("eduScotHeading")),r.createElement("div",null,g("eduScotBody")))," ",r.createElement(u,{className:"ms-auto btn btn-outline-dark fw-bold text-nowrap",href:a,newTab:!0,analyticsData:t,analyticsOptions:i.k.mergeOptions(n,{actionType:c.Vw.Click,entity:c.py.Url,descriptor:c._S.ExternalLink})},g("eduScotCta")))},E=function(e){var t=e.analyticsData,n=e.analyticsOptions,a=e.appLink;return r.createElement("div",{className:"bg-white d-flex align-items-center py-2 pe-3 mb-3 box-shadow"},r.createElement("p",{className:"mb-0 px-3 pe-2"},r.createElement("span",{className:"fw-bold"},g("albertHeading",{emoji:"🔎"}))," ",g("albertBody")),r.createElement(l.F,{className:"ms-auto btn btn-outline-dark fw-bold",appLink:a,analyticsData:t,analyticsOptions:i.k.mergeOptions(n,{actionType:c.Vw.Click,entity:c.py.Url,descriptor:c._S.Button})},g("albertCta")))},w=function(e){var t=e.analyticsData,n=e.analyticsOptions,a=e.appLink;return r.createElement("div",{className:"".concat("_8PwEI"," bg-white mb-3 box-shadow")},r.createElement("div",{className:"px-4 py-3"},r.createElement("h2",{className:"h4"},g("albertHeading",{emoji:""})),r.createElement("p",{className:""}," ",g("albertBody")," "),r.createElement(l.F,{className:"btn btn-outline-dark fw-bold",appLink:a,analyticsData:t,analyticsOptions:i.k.mergeOptions(n,{actionType:c.Vw.Click,entity:c.py.Url,descriptor:c._S.Button})},g("albertCta"))))},N=function(){return r.createElement("div",{className:"bg-blue text-white text-center py-2 mb-3 box-shadow"},r.createElement("p",{className:"mb-0"},r.createElement(d.x,{namespace:v,phrase:"moviesAndTv"})))},O=function(e){var t=e.onClick,n=e.styleOptions,a=e.appLink;return r.createElement("div",{className:"py-4 px-3 mb-3 rounded h4 position-relative ".concat("ja6Bm"),style:{backgroundImage:n.backgroundImage}},g("analyticsHeading"),r.createElement(l.F,{className:"btn btn-outline-dark ms-3",appLink:a},g("analyticsCta")),r.createElement("div",{className:"cursor-pointer position-absolute ".concat("d7mQ8"),onClick:t},r.createElement(m.x,{svgName:y.vn.Close})))};function S(e){var t,n,a=o.SG.get(e.localStorageKey),l=(t=r.useState(!a),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,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}}(t,n)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(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.")}()),s=l[0],u=l[1],m=(0,p.a)(f.r.LGDown),d=Object.assign(Object.assign({},e.analyticsData),{bannerType:e.type}),y=i.k.mergeOptions(e.analyticsOptions,{location:c.LZ.ProductBanner}),v=e.type;return v&&s?"eduscot"===v?r.createElement(h,{analyticsData:d,analyticsOptions:y,externalUrl:e.externalUrl}):"albert"===v?m?r.createElement(E,{appLink:e.appLink,analyticsData:Object.assign(Object.assign({},d),{bannerType:"albert-info"}),analyticsOptions:y}):r.createElement(w,{appLink:e.appLink,analyticsData:Object.assign(Object.assign({},d),{bannerType:"albert"}),analyticsOptions:y}):"moviesAndTv"===v?r.createElement(N,null):"analytics"===v?r.createElement(O,{onClick:function(){e.localStorageKey&&(o.SG.set(e.localStorageKey,"1"),u(!1))},styleOptions:e.styleOptions,appLink:e.appLink}):r.createElement(r.Fragment,null):r.createElement(r.Fragment,null)}},49267:(e,t,n)=>{n.d(t,{a:()=>f});var r=n(23481),a=n(64364);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(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"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}function l(e,t,n){return t=u(t),function(e,t){if(t&&("object"==o(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,s()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var d="shared.regionLockedResourceError",f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,t,[r.T.getPhrase(d,"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,(a=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return r.T.getPhrase(d,"heading")}},{key:"description",get:function(){return r.T.getPhrase(d,"description")}}])&&i(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(a.H)},69883:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(79976),a=n(60139),o=n(32119);function i(){var e=(0,o.G)(r.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:a.NK.Warning,heading:a.R6.Warning,message:t})}}}},16562:(e,t,n)=>{n.d(t,{v:()=>N});var r=n(32735),a=n(50242),o=n(81886),i=n(67058),c=n(23481),l=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 u(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,m(r.key),r)}}function m(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 y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var b="shared.privateResourceError",v=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,[c.T.getPhrase(b,"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&&y(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return c.T.getPhrase(b,"heading")}},{key:"description",get:function(){return c.T.getPhrase(b,"description")}}])&&u(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(l.H),g=n(49267),h=n(49075),E={notFound:i.d,forbidden:{rating:v,yearLevel:v,region:g.a,privacy:v},badRequest:h._};function w(e){return e.map((function(e){return e.statusCode})).join(":")}function N(e,t,n){var i=Array.isArray(e)?e:[e];(0,r.useEffect)((function(){i.forEach((function(e){!function(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 r;r="number"==typeof e?e:e.status;var i=Object.assign(Object.assign({},E),t);r&&o.Q.Ry.isStatusCodeError(r)&&(r!==a.o.NotFound?r!==a.o.Forbidden?n.badRequest||o.Q.Ry.throw(new i.badRequest):n.forbidden||o.Q.Ry.throw(new i.forbidden.privacy):n.notFound||o.Q.Ry.throw(new i.notFound))}}(e.statusCode,t,n)}))}),[w(i),t,n])}},48848:(e,t,n)=>{n.d(t,{u:()=>T});var r=n(32735),a=n(42648),o=n(23481),i=n(20354),c=n(10731),l=n(83914),s=n(16714),u=n(16562),m=n(22902),d=n(35223),f=n(97395),p=n(82974),y={topSearches:function(e,t,n,r){return{url:f._.urlBuilder("{gateway}/v1/analytics/search/top",e),key:(0,p.H)("top:searches",e),normalize:!1,success:t,error:n,always:r}}},b=n(80763),v=n(99827),g=n(51644);const h={query:"BZYgY",partialQuery:"VfCCp",newWindowIcon:"EdOLu",searchItem:"s649l"};function E(e){return E="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},E(e)}function w(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=o.T.encloseNamespace("reportsDashboard.topSearchesCard");function O(){return r.createElement("ul",{className:"list-unstyled m-0 pt-2"},r.createElement("li",{className:"py-1"},r.createElement("div",{className:"".concat(h.partialQuery," partial-loading-background")})),r.createElement("li",{className:"py-1"},r.createElement("div",{className:"".concat(h.partialQuery," partial-loading-background")})),r.createElement("li",{className:"py-1"},r.createElement("div",{className:"".concat(h.partialQuery," partial-loading-background")})),r.createElement("li",{className:"py-1"},r.createElement("div",{className:"".concat(h.partialQuery," partial-loading-background")})))}function S(e){return r.createElement("div",{className:"d-flex align-items-center justify-content-center text-center h-100"},N(e.isAdmin?"emptyStateAdmin":"emptyStateTeacher"))}var j=w(w(w({},0,"🥇"),1,"🥈"),2,"🥉");function k(e){var t="d-flex flex-column bg-white rounded p-3";return e.className&&(t+=" ".concat(e.className)),t}function T(e){var t,n=(0,v.R)(),o=(0,m.T)().hasPermissions,f=i.a.useBasicFetch(!!n&&y.topSearches(n)),p=(0,b.L)(g.P.getPrimarySearchUrl);return(0,u.v)(f),r.createElement("div",{className:k(e)},r.createElement("h3",{className:"h6 mb-2"},N("topSearches")),!!(null===(t=f.data)||void 0===t?void 0:t.length)&&r.createElement("div",{className:"h-100 me-n2"},r.createElement(a.$B,{height:"100%"},r.createElement("ul",{className:"list-unstyled m-0 pe-3"},f.data.map((function(e,t){var n=j[t];return r.createElement("li",{key:t,className:"py-1 ".concat(h.searchItem)},r.createElement("a",{href:p(e.query),target:"_blank",className:"position-relative d-flex justify-content-between align-items-center"},r.createElement("span",null,n?r.createElement(c.V,{emoji:n}):r.createElement(r.Fragment,null," "),r.createElement("span",{className:h.query},e.query)),r.createElement(l.x,{svgName:d.vn.NewWindow,className:"svg-container ".concat(h.newWindowIcon)})))}))))),!f.data&&r.createElement(O,null),!!f.data&&!f.data.length&&r.createElement(S,{isAdmin:o(s.C.ViewCustomerAnalytics)}))}},85091:(e,t,n)=>{n.d(t,{f:()=>A});var r=n(32735),a=n(7531),o=n(42648),i=n(23481),c=n(20354),l=n(45157),s=n(85177),u=n(29309);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=function(){var e,t,n=(e=r.useState(l.Y.getRandomInt(5)+3+"rem"),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(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.")}())[0];return r.createElement("div",{className:"border d-flex position-relative me-2 ".concat(u.Z.widgetItem)},r.createElement("div",{className:u.Z.imagePanel}),r.createElement("div",{className:"px-2",style:{width:n}}),r.createElement("div",{className:u.Z.partialIcon},r.createElement(s.oy,{type:s.mS.Subject})))},f=n(97914),p=n(16714),y=n(22902),b=n(24685),v=n(43990),g=n(99827);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 E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t,n){return(t=function(e){var t=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)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=i.T.encloseNamespace("reportsDashboard.topTopicsCard"),O=w(w({},b.T.RootTopic,{toggle:"subjects",heading:"popularSubjects",emptyState:{admin:"emptySubjectsAdmin",teacher:"emptySubjectsTeacher"}}),b.T.ChildTopic,{toggle:"topics",heading:"popularTopics",emptyState:{admin:"emptyTopicsAdmin",teacher:"emptyTopicsTeacher"}}),S="top:topics:selection";function j(e){var t=O[e.type].emptyState;return r.createElement("div",{className:"d-flex align-items-center justify-content-center text-center h-100"},N(e.isAdmin?t.admin:t.teacher))}function k(e){return r.createElement(a.Z,{align:"end"},r.createElement(a.Z.Toggle,{id:"topic-type-dropdown",variant:"outline-dark",className:"no-caret"},N(O[e.type].toggle)),r.createElement(a.Z.Menu,null,Object.values(b.T).filter((function(e){return"number"==typeof e})).map((function(t,n){return e.type===t?r.createElement(r.Fragment,{key:n}):r.createElement(a.Z.Item,{key:n,onClick:function(){return e.onSelectType(t)}},N(O[t].toggle))}))))}function T(e){var t="d-flex flex-column bg-white rounded p-3";return e.className&&(t+=" ".concat(e.className)),t}function A(e){var t,n,a,i=(0,g.R)(),l=(0,y.T)().hasPermissions,s=r.useState(function(e){var t=e(p.C.ViewCustomerAnalytics)?b.T.RootTopic:b.T.ChildTopic,n=localStorage.getItem(S);if(!n)return t;var r=parseInt(n);return!isNaN(r)&&b.T[r]?r:t}(l)),u=(a=2,function(e){if(Array.isArray(e))return e}(n=s)||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}}(n,a)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=u[0],h=u[1],w=c.a.useBasicFetch(!!i&&v.x.topTopics(i,m));return r.createElement("div",{className:T(e)},r.createElement("div",{className:"d-flex justify-content-between align-items-center pb-1"},r.createElement("h3",{className:"h6 m-0"},N(O[m].heading)),r.createElement(k,{type:m,onSelectType:function(e){!function(e){localStorage.setItem(S,e.toString())}(e),h(e)}})),!w.data&&r.createElement("ul",{className:"list-unstyled m-0"},r.createElement("li",{className:"py-2"},r.createElement(d,null)),r.createElement("li",{className:"py-2"},r.createElement(d,null)),r.createElement("li",{className:"py-2"},r.createElement(d,null))),!!(null===(t=w.data)||void 0===t?void 0:t.length)&&r.createElement("div",{className:"h-100 me-n2"},r.createElement(o.$B,{height:"100%"},r.createElement("ul",{className:"list-unstyled m-0 pe-3"},w.data.map((function(e,t){return r.createElement("li",{key:t,className:"py-2"},r.createElement(f.V,{data:e}))}))))),!!w.data&&!w.data.length&&r.createElement(j,{type:m,isAdmin:l(p.C.ViewCustomerAnalytics)}))}},32630:(e,t,n)=>{n.d(t,{H:()=>k});var r=n(32735),a=n(42648),o=n(23481),i=n(20354),c=n(57408),l=n(16714),s=n(16562),u=n(22902),m=n(92209),d=n(28512),f=n(9537),p=n(99827);const y={thumbnail:"lK1s9",name:"_3ouh"};var b=new Array(7).fill(null).map((function(e,t){return t}));function v(){return r.createElement("ul",{className:"list-unstyled"},b.map((function(e){return r.createElement("li",{key:e,className:"py-2"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col-6"},r.createElement("div",{className:"".concat(y.thumbnail," rounded partial-loading-background")})),r.createElement("div",{className:"col-6 d-flex align-items-center"},r.createElement("div",{className:"".concat(y.name," partial-loading-background")}))))})))}var g=n(12309),h=n(54610),E=n(68626),w=n(99349);function N(e){var t=(0,p.b)();return r.createElement("li",{className:"py-2"},r.createElement(c.F,{appLink:(0,w.l)(e.video,t)},r.createElement("div",{className:"row"},r.createElement("div",{className:"col-6"},r.createElement(g.u,{video:e.video,imageOptions:{size:h.h2.Small},textPosition:E.z.Independent,type:"cosmetic",hideMask:!0,newDurationStyle:!0,size:"sm"})),r.createElement("div",{className:"col-6 d-flex align-items-center"},r.createElement("span",{className:"clamp-2 fw-bold"},e.video.name)))))}var O=o.T.encloseNamespace("reportsDashboard.topVideosEmptyState");function S(e){return r.createElement("div",{className:"d-flex align-items-center justify-content-center text-center h-100"},O(e.isAdmin?"messageAdmin":"messageTeacher"))}var j=o.T.encloseNamespace("reportsDashboard.topVideosCard");function k(){var e,t,n,o=(0,p.R)(),y=(n=(0,p.b)(),{application:d.O.VIDEOS,action:m.e.Videos.VIEWS,params:n}),b=(0,u.T)().hasPermissions,g=i.a.useBasicFetch(!!o&&f.u.topVideos(o));return(0,s.v)(g),r.createElement("div",{className:"d-flex flex-column bg-white rounded p-3 h-100"},r.createElement("h3",{className:"h6 mb-2"},j("topVideos")),!!(null===(t=null===(e=g.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&r.createElement("div",{className:"h-100 me-n2"},r.createElement(a.$B,{height:"100%"},r.createElement("ul",{className:"list-unstyled m-0 pe-3"},g.data.data.map((function(e,t){return r.createElement(N,{key:t,video:e.object})}))),r.createElement("div",{className:"d-flex align-items-center justify-content-center mt-2 mb-1"},r.createElement(c.F,{appLink:y,className:"btn btn-outline-dark rounded-pill"},j("seeMore"))))),!g.data&&r.createElement(v,null),!!g.data&&!g.data.data.length&&r.createElement(S,{isAdmin:b(l.C.ViewCustomerAnalytics)}))}},79939:(e,t,n)=>{n.d(t,{M:()=>o});var r=n(32735),a=n(30114);function o(){return r.createElement("div",{className:"partial-loading-background mb-2 ".concat(a.Z.partialHeading)})}},15184:(e,t,n)=>{n.d(t,{P:()=>w});var r=n(32735),a=n(72306),o=n.n(a),i=n(70312),c=n.n(i),l=n(99827),s=n(99183),u=n(75896),m=n(110),d=n(85408),f=n(39709),p={MONTH:35,YEAR:365},y={day:"YYYY-MM-DD",month:"YYYY-MM",year:"YYYY"},b={day:"D MMM",month:"MMM",year:"YYYY"},v={enabled:!0,align:"right",verticalAlign:"top",floating:!0,y:-45},g={title:{text:null},credits:{enabled:!1},yAxis:{title:{text:null},min:0,minRange:10,minPadding:0,maxPadding:.02,endOnTick:!1},chart:{backgroundColor:"transparent",spacing:[45,0,0,0]},plotOptions:{series:{stacking:"normal"}}};function h(e,t,n){var r=function(e,t,n){var r=function(e){var t=m.O.diffBetween(e.end,e.start,"day");return t>p.YEAR?"year":t>p.MONTH?"month":"day"}(n),a=function(e,t){var n=[],r=m.O.format(e.start,y[t]);do{n.push(r),r=m.O.format(m.O.add(r,1,t),y[t])}while(!m.O.isAfter(r,e.end,t));return n}(n,r),o={};e.forEach((function(e){var n,a;if(e.userType){var i=m.O.format(m.O.convertUTCToLocal(t(e)),y[r]);o[e.userType]=null!==(n=o[e.userType])&&void 0!==n?n:{},o[e.userType][i]=null!==(a=o[e.userType][i])&&void 0!==a?a:0,o[e.userType][i]+=e.count}}));var i=Object.keys(o),c=i.length?u.m.sortBy(i.map((function(e){return{name:(0,f.j)(e),type:"column",data:a.map((function(t){var n;return null!==(n=o[e][t])&&void 0!==n?n:0}))}})),"name"):[{type:"column",data:a.map((function(){return 0}))}],l=Object.assign({},v);return i.length||(l.enabled=!1),{categories:a.map((function(e){return m.O.format(e,b[r])})),legendOptions:l,seriesData:(0,d.n)(c)}}(e,t,n);return Object.assign(Object.assign({},g),{xAxis:{categories:r.categories},legend:r.legendOptions,series:r.seriesData})}var E=n(30114);function w(e){var t=(0,l.R)();return(0,s.I)(),r.createElement("div",{className:"position-relative h-100"},r.createElement("h3",{className:"h6 ".concat(E.Z.heading)},e.title),!!t&&r.createElement(c(),{highcharts:o(),options:h(e.events,e.getEventDate,t),containerProps:{className:"".concat(E.Z.chartContainer," position-absolute w-100 h-100")}}))}},80763:(e,t,n)=>{n.d(t,{L:()=>i});var r=n(20354),a=n(12754),o=n(70145);function i(e){var t,n=null===(t=r.a.useBasicFetch(o.h.userProducts()).data)||void 0===t?void 0:t.find((function(e){return e.id===a.x.Primary}));if(n)return function(t){return e(n,t)}}},87480:(e,t,n)=>{n.d(t,{U:()=>c});var r=n(32735),a=n(2948),o=n(79489);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e){var t,n,c=(t=(0,a.D)(o.y.HEADER_TITLE),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,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}}(t,n)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(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.")}())[1];(0,r.useEffect)((function(){return c(e),function(){c(null)}}),[e])}},82974:(e,t,n)=>{function r(e,t,n){var r="".concat(e,":").concat(t.start,":").concat(t.end),a=Array.isArray(t.userId)?t.userId.sort().join(":"):t.userId,o=Array.isArray(t.groupId)?t.groupId.sort().join(":"):t.groupId;return a&&(r+=":".concat(a)),o&&(r+=":".concat(o)),n&&(r+=":".concat(n)),r}n.d(t,{H:()=>r})},59699:(e,t,n)=>{n.d(t,{Y:()=>p});var r=n(32735),a=n(23481),o=n(20354),i=n(31949),c=n(16562),l=n(79939),s=n(15184),u=n(9537),m=n(99827),d=n(9977),f=a.T.encloseNamespace("shared.viewCountBarChartCard");function p(e){var t,n=(0,m.R)(),a=o.a.useBasicFetch(!!e.useSharerId&&i.N.currentUser()),p=o.a.useBasicFetch(!!n&&(e.useSharerId?!!a.data&&u.u.views(n,e.objectId,a.data.id):u.u.views(n,e.objectId)));return(0,c.v)(p),(0,d.n)(p),r.createElement("div",{className:"bg-white rounded p-3 ".concat(null!==(t=e.className)&&void 0!==t?t:"")},p.data?r.createElement(s.P,{events:p.data.data,getEventDate:function(e){return e.groupedDateWatched},title:f("videoViews")}):r.createElement(l.M,null))}},30114:(e,t,n)=>{n.d(t,{Z:()=>r});const r={chartContainer:"_KT3q",heading:"Cfb8d",partialHeading:"Ydnic"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[169],{44949:(e,t,n)=>{n.d(t,{O:()=>L});var r=n(32735),a=n(91374),s=n(83140),c=n(80845),l=n(64818),o=n(23481).T.encloseNamespace("interactives.responseTypes");function i(){return r.createElement("p",{className:"p-2"},r.createElement("em",null,o("noResponse")))}var u=n(46237),m=n(8246),d="cv-missing-word-",f=n(17082),v=n(4234),g=n(11607),b=n(83914),y=n(35223);const p="yodaE",h="KpbWq",w="uKRg2",E="zWcu2",N="yi7XT",k="hp0pr";function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var C=["A","B","C","D"];function x(e){var t,n,s=(t=r.useState(null),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,s,c,l=[],o=!0,i=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;o=!1}else for(;!(o=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);o=!0);}catch(e){i=!0,a=e}finally{try{if(!o&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(i)throw a}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],l=s[1],o=!!e.interaction.actionableItems.find((function(e){var t;return!!(null===(t=e.data)||void 0===t?void 0:t.imageUrl)})),i=r.useRef();return r.createElement(r.Fragment,null,e.interaction.actionableItems.map((function(t,n){var s,u=e.getSelectedAnswer(t.id),m=null===(s=t.data)||void 0===s?void 0:s.imageUrl;function d(){e.submitted||(e.onSelectAnswer&&e.onSelectAnswer(t,!u),l(u?null:t.id))}if(e.onlyShowSelectedAnswer&&!u)return r.createElement(r.Fragment,{key:n});var S=u?"bg-blue text-white":e.unCheckedBackground,x=function(){return r.createElement(r.Fragment,null,C[n])};e.showFeedback&&(S=t.isCorrect?"bg-success text-white":"bg-danger text-white ".concat(p),e.hideFeedbackIcons||(x=function(){return r.createElement(r.Fragment,null,t.isCorrect?r.createElement(b.x,{size:b.S.Small,svgName:y.vn.Check}):r.createElement(b.x,{size:b.S.Small,svgName:y.vn.Close}))}));var A=e.showFeedback?{}:{role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&d()}},F="";o&&(F="sm"===e.size?k:N);var I=t.id.toString()===(null==c?void 0:c.toString())&&e.leftHandSidePortalNode&&m&&!e.submitted;return r.createElement(r.Fragment,{key:n},I&&r.createElement(f.Nq,{node:e.leftHandSidePortalNode},r.createElement(v.Z,{className:"h-100",ref:i},r.createElement("div",{className:"p-3 d-flex flex-column h-100"},r.createElement("div",{className:"flex-grow-1"},r.createElement("div",{className:"cv-image-container text-center"},r.createElement("img",{className:"img-fluid rounded",src:m})),r.createElement("div",{className:"".concat(h," h6 text-center text-dark p-3")},r.createElement("span",{className:"d-inline-block me-3 cv-multiple-choice-bullet"},r.createElement(x,null)),r.createElement("span",{className:"flex-grow-1 pe-4"},t.name))),r.createElement("div",{className:"text-end"},r.createElement(g.L,{className:"btn btn-link",onClick:function(){return l(null)}},"Close"))))),r.createElement("label",Object.assign({className:"\n d-block\n rounded-3\n shadow-sm\n mb-2\n ".concat("sm"===e.size?"p-2":"p-3","\n d-flex\n justify-content-between\n position-relative\n ").concat(e.showFeedback?"":"cursor-pointer","\n ").concat(h,"\n ").concat(S,"\n ").concat(F,"\n "),key:n,onClick:d},A),o&&r.createElement("span",{className:"\n ".concat(E,"\n position-absolute\n start-0\n top-0\n bottom-0\n rounded-start\n bg-gray-400\n "),style:{backgroundImage:m?"url(".concat(m,")"):void 0}}),r.createElement("span",{className:"d-inline-block me-3 cv-multiple-choice-bullet"},r.createElement(x,null)),r.createElement("span",{className:"flex-grow-1 pe-4"},t.name),!e.onlyShowSelectedAnswer&&r.createElement("span",{className:w},u&&r.createElement(a.q,{imageCdnUrl:e.imageApi,initials:e.userInitials,imageUrl:e.userAvatar,extraClasses:"border border-white"}))))})))}x.defaultProps={size:"lg",unCheckedBackground:"bg-white"};const A="Y7ls8";var F=n(75896);const I="CBgCv",j="CVTEm",U="tbPTs",O="GUAUz",z="ZCkyL",T="TKjXy",P="_2qC40";function R(e){function t(t){e.onSelectAnswer&&e.onSelectAnswer(t)}return r.createElement("div",{className:"d-flex ".concat(e.className?e.className:""," ").concat("sm"===e.size?"mx-n1":"mx-n2")},e.interaction.actionableItems.map((function(n,s){var c=e.getSelectedAnswer(n.id),l=c?"bg-blue text-white":e.unCheckedBackground,o=function(){return r.createElement(r.Fragment,null)};e.showFeedback&&(l=n.isCorrect?"bg-success text-white":"bg-danger text-white ".concat(z),e.hideFeedbackIcons||(o=function(){return r.createElement(r.Fragment,null,n.isCorrect?r.createElement(b.x,{size:b.S.Small,svgName:y.vn.Check}):r.createElement(b.x,{size:b.S.Small,svgName:y.vn.Close}))}));var i=e.showFeedback?{}:{role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&t(n)}};return r.createElement("label",Object.assign({key:s,htmlFor:n.id,className:"\n rounded-3\n shadow-sm\n my-0\n position-relative\n overflow-hidden\n d-flex\n align-items-center\n justify-content-center\n ".concat("sm"===e.size?"".concat(P," mx-1 h5"):"".concat(T," mx-2 h4"),"\n ").concat(e.showFeedback?"":"cursor-pointer","\n ").concat(l)},i),r.createElement("input",{id:n.id,type:"radio",name:"multiple-choice",checked:!!c,onChange:function(){return t(n)},disabled:e.showFeedback,hidden:!0}),n.name,r.createElement("span",{className:"position-absolute p-2 ".concat(I)},r.createElement(o,null)),r.createElement("span",{className:"".concat(j).concat("sm"===e.size?" ".concat(U):"")},c&&r.createElement(a.q,{imageCdnUrl:e.imageApi,initials:e.userInitials,imageUrl:e.userAvatar,extraClasses:"border border-white ".concat("sm"===e.size?O:"")})))})))}function Z(e){return Z="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},Z(e)}function q(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Z(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}R.defaultProps={size:"lg",unCheckedBackground:"bg-white"};var B=function(){return r.createElement(r.Fragment,null)},D=q(q(q(q(q(q({},u.Z9.Annotation,B),u.Z9.Image,B),u.Z9.MissingWord,(function(e){var t=e.interaction.data.sentence.replace(/{([^{}]*)}/g,(function(e,t){return"{".concat(d).concat(t,"}")})).split(/{([^{}]*)}/g),n="p-2";return e.reportsStyling||(n+=" border rounded"),r.createElement("div",{className:n},t.map((function(t,n){if(!t.startsWith(d))return t;var a=t.replace(d,""),s=e.interaction.actionableItems.find((function(e){return e.order.toString()===a}));if(s){var c=e.answers.find((function(e){return e.id==s.id}));if(c){if(!e.showFeedback)return r.createElement("strong",{key:n,className:"text-info"},c.text);var l=c.status===m.N.Correct;return r.createElement(r.Fragment,{key:n},!l&&r.createElement(r.Fragment,null,r.createElement("del",{className:"text-danger"},r.createElement("strong",null,c.text))," "),r.createElement("strong",{className:"text-success"},s.name))}}})))})),u.Z9.MultipleChoice,(function(e){var t,n,a,s,c="my-2";return e.reportsStyling&&(c+=" mx-2"),r.createElement("div",{className:c},r.createElement(x,{interaction:e.interaction,showFeedback:e.showFeedback,getSelectedAnswer:function(t){var n=e.answers.find((function(e){return e.id==t}));return null==n?void 0:n.text},imageApi:e.imageCdnUrl,userInitials:e.anonymisedUserName?l.l.getInitialsFromFullName(e.anonymisedUserName):l.l.getInitials(null===(t=e.user)||void 0===t?void 0:t.name,null===(n=e.user)||void 0===n?void 0:n.surname),userAvatar:e.anonymisedUserName?null:null===(s=null===(a=e.user)||void 0===a?void 0:a.avatar)||void 0===s?void 0:s.url,onlyShowSelectedAnswer:!e.showAvatar,size:"sm",unCheckedBackground:e.showFeedback?"":"".concat(A," text-white")}))})),u.Z9.TrueOrFalse,(function(e){var t,n,a,s,c="justify-content-start";return e.reportsStyling&&(c="justify-content-center"),r.createElement("div",{className:"my-2"},r.createElement(R,{className:c,interaction:e.interaction,showFeedback:e.showFeedback,hideFeedbackIcons:!e.showAvatar,getSelectedAnswer:function(t){var n=e.answers.find((function(e){return e.id==t}));return null==n?void 0:n.text},imageApi:e.imageCdnUrl,userInitials:e.anonymisedUserName?l.l.getInitialsFromFullName(e.anonymisedUserName):l.l.getInitials(null===(t=e.user)||void 0===t?void 0:t.name,null===(n=e.user)||void 0===n?void 0:n.surname),userAvatar:e.anonymisedUserName?null:null===(s=null===(a=e.user)||void 0===a?void 0:a.avatar)||void 0===s?void 0:s.url,size:"sm",unCheckedBackground:e.showFeedback?"":"".concat(A," text-white")}))})),u.Z9.ShortAnswer,(function(e){var t=F.m.first(e.answers);if(!t)return r.createElement(r.Fragment,null);var n="rounded p-2 mb-2";return e.reportsStyling||(n+=" bg-blue text-white"),r.createElement("div",{className:n},t.text)})),M=n(28972);function _(e){return r.createElement(r.Fragment,null,e.correctness===M.w.Correct&&r.createElement("div",{className:"ms-2 text-success"},r.createElement(b.x,{svgName:y.vn.Check})),e.correctness===M.w.Incorrect&&r.createElement("div",{className:"ms-2 text-danger"},r.createElement(b.x,{svgName:y.vn.Close})))}function K(e){return r.createElement("div",{className:"d-flex align-items-center justify-content-between"},r.createElement("strong",null,e.anonymisedUserName||l.l.getFullName(e.studentResults.user)),r.createElement(_,{correctness:e.correctness}))}function W(e){return e.correctness!==M.w.AwaitingMarking?r.createElement(r.Fragment,null):r.createElement("div",{className:"d-flex justify-content-end mt-1"},r.createElement("div",{className:"d-flex flex-column justify-content-end cursor-pointer\n ".concat(e.markedStatus===m.N.Correct?"text-success":"")},r.createElement(b.x,{svgName:e.markedStatus===m.N.Correct?y.vn.CheckCircle:y.vn.CheckCircleOutline,onClick:function(){return e.markInteraction(e.studentAttempt.answers,m.N.Correct)}})),r.createElement("div",{className:"d-flex flex-column justify-content-end cursor-pointer\n ".concat(e.markedStatus===m.N.Incorrect?" text-danger":"")},r.createElement(b.x,{svgName:e.markedStatus===m.N.Incorrect?y.vn.CrossCircleFilled:y.vn.CrossCircle,onClick:function(){return e.markInteraction(e.studentAttempt.answers,m.N.Incorrect)}})))}const H={avatarContainer:"FEdgT"};function L(e){var t,n,o,u,m,d=D[e.interaction.typeId];if(!d)return r.createElement(r.Fragment,null);var f=(0,c.j_)(e.studentResults),v=(0,c.f6)(e.interaction.id,f),g=s.A.isInteractionCorrect(e.interaction,f);return r.createElement("div",{className:"rounded ".concat(null!==(t=e.className)&&void 0!==t?t:"")},r.createElement("div",{className:"d-flex"},!!e.showStudentDetails&&r.createElement("div",{className:"me-2"},r.createElement("div",{className:H.avatarContainer},r.createElement(a.q,{imageCdnUrl:e.imageCdnUrl,initials:e.anonymisedUserName?l.l.getInitialsFromFullName(e.anonymisedUserName):l.l.getInitials(null===(n=e.studentResults.user)||void 0===n?void 0:n.name,null===(o=e.studentResults.user)||void 0===o?void 0:o.surname),imageUrl:e.anonymisedUserName?null:null===(m=null===(u=e.studentResults.user)||void 0===u?void 0:u.avatar)||void 0===m?void 0:m.url}))),r.createElement("div",{className:"flex-grow-1"},!!e.showStudentDetails&&r.createElement(K,{studentResults:e.studentResults,correctness:g,anonymisedUserName:e.anonymisedUserName}),r.createElement("div",{className:"d-flex justify-content-between"},r.createElement("div",{className:"flex-grow-1 ".concat(e.responseComponentClass?e.responseComponentClass:"")},v?r.createElement(d,{interaction:e.interaction,answers:v.answers,imageCdnUrl:e.imageCdnUrl,user:e.studentResults.user,showFeedback:e.showFeedback,showAvatar:e.showAvatar,reportsStyling:e.reportsStyling}):r.createElement(i,null)),!e.showStudentDetails&&r.createElement(_,{correctness:g})))),r.createElement(W,{studentAttempt:v,correctness:g,markInteraction:e.markInteraction,markedStatus:e.markedStatus}))}},95601:(e,t,n)=>{n.d(t,{D:()=>f});var r=n(32735),a=n(70680),s=n(23481),c=n(20354),l=n(69883),o=n(94884),i=n(22628);function u(e){return u="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},u(e)}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=s.T.encloseNamespace("reportsShared.dataHooks"),f=function(e,t,n){var s,f,v=(s=(0,r.useState)({}),f=2,function(e){if(Array.isArray(e))return e}(s)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,s,c,l=[],o=!0,i=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;o=!1}else for(;!(o=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);o=!0);}catch(e){i=!0,a=e}finally{try{if(!o&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(i)throw a}}return l}}(s,f)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(s,f)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=v[0],b=v[1],y=(0,a.I0)(),p=(0,l.Z)();return{markedAnswers:g,addMarkedAnswers:function(e,t){e.forEach((function(e){b((function(n){return Object.assign(Object.assign({},n),function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},(0,i.UU)(e),Object.assign(Object.assign({},e),{status:t})))}))}))},submitMarkedAnswers:function(){var r=Object.keys(g).map((function(e){return g[e]}));if(r.length){var a=0,s=0;r.forEach((function(n){var r=n.id,a=n.resultId,s=n.questionId,u=n.status;c.a.fetch(y,o.b.mark(e,t,r,{id:r,resultId:a,questionId:s,status:u},l,null,i))}))}function l(){s++}function i(){var e,t;++a===r.length&&(e="",t=!1,0===s&&(e=d("error",{smartCount:r.length}),t=!0),s<a&&(e=d("success",{smartCount:s})+" ".concat(d("partialError",{smartCount:a-s}))),s===a&&(e=d("success",{smartCount:s})),t?p.error(e):p.success(e),b({}),n&&n())}}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[246],{15206:t=>{var e=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=e},94605:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},29076:(t,e,r)=>{var n=r(62366);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},5822:(t,e,r)=>{var n=r(46802),o=r(22275),i=r(50430),u=n("unscopables"),a=Array.prototype;null==a[u]&&i(a,u,o(null)),t.exports=function(t){a[u][t]=!0}},25528:(t,e,r)=>{"use strict";var n=r(50189).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},72814:t=>{t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},4905:(t,e,r)=>{var n=r(62366);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},16607:(t,e,r)=>{"use strict";var n=r(72758).forEach,o=r(31853);t.exports=o("forEach")?function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach},5029:(t,e,r)=>{var n=r(40678),o=r(74479),i=r(6971),u=function(t){return function(e,r,u){var a,c=n(e),s=o(c.length),f=i(u,s);if(t&&r!=r){for(;s>f;)if((a=c[f++])!=a)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},72758:(t,e,r)=>{var n=r(17755),o=r(62901),i=r(87615),u=r(74479),a=r(17021),c=[].push,s=function(t){var e=1==t,r=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l;return function(h,v,d,y){for(var g,b,_=i(h),x=o(_),m=n(v,d,3),w=u(x.length),O=0,E=y||a,j=e?E(h,w):r?E(h,0):void 0;w>O;O++)if((p||O in x)&&(b=m(g=x[O],O,_),t))if(e)j[O]=b;else if(b)switch(t){case 3:return!0;case 5:return g;case 6:return O;case 2:c.call(j,g)}else if(f)return!1;return l?-1:s||f?f:j}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},95611:(t,e,r)=>{var n=r(25061),o=r(46802),i=r(24101),u=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},62040:(t,e,r)=>{var n=r(94605),o=r(87615),i=r(62901),u=r(74479),a=function(t){return function(e,r,a,c){n(r);var s=o(e),f=i(s),l=u(s.length),p=t?l-1:0,h=t?-1:1;if(a<2)for(;;){if(p in f){c=f[p],p+=h;break}if(p+=h,t?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;t?p>=0:l>p;p+=h)p in f&&(c=r(c,f[p],p,s));return c}};t.exports={left:a(!1),right:a(!0)}},17021:(t,e,r)=>{var n=r(62366),o=r(20119),i=r(46802)("species");t.exports=function(t,e){var r;return o(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},17755:(t,e,r)=>{var n=r(94605);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},35304:(t,e,r)=>{var n=r(4905);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},13165:(t,e,r)=>{var n=r(46802)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[n]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},75489:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},20486:(t,e,r)=>{var n=r(75489),o=r(46802)("toStringTag"),i="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?r:i?n(e):"Object"==(u=n(e))&&"function"==typeof e.callee?"Arguments":u}},53769:(t,e,r)=>{"use strict";var n=r(86846),o=r(81738).getWeakData,i=r(4905),u=r(62366),a=r(72814),c=r(98971),s=r(72758),f=r(51900),l=r(50684),p=l.set,h=l.getterFor,v=s.find,d=s.findIndex,y=0,g=function(t){return t.frozen||(t.frozen=new b)},b=function(){this.entries=[]},_=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};b.prototype={get:function(t){var e=_(this,t);if(e)return e[1]},has:function(t){return!!_(this,t)},set:function(t,e){var r=_(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=d(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,r,s){var l=t((function(t,n){a(t,l,e),p(t,{type:e,id:y++,frozen:void 0}),null!=n&&c(n,t[s],t,r)})),v=h(e),d=function(t,e,r){var n=v(t),u=o(i(e),!0);return!0===u?g(n).set(e,r):u[n.id]=r,t};return n(l.prototype,{delete:function(t){var e=v(this);if(!u(t))return!1;var r=o(t);return!0===r?g(e).delete(t):r&&f(r,e.id)&&delete r[e.id]},has:function(t){var e=v(this);if(!u(t))return!1;var r=o(t);return!0===r?g(e).has(t):r&&f(r,e.id)}}),n(l.prototype,r?{get:function(t){var e=v(this);if(u(t)){var r=o(t);return!0===r?g(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return d(this,t,e)}}:{add:function(t){return d(this,t,!0)}}),l}}},66606:(t,e,r)=>{"use strict";var n=r(29638),o=r(45001),i=r(91092),u=r(96313),a=r(81738),c=r(98971),s=r(72814),f=r(62366),l=r(25061),p=r(13165),h=r(40606),v=r(3419);t.exports=function(t,e,r,d,y){var g=o[t],b=g&&g.prototype,_=g,x=d?"set":"add",m={},w=function(t){var e=b[t];u(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(y&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!f(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!f(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(i(t,"function"!=typeof g||!(y||b.forEach&&!l((function(){(new g).entries().next()})))))_=r.getConstructor(e,t,d,x),a.REQUIRED=!0;else if(i(t,!0)){var O=new _,E=O[x](y?{}:-0,1)!=O,j=l((function(){O.has(1)})),S=p((function(t){new g(t)})),T=!y&&l((function(){for(var t=new g,e=5;e--;)t[x](e,e);return!t.has(-0)}));S||((_=e((function(e,r){s(e,_,t);var n=v(new g,e,_);return null!=r&&c(r,n[x],n,d),n}))).prototype=b,b.constructor=_),(j||T)&&(w("delete"),w("has"),d&&w("get")),(T||E)&&w(x),y&&b.clear&&delete b.clear}return m[t]=_,n({global:!0,forced:_!=g},m),h(_,t),y||r.setStrong(_,t,d),_}},46810:(t,e,r)=>{var n=r(51900),o=r(62466),i=r(8117),u=r(56462);t.exports=function(t,e){for(var r=o(e),a=u.f,c=i.f,s=0;s<r.length;s++){var f=r[s];n(t,f)||a(t,f,c(e,f))}}},10149:(t,e,r)=>{var n=r(25061);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},62141:(t,e,r)=>{"use strict";var n=r(61151).IteratorPrototype,o=r(22275),i=r(86034),u=r(40606),a=r(80501),c=function(){return this};t.exports=function(t,e,r){var s=e+" Iterator";return t.prototype=o(n,{next:i(1,r)}),u(t,s,!1,!0),a[s]=c,t}},50430:(t,e,r)=>{var n=r(11502),o=r(56462),i=r(86034);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},86034:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},30645:(t,e,r)=>{"use strict";var n=r(29638),o=r(62141),i=r(64320),u=r(22848),a=r(40606),c=r(50430),s=r(96313),f=r(46802),l=r(20013),p=r(80501),h=r(61151),v=h.IteratorPrototype,d=h.BUGGY_SAFARI_ITERATORS,y=f("iterator"),g="keys",b="values",_="entries",x=function(){return this};t.exports=function(t,e,r,f,h,m,w){o(r,e,f);var O,E,j,S=function(t){if(t===h&&R)return R;if(!d&&t in M)return M[t];switch(t){case g:case b:case _:return function(){return new r(this,t)}}return function(){return new r(this)}},T=e+" Iterator",A=!1,M=t.prototype,I=M[y]||M["@@iterator"]||h&&M[h],R=!d&&I||S(h),k="Array"==e&&M.entries||I;if(k&&(O=i(k.call(new t)),v!==Object.prototype&&O.next&&(l||i(O)===v||(u?u(O,v):"function"!=typeof O[y]&&c(O,y,x)),a(O,T,!0,!0),l&&(p[T]=x))),h==b&&I&&I.name!==b&&(A=!0,R=function(){return I.call(this)}),l&&!w||M[y]===R||c(M,y,R),p[e]=R,h)if(E={values:S(b),keys:m?R:S(g),entries:S(_)},w)for(j in E)(d||A||!(j in M))&&s(M,j,E[j]);else n({target:e,proto:!0,forced:d||A},E);return E}},11502:(t,e,r)=>{var n=r(25061);t.exports=!n((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},36009:(t,e,r)=>{var n=r(45001),o=r(62366),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},58514:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},72089:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},29638:(t,e,r)=>{var n=r(45001),o=r(8117).f,i=r(50430),u=r(96313),a=r(88506),c=r(46810),s=r(91092);t.exports=function(t,e){var r,f,l,p,h,v=t.target,d=t.global,y=t.stat;if(r=d?n:y?n[v]||a(v,{}):(n[v]||{}).prototype)for(f in e){if(p=e[f],l=t.noTargetGet?(h=o(r,f))&&h.value:r[f],!s(d?f:v+(y?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;c(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(r,f,p,t)}}},25061:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},95453:(t,e,r)=>{"use strict";var n=r(50430),o=r(96313),i=r(25061),u=r(46802),a=r(44847),c=u("species"),s=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,e,r,l){var p=u(t),h=!i((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),v=h&&!i((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return e=!0,null},r[p](""),!e}));if(!h||!v||"replace"===t&&!s||"split"===t&&!f){var d=/./[p],y=r(p,""[t],(function(t,e,r,n,o){return e.exec===a?h&&!o?{done:!0,value:d.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}})),g=y[0],b=y[1];o(String.prototype,t,g),o(RegExp.prototype,p,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)}),l&&n(RegExp.prototype[p],"sham",!0)}}},98218:(t,e,r)=>{var n=r(25061);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},21501:(t,e,r)=>{var n=r(6809);t.exports=n("native-function-to-string",Function.toString)},3425:(t,e,r)=>{var n=r(53757),o=r(45001),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t])||i(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},26354:(t,e,r)=>{var n=r(20486),o=r(80501),i=r(46802)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},45001:(t,e,r)=>{var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||Function("return this")()},51900:t=>{var e={}.hasOwnProperty;t.exports=function(t,r){return e.call(t,r)}},92499:t=>{t.exports={}},12118:(t,e,r)=>{var n=r(3425);t.exports=n("document","documentElement")},17788:(t,e,r)=>{var n=r(11502),o=r(25061),i=r(36009);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},62901:(t,e,r)=>{var n=r(25061),o=r(75489),i="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},3419:(t,e,r)=>{var n=r(62366),o=r(22848);t.exports=function(t,e,r){var i,u;return o&&"function"==typeof(i=e.constructor)&&i!==r&&n(u=i.prototype)&&u!==r.prototype&&o(t,u),t}},81738:(t,e,r)=>{var n=r(92499),o=r(62366),i=r(51900),u=r(56462).f,a=r(41050),c=r(98218),s=a("meta"),f=0,l=Object.isExtensible||function(){return!0},p=function(t){u(t,s,{value:{objectID:"O"+ ++f,weakData:{}}})},h=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,s)){if(!l(t))return"F";if(!e)return"E";p(t)}return t[s].objectID},getWeakData:function(t,e){if(!i(t,s)){if(!l(t))return!0;if(!e)return!1;p(t)}return t[s].weakData},onFreeze:function(t){return c&&h.REQUIRED&&l(t)&&!i(t,s)&&p(t),t}};n[s]=!0},50684:(t,e,r)=>{var n,o,i,u=r(77650),a=r(45001),c=r(62366),s=r(50430),f=r(51900),l=r(61695),p=r(92499),h=a.WeakMap;if(u){var v=new h,d=v.get,y=v.has,g=v.set;n=function(t,e){return g.call(v,t,e),e},o=function(t){return d.call(v,t)||{}},i=function(t){return y.call(v,t)}}else{var b=l("state");p[b]=!0,n=function(t,e){return s(t,b,e),e},o=function(t){return f(t,b)?t[b]:{}},i=function(t){return f(t,b)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},55557:(t,e,r)=>{var n=r(46802),o=r(80501),i=n("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},20119:(t,e,r)=>{var n=r(75489);t.exports=Array.isArray||function(t){return"Array"==n(t)}},91092:(t,e,r)=>{var n=r(25061),o=/#|\.prototype\./,i=function(t,e){var r=a[u(t)];return r==s||r!=c&&("function"==typeof e?n(e):!!e)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=i.data={},c=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},62366:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},20013:t=>{t.exports=!1},98971:(t,e,r)=>{var n=r(4905),o=r(55557),i=r(74479),u=r(17755),a=r(26354),c=r(35304),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,r,f,l){var p,h,v,d,y,g,b,_=u(e,r,f?2:1);if(l)p=t;else{if("function"!=typeof(h=a(t)))throw TypeError("Target is not iterable");if(o(h)){for(v=0,d=i(t.length);d>v;v++)if((y=f?_(n(b=t[v])[0],b[1]):_(t[v]))&&y instanceof s)return y;return new s(!1)}p=h.call(t)}for(g=p.next;!(b=g.call(p)).done;)if("object"==typeof(y=c(p,_,b.value,f))&&y&&y instanceof s)return y;return new s(!1)}).stop=function(t){return new s(!0,t)}},61151:(t,e,r)=>{"use strict";var n,o,i,u=r(64320),a=r(50430),c=r(51900),s=r(46802),f=r(20013),l=s("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(n=o):p=!0),null==n&&(n={}),f||c(n,l)||a(n,l,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},80501:t=>{t.exports={}},99262:(t,e,r)=>{var n=r(25061);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},77650:(t,e,r)=>{var n=r(45001),o=r(21501),i=n.WeakMap;t.exports="function"==typeof i&&/native code/.test(o.call(i))},71640:(t,e,r)=>{"use strict";var n=r(11502),o=r(25061),i=r(89749),u=r(72822),a=r(49265),c=r(87615),s=r(62901),f=Object.assign;t.exports=!f||o((function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=f({},t)[r]||i(f({},e)).join("")!=n}))?function(t,e){for(var r=c(t),o=arguments.length,f=1,l=u.f,p=a.f;o>f;)for(var h,v=s(arguments[f++]),d=l?i(v).concat(l(v)):i(v),y=d.length,g=0;y>g;)h=d[g++],n&&!p.call(v,h)||(r[h]=v[h]);return r}:f},22275:(t,e,r)=>{var n=r(4905),o=r(56191),i=r(72089),u=r(92499),a=r(12118),c=r(36009),s=r(61695)("IE_PROTO"),f="prototype",l=function(){},p=function(){var t,e=c("iframe"),r=i.length,n="script",o="java"+n+":";for(e.style.display="none",a.appendChild(e),e.src=String(o),(t=e.contentWindow.document).open(),t.write("<"+n+">document.F=Object</"+n+">"),t.close(),p=t.F;r--;)delete p[f][i[r]];return p()};t.exports=Object.create||function(t,e){var r;return null!==t?(l[f]=n(t),r=new l,l[f]=null,r[s]=t):r=p(),void 0===e?r:o(r,e)},u[s]=!0},56191:(t,e,r)=>{var n=r(11502),o=r(56462),i=r(4905),u=r(89749);t.exports=n?Object.defineProperties:function(t,e){i(t);for(var r,n=u(e),a=n.length,c=0;a>c;)o.f(t,r=n[c++],e[r]);return t}},56462:(t,e,r)=>{var n=r(11502),o=r(17788),i=r(4905),u=r(76973),a=Object.defineProperty;e.f=n?a:function(t,e,r){if(i(t),e=u(e,!0),i(r),o)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},8117:(t,e,r)=>{var n=r(11502),o=r(49265),i=r(86034),u=r(40678),a=r(76973),c=r(51900),s=r(17788),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=u(t),e=a(e,!0),s)try{return f(t,e)}catch(t){}if(c(t,e))return i(!o.f.call(t,e),t[e])}},59219:(t,e,r)=>{var n=r(23855),o=r(72089).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},72822:(t,e)=>{e.f=Object.getOwnPropertySymbols},64320:(t,e,r)=>{var n=r(51900),o=r(87615),i=r(61695),u=r(10149),a=i("IE_PROTO"),c=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),n(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},23855:(t,e,r)=>{var n=r(51900),o=r(40678),i=r(5029).indexOf,u=r(92499);t.exports=function(t,e){var r,a=o(t),c=0,s=[];for(r in a)!n(u,r)&&n(a,r)&&s.push(r);for(;e.length>c;)n(a,r=e[c++])&&(~i(s,r)||s.push(r));return s}},89749:(t,e,r)=>{var n=r(23855),o=r(72089);t.exports=Object.keys||function(t){return n(t,o)}},49265:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},22848:(t,e,r)=>{var n=r(4905),o=r(29076);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return n(r),o(i),e?t.call(r,i):r.__proto__=i,r}}():void 0)},45085:(t,e,r)=>{"use strict";var n=r(20486),o={};o[r(46802)("toStringTag")]="z",t.exports="[object z]"!==String(o)?function(){return"[object "+n(this)+"]"}:o.toString},62466:(t,e,r)=>{var n=r(3425),o=r(59219),i=r(72822),u=r(4905);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(u(t)),r=i.f;return r?e.concat(r(t)):e}},7206:(t,e,r)=>{var n=r(45001),o=r(9522).trim,i=r(49309),u=n.parseInt,a=/^[+-]?0[Xx]/,c=8!==u(i+"08")||22!==u(i+"0x16");t.exports=c?function(t,e){var r=o(String(t));return u(r,e>>>0||(a.test(r)?16:10))}:u},53757:(t,e,r)=>{t.exports=r(45001)},86846:(t,e,r)=>{var n=r(96313);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},96313:(t,e,r)=>{var n=r(45001),o=r(6809),i=r(50430),u=r(51900),a=r(88506),c=r(21501),s=r(50684),f=s.get,l=s.enforce,p=String(c).split("toString");o("inspectSource",(function(t){return c.call(t)})),(t.exports=function(t,e,r,o){var c=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,f=!!o&&!!o.noTargetGet;"function"==typeof r&&("string"!=typeof e||u(r,"name")||i(r,"name",e),l(r).source=p.join("string"==typeof e?e:"")),t!==n?(c?!f&&t[e]&&(s=!0):delete t[e],s?t[e]=r:i(t,e,r)):s?t[e]=r:a(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||c.call(this)}))},41847:(t,e,r)=>{var n=r(75489),o=r(44847);t.exports=function(t,e){var r=t.exec;if("function"==typeof r){var i=r.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},44847:(t,e,r)=>{"use strict";var n,o,i=r(5268),u=RegExp.prototype.exec,a=String.prototype.replace,c=u,s=(n=/a/,o=/b*/g,u.call(n,"a"),u.call(o,"a"),0!==n.lastIndex||0!==o.lastIndex),f=void 0!==/()??/.exec("")[1];(s||f)&&(c=function(t){var e,r,n,o,c=this;return f&&(r=new RegExp("^"+c.source+"$(?!\\s)",i.call(c))),s&&(e=c.lastIndex),n=u.call(c,t),s&&n&&(c.lastIndex=c.global?n.index+n[0].length:e),f&&n&&n.length>1&&a.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n}),t.exports=c},5268:(t,e,r)=>{"use strict";var n=r(4905);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},64475:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},88506:(t,e,r)=>{var n=r(45001),o=r(50430);t.exports=function(t,e){try{o(n,t,e)}catch(r){n[t]=e}return e}},40606:(t,e,r)=>{var n=r(56462).f,o=r(51900),i=r(46802)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},61695:(t,e,r)=>{var n=r(6809),o=r(41050),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},19982:(t,e,r)=>{var n=r(45001),o=r(88506),i="__core-js_shared__",u=n[i]||o(i,{});t.exports=u},6809:(t,e,r)=>{var n=r(20013),o=r(19982);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.4.0",mode:n?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},31853:(t,e,r)=>{"use strict";var n=r(25061);t.exports=function(t,e){var r=[][t];return!r||!n((function(){r.call(null,e||function(){throw 1},1)}))}},50189:(t,e,r)=>{var n=r(90321),o=r(64475),i=function(t){return function(e,r){var i,u,a=String(o(e)),c=n(r),s=a.length;return c<0||c>=s?t?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===s||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):i:t?a.slice(c,c+2):u-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},9522:(t,e,r)=>{var n=r(64475),o="["+r(49309)+"]",i=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),a=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(i,"")),2&t&&(r=r.replace(u,"")),r}};t.exports={start:a(1),end:a(2),trim:a(3)}},6971:(t,e,r)=>{var n=r(90321),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},40678:(t,e,r)=>{var n=r(62901),o=r(64475);t.exports=function(t){return n(o(t))}},90321:t=>{var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},74479:(t,e,r)=>{var n=r(90321),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},87615:(t,e,r)=>{var n=r(64475);t.exports=function(t){return Object(n(t))}},76973:(t,e,r)=>{var n=r(62366);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},41050:t=>{var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},84583:(t,e,r)=>{var n=r(3425);t.exports=n("navigator","userAgent")||""},24101:(t,e,r)=>{var n,o,i=r(45001),u=r(84583),a=i.process,c=a&&a.versions,s=c&&c.v8;s?o=(n=s.split("."))[0]+n[1]:u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},46802:(t,e,r)=>{var n=r(45001),o=r(6809),i=r(41050),u=r(99262),a=n.Symbol,c=o("wks");t.exports=function(t){return c[t]||(c[t]=u&&a[t]||(u?a:i)("Symbol."+t))}},49309:t=>{t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},15296:(t,e,r)=>{"use strict";var n=r(29638),o=r(72758).filter;n({target:"Array",proto:!0,forced:!r(95611)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},94386:(t,e,r)=>{"use strict";var n=r(29638),o=r(16607);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},48868:(t,e,r)=>{"use strict";var n=r(40678),o=r(5822),i=r(80501),u=r(50684),a=r(30645),c="Array Iterator",s=u.set,f=u.getterFor(c);t.exports=a(Array,"Array",(function(t,e){s(this,{type:c,target:n(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},82937:(t,e,r)=>{"use strict";var n=r(29638),o=r(62040).left;n({target:"Array",proto:!0,forced:r(31853)("reduce")},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},66403:(t,e,r)=>{var n=r(11502),o=r(56462).f,i=Function.prototype,u=i.toString,a=/^\s*function ([^ (]*)/,c="name";n&&!(c in i)&&o(i,c,{configurable:!0,get:function(){try{return u.call(this).match(a)[1]}catch(t){return""}}})},96609:(t,e,r)=>{var n=r(29638),o=r(71640);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},92274:(t,e,r)=>{var n=r(96313),o=r(45085),i=Object.prototype;o!==i.toString&&n(i,"toString",o,{unsafe:!0})},68268:(t,e,r)=>{var n=r(29638),o=r(7206);n({global:!0,forced:parseInt!=o},{parseInt:o})},42295:(t,e,r)=>{"use strict";var n=r(29638),o=r(44847);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},81874:(t,e,r)=>{"use strict";var n=r(50189).charAt,o=r(50684),i=r(30645),u="String Iterator",a=o.set,c=o.getterFor(u);i(String,"String",(function(t){a(this,{type:u,string:String(t),index:0})}),(function(){var t,e=c(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o),e.index+=t.length,{value:t,done:!1})}))},52963:(t,e,r)=>{"use strict";var n=r(95453),o=r(4905),i=r(74479),u=r(64475),a=r(25528),c=r(41847);n("match",1,(function(t,e,r){return[function(e){var r=u(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var u=o(t),s=String(this);if(!u.global)return c(u,s);var f=u.unicode;u.lastIndex=0;for(var l,p=[],h=0;null!==(l=c(u,s));){var v=String(l[0]);p[h]=v,""===v&&(u.lastIndex=a(s,i(u.lastIndex),f)),h++}return 0===h?null:p}]}))},34994:(t,e,r)=>{"use strict";var n=r(95453),o=r(4905),i=r(87615),u=r(74479),a=r(90321),c=r(64475),s=r(25528),f=r(41847),l=Math.max,p=Math.min,h=Math.floor,v=/\$([$&'`]|\d\d?|<[^>]*>)/g,d=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(t,e,r){return[function(r,n){var o=c(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,n):e.call(String(o),r,n)},function(t,i){var c=r(e,t,this,i);if(c.done)return c.value;var h=o(t),v=String(this),d="function"==typeof i;d||(i=String(i));var y=h.global;if(y){var g=h.unicode;h.lastIndex=0}for(var b=[];;){var _=f(h,v);if(null===_)break;if(b.push(_),!y)break;""===String(_[0])&&(h.lastIndex=s(v,u(h.lastIndex),g))}for(var x,m="",w=0,O=0;O<b.length;O++){_=b[O];for(var E=String(_[0]),j=l(p(a(_.index),v.length),0),S=[],T=1;T<_.length;T++)S.push(void 0===(x=_[T])?x:String(x));var A=_.groups;if(d){var M=[E].concat(S,j,v);void 0!==A&&M.push(A);var I=String(i.apply(void 0,M))}else I=n(E,v,j,S,A,i);j>=w&&(m+=v.slice(w,j)+I,w=j+E.length)}return m+v.slice(w)}];function n(t,r,n,o,u,a){var c=n+t.length,s=o.length,f=d;return void 0!==u&&(u=i(u),f=v),e.call(a,f,(function(e,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,n);case"'":return r.slice(c);case"<":a=u[i.slice(1,-1)];break;default:var f=+i;if(0===f)return e;if(f>s){var l=h(f/10);return 0===l?e:l<=s?void 0===o[l-1]?i.charAt(1):o[l-1]+i.charAt(1):e}a=o[f-1]}return void 0===a?"":a}))}}))},31341:(t,e,r)=>{"use strict";var n,o=r(45001),i=r(86846),u=r(81738),a=r(66606),c=r(53769),s=r(62366),f=r(50684).enforce,l=r(77650),p=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,v=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},d=t.exports=a("WeakMap",v,c,!0,!0);if(l&&p){n=c.getConstructor(v,"WeakMap",!0),u.REQUIRED=!0;var y=d.prototype,g=y.delete,b=y.has,_=y.get,x=y.set;i(y,{delete:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new n),g.call(this,t)||e.frozen.delete(t)}return g.call(this,t)},has:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new n),b.call(this,t)||e.frozen.has(t)}return b.call(this,t)},get:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new n),b.call(this,t)?_.call(this,t):e.frozen.get(t)}return _.call(this,t)},set:function(t,e){if(s(t)&&!h(t)){var r=f(this);r.frozen||(r.frozen=new n),b.call(this,t)?x.call(this,t,e):r.frozen.set(t,e)}else x.call(this,t,e);return this}})}},54861:(t,e,r)=>{var n=r(45001),o=r(58514),i=r(48868),u=r(50430),a=r(46802),c=a("iterator"),s=a("toStringTag"),f=i.values;for(var l in o){var p=n[l],h=p&&p.prototype;if(h){if(h[c]!==f)try{u(h,c,f)}catch(t){h[c]=f}if(h[s]||u(h,s,l),o[l])for(var v in i)if(h[v]!==i[v])try{u(h,v,i[v])}catch(t){h[v]=i[v]}}}},40001:(t,e,r)=>{var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,u=/^0o[0-7]+$/i,a=parseInt,c="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,s="object"==typeof self&&self&&self.Object===Object&&self,f=c||s||Function("return this")(),l=Object.prototype.toString,p=Math.max,h=Math.min,v=function(){return f.Date.now()};function d(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function y(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(d(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=d(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var r=i.test(t);return r||u.test(t)?a(t.slice(2),r?2:8):o.test(t)?NaN:+t}t.exports=function(t,e,r){var n,o,i,u,a,c,s=0,f=!1,l=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(e){var r=n,i=o;return n=o=void 0,s=e,u=t.apply(i,r)}function _(t){var r=t-c;return void 0===c||r>=e||r<0||l&&t-s>=i}function x(){var t=v();if(_(t))return m(t);a=setTimeout(x,function(t){var r=e-(t-c);return l?h(r,i-(t-s)):r}(t))}function m(t){return a=void 0,g&&n?b(t):(n=o=void 0,u)}function w(){var t=v(),r=_(t);if(n=arguments,o=this,c=t,r){if(void 0===a)return function(t){return s=t,a=setTimeout(x,e),f?b(t):u}(c);if(l)return a=setTimeout(x,e),b(c)}return void 0===a&&(a=setTimeout(x,e)),u}return e=y(e)||0,d(r)&&(f=!!r.leading,i=(l="maxWait"in r)?p(y(r.maxWait)||0,e):i,g="trailing"in r?!!r.trailing:g),w.cancel=function(){void 0!==a&&clearTimeout(a),s=0,n=c=o=a=void 0},w.flush=function(){return void 0===a?u:m(v())},w}},98511:(t,e,r)=>{var n,o="__lodash_hash_undefined__",i="[object Function]",u="[object GeneratorFunction]",a=/^\[object .+?Constructor\]$/,c="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,s="object"==typeof self&&self&&self.Object===Object&&self,f=c||s||Function("return this")(),l=Array.prototype,p=Function.prototype,h=Object.prototype,v=f["__core-js_shared__"],d=(n=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",y=p.toString,g=h.hasOwnProperty,b=h.toString,_=RegExp("^"+y.call(g).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=l.splice,m=A(f,"Map"),w=A(Object,"create");function O(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function E(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function S(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function T(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function A(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){if(!I(t)||d&&d in t)return!1;var e=function(t){var e=I(t)?b.call(t):"";return e==i||e==u}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?_:a;return e.test(function(t){if(null!=t){try{return y.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}(r)?r:void 0}function M(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u),u};return r.cache=new(M.Cache||j),r}function I(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}O.prototype.clear=function(){this.__data__=w?w(null):{}},O.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},O.prototype.get=function(t){var e=this.__data__;if(w){var r=e[t];return r===o?void 0:r}return g.call(e,t)?e[t]:void 0},O.prototype.has=function(t){var e=this.__data__;return w?void 0!==e[t]:g.call(e,t)},O.prototype.set=function(t,e){return this.__data__[t]=w&&void 0===e?o:e,this},E.prototype.clear=function(){this.__data__=[]},E.prototype.delete=function(t){var e=this.__data__,r=S(e,t);return!(r<0||(r==e.length-1?e.pop():x.call(e,r,1),0))},E.prototype.get=function(t){var e=this.__data__,r=S(e,t);return r<0?void 0:e[r][1]},E.prototype.has=function(t){return S(this.__data__,t)>-1},E.prototype.set=function(t,e){var r=this.__data__,n=S(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},j.prototype.clear=function(){this.__data__={hash:new O,map:new(m||E),string:new O}},j.prototype.delete=function(t){return T(this,t).delete(t)},j.prototype.get=function(t){return T(this,t).get(t)},j.prototype.has=function(t){return T(this,t).has(t)},j.prototype.set=function(t,e){return T(this,t).set(t,e),this},M.Cache=j,t.exports=M},50200:(t,e,r)=>{var n="Expected a function",o=NaN,i="[object Symbol]",u=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,f=parseInt,l="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,p="object"==typeof self&&self&&self.Object===Object&&self,h=l||p||Function("return this")(),v=Object.prototype.toString,d=Math.max,y=Math.min,g=function(){return h.Date.now()};function b(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function _(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&v.call(t)==i}(t))return o;if(b(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=b(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(u,"");var r=c.test(t);return r||s.test(t)?f(t.slice(2),r?2:8):a.test(t)?o:+t}t.exports=function(t,e,r){var o=!0,i=!0;if("function"!=typeof t)throw new TypeError(n);return b(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),function(t,e,r){var o,i,u,a,c,s,f=0,l=!1,p=!1,h=!0;if("function"!=typeof t)throw new TypeError(n);function v(e){var r=o,n=i;return o=i=void 0,f=e,a=t.apply(n,r)}function x(t){var r=t-s;return void 0===s||r>=e||r<0||p&&t-f>=u}function m(){var t=g();if(x(t))return w(t);c=setTimeout(m,function(t){var r=e-(t-s);return p?y(r,u-(t-f)):r}(t))}function w(t){return c=void 0,h&&o?v(t):(o=i=void 0,a)}function O(){var t=g(),r=x(t);if(o=arguments,i=this,s=t,r){if(void 0===c)return function(t){return f=t,c=setTimeout(m,e),l?v(t):a}(s);if(p)return c=setTimeout(m,e),v(s)}return void 0===c&&(c=setTimeout(m,e)),a}return e=_(e)||0,b(r)&&(l=!!r.leading,u=(p="maxWait"in r)?d(_(r.maxWait)||0,e):u,h="trailing"in r?!!r.trailing:h),O.cancel=function(){void 0!==c&&clearTimeout(c),f=0,o=s=i=c=void 0},O.flush=function(){return void 0===c?a:w(g())},O}(t,e,{leading:o,maxWait:e,trailing:i})}},54006:(t,e,r)=>{"use strict";r.d(e,{Z:()=>O});var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var r=-1;return t.some((function(t,n){return t[0]===e&&(r=n,!0)})),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var r=t(this.__entries__,e),n=this.__entries__[r];return n&&n[1]},e.prototype.set=function(e,r){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=r:this.__entries__.push([e,r])},e.prototype.delete=function(e){var r=this.__entries__,n=t(r,e);~n&&r.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var r=0,n=this.__entries__;r<n.length;r++){var o=n[r];t.call(e,o[1],o[0])}},e}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==r.g&&r.g.Math===Math?r.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),u="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},a=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,s=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var r=!1,n=!1,o=0;function i(){r&&(r=!1,t()),n&&c()}function a(){u(i)}function c(){var t=Date.now();if(r){if(t-o<2)return;n=!0}else r=!0,n=!1,setTimeout(a,e);o=t}return c}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,r=e.indexOf(t);~r&&e.splice(r,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,r=void 0===e?"":e;a.some((function(t){return!!~r.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),f=function(t,e){for(var r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},l=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},p=g(0,0,0,0);function h(t){return parseFloat(t)||0}function v(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce((function(e,r){return e+h(t["border-"+r+"-width"])}),0)}var d="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof l(t).SVGGraphicsElement}:function(t){return t instanceof l(t).SVGElement&&"function"==typeof t.getBBox};function y(t){return o?d(t)?function(t){var e=t.getBBox();return g(0,0,e.width,e.height)}(t):function(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return p;var n=l(t).getComputedStyle(t),o=function(t){for(var e={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var o=n[r],i=t["padding-"+o];e[o]=h(i)}return e}(n),i=o.left+o.right,u=o.top+o.bottom,a=h(n.width),c=h(n.height);if("border-box"===n.boxSizing&&(Math.round(a+i)!==e&&(a-=v(n,"left","right")+i),Math.round(c+u)!==r&&(c-=v(n,"top","bottom")+u)),!function(t){return t===l(t).document.documentElement}(t)){var s=Math.round(a+i)-e,f=Math.round(c+u)-r;1!==Math.abs(s)&&(a-=s),1!==Math.abs(f)&&(c-=f)}return g(o.left,o.top,a,c)}(t):p}function g(t,e,r,n){return{x:t,y:e,width:r,height:n}}var b=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=y(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),_=function(t,e){var r,n,o,i,u,a,c,s=(n=(r=e).x,o=r.y,i=r.width,u=r.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),f(c,{x:n,y:o,width:i,height:u,top:o,right:n+i,bottom:u+o,left:n}),c);f(this,{target:t,contentRect:s})},x=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new b(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new _(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),m="undefined"!=typeof WeakMap?new WeakMap:new n,w=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=s.getInstance(),n=new x(e,r,this);m.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){w.prototype[t]=function(){var e;return(e=m.get(this))[t].apply(e,arguments)}}));const O=void 0!==i.ResizeObserver?i.ResizeObserver:w}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[309],{77369:(e,t,n)=>{n.d(t,{C:()=>w,g:()=>g});var a,r=n(32735),i=n(23481),o=n(83914),c=n(36532),l=n(5960);!function(e){e.Exchange="exchange",e.Streamable="streamable",e.MoviesAndTv="movies_and_tv",e.Twig="twig"}(a||(a={}));var s,u,d=n(93264),m=n(26361),v=n(35223);function p(e){return p="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},p(e)}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=p(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Folder="category",e.CategoryTree="category_tree",e.CustomLibrary="custom_library",e.HostedLibrary="hosted_library",e.Exchange="exchange",e.Workspace="workspace",e.Video="video",e.Clip="clip",e.Interactive="interactive"}(s||(s={})),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(u||(u={}));var g,y="shared.shared-utils",h={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-blue";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case s.HostedLibrary:case s.CustomLibrary:return e.name;case s.Exchange:return i.T.getPhrase(y,"exchange");case s.Workspace:return i.T.getPhrase(y,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case s.HostedLibrary:case s.CustomLibrary:return"bg-blue";case s.Exchange:return"bg-green";case s.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t=f(f(f(f(f(f(f({},u.Pdf,v.vn.FilePDF),u.Image,v.vn.FileImg),u.PowerPoint,v.vn.FilePowerpoint),u.Document,v.vn.FileWord),u.Excel,v.vn.FileExcel),u.Zip,v.vn.FileZip),u.File,v.vn.File)[e];return t||(t=v.vn.Folder),t},mapTypeToClass:function(e){switch(e){case u.Pdf:return"icon-red";case u.Image:return"icon-purple";case u.Document:return"icon-blue";case u.Excel:return"icon-green";case u.PowerPoint:return"icon-orange";case u.Zip:return"icon-teal";case u.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case u.Pdf:return i.T.getPhrase(y,"pdf");case u.Image:return i.T.getPhrase(y,"image");case u.Document:return i.T.getPhrase(y,"document");case u.Excel:return i.T.getPhrase(y,"spreadsheet");case u.PowerPoint:return i.T.getPhrase(y,"presentation");case u.Zip:return i.T.getPhrase(y,"zipArchive");case u.File:return i.T.getPhrase(y,"file");default:return""}}},b=n(86474),E=i.T.encloseNamespace("shared.badges");function w(e){var t=e.type,n=e.data;if(!function(e,t){var n,a;return"boolean"==typeof t?!!t:e===g.Rating?t&&!!t.value:e===g.Interactive?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===g.Captions?!!(null==t?void 0:t.length)||!!(null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.length):e===g.Status?"number"==typeof t:!!t}(t,n))return r.createElement(r.Fragment,null);var i=function(e,t){var n,r="";if(e===g.DurationApproximate&&(r="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===g.DurationExact&&(r="duration-badge"),e===g.Interactive&&(r="interactive-badge"),e===g.Rating&&(r="rating-badge ".concat(h.mapRatingToClass(t.value))),e===g.ProductionYear&&(r="production-year-badge"),e===g.Captions)return"p-0";if(e===g.Status)return"badge ".concat(function(e){switch(e){case l.X.Published:return"bg-success";case l.X.Archived:case l.X.Rejected:return"bg-danger";case l.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case l.X.Pending:case l.X.Processing:return"bg-warning"}}(t));if(e===g.Trending)return"trending-badge px-2 d-flex align-items-center";if(e===g.Count&&(r="count-badge px-1 rounded"),e===g.Restriction){var i=m.l.mapRestrictionToClass(t.restrictions);return"restriction-badge rounded-pill px-2 d-flex align-items-center ".concat(i)}return e===g.Source&&(r=(n=t).includes(a.Streamable)?"px-1 text-nowrap d-flex align-items-center ".concat(b.Z.streamable):n.includes(a.MoviesAndTv)?"bg-indigo text-white px-1 text-nowrap d-flex align-items-center":n.includes(a.Exchange)?"bg-orange text-white px-1 text-nowrap d-flex align-items-center":n.includes(a.Twig)?"bg-pink text-white px-1 text-nowrap d-flex align-items-center":""),"".concat("badge"," ").concat(r)}(t,n);i="".concat(i," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var s=function(e,t){if(e===g.Interactive)return E("interactive");if(e===g.DurationApproximate)return d.T.ToDisplayDurationNewStyle(t);if(e===g.DurationExact)return d.T.ToDisplayDuration(t);if(e===g.Rating)return t.code;if(e===g.ProductionYear)return t;if(e===g.Captions)return r.createElement(o.x,{svgName:v.vn.CloseCaptionBadge});if(e===g.Status)return l.X[t];if(e===g.Trending)return r.createElement(r.Fragment,null,r.createElement(o.x,{svgName:v.vn.Trending}),r.createElement("span",{className:"ps-1"},t));if(e===g.Count)return t;if(e===g.Restriction)return r.createElement(r.Fragment,null,r.createElement(o.x,{svgName:m.l.mapRestrictionToSvg(t.restrictions)}),r.createElement("span",null,m.l.mapRestrictionToText(t.restrictions,t.yearGroups)));if(e===g.Source){var n=t;return n.includes(a.Streamable)?"streamable":n.includes(a.MoviesAndTv)?"movies + tv":n.includes(a.Exchange)?"exchange":n.includes(a.Twig)?"twig":"-"}}(t,n),u=function(e,t){return e===g.Rating?{title:t.name,placement:"top"}:null}(t,n),p=e.inline&&"d-inline-block";return u?r.createElement("div",{className:"badge-wrapper d-inline"},r.createElement(c.u,Object.assign({},u,{spanHack:!0,spanHackClassName:p}),r.createElement("span",{className:i},s))):r.createElement("span",{className:"".concat(i," badge-wrapper")},s)}!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction",e.Source="source"}(g||(g={}))},13669:(e,t,n)=>{n.d(t,{I:()=>d,h:()=>u});var a=n(32735),r=n(79014),i=n(83914),o=n(35223),c=n(11607);const l={unchecked:"bup9I",outline:"ealw_",checked:"A1Ov0",checkMark:"c14lI"};function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var u;function d(e){var t,n,d=(t=a.useState(e.status===u.Complete),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(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.")}()),m=d[0],v=d[1];a.useEffect((function(){v(e.status===u.Complete)}),[e.status]);var p="cursor-pointer rounded-circle ".concat(m?l.checked:l.unchecked);return e.className&&(p+=" ".concat(e.className)),"outline"===e.style&&(p+=" ".concat(l.outline)),e.status&&e.status!==u.None&&r.q.isFunction(e.setStatus)?a.createElement(c.L,{className:p,onClick:function(){var t=!m;v(t);var n=t?u.Complete:u.Incomplete;e.setStatus(n).catch((function(){v(!t)}))},disabled:e.disabled},a.createElement(i.x,{svgName:o.vn.Tick,className:"svg-container ".concat(l.checkMark)})):a.createElement(a.Fragment,null)}!function(e){e.None="None",e.Complete="Complete",e.Incomplete="Incomplete"}(u||(u={})),d.defaultProps={style:"filled"}},75090:(e,t,n)=>{n.d(t,{Z:()=>f});var a=n(32735),r=n(1048),i=n(57408),o=n(34152);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}const l="fVSzb";function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var u=a.memo((function(e){var t,n,r=e.forceLoad,i=e.extraClasses,u=void 0===i?"":i,d=e.errorFallbackImageSrc,m=e.preventLoad,v=void 0!==m&&m,p=e.errorFallbackImageClassName,f=e.src,g=e.alt,y=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["forceLoad","extraClasses","errorFallbackImageSrc","preventLoad","errorFallbackImageClassName","src","alt"]),h=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=n.prevent,r=n.rootMargin,i=n.triggerOnce,l=void 0===i||i,s=(e=(0,o.YD)({triggerOnce:l,rootMargin:r}),t=3,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1],m=s[2];return!0!==a&&void 0!==window.IntersectionObserver||(d=!0,u=null),{ref:u,inView:d,initialized:!!m}}({rootMargin:"500px"}),b=h.ref,E=h.inView,w=(t=a.useState(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(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.")}()),O=w[0],C=w[1];function N(){return O&&d?d:e.src}if(a.useEffect((function(){if((r||E)&&!v){var e=new Image;return e.onerror=function(){C(!0),d&&(e.src=d)},e.src=f,function(){return e.onerror=null}}}),[E,v]),O&&!d)return a.createElement(a.Fragment,null);if(!b)return a.createElement("img",Object.assign({className:"".concat(l," ").concat(u," ").concat(O&&p||""),alt:g,src:N()},y));var k=Object.assign(Object.assign({alt:g},y),!E&&!r||v?{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}:{src:N()});return r||(k.ref=b),a.createElement("img",Object.assign({className:"".concat(l," ").concat(u," ").concat(O&&p||"")},k))})),d=n(54610),m=n(67453);const v={image:"vdd4V",thumbnail:"Ez0E7",tallPoster:"H9bQA",cover:"Nudts",banner:"IOvDH",poster:"iiY56",pdf:"aDJiJ",link:"wDpui"};function p(e){var t=v.image,n="";return e.imageType===d.__.Thumbnails&&(n="thumbnail ".concat(v.thumbnail)),e.imageType===d.__.TallPosters&&(n=v.tallPoster),e.imageType===d.__.Covers&&(n=v.cover),e.imageType===d.__.Banners&&(n=v.banner),e.imageType===d.__.Posters&&(n=v.poster),e.imageType===d.__.Pdf&&(n=v.pdf),e.imageType===d.__.Link&&(n=v.link),n&&(t+=" ".concat(n)),e.className&&(t+=" ".concat(e.className)),t}function f(e){var t=e.data,n=e.imageOptions,o=e.appLink,c=e.preload,l=e.preventLoad,s=e.analyticsOptions,d=e.analyticsData,v=e.imageClassName,f=e.alt,g="";"string"==typeof t?g=t:r.t.isObject(t)&&(g=t.url);var y=g&&n?m.j.createUrl(g,n):g;return a.createElement("div",{className:p(e),style:e.imageStyle},a.createElement(i.F,{appLink:o,analyticsData:d,analyticsOptions:s,onClick:e.onClick},e.children,y&&a.createElement(u,{src:y,alt:f,forceLoad:c,preventLoad:l,extraClasses:v,errorFallbackImageSrc:e.errorFallbackImageSrc,errorFallbackImageClassName:e.errorFallbackImageClassName})))}},12309:(e,t,n)=>{n.d(t,{u:()=>rt});var a=n(32735),r=n(1048),i=n(65858),o=n(77369),c=n(86474);function l(e){var t="d-flex align-items-center badge-list ".concat(c.Z.minHeight);return e.className&&(t+=" ".concat(e.className)),a.createElement("div",{className:t},e.children)}var s=n(23481),u=n(79014),d=n(11607),m=n(83914),v=n(69883),p=n(82182),f=n(75896),g=n(31908),y={isFavouritedByCurrentUser:function(e){var t;return!(1!==(null===(t=null==e?void 0:e.favouritedBy)||void 0===t?void 0:t.data.length))},isFavouritedByUser:function(e,t){var n;return!!f.m.findWhere(null===(n=null==e?void 0:e.favouritedBy)||void 0===n?void 0:n.data,{id:null==t?void 0:t.id})},updateVideoState:function(e,t,n){return{id:e.id,favouritedBy:{data:n?[{id:t.id}]:[],pagination:{limit:25,cursors:{next:"",previous:""}}}}},showFavouriteButton:function(e,t){var n;return!(!(null===(n=g.M.getCanBeConsumed(e))||void 0===n?void 0:n.canConsume)||!t&&!p.V.isTabletOrMobile()&&!y.isFavouritedByCurrentUser(e))}},h=n(35223);const b={favourited:"t0svX",favouriteButton:"CFRo3",heart:"ZMMQu",heartOutline:"truFo"};function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var w=s.T.encloseNamespace("shared.favouriteButton");function O(e){var t,n,r=(0,v.Z)(),i=y.isFavouritedByCurrentUser(e.video),o=(t=a.useState(i),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=o[0],l=o[1];a.useEffect((function(){l(i)}),[i]);var s="".concat("d-flex align-items-center justify-content-center"," cursor-pointer ").concat(b.favouriteButton," ").concat(c?b.favourited:"");return e.className&&(s+=" ".concat(e.className)),u.q.isFunction(e.setFavourite)&&u.q.isFunction(e.canFavourite)&&e.canFavourite(e.video)?a.createElement(d.L,{className:s,onClick:function(){var t=!c;l(t),e.setFavourite(e.video,t,null,(function(){r.error(w(g.M.isClip(e.video)?t?"favouriteClipError":"unfavouriteClipError":g.M.isInteractive(e.video)?t?"favouriteInteractiveError":"unfavouriteInteractiveError":t?"favouriteVideoError":"unfavouriteVideoError")),l(!t)}),e.analyticsData,e.analyticsOptions)}},a.createElement(m.x,{svgName:h.vn.Heart,className:"svg-container ".concat(b.heart)}),a.createElement(m.x,{svgName:h.vn.HeartOutline,className:"svg-container ".concat(b.heartOutline)})):a.createElement(a.Fragment,null)}var C=n(75090),N=n(85177);function k(e){var t=g.M.getVideoProgress(e.video),n=t&&e.video.duration&&t/e.video.duration*1e5;return n?a.createElement("div",{className:"bg-primary h-100",style:{width:"".concat(n,"%")}}):a.createElement(a.Fragment,null)}const x={bottomBar:"YnXtZ"};function T(e){return g.M.isVideo(e.video)?a.createElement("div",{className:x.bottomBar},a.createElement(k,{video:e.video})):a.createElement(a.Fragment,null)}var S=n(57408),j=n(83345);const P={pluginHover:"h4RQa"};var I="shared.pluginHover";function L(e){return e.isPlugin?a.createElement(S.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,onClick:e.onClick,className:"\n position-absolute top-0 start-0 end-0 bottom-0 opacity-0 cursor-pointer\n ".concat(P.pluginHover,"\n ").concat(e.className?e.className:"","\n ")},a.createElement("span",{className:"position-absolute top-50 start-50 translate-middle text-nowrap h4 text-white"},a.createElement(j.x,{namespace:I,phrase:"embed"}))):a.createElement(a.Fragment,null)}const A={padlock:"w4cg8",sm:"JpIYd"};function F(e){var t="sm"===e.size?m.S.Small:m.S.Standard;return a.createElement("div",{className:"".concat(A.padlock," ").concat("sm"===e.size?A.sm:""," bg-white cursor-default d-flex align-items-center justify-content-center")},a.createElement(m.x,{svgName:h.vn.Lock,size:t}))}var D=n(54610),M=n(67453),R=n(36532);const V={logo:"OA9ft",sm:"fyo2J"};function z(e){var t,n,r,i;if(!g.M.isVideo(e.video)||!e.companyLogoFallbackUrl)return a.createElement(a.Fragment,null);var o=null===(n=null===(t=e.video.productionCompanies)||void 0===t?void 0:t.data)||void 0===n?void 0:n[0],c=M.j.createUrl(null!==(i=null===(r=null==o?void 0:o.logo)||void 0===r?void 0:r.url)&&void 0!==i?i:e.companyLogoFallbackUrl,{size:D.h2.Small});return c?a.createElement("div",null,a.createElement(R.u,{title:null==o?void 0:o.name,spanHack:!0},a.createElement("div",{className:"".concat(V.logo," ").concat("sm"===e.size?V.sm:""),style:{backgroundImage:"url(".concat(c,")")}}))):a.createElement(a.Fragment,null)}z.defaultProps={size:"md"};var _=n(28400),B=n(74254),H={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}},U=n(4594),G={isSeries:function(e){return(null==e?void 0:e.typeId)===U.E.Series},buildSeriesSeasonEpisodeText:function(e,t,n){if(!e)return"";if(!t||!n)return e.toUpperCase();var a=H.padNumber(t,2),r=H.padNumber(n,2);return"".concat(e.toUpperCase()," S").concat(a," • E").concat(r)}};const W={subText:"F_1ii",sm:"BxmrB"};function X(e){var t="text-uppercase text-truncate mb-0 ".concat(W.subText," ").concat("sm"===e.size?"".concat(W.sm," fw-normal"):""," ").concat(e.className);return e.appLink?a.createElement(S.F,{className:t,appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,title:e.title},e.children):a.createElement("div",{className:t,title:e.title},e.children)}const Z={appLink:"yI6tx",hoverUnderline:"ehDUT"};function q(e){var t=e.video,n=t.season;if(!t.episodeNumber||!n)return a.createElement(a.Fragment,null);var r=H.padNumber(n.number,2),i=H.padNumber(t.episodeNumber,2);return a.createElement("span",{className:"d-inline-block ".concat(e.appLink?Z.hoverUnderline:"")},e.withSeriesTitle&&a.createElement(a.Fragment,null," "),!!r&&"S".concat(r," • "),"E",i)}function Y(e){var t=g.M.getReleaseDate(e.video);return t?g.M.hasSeries(e.video)?a.createElement(a.Fragment,null," • ".concat(t)):a.createElement(a.Fragment,null,t):a.createElement(a.Fragment,null)}function Q(e){var t,n=e.appLink,r=e.video,i=e.className,o=void 0===i?"":i,c=null==r?void 0:r.series,l=g.M.getReleaseDate(e.video);if(!(null==c?void 0:c.id)&&!l)return a.createElement(a.Fragment,null);var s=(null==c?void 0:c.id)&&n&&Object.assign(Object.assign({},n),{args:[c.id,_.m.slugify(c.name)]}),u=Object.assign(Object.assign({},e.analyticsData),{id:null==c?void 0:c.id,name:null==c?void 0:c.name,videoId:null==r?void 0:r.id,videoName:null==r?void 0:r.name}),d=Object.assign(Object.assign({},e.analyticsOptions),{entity:B.py.Series,actionType:B.Vw.Click,descriptor:B._S.Title}),m=G.buildSeriesSeasonEpisodeText(null==c?void 0:c.name,null===(t=r.season)||void 0===t?void 0:t.number,r.episodeNumber);return a.createElement(X,{appLink:s,className:"d-block ".concat(Z.appLink," ").concat(o),analyticsData:u,analyticsOptions:d,title:m},(null==c?void 0:c.name)&&c.name,a.createElement(q,Object.assign({},e,{withSeriesTitle:!0})),a.createElement(Y,Object.assign({},e)))}function $(e){var t,n,r=e.appLink,i=e.video,o=e.className,c=void 0===o?"":o,l=null===(n=null===(t=null==i?void 0:i.productionCompanies)||void 0===t?void 0:t.data)||void 0===n?void 0:n[0];if(!(null==l?void 0:l.id))return a.createElement(a.Fragment,null);var s=(null==l?void 0:l.id)&&r&&Object.assign(Object.assign({},r),{args:[l.id,_.m.slugify(l.name)]}),u=Object.assign(Object.assign({},e.analyticsData),{id:null==l?void 0:l.id,name:null==l?void 0:l.name,videoId:null==i?void 0:i.id,videoName:null==i?void 0:i.name}),d=Object.assign(Object.assign({},e.analyticsOptions),{entity:B.py.Company,actionType:B.Vw.Click,descriptor:B._S.Title});return a.createElement(X,{appLink:s,className:"d-block ".concat(Z.appLink," ").concat(c),analyticsData:u,analyticsOptions:d,title:l.name},l.name)}function J(e){var t=e.type,n=void 0===t?"series":t;return"none"===n?a.createElement(a.Fragment,null):"series"===n?a.createElement(Q,Object.assign({},e)):a.createElement($,Object.assign({},e))}var K=n(5960);const ee={topLeftContainer:"iwBld",draft:"QBpxh",badge:"KcvGx",svg:"gW733",text:"QiH5Q",sm:"tn2BH"};var te=s.T.encloseNamespace("shared.typeBadge");function ne(e){switch(e){case U.E.Clip:return h.vn.Clip;case U.E.Interactive:return h.vn.Interactive;case U.E.Resource:return h.vn.Resources;default:return""}}function ae(e,t){switch(e){case U.E.Clip:return"bg-dark-blue";case U.E.Interactive:return t===K.X.Draft?ee.draft:"bg-green";case U.E.Resource:return"bg-indigo";default:return""}}function re(e){var t="".concat(ee.badge," rounded-pill text-white ps-0 ").concat("sm"===e.size?ee.sm:"");return a.createElement("div",{className:e.inContainer?"":ee.topLeftContainer},a.createElement("div",{className:"".concat(t," ").concat(ae(e.typeId,e.status))},a.createElement(m.x,{className:"svg-container d-block ".concat(ee.svg),size:"sm"===e.size?m.S.Small:m.S.Standard,svgName:ne(e.typeId)}),a.createElement("span",{className:ee.text},function(e){switch(e){case U.E.Clip:return te("clip");case U.E.Interactive:return te("interactive");case U.E.Resource:return te("resource");default:return""}}(e.typeId))))}function ie(e){return g.M.isClip(e.video)?a.createElement(re,{typeId:U.E.Clip,size:e.size,inContainer:!0}):g.M.isInteractive(e.video)?a.createElement(re,{typeId:U.E.Interactive,status:e.video.status,size:e.size,inContainer:!0}):a.createElement(a.Fragment,null)}re.default={size:"md"},ie.default={size:"md"};var oe=n(17082);n(63314);var ce=a.createContext({hasProvider:!1});const le={hoverContainer:"TzWQw",hovering:"gdTcW"};function se(e){var t,n=a.useContext(ce);if(null===(t=n.useInitialize)||void 0===t||t.call(n,e),!n.hasProvider)return a.createElement(a.Fragment,null);if("picture-in-picture"===n.mode)return a.createElement(a.Fragment,null);if("hover"===e.mode&&n.isOnPlayPage)return a.createElement(a.Fragment,null);if("default"===n.mode||"play-page"===e.location)return a.createElement(oe.t0,{node:n.portalNode});var r=n.started,i="rounded-3";"popout-video"===e.location&&(i="rounded-top-3");var o="".concat(le.hoverContainer," ").concat(r?le.hovering:""," ").concat(i," overflow-hidden");return a.createElement("div",{className:o},a.createElement(oe.t0,{node:n.portalNode}))}var ue=n(49439);const de={overlayContainer:"qu3A3",topLeftContainer:"gjhMe",topRightContainer:"XAfZW",overlay:"NTrtm",downScale:"puKcM",title:"_6FukN",gradient:"rXzR8",playIcon:"dndOA",videoProgress:"yhWf4",badgeContainer:"AtgmC",clipProgress:"E2egN",interactiveProgress:"WycwR"};function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ve(e){var t="mb-1";return e&&(t+=de.downScale),t}function pe(e){var t,n,c,s=e.video,u=e.appLink,d=e.imageOptions,v=e.setFavourite,p=e.canFavourite,f=e.preload,b=e.hovering,E=e.hoverToPlay,w=e.companyLogoFallbackUrl,k=g.M.getCanBeConsumed(e.video),x=k.canNavigate,S=k.canConsume,j=r.t.isObject(null==u?void 0:u.params)?null==u?void 0:u.params:{},P=Object.assign(Object.assign({},e.analyticsOptions),{entity:g.M.getAnalyticsEntity(s)}),I=y.showFavouriteButton(e.video,b),A=g.M.isVideo(s),M=g.M.getRating(e.video),V=(n=(0,ue.L)({delay:100}),c=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(n,c)||function(e,t){if(e){if("string"==typeof e)return me(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}(n,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),_=V[0],B=V[1]&&S&&E,H=Object.assign(Object.assign({},e.analyticsData),{id:s.id,name:s.name}),U=Object.assign(Object.assign({},P),{actionType:i.Vw.Click,descriptor:i._S.Thumbnail});return a.createElement(R.u,{title:g.M.getPrivacyReasoning(e.video),spanHack:!0,spanHackClassName:""},a.createElement("div",{className:"position-relative rounded-3 overflow-hidden",ref:_},a.createElement(L,{isPlugin:e.isPlugin,className:"rounded-3",appLink:x?u:null,analyticsData:H,analyticsOptions:U}),I&&a.createElement("div",{className:de.topRightContainer},a.createElement(O,{setFavourite:v,canFavourite:p,video:s,analyticsData:e.analyticsData,analyticsOptions:P})),!x&&a.createElement("div",{className:de.topRightContainer},a.createElement(F,null)),a.createElement("div",{className:"".concat(de.topLeftContainer," d-flex flex-no-wrap")},a.createElement(ie,{video:s}),a.createElement(z,{video:s,companyLogoFallbackUrl:w})),a.createElement(C.Z,{data:g.M.getThumbnail(s),appLink:x?u:null,imageType:D.__.Thumbnails,imageOptions:d,preload:f,className:de.gradient,alt:("series"in s&&(null===(t=s.series)||void 0===t?void 0:t.name)?"".concat(s.series.name,": "):"")+s.name,analyticsData:H,analyticsOptions:U},!(!b||!x)&&a.createElement(m.x,{className:de.playIcon,svgName:h.vn.PlayCircle}),a.createElement(N.oy,{type:N.mS.Video}),a.createElement("div",{className:de.overlayContainer},a.createElement("div",{className:de.overlay},a.createElement("div",{className:"".concat(ve(b)," ").concat(de.title)},A&&a.createElement(J,{type:e.subTextType,className:"text-shadow clamp-1",video:s,appLink:null,analyticsOptions:null}),a.createElement("span",{className:"h6 text-reset text-shadow clamp-1"},g.M.getTitle(s))),a.createElement(T,{video:s}),b&&a.createElement(l,{className:"mt-1"},g.M.isVideo(s)&&a.createElement(a.Fragment,null,a.createElement(o.C,{type:o.g.Rating,data:M}),s.hasSubtitle&&a.createElement("span",{className:"badge p-0"},a.createElement(m.x,{svgName:h.vn.CloseCaptionBadge})),a.createElement(o.C,{type:o.g.Interactive,data:s.hasInteractives}),a.createElement(o.C,{type:o.g.DurationExact,data:g.M.getDuration(e.video)})))))),B&&a.createElement(se,{key:e.video.id,objectId:e.video.id,objectTypeId:e.video.typeId,mode:"hover",context:j.context,contextId:j.contextId,moviesAndTv:j.mtv})))}var fe,ge=n(56050),ye=n(81886),he=a.createContext({}),be=n(92582);function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}!function(e){e.Left="8px",e.Right="calc(100% - 8px)",e.Center="center"}(fe||(fe={}));var we=function(e,t,n){var a,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1.2,i=e.x,o=e.y,c=e.width,l=e.height,s=document.getElementById("content-width-reference");if(!s)return{};var u=t||c*r,d=t?t*(l/c):l*r,m=t?u/c:r;a=i-(u-c)/2,u<n&&(a-=(n-u)/2,d=l*(m=(u=n)/c));var v=o-(d-l)/2+window.scrollY,p=a,f=fe.Center;return a-s.offsetLeft<8&&(p=i-4,f=fe.Left),s.offsetWidth+s.offsetLeft-(a+u)<8&&(p=t?i+c-t:i-c*(m-1)+8,f=fe.Right),{left:p,top:v,height:d,width:u,transformOrigin:f,position:"absolute",originalWidth:c,originalHeight:l}};const Oe={positionWrapper:"jO7pW",animationWrapper:"xXfXO",zoom:"BrrtL"};function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ne(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ke(e){var t,n,r=e.hoverableComponent,o=e.componentProps,c=e.minHoverWidth,l=e.fixedHoverWidth,s=e.hoverScale,u=a.useContext(he).setPreviewContentNode;void 0===u&&ye.Q.Ry.throw(new ge.H("Please use VideoPreviewContext inside a VideoPreviewContextProvider"));var d=a.useMemo((function(){return(0,oe.oD)()}),[]),m=Ce((0,ue.L)({delay:100}),2),v=m[0],p=m[1],f=Ce((0,ue.X)(),2),g=f[0],y=f[1],h=Ce(a.useState(!1),2),b=h[0],E=(h[1],a.useRef(null)),w=a.useRef(!1),O=p||y;!function(e,t,n){var r,o,c=(r=a.useState(e),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(r,o)||function(e,t){if(e){if("string"==typeof e)return Ee(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ee(e,t):void 0}}(r,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.")}()),l=c[0],s=c[1],u=a.useRef(e?new Date:null);a.useEffect((function(){if(t&&n&&n.entity&&t.location)if(e)l||s(!0),u.current=new Date,be.k.logUserAction(t,Object.assign(Object.assign({},n),{actionType:i.Vw.Hover}));else{if(!l)return;var a=(new Date).getTime()-u.current.getTime();u.current=null,be.k.logUserAction(Object.assign(Object.assign({},t),{timeHoveredInMilliseconds:a,timeHoveredInSeconds:a/1e3}),Object.assign(Object.assign({},n),{actionType:i.Vw.Unhover}))}}),[e])}(O,e.analyticsData,e.analyticsOptions),a.useEffect((function(){w.current!==O&&(u(O||b?d:null),w.current=O)}),[O]);var C=(null===(n=null===(t=E.current)||void 0===t?void 0:t.getBoundingClientRect)||void 0===n?void 0:n.call(t))||{},N=C.x,k=C.y,x=C.width,T=C.height,S=a.useMemo((function(){return we({x:N,y:k,width:x,height:T},l,c,s)}),[N,k,x,T,s]),j=S?S.originalWidth/S.width:1,P=r;return a.createElement("div",{ref:E},a.createElement("div",{ref:v},a.createElement(P,Object.assign({isHovering:!1},o))),(O||b)&&a.createElement(oe.Nq,{node:d},a.createElement("div",{className:"".concat(Oe.positionWrapper," ").concat(Oe.animationWrapper),style:Object.assign({"--scale":j},S),ref:g},a.createElement(P,Object.assign({isHovering:!0,hoverPositionConfig:S,cleanPortalNode:function(){return u(null)}},o)))))}function xe(e){return e.audience?a.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):a.createElement(a.Fragment,null)}ke.ReferenceContainer=function(e){return a.createElement("div",{id:"content-width-reference",className:"flex-grow-1"},e.children)};const Te={badgeContainer:"fy9Un",sm:"Rb0TL"};function Se(e){var t=g.M.getRating(e.video),n=!!e.audience&&"sm"!==e.size,r=!n&&!e.hideRating&&!!t&&"sm"!==e.size;return!e.hideDuration||n||r?a.createElement(l,{className:"".concat(Te.badgeContainer," ").concat("sm"===e.size?Te.sm:"")},n&&a.createElement(xe,{audience:e.audience,className:"bg-white text-dark",border:"dark"}),r&&a.createElement(o.C,{type:o.g.Rating,data:t}),!e.hideDuration&&a.createElement(o.C,{type:e.newDurationStyle?o.g.DurationApproximate:o.g.DurationExact,data:e.duration||g.M.getDuration(e.video)})):a.createElement(a.Fragment,null)}Se.defaultProps={newDurationStyle:!0,size:"md"};var je=n(26361);function Pe(e){if(!e.yearGroups)return a.createElement(a.Fragment,null);var t=je.l.mapRestrictionToText(e.video._restrictions,e.yearGroups);return g.M.getCanBeConsumed(e.video).canConsume&&t?a.createElement(R.u,{spanHack:!0,spanHackClassName:e.className||"d-inline-block ps-1",title:t,placement:e.tooltipPlacement||"top"},a.createElement(m.x,{svgName:h.vn.Lock,size:"sm"===e.size?m.S.Small:m.S.Standard})):a.createElement(a.Fragment,null)}function Ie(e){var t=e.video,n=e.appLink,r=e.subTextAppLink,o=g.M.getCanBeConsumed(t).canNavigate;return a.createElement("div",{className:"mt-2 ".concat("r70GR")},a.createElement("div",{className:"d-flex flex-column ".concat("rULXI")},g.M.isVideo(t)&&a.createElement(J,{type:e.subTextType,className:"text-truncate ".concat("h9k1p"),video:t,appLink:r,analyticsOptions:{location:i.LZ.VideoThumbnail}}),a.createElement(S.F,{className:"h6 text-reset clamp-2 align-middle",appLink:o?n:null},t.name,a.createElement(Pe,{video:e.video,yearGroups:e.yearGroups,size:"sm"}))))}const Le={tag:"OjHQZ",icon:"SS2zL",active:"kD1xM"};function Ae(e){var t,n;return e.appLink?a.createElement(S.F,{appLink:e.appLink,analyticsData:e.appLinkAnalyticsData,analyticsOptions:e.appLinkAnalyticsOptions,className:"\n p-1 pe-2 rounded-pill d-inline-flex align-items-center cursor-pointer\n text-decoration-none ".concat(null===(t=e.theme)||void 0===t?void 0:t.container," ").concat(Le.tag," ").concat(e.active?Le.active:"","\n ")},a.createElement(Fe,Object.assign({},e))):a.createElement("div",{className:null===(n=e.theme)||void 0===n?void 0:n.container},a.createElement(Fe,Object.assign({},e)))}function Fe(e){var t;return a.createElement(a.Fragment,null,a.createElement(m.x,{className:"".concat(Le.icon," rounded-circle bg-").concat(e.iconVariant," text-white"),svgName:e.svgName}),a.createElement("span",{className:"ps-1 text-nowrap user-select-none ".concat(null===(t=e.theme)||void 0===t?void 0:t.tabLabel)},e.text))}var De="shared.classroomGuideTag";function Me(e){var t,n,r;return!e.video||g.M.isInteractive(e.video)?a.createElement(a.Fragment,null):e.video.glance?a.createElement(Ae,{theme:{container:"classroom-guide-tag",tabLabel:"classroom-guide-tag-label"},svgName:h.vn.GraduationCap,iconVariant:"navy",text:s.T.getPhrase(De,"classroomGuide"),appLink:e.appLink,appLinkAnalyticsData:Object.assign({glanceId:null===(t=e.video.glance)||void 0===t?void 0:t.id,totalPointsOfInterest:null===(r=null===(n=e.video.pointsOfInterest)||void 0===n?void 0:n.data)||void 0===r?void 0:r.length,videoGuidanceType:"classroom-guide"},e.analyticsData),appLinkAnalyticsOptions:Object.assign({actionType:i.Vw.Click,entity:g.M.getAnalyticsEntity(e.video)},e.analyticsOptions)}):a.createElement(a.Fragment,null)}var Re="shared.interactivesTag";function Ve(e){var t;if(!g.M.showInteractivesGuidance(e.video))return a.createElement(a.Fragment,null);var n=!g.M.isInteractive(e.video)&&((null===(t=e.video.interactives)||void 0===t?void 0:t.data.length)||0);return a.createElement(Ae,{svgName:h.vn.Interactive,iconVariant:"green",text:s.T.getPhrase(Re,"interactives",{smartCount:n}),appLink:e.appLink,appLinkAnalyticsData:Object.assign({videoGuidanceType:"interactive",videoGuidanceTotalItems:n},e.analyticsData),appLinkAnalyticsOptions:Object.assign({actionType:i.Vw.Click,entity:g.M.getAnalyticsEntity(e.video)},e.analyticsOptions)})}var ze="shared.resourcesTag";function _e(e){var t;if(!g.M.showResourcesGuidance(e.video))return a.createElement(a.Fragment,null);var n=!g.M.isInteractive(e.video)&&(null===(t=e.video.resources)||void 0===t?void 0:t.data.length)||0;return a.createElement(Ae,{svgName:h.vn.Resources,iconVariant:"indigo",text:s.T.getPhrase(ze,"resources",{smartCount:n}),appLink:e.appLink,appLinkAnalyticsData:Object.assign({videoGuidanceType:"resource",videoGuidanceTotalItems:n},e.analyticsData),appLinkAnalyticsOptions:Object.assign({actionType:i.Vw.Click,entity:g.M.getAnalyticsEntity(e.video)},e.analyticsOptions)})}function Be(e){var t,n,r,i=g.M.showInteractivesGuidance(e.video)&&g.M.showResourcesGuidance(e.video);return a.createElement("div",{className:"".concat(e.containerClassName," ").concat(i?e.responsiveClassName:"")},a.createElement(Me,{appLink:null===(t=e.getClassroomGuideAppLink)||void 0===t?void 0:t.call(e,e.video.id,e.video.typeId),video:e.video,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}),a.createElement(_e,{appLink:null===(n=e.getResourceGuidanceAppLink)||void 0===n?void 0:n.call(e,e.video.id,e.video.typeId),video:e.video,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}),a.createElement(Ve,{appLink:null===(r=e.getInteractiveGuidanceAppLink)||void 0===r?void 0:r.call(e,e.video.id,e.video.typeId),video:e.video,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))}const He={preview:"whbhf",topLeftContainer:"wHY80",details:"vMaXP",isHovering:"tR1jA",videoGuidanceTags:"KJrT1",responsiveGuidance:"OixHb",dropdown:"oZXV7",show:"EiQ04",topRightContainer:"FAuzc"};var Ue=function(e){var t,n=e.video,o=e.appLink,c=e.imageOptions,l=e.preload,s=e.setFavourite,u=e.canFavourite,d=e.isHovering,m=e.hoverToPlay,v=e.companyLogoFallbackUrl,p=r.t.isObject(null==o?void 0:o.params)?null==o?void 0:o.params:{},f=g.M.getCanBeConsumed(n),h=f.canNavigate,b=f.canConsume;a.useEffect((function(){return function(){var t;null===(t=e.cleanPortalNode)||void 0===t||t.call(e)}}),[]);var E="position-relative bg-white";e.extraClasses&&(E+=" ".concat(e.extraClasses)),d&&(E+=" rounded-3 shadow-lg");var w=Object.assign(Object.assign({},e.analyticsOptions),{entity:g.M.getAnalyticsEntity(n)}),k=e.isHovering&&b&&m,x=y.showFavouriteButton(e.video,d),S=Object.assign(Object.assign({},e.analyticsData),{id:n.id,name:n.name}),j=Object.assign(Object.assign({},w),{actionType:i.Vw.Click,descriptor:i._S.Thumbnail});return a.createElement("div",{className:E},x&&a.createElement("div",{className:He.topRightContainer},a.createElement(O,{setFavourite:s,canFavourite:u,video:n,analyticsData:e.analyticsData,analyticsOptions:w})),!h&&a.createElement("div",{className:He.topRightContainer},a.createElement(R.u,{title:g.M.getPrivacyReasoning(e.video),spanHack:!0,spanHackClassName:""},a.createElement(F,null))),a.createElement("div",{className:"position-relative"},a.createElement(L,{isPlugin:e.isPlugin,className:d?"rounded-top-3":"rounded-3",onClick:function(){var t;return null===(t=e.cleanPortalNode)||void 0===t?void 0:t.call(e)},appLink:h?o:null,analyticsData:S,analyticsOptions:j}),a.createElement(C.Z,{onClick:function(){var t;return null===(t=e.cleanPortalNode)||void 0===t?void 0:t.call(e)},data:g.M.getThumbnail(n),appLink:h?o:null,imageType:D.__.Thumbnails,imageOptions:c,preload:l,className:"overflow-hidden ".concat(d?He.preview:"rounded-3 ".concat(He.original)),alt:("series"in n&&(null===(t=n.series)||void 0===t?void 0:t.name)?"".concat(n.series.name,": "):"")+n.name,analyticsData:S,analyticsOptions:j},a.createElement(N.oy,{type:N.mS.Video}),a.createElement("div",{className:"p-absolute w-100 h-100 text-white"},a.createElement("div",{className:"".concat(He.topLeftContainer," d-flex flex-no-wrap")},a.createElement(ie,{video:n}),a.createElement(z,{video:n,companyLogoFallbackUrl:v})),a.createElement(Se,{video:e.video,audience:e.audience,hideRating:e.hideRating,hideDuration:e.hideDuration}),a.createElement(T,{video:n}))),k&&a.createElement(se,{key:e.video.id,objectId:e.video.id,objectTypeId:e.video.typeId,mode:"hover",context:p.context,contextId:p.contextId,moviesAndTv:p.mtv,location:"popout-video"})),!d&&!e.hideTitle&&a.createElement(Ie,Object.assign({},e)),a.createElement("div",{className:"".concat(He.details," ").concat(d?"".concat(He.isHovering," box-shadow"):"")},d&&a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(d?He.videoGuidanceTags:"")},a.createElement(Ie,Object.assign({},e)),e.showVideoGuidance&&d&&a.createElement(Be,{getClassroomGuideAppLink:e.getClassroomGuideAppLink,getResourceGuidanceAppLink:e.getResourceGuidanceAppLink,getInteractiveGuidanceAppLink:e.getInteractiveGuidanceAppLink,video:e.video,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,responsiveClassName:He.responsiveGuidance,containerClassName:"d-flex justify-content-start align-items-center pt-2"})))))};function Ge(e){return a.createElement(a.Fragment,null,a.createElement(ke,{hoverableComponent:Ue,componentProps:e,fixedHoverWidth:400,minHoverWidth:400,analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:e.video.id,name:e.video.name}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:g.M.getAnalyticsEntity(e.video)})}))}const We={mask:"qpc7L",small:"L8Oxs",video:"b8kJW",playlist:"eo2p2",maskContainer:"lpwag"};var Xe;function Ze(e){var t=e.type,n=e.size,r=function(e){return e===Xe.Video?We.video:e===Xe.Playlist?We.playlist:""}(t),i=function(e){return e===Xe.Video?h.vn.PlayCircle:""}(t);return a.createElement("div",{className:"".concat(We.maskContainer," ").concat("sm"===n?We.small:"")},a.createElement("div",{className:We.mask}),a.createElement(m.x,{svgName:i,className:r}))}!function(e){e[e.Video=0]="Video",e[e.Playlist=1]="Playlist",e[e.Series=2]="Series"}(Xe||(Xe={})),Ze.defaults={size:"md"};var qe=n(13669);const Ye={container:"efxnE",cvIcon:"OJ_ZQ",action:"vWvGn"};function Qe(e){return g.M.getCanBeConsumed(e.video).canNavigate?function(e){var t;return!(null===(t=g.M.getCanBeConsumed(e.video))||void 0===t?void 0:t.canConsume)||!(!u.q.isFunction(e.setFavourite)||!u.q.isFunction(e.canFavourite))||!!u.q.isFunction(e.setCheckMarkStatus)}(e)?a.createElement("div",{className:"".concat(Ye.container," d-flex align-items-center")},a.createElement(O,{setFavourite:e.setFavourite,canFavourite:e.canFavourite,video:e.video,className:Ye.action,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}),a.createElement(qe.I,{status:e.checkMarkStatus,setStatus:e.setCheckMarkStatus,className:Ye.action})):a.createElement(a.Fragment,null):a.createElement("div",{className:Ye.container},a.createElement(F,{size:e.size}))}var $e=n(68626);const Je={titleOverlay:"krg9f",clip:"MPRU6",large:"g5_ww",interactive:"Zzo3e",titleBelow:"tZjPt",overlayContainer:"EElm1",topLeftContainer:"hrw3I",gradient:"LS_EH"};function Ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(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 et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var tt="shared.staticVideoThumbnail";function nt(e){var t,n=e.video,r=e.subTextAppLink,o=e.textPosition,c=e.appLink,l=o===$e.z.Overlay,u=g.M.getCanBeConsumed(e.video).canNavigate,d="";return l?(d=Je.titleOverlay,u&&(g.M.isClip(n)&&(d+=" "+Je.clip),g.M.isInteractive(n)&&(d+=" "+Je.interactive))):d=Je.titleBelow,a.createElement("div",{className:d},g.M.isVideo(n)&&a.createElement(J,{type:e.subTextType,className:l?"text-shadow clamp-1":"clamp-2",video:n,appLink:l?null:r,analyticsOptions:{location:i.LZ.VideoThumbnail}}),l||!u?a.createElement("span",{className:"h6 text-reset clamp-1"},null!==(t=n.name)&&void 0!==t?t:s.T.getPhrase(tt,"videoUnavailable")):a.createElement(S.F,{className:"h6 text-reset clamp-2",appLink:c},n.name))}function at(e){var t,n,o=e.video,c=e.appLink,l=e.textPosition,s=e.imageOptions,u=e.setFavourite,d=e.preload,m=e.hoverToPlay,v=r.t.isObject(null==c?void 0:c.params)?null==c?void 0:c.params:{},p=Ke((0,ue.X)(),2),f=p[0],h=p[1],b=Ke((0,ue.L)({delay:100}),2),E=b[0],w=b[1],O=g.M.getCanBeConsumed(o),k=O.canNavigate,x=O.canConsume,S=w&&x&&m,j=Object.assign(Object.assign({},e.analyticsOptions),{entity:g.M.getAnalyticsEntity(o)}),P=!!c&&!e.hideMask&&k,I=g.M.getPrivacyReasoning(e.video,e.showSignIn),A=Object.assign(Object.assign({},e.analyticsData),{id:o.id,name:o.name}),F=Object.assign(Object.assign({},j),{actionType:i.Vw.Click,descriptor:i._S.Thumbnail});return a.createElement(R.u,{title:I,spanHack:!0,spanHackClassName:""},a.createElement("div",{className:(n="position-relative",n+=c&&k?" cursor-pointer":"",e.extraClasses&&(n+=" ".concat(e.extraClasses)),l===$e.z.Overlay&&(n+=" rounded overflow-hidden"),n),ref:function(e){f.current=e,E.current=e}},a.createElement(L,{isPlugin:e.isPlugin,className:"sm"===e.size?"rounded":"rounded-3",appLink:k?c:null,analyticsData:A,analyticsOptions:F}),a.createElement(Qe,{video:o,checkMarkStatus:e.checkMarkStatus,setCheckMarkStatus:e.setCheckMarkStatus,setFavourite:u,canFavourite:function(){var t;return(null===(t=e.canFavourite)||void 0===t?void 0:t.call(e,e.video))&&y.showFavouriteButton(o,h)},analyticsData:e.analyticsData,analyticsOptions:j,size:e.size}),a.createElement(C.Z,{data:g.M.getThumbnail(o),appLink:k?c:null,onClick:k?e.onClick:void 0,imageType:D.__.Thumbnails,imageOptions:s,preload:d,className:function(){var t="overflow-hidden ".concat("sm"===e.size?"rounded":"rounded-3");return e.imageClassName&&(t+=" ".concat(e.imageClassName)),l===$e.z.Overlay&&(t+=" ".concat(Je.gradient)),t}(),alt:("series"in o&&(null===(t=o.series)||void 0===t?void 0:t.name)?"".concat(o.series.name,": "):"")+o.name,analyticsData:A,analyticsOptions:F},P&&a.createElement(Ze,{type:Xe.Video,size:e.size}),a.createElement(N.oy,{type:N.mS.Video}),a.createElement("div",{className:Je.overlayContainer},l===$e.z.Overlay&&a.createElement(nt,Object.assign({},e)),a.createElement("div",{className:"".concat(Je.topLeftContainer," d-flex flex-no-wrap")},a.createElement(ie,{video:o,size:e.size}),a.createElement(z,{video:o,companyLogoFallbackUrl:e.companyLogoFallbackUrl,size:e.size})),a.createElement(T,{video:o}),a.createElement(Se,{video:e.video,audience:e.audience,hideRating:e.hideRating,hideDuration:e.hideDuration,newDurationStyle:e.newDurationStyle,size:e.size}))),S&&a.createElement(se,{key:e.video.id,objectId:e.video.id,objectTypeId:e.video.typeId,mode:"hover",context:v.context,contextId:v.contextId,moviesAndTv:v.mtv}),l===$e.z.Below&&a.createElement(nt,Object.assign({},e))))}function rt(e){switch(e.type){case"static":return a.createElement(at,Object.assign({},e));case"cosmetic":return a.createElement(at,Object.assign({},e,{hoverToPlay:!1}));case"expandable":return a.createElement(pe,Object.assign({},e));case"popout":return a.createElement(Ge,Object.assign({},e));default:return}}rt.defaultProps={hideRating:!0,size:"md",hoverToPlay:!0}},68626:(e,t,n)=>{var a;n.d(t,{z:()=>a}),function(e){e[e.Below=1]="Below",e[e.Overlay=2]="Overlay",e[e.Independent=3]="Independent"}(a||(a={}))},49439:(e,t,n)=>{n.d(t,{X:()=>f,L:()=>g});var a=n(32735),r=n(79014),i=n(1048),o=function(){var e=a.useRef(!0);return a.useEffect((function(){return function(){e.current=!1}}),[]),e};function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var s=275,u=5,d={className:"",delay:0,style:null},m={screenX:0,screenY:0};function v(e,t){var n;e.current&&(t.className&&(null===(n=e.current.classList)||void 0===n||n.add(t.className)),t.style&&Object.keys(t.style).forEach((function(n){e.current.style[n]=t.style[n]})))}function p(e,t){var n;e.current&&(t.className&&(null===(n=e.current.classList)||void 0===n||n.remove(t.className)),t.style&&Object.keys(t.style).forEach((function(t){e.current.style[t]=null})))}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=o(),n=c(a.useState(e),2),l=n[0],s=n[1],u=c(a.useState(!1),2),m=u[0],f=u[1],g=a.useRef(null);a.useEffect((function(){i.t.isEqual(e,l)||s(e)}),[e]);var y=r.q.throttle((function(){v(g,l),t.current&&f(!0)}),l.delay,{leading:!1}),h=function(){r.q.isFunction(y.cancel)&&y.cancel(),p(g,l),t.current&&f(!1)};return a.useLayoutEffect((function(){var e=g.current;if(e)return e.addEventListener("mouseenter",y),e.addEventListener("mouseleave",h),function(){e.removeEventListener("mouseenter",y),e.removeEventListener("mouseleave",h)}}),[g.current,l]),[g,m]}function g(e){var t=c(a.useState(e),2),n=t[0],o=t[1],l=a.useRef(Object.assign({},m)),d=a.useRef(!1),f=a.useRef(0),g=a.useRef(null),y=c(a.useState(!1),2),h=y[0],b=y[1];function E(){f.current&&(window.clearTimeout(f.current),f.current=0)}function w(){d.current=!0}function O(e){if(d.current){var t,a,r=Object.assign({},l.current);l.current.screenX=e.screenX,l.current.screenY=e.screenY,function(e,t){return Math.abs(e.screenX-t.screenX)>u||Math.abs(e.screenY-t.screenY)>u}(r,e)&&E(),t=function(){v(g,n),b(!0)},a=n.delay||s,f.current||(f.current=window.setTimeout(t,a))}}function C(){E(),p(g,n),d.current=!1,b(!1)}return a.useEffect((function(){i.t.isEqual(e,n)||o(e)}),[e]),a.useLayoutEffect((function(){if(g.current){var e=r.q.throttle(O,25,{leading:!1});return g.current.addEventListener("mouseenter",w),g.current.addEventListener("mousemove",e),g.current.addEventListener("mouseleave",C),function(){g.current&&(g.current.removeEventListener("mouseenter",w),g.current.removeEventListener("mousemove",e),g.current.removeEventListener("mouseleave",C))}}}),[g.current,n]),[g,h]}},93264:(e,t,n)=>{n.d(t,{T:()=>i});var a=n(21161),r=function(e,t,n){var a=t-(e=e.toString()).length;return a<=0?e:new Array(a+1).join(n)+e},i={ToDisplayDuration:function(e,t){if(!a.isNumber(e))return"";var n=new Date(e),i=n.getUTCHours(),o=r(n.getUTCMinutes(),2,"0"),c=r(n.getUTCSeconds(),2,"0");return t||i>0?"".concat(i,":").concat(o,":").concat(c):"".concat(o,":").concat(c)},ToDisplayDurationNewStyle:function(e,t){if(!a.isNumber(e))return"";var n=new Date(e),r=n.getUTCHours(),i=n.getUTCMinutes(),o=n.getUTCSeconds();if((r>0||i>0)&&o>=30&&(i+=1),r>0){var c=r>1?"hrs":"hr";return i>0?t&&o>0?"".concat(r).concat(c," ").concat(i,"m ").concat(o,"s"):"".concat(r).concat(c," ").concat(i,"m "):"".concat(r," ").concat(c)}return i>0?t&&o>0?"".concat(i,"m ").concat(o,"s"):"".concat(i,"m"):"".concat(o,"s")}}},17082:(e,t,n)=>{n.d(t,{Nq:()=>u,oD:()=>m,t0:()=>d});var a,r=n(32735),i=n(12788),o=(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)},function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c="html",l="svg",s=function(e,t){var n,a,r,i={};if(e===c)r=document.createElement("div");else{if(e!==l)throw new Error('Invalid element type "'+e+'" for createPortalNode: must be "html" or "svg".');r=document.createElementNS("http://www.w3.org/2000/svg","g")}if(t&&"object"==typeof t)for(var o=0,s=Object.entries(t.attributes);o<s.length;o++){var u=s[o],d=u[0],m=u[1];r.setAttribute(d,m)}var v={element:r,elementType:e,setPortalProps:function(e){i=e},getInitialPortalProps:function(){return i},mount:function(t,r){if(r!==a){if(v.unmount(),t!==n&&!function(e,t){if(t===c)return e instanceof HTMLElement;if(t===l)return e instanceof SVGElement;throw new Error('Unrecognized element type "'+t+'" for validateElementType.')}(t,e))throw new Error('Invalid element type for portal: "'+e+'" portalNodes must be used with '+e+" elements, but OutPortal is within <"+t.tagName+">.");t.replaceChild(v.element,r),n=t,a=r}},unmount:function(e){e&&e!==a||n&&a&&(n.replaceChild(a,v.element),n=void 0,a=void 0)}};return v},u=function(e){function t(t){var n=e.call(this,t)||this;return n.addPropsChannel=function(){Object.assign(n.props.node,{setPortalProps:function(e){n.setState({nodeProps:e})}})},n.state={nodeProps:n.props.node.getInitialPortalProps()},n}return o(t,e),t.prototype.componentDidMount=function(){this.addPropsChannel()},t.prototype.componentDidUpdate=function(){this.addPropsChannel()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,a=t.node;return i.createPortal(r.Children.map(n,(function(t){return r.isValidElement(t)?r.cloneElement(t,e.state.nodeProps):t})),a.element)},t}(r.PureComponent),d=function(e){function t(t){var n=e.call(this,t)||this;return n.placeholderNode=r.createRef(),n.passPropsThroughPortal(),n}return o(t,e),t.prototype.passPropsThroughPortal=function(){var e=Object.assign({},this.props,{node:void 0});this.props.node.setPortalProps(e)},t.prototype.componentDidMount=function(){var e=this.props.node;this.currentPortalNode=e;var t=this.placeholderNode.current,n=t.parentNode;e.mount(n,t),this.passPropsThroughPortal()},t.prototype.componentDidUpdate=function(){var e=this.props.node;this.currentPortalNode&&e!==this.currentPortalNode&&(this.currentPortalNode.unmount(this.placeholderNode.current),this.currentPortalNode.setPortalProps({}),this.currentPortalNode=e);var t=this.placeholderNode.current,n=t.parentNode;e.mount(n,t),this.passPropsThroughPortal()},t.prototype.componentWillUnmount=function(){var e=this.props.node;e.unmount(this.placeholderNode.current),e.setPortalProps({})},t.prototype.render=function(){return r.createElement("div",{ref:this.placeholderNode})},t}(r.PureComponent),m=s.bind(null,c);s.bind(null,l)},34152:(e,t,n)=>{n.d(t,{YD:()=>s});var a=n(32735),r=(Object.defineProperty,new Map),i=new WeakMap,o=0,c=void 0;function l(e,t,n={},a=c){if(void 0===window.IntersectionObserver&&void 0!==a){const r=e.getBoundingClientRect();return t(a,{isIntersecting:a,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}const{id:l,observer:s,elements:u}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(i.has(n)||(o+=1,i.set(n,o.toString())),i.get(n)):"0"):e[t]}`;var n})).toString()}(e);let n=r.get(t);if(!n){const a=new Map;let i;const o=new IntersectionObserver((t=>{t.forEach((t=>{var n;const r=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=r),null==(n=a.get(t.target))||n.forEach((e=>{e(r,t)}))}))}),e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:a},r.set(t,n)}return n}(n),d=u.get(e)||[];return u.has(e)||u.set(e,d),d.push(t),s.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(u.delete(e),s.unobserve(e)),0===u.size&&(s.disconnect(),r.delete(l))}}function s({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:i,triggerOnce:o,skip:c,initialInView:s,fallbackInView:u,onChange:d}={}){var m;const[v,p]=a.useState(null),f=a.useRef(),[g,y]=a.useState({inView:!!s,entry:void 0});f.current=d,a.useEffect((()=>{if(c||!v)return;let a;return a=l(v,((e,t)=>{y({inView:e,entry:t}),f.current&&f.current(e,t),t.isIntersecting&&o&&a&&(a(),a=void 0)}),{root:i,rootMargin:r,threshold:e,trackVisibility:n,delay:t},u),()=>{a&&a()}}),[Array.isArray(e)?e.toString():e,v,i,r,o,c,n,u,t]);const h=null==(m=g.entry)?void 0:m.target,b=a.useRef();v||!h||o||c||b.current===h||(b.current=h,y({inView:!!s,entry:void 0}));const E=[p,g.inView,g.entry];return E.ref=E[0],E.inView=E[1],E.entry=E[2],E}a.Component}}]);
|