@clickview/lite 0.15.4-dev.0 → 0.15.4-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{2873-lite-11013d22b2.chunk.css → 6044-lite-8c9205e744.chunk.css} +1 -1
  3. package/dist/css/{1003-lite-aa0fc0d71a.chunk.css → 6557-lite-2190cf04bf.chunk.css} +1 -1
  4. package/dist/css/{8278-lite-aa0fc0d71a.chunk.css → 7131-lite-2190cf04bf.chunk.css} +1 -1
  5. package/dist/css/{5290-lite-11013d22b2.chunk.css → 9166-lite-8c9205e744.chunk.css} +1 -1
  6. package/dist/css/{lite-app-9e40980504.css → lite-app-b10e3f5631.css} +1 -1
  7. package/dist/languages/en.json +1 -1
  8. package/dist/scripts/{2541-c529f7b3cd-lite.chunk.js → 2541-cbcd289af6-lite.chunk.js} +1 -1
  9. package/dist/scripts/{3285-d6a55789c8-lite.chunk.js → 3285-30ed370d66-lite.chunk.js} +1 -1
  10. package/dist/scripts/5986-3cc452ac87-lite.chunk.js +1 -0
  11. package/dist/scripts/6044-f522ee7ad5-lite.chunk.js +1 -0
  12. package/dist/scripts/6226-c7dfa87a78-lite.chunk.js +1 -0
  13. package/dist/scripts/{6507-697def4d7e-lite.chunk.js → 6507-8ca10f440c-lite.chunk.js} +1 -1
  14. package/dist/scripts/{8278-e35179b96d-lite.chunk.js → 6557-23354d047f-lite.chunk.js} +1 -1
  15. package/dist/scripts/{1003-ef8ce5b335-lite.chunk.js → 7131-a9936bcad2-lite.chunk.js} +1 -1
  16. package/dist/scripts/7281-cc32d852d1-lite.chunk.js +2 -0
  17. package/dist/scripts/7831-9841ba0dc4-lite.chunk.js +1 -0
  18. package/dist/scripts/9166-2108aa001e-lite.chunk.js +1 -0
  19. package/dist/scripts/{9478-fd6d0f412e-lite.chunk.js → 9478-7e0614d2a8-lite.chunk.js} +2 -2
  20. package/dist/scripts/bundle-8e2840a7bf.min.js +2 -0
  21. package/package.json +2 -2
  22. package/dist/scripts/2012-67a199f22f-lite.chunk.js +0 -1
  23. package/dist/scripts/2873-e6e89a4d04-lite.chunk.js +0 -1
  24. package/dist/scripts/4830-839bc2e5e9-lite.chunk.js +0 -2
  25. package/dist/scripts/5290-07036ae357-lite.chunk.js +0 -1
  26. package/dist/scripts/5986-8885fc1dfa-lite.chunk.js +0 -1
  27. package/dist/scripts/7831-141b12d016-lite.chunk.js +0 -1
  28. package/dist/scripts/bundle-cccf775961.min.js +0 -2
  29. /package/dist/css/{4830-lite-121afa5d5c.chunk.css → 7281-lite-121afa5d5c.chunk.css} +0 -0
  30. /package/dist/scripts/{4830-839bc2e5e9-lite.chunk.js.LICENSE.txt → 7281-cc32d852d1-lite.chunk.js.LICENSE.txt} +0 -0
  31. /package/dist/scripts/{9478-fd6d0f412e-lite.chunk.js.LICENSE.txt → 9478-7e0614d2a8-lite.chunk.js.LICENSE.txt} +0 -0
  32. /package/dist/scripts/{bundle-cccf775961.min.js.LICENSE.txt → bundle-8e2840a7bf.min.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9166],{93978:(e,t,a)=>{a.r(t),a.d(t,{PlaySharedVideoView:()=>q});var r=a(1024),n=a(58566),i=a(20354),o=a(23049),d=a(75896),l=a(39151),u=a(47812),s=a(60051),c=a(1575),v=a(65858),h=a(30439),m=a(4594),y=a(25925),f=a(61699),I=a(64567),p=a(97037),g=a(86284),b=a(36873),w=a(32690),x=a(74122),j=a(49948),P=a(50456),S=a(97816),k=a(35014),C=a(16857),A=a(82817),V=a(7179),F=a(28907);function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function q(e){var t,a,q,O,B,E,K,R,T,_=e.queryParams,L=(R=(0,x.g)(),T=2,function(e){if(Array.isArray(e))return e}(R)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,i=[],o=!0,d=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){d=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(d)throw n}}return i}}(R,T)||function(e,t){if(e){if("string"==typeof e)return U(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?U(e,t):void 0}}(R,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.")}()),M=L[0],N=L[1],D=(0,p.c)(v.LocationContext.VideoThumbnail).setFavourite,$=i.a.useBasicFetch(c.R.sharedVideo(e.objectId,e.shareId)),z=i.a.useBasicFetch(h.o.getShareObject(e.shareId)),G=z.data&&(z.data.objectTypeId===m.E.Video?u.k.createViewKey(e.shareId,s.f.Share):u.k.createViewKey(e.objectId,s.f.MasterObject,e.shareId)),H=i.a.useBasicFetch(G),J=i.a.useBasicFetch(l.L.config()),Q=(0,b.k)($.data,e.currentUser,_.context,_.contextId),W=(0,j.l)(e.currentUser.isAuthenticated&&(null===(t=$.data)||void 0===t?void 0:t.id)),X=i.a.useBasicFetch((null===(q=null===(a=$.data)||void 0===a?void 0:a.glance)||void 0===q?void 0:q.theme)?F.r.themeImages($.data.glance.theme,$.data.glance.type):null);(0,o.o)(null===(O=$.data)||void 0===O?void 0:O.name),(0,w.P)($.data,e.queryParams),(0,P.l)((null===(B=Q.videos)||void 0===B?void 0:B.length)?d.m.first(Q.videos):null,e.queryParams,e.shareId),(0,S.V)(null!==(E=Q.videos)&&void 0!==E?E:[],{hasCurriculumLinks:!0}),(0,I.b)($,{private:C.m}),(0,V.P)({id:e.objectId,app:"videos",shareId:e.shareId});var Y=(0,n.useDispatch)(),Z=(0,A.M)(e.objectId),ee=!e.currentUser.isAuthenticated||(null==W?void 0:W.hasCompleted);r.useEffect((function(){var t,a,r;if($.data&&H.data&&z.data)return N("video",$.data),N("viewKey",H.data.viewKey),N("shareId",e.shareId),(null===(t=e.queryParams)||void 0===t?void 0:t.context)&&N("context",e.queryParams.context),(null===(a=e.queryParams)||void 0===a?void 0:a.contextId)&&N("contextId",e.queryParams.contextId),z.data.ownerInstanceRegion&&N("sharerInstanceRegion",z.data.ownerInstanceRegion),(null===(r=null==W?void 0:W.items)||void 0===r?void 0:r.length)&&N("pointsOfInterest",W.items),e.activityStatus&&N("activityStatus",e.activityStatus),function(){N("pointsOfInterest",null)}}),[!!$.data,!!H.data,!!z.data,e.shareId,null===(K=$.data)||void 0===K?void 0:K.favouritedBy,ee]);var te=!!((null==M?void 0:M.video)&&J.data&&(null==M?void 0:M.viewKey)&&$.data&&ee&&z.data),ae=(0,k.I)();return te?r.createElement("div",{className:"px-3"},r.createElement(g.j,{video:M.video,curriculums:Z,updateCurriculum:function(e,t){i.a.fetch(Y,f.o.setPresentation(e,y.R.Curriculum,null,t))},imageCdnUrl:J.data.imageCdnUrl,relatedVideos:Q,currentUser:e.currentUser,setFavourite:D,pointsOfInterest:null==W?void 0:W.items,playNext:e.playNext,shareId:e.shareId,glanceTheme:X.data,featureAccess:ae})):r.createElement(r.Fragment,null)}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 9478-fd6d0f412e-lite.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9478],{39478:(t,e,r)=>{r.r(e),r.d(e,{BaseShareLinkView:()=>p});var n=r(1024),o=r.n(n),i=r(20354),a=r(31949),c=r(30439),u=r(4594);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(){s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function v(){}function p(){}function y(){}var m={};u(m,i,(function(){return this}));var w=Object.getPrototypeOf,g=w&&w(w(P([])));g&&g!==e&&r.call(g,i)&&(m=g);var b=y.prototype=v.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,a,c){var u=h(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function L(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:p,configurable:!0}),p.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(E.prototype),u(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var h=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},d=r(22902),v=r(16714);function p(t){var e=t.shareId,n=t.queryParams,l=(0,d.T)().hasPermissions,p=i.a.useBasicFetch(a.N.currentUser()),y=i.a.useBasicFetch(e&&c.o.getShareObject(e)),m=function(t,e){var n,i,a=(n=o().useState(),i=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(n,i)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(n,i)||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=a[0],l=a[1];return o().useEffect((function(){c&&l(null)}),[e.videoId]),o().useEffect((function(){if(t&&!c){var n=t.objectTypeId;switch(e.videoId?n=u.E.Video:e.clipId?n=u.E.Clip:e.interactiveId&&(n=u.E.Interactive),n){case u.E.Video:var i=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(5763),r.e(2541),r.e(2012),r.e(5290)]).then(r.bind(r,93978));case 2:return e=t.sent,n=e.PlaySharedVideoView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(i);break;case u.E.Interactive:var a=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7919),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(5763),r.e(5875),r.e(9154),r.e(7880)]).then(r.bind(r,38280));case 2:return e=t.sent,n=e.SharedInteractiveView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(a);break;case u.E.Clip:var f=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(5763),r.e(7831),r.e(8278)]).then(r.bind(r,41021));case 2:return e=t.sent,n=e.PlaySharedClipView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(f);break;case u.E.Playlist:var d=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(6263),r.e(5125)]).then(r.bind(r,67537));case 2:return e=t.sent,n=e.SharedPlaylistView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(d);break;case u.E.Series:var v=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(2215),r.e(4955)]).then(r.bind(r,96922));case 2:return e=t.sent,n=e.SharedSeriesView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(v)}}}),[t,c]),c}(y.data,n);if(!m)return o().createElement(o().Fragment,null);var w={shareId:e,queryParams:n,objectId:n.videoId?n.videoId:n.clipId?n.clipId:n.interactiveId?n.interactiveId:y.data.objectId,currentUser:p.data,playNext:n.playNext};return l(v.C.StudentExperience)&&"activityStatus"in y.data&&(w.activityStatus=y.data.activityStatus),o().createElement(o().Suspense,{fallback:o().createElement(o().Fragment,null)},o().createElement(m,Object.assign({},w)))}}}]);
1
+ /*! For license information please see 9478-7e0614d2a8-lite.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9478],{39478:(t,e,r)=>{r.r(e),r.d(e,{BaseShareLinkView:()=>p});var n=r(1024),o=r.n(n),i=r(20354),a=r(31949),c=r(30439),u=r(4594);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(){s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function v(){}function p(){}function y(){}var m={};u(m,i,(function(){return this}));var w=Object.getPrototypeOf,g=w&&w(w(P([])));g&&g!==e&&r.call(g,i)&&(m=g);var b=y.prototype=v.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,a,c){var u=h(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function L(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:p,configurable:!0}),p.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(E.prototype),u(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var h=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},d=r(22902),v=r(16714);function p(t){var e=t.shareId,n=t.queryParams,l=(0,d.T)().hasPermissions,p=i.a.useBasicFetch(a.N.currentUser()),y=i.a.useBasicFetch(e&&c.o.getShareObject(e)),m=function(t,e){var n,i,a=(n=o().useState(),i=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(n,i)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(n,i)||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=a[0],l=a[1];return o().useEffect((function(){c&&l(null)}),[e.videoId]),o().useEffect((function(){if(t&&!c){var n=t.objectTypeId;switch(e.videoId?n=u.E.Video:e.clipId?n=u.E.Clip:e.interactiveId&&(n=u.E.Interactive),n){case u.E.Video:var i=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(5763),r.e(2541),r.e(6226),r.e(9166)]).then(r.bind(r,93978));case 2:return e=t.sent,n=e.PlaySharedVideoView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(i);break;case u.E.Interactive:var a=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7919),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(5763),r.e(5875),r.e(9154),r.e(7880)]).then(r.bind(r,38280));case 2:return e=t.sent,n=e.SharedInteractiveView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(a);break;case u.E.Clip:var f=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(5763),r.e(7831),r.e(6557)]).then(r.bind(r,41021));case 2:return e=t.sent,n=e.PlaySharedClipView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(f);break;case u.E.Playlist:var d=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(6263),r.e(5125)]).then(r.bind(r,67537));case 2:return e=t.sent,n=e.SharedPlaylistView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(d);break;case u.E.Series:var v=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(2215),r.e(4955)]).then(r.bind(r,96922));case 2:return e=t.sent,n=e.SharedSeriesView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(v)}}}),[t,c]),c}(y.data,n);if(!m)return o().createElement(o().Fragment,null);var w={shareId:e,queryParams:n,objectId:n.videoId?n.videoId:n.clipId?n.clipId:n.interactiveId?n.interactiveId:y.data.objectId,currentUser:p.data,playNext:n.playNext};return l(v.C.StudentExperience)&&"activityStatus"in y.data&&(w.activityStatus=y.data.activityStatus),o().createElement(o().Suspense,{fallback:o().createElement(o().Fragment,null)},o().createElement(m,Object.assign({},w)))}}}]);