1"use strict";(self.webpackChunkconsumer_web=self.webpackChunkconsumer_web||[]).push([[560],{38079:function(e,t,i){i.d(t,{Z:function(){return j}});var s=i(74165),a=i(15861),n=i(29439),l=i(72791),o=i(47066),r=i(1288),d=i(38302),c=i(16555),p=i(94948),u=i(85902),v=i(53585),h=i(60364),m=i(97300),g=i(10984),f=i(11687),y=i(54500),C=i(18271),D=i(70599),x=function(){var e=(0,h.I0)();return{useMoreClassesState:function(){return{loading:(0,h.v9)((function(e){return e.moreClasses.loading})),filteredClassSearchData:(0,h.v9)((function(e){return e.filter.filteredClassSearchData})),isAuthenticated:(0,h.v9)((function(e){return""!==e.auth.token})),moreClassesData:(0,h.v9)((function(e){return e.moreClasses.moreClassesData})),moreChannelClassesData:(0,h.v9)((function(e){return e.channels.moreClasses})),moreCollectionClassesData:(0,h.v9)((function(e){return e.moreClasses.moreCollectionListClasses})),categories:(0,h.v9)((function(e){var t;return null===(t=e.onDemand.Metadata)||void 0===t?void 0:t.categories}))}},useMoreClassesDispatch:function(){return{getMoreClasses:function(t,i){e(function(e,t){return function(e,i){i().moreClasses.loading||e({type:g.KAu});var s=y.Zo,a={tenantId:C.name,titleTag:t};D.Z.post(s,a).then((function(t){200===t.status?e({type:g.Gw8,value:t.data}):e({type:g.Gw8,value:null})}))}}(0,i))},getMoreChannelClasses:function(t,i,s,a){e((0,m.nD)(t,i,s,a))},getMoreCollectionClasses:function(t){var i;e((i=t,function(e){e({type:g.Sxz}),(localStorage.getItem("token")?D.Z:f.Z).post(y.Dr,i).then((function(t){t.ok?e({type:g.OzM,collectionTitleListClasses:null===t||void 0===t?void 0:t.data.data}):e({type:g.FLb})}))}))}}}}},L=i(77769),S=i(74054),N=i(57689),I=i(91711),k=i(80184),b=l.memo((function(e){var t,h,m,g=x(),f=g.useMoreClassesState,y=g.useMoreClassesDispatch,D=f(),b=D.loading,j=D.filteredClassSearchData,T=D.isAuthenticated,Z=D.moreClassesData,w=D.moreChannelClassesData,P=D.moreCollectionClassesData,O=D.categories,E=y(),F=E.getMoreClasses,A=E.getMoreChannelClasses,q=E.getMoreCollectionClasses,R=(0,l.useState)(""),M=(0,n.Z)(R,2),B=M[0],U=M[1],W=(0,N.s0)(),V=e.channelTag,H=e.collectionTag,J=e.numberOfTitles,_=e.pageNumber,G=e.forCategory,K=e.forChannel,Y=e.forCollection,z=e.classTag;(0,l.useEffect)((function(){if(e.classId){var t=localStorage.getItem("userId");t&&F(t,e.classId)}}),[e.classId]),(0,l.useEffect)((function(){if(V){var e=localStorage.getItem("userId");e&&A(V,J,_,e)}}),[e.channelTag]),(0,l.useEffect)((function(){if(H){var e=localStorage.getItem("clientId");H&&q({tenantId:e,collectionTag:H})}}),[e.collectionTag]),(0,l.useEffect)((function(){(null===Z||void 0===Z?void 0:Z.length)>0&&U(Z[0].classCategoryId)}),[Z]);var Q,X=function(){var e=(0,a.Z)((0,s.Z)().mark((function e(t){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:W(c.Z.onDemandClassPlayerRoute+t.tag,{state:{selectedItem:t}});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),$=function(e){return Q=null===e||void 0===e?void 0:e.filter((function(e){return e.tag!==z}))};G?Q=Z:K?Q=$(null===w||void 0===w?void 0:w.items):Y&&(Q=$(null===P||void 0===P?void 0:P.collectionItems));var ee=null===w||void 0===w||null===(t=w.channelDetails)||void 0===t?void 0:t.profileImageUrl,te=null===w||void 0===w||null===(h=w.channelDetails)||void 0===h?void 0:h.displayName,ie=null===P||void 0===P?void 0:P.collectionName,se=(null===P||void 0===P?void 0:P.collectionItems)&&(null===P||void 0===P||null===(m=P.collectionItems[0])||void 0===m?void 0:m.imageLink);return e.loading&&G?(0,k.jsx)(L.Z,{}):(0,k.jsx)("div",{className:"",children:Q&&Q.length>0?(0,k.jsxs)("div",{children:[(0,k.jsxs)(r.Z,{container:!0,direction:"row",alignItems:"center",className:"m-b-10 m-more-head m-t-xs-32 makeTextClickable d-flex",onClick:function(){G?W("".concat(c.Z.categories).concat(Z[0].classCategoryId)):K?W("".concat(c.Z.channelDetailView).concat(V)):Y&&W("".concat(c.Z.collectionViewRouteV2).concat(H))},children:[B&&G&&function(e,t){try{var s,a="category"===t?null===(s=O.find((function(t){return t.id==e})))||void 0===s?void 0:s.imageLink:(0,I.gJ)(e,"jpg");return(0,k.jsx)("img",{alt:"more-img",src:a,height:"32",className:"more-img"})}catch(n){return(0,k.jsx)("img",{src:i(63652),className:"more-img",alt:"more-img"})}}(B,"category"),K&&(0,k.jsx)("img",{alt:"more-channel-img",src:ee,height:"32",className:"more-img"}),Y&&(0,k.jsx)("img",{alt:"more-channel-img",src:se,height:"32",className:"more-img"}),(0,k.jsxs)(r.Z,{item:!0,className:"align-left more-heading adjustTitleWidth",children:[G&&(0,k.jsxs)(d.Z,{className:"clear ",children:[(0,o.v)({id:"Player.More"})," ",(0,o.v)({id:"categoryName.".concat(B)})," ",(0,o.v)({id:"footer.classes"}),(0,k.jsx)(S.default,{cls:"more-class-arrow",color:C.primaryColor})]}),K&&(0,k.jsxs)(d.Z,{className:"clear ",children:[(0,o.v)({id:"Player.More"})," from ",te,(0,k.jsx)(S.default,{cls:"more-class-arrow",color:C.primaryColor})]}),Y&&(0,k.jsxs)(d.Z,{className:"clear ",children:[(0,o.v)({id:"Player.More"})," from ",ie,(0,k.jsx)(S.default,{cls:"more-class-arrow",color:C.primaryColor})]})]})]}),(0,k.jsx)(u.Z,{items:function(e){if(e.length>0)return null===e||void 0===e?void 0:e.sort((function(e,t){return new Date(t.scheduleDate)-new Date(e.scheduleDate)}))}(Q),totalItems:v.iF,showLoading:b,classes:"clear cardList",isPageContainer:!1,children:function(t,i){return(0,k.jsx)(p.Z,{cardType:"live-channel-collection",collectionType:"featured",isMoreClassSuggetion:!0,isSearchPageCard:!1,displayDate:t.scheduleDate,trailerLinkWeb:t.trailerLinkWeb,trailerLinkMobile:t.trailerLinkMobile,isSliderWorkout:!0,history:e.history,showFav:!!T,thumbnail:"".concat(t.imageLink),equipmentTypes:t.equipmentTypes,equipmentNames:t.equipmentNames,isFav:t.favourite,title:t.className,duration:t.durationSecond?Math.
1ceil(t.durationSecond/60):55,description:t.classDescription,show:!0,calories:t.calorieBurn,id:t.tag,classCategory:t.classCategory,mediaType:t.mediaType,clicked:function(){return X(t)},level:t.skill,collectionName:e.categoryId,favCallback:function(){!function(e){var t=Q.findIndex((function(t){return t.tag===e}));if(-1!==t&&(Q[t].favourite=!Q[t].favourite),j.length>0){var i=j.findIndex((function(t){return t.classTag===e}));-1!==i&&(j[i].virtualClass.favourite=!j[i].virtualClass.favourite)}}(t.tag)},isUnlocked:t.isUnlocked},t.tag+i)}})]}):(0,k.jsx)("div",{})})})),j=b},86560:function(e,t,i){i.r(t),i.d(t,{default:function(){return Ae}});var s=i(29439),a=i(1413),n=i(15671),l=i(43144),o=i(60136),r=i(27277),d=i(72791),c=(i(59151),i(30512),i(78267)),p=(i(33119),i(26513)),u=i(34867),v=i(72426),h=i.n(v),m=i(47066),g=i(38302),f=i(1288),y=i(16555),C=i(99735),D=i(34059),x=i(24391),L=i(38079),S=i(763),N=i(27985),I=i(53585),k=i(10628),b=i(98732),j=i(80184),T=function(e){var t=e.bgcolor,i=e.level,s=e.parameter,a=i/10*100,n={intensity:{image:(0,j.jsx)(k.default,{}),nameText:"Intensity",level:I.VR[i]},Skill:{image:(0,j.jsx)(b.default,{}),nameText:"SkillLevel",level:I.HW[i]}},l=function(){return"intensity"===s?n.intensity:"skill"===s?n.Skill:void 0},o={height:"100%",width:"".concat(a,"%"),backgroundColor:t,borderRadius:"inherit",textAlign:"right"};return(0,j.jsxs)("div",{className:"d-flex progress-container",children:[(0,j.jsxs)("div",{className:"d-flex",children:[(0,j.jsx)("div",{className:"label-logo",children:l().image}),(0,j.jsx)(g.Z,{Typography:!0,variant:"body1",className:"font-proDisplayBold labelStyles",children:(0,m.v)({id:"filter.".concat(l().nameText)})})]}),(0,j.jsxs)("div",{className:"bar-container",children:[i?(0,j.jsx)(g.Z,{Typography:!0,variant:"body1",className:"levelStyles",children:(0,m.v)({id:"filter.".concat(l().level)})}):null,i?(0,j.jsx)("div",{className:"barContainerStyles",children:(0,j.jsx)("div",{style:o})}):(0,j.jsx)(g.Z,{Typography:!0,variant:"body1",className:"font-proDisplayBold labelStyles",children:"-"})]})]})},Z=i(27472),w=i(72572),P=i(15474),O=i(67583),E=i(91711),F=i(93433),A=i(97874),q=i(5324),R=i(98331),M=i(34053),B=i(18271),U=function(e){var t=e.openDailog,i=e.avgRatingCount,s=e.mobileview,a=e.showRating,n=null===e.avgRating?0:parseFloat(e.avgRating),l=Math.floor(n),o=n?Number.isInteger(n)?0:1:0,r=5-(l+o);return(0,j.jsxs)("div",{className:s?"progress-container rating-container":"progress-container",children:[a&&(0,j.jsxs)("div",{className:s?"d-flex label-logo-container":"d-flex",children:[(0,j.jsx)("div",{className:"label-logo",children:(0,j.jsx)(M.default,{cls:"bnw-star"})}),(0,j.jsx)(g.Z,{Typography:!0,variant:"body1",className:"font-proDisplayBold labelStyles",children:(0,m.v)({id:"RatingsReviews.Rating"})})]}),a&&(0,j.jsxs)("div",{className:s?"makeTextClickable":"makeTextClickable bar-container",onClick:function(){t()},children:[(0,j.jsxs)("div",{className:"d-flex",children:[l?(0,F.Z)(Array(l)).map((function(e){return(0,j.jsx)(A.default,{color:B.primaryColor})})):null,o?(0,F.Z)(Array(o)).map((function(e){return(0,j.jsx)(q.default,{color:B.primaryColor})})):null,r?(0,F.Z)(Array(r)).map((function(e){return(0,j.jsx)(R.default,{color:B.primaryColor})})):null]}),(0,j.jsx)("div",{children:5!==r?(0,j.jsx)(g.Z,{Typography:!0,variant:"body1",className:"levelStyles avg-rating-txt",style:{textAlign:"start"},children:n>1?(0,m.v)({id:"RatingsReviews.RatingFromReview_other",values:{rating:n,count:i}}):(0,m.v)({id:"RatingsReviews.RatingFromReview_one",values:{rating:n,count:i}})}):(0,j.jsx)(g.Z,{Typography:!0,variant:"body1",className:"levelStyles avg-rating-txt",style:{textAlign:"start"},children:(0,m.v)({id:"RatingsReviews.NoRating"})})})]})]})},W=i(67043),V=i(74054),H=i(70948),J=i(78096),_=i(87462),G=i(45987),K=i(28182),Y=i(42953),z=i(94496),Q=d.forwardRef((function(e,t){var i=e.classes,s=e.className,a=(0,G.Z)(e,["classes","className"]),n=d.useContext(z.Z);return d.createElement("div",(0,_.Z)({className:(0,K.Z)(i.root,s,"flex-start"===n.alignItems&&i.alignItemsFlexStart),ref:t},a))})),X=(0,Y.Z)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Q),$=i(85247),ee=d.forwardRef((function(e,t){var i=e.children,s=e.classes,a=e.className,n=e.disableTypography,l=void 0!==n&&n,o=e.inset,r=void 0!==o&&o,c=e.primary,p=e.primaryTypographyProps,u=e.secondary,v=e.secondaryTypographyProps,h=(0,G.Z)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=d.useContext(z.Z).dense,f=null!=c?c:i;null==f||f.type===g.Z||l||(f=d.createElement(g.Z,(0,_.Z)({variant:m?"body2":"body1",className:s.primary,component:"span",display:"block"},p),f));var y=u;return null==y||y.type===g.Z||l||(y=d.createElement(g.Z,(0,_.Z)({variant:"body2",className:s.secondary,color:"textSecondary",display:"block"},v),y)),d.createElement("div",(0,_.Z)({className:(0,K.Z)(s.root,a,m&&s.dense,r&&s.inset,f&&y&&s.multiline),ref:t},h),f,y)})),te=(0,Y.Z)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(ee),ie=d.forwardRef((function(e,t){var i=e.classes,s=e.className,a=(0,G.Z)(e,["classes","className"]);return d.createElement("div",(0,_.Z)({className:(0,K.Z)(i.root,s),ref:t},a))}));ie.muiName="ListItemSecondaryAction";var se=(0,Y.Z)({root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},{name:"MuiListItemSecondaryAction"})(ie),ae=function(e){var t=e.value,i=e.item,a=e.selectedCheckBox,n=e.playListInfo,l=(e.contentId,"checkbox-list-label-".concat(t)),o=null===n||void 0===n?void 0:n.playListIds.findIndex((function(e){return e===i.playlistId})),r=d.useState(o>=0),c=(0,s.Z)(r,2),p=c[0],u=c[1],v=null===i||void 0===i?void 0:i.inPlaylist;return(0,j.jsxs)(J.Z,{role:void 0,dense:!0,button:!0,onClick:function(){if(u((function(){return!p})),!1===p){var e=[i.playlistId].concat((0,F.Z)(n.playListIds));a(e)}else{var t=(0,F.Z)((0,S.filter)(n.playListIds,(function(e){return e!==i.playlistId})));a(t)}},children:[(0,j.jsx)(X,{className:"play-list-icon",children:(0,j.jsx)($.Z,{checked:p,inputProps:{"aria-labelledby":l},className:"play-list-checkbox",edge:"start"})}),(0,j.jsx)(te,{className:"play-list-text",id:l,primary:null===i||void 0===i?void 0:i.title}),v&&(0,j.jsx)(se,{children:(0,j.jsx)("div",{className:"play-list-exist",children:(0,m.v)({id:"PlayList.InPlaylist",defaultMessage:"In playlist"})})})]},t)},ne=i(89526),le=i(52067),oe=i(21076),re=i(43264),de=function(e){var t=e.loading,i=void 0===t||t;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{className:"play-list-subheading",children:(0,j.jsx)(re.Z,{variant:"text",width:"100%",height:50})}),(0,j.jsx)(ne.Z,{variant:"outlined",square:!0,className:"play-list-items",children:(0,j.jsx)(oe.Z,{in:i,style:{transitionDelay:"800ms"},unmountOnExit:!0,children:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(re.Z,{variant:"text",width:"100%",height:50}),(0,j.jsx)(re.Z,{variant:"text",width:"100%",height:50}),(0,j.jsx)(re.Z,{variant:"text",width:"100%",height:50}),(0,j.jsx)(re.Z,{variant:"text",width:"100%",height:50}),(0,j.jsx)(re.Z,{variant:"text",width:"100%",height:50}),(0,j.jsx)(re.Z,{variant:"text",width:"100%",height:50}),(0,j.jsx)(re.Z,{variant:"text",width:"100%",height:50}),(0,j.jsx)(re.Z,{variant:"text",width:"100%",height:50})]})})})]})},ce=function(e){var t=e.playListInfo,i=e.playListItems,s=e.handelShowList,n=e.loading,l=e.selectedCheckBox,o=e.contentId;return(0,d.useEffect)((function(){t.playListIds.length&&t.submitBtnDisable&&s((function(e){return(0,a.Z)((0,a.Z)({},e),{},{submitBtnDisable:!1})}
1)),t.playListIds.length||t.submitBtnDisable||s((function(e){return(0,a.Z)((0,a.Z)({},e),{},{submitBtnDisable:!0})}))}),[t.playListIds]),(0,j.jsx)(j.Fragment,{children:n?(0,j.jsx)(de,{}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{className:"play-list-subheading cursor-pointer","data-testid":"create-playlist-btn",onClick:function(){return s((function(e){return(0,a.Z)((0,a.Z)({},e),{},{showList:!1})}))},children:(0,m.v)({id:"Playlist.CreatePlaylist",defaultMessage:"Create playlist"})}),(0,j.jsx)(ne.Z,{variant:"outlined",square:!0,className:"play-list-items",children:(0,j.jsx)(le.Z,{dense:!0,children:(0,S.map)(i,(function(e,i){return(0,j.jsx)(ae,{contentId:o,playListInfo:t,selectedCheckBox:l,value:i,item:e},i)}))})})]})})},pe=i(81645),ue=i(44442),ve=i(50108),he=function(e){var t,i,s=e.handelShowList,n=e.handelTextBox,l=e.playList,o=(0,E.av)(),r=function(){return s((function(e){return(0,a.Z)((0,a.Z)({},e),{},{showList:!0})}))},c=l.loading,p=l.msg,u=l.list,v=void 0===u?0:u;return(0,d.useEffect)((function(){p===I.yN.msg.created&&r()}),[p]),(0,d.useEffect)((function(){s((function(e){return(0,a.Z)((0,a.Z)({},e),{},{submitBtnDisable:!0})}))}),[]),(0,j.jsxs)("div",{className:c?"play-list-add loading":"play-list-add",children:[v.length?(0,j.jsxs)("div",{onClick:r,className:"play-list-add-subheading",children:[(0,j.jsx)(pe.default,{id:"play-list-add-back-arrow",color:B.primaryColor}),(0,j.jsx)("span",{children:(0,m.v)({id:"focusArea.back"})})]}):null,(0,j.jsxs)("div",{className:v.length?"play-list-items margin-top-31":"play-list-items margin-top-40",children:[(0,j.jsx)("div",{className:"play-list-add-text-container",children:(0,j.jsx)(ue.Z,{onChange:n,inputProps:{maxLength:40},maxLength:"40",className:"play-list-add-text",label:null!==(t=null===o||void 0===o||null===(i=o.Playlists)||void 0===i?void 0:i.EnterName)&&void 0!==t?t:"Enter Name"})}),c&&(0,j.jsx)(ve.Z,{})]})]})};he.defaultProps={handelShowList:function(){},handelTextBox:function(){},playList:{loading:!1,msg:""}};var me=i(22197),ge=function(e){var t,i,n=e.handleClose,l=(0,me.g)(),o=l.playList,r=l.contentId,c=l.createPlayList,u=l.addItemInPlayList,v=l.showList,h=l.fetchPlayList,f=(0,d.useState)({showList:v,submitBtnDisable:!0,playListIds:[]}),y=(0,s.Z)(f,2),C=y[0],x=y[1],L=(0,d.useState)(!1),N=(0,s.Z)(L,2),k=N[0],b=N[1];(0,d.useEffect)((function(){h()}),[]),(0,d.useEffect)((function(){C.showList!==v&&x((function(e){return(0,a.Z)((0,a.Z)({},e),{},{showList:v})}))}),[v]);return null!==C&&void 0!==C&&C.showList&&!o.loading&&(0,S.includes)([I.yN.msg.updated,I.yN.msg.created],o.msg)&&n(),(0,j.jsxs)(D.Z,{open:!0,cancelicon:!0,playList:!0,handleDialogClose:n,dialogId:"play-list-container",title:(0,m.v)({id:"Playlist.AddPlaylist",defaultMessage:"Add to playlist"}),children:[(0,j.jsx)("div",{className:"play-list-main padding-top-22",children:o.loading&&0==(null===o||void 0===o||null===(t=o.list)||void 0===t?void 0:t.length)&&!k||(null===o||void 0===o||null===(i=o.list)||void 0===i?void 0:i.length)>0&&null!==C&&void 0!==C&&C.showList?(0,j.jsx)(ce,{contentId:r,playListInfo:C,selectedCheckBox:function(e){x((function(t){return(0,a.Z)((0,a.Z)({},t),{},{playListIds:e,submitBtnDisable:!e.length})}))},loading:o.loading&&!k,handelShowList:x,playListItems:o.list}):(0,j.jsx)(he,{playList:o,handelTextBox:function(e){e.target.value.length<3?x((function(e){return(0,a.Z)((0,a.Z)({},e),{},{submitBtnDisable:!0})})):x((function(e){return(0,a.Z)((0,a.Z)({},e),{},{submitBtnDisable:!1})}))},handelShowList:x})}),(0,j.jsx)("div",{className:"text-center padding-top-68 ",children:(0,j.jsx)(p.Z,{size:"small",type:"submit",color:"secondary",className:"button btn-default add-playlist-popup-btn",variant:"contained",onClick:function(){if(b(!0),null!==C&&void 0!==C&&C.showList){var e=(0,S.map)(C.playListIds,(function(e){return{playlistId:e,contentId:[r]}})),t=o.list.filter((function(e){return C.playListIds.includes(e.playlistId)})).map((function(e){return e.title}));u(e,t)}else{var i=document.querySelector(".play-list-add .play-list-add-text input");(null===i||void 0===i?void 0:i.value)&&c(null===i||void 0===i?void 0:i.value)}},load:!0,disabled:!!o.loading||C.submitBtnDisable,children:(0,j.jsx)(g.Z,{variant:"h5",children:(0,m.v)({id:"Subscription.Save",defaultMessage:"Save"})})})}),k&&(0,j.jsx)(ve.Z,{})]})},fe=i(98433),ye=i(32552),Ce=(i(75667),null),De=i(18271),xe=function(e){(0,o.Z)(v,e);var t=(0,r.Z)(v);function v(e){var s;return(0,n.Z)(this,v),(s=t.call(this,e)).elapsedTimeLiftstateUp=function(e){s.setState({elapsedTime:e})},s.playPauseLiftstateUp=function(e){s.setState({playerState:e})},s.isEmptyState=function(){return(0,S.isEmpty)(s.props.location.state)},s.trackAndLogClass=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=(0,S.isEmpty)(a)?s.state.selectedItem:a.selectedItem,l=localStorage.getItem("userId"),o=0===i?s.state.elapsedTime:i;if(t){var r=(0,S.isEmpty)(a)?s.state.isClubConnect:a.isClubConnect;s.props.onLogOnDemandTracking(n,l,o,r)}if(e){var d;d=(0,S.isEmpty)(a)?s.state.isLiveStream?9:s.state.isClubConnect?8:7:a.isLiveStream?9:a.isClubConnect?8:7;var c=s.props.intensities,p=0;null!=c&&c.maxWorkPercentage.forEach((function(e){e.intensityLevel===n.intensity&&(p=e.hRmax)}));var u=0,v=s.props.userDetails,m=s.getAge(v.birthDate),g=p/100*(208-.7*m);"male"===v.gender?u=(.6309*g-55.0969+.1988*v.latestMeasurement.TotalWeightKg+.2017*m)/4.184*60*(o/60/60):"female"===v.gender&&(u=(.4472*g-20.4022-.1263*v.latestMeasurement.TotalWeightKg+.074*m)/4.184*60*(o/60/60));var f={classCommitmentTag:null,primaryGoal:0,secondaryGoal:0,skillLevel:n.skill,durationSeconds:o,mood:null,completedDate:h()().format(),tag:n.id?n.id:n.tag,intensityLevel:n.intensity,workoutName:n.title?n.title:n.className,userWorkoutTag:n.id?n.id:n.tag,isTimed:!1,calorieBurn:Math.round(u),exercises:null,durationMinutes:Math.round(o/60),trackingResult:d,imageUrl:n.thumbnail?n.thumbnail:n.imageLink,userId:l,trailerLinkWeb:n.trailerLinkWeb,workoutDescription:n.description?n.description:n.classDescription,creationDate:n.creationDate,keywords:n.keywords?n.keywords.toString():"",classCategories:n.category?n.category[0]:"",level:n.level,mediaType:n.mediaType};s.props.onSubmitWorkoutResult(f)}},s.getAge=function(e){var t=new Date,i=new Date(e),s=t.getFullYear()-i.getFullYear(),a=t.getMonth()-i.getMonth();return(a<0||0===a&&t.getDate()<i.getDate())&&s--,s},s.unfavVideo=function(){var e,t,i=s.props.location.state?s.props.location.state.collectionName:"";s.state.video.fav=!s.state.video.fav;var a=s.state.selectedItem.id?s.state.selectedItem.id:s.state.selectedItem.tag,n=localStorage.getItem("userId");s.props.onsetClassFavourite(a,n,!1),!0===s.state.isThisClassDeepLink?(s.setState({fromFavUnfav:!0}),s.favUnfavDeepLinks(!1)):s.props.onsetClassFavouriteLocal(i,a,!1),"CHANNEL"===(null===(e=s.props.location)||void 0===e||null===(t=e.state)||void 0===t?void 0:t.from)?s.favUnFavoriteChannel(!1):(s.changeFiteredClassesFavStatus(a),s.favUnFavOnDemand(a,!1),s.favUnFavBrowseClasses(a,!1))},s.favUnFavOnDemand=function(e,t){if(s.props.paginatedDataOnDemand&&s.props.paginatedDataOnDemand.length>0){var i=JSON.parse(JSON.stringify(s.props.paginatedDataOnDemand)),a=i.findIndex((function(t){return t.classTag===e}));
1-1!==a&&(i[a].virtualClass.favourite=t,s.props.setPaginatedDataOnDemand(i))}if(null!=s.props.searchedOnDemandClassesObj){var n=JSON.parse(JSON.stringify(s.props.searchedOnDemandClassesObj)),l=n.items.findIndex((function(t){return t.classTag===e}));-1!==l&&(n.items[l].virtualClass.favourite=t,s.props.updateFllOnDemandData(n))}if(0===s.props.tempClassSearchDataOnDemand.length&&s.props.classesSearchDataOnDemand.length>0){var o=JSON.parse(JSON.stringify(s.props.classesSearchDataOnDemand)),r=o.findIndex((function(t){return t.classTag===e}));-1!==r&&(o[r].virtualClass.favourite=t,s.props.setClassesSearchDataOnDemand(o))}else if(s.props.tempClassSearchDataOnDemand.length>0){var d=JSON.parse(JSON.stringify(s.props.tempClassSearchDataOnDemand)),c=d.findIndex((function(t){return t.classTag===e}));-1!==c&&(d[c].virtualClass.favourite=t,s.props.settempClassSearchDataOnDemand(d))}},s.favUnFavBrowseClasses=function(e,t){if(s.props.paginatedData&&s.props.paginatedData.length>0){var i=JSON.parse(JSON.stringify(s.props.paginatedData)),a=i.findIndex((function(t){return t.classTag===e}));-1!==a&&(i[a].virtualClass.favourite=t,s.props.setPaginatedData(i))}if(null!=s.props.searchedBrowseClassesClassesObj){var n=JSON.parse(JSON.stringify(s.props.searchedBrowseClassesClassesObj)),l=n.items.findIndex((function(t){return t.classTag===e}));-1!==l&&(n.items[l].virtualClass.favourite=t,s.props.updateBrowseClasses(n))}if(0===s.props.tempClassSearchData.length&&s.props.classesSearchData.length>0){var o=JSON.parse(JSON.stringify(s.props.classesSearchData)),r=o.findIndex((function(t){return t.classTag===e}));-1!==r&&(o[r].virtualClass.favourite=t,s.props.setClassesSearchData(o))}else if(s.props.tempClassSearchData.length>0){var d=JSON.parse(JSON.stringify(s.props.tempClassSearchData)),c=d.findIndex((function(t){return t.classTag===e}));-1!==c&&(d[c].virtualClass.favourite=t,s.props.settempClassSearchData(d))}},s.favVideo=function(){var e,t,i=s.props.location.state?s.props.location.state.collectionName:"";s.state.video.fav=!s.state.video.fav;var a=s.state.selectedItem.id?s.state.selectedItem.id:s.state.selectedItem.tag,n=localStorage.getItem("userId");s.props.onsetClassFavourite(a,n,!0),!0===s.state.isThisClassDeepLink?(s.setState({fromFavUnfav:!0}),s.favUnfavDeepLinks(!0)):s.props.onsetClassFavouriteLocal(i,a,!0),"CHANNEL"===(null===(e=s.props.location)||void 0===e||null===(t=e.state)||void 0===t?void 0:t.from)?s.favUnFavoriteChannel(!0):(s.changeFiteredClassesFavStatus(a),s.favUnFavOnDemand(a,!0),s.favUnFavBrowseClasses(a,!0))},s.changeFiteredClassesFavStatus=function(e){if(s.props.filteredClassSearchData.length>0){var t=s.props.filteredClassSearchData.findIndex((function(t){return t.classTag===e}));-1!==t&&(s.props.filteredClassSearchData[t].virtualClass.favourite=!s.props.filteredClassSearchData[t].virtualClass.favourite)}},s.favUnfavDeepLinks=function(e){var t=s.props.collection[0];(0,x.Z)(t);t.tag,t.className,t.imageLink,t.classDescription,t.calorieBurn,t.durationSecond,t.alternateLink,t.intensity,t.creationDate,t.providerID,t.provider,t.classCategory},s.okButtonClick=function(){s.setState({showDialog:!1}),null!=De.UpgradeRedirect?(window.open(De.UpgradeRedirect,"_blank"),s.props.navigate(-1)):s.props.navigate(-1)},s.ViewChannel=function(){var e,t,i,a=s.state.isThisClassDeepLink?s.props.channelDetails:s.props.location.state.selectedItem,n=null!==(e=null===(t=s.props)||void 0===t||null===(i=t.channelDetails)||void 0===i?void 0:i.tag)&&void 0!==e?e:null===a||void 0===a?void 0:a.tag;s.props.navigate(y.Z.channelDetailView+n)},s.getEquipMentNames=function(e){var t=s.props.intl;if(1===e.length)return e=e[0],t.formatMessage({id:"equipment.".concat(s.getEquipmentTag(e))});var i=e,a=e,n="";if("string"===typeof e&&e.includes(",")&&(a=e.split(",")),a.length>1){for(var l=0;l<a.length;l++)n+=t.formatMessage({id:"equipment.".concat(s.getEquipmentTag(a[l].trim())),defaultMessage:"".concat(a[l].trim())})+", ";i=n.substring(0,n.length-2)}return i},s.share=function(){if(s.props.dynamicShortLink)s.setState({dynamicLinkDetail
1s:{shareUrl:s.props.dynamicShortLink,title:s.state.video.title},showHideShareView:!0});else{var e=s.state.video,t=I.rF.CLASSES,a={classId:s.state.classId,title:e.title,description:e.description,imgLink:e.thumbnail},n=i(18271);s.props.getShortDeepLink(t,a,n)}},s.handelPlayListDialog=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];s.setState({showPlayList:e})},s.state={elapsedTime:0,videoPlaying:!1,loading:!0,video:{},finished:!1,showCountdown:!1,VideoError:!1,classId:"",showDialog:!1,isClubConnect:!1,isLiveStream:!1,isDeepLinkLoading:!1,isThisClassDeepLink:!1,eventId:0,equipmentNames:null,fromDeepLink:!0,showPlayList:!1,openRatingDailog:!1,fromFavUnfav:!1,playerState:null},s}return(0,l.Z)(v,[{key:"componentWillUnmount",value:function(){this.props.resetUserCreatedFlag(),this.props.resetStreamingLink("class_detail"),this.props.resetShortDeepLink()}},{key:"componentDidMount",value:function(){var e,t=this;if(window.scrollTo(0,0),null!==(e=this.props.location)&&void 0!==e&&e.state?this.setState({fromDeepLink:!1}):this.setState({fromDeepLink:!0}),!0===this.props.isAuthenticated){var i;this.props.isNewUser&&void 0!==(null===(i=this.state.video)||void 0===i?void 0:i.url)&&this.setState({loading:!1,videoPlaying:!0});var n=0,l=window.location.pathname.concat(this.props.location.search),o=l.indexOf("?");if(o>0){var r=l.substr(o+1);if(r.indexOf("event=")>-1)n=r.split("=")[1],this.setState({eventId:n})}if(null!==this.props.location.state&&void 0!==this.props.location.state){var d,c,p;this.setState({isLiveStream:this.props.location.state.isLiveStream});var u="",v="",h="";if("CHANNEL"===this.props.location.state.from||"COLLECTION"===this.props.location.state.from){var m,g,f,y,C,D,x,L,S,N,I,k,b,j,T,Z,w,P,O,E,F,A;if(1===(null===(m=this.props.location.state.selectedItem)||void 0===m||null===(g=m.title[0])||void 0===g||null===(f=g.equipmentNames)||void 0===f?void 0:f.length))this.setState({equipmentNames:null===(y=this.props.location.state.selectedItem)||void 0===y||null===(C=y.title[0])||void 0===C?void 0:C.equipmentNames});else if(void 0!==(null===(Z=this.props.location.state.selectedItem)||void 0===Z?void 0:Z.equipmentNames)&&"string"===typeof(null===(w=this.props.location.state.selectedItem)||void 0===w?void 0:w.equipmentNames)^1===(null===(P=this.props.location.state.selectedItem.equipmentNames)||void 0===P?void 0:P.length))this.setState({equipmentNames:null===(O=this.props.location.state.selectedItem.title[0])||void 0===O?void 0:O.equipmentNames});else this.setState({equipmentNames:null===(E=this.props.location.state.selectedItem.title[0])||void 0===E||null===(F=E.equipmentNames)||void 0===F?void 0:F.join(", ")});if(null==(u=null===(D=this.props.location.state)||void 0===D||null===(x=D.selectedItem)||void 0===x||null===(L=x.displayName)||void 0===L?void 0:L.invariantText))u=null===(A=this.props.location.state)||void 0===A?void 0:A.selectedItem.displayName;null==(v=null===(S=this.props.location.state)||void 0===S||null===(N=S.selectedItem)||void 0===N||null===(I=N.description)||void 0===I?void 0:I.invariantText)&&(v=this.props.location.state.selectedItem.description),h=null===(k=this.props.location.state)||void 0===k||null===(b=k.selectedItem)||void 0===b?void 0:b.profileImageUrl,Ce=null===(j=this.props.location.state)||void 0===j||null===(T=j.selectedItem)||void 0===T?void 0:T.title[0]}else{var q,R,M,B,U,W,V;if(null!==(q=this.props.location.state)&&void 0!==q&&null!==(R=q.selectedItem)&&void 0!==R&&R.equipmentNames)if("string"===typeof(null===(M=this.props.location.state.selectedItem)||void 0===M?void 0:M.equipmentNames)^1===(null===(B=this.props.location.state.selectedItem.equipmentNames)||void 0===B?void 0:B.length))this.setState({equipmentNames:null===(U=this.props.location.state.selectedItem)||void 0===U?void 0:U.equipmentNames});else this.setState({equipmentNames:null===(W=this.props.location.state.selectedItem)||void 0===W||null===(V=W.equipmentNames)||void 0===V?void 0:V.join(", ")});Ce=this.props.location.state.selectedItem}Ce&&!Ce.duration&&Ce.durationSecond&&(Ce.duration=Math.ceil(Ce.durationSecond/60));var H={},J={};if(null!=Ce){var _,G,K,Y;if("CHANNEL"!==this.props.location.state.from?void 0!==Ce.id:void 0!==Ce.tag)if("CHANNEL"!==this.props.location.state.from)H={creationDate:Ce.creationDate?Ce.creationDate:"",scheduleDate:Ce.scheduleDate?Ce.scheduleDate:"",trailerLinkWeb:Ce.trailerLinkWeb,description:Ce.classDescription?Ce.classDescription:Ce.description,title:Ce.title,thumbnail:Ce.thumbnail,calorieBurn:Ce.calories,duration:Ce.durationSecond?Math.
1ceil(Ce.durationSecond/60):55,altLink:Ce.alternateLink,fav:Ce.fav?Ce.fav:Ce.isFav,level:Ce.level},J={duration:Ce.duration,id:Ce.id?Ce.id:Ce.tag,title:Ce.title,newProviderId:Ce.newProviderId,provider_id:Ce.provider_id,category:Ce.classCategory?Ce.classCategory:Ce.category};else H={creationDate:Ce.creationDate?Ce.creationDate:"",scheduleDate:Ce.scheduleDate?Ce.scheduleDate:"",trailerLinkWeb:Ce.trailerLinkWeb,description:Ce.classDescription?Ce.classDescription:Ce.description,className:Ce.className,thumbnail:Ce.imageLink,calorieBurn:Ce.calories,duration:Ce.durationSecond?Math.ceil(Ce.durationSecond/60):55,altLink:Ce.alternateLink,fav:Ce.favourite?Ce.favourite:Ce.isFav,level:Ce.level,title:Ce.className,channelName:"CHANNEL"===this.props.location.state.from?u:"",channelImage:"CHANNEL"===this.props.location.state.from?h:"",channelDescription:"CHANNEL"===this.props.location.state.from?v:"",instructorName:Ce.instructor?Ce.instructor:"",category:Ce.classCategory?Ce.classCategory:Ce.category,focusArea:Ce.focusArea?Ce.focusArea:"",intensity:null===(_=Ce)||void 0===_?void 0:_.intensity},J={duration:Math.ceil(Ce.durationSecond/60),id:(Ce.tag,Ce.tag),title:Ce.className,newProviderId:Ce.providerID,provider_id:Ce.provider,category:Ce.classCategory?Ce.classCategory:Ce.category,channelId:Ce.channelId};else H={creationDate:(Ce.creationDate,Ce.creationDate),scheduleDate:Ce.scheduleDate?Ce.scheduleDate:"",trailerLinkWeb:Ce.trailerLinkWeb,description:Ce.classDescription?Ce.classDescription:Ce.description,title:Ce.className,thumbnail:Ce.imageLink,calorieBurn:Ce.calorieBurn,duration:Ce.durationSecond?Math.ceil(Ce.durationSecond/60):55,altLink:Ce.alternateLink,fav:Ce.favourite,level:Ce.level,channelName:"CHANNEL"===this.props.location.state.from?u:"",channelImage:"CHANNEL"===this.props.location.state.from?h:"",channelDescription:"CHANNEL"===this.props.location.state.from?v:"",instructorName:Ce.instructor?Ce.instructor:"",category:null===(G=Ce)||void 0===G?void 0:G.classCategory,focusArea:null===(K=Ce)||void 0===K?void 0:K.focusArea,intensity:null===(Y=Ce)||void 0===Y?void 0:Y.intensity},J={duration:Math.ceil(Ce.durationSecond/60),id:Ce.tag?Ce.tag:Ce.id,title:Ce.className?Ce.className:Ce.title,newProviderId:Ce.providerID,provider_id:Ce.provider,category:Ce.classCategory};this.props.location.state.isClubConnect&&(J=(0,a.Z)((0,a.Z)({},J),{},{eventId:n}))}this.props.sendClassDetailsToLocalytics(J);var z=window.location.pathname.split("/");"connect"===(0,s.Z)(z,2)[1]&&"vimeo"===De.connectSource&&(H.url=this.props.location.state.selectedItem.url),this.props.location.state.isClubConnect?(H=(0,a.Z)({},H),this.props.checkConnectClassClicked(!0),this.setState({selectedItem:Ce,video:H,isClubConnect:!0})):(this.props.checkConnectClassClicked(!1),this.setState({selectedItem:Ce,video:H})),this.setState({classId:null!==(d=null===(c=Ce)||void 0===c?void 0:c.tag)&&void 0!==d?d:null===(p=Ce)||void 0===p?void 0:p.id})}else{this.setState({isDeepLinkLoading:!0,isThisClassDeepLink:!0});var Q=window.location.pathname.split("/"),X=Q[Q.length-1];if(this.setState({classId:X}),"connect"===Q[1]&&"vimeo"===De.connectSource)this.setState({isClubConnect:!0}),this.props.FetchClubLiveConnect(X);else{var $=localStorage.getItem("userId");this.props.fetchDeepLinkClass(X,$)}}}else{var ee,te=window.location.pathname;if((null===(ee=this.props.location)||void 0===ee?void 0:ee.state)||this.props.storeDeepLinkDataToStore(te),"SIGNIN"===this.props.navigatedFromWhichScreen)return this.props.navigate(-1),void this.props.setNavigatedFromWhichScreen("");this.props.setNavigatedFromWhichScreen("");this.props.redirectForSSO((function(){var e,i;t.props&&"function"===typeof t.props.navigate&&(null===(e=t.props)||void 0===e||e.navigate("/signin",{state:te}),null===(i=t.props)||void 0===i||i.setNavigatedFromWhichScreen("SIGNIN"))}))}}},{key:"componentDidUpdate",value:function(e,t){var i,n=this;if(this.props.isAuthenticated!==e.isAuthenticated&&(this.props.isAuthenticated||this.props.navigate("/signin"),De.msalSsoSupport&&!0===this.props.isAuthenticated))if(this.props.deepLinkPayload){this.setState({isDeepLinkLoading:!0,isThisClassDeepLink:!0});var l=window.location.pathname.split("/");this.setState({classId:l[2]}),"connect"===l[1]?(this.setState({isClubConnect:!0}),this.props.FetchClubLiveConnect(l[2])):this.props.fetchDeepLinkClass(l[2])}else this.props.navigate(-1);if(e.classData!==this.props.classData&&this.setState((function(e){var t;return{video:(0,a.Z)((0,a.Z)({},e.video),{},{fav:null===(t=n.props.classData)||void 0===t?void 0:t.favourite}),playerState:null}})),e.collection!==this.props.collection||(null===(i=e.location)||void 0===i?void 0:i.pathname)!==window.location.pathname){var o;if(null!=this.props.collection||null!=(null===(o=this.props.location)||void 0===o?void 0:o.state.selectedItem)){var r,d,c,p,u,v,h,m,g,f,C,D;(0,x.Z)(this.props.collection);var L,S=null!==(r=null===(d=this.props.location.state)||void 0===d?void 0:d.selectedItem.tag)&&void 0!==r?r:null===(c=this.props.location.state)||void 0===c||null===(p=c.selectedItem)||void 0===p?void 0:p.id;if(this.state.fromDeepLink&&!this.state.fromFavUnfav?(this.props.fetchPlayBackLink(null!==S&&void 0!==S?S:this.state.classId,this.isEmptyState(),this.props.navigate),this.props.fetchDeeplinkedClassForChannel(null!==S&&void 0!==S?S:this.state.classId,this.isEmptyState())):S&&(this.props.fetchPlayBackLink(S,this.isEmptyState(),this.props.navigate),this.props.fetchDeeplinkedClassForChannel(null!==S&&void 0!==S?S:this.state.classId,this.isEmptyState())),null!==(u=Ce=this.props.location&&this.props.location.state&&this.props.location.state.selectedItem?"COLLECTION"===this.props.location.state.from||this.props.location.state.selectedItem.title&&Array.isArray(this.props.location.state.selectedItem.title)?this.props.location.state.selectedItem.title[0]:this.props.location.state.selectedItem:this.props.collection[0])&&void 0!==u&&u.equipmentNames&&1===(null===(v=Ce)||void 0===v||null===(h=v.equipmentNames)||void 0===h?void 0:h.length))this.setState({equipmentNames:null===(L=Ce)||void 0===L?void 0:L.equipmentNames});else if(null!==(m=Ce)&&void 0!==m&&m.equipmentNames&&(null===(g=Ce)||void 0===g||null===(f=g.equipmentNames)||void 0===f?void 0:f.length)>1){var N,I;this.setState({equipmentNames:null===(N=Ce)||void 0===N||null===(I=N.equipmentNames)||void 0===I?void 0:I.join(", ")})}var k=this.props.collection?this.props.collection[0].channel:"CHANNEL"===(null===(C=this.props.location.state)||void 0===C?void 0:C.from)&&this.props.location.state.selectedItem,b=this.state.video;
1if(null!=Ce&&!1!==Ce){var j;if(b={url:this.props.StreamingVideoLink,id:Ce.tag?Ce.tag:Ce.id,title:Ce.className?Ce.className:Ce.title,thumbnail:Ce.imageLink?Ce.imageLink:Ce.thumbnail,description:Ce.classDescription?Ce.classDescription:Ce.description,calorieBurn:Ce.calorieBurn,duration:Ce.durationSecond?Math.ceil(Ce.durationSecond/60):55,altLink:Ce.alternateLink?Ce.alternateLink:Ce.altLink,fav:Ce.favourite?Ce.favourite:Ce.fav,level:Ce.level,creationDate:Ce.creationDate,scheduleDate:Ce.scheduleDate?Ce.scheduleDate:"",newProviderId:Ce.providerID?Ce.providerID:Ce.newProviderId,provider_id:Ce.provider?Ce.provider:Ce.provider_id,category:Ce.classCategory?Ce.classCategory:Ce.category,channelName:k&&k.name,channelImage:k&&k.profileImageUrl,channelDescription:k&&k.description,instructorName:Ce.instructor?Ce.instructor:"",focusArea:Ce.focusArea?Ce.focusArea:"",intensity:null!==(j=Ce.intensity)&&void 0!==j?j:Ce.intensity},this.state.isClubConnect){this.props.checkConnectClassClicked(!0);var T=(0,a.Z)({},b);this.setState({video:T,selectedItem:Ce})}else this.setState({video:b,selectedItem:Ce});this.props.sendClassDetailsToLocalytics((0,a.Z)((0,a.Z)({},b),{},{eventId:this.state.eventId}))}else this.props.navigate(y.Z.homePage);t.videoPlaying!==this.state.videoPlaying&&window.scrollTo(0,0),this.props.isNewUser&&void 0!==(null===(D=this.state.video)||void 0===D?void 0:D.url)?this.setState({isDeepLinkLoading:!1,loading:!1,videoPlaying:!0}):this.setState({isDeepLinkLoading:!1}),De.msalSsoSupport&&!0===this.props.isAuthenticated&&this.props.deepLinkPayload&&this.setState({isDeepLinkLoading:!1,loading:!1,videoPlaying:!0})}else{var Z;if(this.props&&"function"===typeof this.props.navigate)null===(Z=this.props)||void 0===Z||Z.navigate(y.Z.homePage)}if(this.state.isThisClassDeepLink&&Ce&&!this.props.StreamingVideoLink&&!this.state.fromDeepLink){var w=Ce.tag?Ce.tag:Ce.id;this.props.fetchPlayBackLink(w,this.isEmptyState(),this.props.navigate),this.props.fetchDeeplinkedClassForChannel(null!==w&&void 0!==w?w:this.state.classId,this.isEmptyState())}}if(this.props.isClassesLoading!==this.state.loading)if(this.state.isClubConnect)if(void 0===this.state.video.url&&void 0===this.props.StreamingVideoLink&&""!==this.props.StreamingVideoLink){var P=this.state.selectedItem.tag?this.state.selectedItem.tag:this.state.selectedItem.id;this.props.fetchPlayBackLink(P,this.isEmptyState(),this.props.navigate),this.props.fetchDeeplinkedClassForChannel(null!==P&&void 0!==P?P:this.state.classId,this.isEmptyState())}else setTimeout((function(){n.setState({videoPlaying:!0,loading:!1})}));else if(this.state.selectedItem&&!this.state.fromDeepLink&&void 0===this.props.StreamingVideoLink&&""!==this.props.StreamingVideoLink){var O=this.state.selectedItem.tag?this.state.selectedItem.tag:this.state.selectedItem.id;this.props.fetchPlayBackLink(O,this.isEmptyState(),this.props.navigate),this.props.fetchDeeplinkedClassForChannel(null!==O&&void 0!==O?O:this.state.classId,this.isEmptyState())}else if(this.props.StreamingVideoLink&&"vimeo"===De.connectSource&&this.state.loading)this.setState({loading:!1,videoPlaying:!0,video:(0,a.Z)((0,a.Z)({},this.state.video),{},{url:this.props.StreamingVideoLink})});else if("wexer"===De.connectSource&&!1===this.state.fromDeepLink&&void 0===this.state.video.url){var E,F,A,q,R=null!==(E=null===(F=this.props.location.state)||void 0===F?void 0:F.selectedItem.tag)&&void 0!==E?E:null===(A=this.props.location.state)||void 0===A||null===(q=A.selectedItem)||void 0===q?void 0:q.id;this.props.fetchPlayBackLink(R,this.isEmptyState(),this.props.navigate),this.props.fetchDeeplinkedClassForChannel(null!==R&&void 0!==R?R:this.state.classId,this.isEmptyState())}if(e.StreamingVideoLink!==this.props.StreamingVideoLink&&this.props.StreamingVideoLink){var M,B,U,W,V,H=window.location.pathname.split("/"),J=(0,s.Z)(H,2)[1];this.setState({videoPlaying:!0,loading:!1,video:(0,a.Z)((0,a.Z)({},this.state.video),{},{url:"connect"===J&&"vimeo"===De.connectSource&&null!==(M=null===(B=this.props)||void 0===B||null===(U=B.location)||void 0===U||null===(W=U.state)||void 0===W||null===(V=W.selectedItem)||void 0===V?void 0:V.url)&&void 0!==M?M:this.props.StreamingVideoLink})})}e.dynamicShortLink!==this.props.dynamicShortLink&&null!=this.props.dynamicShortLink&&(this.setState({loading:!1}
1),this.setState({dynamicLinkDetails:{shareUrl:this.props.dynamicShortLink,title:this.state.video.title},showHideShareView:!0}))}},{key:"favUnFavoriteChannel",value:function(e){this.props.location&&this.props.location.state&&this.props.location.state.selectedItem&&this.props.location.state.selectedItem.title&&(this.props.location.state.selectedItem.title[0].favourite=e)}},{key:"getEquipmentTag",value:function(e){if(this.props.metadata&&this.props.metadata.equipmentList){var t=this.props.metadata.equipmentList,i=t.findIndex((function(t){return t.name===e}));if(-1!==i)return t[i].typeTag}}},{key:"focusArea",value:function(e){for(var t=this.props.intl,i=function(i){return t.formatMessage({id:"focusArea.".concat(e[i])})},s=i(0),a=1;a<e.length;a++)s=s+", "+i(a);return s}},{key:"render",value:function(){var e,t,i,s,a,n,l,o,r,v,h,x,S,k,b,F,A,q,R,M,B,J,_,G,K,Y,z,Q,X,$,ee,te,ie,se,ae=this,ne=this.props.entitlement,le=this.props.metadataEntitlement,oe=this.state.video,re=this.props.classData,de=null!==(e=null===(t=this.props.location)||void 0===t||null===(i=t.state)||void 0===i?void 0:i.selectedItem.tag)&&void 0!==e?e:null===(s=this.props.location)||void 0===s||null===(a=s.state)||void 0===a||null===(n=a.selectedItem)||void 0===n?void 0:n.id,ce=this.props.showChannelDetail,pe=(null===(l=this.props.location)||void 0===l||l.state,this.state.video&&this.state.video.instructorName?this.state.video.instructorName:null!==(o=null===(r=this.state)||void 0===r||null===(v=r.selectedItem)||void 0===v?void 0:v.instructor)&&void 0!==o?o:null===re||void 0===re?void 0:re.instructor),ue=function(){var e,t,i,s,a,n,l,o,r=null===(e=ae.state)||void 0===e||null===(t=e.selectedItem)||void 0===t?void 0:t.classCategories,d=null===(s=(null===(i=ae.props.metadata)||void 0===i?void 0:i.categories.filter((function(e){return e.name===r})))[0])||void 0===s?void 0:s.id;return null!==(a=null!==(n=ae.props.categoryID)&&void 0!==n?n:null===(l=ae.props)||void 0===l||null===(o=l.classData)||void 0===o?void 0:o.classCategoryId)&&void 0!==a?a:d},ve=function(){ae.setState({openRatingDailog:!0})},he=function(){ae.setState({openRatingDailog:!1}),ae.props.resetRatingModalData()},me=null===(h=this.props)||void 0===h?void 0:h.showNotification(),Ce=this.props.severity,xe=null===(x=this.props.playList)||void 0===x?void 0:x.titles,Le=null===(S=this.props.playList)||void 0===S?void 0:S.msg;return(0,j.jsxs)("div",{className:"page-container","data-testid":ne.collection&&ne.category&&ne.channel&&ne.share?"player-entitlement-id":"",children:[(0,j.jsxs)("div",{children:[this.state.showDialog?(0,j.jsx)(D.Z,{open:!0,title:(0,m.v)({id:"Subscription.UpgradeMembership"}),heading:(0,m.v)({id:"Subscription.UpgradeMessage"}),children:(0,j.jsx)("div",{className:"text-center padding16",children:(0,j.jsx)(p.Z,{size:"small",type:"submit",color:"secondary",className:"button btn-default",variant:"contained",onClick:this.okButtonClick,style:{marginTop:"60px"},children:(0,j.jsx)(g.Z,{variant:"h5",children:(0,m.v)({id:"Subscription.Ok"})})})})}):null,me&&(0,j.jsx)(fe.P,{severity:Ce,text:Le,show:me,titles:xe}),this.state.showPlayList&&(0,j.jsx)(ge,{handleClose:function(){return ae.handelPlayListDialog(!1)}}),!0===this.state.loading||!0===this.props.loading||!0===this.state.isDeepLinkLoading?(0,j.jsx)(w.Z,{}):(0,j.jsxs)(d.Fragment,{children:[(0,j.jsxs)("div",{className:"vido-metadata-row ",children:[(0,j.jsx)("p",{className:"customh1 m-t-xs-5",children:(0,m.v)({id:"".concat(oe.title)})}),(0,j.jsxs)("div",{className:"meta-desc",children:[(0,j.jsx)("div",{className:"bottomTimer",children:(0,j.jsxs)(f.Z,{container:!0,justifyContent:"flex-start",id:"meta-data",direction:"row",children:[pe&&(0,j.jsx)(f.Z,{item:!0,children:(0,j.jsxs)("p",{className:"featured-iconText-Player",children:[pe," "]})}),(0,j.jsx)(f.Z,{item:!0,children:(0,j.jsxs)("p",{className:"featured-iconText-Player",children:[this.state.video&&0!==this.state.video.duration?this.state.video.duration:"1"," ",this.state.video&&this.state.video.duration>1?(0,m.v)({id:"Player.Mins"}):(0,m.v)({id:"Player.min"})]})}),le.skills&&(null!==(k=null===this||void 0===this||null===(b=this.state)||void 0===b||null===(F=b.video)||void 0===F?void 0:F.level)&&void 0!==k?k:null===re||void 0===re?void 0:re.level)&&(0,j.jsx)(f.Z,{item:!0,children:(0,j.jsx)("p",{className:"featured-iconText-Player",children:(0,m.v)({id:"filter.".concat(null!==(A=this.state.video.level)&&void 0!==A?A:null===re||void 0===re?void 0:re.level)})})})]})}),(!this.state.isClubConnect||this.state.isClubConnect&&"wexer"===De.connectSource)&&(0,j.jsxs)("div",{className:"text-center videoFavUnfav d-flex share-playlist-fav-iconholder play-list-margin-5",style:{alignItems:"flex-start"},children:[(0,j.jsx)("div",{className:"sharePadding16Right",children:(0,j.jsx)("span",{className:"makeTextClickable",onClick:this.handelPlayListDialog,children:(0,j.jsx)(H.PlayListIcon,{id:"play-list-icon",color:De.primaryColor})})}),ne.share&&(0,j.jsx)("div",{className:"sharePadding16Right",children:(0,j.jsx)("span",{className:"makeTextClickable",onClick:this.share,children:(0,j.jsx)(O.ShareIcon,{id:"share-icon-1",color:De.primaryColor})})}),this.state.video.fav&&(0,j.jsx)(c.CSSTransition,{classNames:"slide",timeout:10,mountOnEnter:!0,unmountOnExit:!0,in:this.state.videoPlaying,onClick:this.unfavVideo,children:(0,j.jsx)("span",{className:"makeTextClickable",children:(0,j.jsx)(P.Fav,{id:"fav-1",color:De.primaryColor})})}),!this.state.video.fav&&(0,j.jsx)(c.CSSTransition,{classNames:"slide",timeout:10,mountOnEnter:!0,unmountOnExit:!0,in:this.state.videoPlaying,onClick:this.favVideo,children:(0,j.jsxs)("span",{className:"makeTextClickable",children:[" ",(0,j.jsx)(Z.Unfav,{id:"unfav-2",color:De.primaryColor})]})})]})]})]}),!1===this.state.videoPlaying?(0,j.jsx)(d.Fragment,{children:(0,j.jsx)("div",{className:"p-t-player p-t-xs-16",children:(0,j.jsx)("div",{className:"",style:{padding:"0px !important",outline:"none !important",borderBlock:"none !important",borderInline:"none !important",maxHeight:"354px !important"},item:!0,children:(0,j.jsx)("div",{style:{maxWidth:"100%",marginTop:"0px",padding:"0px !important",outline:"none !important",borderBlock:"none !important",borderInline:"none !important"},children:(this.props.location.state,(0,j.jsx)("img",{className:"no-video-image",src:(0,E.oC)(oe.thumbnail,"width",(0,E.bR)("playerDetail").playerWidth),alt:"",onError:function(e){e.target.onerror=null,ae.props.navigate(y.Z.homePage)}}
1))})})})}):(0,j.jsxs)("div",{className:"p-t-player playlistmobile p-t-xs-16 info-container m-b-info-cont player-mobile-margin player-tab-container-row",children:[(0,j.jsxs)("div",{children:[this.state.videoPlaying&&(0,j.jsx)(C.Z,{classStarted:this.props.classStarted,classClosed:this.props.classClosed,hideFullScreen:2===(null===(q=this.props.classData)||void 0===q?void 0:q.mediaType),paused:!0,elapsedTimeLiftstateUp:this.elapsedTimeLiftstateUp,playPauseLiftstateUp:this.playPauseLiftstateUp,trackAndLogClass:this.trackAndLogClass,props:this.state,videoProps:this.state.video,navigate:this.props.navigate,location:this.props.location,setSelectedThumbImage:function(e){},selectedThumbVideo:function(e,t){}}),(null===(R=this.props.featureEntitlement)||void 0===R?void 0:R.fitRadioEnabled)&&(null===re||void 0===re?void 0:re.isTaPContent)&&(0,j.jsx)(ye.Z,{isVideoPlaying:this.state.playerState,classId:null===(M=this.props.classData)||void 0===M?void 0:M.tag}),(0,j.jsx)("div",{className:"new-video-metadata heading-meta-data",children:(0,j.jsx)("div",{children:(0,j.jsx)(g.Z,{className:"text-gray m-b-5 rich-desc",variant:"h6",children:function(){try{var e=null!==re&&void 0!==re&&re.classDescription?re.classDescription:null;return(0,u.ZP)(e)}catch(t){return" "}}()})})})]}),(0,j.jsxs)("div",{className:"class-side-info rating-margin",children:[(0,j.jsx)(U,{openDailog:function(){ve(),ae.props.fetchUserRating(null===re||void 0===re?void 0:re.tag)},mobileview:!0,avgRating:null===re||void 0===re?void 0:re.averageRating,avgRatingCount:null===re||void 0===re?void 0:re.averageRatingCount,showRating:this.props.featureEntitlement.ratingEnabled}),(0,j.jsxs)("div",{className:"side-info-container",children:[(null===le||void 0===le?void 0:le.equipment)&&!this.state.fromDeepLink&&(0,j.jsxs)(g.Z,{Typography:!0,variant:"body1",className:"font-proDisplayBold",children:[(0,m.v)({id:"Player.WhatYouNeed"}),(0,j.jsxs)("span",{className:"value",children:[" ",function(){try{var e,t,i=ae.getEquipMentNames(null!==(e=ae.state.equipmentNames)&&void 0!==e?e:null===re||void 0===re?void 0:re.equipmentNames),s=null===/equipment.undefined/g.exec(i);return null!==(null!==(t=ae.state.equipmentNames)&&void 0!==t?t:null===re||void 0===re?void 0:re.equipmentNames)&&s?i:(0,m.v)({id:"Player.NoEquipmentNeeded"})}catch(a){return(0,m.v)({id:"Player.NoEquipmentNeeded"})}}()]})]}),(null===le||void 0===le?void 0:le.equipment)&&re&&this.state.fromDeepLink&&(0,j.jsxs)(g.Z,{Typography:!0,variant:"body1",className:"font-proDisplayBold",children:[(0,m.v)({id:"Player.WhatYouNeed"}),(0,j.jsxs)("span",{className:"value",children:[" ",void 0!==re.equipmentNames&&null!==re.equipmentNames&&(null===(B=re.equipmentNames)||void 0===B?void 0:B.length)>0?this.getEquipMentNames(null===re||void 0===re?void 0:re.equipmentNames):(0,m.v)({id:"Player.NoEquipmentNeeded"})]})]}),ne.category&&(0,j.jsxs)(g.Z,{Typography:!0,variant:"body1",className:"font-proDisplayBold makeTextClickable",children:[(0,m.v)({id:"Player.Category"}),(0,j.jsxs)("span",{className:"value",onClick:function(){!ae.props.moreClassesLoading&&ue()&&ae.props.navigate(y.Z.categories+"".concat(ue()))},children:[" ",null!==(J=null!==(_=oe.category)&&void 0!==_?_:null===re||void 0===re?void 0:re.classCategories)&&void 0!==J?J:"-",(oe.category||(null===re||void 0===re?void 0:re.classCategories))&&(0,j.jsx)(V.default,{color:De.primaryColor,cls:"arrow-field"})]})]}),(null===le||void 0===le?void 0:le.focusArea)&&(null===re||void 0===re||null===(G=re.focusArea)||void 0===G?void 0:G.length)>0&&(0,j.jsxs)(g.Z,{Typography:!0,variant:"body1",className:"font-proDisplayBold",children:[(0,m.v)({id:"filter.FocusArea"}),(0,j.jsxs)("span",{className:"value",children:[" ",(null===re||void 0===re||null===(K=re.focusArea)||void 0===K?void 0:K.length)>0?this.focusArea(null===re||void 0===re?void 0:re.focusArea):"-"]})]}),ne.channel&&(0,j.jsxs)(g.Z,{Typography:!0,variant:"body1",className:"font-proDisplayBold makeTextClickable",children:[(0,m.v)({id:"Player.Channel"}),function(){return ae.props.isClassesLoading||!ce||null!==re&&void 0!==re&&re.isTaPContent?(se="-",!1):(se=null===(e=ae.props.channelDetails)||void 0===e?void 0:e.displayName,!0);var e}()?(0,j.jsxs)("span",{className:"value",onClick:function(){var e;
1ae.props.navigate(y.Z.channelDetailView+(null===(e=ae.props.channelDetails)||void 0===e?void 0:e.tag))},children:[" ",se,(0,j.jsx)("span",{children:(0,j.jsx)(V.default,{color:De.primaryColor,cls:"arrow-field"})})]}):(0,j.jsxs)("span",{className:"value",children:[" ",se]})]}),(0,j.jsxs)(g.Z,{Typography:!0,variant:"body1",className:"font-proDisplayBold",children:[(0,m.v)({id:"filter.MediaType"}),(0,j.jsxs)("span",{className:"value",children:[" ",function(e,t){var i=Object.keys(e).find((function(i){return e[i]===t}));return(0,m.v)({id:"filter.".concat(i)})}(I.i2,null===re||void 0===re?void 0:re.mediaType)]})]})]})]})]}),(0,j.jsxs)("div",{className:"progress-bar-container",children:[(null===le||void 0===le?void 0:le.intensity)&&(0,j.jsx)(T,{bgcolor:De.primaryColor,parameter:"intensity",level:null!==(Y=null!==(z=null===oe||void 0===oe?void 0:oe.intensity)&&void 0!==z?z:null===(Q=this.state)||void 0===Q||null===(X=Q.selectedItem)||void 0===X?void 0:X.intensity)&&void 0!==Y?Y:null===re||void 0===re?void 0:re.intensity}),(null===le||void 0===le?void 0:le.skills)&&(0,j.jsx)(T,{bgcolor:De.primaryColor,parameter:"skill",level:null!==($=null!==(ee=null===oe||void 0===oe?void 0:oe.skill)&&void 0!==ee?ee:null===(te=this.state)||void 0===te||null===(ie=te.selectedItem)||void 0===ie?void 0:ie.skill)&&void 0!==$?$:null===re||void 0===re?void 0:re.skill}),(0,j.jsx)(U,{openDailog:function(){ve(),ae.props.fetchUserRating(null===re||void 0===re?void 0:re.tag)},avgRating:null===re||void 0===re?void 0:re.averageRating,avgRatingCount:null===re||void 0===re?void 0:re.averageRatingCount,showRating:this.props.featureEntitlement.ratingEnabled}),this.state.openRatingDailog?(0,j.jsx)(D.Z,{open:!0,title:(0,m.v)({id:"RatingsReviews.RateContent"}),heading:oe.title,paperReq:"ratingModal",cancelicon:!0,handleDialogClose:function(){return he()},children:(0,j.jsx)(W.Z,{classId:null===re||void 0===re?void 0:re.tag,handleDialogClose:function(){return he()}})}):null]})]})]}),!1===this.state.isDeepLinkLoading&&!1===this.state.loading&&!1===this.props.loading&&(0,j.jsx)("div",{children:(0,j.jsxs)("div",{className:"m-more-class",children:[ne.channel?this.state.isClubConnect||this.state.fromDeepLink||"CHANNEL"===this.props.location.state.from||"COLLECTION"===this.props.location.state.from?!this.state.isClubConnect&&(0,j.jsx)(L.Z,{forChannel:!0,numberOfTitles:8,pageNumber:1,classTag:this.state.isThisClassDeepLink?null!==de&&void 0!==de?de:this.state.classId:void 0!==this.props.location.state.selectedItem.title&&this.props.location.state.selectedItem.title[0].tag?void 0!==this.props.location.state.selectedItem.title&&this.props.location.state.selectedItem.title[0].tag:this.props.location.state.selectedItem.id,channelTag:this.state.isThisClassDeepLink?null!==de&&void 0!==de?de:this.state.selectedItem.channelId:void 0!==this.props.location.state.selectedItem.title&&this.props.location.state.selectedItem.tag?void 0!==this.props.location.state.selectedItem.tag&&this.props.location.state.selectedItem.tag:this.props.location.state.selectedItem.channelTag}):(0,j.jsx)(L.Z,{forChannel:!0,numberOfTitles:8,pageNumber:1,classTag:this.state.isThisClassDeepLink?null!==de&&void 0!==de?de:this.state.classId:this.props.location.state.selectedItem.tag?this.props.location.state.selectedItem.tag:this.props.location.state.selectedItem.id,channelTag:this.state.isThisClassDeepLink?"":this.props.location.state.selectedItem.channelId}):null,ne.category?this.state.fromDeepLink||"CHANNEL"===this.props.location.state.from||"COLLECTION"===this.props.location.state.from?(0,j.jsx)(L.Z,{forCategory:!0,classId:this.state.isThisClassDeepLink?null!==de&&void 0!==de?de:this.state.classId:void 0!==this.props.location.state.selectedItem.title&&this.props.location.state.selectedItem.title[0].tag?void 0!==this.props.location.state.selectedItem.title&&this.props.location.state.selectedItem.title[0].tag:this.props.location.state.selectedItem.id,categoryId:this.state.isThisClassDeepLink?"":this.props.location.state.selectedItem.classCategoryId}):(0,j.jsx)(L.Z,{forCategory:!0,loading:this.props.isClassesLoading||this.props.moreClassesLoading,classId:this.state.isThisClassDeepLink?null!==de&&void 0!==de?de:this.state.classId:this.props.location.state.selectedItem.tag?this.props.location.state.selectedItem.tag:this.props.location.state.selectedItem.id,categoryId:this.state.isThisClassDeepLink?"":this.props.location.state.selectedItem.classCategoryId}):null,ne.collection?this.state.fromDeepLink||"CHANNEL"===this.props.location.state.from||"COLLECTION"===this.props.location.state.from?(0,j.jsx)(L.Z,{forCollection:!0,classTag:this.state.isThisClassDeepLink?null!==de&&void 0!==de?de:this.state.classId:void 0!==this.props.location.state.selectedItem.title&&this.props.location.state.selectedItem.title[0].tag?void 0!==this.props.location.state.selectedItem.title&&this.props.location.state.selectedItem.title[0].tag:this.props.location.state.selectedItem.id,collectionTag:null===re||void 0===re?void 0:re.collectionId}):(0,j.jsx)(L.Z,{forCollection:!0,loading:this.props.isClassesLoading||this.props.moreClassesLoading,classTag:this.state.isThisClassDeepLink?null!==de&&void 0!==de?de:this.state.classId:this.props.location.state.selectedItem.tag?this.props.location.state.selectedItem.tag:this.props.location.state.selectedItem.id,collectionTag:null===re||void 0===re?void 0:re.collectionId}):null]})}),ne.share&&this.state.showHideShareView&&(0,j.jsx)(N.Z,{show:this.state.showHideShareView,dynamicLinkDetail
1s:this.state.dynamicLinkDetails,closeDialog:function(){return ae.setState({showHideShareView:!1})}})]})}}]),v}(d.Component),Le=xe,Se=i(11521),Ne=i(64186),Ie=i(13641),ke=i(10984),be=i(64008),je=i(232),Te=i(99798),Ze=i(97300),we=i(60364),Pe=i(48036),Oe=i(97886),Ee=i(1851),Fe=i(62902),Ae=(0,we.$j)((function(e){var t,i,s,a,n,l,o,r,d,c,p,u,v,h,m,g,f,y,C,D,x,L,N,k,b,j,T,Z,w,P,O,E,F,A,q,R,M,B,U,W,V,H,J,_,G,K,Y,z,Q,X;return{collection:null===(t=e.onDemand)||void 0===t?void 0:t.deeplinkClass,prevPlayer:null===(i=e.onDemand)||void 0===i?void 0:i.prevPlayer,intensities:null===(s=e.onDemand)||void 0===s?void 0:s.intensity,classes:[],loading:null===(a=e.onDemand)||void 0===a?void 0:a.loading,moreClassesLoading:null===(n=e.moreClasses)||void 0===n?void 0:n.loading,categoryID:null===e||void 0===e||null===(l=e.moreClasses)||void 0===l||null===(o=l.moreClassesData)||void 0===o||null===(r=o.at(0))||void 0===r?void 0:r.classCategoryId,userDetails:null===(d=e.auth)||void 0===d?void 0:d.userDetail,userActiveSubscription:(0,be.h)(e),userSubscription:null===(c=e.subscription)||void 0===c?void 0:c.userSubscripton,isAuthenticated:!!e.auth.token,hasPlayerAccess:null===(p=e.subscription)||void 0===p?void 0:p.hasPlayerAccess,isSubscriptionLoading:null===(u=e.subscription)||void 0===u?void 0:u.isSubscriptionLoading,clubClasses:null===(v=e.onDemand)||void 0===v?void 0:v.clubClasses,isNewUser:null===(h=e.auth)||void 0===h?void 0:h.userCreated,filteredClassSearchData:null===(m=e.filter)||void 0===m?void 0:m.filteredClassSearchData,paginatedDataOnDemand:null===(g=e.filterOnDemand)||void 0===g?void 0:g.paginatedData,paginatedData:null===(f=e.filter)||void 0===f?void 0:f.paginatedData,classesSearchData:null===(y=e.filter)||void 0===y?void 0:y.classesSearchData,tempClassSearchData:null===(C=e.filter)||void 0===C?void 0:C.tempClassSearchData,selectedFilters:null===(D=e.filter)||void 0===D?void 0:D.selectedFilters,pageCount:null===(x=e.filter)||void 0===x?void 0:x.pageCount,filterSearchText:null===(L=e.filter)||void 0===L?void 0:L.filterSearchText,classesSearchDataOnDemand:null===(N=e.filterOnDemand)||void 0===N?void 0:N.classesSearchDataOnDemand,tempClassSearchDataOnDemand:null===(k=e.filterOnDemand)||void 0===k?void 0:k.tempClassSearchDataOnDemand,selectedFiltersOnDemand:null===(b=e.filterOnDemand)||void 0===b?void 0:b.selectedFilters,pageCountOnDemand:null===(j=e.filterOnDemand)||void 0===j?void 0:j.pageCount,filterSearchTextOnDemand:null===(T=e.filterOnDemand)||void 0===T?void 0:T.filterSearchText,searchedOnDemandClassesObj:null===(Z=e.onDemand)||void 0===Z?void 0:Z.fllOnDemand,searchedBrowseClassesClassesObj:null===(w=e.onDemand)||void 0===w?void 0:w.searchedOnDemandClasses,metadata:null===(P=e.onDemand)||void 0===P?void 0:P.Metadata,StreamingVideoLink:null===(O=e.onDemand)||void 0===O?void 0:O.StreamingVideoLink,navigatedFromWhichScreen:null===(E=e.auth)||void 0===E?void 0:E.navigatedFromWhichScreen,channelDetails:null===(F=e.channels.classesData)||void 0===F?void 0:F.channelDetails,showChannelDetail:!(null===(A=e.channels.classesData)||void 0===A||!A.channelDetails),classData:null===(q=e.channels.classesData)||void 0===q?void 0:q.titleDetails,isClassesLoading:null===(R=e.channels)||void 0===R?void 0:R.isClassesLoading,fetchShortLinkLoading:null===(M=e.dynamicDeeplink)||void 0===M?void 0:M.fetchShortLinkLoading,dynamicShortLink:null===(B=e.dynamicDeeplink)||void 0===B?void 0:B.dynamicShortLink,playList:null===e||void 0===e?void 0:e.playList,showNotification:function(){var t=e.playList;return(null===t||void 0===t?void 0:t.msg)===(null===I.yN||void 0===I.yN?void 0:I.yN.msg.created)||((null===t||void 0===t?void 0:t.msg)===(null===I.yN||void 0===I.yN?void 0:I.yN.msg.updated)||!(null===t||void 0===t||!t.error||(0,S.isEmpty)(t.msg)))},severity:null!==(U=e.playList)&&void 0!==U&&U.error?null===(W=I.yN.notification)||void 0===W?void 0:W.severity.error:null===I.yN||void 0===I.yN||null===(V=I.yN.notification)||void 0===V||null===(H=V.severity)||void 0===H?void 0:H.success,entitlement:null!==(J=null===(_=e.tenantConfig.entitlement)||void 0===_?void 0:_.classDetails)&&void 0!==J?J:{},metadataEntitlement:null===(G=e.tenantConfig)||void 0===G||null===(K=G.entitlementResponse)||void 0===K||null===(Y=K[0])||void 0===Y?void 0:Y.metaData,featureEntitlement:null===(z=e.tenantConfig)||void 0===z||null===(Q=z.entitlementResponse)||void 0===Q||null===(X=Q[0])||void 0===X?void 0:X.features}}),(function(e){return{redirectForSSO:function(t){return e((0,Ne.q5)(t))},savingPrevPlayer:function(t){return e((0,Te.gB)(t))},fetchDeepLinkClass:function(t,i){return e((0,Te.e7)(t,i))},classClosed:function(){return e({type:ke.Ovs})},classStarted:function(){return e({type:ke.Mfw})},onLoadIntensity:function(){return e((0,Te.uP)())},sendPlayDurationToLocalytics:function(t){return e((0,Pe.Xw)(t))},onsetClassFavourite:function(t,i,s){return e((0,Te.iX)(t,i,s))},setDeeplinkClassFavUnfavOnLocalColletion:function(t){return e((0,Te.Et)(t))},onsetClassFavouriteLocal:function(t,i,s){return e((0,Te.Gq)(t,i,s))},onLogOnDemandTracking:function(t,i,s,a){return e((0,Te.nN)(t,i,s,a))},sendClassDetailsToLocalytics:function(t){return e((0,Pe.Yv)(t))},onSubmitWorkoutResult:function(t){return e((0,Pe._W)(t))},loadUserSubscription:function(){return e((0,je.pQ)())},checkConnectClassClicked:function(t){return e((0,Pe.Q8)(t))},FetchClubLiveConnect:function(t){return e((0,Te.Yv)(t))},storeDeepLinkDataToStore:function(t){return e({type:ke.MPK,deeplinkData:t})},resetUserCreatedFlag:function(){return e({type:ke.Ig4})},setPaginatedDataOnDemand:function(t){return e((0,Se.TV)(t))},setPaginatedData:function(t){return e((0,Ie.FJ)(t))},setClassesSearchData:function(t){return e((0,Ie._N)(t))},settempClassSearchData:function(t){return e((0,Ie.y)(t))}
1,setClassesSearchDataOnDemand:function(t){return e((0,Se.uI)(t))},settempClassSearchDataOnDemand:function(t){return e((0,Se.QT)(t))},updateFllOnDemandData:function(t){return e((0,Te.zz)(t))},updateBrowseClasses:function(t){return e((0,Te.xN)(t))},fetchPlayBackLink:function(t,i,s){return e((0,Te.OX)(t,i,s))},setNavigatedFromWhichScreen:function(t){return e((0,Ne.Ll)(t))},resetStreamingLink:function(){return e({type:ke.NTb})},fetchDeeplinkedClassForChannel:function(t){return e((0,Ze.WK)(t))},getShortDeepLink:function(t,i,s){return e((0,Oe.Q)(t,i,s))},resetShortDeepLink:function(){return e((0,Oe.k)())},fetchUserRating:function(t){return e((0,Fe.K4)(t))},resetRatingModalData:function(){return e((0,Fe.fK)())}}}))((0,Ee.ZP)(Le))},30512:function(){}}]); 2//# sourceMappingURL=560.0bc09fbb.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.