@clickview/lite 0.6.0-rc.1 → 0.6.0-rc.2

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "appBundle": "bundle-72b1dbcef5.min.js",
2
+ "appBundle": "bundle-ffd858f728.min.js",
3
3
  "cssBundle": "lite-app-9cd32c6274.css",
4
4
  "polyfillBundle": "polyfills-4d01383620.min.js"
5
5
  }
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1934],{5281:(e,t,n)=>{n.d(t,{k:()=>N,x:()=>L});var i=n(1024),r=n(81886),a=n(23481),o=n(1048),l=n(79014),c=n(31069),s=n(16930),u=n(43872),d=n(81514),f=n(49439),p=n(53957),m=n(10841),g=n(65294),v=n(8493),h=n(83914),y=n(61252),b=n(62845),C=n(54610),S=n(49985),E=n(31309),A=n(92644),x=n(61871),k=n(19720);function I(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 i,r,a=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var O="shared.fixedWidget",L=12;function N(e){var t,n=e.type,w=e.analyticsData,N=void 0===w?{}:w,T=e.getWidgetItemAnalyticsData,z=void 0===T?function(){}:T;n===p.WidgetType.ResourcesTile&&(n=p.WidgetType.Row);var j=I(i.useState(null),2),D=j[0],M=j[1],P=I(i.useState(null),2),X=P[0],R=P[1],W=I(i.useState(0),2),U=W[0],F=W[1],V=I(i.useReducer(x.CU,x.eS,x.m0),2),Q=V[0],B=V[1],G=i.useRef(null),Z=I((0,f.X)(),2),H=Z[0],q=Z[1],_=I(i.useState(!1),2),J=_[0],$=_[1],K=I(i.useState(!1),2),Y=K[0],ee=K[1];(0,A.iV)(e.controlsRef,B);var te=(0,g.Y)({prevent:!e.lazyLoad}),ne=te.ref,ie=te.inView,re=(0,d.V)(),ae=e.forcedMediaQuery||re,oe=Q.offset===Q.collection.length;i.useEffect((function(){B({type:m.n.Resize,payload:{mediaQuery:ae,type:n,contents:e.contents,collection:Q.collection,fullCollection:Q.fullCollection}})}),[ae]),i.useEffect((function(){if(e.prefetched){var t=e.collection,i=t;e.limitTotalItems&&(i=t.length>L?t.slice(0,L):t),B({type:m.n.Init,payload:{mediaQuery:ae,type:n,contents:e.contents,collection:i,fullCollection:t}})}}),[null===(t=e.collection)||void 0===t?void 0:t.length,e.prefetched]);var le=(0,A.$5)(e,B,ae,ie);i.useEffect((function(){var t=e.prefetched?e.collection:le.data;if(t){var n=l.q.isFunction(e.setData)?e.setData(t):t,i=n;e.limitTotalItems&&(i=n.length>L?n.slice(0,L):n),n.length===Q.collection.length&&(o.t.isEqual(n,Q.collection)||B({type:m.n.Update,payload:{collection:i,fullCollection:n}}))}}),[null==le?void 0:le.data,e.collection,Q,e.prefetched]);var ce={type:Q.type,size:Q.currentSize,collectionSize:Q.collection.length,contents:e.contents},se=(0,A.lv)(e,(null==le?void 0:le.data)||e.collection);if(null==le?void 0:le.hasError)return i.createElement(i.Fragment,null);if(!e.prefetched&&!(null==le?void 0:le.data)){var ue=e.partialComponent||E.j;return i.createElement("div",{ref:ne},i.createElement(ue,null))}if(!Q.collection.length||Q.collection.length<e.minimumItemCount)return i.createElement(i.Fragment,null);var de=e.childComponent,fe=function(t){return Object.assign({id:null==se?void 0:se.id,name:null==se?void 0:se.name,direction:t===m.n.Next?"right":"left"},e.analyticsData)},pe=function(){var t;return!(!e.appLink||!oe)&&e.limitTotalItems&&(null===(t=Q.fullCollection)||void 0===t?void 0:t.length)>L}();return i.createElement("div",{className:"mx-n".concat(e.paddingSize)},i.createElement("div",{className:"pb-3 px-".concat(e.paddingSize," ").concat(e.paddingTopSize?"pt-".concat(e.paddingTopSize):""," overflow-hidden-x ie-scrollbar-fix")},!e.hideName&&i.createElement("div",{className:"mb-1"},i.createElement(v.F,{appLink:(0,A.LU)(e.appLink,se),analyticsData:Object.assign({id:null==se?void 0:se.id,name:null==se?void 0:se.name},e.analyticsData),analyticsOptions:b.d.getSliderHeadingAnalyticsOptions()},i.createElement("h2",{className:"".concat(k.Z.heading," ").concat(e.appLink?k.Z.link:""," h4 mb-0 d-inline-block align-top pl-1")},se.name,!!e.appLink&&i.createElement(h.x,{svgName:y.vn.ChevronRight,size:h.S.Small})),e.settingsAppLink&&i.createElement(v.F,{appLink:e.settingsAppLink},i.createElement(h.x,{svgName:y.vn.Cog,className:"d-inline-block svg-container cursor-pointer",title:a.T.getPhrase(O,"preferencesTooltip"),tooltipPlacement:"right"}))),se.description&&i.createElement("p",{className:"text-truncate pl-1 description"},se.description)),i.createElement("div",{ref:H,className:"position-relative ".concat(e.hideBleedingContent?"overflow-hidden-x":"")},!e.hideBleedingContent&&!J&&i.createElement("div",{className:k.Z.leftOverflowGradient}),i.createElement(s.W,{direction:s.f.Left,onClick:function(){B({type:m.n.Previous}),S.k.logUserAction(fe(m.n.Previous),b.d.getSliderAnalyticsOptions()),l.q.isFunction(e.onClickPrevious)&&e.onClickPrevious()},hide:(0,A.yZ)(J,q,Q.offset,Q.viewableItems,Q.collection.length),contents:e.contents,className:e.leftWidgetButtonClassName,hideExtendedClickableArea:e.hideExtendedClickableArea}),i.createElement(u.V,{position:Q.position,positionType:c.C.Percentage,onTouchMove:(0,A.p$)(Q,G,X,R,D,M,F),onTouchEnd:(0,A.mE)(G,M,U,F,B),ref:G,percentageDragged:U},Q.collection.map((function(t,n){return i.createElement(de,Object.assign({key:"".concat(t.id,":").concat(n),data:t,collectionAppLink:e.appLink,getAppLink:e.getChildAppLink,context:ce,preloadImage:(0,A.eM)(Q)(t),thumbnailSize:e.thumbnailSize||C.h2.Medium,analyticsData:Object.assign(Object.assign({widgetId:se.id,widgetName:se.name,itemIndex:n},N),z(t)),analyticsOptions:Object.assign(Object.assign({},null==e?void 0:e.analyticsOptions),b.d.getSliderItemAnalyticsOptions()),forcedMediaQuery:e.forcedMediaQuery,onHover:function(e){window.setTimeout((function(){!function(e,t){if(Q.collection.length===Q.viewableItems)return $(e),void ee(e);t+1!==Q.collection.length?0!==t?(t+1-Q.offset%Q.viewableItems)%Q.viewableItems!=0?(t-Q.offset%Q.viewableItems)%Q.viewableItems!=0||$(e):ee(e):$(e):ee(e)}(e,n)}),e?0:200)}},e.extraChildComponentProps))}))),i.createElement(s.W,{direction:s.f.Right,onClick:function(){pe?r.Q.AppLinkHelper.trigger((0,A.LU)(e.appLink,se)):(B({type:m.n.Next}),S.k.logUserAction(fe(m.n.Next),b.d.getSliderAnalyticsOptions()),l.q.isFunction(e.onClickNext)&&e.onClickNext())},hide:(0,A.DK)(Y,q,Q.offset,Q.viewableItems,Q.collection.length,pe),contents:e.contents,hoverText:pe&&a.T.getPhrase(O,"seeMore"),className:e.rightWidgetButtonClassName,hideExtendedClickableArea:e.hideExtendedClickableArea}),!e.hideBleedingContent&&!Y&&i.createElement("div",{className:k.Z.rightOverflowGradient}))))}N.defaultProps={type:p.WidgetType.Row,minimumItemCount:0,paddingSize:"3",extraChildComponentProps:{}}},61871:(e,t,n)=>{n.d(t,{CU:()=>c,eS:()=>l,m0:()=>s});var i=n(86764),r=n(10841),a=n(53957),o=n(92644),l={offset:0,viewableItems:4,position:0,collection:[],fullCollection:[],currentSize:i.r.LG,type:a.WidgetType.Row};function c(e,t){var n,i,a=t.type,l=t.payload,c=void 0===l?{}:l;switch(a){case r.n.Next:return Object.assign(Object.assign({},e),function(e){var t=e.collection,n=e.viewableItems,i=e.offset,r=e.position,a=t.length-i;return a%n==0||a>n?{position:r-100,offset:i+n}:a<n?{position:r-a/n*100,offset:i+a}:{position:r,offset:i}}(e));case r.n.Previous:return Object.assign(Object.assign({},e),function(e){var t=e.viewableItems,n=e.offset,i=e.position,r=n-t;return r%t==0||r>t?{position:i+100,offset:n-t}:r<t?{position:i+r/t*100,offset:n-r}:{position:i,offset:n}}(e));case r.n.JumpToIndex:return Object.assign(Object.assign({},e),{offset:c.offset,position:-100*(c.offset-1)});case r.n.Resize:var u=(0,o.Wl)(c.contents)(c.mediaQuery,c.type,null===(n=c.collection)||void 0===n?void 0:n.length);return Object.assign(Object.assign({},e),{currentSize:c.mediaQuery,position:0,offset:u,viewableItems:u,type:c.type,fullCollection:c.fullCollection});case r.n.Init:var d=(0,o.Wl)(c.contents)(c.mediaQuery,c.type,null===(i=c.collection)||void 0===i?void 0:i.length);return s(Object.assign(Object.assign({},e),{collection:c.collection,currentSize:c.mediaQuery,offset:d,viewableItems:d,type:c.type,fullCollection:c.fullCollection}));case r.n.Update:return Object.assign(Object.assign({},e),{collection:c.collection,fullCollection:c.fullCollection});default:return e}}function s(e){return Object.assign(Object.assign({},l),e)}},92644:(e,t,n)=>{n.d(t,{$5:()=>f,DK:()=>N,LU:()=>m,Wl:()=>v,eM:()=>p,iV:()=>T,lv:()=>g,mE:()=>O,p$:()=>w,yZ:()=>L});var i=n(1024),r=n(1048),a=n(28400),o=n(79014),l=n(86764),c=n(10841),s=n(58704),u=n(53957),d=n(5281);function f(e,t,n,a){var l,s=e.fetch,u=e.setData,f=e.type,p=e.collection,m=e.prefetched,g=e.contents,v=p;v&&!r.t.isEmpty(v)||m||(l=s(a),v=l.data);var h=o.q.isFunction(u)&&v?u(v):v,y=h;return i.useEffect((function(){v&&!r.t.isEmpty(v)&&(e.limitTotalItems&&(y=h.length>d.x?h.slice(0,d.x):h),t({type:c.n.Init,payload:{collection:y,fullCollection:h,mediaQuery:n,type:f,contents:g}}))}),[null==h?void 0:h.length]),l}function p(e){for(var t=e.offset,n=e.viewableItems,i=e.collection,r=t,a=[],o=0;o<r+n;o++)a.push(o);return function(e){var t=i.indexOf(e);return a.includes(t)}}function m(e,t){if(e)return Object.assign(Object.assign({},e),{args:e.args||[t.id,a.m.slugify(t.name)]})}function g(e,t){var n=e.name,i=e.description,r={};return Array.isArray(t)?{name:n,description:i}:(e.name&&(r.name=n),e.description&&(r.description=i),Object.assign(Object.assign({},t),r))}function v(e){switch(e){case s.z.Playlists:return h;case s.z.Videos:return b;case s.z.FeedVideos:return C;case s.z.Subjects:return S;case s.z.UserChannels:return E;case s.z.Interactives:return A;case s.z.Clips:return x;case s.z.Resources:return k;case s.z.Libraries:case s.z.Folders:return y;case s.z.Series:default:return I}}function h(e,t,n){var i=5;return e===l.r.XS?i=2:e===l.r.SM?i=3:e===l.r.MD&&(i=4),n<i&&(i=n),i}function y(e,t,n){var i=3;return e===l.r.XS||e===l.r.SM?i=1:e===l.r.MD?i=2:e===l.r.LG&&(i=3),n<i&&(i=n),i}function b(e,t,n){var i=4;return e===l.r.XS?i=2:e===l.r.SM?i=3:e===l.r.MD?i=4:e!==l.r.LG&&e!==l.r.XL&&e!==l.r.XXL||(i=t===u.WidgetType.LargeRow||n<4?3:4),n<i&&(i=n),i}function C(e,t,n){return 1}function S(e,t,n){var i=6;return e===l.r.SM||e===l.r.XS?i=3:e===l.r.MD?i=4:e===l.r.LG?i=5:e!==l.r.XL&&e!==l.r.XXL||(i=6),n<i&&(i=n),i}function E(e,t,n){var i=6;return e===l.r.XS?i=2:e===l.r.SM?i=3:e===l.r.MD||e===l.r.LG?i=4:e!==l.r.XL&&e!==l.r.XXL||(i=6),n<i&&(i=n),i}function A(e,t,n){var i=3;return e!==l.r.MD&&e!==l.r.SM||(i=2),e===l.r.XS&&(i=1),n<Math.ceil(i)&&(i=n),i}function x(e,t,n){var i=3;return e!==l.r.MD&&e!==l.r.SM||(i=2),e===l.r.XS&&(i=1),n<Math.ceil(i)&&(i=n),i}function k(e,t,n){var i=4;return e===l.r.SM&&(i=3),e===l.r.XS&&(i=2),n<i&&(i=n),i}function I(e,t,n){var i=4;return e===l.r.XS?i=2:e===l.r.SM&&(i=3),n<i&&(i=n),i}function w(e,t,n,i,r,a,o){return function(l){var c=l.touches.item(0).clientX;r||(t.current.style.transition="",i(t.current.getBoundingClientRect().width),a(c));var s=(r-c)/n*100;(s<0&&e.offset===e.viewableItems||s>0&&e.offset===e.collection.length)&&(s=0),o(s)}}function O(e,t,n,i,r){return function(){if(e.current.style.transition="transform .4s ease-in-out",t(null),Math.abs(n)>=7.5){var a=n>0?c.n.Next:c.n.Previous;r({type:a})}i(0)}}function L(e,t,n,i,r){return!!e||r<=i||!t||n===i}function N(e,t,n,i,r,a){return!!e||r<=i||n!==i&&(!t||!a&&r<=n)}function T(e,t){i.useEffect((function(){e&&!e.current&&(e.current={jumpToIndex:function(e){return t({type:c.n.JumpToIndex,payload:{offset:e+1}})}})}),[null==e?void 0:e.current])}},31309:(e,t,n)=>{n.d(t,{j:()=>c});var i=n(1024),r=n(86764),a=n(81514),o=n(19720),l=function(e){var t=e.colSize;return i.createElement("div",{className:"col-".concat(t," px-1")},i.createElement("div",{className:"".concat(o.Z.partialItem," mx-1 partial-loading-background rounded")}))};function c(e){for(var t,n=(t=(0,a.V)())===r.r.XS?{itemCount:2,colSize:6}:t===r.r.SM?{itemCount:3,colSize:4}:{itemCount:4,colSize:3},c=n.itemCount,s=n.colSize,u=[],d=0;d<c;d++)u.push(i.createElement(l,{key:d,colSize:s}));return i.createElement("div",{className:"widget pb-3"},i.createElement("div",{className:"".concat(o.Z.partialHeading," mx-1 mb-1 partial-loading-background")}),!e.hideDescription&&i.createElement("div",{className:"".concat(o.Z.partialDescription," mx-1 my-1 partial-loading-background")}),i.createElement("div",{className:"row no-gutters mx-n1"},u))}},43872:(e,t,n)=>{n.d(t,{V:()=>u});var i=n(1024),r=n(82182),a=n(31069),o=n(79014),l=new Image;l.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var c=function(e){e.dataTransfer.setDragImage&&o.q.isFunction(e.dataTransfer.setDragImage)&&e.dataTransfer.setDragImage(l,0,0)},s=r.V.isTouchScreen(),u=i.forwardRef((function(e,t){var n,r,o,l,u=e.children,d=e.positionType,f=e.onDrag,p=e.onDragEnd,m=e.onTouchMove,g=e.onTouchEnd,v=e.percentageDragged,h=e.position,y=void 0===h?0:h;return i.createElement("div",Object.assign({className:"d-flex flex-nowrap position-relative w-100",style:(r=y,o=d,l=v,o===a.C.Percentage&&l&&(r-=l),{transform:"translate3d(".concat(r).concat(o,", 0px, 0px)"),transition:"transform .4s ease-in-out"}),ref:t},(n={},f&&p&&(n.draggable=!0,n.onDragEnd=p,n.onDragStart=c,n.onDragOver=f),m&&g&&s&&(n.onTouchMoveCapture=m,n.onTouchEndCapture=g),n)),u)}))},16930:(e,t,n)=>{n.d(t,{W:()=>l,f:()=>o});var i=n(1024),r=n(83914),a=n(61252);var o;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(o||(o={}));var l=i.memo((function(e){var t=e.direction===o.Left,n=t?a.vn.ChevronLeft:a.vn.ChevronRight,l=(e.contents,"BVcIS"+(t?" VSAPU":" kgeXh"));return e.hide?i.createElement(i.Fragment,null):i.createElement(i.Fragment,null,i.createElement("div",{role:"button",className:"".concat(l," ").concat("gAsE9"," ").concat(e.className||""),onClick:e.onClick},e.hoverText&&i.createElement("span",{className:"pl-3 pr-2 ".concat("APA36")},e.hoverText),i.createElement(r.x,{svgName:n,size:r.S.Medium,className:"svg-container d-inline-block ".concat("Ev4hr")})),e.useGradientBackdrop&&i.createElement("div",{className:t?"Pt3nx":"ZuAif"}),!e.hideExtendedClickableArea&&i.createElement("div",{role:"button",onClick:e.onClick,className:t?"wi8c2":"aLa_J"}))}))},31069:(e,t,n)=>{var i;n.d(t,{C:()=>i}),function(e){e.Percentage="%",e.Pixels="px"}(i||(i={}))},58704:(e,t,n)=>{var i;n.d(t,{z:()=>i}),function(e){e.Videos="videos",e.FeedVideos="feed videos",e.Series="series",e.Subjects="subjects",e.Playlists="playlists",e.UserChannels="user channels",e.Interactives="interactives",e.Clips="clips",e.Resources="resources",e.Libraries="Libraries",e.Folders="Folders"}(i||(i={}))},10841:(e,t,n)=>{var i;n.d(t,{n:()=>i}),function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag",e.Update="update",e.JumpToIndex="jump-to-index"}(i||(i={}))},62845:(e,t,n)=>{n.d(t,{d:()=>r});var i=n(65858),r={getSliderAnalyticsOptions:function(){return{actionType:i.UserAction.Click,location:i.LocationContext.SlidingList,entity:i.EntityType.Widget,descriptor:i.ClickDescriptor.Slide}},getSliderItemAnalyticsOptions:function(){return{location:i.LocationContext.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:i.UserAction.Click,location:i.LocationContext.SlidingList,entity:i.EntityType.Widget,descriptor:i.ClickDescriptor.Title}}}},19720:(e,t,n)=>{n.d(t,{Z:()=>i});const i={leftOverflowGradient:"JXtNs",rightOverflowGradient:"tAbzW",partialHeading:"XA26O",partialDescription:"gahsa",partialItem:"iNH_I",largePartialItem:"nWj1a",heading:"vHVWR",link:"jaP83"}}}]);
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[2644],{5281:(e,t,n)=>{n.d(t,{k:()=>N,x:()=>L});var i=n(1024),r=n(81886),a=n(23481),o=n(1048),l=n(79014),c=n(31069),s=n(16930),u=n(43872),d=n(81514),f=n(49439),p=n(53957),m=n(10841),g=n(65294),v=n(8493),h=n(83914),y=n(61252),b=n(62845),C=n(54610),S=n(49985),E=n(31309),A=n(92644),x=n(61871),k=n(19720);function I(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 i,r,a=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var O="shared.fixedWidget",L=12;function N(e){var t,n=e.type,w=e.analyticsData,N=void 0===w?{}:w,T=e.getWidgetItemAnalyticsData,z=void 0===T?function(){}:T;n===p.WidgetType.ResourcesTile&&(n=p.WidgetType.Row);var j=I(i.useState(null),2),D=j[0],M=j[1],P=I(i.useState(null),2),X=P[0],R=P[1],W=I(i.useState(0),2),U=W[0],F=W[1],V=I(i.useReducer(x.CU,x.eS,x.m0),2),Q=V[0],B=V[1],G=i.useRef(null),Z=I((0,f.X)(),2),H=Z[0],q=Z[1],_=I(i.useState(!1),2),J=_[0],$=_[1],K=I(i.useState(!1),2),Y=K[0],ee=K[1];(0,A.iV)(e.controlsRef,B);var te=(0,g.Y)({prevent:!e.lazyLoad}),ne=te.ref,ie=te.inView,re=(0,d.V)(),ae=e.forcedMediaQuery||re,oe=Q.offset===Q.collection.length;i.useEffect((function(){B({type:m.n.Resize,payload:{mediaQuery:ae,type:n,contents:e.contents,collection:Q.collection,fullCollection:Q.fullCollection}})}),[ae]),i.useEffect((function(){if(e.prefetched){var t=e.collection,i=t;e.limitTotalItems&&(i=t.length>L?t.slice(0,L):t),B({type:m.n.Init,payload:{mediaQuery:ae,type:n,contents:e.contents,collection:i,fullCollection:t}})}}),[null===(t=e.collection)||void 0===t?void 0:t.length,e.prefetched]);var le=(0,A.$5)(e,B,ae,ie);i.useEffect((function(){var t=e.prefetched?e.collection:le.data;if(t){var n=l.q.isFunction(e.setData)?e.setData(t):t,i=n;e.limitTotalItems&&(i=n.length>L?n.slice(0,L):n),n.length===Q.collection.length&&(o.t.isEqual(n,Q.collection)||B({type:m.n.Update,payload:{collection:i,fullCollection:n}}))}}),[null==le?void 0:le.data,e.collection,Q,e.prefetched]);var ce={type:Q.type,size:Q.currentSize,collectionSize:Q.collection.length,contents:e.contents},se=(0,A.lv)(e,(null==le?void 0:le.data)||e.collection);if(null==le?void 0:le.hasError)return i.createElement(i.Fragment,null);if(!e.prefetched&&!(null==le?void 0:le.data)){var ue=e.partialComponent||E.j;return i.createElement("div",{ref:ne},i.createElement(ue,null))}if(!Q.collection.length||Q.collection.length<e.minimumItemCount)return i.createElement(i.Fragment,null);var de=e.childComponent,fe=function(t){return Object.assign({id:null==se?void 0:se.id,name:null==se?void 0:se.name,direction:t===m.n.Next?"right":"left"},e.analyticsData)},pe=function(){var t;return!(!e.appLink||!oe)&&e.limitTotalItems&&(null===(t=Q.fullCollection)||void 0===t?void 0:t.length)>L}();return i.createElement("div",{className:"mx-n".concat(e.paddingSize)},i.createElement("div",{className:"pb-3 px-".concat(e.paddingSize," ").concat(e.paddingTopSize?"pt-".concat(e.paddingTopSize):""," overflow-hidden-x ie-scrollbar-fix")},!e.hideName&&i.createElement("div",{className:"mb-1"},i.createElement(v.F,{appLink:(0,A.LU)(e.appLink,se),analyticsData:Object.assign({id:null==se?void 0:se.id,name:null==se?void 0:se.name},e.analyticsData),analyticsOptions:b.d.getSliderHeadingAnalyticsOptions()},i.createElement("h2",{className:"".concat(k.Z.heading," ").concat(e.appLink?k.Z.link:""," h4 mb-0 d-inline-block align-top pl-1")},se.name,!!e.appLink&&i.createElement(h.x,{svgName:y.vn.ChevronRight,size:h.S.Small})),e.settingsAppLink&&i.createElement(v.F,{appLink:e.settingsAppLink},i.createElement(h.x,{svgName:y.vn.Cog,className:"d-inline-block svg-container cursor-pointer",title:a.T.getPhrase(O,"preferencesTooltip"),tooltipPlacement:"right"}))),se.description&&i.createElement("p",{className:"text-truncate pl-1 description"},se.description)),i.createElement("div",{ref:H,className:"position-relative ".concat(e.hideBleedingContent?"overflow-hidden-x":"")},!e.hideBleedingContent&&!J&&i.createElement("div",{className:k.Z.leftOverflowGradient}),i.createElement(s.W,{direction:s.f.Left,onClick:function(){B({type:m.n.Previous}),S.k.logUserAction(fe(m.n.Previous),b.d.getSliderAnalyticsOptions()),l.q.isFunction(e.onClickPrevious)&&e.onClickPrevious()},hide:(0,A.yZ)(J,q,Q.offset,Q.viewableItems,Q.collection.length),contents:e.contents,className:e.leftWidgetButtonClassName,hideExtendedClickableArea:e.hideExtendedClickableArea}),i.createElement(u.V,{position:Q.position,positionType:c.C.Percentage,onTouchMove:(0,A.p$)(Q,G,X,R,D,M,F),onTouchEnd:(0,A.mE)(G,M,U,F,B),ref:G,percentageDragged:U},Q.collection.map((function(t,n){return i.createElement(de,Object.assign({key:"".concat(t.id,":").concat(n),data:t,collectionAppLink:e.appLink,getAppLink:e.getChildAppLink,context:ce,preloadImage:(0,A.eM)(Q)(t),thumbnailSize:e.thumbnailSize||C.h2.Medium,analyticsData:Object.assign(Object.assign({widgetId:se.id,widgetName:se.name,itemIndex:n},N),z(t)),analyticsOptions:Object.assign(Object.assign({},null==e?void 0:e.analyticsOptions),b.d.getSliderItemAnalyticsOptions()),forcedMediaQuery:e.forcedMediaQuery,onHover:function(e){window.setTimeout((function(){!function(e,t){if(Q.collection.length===Q.viewableItems)return $(e),void ee(e);t+1!==Q.collection.length?0!==t?(t+1-Q.offset%Q.viewableItems)%Q.viewableItems!=0?(t-Q.offset%Q.viewableItems)%Q.viewableItems!=0||$(e):ee(e):$(e):ee(e)}(e,n)}),e?0:200)}},e.extraChildComponentProps))}))),i.createElement(s.W,{direction:s.f.Right,onClick:function(){pe?r.Q.AppLinkHelper.trigger((0,A.LU)(e.appLink,se)):(B({type:m.n.Next}),S.k.logUserAction(fe(m.n.Next),b.d.getSliderAnalyticsOptions()),l.q.isFunction(e.onClickNext)&&e.onClickNext())},hide:(0,A.DK)(Y,q,Q.offset,Q.viewableItems,Q.collection.length,pe),contents:e.contents,hoverText:pe&&a.T.getPhrase(O,"seeMore"),className:e.rightWidgetButtonClassName,hideExtendedClickableArea:e.hideExtendedClickableArea}),!e.hideBleedingContent&&!Y&&i.createElement("div",{className:k.Z.rightOverflowGradient}))))}N.defaultProps={type:p.WidgetType.Row,minimumItemCount:0,paddingSize:"3",extraChildComponentProps:{}}},61871:(e,t,n)=>{n.d(t,{CU:()=>c,eS:()=>l,m0:()=>s});var i=n(86764),r=n(10841),a=n(53957),o=n(92644),l={offset:0,viewableItems:4,position:0,collection:[],fullCollection:[],currentSize:i.r.LG,type:a.WidgetType.Row};function c(e,t){var n,i,a=t.type,l=t.payload,c=void 0===l?{}:l;switch(a){case r.n.Next:return Object.assign(Object.assign({},e),function(e){var t=e.collection,n=e.viewableItems,i=e.offset,r=e.position,a=t.length-i;return a%n==0||a>n?{position:r-100,offset:i+n}:a<n?{position:r-a/n*100,offset:i+a}:{position:r,offset:i}}(e));case r.n.Previous:return Object.assign(Object.assign({},e),function(e){var t=e.viewableItems,n=e.offset,i=e.position,r=n-t;return r%t==0||r>t?{position:i+100,offset:n-t}:r<t?{position:i+r/t*100,offset:n-r}:{position:i,offset:n}}(e));case r.n.JumpToIndex:return Object.assign(Object.assign({},e),{offset:c.offset,position:-100*(c.offset-1)});case r.n.Resize:var u=(0,o.Wl)(c.contents)(c.mediaQuery,c.type,null===(n=c.collection)||void 0===n?void 0:n.length);return Object.assign(Object.assign({},e),{currentSize:c.mediaQuery,position:0,offset:u,viewableItems:u,type:c.type,fullCollection:c.fullCollection});case r.n.Init:var d=(0,o.Wl)(c.contents)(c.mediaQuery,c.type,null===(i=c.collection)||void 0===i?void 0:i.length);return s(Object.assign(Object.assign({},e),{collection:c.collection,currentSize:c.mediaQuery,offset:d,viewableItems:d,type:c.type,fullCollection:c.fullCollection}));case r.n.Update:return Object.assign(Object.assign({},e),{collection:c.collection,fullCollection:c.fullCollection});default:return e}}function s(e){return Object.assign(Object.assign({},l),e)}},92644:(e,t,n)=>{n.d(t,{$5:()=>f,DK:()=>N,LU:()=>m,Wl:()=>v,eM:()=>p,iV:()=>T,lv:()=>g,mE:()=>O,p$:()=>w,yZ:()=>L});var i=n(1024),r=n(1048),a=n(28400),o=n(79014),l=n(86764),c=n(10841),s=n(58704),u=n(53957),d=n(5281);function f(e,t,n,a){var l,s=e.fetch,u=e.setData,f=e.type,p=e.collection,m=e.prefetched,g=e.contents,v=p;v&&!r.t.isEmpty(v)||m||(l=s(a),v=l.data);var h=o.q.isFunction(u)&&v?u(v):v,y=h;return i.useEffect((function(){v&&!r.t.isEmpty(v)&&(e.limitTotalItems&&(y=h.length>d.x?h.slice(0,d.x):h),t({type:c.n.Init,payload:{collection:y,fullCollection:h,mediaQuery:n,type:f,contents:g}}))}),[null==h?void 0:h.length]),l}function p(e){for(var t=e.offset,n=e.viewableItems,i=e.collection,r=t,a=[],o=0;o<r+n;o++)a.push(o);return function(e){var t=i.indexOf(e);return a.includes(t)}}function m(e,t){if(e)return Object.assign(Object.assign({},e),{args:e.args||[t.id,a.m.slugify(t.name)]})}function g(e,t){var n=e.name,i=e.description,r={};return Array.isArray(t)?{name:n,description:i}:(e.name&&(r.name=n),e.description&&(r.description=i),Object.assign(Object.assign({},t),r))}function v(e){switch(e){case s.z.Playlists:return h;case s.z.Videos:return b;case s.z.FeedVideos:return C;case s.z.Subjects:return S;case s.z.UserChannels:return E;case s.z.Interactives:return A;case s.z.Clips:return x;case s.z.Resources:return k;case s.z.Libraries:case s.z.Folders:return y;case s.z.Series:default:return I}}function h(e,t,n){var i=5;return e===l.r.XS?i=2:e===l.r.SM?i=3:e===l.r.MD&&(i=4),n<i&&(i=n),i}function y(e,t,n){var i=3;return e===l.r.XS||e===l.r.SM?i=1:e===l.r.MD?i=2:e===l.r.LG&&(i=3),n<i&&(i=n),i}function b(e,t,n){var i=4;return e===l.r.XS?i=2:e===l.r.SM?i=3:e===l.r.MD?i=4:e!==l.r.LG&&e!==l.r.XL&&e!==l.r.XXL||(i=t===u.WidgetType.LargeRow||n<4?3:4),n<i&&(i=n),i}function C(e,t,n){return 1}function S(e,t,n){var i=6;return e===l.r.SM||e===l.r.XS?i=3:e===l.r.MD?i=4:e===l.r.LG?i=5:e!==l.r.XL&&e!==l.r.XXL||(i=6),n<i&&(i=n),i}function E(e,t,n){var i=6;return e===l.r.XS?i=2:e===l.r.SM?i=3:e===l.r.MD||e===l.r.LG?i=4:e!==l.r.XL&&e!==l.r.XXL||(i=6),n<i&&(i=n),i}function A(e,t,n){var i=3;return e!==l.r.MD&&e!==l.r.SM||(i=2),e===l.r.XS&&(i=1),n<Math.ceil(i)&&(i=n),i}function x(e,t,n){var i=3;return e!==l.r.MD&&e!==l.r.SM||(i=2),e===l.r.XS&&(i=1),n<Math.ceil(i)&&(i=n),i}function k(e,t,n){var i=4;return e===l.r.SM&&(i=3),e===l.r.XS&&(i=2),n<i&&(i=n),i}function I(e,t,n){var i=4;return e===l.r.XS?i=2:e===l.r.SM&&(i=3),n<i&&(i=n),i}function w(e,t,n,i,r,a,o){return function(l){var c=l.touches.item(0).clientX;r||(t.current.style.transition="",i(t.current.getBoundingClientRect().width),a(c));var s=(r-c)/n*100;(s<0&&e.offset===e.viewableItems||s>0&&e.offset===e.collection.length)&&(s=0),o(s)}}function O(e,t,n,i,r){return function(){if(e.current.style.transition="transform .4s ease-in-out",t(null),Math.abs(n)>=7.5){var a=n>0?c.n.Next:c.n.Previous;r({type:a})}i(0)}}function L(e,t,n,i,r){return!!e||r<=i||!t||n===i}function N(e,t,n,i,r,a){return!!e||r<=i||n!==i&&(!t||!a&&r<=n)}function T(e,t){i.useEffect((function(){e&&!e.current&&(e.current={jumpToIndex:function(e){return t({type:c.n.JumpToIndex,payload:{offset:e+1}})}})}),[null==e?void 0:e.current])}},31309:(e,t,n)=>{n.d(t,{j:()=>c});var i=n(1024),r=n(86764),a=n(81514),o=n(19720),l=function(e){var t=e.colSize;return i.createElement("div",{className:"col-".concat(t," px-1")},i.createElement("div",{className:"".concat(o.Z.partialItem," mx-1 partial-loading-background rounded")}))};function c(e){for(var t,n=(t=(0,a.V)())===r.r.XS?{itemCount:2,colSize:6}:t===r.r.SM?{itemCount:3,colSize:4}:{itemCount:4,colSize:3},c=n.itemCount,s=n.colSize,u=[],d=0;d<c;d++)u.push(i.createElement(l,{key:d,colSize:s}));return i.createElement("div",{className:"widget pb-3"},i.createElement("div",{className:"".concat(o.Z.partialHeading," mx-1 mb-1 partial-loading-background")}),!e.hideDescription&&i.createElement("div",{className:"".concat(o.Z.partialDescription," mx-1 my-1 partial-loading-background")}),i.createElement("div",{className:"row no-gutters mx-n1"},u))}},43872:(e,t,n)=>{n.d(t,{V:()=>u});var i=n(1024),r=n(82182),a=n(31069),o=n(79014),l=new Image;l.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var c=function(e){e.dataTransfer.setDragImage&&o.q.isFunction(e.dataTransfer.setDragImage)&&e.dataTransfer.setDragImage(l,0,0)},s=r.V.isTouchScreen(),u=i.forwardRef((function(e,t){var n,r,o,l,u=e.children,d=e.positionType,f=e.onDrag,p=e.onDragEnd,m=e.onTouchMove,g=e.onTouchEnd,v=e.percentageDragged,h=e.position,y=void 0===h?0:h;return i.createElement("div",Object.assign({className:"d-flex flex-nowrap position-relative w-100",style:(r=y,o=d,l=v,o===a.C.Percentage&&l&&(r-=l),{transform:"translate3d(".concat(r).concat(o,", 0px, 0px)"),transition:"transform .4s ease-in-out"}),ref:t},(n={},f&&p&&(n.draggable=!0,n.onDragEnd=p,n.onDragStart=c,n.onDragOver=f),m&&g&&s&&(n.onTouchMoveCapture=m,n.onTouchEndCapture=g),n)),u)}))},16930:(e,t,n)=>{n.d(t,{W:()=>l,f:()=>o});var i=n(1024),r=n(83914),a=n(61252);var o;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(o||(o={}));var l=i.memo((function(e){var t=e.direction===o.Left,n=t?a.vn.ChevronLeft:a.vn.ChevronRight,l=(e.contents,"BVcIS"+(t?" VSAPU":" kgeXh"));return e.hide?i.createElement(i.Fragment,null):i.createElement(i.Fragment,null,i.createElement("div",{role:"button",className:"".concat(l," ").concat("gAsE9"," ").concat(e.className||""),onClick:e.onClick},e.hoverText&&i.createElement("span",{className:"pl-3 pr-2 ".concat("APA36")},e.hoverText),i.createElement(r.x,{svgName:n,size:r.S.Medium,className:"svg-container d-inline-block ".concat("Ev4hr")})),e.useGradientBackdrop&&i.createElement("div",{className:t?"Pt3nx":"ZuAif"}),!e.hideExtendedClickableArea&&i.createElement("div",{role:"button",onClick:e.onClick,className:t?"wi8c2":"aLa_J"}))}))},31069:(e,t,n)=>{var i;n.d(t,{C:()=>i}),function(e){e.Percentage="%",e.Pixels="px"}(i||(i={}))},58704:(e,t,n)=>{var i;n.d(t,{z:()=>i}),function(e){e.Videos="videos",e.FeedVideos="feed videos",e.Series="series",e.Subjects="subjects",e.Playlists="playlists",e.UserChannels="user channels",e.Interactives="interactives",e.Clips="clips",e.Resources="resources",e.Libraries="Libraries",e.Folders="Folders"}(i||(i={}))},10841:(e,t,n)=>{var i;n.d(t,{n:()=>i}),function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag",e.Update="update",e.JumpToIndex="jump-to-index"}(i||(i={}))},62845:(e,t,n)=>{n.d(t,{d:()=>r});var i=n(65858),r={getSliderAnalyticsOptions:function(){return{actionType:i.UserAction.Click,location:i.LocationContext.SlidingList,entity:i.EntityType.Widget,descriptor:i.ClickDescriptor.Slide}},getSliderItemAnalyticsOptions:function(){return{location:i.LocationContext.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:i.UserAction.Click,location:i.LocationContext.SlidingList,entity:i.EntityType.Widget,descriptor:i.ClickDescriptor.Title}}}},19720:(e,t,n)=>{n.d(t,{Z:()=>i});const i={leftOverflowGradient:"JXtNs",rightOverflowGradient:"tAbzW",partialHeading:"XA26O",partialDescription:"gahsa",partialItem:"iNH_I",largePartialItem:"nWj1a",heading:"vHVWR",link:"jaP83"}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 9478-b57e6f9cde-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:()=>y});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="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(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=E(a,r);if(c){if(c===h)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=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function d(){}function v(){}function p(){}var y={};c(y,o,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(I([])));w&&w!==e&&r.call(w,o)&&(y=w);var g=p.prototype=d.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,h=s.value;return h&&"object"==l(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(h).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function E(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,E(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;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,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function I(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=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 i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return v.prototype=p,c(g,"constructor",p),c(p,"constructor",v),v.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(x.prototype),c(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,a,"Generator"),c(g,o,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=I,k.prototype={constructor:k,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(L),!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,h):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),h},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),L(r),h}},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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},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),p={optimize:!0};function y(t){var e=t.shareId,n=t.queryParams,l=(0,d.T)().hasPermissions,y=i.a.useBasicFetch(a.N.currentUser(),p),m=i.a.useBasicFetch(e&&c.o.getShareObject(e),p),w=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(7760),r.e(6014),r.e(5986),r.e(4632),r.e(1934),r.e(1825),r.e(2541),r.e(2560),r.e(8416)]).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(7919),r.e(7760),r.e(6014),r.e(5986),r.e(4632),r.e(1934),r.e(1825),r.e(6856),r.e(3891),r.e(2711)]).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(7760),r.e(6014),r.e(5986),r.e(4632),r.e(1934),r.e(1825),r.e(7831),r.e(8835)]).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(7760),r.e(6014),r.e(5986),r.e(4632),r.e(2562),r.e(5027)]).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(7760),r.e(6014),r.e(5986),r.e(4632),r.e(2215),r.e(6167)]).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}(m.data,n);if(!w)return o().createElement(o().Fragment,null);var g={shareId:e,queryParams:n,objectId:n.videoId?n.videoId:n.clipId?n.clipId:n.interactiveId?n.interactiveId:m.data.objectId,currentUser:y.data,playNext:n.playNext};return l(v.C.StudentExperience)&&"activityStatus"in m.data&&(g.activityStatus=m.data.activityStatus),o().createElement(o().Suspense,{fallback:o().createElement(o().Fragment,null)},o().createElement(w,Object.assign({},g)))}}}]);
1
+ /*! For license information please see 9478-9176bdf440-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:()=>y});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="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(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=E(a,r);if(c){if(c===h)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=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function d(){}function v(){}function p(){}var y={};c(y,o,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(I([])));w&&w!==e&&r.call(w,o)&&(y=w);var g=p.prototype=d.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,h=s.value;return h&&"object"==l(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(h).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function E(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,E(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;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,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function I(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=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 i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return v.prototype=p,c(g,"constructor",p),c(p,"constructor",v),v.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(x.prototype),c(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,a,"Generator"),c(g,o,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=I,k.prototype={constructor:k,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(L),!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,h):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),h},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),L(r),h}},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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},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),p={optimize:!0};function y(t){var e=t.shareId,n=t.queryParams,l=(0,d.T)().hasPermissions,y=i.a.useBasicFetch(a.N.currentUser(),p),m=i.a.useBasicFetch(e&&c.o.getShareObject(e),p),w=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(7760),r.e(6014),r.e(5986),r.e(4632),r.e(2644),r.e(1825),r.e(2541),r.e(2560),r.e(8416)]).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(7919),r.e(7760),r.e(6014),r.e(5986),r.e(4632),r.e(2644),r.e(1825),r.e(6856),r.e(3891),r.e(2711)]).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(7760),r.e(6014),r.e(5986),r.e(4632),r.e(2644),r.e(1825),r.e(7831),r.e(8835)]).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(7760),r.e(6014),r.e(5986),r.e(4632),r.e(2562),r.e(5027)]).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(7760),r.e(6014),r.e(5986),r.e(4632),r.e(2215),r.e(6167)]).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}(m.data,n);if(!w)return o().createElement(o().Fragment,null);var g={shareId:e,queryParams:n,objectId:n.videoId?n.videoId:n.clipId?n.clipId:n.interactiveId?n.interactiveId:m.data.objectId,currentUser:y.data,playNext:n.playNext};return l(v.C.StudentExperience)&&"activityStatus"in m.data&&(g.activityStatus=m.data.activityStatus),o().createElement(o().Suspense,{fallback:o().createElement(o().Fragment,null)},o().createElement(w,Object.assign({},g)))}}}]);