1import{R as e,P as t,r as a,Z as s,a1 as i,a2 as r,$ as n,a0 as l,a as o,_ as c,o as m,E as y,a3 as u,O as d,eV as p,D as b,W as g,g as E,Y as _}from"./index.BRp5kj-w.js";import{an as f,H as v,y as T,ae as h,af as L,al as j,B as x,T as C,Z as P,c as N,g as S,at as O,q as k,t as R,eK as I,am as M,bA as w,x as D,ai as q,aj as H,D as B,fP as z,fQ as A,fR as U,a as F,ar as G,a$ as V,be as K,a3 as Q,bC as W}from"./main.BuRnQBwN.js";import{c as Y,P as $}from"./connect.CPvX1Tel.js";import{F as J,b as Z,R as X,c as ee,D as te,d as ae}from"./query.fL8ughGh.js";import{g as se,P as ie,a as re,b as ne,c as le,p as oe}from"./utils.ZpLwTeFY.js";import{T as ce,F as me,B as ye}from"./index.D8X2hRTU.js";import{C as ue}from"./index.BfwbLQQo.js";import{S as de}from"./index.BEcEketP.js";import{S as pe}from"./index.B9Rq9oSN.js";import{P as be}from"./index.BScHaL_9.js";import{R as ge}from"./index.DRrzC11u.js";import{S as Ee}from"./utils.CJhm6lXi.js";import{T as _e}from"./index.Cm8h0WKd.js";import{L as fe}from"./index.BtM9SSsp.js";import{u as ve}from"./useQuery.Cn4xBt2S.js";import{u as Te}from"./useMutation.ZaWNOFK6.js";import{u as he}from"./useLazyQuery.4assJRkw.js";import Le from"./MyLibraryPurchasesVideos.B4D_qzBz.js";import je from"./MyLibraryPurchasesEBooks.C-dcG49B.js";import"./staticTextEn.D6WYEa6V.js";import"./staticTextEs.Dnr1pprf.js";import"./staticTextDe.D946bWlw.js";import"./staticTextFr.Dw7JJU6I.js";import"./uniqBy.k1EBEZLo.js";import"./withIcon.BAD5jE3T.js";import"./index.C8Q1d65_.js";import"./Tile.v2Graphql.Cm7HnAUS.js";import"./Tile.v2Info.SwAMB2TG.js";import"./index.BCSRhBVb.js";import"./index.Do0f9NXC.js";import"./index.hxKsqk0z.js";import"./selectors.2QgcYbTx.js";import"./index.C-OIhYAy.js";import"./utils.D1pHZRCY.js";import"./_createCompounder.Brf93rqD.js";import"./index.D-GGOuy9.js";import"./index.DgIQieFb.js";import"./index.LKqaxqxE.js";import"./PlayOutline.CDxuj_Uj.js";import"./index.0eHpl5cA.js";import"./hooks.Dhm_fHG5.js";import"./index.CuwzLzBq.js";import"./PlaylistAddRemove.BGyUwoio.js";import"./index.Gu5sEqrp.js";import"./index.DgfTkJJP.js";import"./index.CaeUEhIS.js";import"./index.DrZMY-ZG.js";import"./useHistory.EDYCiXTn.js";import"./index.Ch4Ic4mi.js";import"./LoadMore.D9M_wSCO.js";import"./useWarnRemovedOption.IiSGgR8Y.js";import"./useIsomorphicLayoutEffect.34qHIEGO.js";import"./index.DTYf_l6t.js";const xe=t=>{const{url:a,text:s,icon:i,location:r,onClick:n}=t,l=["my-library__nav-item-text",r.pathname===a?"my-library__nav-item-text--selected":null].filter(e=>e).join(" ");return e.createElement("li",{className:"my-library__nav-item"},e.createElement(f,{to:a,onClick:n,className:"my-library__nav-item-link"},i||null,e.createElement("span",{className:l},s)))};xe.propTypes={url:t.string.isRequired,text:t.string.isRequired,icon:t.element,location:t.object.isRequired,onClick:t.func.isRequired};const Ce=t=>{const{defaultPlaylists:o,customPlaylists:c,staticText:m,location:y,onCreateClick:u,title:d,userPurchases:p,userBonuses:b}=t,[g,E]=a.useState(!1),_=b.contentList.size>0,f=b.assetsList.size>0,P=p.contentList.size>0,N=p.assetsList.size>0,S=()=>{E(!1)};return e.createElement("div",{className:"my-library__nav"},e.createElement("div",{className:"my-library__nav-collapsible",onClick:()=>E(!g)},e.createElement("div",{className:"my-library__nav-heading"},e.createElement(v,{as:T.H5},g?m.get("libraryNavTitle"):d||m.get("libraryNavTitle"))),e.createElement(h,{type:g?L.CHEVRON_UP:L.CHEVRON_DOWN})),e.createElement("div",{className:"my-library__nav-content "+(g?"my-library__nav-content--expanded":"")},e.createElement("div",{className:"my-library__nav-heading"},e.createElement(v,{as:T.H5},m.get("playlistsNavTitle"))),e.createElement("ul",{className:"my-library__nav-list"},o.map(t=>e.createElement(xe,{key:t.get("playlistType"),url:t.get("url"),onClick:S,icon:"default"===t.get("playlistType")?e.createElement(ue,null):e.createElement(de,null),text:t.get("playlistName"),location:y})),e.createElement(xe,{key:j,url:s,onClick:S,icon:e.createElement(ce,null),text:m.get("watchHistoryTitle"),location:y}),c.map(t=>e.createElement(xe,{key:t.get("playlistType"),url:t.get("url"),onClick:S,icon:e.createElement(pe,null),text:t.get("playlistName"),location:y})),e.createElement("li",{className:"my-library__nav-create"},e.createElement(x,{type:C.GHOST,className:"my-library__nav-create-button",onClick:u},e.createElement(be,{className:"my-library__nav-create-button-icon"}),e.createElement("span",{className:"my-library__nav-create-button-text"},m.get("createNew"))))),(_||f)&&e.createElement(e.Fragment,null,e.createElement("div",{className:"my-library__nav-heading"},e.createElement(v,{as:T.H5},m.get("bonusNavTitle"))),e.createElement("ul",{className:"my-library__nav-list"},_&&e.createElement(xe,{url:i,onClick:S,icon:e.createElement(me,null),text:m.get("videosTitle"),location:y}),f&&e.createElement(xe,{url:r,onClick:S,icon:e.createElement(ye,null),text:m.get("eBooksTitle"),location:y}))),(P||N)&&e.createElement(e.Fragment,null,e.createElement("div",{className:"my-library__nav-heading"},e.createElement(v,{as:T.H5},m.get("purchasesNavTitle"))),e.createElement("ul",{className:"my-library__nav-list"},P&&e.createElement(xe,{url:n,onClick:S,icon:e.createElement(me,null),text:m.get("videosTitle"),location:y}),N&&e.createElement(xe,{url:l,onClick:S,icon:e.createElement(ye,null),text:m.get("eBooksTitle"),location:y})))))};function Pe(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Ne(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}
1(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}),e}Ce.defaultProps={userPurchases:{contentList:o.List(),assetsList:o.List()},userBonuses:{contentList:o.List(),assetsList:o.List()}},Ce.propTypes={defaultPlaylists:P.list.isRequired,customPlaylists:P.list.isRequired,staticText:P.map.isRequired,location:t.object.isRequired,onCreateClick:t.func.isRequired,userPurchases:t.object.isRequired,userBonuses:t.object.isRequired,title:t.string};const Se=t=>{const{auth:s,user:i,staticText:r,addToasty:n}=t,l=s.get("jwt"),y=O(i.getIn(["data","language"],o.List())),u=se(),[d,p]=a.useState(!1),[b,g]=a.useState({}),{data:E,loading:_,fetchMore:f,refetch:v}=ve(I,{variables:{limit:ie,offset:0,contentLanguage:[y,"_primary"]},skip:!l,fetchPolicy:R,errorPolicy:k,context:{jwt:l}}),[j,{loading:P}]=Te(J,{context:{jwt:l}}),N=c(E,["userMediaPositionList","userMediaPositions"],[])||[],S=a.useMemo(()=>{const e=[];return N.forEach(t=>{const a=function(e){var t;const a=c(e,"media.contentFeatured[0]",null);if(!a)return null;const s=c(a,"contentAssetReferences[0].asset.renderUrl",""),i=c(a,"imageContentRelationships[0].image.url",""),r=(a.imageContentRelationships||[]).map(e=>({type:e.type||"",url:c(e,"image.url","")}));s&&!r.some(e=>"d6-keyart-no-text"===e.type)&&r.push({type:"d6-keyart-no-text",url:s}),r.some(e=>"d6-keyart-with-text"===e.type)||!s&&!i||r.push({type:"d6-keyart-with-text",url:s||i});const n=c(a,"contentSeries[0]",null),l=c(e,"media.duration",0),o=null!==(t=e.position)&&void 0!==t?t:0;return{id:a.contentId||e.mediaId,nid:a.contentId||e.mediaId,contentId:a.contentId||e.mediaId,contentType:a.contentType||"video",title:a.title||"",path:a.path||"",shortDescription:a.shortDescription||"",episodeNumber:a.episodeNumber,seasonNumber:a.seasonNumber,instructor:a.instructor,isNew:a.isNew,displayType:a.displayType,subType:a.subType,studio:a.studio,duration:l,featureMedia:{duration:l,mediaId:c(e,"media.mediaId",e.mediaId),userMediaPosition:{position:o}},images:r,references:(m=a.references||[],m&&m.length?m.reduce((e,t)=>{const a=c(t,"contentReferenceType.type","");return(t.contentTo||[]).forEach(t=>{const s=null!=t.contentId?String(t.contentId):"";e.push({type:a,reference_type:a,name:t.title||"",title:t.title||"",path:t.path||"",contentId:s,content_id:s,language:t.language||""})}),e},[]):[]),seriesTitle:n?n.title:void 0,seriesPath:n?n.path:void 0,seriesId:n?n.contentId:void 0,hero:s||i||"",heroAlt:a.title||"",poster:i||s||"",vote:c(a,"contentAnalytic.votesUpCountTotal",0),voteDown:c(a,"contentAnalytic.votesCountTotal",0)-c(a,"contentAnalytic.votesUpCountTotal",0)};var m}(t);a&&e.push(o.fromJS(a))}),o.List(e)},[N]),q=S.size&&!_?S:u,H=S.size>0,B=a.useCallback((e,t)=>{g(t?t=>m(t,[e]):t=>Ne(function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{},s=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(a).filter(function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),s.forEach(function(t){Pe(e,t,a[t])})}return e}({},t),{[e]:N[e]}))},[N]),z=a.useCallback((t,a)=>{const s=!!b[a];return d?e.createElement("div",{className:"my-library__item-edit",key:t.get("id")||a},e.createElement("div",{className:"my-library__item-edit-backdrop "+(s?"my-library__item-edit-backdrop--add":"")}),e.createElement(x,{type:C.LINK,onClick:()=>B(a,s),className:"my-library__item-edit-button my-library__item-edit-button--"+(s?"add":"remove")},e.createElement(h,{className:"my-library__item-edit-icon",type:s?L.PLUS:L.CLOSE})),e.createElement(_e,{data:t,adminTitle:"My Library",index:a,uiLocation:"My Library"})):e.createElement(_e,{key:t.get("id")||a,data:t,adminTitle:"My Library",index:a,uiLocation:"My Library"})},[d,b,B]);return e.createElement("div",{className:"my-library__content"},e.createElement("header",{className:"my-library__playlist-header"},e.createElement(M,null,r.get("watchHistoryTitle")),e.createElement("div",{className:"my-library__playlist-header-buttons"},H&&e.createElement(x,{type:C.GHOST,onClick:async()=>{d?(p(!1),(async()=>{const e=Object.values(b);
1if(e.length&&!P){const t=e.map(e=>{const t=c(e,"media.contentFeatured[0].contentId",null);return t?j({variables:{videoId:t,hiddenByUser:!0}}):Promise.resolve()});await Promise.all(t),n(r.get("savePlaylistSuccess")),g({}),v()}})()):p(!0)}},e.createElement("span",{className:"my-library__playlist-header-button-text"},d?r.get("saveButtonText"):r.get("editButtonText")),e.createElement(h,{type:d?L.CIRCULAR_CHECK:L.PENCIL,style:d?w.OUTLINE:w.TEAL_CIRCLE})))),H||_?e.createElement(e.Fragment,null,e.createElement(ge,{asGrid:!0,style:Ee.S12334},q.map((e,t)=>z(e,t))),e.createElement(fe,{onLoadMore:()=>{f({variables:{offset:N.length}})},buttonClassName:["my-library__load-more-button","button--secondary"],currentCount:S.size,totalCount:c(E,["userMediaPositionList","count"],S.size),processing:_||!S.size,infiniteScroll:!0})):e.createElement("div",{className:"my-library__content-empty"},e.createElement("div",{className:"my-library__content-empty-image"}),e.createElement("div",{className:"my-library__content-empty-text"},e.createElement(D,{as:T.H5},r.get("watchHistoryEmptyTitle")),e.createElement("p",{className:"my-library__content-empty-copy"},r.get("watchHistoryEmptyText1")))))};Se.propTypes={auth:P.map.isRequired,user:P.map.isRequired,staticText:P.map.isRequired};const Oe=N(e=>({auth:e.auth,user:e.user,staticText:e.staticText.getIn(["data","myLibraryPage","data"],o.Map())||o.Map()}),e=>({addToasty:S(e).toasty.addToasty}))(Se),ke=t=>{const{staticText:a,pageState:s={},onEditClick:i,onDeleteClick:r,onRenameClick:n,onShareClick:l,itemsList:c=o.List(),editMode:m}=t,u=![q,H].includes(s.type);return e.createElement("header",{className:"my-library__playlist-header"},e.createElement(M,null,s.name),e.createElement("div",{className:"my-library__playlist-header-buttons"},y(l)&&u&&e.createElement(x,{type:C.GHOST,onClick:l,disabled:m},e.createElement("span",{className:"my-library__playlist-header-button-text"},a.get("shareButtonText")),e.createElement(h,{type:L.SHARE,style:w.TEAL_CIRCLE})),y(r)&&u&&e.createElement(x,{type:C.GHOST,onClick:r,disabled:m},e.createElement("span",{className:"my-library__playlist-header-button-text"},a.get("deleteButtonText")),e.createElement(h,{type:L.DELETE,style:w.TEAL_CIRCLE})),y(n)&&u&&e.createElement(x,{type:C.GHOST,onClick:n,disabled:m},e.createElement("span",{className:"my-library__playlist-header-button-text"},a.get("renameButtonText")),e.createElement(h,{type:L.RENAME,style:w.TEAL_CIRCLE})),y(i)&&c.size>0&&e.createElement(x,{type:C.GHOST,onClick:i},e.createElement("span",{className:"my-library__playlist-header-button-text"},m?a.get("saveButtonText"):a.get("editButtonText")),e.createElement(h,{type:m?L.CIRCULAR_CHECK:L.PENCIL,style:m?w.OUTLINE:w.TEAL_CIRCLE}))))};function Re(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Ie(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}),e}ke.propTypes={staticText:P.map.isRequired,pageState:t.object.isRequired,onEditClick:t.func,onDeleteClick:t.func,onRenameClick:t.func,onShareClick:t.func,itemsList:P.list,editMode:t.bool};const Me=t=>{const{pageState:s={},auth:i,user:r,addToasty:n,staticText:l,renderModal:y,dismissModal:b,onPlaylistRename:g,setEventDefault:E}=t,_=i.get("jwt"),f=se(),v=O(r.getIn(["data","language"],o.List())),[j,P]=a.useState(),[N,S]=a.useState(),[R,I]=a.useState(o.List()),[M,q]=a.useState(0),[H,F]=a.useState(!0),[G,V]=a.useState(!1),[K,Q]=a.use
1State({}),[W,{data:Y,loading:$,fetchMore:J,refetch:ae}]=he(Z,{fetchPolicy:B,errorPolicy:k}),[re,{error:ne,loading:le}]=Te(X,{context:{jwt:_}}),[oe,{error:ce,loading:me}]=Te(te,{refetchQueries:[ee,"playlistList"],context:{jwt:_}}),ye=R.size&&!$?R:f,ue=a.useCallback((e,t)=>{Q(t?t=>m(t,[e.get("id")]):t=>Ie(function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{},s=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(a).filter(function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),s.forEach(function(t){Re(e,t,a[t])})}return e}({},t),{[e.get("id")]:e}))},[Q]),de=a.useCallback((t,a)=>{const s=u(t.getIn(["content",0])),i=!!K[t.get("id")];return G?e.createElement("div",{className:"my-library__item-edit",key:s.get("id")||a},e.createElement("div",{className:"my-library__item-edit-backdrop "+(i?"my-library__item-edit-backdrop--add":"")}),e.createElement(x,{type:C.LINK,onClick:()=>ue(t,i),className:"my-library__item-edit-button my-library__item-edit-button--"+(i?"add":"remove")},e.createElement(h,{className:"my-library__item-edit-icon",type:i?L.PLUS:L.CLOSE})),e.createElement(_e,{data:s,adminTitle:"My Library",index:a,uiLocation:"My Library"})):e.createElement(_e,{key:s.get("id")||a,data:s,adminTitle:"My Library",index:a,uiLocation:"My Library"})},[G,K,ue]);return a.useEffect(()=>{if(Y){const e=c(Y,["playlistItemList"],{})||{},t=o.fromJS(c(Y,["playlistItemList","playlistItems"],[])||[]),a=c(e,["count"],0);I(t),q(a),F(a>0)}},[Y]),a.useEffect(()=>{j&&N?W({variables:{language:[v,"_primary"],imageType:d,limit:ie,order:[["playlistPosition","DESC"]],learnerLevelLanguage:v,playlistId:j,playlistType:N,offset:0},context:{jwt:_}}):(q(0),F(!1))},[j,N,v,_,W]),a.useEffect(()=>{s&&s.id!==j&&(P(s.id),S(s.type),F(!0),V(!1))},[s]),e.createElement("div",{className:"my-library__content"},e.createElement(ke,{pageState:s,itemsList:R,staticText:l,editMode:G,onEditClick:async()=>{G?(V(!1),(async()=>{const e=Object.values(K);if(e.length&&!le){const t=e.map(e=>re({variables:{playlistId:j,playlistType:N,contentId:e.get("contentId"),contentType:e.get("contentType")}}));await Promise.all(t),n(ne?l.get("savePlaylistError"):l.get("savePlaylistSuccess")),Q({}),ae()}})()):V(!0)},onDeleteClick:()=>{y(U,{playlistType:N,playlistName:s.name,playlistSize:R.size||0,onDeleteSubmit:e=>(async e=>{me||(await oe({variables:{playlistType:e}}),ce?n(l.get("deletePlaylistError")):(n(l.get("deletePlaylistSuccess")),b()))})(e),onReturnFocus:()=>{}})},onRenameClick:()=>{y(A,{playlistType:N,playlistName:s.name,onRenameSuccess:g,onReturnFocus:()=>{}})},onShareClick:()=>{E(p.mergeDeep({playlist_name:s.name,playlist_type:"Custom",ui_location:"My Library"})),y(z,{playlistName:s.name,playlistType:N,playListItemsGraphql:R.map(e=>e.get("contentId"))})}}),H&&j?e.createElement(e.Fragment,null,e.createElement(ge,{asGrid:!0,style:Ee.S12334},ye.map((e,t)=>de(e,t))),e.createElement(fe,{onLoadMore:()=>J({variables:{offset:R.size}}),buttonClassName:["my-library__load-more-button","button--secondary"],currentCount:R.size,totalCount:M,processing:$||!R.size,infiniteScroll:!0})):e.createElement("div",{className:"my-library__content-empty"},e.createElement("div",{className:"my-library__content-empty-image"}),e.createElement("div",{className:"my-library__content-empty-text"},e.createElement(D,{as:T.H5},l.get("playlistEmptyTitle")),e.createElement("p",{className:"my-library__content-empty-copy"},l.get("playlistEmptyText1"),e.createElement(h,{type:L.PLUS,style:w.OUTLINE}),l.get("playlistEmptyText2")))))};Me.propTypes={auth:P.map.isRequired,user:P.map.isRequired,pageState:t.object.isRequired,staticText:P.map.isRequired,onPlaylistRename:t.func};const we=N(e=>({auth:e.auth,user:e.user,staticText:e.staticText.getIn(["data","myLibraryPage","data"],o.Map())||o.Map()}),e=>{const t=S(e);return{addToasty:t.toasty.addToasty,renderModal:t.dialog.renderModal,dismissModal:t.dialog.dismissModal,setEventDefault:t.eventTracking.setEventDefault}})(Me),De=t=>{const{auth:s,user:m,history:y,location:u,staticText:p,renderModal:f,setOverlayDialogVisible:v}=t,T=b(s),h=O(m.getIn(["data","language"],o.List())),[L,j]=a.useState(null),[x,C]=a.useState(o.List(
1)),[P,N]=a.useState(o.List()),[S,R]=a.useState(0),[I,M]=a.useState(0),[w,D]=a.useState({contentList:o.List(),assetsList:o.List()}),[q,H]=a.useState({contentList:o.List(),assetsList:o.List()}),{data:z,loading:A,refetch:U}=ve(ee,{skip:!T,fetchPolicy:B,errorPolicy:k,context:{jwt:s.get("jwt")}}),{data:F,loading:Y,fetchMore:$}=ve(ae,{skip:!T,variables:{language:[h],imageType:d,imageLanguage:[h,"_primary"],assetLanguage:h,learnerLevelLanguage:h},fetchPolicy:B,errorPolicy:k,context:{jwt:s.get("jwt")}}),J=e=>{Q({url:e,language:h,history:y,auth:s})};return a.useEffect(()=>{if(z&&F&&!A&&!Y){const e=c(z,["playlistList","playlists"],[])||[],t=re(e,p),a=c(F,["ecommerceSkuMappingsList","ecommerceSkuMappings"],{})||{},s=c(F,["ecommerceSkuMappingsList","count"],0),o=ne(a),m=le(u.pathname,[...t.defaultPlaylists,...t.customPlaylists],o,p);D(o.purchases),H(o.bonus),C(t.defaultPlaylists),N(t.customPlaylists),M(s),R(S);const y=w.contentList.size>0,d=q.contentList.size>0;if(m)j(m);else if(u.pathname!==n||y)if(u.pathname!==i||d){if(u.pathname!==g){const e=u.pathname===n||u.pathname===l;!T&&e||J(g)}}else J(r);else J(l)}},[u.pathname,z,A,F,Y,p]),a.useEffect(()=>{T||v(G)},[T]),!T||!L||A||Y?e.createElement("div",{className:"my-library__page"},e.createElement("div",{className:"my-library__page-loading"},e.createElement(V,{className:["my-library__page-sherpa"],type:K}))):e.createElement("div",{className:"my-library__page"},e.createElement("div",{className:"my-library__nav-container"},e.createElement(Ce,{onCreateClick:()=>{f(W,{onReturnFocus:()=>{},createOnly:!0,uiLocation:"My Library",uiElement:"New Playlist Button",onCreate:async e=>{E.scrollTo(0,0),await U(),Q({url:`${_}/${e.get("playlistType")}`,language:h,history:y,auth:s})}})},location:u,staticText:p,defaultPlaylists:x,customPlaylists:P,userPurchases:w,userBonuses:q,title:L.name})),e.createElement("div",{className:"my-library__content-container"},L?e.createElement(e.Fragment,null,L.view===oe.WATCH_HISTORY&&e.createElement(Oe,null),L.view===oe.PLAYLIST&&e.createElement(we,{pageState:L,onPlaylistRename:U}),L.view===oe.BONUS_VIDEOS&&e.createElement(Le,{pageState:L,contentList:q.contentList,fetchMore:$,loading:Y,count:S,totalCount:I}),L.view===oe.BONUS_EBOOKS&&e.createElement(je,{pageState:L,assetsList:q.assetsList,fetchMore:$,loading:Y,count:S,totalCount:I}),L.view===oe.PURCHASES_VIDEOS&&e.createElement(Le,{pageState:L,contentList:w.contentList,fetchMore:$,loading:Y,count:S,totalCount:I}),L.view===oe.PURCHASES_EBOOKS&&e.createElement(je,{pageState:L,assetsList:w.assetsList,fetchMore:$,loading:Y,count:S,totalCount:I})):null))};De.propTypes={auth:P.map.isRequired,user:P.map.isRequired,history:t.object.isRequired,location:t.object.isRequired,staticText:P.map.isRequired,setOverlayDialogVisible:t.func.isRequired};const qe=F(Y({seoType:$}),N(e=>({auth:e.auth,user:e.user,staticText:e.staticText.getIn(["data","myLibraryPage","data"],o.Map())||o.Map()}),e=>{const t=S(e);return{addToasty:t.toasty.addToasty,dismissModal:t.dialog.dismissModal,renderModal:t.dialog.renderModal,setOverlayDialogVisible:t.dialog.setOverlayDialogVisible}}))(De);export{qe as default}; 2//# sourceMappingURL=MyLibraryPage.DmNPI8RZ.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.