@clickview/lite 0.28.0-rc.4 → 0.28.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 +1 -1
- package/dist/scripts/{1820-d48006cbe2-lite.chunk.js → 1820-fbc2e889b5-lite.chunk.js} +1 -1
- package/dist/scripts/1837-de58e1e7e5-lite.chunk.js +1 -0
- package/dist/scripts/2272-8f7b3e0b8c-lite.chunk.js +1 -0
- package/dist/scripts/4632-6ad80fd2d7-lite.chunk.js +1 -0
- package/dist/scripts/5940-ce68bc05bf-lite.chunk.js +1 -0
- package/dist/scripts/6825-50180bc045-lite.chunk.js +2 -0
- package/dist/scripts/9016-e5ae124e33-lite.chunk.js +1 -0
- package/dist/scripts/{9038-542c5c0610-lite.chunk.js → 9038-7af5e82062-lite.chunk.js} +1 -1
- package/dist/scripts/{9478-93af346901-lite.chunk.js → 9478-db167dca52-lite.chunk.js} +2 -2
- package/dist/scripts/bundle-9e54223f39.min.js +2 -0
- package/package.json +3 -3
- package/dist/scripts/1837-52b6e1ee27-lite.chunk.js +0 -1
- package/dist/scripts/1976-53218ab442-lite.chunk.js +0 -2
- package/dist/scripts/4632-3788ec4b98-lite.chunk.js +0 -1
- package/dist/scripts/5940-812d638410-lite.chunk.js +0 -1
- package/dist/scripts/9016-61594d65eb-lite.chunk.js +0 -1
- package/dist/scripts/bundle-b8ff5c6949.min.js +0 -2
- /package/dist/scripts/{1976-53218ab442-lite.chunk.js.LICENSE.txt → 6825-50180bc045-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9478-93af346901-lite.chunk.js.LICENSE.txt → 9478-db167dca52-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-b8ff5c6949.min.js.LICENSE.txt → bundle-9e54223f39.min.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9038],{11140:(e,t,r)=>{r.r(t),r.d(t,{AddTeachersToClassroomView:()=>L});var n=r(1024),a=r.n(n),o=r(58566),c=r(23481),i=r(20354),l=r(97395),s=r(9111),u=r(69883),m=r(88630),f=r(49985),p=r(31949),d=r(39151),y=r(76881),b=r(40424),h=r(2997),E=r(7855),v=r(83345),g=r(16714),S=r(36848),A=r(22902),w=r(13876),C=r(65858),
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9038],{11140:(e,t,r)=>{r.r(t),r.d(t,{AddTeachersToClassroomView:()=>L});var n=r(1024),a=r.n(n),o=r(58566),c=r(23481),i=r(20354),l=r(97395),s=r(9111),u=r(69883),m=r(88630),f=r(49985),p=r(31949),d=r(39151),y=r(76881),b=r(40424),h=r(2997),E=r(7855),v=r(83345),g=r(16714),S=r(36848),A=r(22902),w=r(13876),C=r(65858),P=r(99742),T=r(14070),R=r(97291);function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,c,i=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(s)throw a}}return i}}(e,t)||_(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 _(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function U(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==I(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==I(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===I(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x="classrooms.addTeachersToClassroom",N=c.T.encloseNamespace(x);function L(e){var t=F(a().useState(!1),2),r=t[0],n=t[1],c=F(a().useState([]),2),I=c[0],L=c[1],j=i.a.useBasicFetch(p.N.currentUser()),M=i.a.useBasicFetch(d.L.config()),O=i.a.useBasicFetch(p.N.token()),B=i.a.useBasicFetch(j.data&&m.F.getClassroom(e.id,j.data.id)),D=(0,o.useDispatch)(),H=(0,u.Z)(),W=(0,A.T)().hasPermissions,X={application:R.O.USER_MANAGER,action:T.e.UserManager.STAFF},Y=!!(O.data&&B.data&&M.data&&j.data);return a().createElement(s.G,{closePopup:e.closePopup,title:N("title")},Y&&a().createElement(a().Fragment,null,a().createElement("div",{className:"pb-3"},a().createElement(E.R,{placeholder:N("placeholder"),getRemoteUrl:function(t){return function(e,t,r,n){var a,o=l._.safeUrlConcat(e,"/v1/search/users");return l._.urlBuilder(o,(U(a={query:t},"".concat(h.w.FILTER_PARAM_PREFIX,"userType"),y.Y.Staff),U(a,"".concat(h.w.FILTER_PARAM_PREFIX,"userProfileStatus"),"".concat(b.w.Active.toLowerCase(),",").concat(b.w.Inactive.toLowerCase())),U(a,"".concat(h.w.FILTER_PARAM_PREFIX,"excludeClassroom"),r),U(a,"".concat(h.w.FILTER_PARAM_PREFIX,"customerId"),n),U(a,"index","user"),U(a,"limit",E.d),a))}(M.data.gatewayApiUrl,t,e.id,j.data.customerId)},requestHeaders:{authorization:"Bearer ".concat(O.data.value)},selections:I,formatRemoteSuggestions:function(e){return e.results},onSuggestionSelected:function(e){return L([].concat(function(e){if(Array.isArray(e))return k(e)}(t=I)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||_(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]));var t},removeSelection:function(e){return L(I.filter((function(t){return t.id!==e.id})))},imageCdnUrl:M.data.imageCdnUrl,activationLength:2,debounceTime:200,errorStateImageUrl:P.W.TYPEAHEAD_ERROR,emptyStateImageUrl:P.W.EmptyStates.TYPEAHEAD_RESULTS})),a().createElement("div",{className:"pb-3 d-flex flex-column align-items-center"},a().createElement("img",{className:"img-fluid w-25 pb-2 pt-1",src:P.W.EmptyStates.Classrooms.ADD_TEACHERS}),a().createElement("p",{className:"mb-0 text-center"},a().createElement(v.x,{namespace:x,phrase:"info"})),W(g.C.ManageUsers)&&a().createElement("p",{className:"mb-0 text-center"},a().createElement(v.x,{namespace:x,phrase:"createStaff"})," ",a().createElement(S.F,{appLink:X,onClick:e.closePopup,className:"info-link"},a().createElement(v.x,{namespace:x,phrase:"staffManager"})))),a().createElement(w.u,null,a().createElement(w.u.Cancel,{onClick:e.closePopup}),a().createElement(w.u.Submit,{variant:"dark",onClick:function(){(null==I?void 0:I.length)&&(n(!0),i.a.fetch(D,m.F.addInvitees(I.map((function(e){return e.id})),e.id,(function(){n(!1),f.k.logUserAction({id:e.id,userCount:I.length},{actionType:C.UserAction.Associate,entity:C.EntityType.Classroom,location:C.LocationContext.Popup,descriptor:C.AssocDescriptor.User,workflowPhase:C.WorkflowPhase.Complete}),H.success(N("success",{smartCount:I.length,classroomName:B.data.name,escapeText:!0})),e.closePopup()}),(function(){n(!1),H.error(N("error",{smartCount:I.length,classroomName:B.data.name})),e.closePopup()}))))},text:N("addTeachers"),disabled:!(null==I?void 0:I.length),showSpinner:r}))))}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 9478-
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9478],{39478:(t,e,r)=>{r.r(e),r.d(e,{BaseShareLinkView:()=>d});var n=r(1024),o=r.n(n),i=r(20354),a=r(30439),c=r(4594);function u(t){return u="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},u(t)}function l(){l=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 s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=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:L(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={};s(m,i,(function(){return this}));var w=Object.getPrototypeOf,g=w&&w(w(O([])));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){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,a,c){var l=h(t[n],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==u(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(l.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 L(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=S(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 S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(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 O(t){if(t||""===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}}throw new TypeError(u(t)+" is not iterable")}return p.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:p,configurable:!0}),p.displayName=s(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,s(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(E.prototype),s(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),s(b,c,"Generator"),s(b,i,(function(){return this})),s(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=O,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:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function s(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 f=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())}))},h=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,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(n,i)||function(t,e){if(t){if("string"==typeof t)return s(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)?s(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.")}()),u=a[0],h=a[1];return o().useEffect((function(){u&&h(null)}),[e.videoId]),o().useEffect((function(){if(t&&!u){var n=t.objectTypeId;switch(e.videoId?n=c.E.Video:e.clipId?n=c.E.Clip:e.interactiveId&&(n=c.E.Interactive),n){case c.E.Video:var i=o().lazy((function(){return f(void 0,void 0,void 0,l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(8564),r.e(5986),r.e(4632),r.e(1518),r.e(3378),r.e(8789),r.e(8882)]).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)})))}));h(i);break;case c.E.Interactive:var a=o().lazy((function(){return f(void 0,void 0,void 0,l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(8564),r.e(5986),r.e(4632),r.e(1518),r.e(711),r.e(9590)]).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)})))}));h(a);break;case c.E.Clip:var s=o().lazy((function(){return f(void 0,void 0,void 0,l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(8564),r.e(5986),r.e(4632),r.e(1518),r.e(3378),r.e(7620)]).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)})))}));h(s);break;case c.E.Playlist:var d=o().lazy((function(){return f(void 0,void 0,void 0,l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(8564),r.e(5986),r.e(4632),r.e(7201),r.e(7591)]).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)})))}));h(d);break;case c.E.Series:var v=o().lazy((function(){return f(void 0,void 0,void 0,l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(8564),r.e(5986),r.e(4632),r.e(7153),r.e(1095)]).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)})))}));h(v)}}}),[t,u]),u};function d(t){var e=t.shareId,r=t.queryParams,n=i.a.useBasicFetch(e&&a.o.getShareObject(e)),c=h(n.data,r);if(!c)return o().createElement(o().Fragment,null);var u={shareId:e,queryParams:r,objectId:r.videoId?r.videoId:r.clipId?r.clipId:r.interactiveId?r.interactiveId:n.data.objectId};return o().createElement(o().Suspense,{fallback:o().createElement(o().Fragment,null)},o().createElement(c,Object.assign({},u)))}}}]);
|
|
1
|
+
/*! For license information please see 9478-db167dca52-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:()=>d});var n=r(1024),o=r.n(n),i=r(20354),a=r(30439),c=r(4594);function u(t){return u="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},u(t)}function l(){l=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 s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=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:L(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={};s(m,i,(function(){return this}));var w=Object.getPrototypeOf,g=w&&w(w(O([])));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){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,a,c){var l=h(t[n],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==u(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(l.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 L(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=S(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 S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(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 O(t){if(t||""===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}}throw new TypeError(u(t)+" is not iterable")}return p.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:p,configurable:!0}),p.displayName=s(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,s(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(E.prototype),s(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),s(b,c,"Generator"),s(b,i,(function(){return this})),s(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=O,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:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function s(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 f=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())}))},h=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,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(n,i)||function(t,e){if(t){if("string"==typeof t)return s(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)?s(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.")}()),u=a[0],h=a[1];return o().useEffect((function(){u&&h(null)}),[e.videoId]),o().useEffect((function(){if(t&&!u){var n=t.objectTypeId;switch(e.videoId?n=c.E.Video:e.clipId?n=c.E.Clip:e.interactiveId&&(n=c.E.Interactive),n){case c.E.Video:var i=o().lazy((function(){return f(void 0,void 0,void 0,l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(8564),r.e(2272),r.e(5986),r.e(4632),r.e(1518),r.e(3378),r.e(8789),r.e(8882)]).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)})))}));h(i);break;case c.E.Interactive:var a=o().lazy((function(){return f(void 0,void 0,void 0,l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(8564),r.e(2272),r.e(5986),r.e(4632),r.e(1518),r.e(711),r.e(9590)]).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)})))}));h(a);break;case c.E.Clip:var s=o().lazy((function(){return f(void 0,void 0,void 0,l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(8564),r.e(2272),r.e(5986),r.e(4632),r.e(1518),r.e(3378),r.e(7620)]).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)})))}));h(s);break;case c.E.Playlist:var d=o().lazy((function(){return f(void 0,void 0,void 0,l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(8564),r.e(2272),r.e(5986),r.e(4632),r.e(7201),r.e(7591)]).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)})))}));h(d);break;case c.E.Series:var v=o().lazy((function(){return f(void 0,void 0,void 0,l().mark((function t(){var e,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(8564),r.e(2272),r.e(5986),r.e(4632),r.e(7153),r.e(1095)]).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)})))}));h(v)}}}),[t,u]),u};function d(t){var e=t.shareId,r=t.queryParams,n=i.a.useBasicFetch(e&&a.o.getShareObject(e)),c=h(n.data,r);if(!c)return o().createElement(o().Fragment,null);var u={shareId:e,queryParams:r,objectId:r.videoId?r.videoId:r.clipId?r.clipId:r.interactiveId?r.interactiveId:n.data.objectId};return o().createElement(o().Suspense,{fallback:o().createElement(o().Fragment,null)},o().createElement(c,Object.assign({},u)))}}}]);
|