solorice/config/spicetify/Extracted/Raw/xpui/xpui-routes-collection-episodes.js
Kristofers Solo a42ded1119 Use dotter
2024-08-28 09:02:07 +03:00

2 lines
34 KiB
JavaScript
Executable File

"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[6080],{3326:(e,t,r)=>{r.d(t,{k:()=>d});var i=r(30758),n=r(97500),a=r.n(n),l=r(16047),s=r(1140),o=r(74448),c=r(86070);const d=(0,i.memo)((function(e){const{breakpoint:t,className:r,showSeparator:i,isActive:n,...d}=e;return(0,c.jsx)(l.v,{className:a()(r,o.A.entityRow,{[o.A.separator]:i,[o.A.active]:n}),hoverBackgroundColor:"backgroundTintedHighlight",activeBackgroundColor:"backgroundTintedBase",layout:t===s.e.SMALL?"regular":"wide",hoverAnimationDuration:"0ms",horizontalGap:t===s.e.SMALL?"12px":"16px",paddingBlockStart:"12px",paddingBlockEnd:"12px",...d})}))},68191:(e,t,r)=>{r.d(t,{X:()=>d});var i=r(12783),n=r(50415),a=r(58237),l=r(78074);const s="dK79XxAEu3SEKJ2jS_Qy",o="guiUbDD6Ga8Qpatq2jQ8";var c=r(86070);const d=({isExplicit:e,is19PlusOnly:t,isPaid:r,children:d})=>(0,c.jsxs)("div",{className:s,children:[e&&(0,c.jsx)(a.g,{}),r&&(0,c.jsx)(n.K,{}),t&&(0,c.jsx)(l.q,{size:16}),(0,c.jsx)(i.E,{variant:"bodySmall",className:o,children:d})]})},90409:(e,t,r)=>{r.d(t,{q:()=>a});var i=r(27685),n=r(86070);const a=e=>(0,n.jsx)(i.R,{size:"small",version:i.H.secondary,...e})},81780:(e,t,r)=>{r.d(t,{k:()=>s});var i=r(30400),n=r(2408),a=r(74448),l=r(86070);const s=({description:e,children:t})=>(0,l.jsxs)("div",{className:a.A.body,children:[e&&(0,l.jsx)(i.v,{lineClamp:2,as:"div",dir:"auto",children:(0,l.jsx)(n.q,{asTextContent:!0,html:e})}),t]})},1985:(e,t,r)=>{r.d(t,{F:()=>a});var i=r(74448),n=r(86070);const a=({actions:e,playButton:t})=>(0,n.jsxs)("div",{className:i.A.footer,children:[(0,n.jsx)("div",{className:i.A.actions,children:e}),t]})},65038:(e,t,r)=>{r.d(t,{e:()=>o});var i=r(1140),n=r(67464),a=r(89942),l=r(38861),s=r(86070);const o=({images:e,breakpoint:t,type:r,name:o})=>{const c=(0,l._)(),d=t===i.e.SMALL?a.Qe.SIZE_64:a.Qe.SIZE_112;return(0,s.jsx)(n.b,{fadeIn:!0,images:c(e,a.BZ[d]),shape:n.u.ROUNDED_CORNERS,size:d,iconSize:t===i.e.SMALL?"medium":"xlarge",type:r,title:o,loadingMode:"eager"})}},96448:(e,t,r)=>{r.d(t,{U:()=>l});var i=r(66060),n=r(74448),a=r(86070);const l=({children:e})=>(0,a.jsx)(i.d,{lineClamp:2,as:"div",dir:"auto",className:n.A.title,children:e})},80955:(e,t,r)=>{r.d(t,{Z:()=>g});var i=r(30758),n=r(9183),a=r(68637),l=r(12783),s=r(43830),o=r(11808),c=r(62720);const d="hOOwEKqNuXrNvOCB1SgZ",u="csEdkIN9z2LjJIuZraqz";var A=r(86070);const g=({uri:e})=>{const[t,r]=(0,c.A)(e),g=(0,n.Zp)(),E=(0,i.useCallback)((()=>{r(!1),g("/",{replace:!0})}),[g,r]);return(0,A.jsxs)("div",{className:d,children:[(0,A.jsx)(a.b,{size:"xxlarge"}),(0,A.jsxs)("div",{className:u,children:[(0,A.jsx)(l.E,{as:"p",variant:"titleSmall",children:o.Ru.get("forbidden-page.title")}),(0,A.jsx)(l.E,{as:"p",variant:"bodySmall",children:o.Ru.get("forbidden-page.description")})]}),t&&(0,A.jsx)(s.$,{colorSet:"invertedLight",onClick:E,children:o.Ru.get("remove_from_your_library")})]})}},28944:(e,t,r)=>{r.d(t,{Hm:()=>l,gU:()=>s});var i=r(30758),n=r(86070);const a=(0,i.createContext)(null);function l({children:e,playlist:t,metadataOptions:r,contentsOptions:l}){return(0,n.jsx)(a.Provider,{value:(0,i.useMemo)((()=>({playlist:t,metadataOptions:r,contentsOptions:l})),[l,r,t]),children:e})}function s(){const e=(0,i.useContext)(a);if(null===e)throw new Error("Trying to use 'ListPlatformDataContext' without 'ListPlatformDataProvider'!");return e}},99680:(e,t,r)=>{r.d(t,{db:()=>l,jP:()=>s});var i=r(30758),n=r(86070);const a=(0,i.createContext)({setFilterPredicate:()=>{throw new Error("setFilterPredicate must be used within a ListPlatformFilterPredicatesProvider")},filterPredicate:null}),l=(0,i.memo)((function({children:e}){const[t,r]=(0,i.useState)(null),l=(0,i.useMemo)((()=>({filterPredicate:t,setFilterPredicate:r})),[t]);return(0,n.jsx)(a.Provider,{value:l,children:e})}));function s(){return(0,i.useContext)(a)}},39076:(e,t,r)=>{r.d(t,{K_:()=>u,ll:()=>d});var i=r(30758),n=r(28944),a=r(88321),l=r(48604),s=r(16323),o=r(86070);const c=(0,i.createContext)(null);function d({children:e}){const{playlist:t,contentsOptions:r}=(0,n.gU)(),d=(0,l.m)(),u=(0,i.useCallback)((async(e,i)=>await d.getContents(t.metadata.uri,{...r,offset:e,limit:i})),[d,r,t.metadata.uri]),A=(0,a.E)({nrItems:t.contents.totalLength,fetch:u,limit:50,initialItems:t.contents.items});return(0,s.H)(t.metadata.uri,A.invalidateCache),(0,o.jsx)(c.Provider,{value:A,children:e})}function u(){const e=(0,i.useContext)(c);if(null===e)throw new Error("Trying to use 'ListPlatformItemsContext' without 'ListPlatformItemsProvider'!");return e}},58544:(e,t,r)=>{r.d(t,{Zr:()=>s,kW:()=>o});var i=r(30758),n=r(15691),a=r(86070);const l=(0,i.createContext)({setSortState:()=>{throw new Error("setSortState must be used within a ListPlatformSortProvider")},sortState:null}),s=i.memo((function({uri:e,children:t}){return(0,a.jsx)(n.E,{uri:e,defaultState:null,sortContext:l,children:t})}));function o(){return(0,i.useContext)(l)}},84467:(e,t,r)=>{r.d(t,{W:()=>x});var i=r(30758),n=r(11808),a=r(80955),l=r(83028),s=r(15549),o=r(28944),c=r(99680),d=r(39076),u=r(58544),A=r(81987),g=r(19159);var E=r(75224),h=r(48604),m=r(86070);const p=({children:e,uri:t})=>{const r=(0,h.m)().getCapabilities(),{filter:d}=(0,i.useContext)(s.g),{sortState:p}=(0,u.kW)(),{filterPredicate:x}=(0,c.jP)(),{metadataOptions:y,contentsOptions:C}=((e,t,r)=>{const n=(0,A.NC)(g.G6N);return(0,i.useMemo)((()=>({metadataOptions:{decorateFormatListData:!0,withSync:!0,hydrateCollaboratorsWithMembers:n},contentsOptions:{offset:0,limit:25,filter:e,sort:t??void 0,filterPredicates:r?[r]:[]}})),[n,e,t,r])})(d,p,x),{data:S,isLoading:T,isError:D}=(0,E.W)(t,y,C);return!S||T?(0,m.jsx)(l.A,{hasError:D,errorMessage:n.Ru.get("error.not_found.title.playlist"),loadOffline:r.canModifyOffline}):S.metadata.permissions&&!S.metadata.permissions.canView?(0,m.jsx)(a.Z,{uri:t}):(0,m.jsx)(o.Hm,{playlist:S,metadataOptions:y,contentsOptions:C,children:e})},x=({children:e,uri:t})=>(0,m.jsx)(s.s,{uri:t,children:(0,m.jsx)(c.db,{children:(0,m.jsx)(u.Zr,{uri:t,children:(0,m.jsx)(p,{uri:t,children:(0,m.jsx)(d.ll,{children:e})})})})})},27316:(e,t,r)=>{r.d(t,{M:()=>c});var i=r(50513),n=r(30758);const a=[],l=(e,t)=>{const r=[];let i=e,n=t;for(;i>0;){const t=Math.ceil(i/n);r.push({first:e-i,nrItems:t}),i-=t,n--}return r};var s=r(86070);const o=e=>{const{itemsInNode:t,renderItem:r,renderPlaceholder:n,estimatedHeight:a,scrollNodeRef:c,nrRowsOverscan:d=10,nrInitialInView:u=0,firstIndex:A,heights:g,fanOut:E=2}=e,{ref:h,inView:m,entry:p}=(0,i.Wx)({root:c.current,rootMargin:d*a+"px 0px",initialInView:A<u}),x=`${A}-${t}`;g[x]??=a*t,p?.boundingClientRect?.height&&(g[x]=p.boundingClientRect.height);const y=g[x];return 0===t?null:m?1===t?(0,s.jsx)("div",{ref:h,role:"presentation",children:r(A,y)}):(0,s.jsx)("div",{ref:h,role:"presentation",children:l(t,E).map((({first:t,nrItems:r},i)=>(0,s.jsx)(o,{...e,itemsInNode:r,firstIndex:A+t},i)))}):(0,s.jsx)("div",{ref:h,role:"presentation",children:n(`${y}px`)})},c=e=>{const t=(e=>{const t=a.find((t=>t.key===e))?.heights||{},r=(0,n.useCallback)((t=>{if(!e)return;const r=a.findIndex((t=>t.key===e));-1===r?a.push({key:e,heights:t}):(a[r].heights=t,a.push(a.splice(r,1)[0])),a.length>10&&a.shift()}),[e]),i=(0,n.useRef)({...t});return(0,n.useEffect)((()=>()=>{r(i.current)}),[r]),i.current})(e.persistanceKey);return(0,s.jsx)(o,{...e,itemsInNode:e.totalCount,firstIndex:0,heights:t,nrInitialInView:e.nrInitialInView})}},33874:(e,t,r)=>{r.d(t,{u:()=>i});let i=function(e){return e.TITLE="title",e.SUBTITLE="subTitle",e}({})},1140:(e,t,r)=>{r.d(t,{$:()=>l,e:()=>a});var i=r(32994),n=r(42116);const a={SMALL:"small",LARGE:"large"},l=()=>(0,n.y)()===i.E.SMALL?"small":"large"},47896:(e,t,r)=>{r.d(t,{d:()=>h});var i=r(30758),n=r(18502),a=r(25763),l=r(11808),s=r(2e3),o=r(58544),c=r(68518),d=r(48604),u=r(86070);const A=i.memo((function({sortOptions:e,defaultSortField:t,enableViewModeMenu:r}){const n=(0,d.m)(),{canSort:a}=n.getCapabilities(),{sortState:A,setSortState:g}=(0,o.kW)(),E=(0,i.useCallback)((e=>{const t=c.nw[e];g((0,c.Wc)(t,A))}),[g,A]),h=e.map((e=>c.kA[e]));"custom-order"===t&&h.unshift({key:"custom-order",value:l.Ru.get("sort.custom-order")});const m=c.kA[A?.field??t];return a?(0,u.jsx)(s.g,{options:h,onSelect:E,selected:m,sortOrder:(0,c.Qi)(A?.order??null),heading:l.Ru.get("drop_down.sort_by"),enableViewModeMenu:r}):null}));var g=r(72091);const E="cRlDGz_DCN_UOCt4Khg1",h=i.memo((function({filterPlaceholder:e,sortOptions:t,defaultSortField:r,enableViewModeMenu:l=!1}){const s=(0,d.m)(),{canSort:o,canFilter:c}=s.getCapabilities(),{spec:h,logger:m}=(0,g.r)(n.E,{}),p=(0,i.useCallback)((()=>{m.logInteraction(h.filterFieldFactory().keyStrokeFilter())}),[m,h]),x=(0,i.useCallback)((()=>{m.logInteraction(h.filterFieldFactory().hitClearFilter())}),[m,h]);return(0,u.jsxs)("div",{className:E,children:[c?(0,u.jsx)(i.Suspense,{fallback:null,children:(0,u.jsx)(a.S,{placeholder:e,onFilter:p,onClear:x})}):null,o?(0,u.jsx)(A,{sortOptions:t,defaultSortField:r,enableViewModeMenu:l}):null]})}))},78957:(e,t,r)=>{r.d(t,{g:()=>i.gU});var i=r(28944)},68518:(e,t,r)=>{r.d(t,{Ap:()=>m,Qi:()=>A,Wc:()=>c,g6:()=>h,hK:()=>p,kA:()=>d,nw:()=>u});var i=r(11808),n=r(46288),a=r(72013);const l=[a.nw.ADDED_AT,a.nw.PUBLISH_DATE],s=e=>l.includes(e)?a.xB.DESC:a.xB.ASC,o={[a.xB.ASC]:a.xB.DESC,[a.xB.DESC]:a.xB.ASC},c=(e,t)=>null===e?null:t?.field!==e?{field:e,order:s(e)}:{field:e,order:o[t.order]},d={[a.nw.TITLE]:{key:"title",get value(){return i.Ru.get("sort.title")}},[a.nw.ARTIST]:{key:"artist",get value(){return i.Ru.get("sort.artist")}},[a.nw.ALBUM]:{key:"album",get value(){return i.Ru.get("sort.album")}},[a.nw.ADDED_BY]:{key:"added-by",get value(){return i.Ru.get("sort.added-by")}},[a.nw.ADDED_AT]:{key:"added-at",get value(){return i.Ru.get("collection.sort.recently-added")}},[a.nw.DURATION]:{key:"duration",get value(){return i.Ru.get("sort.duration")}},[a.nw.SHOW_NAME]:{key:"show-name",get value(){return i.Ru.get("collection.sort.creator")}},[a.nw.PUBLISH_DATE]:{key:"publish-date",get value(){return i.Ru.get("tracklist.header.release-date")}},"custom-order":{key:"custom-order",get value(){return i.Ru.get("sort.custom-order")}}},u={title:a.nw.TITLE,artist:a.nw.ARTIST,album:a.nw.ALBUM,"added-by":a.nw.ADDED_BY,"added-at":a.nw.ADDED_AT,duration:a.nw.DURATION,"show-name":a.nw.SHOW_NAME,"publish-date":a.nw.PUBLISH_DATE,"custom-order":null};function A(e){return null===e?n.H.NONE:e===a.xB.ASC?n.H.ASC:n.H.DESC}const g={[n.$.TITLE_AND_ARTIST]:[a.nw.TITLE,a.nw.ARTIST],[n.$.TITLE]:[a.nw.TITLE],[n.$.ADDED_BY]:[a.nw.ADDED_BY],[n.$.ADDED_AT]:[a.nw.ADDED_AT],[n.$.DURATION]:[a.nw.DURATION],[n.$.ARTIST]:[a.nw.ARTIST],[n.$.ALBUM]:[a.nw.ALBUM],[n.$.ALBUM_OR_PODCAST]:[a.nw.ALBUM,a.nw.SHOW_NAME],[n.$.ALBUM_OR_SHOW]:[a.nw.ALBUM,a.nw.SHOW_NAME],[n.$.ACTIONS]:[],[n.$.RELEASE_DATE]:[a.nw.PUBLISH_DATE],[n.$.INDEX]:[],[n.$.PLAYS]:[],[n.$.ADD]:[],[n.$.EVENT_DATE]:[],[n.$.EVENT_INFO]:[],[n.$.CONCERT_DATE]:[],[n.$.CONCERT_VENUE]:[],[n.$.TITLE_AND_AUTHOR]:[a.nw.TITLE],[n.$.AUTHOR]:[],[n.$.BPM]:[],[n.$.KEY]:[],[n.$.VIBE]:[]},E={[n.H.NONE]:null,[n.H.DESC]:a.xB.DESC,[n.H.ASC]:a.xB.ASC,[n.H.SECONDARY_DESC]:a.xB.DESC,[n.H.SECONDARY_ASC]:a.xB.ASC},h=e=>e.filter((e=>g[e].length>0)),m=(e,t)=>{const r=e.find((e=>t?.field&&g[e].includes(t.field)));if(!r||!t?.field)return{column:null,order:n.H.ASC};return g[r].indexOf(t.field)>0?{column:r,order:t.order===a.xB.ASC?n.H.SECONDARY_ASC:n.H.SECONDARY_DESC}:{column:r,order:t.order===a.xB.ASC?n.H.ASC:n.H.DESC}},p=(e,t,r)=>{const i=g[e].length>1?5:3;let a=null,l=null;if(e===t.column){let s=(t.order+1)%i;s!==n.H.NONE||r||(s+=1);const o=[n.H.SECONDARY_ASC,n.H.SECONDARY_DESC].includes(s)?1:0;a=g[e][o],l=E[s]}else a=g[e][0],l=E[n.H.ASC];return null===l?null:{field:a,order:l}}},50186:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Gt});var i=r(30758),n=r(83547),a=r(81987),l=r(11808),s=r(31685),o=r(28754),c=r(83028),d=r(71188),u=r(15549),A=r(15691),g=r(46288),E=r(28275),h=r(47327);let m=function(e){return e.SHOW_ALPHABETICAL="SHOW_ALPHABETICAL",e.BOOK_ALPHABETICAL="BOOK_ALPHABETICAL",e.EPISODE_ALPHABETICAL="EPISODE_ALPHABETICAL",e.PLAYLIST_ALPHABETICAL="PLAYLIST_ALPHABETICAL",e.ALBUM_ALPHABETICAL="ALBUM_ALPHABETICAL",e.ADDED_AT="ADDED_AT",e.CREATOR_NAME="CREATOR_NAME",e.CREATOR_NAME_ALPHABETICAL="CREATOR_NAME_ALPHABETICAL",e.ALBUM_CREATOR_NAME="ALBUM_CREATOR_NAME",e.RECENTLY_PLAYED="RECENTLY_PLAYED",e.MOST_RELEVANT="MOST_RELEVANT",e.CUSTOM_ORDER="CUSTOM_ORDER",e}({});const p={"show-alphabetical":m.SHOW_ALPHABETICAL,"book-alphabetical":m.BOOK_ALPHABETICAL,"episode-alphabetical":m.EPISODE_ALPHABETICAL,"playlist-alphabetical":m.PLAYLIST_ALPHABETICAL,"album-alphabetical":m.ALBUM_ALPHABETICAL,"recently-added":m.ADDED_AT,"creator-name":m.CREATOR_NAME,"creator-name-alphabetical":m.CREATOR_NAME_ALPHABETICAL,"album-creator-name":m.ALBUM_CREATOR_NAME,"recently-played":m.RECENTLY_PLAYED,"playlist-most-relevant":m.MOST_RELEVANT,"playlist-custom-order":m.CUSTOM_ORDER},x={[m.RECENTLY_PLAYED]:{key:"recently-played",get value(){return l.Ru.get("collection.sort.recently-played")}},[m.ADDED_AT]:{key:"recently-added",get value(){return l.Ru.get("collection.sort.recently-added")}},[m.SHOW_ALPHABETICAL]:{key:"show-alphabetical",get value(){return l.Ru.get("collection.sort.alphabetical")}},[m.BOOK_ALPHABETICAL]:{key:"book-alphabetical",get value(){return l.Ru.get("collection.sort.alphabetical")}},[m.EPISODE_ALPHABETICAL]:{key:"episode-alphabetical",get value(){return l.Ru.get("collection.sort.alphabetical")}},[m.PLAYLIST_ALPHABETICAL]:{key:"playlist-alphabetical",get value(){return l.Ru.get("collection.sort.alphabetical")}},[m.ALBUM_CREATOR_NAME]:{key:"album-creator-name",get value(){return l.Ru.get("collection.sort.creator")}},[m.CREATOR_NAME]:{key:"creator-name",get value(){return l.Ru.get("collection.sort.creator")}},[m.CREATOR_NAME_ALPHABETICAL]:{key:"creator-name-alphabetical",get value(){return l.Ru.get("collection.sort.alphabetical")}},[m.ALBUM_ALPHABETICAL]:{key:"album-alphabetical",get value(){return l.Ru.get("collection.sort.alphabetical")}},[m.MOST_RELEVANT]:{key:"playlist-most-relevant",get value(){return l.Ru.get("collection.sort.most-relevant")}},[m.CUSTOM_ORDER]:{key:"playlist-custom-order",get value(){return l.Ru.get("collection.sort.custom-order")}}};m.ADDED_AT,m.ALBUM_ALPHABETICAL,m.CREATOR_NAME,m.ADDED_AT,E.uY.ADDED_AT,E.xB.DESC,m.ALBUM_ALPHABETICAL,E.uY.NAME,E.xB.ASC,m.CREATOR_NAME,E.uY.ARTIST_NAME,E.xB.ASC;m.ADDED_AT,m.CREATOR_NAME_ALPHABETICAL,m.ADDED_AT,E.af.ADDED_AT,E.xB.DESC,m.CREATOR_NAME_ALPHABETICAL,E.af.NAME,E.xB.ASC;m.ADDED_AT,m.SHOW_ALPHABETICAL,m.ADDED_AT,E.WW.ADDED_AT,E.xB.DESC,m.SHOW_ALPHABETICAL,E.WW.NAME,E.xB.ASC;m.ADDED_AT,m.BOOK_ALPHABETICAL,m.ADDED_AT,E.Ev.ADDED_AT,m.BOOK_ALPHABETICAL,E.Ev.NAME;m.MOST_RELEVANT,m.RECENTLY_PLAYED,m.ADDED_AT,m.PLAYLIST_ALPHABETICAL,m.CUSTOM_ORDER,m.ADDED_AT,h.nw.ADDED_AT,h.xB.DESC,m.RECENTLY_PLAYED,h.nw.RECENTLY_PLAYED,h.xB.ASC,m.PLAYLIST_ALPHABETICAL,h.nw.NAME,h.xB.ASC,m.MOST_RELEVANT,h.nw.RELEVANCE,h.xB.DESC,m.CUSTOM_ORDER;m.ADDED_AT,m.ADDED_AT,m.ADDED_AT,m.MOST_RELEVANT,m.ADDED_AT;var y=r(86070);const C=e=>e===m.ADDED_AT?E.xB.DESC:E.xB.ASC,S={option:m.ADDED_AT,order:E.xB.DESC},T={[E.xB.ASC]:E.xB.DESC,[E.xB.DESC]:E.xB.ASC},D=(0,i.createContext)({setSortState:()=>{throw new Error("setSortState must be used within a LibrarySortProvider")},sortState:S}),L=i.memo((function({uri:e,children:t,defaultSortOption:r}){const i={option:r,order:C(r)};return(0,y.jsx)(A.E,{uri:e,defaultState:i,sortContext:D,children:t})}));var f=r(97438),P=r(37712),_=r(57262),b=r(76652),R=r(18502),I=r(25763),j=r(2e3);const v=i.memo((function({sortOptions:e,onSort:t}){const{sortState:r,setSortState:n}=(0,i.useContext)(D),a=(0,i.useCallback)((e=>{const i=p[e];t?.(i),n(((e,t,r)=>t!==e?{option:e,order:C(e)}:{option:e,order:T[r]})(i,r.option,r.order))}),[t,n,r.option,r.order]),l=e.map((e=>x[e])),s=x[r.option];return(0,y.jsx)(j.g,{options:l,onSelect:a,selected:s,sortOrder:(o=r.order,o===E.xB.ASC?g.H.ASC:g.H.DESC)});var o}));var O=r(72091);const w="gWfUTJg52F5eTzM6M82w",N=i.memo((function({canSort:e,canFilter:t,filterPlaceholder:r,sortOptions:n}){const{spec:a,logger:l}=(0,O.r)(R.E,{}),s=(0,i.useCallback)((()=>{l.logInteraction(a.filterFieldFactory().keyStrokeFilter())}),[l,a]),o=(0,i.useCallback)((()=>{l.logInteraction(a.filterFieldFactory().hitClearFilter())}),[l,a]);return(0,y.jsxs)("div",{className:w,children:[t?(0,y.jsx)(i.Suspense,{fallback:null,children:(0,y.jsx)(I.S,{placeholder:r,onFilter:s,onClear:o})}):null,e?(0,y.jsx)(v,{sortOptions:n}):null]})}));var B=r(47896);const k={[E.ci.NAME]:d.lU.TITLE,[E.ci.SHOW_NAME]:d.lU.SHOW,[E.ci.ADDED_AT]:d.lU.ADDED_AT},M=[m.ADDED_AT,m.CREATOR_NAME,m.EPISODE_ALPHABETICAL],H={[m.ADDED_AT]:E.ci.ADDED_AT,[m.CREATOR_NAME]:E.ci.SHOW_NAME,[m.EPISODE_ALPHABETICAL]:E.ci.NAME};const U=(e,t)=>{if(function(e){return M.includes(e)}(e))return{field:H[e],order:t}},F=(e,t)=>{if(!M.includes(e))return;return(e=>{if(!e?.field)return;const t=k[e.field];if(!t)return;return d.SL[t].map((t=>e.order?`${t} ${e.order}`:t)).join(",")})(U(e,t))};var Y=r(69578),W=r(19159),$=r(11898),V=r(72013);const z="wmGcau34_eXQOX37kUTc",K="Yxy9nPtcdgz7zbBsWVKg",Q=({metadata:e,canSort:t,backgroundColor:r,isPlaying:i,isOnline:n,togglePlay:a})=>{const s=(0,$.f)(),{uri:o,name:c}=e,d=e.totalLength>0,u=(0,Y.j)();return(0,y.jsx)(f.E,{backgroundColor:r,children:(0,y.jsxs)(P.S,{children:[d&&(0,y.jsx)(b.D,{onClick:()=>a(),isPlaying:i,size:u,uri:o,disabled:!n,ariaPlayLabel:l.Ru.get("playlist.a11y.play",c),ariaPauseLabel:l.Ru.get("playlist.a11y.pause",c)}),t&&(0,y.jsx)("div",{className:K,children:(0,y.jsx)(_.u,{property:W.ucV,renderNewExperience:()=>(0,y.jsx)(B.d,{sortOptions:[V.nw.TITLE,V.nw.ADDED_AT,V.nw.PUBLISH_DATE,V.nw.SHOW_NAME],defaultSortField:V.nw.ADDED_AT,filterPlaceholder:l.Ru.get("playlist.search_in_playlist")}),renderOldExperience:()=>(0,y.jsx)(N,{canSort:s.getCapabilities().canSort,canFilter:s.getCapabilities().canFilter,filterPlaceholder:l.Ru.get("playlist.search_in_playlist"),sortOptions:M})})})]})})};var G=r(71588),q=r(58345),X=r(54401),Z=r(83716),J=r(34136),ee=r(26694),te=r(50415),re=r(14627),ie=r(45346),ne=r(48200),ae=r(52608),le=r(58237),se=r(78074),oe=r(95302),ce=r(42116),de=r(62720),ue=r(42582),Ae=r(94313),ge=r(71817),Ee=r(85793),he=r(94672);const me="sxxBMk7G1OGo4uYIgPdQ",pe="wpP88qSwGpDQbc_ogyXW",xe={small:64,standard:300,large:640,xlarge:1024},ye=i.memo((function({index:e,contextUri:t,episode:r,onRemove:n,usePlayContextItem:l}){const s=(0,i.useRef)(r.duration.milliseconds-r.playedState.timeLeft.milliseconds),o=r.uri,[c,d]=(0,i.useState)(r.playedState.state===Ee.M.Completed),{filter:A}=(0,i.useContext)(u.g),{draggable:g,onDragStart:E}=(0,re.P)(),h=(0,ce.y)(),m=(0,ie.W)(),[p]=(0,de.A)(o,!0),x=(0,ne.g)(r.uri,r.isPlayable),C=(0,ae.n)(),{isPlaying:S,isActive:T,togglePlay:D}=l({uri:o,index:e}),[L]=(0,Ae.S)(1e4,(e=>e?.item?.uri===o));(0,i.useEffect)((()=>{S&&(s.current=L)}),[S,L]);const{isPlaying:f,isActive:P,togglePlay:_}=(0,ue.P)({uri:o,pages:[{items:[{type:ge.c.EPISODE,uri:o,uid:null,provider:null}]}]},{featureIdentifier:"your_library",referrerIdentifier:"your_library"});(0,i.useEffect)((()=>{p||n()}),[p,n]),(0,i.useEffect)((()=>{S||r.duration.milliseconds<=s.current&&d(!0)}),[S,r.duration.milliseconds]);const b=(0,i.useCallback)((e=>{e||(s.current=0),d(e)}),[]),R=(0,i.useCallback)((e=>{if(e.target!==e.currentTarget)return;let i=`${r.name}`;r.show?.name&&(i+=`${r.show.name}`),E(e,{itemUris:[o],dragLabelText:i,contextUri:t})}),[t,r.name,r.show?.name,o,E]),I=(0,i.useCallback)((()=>{m({type:"click",targetUri:o,intent:"navigate"})}),[o,m]),j=(0,i.useCallback)((()=>{C?(m({type:"click",intent:S?"pause":"play"}),D()):(m({type:"click",intent:f?"pause":"play"}),_())}),[C,S,f,m,D,_]),v=(0,i.useCallback)((e=>(0,y.jsx)(ee.M,{searchWords:[A],textToHighlight:e})),[A]),O=r.podcastSubscription?.isPaywalled??!1,w=r.podcastSubscription?.isUserSubscribed??!1,{badges:N}=(0,he.b)({isExplicit:r.isExplicit,isMOGEFRestricted:r.is19PlusOnly,isPaywalled:O});let B=!1;(T||!C&&P)&&(B=!0);const k=(0,a.NC)(W.cKd,{loadingValue:!1});return p?(0,y.jsxs)(oe.pZ,{value:"row",index:e,children:[(0,y.jsx)("hr",{className:me,"aria-hidden":!0}),(0,y.jsx)(G.h,{menu:(0,y.jsx)(q.b,{uri:o,contextUri:t,showUri:r.show?.uri,isPlayed:c,onMarkAsPlayed:b}),children:k?(0,y.jsx)(Z.k,{requestId:r.requestId,index:e,uri:o,uid:o,size:h,images:r.images.map((e=>({url:e.url,width:e.width||(e.label?xe[e.label]:null),height:e.height||(e.label?xe[e.label]:null)}))),isPaywalled:O,isUserSubscribed:w,name:r.name,highlightText:v,showName:r.show?.name,showUri:r.show?.uri,description:r.description,isPlayable:x,fullyPlayed:c,durationMs:r.duration.milliseconds,releaseDate:r.release.date||"",resumePositionMs:s.current,draggable:g,handleDragStart:R,handlePlaybackClick:j,handleClick:I,isCurrentlyPlaying:B,isPlaying:C?S:f,position:B?L:void 0,episodeSharingInfo:null,onMarkAsPlayed:b,badges:(0,y.jsxs)(y.Fragment,{children:[N.explicit&&(0,y.jsx)(le.g,{}),N.paid&&(0,y.jsx)(te.K,{}),N.nineteen&&(0,y.jsx)(se.q,{size:16})]}),playButtonWrapper:e=>(0,y.jsx)(J.f,{enabled:O&&!w,showUri:r.show?.uri||void 0,children:e})}):(0,y.jsx)(X.R,{requestId:r.requestId,index:e,uri:o,uid:o,size:h,images:r.images.map((e=>({url:e.url,width:e.width||(e.label?xe[e.label]:null),height:e.height||(e.label?xe[e.label]:null)}))),isPaywalled:O,isUserSubscribed:w,name:r.name,highlightText:v,showName:r.show?.name,showUri:r.show?.uri,description:r.description,isPlayable:x,fullyPlayed:c,durationMs:r.duration.milliseconds,releaseDate:r.release.date||"",resumePositionMs:s.current,handleDragStart:R,handlePlaybackClick:j,handleClick:I,isCurrentlyPlaying:B,isPlaying:C?S:f,position:B?L:void 0,episodeSharingInfo:null,onMarkAsPlayed:b,badges:(0,y.jsxs)(y.Fragment,{children:[N.explicit&&(0,y.jsx)(le.g,{}),N.paid&&(0,y.jsx)(te.K,{}),N.nineteen&&(0,y.jsx)(se.q,{size:16})]}),playButtonWrapper:e=>(0,y.jsx)(J.f,{enabled:O&&!w,showUri:r.show?.uri||void 0,children:e})})})]}):null}));var Ce=r(97513),Se=r(32994),Te=r(86945);const De=i.memo((function({contextUri:e,usePlayContextItem:t}){const r=(0,$.f)(),{sortState:n}=(0,i.useContext)(D),[a,l]=(0,i.useState)({totalLength:0,unfilteredTotalLength:0,offset:0,items:[],limit:50}),s=(0,i.useRef)(!1),o=(0,i.useRef)(0),c=(0,i.useRef)(0),{filter:d}=(0,i.useContext)(u.g),A=(0,i.useCallback)((()=>{c.current++}),[]),{ref:g,breakpoint:E}=(0,Te.x)({[Se.E.MEDIUM]:0,[Se.E.LARGE]:600}),h=(0,i.useCallback)(((e=!1)=>{const t=o.current;null!==t&&(s.current||(s.current=!0,(async e=>{const t=await r.getEpisodes({offset:e-c.current,limit:50,sort:U(n.option,n.order),filter:d});return c.current=0,t})(Number(t)).then((r=>{l((i=>{const n=Number(r.offset)+r.items.length,a=e?[]:[...i.items];return a.splice(Number(t),r.items.length,...r.items),o.current=n<r.totalLength?n:null,{...r,items:a}})),s.current=!1}))))}),[d,r,n]);return(0,i.useEffect)((()=>{o.current=0,h(!0)}),[h]),(0,y.jsx)(ce.o.Provider,{value:E,children:(0,y.jsx)(oe.pZ,{value:"track-list",children:(0,y.jsx)("div",{ref:g,children:(0,y.jsx)(Ce._,{onReachBottom:h,triggerOnInitialLoad:!0,children:a.items.map(((r,i)=>(0,y.jsx)("div",{className:pe,children:(0,y.jsx)(ye,{index:i,episode:r,contextUri:e,onRemove:A,usePlayContextItem:t},`${r.uri}/${i}`)},`${i}${r.uri}`)))})})})})}));var Le=r(12783),fe=r(82442),Pe=r(56341),_e=r(74793),be=r(59116),Re=r(21752),Ie=r(51271),je=r(55194),ve=r(79803),Oe=r(67464);const we=({metadata:e,backgroundColor:t,isPlaying:r,isOnline:n,togglePlay:a})=>{const{uri:s,name:o,images:c,totalLength:d,owner:u}=e,A=(0,i.useMemo)((()=>({id:u.username,uri:u.uri,name:u.username,displayName:u.displayName||void 0,images:u.images||[]})),[u]);return(0,y.jsxs)(fe.z,{backgroundColor:t,children:[(0,y.jsxs)(be.h,{children:[(0,y.jsx)(b.D,{size:"medium",onClick:()=>a(),isPlaying:r,uri:s,disabled:!n,ariaPlayLabel:l.Ru.get("playlist.a11y.play",o),ariaPauseLabel:l.Ru.get("playlist.a11y.pause",o)}),(0,y.jsx)(Re.X,{text:o})]}),(0,y.jsx)(Pe.K,{images:c,name:o,shape:Oe.u.ROUNDED_CORNERS,renderImage:()=>(0,y.jsx)(ve.b,{})}),(0,y.jsxs)(_e.Y,{children:[(0,y.jsx)(Le.E,{variant:"bodySmallBold",children:l.Ru.get("playlist")}),(0,y.jsx)(je.mm,{canEdit:!1,onClick:()=>{},children:o}),(0,y.jsx)(Ie.t,{creators:[A],totalItems:d,hasEpisodes:!0})]})]})};var Ne=r(41978),Be=r(61544),ke=r(63731),Me=r(76792),He=r(99680);const Ue={get[V.YB.AVAILABLE_OFFLINE](){return l.Ru.get("download.available-offline")},get[V.YB.UNPLAYED](){return l.Ru.get("shows.filter.unplayed")},get[V.YB.IN_PROGRESS](){return l.Ru.get("shows.filter.in-progress")}};var Fe=r(48604);const Ye=({filterPredicates:e,className:t})=>{const{canFilter:r}=(0,Fe.m)().getCapabilities(),{filterPredicate:i,setFilterPredicate:n}=(0,He.jP)();return r?i?(0,y.jsxs)("div",{className:t,children:[(0,y.jsx)(ke.m,{onClick:()=>n(null),"aria-label":l.Ru.get("web-player.your-library-x.clear_filters")}),(0,y.jsx)(Me.v,{onClick:()=>n(null),selected:!0,selectedColorSet:"invertedLight",children:Ue[i]},i)]}):(0,y.jsx)("div",{className:t,children:e.map((e=>(0,y.jsx)(Me.v,{onClick:()=>n(i?null:e),selected:i===e,selectedColorSet:"invertedLight",children:Ue[e]},e)))}):null};var We=r(78957),$e=r(84467),Ve=r(97500),ze=r.n(Ve),Ke=r(9183),Qe=r(24284),Ge=r(74773),qe=r(97684),Xe=r(18326),Ze=r(97393),Je=r(80784),et=r(39796),tt=r(38916),rt=r(68191),it=r(90409),nt=r(3326);var at=r(81780),lt=r(1985),st=r(65038),ot=r(96448),ct=r(33874),dt=r(1140),ut=r(59996),At=r(54687),gt=r(44694),Et=r(65500),ht=r(98767),mt=r(64820),pt=r(16972),xt=r(85065),yt=r(17869),Ct=r(79303),St=r(71338),Tt=r(74448);const Dt=(0,i.memo)((function({episode:e,contextUri:t,usePlayContextItem:r,index:n,sharingInfo:a,uid:s,showSeparator:o=!1,highlightText:c=(e=>e),...d}){const{name:u,description:A,isExplicit:g,show:E,type:h,uri:m,duration:p,is19PlusOnly:x,mediaType:C,release:S,images:T}=e,D=(0,Ct.s)(),{spec:L}=(0,O.r)(Ge.m,{data:{position:n,uri:m}}),f=E?.name,P=E?.uri,_=(0,Be.o_)(P)?.toURLPath(!0),b=e.podcastSubscription?.isPaywalled??!1,R=e.podcastSubscription?.isUserSubscribed??!1,I=b&&!R,j=C?.includes(Ee.C.Video)??!1,v=(0,Ke.Zp)(),w=(0,Be.o_)(m).toURLPath(!0),N=(0,dt.$)(),[B,k]=(0,de.A)(m),M=(0,pt.T)(m),{isPlaying:H,isActive:U,togglePlay:F}=r({uri:m,index:n}),Y=N===dt.e.SMALL?"small":"medium",{resumePositionMs:W,onToggleMarkAsPlayed:$,isFullyPlayed:V}=((e,t)=>{const{uri:r,duration:n,playedState:a}=e,l=(0,i.useRef)(n.milliseconds-a.timeLeft.milliseconds),[s,o]=(0,i.useState)(a.state===Ee.M.Completed),[c]=(0,Ae.S)(1e4,(e=>e?.item?.uri===r)),d=(0,i.useCallback)((e=>{e||(l.current=0),o(e)}),[]);return(0,i.useEffect)((()=>{t&&(l.current=c)}),[t,c]),{resumePositionMs:l.current,isFullyPlayed:s,onToggleMarkAsPlayed:d}})(e,H),z=[u,...f?[f]:[]].join(" • "),{draggable:K,onDragStart:Q}=(0,re.P)({itemUris:[m],dragLabelText:z}),X=(0,Et.v)(m),Z=(0,i.useCallback)((e=>{if(e.stopPropagation(),I)D.logInteraction(L.playButtonFactory().hitShowPaywall({paywalledItem:m}));else{const e=(0,ht.$I)({isPlaying:H,isActive:U,spec:L.playButtonFactory(),logger:D,uri:m});F({loggingParams:e})}}),[U,H,D,L,F,I,m]),ee=(0,y.jsx)(ot.U,{children:c(u,ct.u.TITLE)}),te=(0,y.jsx)(at.k,{description:A,children:(0,y.jsx)(rt.X,{isExplicit:!!g,is19PlusOnly:x,isPaid:b,children:p.milliseconds&&(0,y.jsx)(St.j,{isPlaying:!1,fullyPlayed:V,durationMs:p.milliseconds,position:W,releaseDate:S.date})})}),ie=(0,y.jsx)(q.b,{uri:m,uid:s,contextUri:t,showUri:P,isPlayed:V,onMarkAsPlayed:$}),ne=(0,y.jsx)(qe.M,{className:ze()({[Tt.A.visibleAction]:B}),isAdded:B,onClick:()=>{k(!B)},size:Y,isEpisode:!0,condensedAll:!0}),ae=(0,y.jsx)(gt.g,{size:Y,uri:m}),le=(0,y.jsxs)(y.Fragment,{children:[X?ae:ne,(0,y.jsx)(Xe.I,{className:ze()({[Tt.A.visibleAction]:(0,mt.X)(M)}),uri:m,size:Y,canDownload:!b||b&&R,onClick:(e,t)=>{t===xt.NV.ADD&&D.logInteraction(L.downloadButtonFactory().hitDownload({itemToDownload:m}))},condensedAll:!0}),(0,y.jsx)(Je.w,{uri:m,sharingInfo:a??null,interactionData:{intent:"share",type:"click"},size:Y,onClick:()=>{D.logInteraction(L.shareButtonFactory().hitShare({entityToBeShared:m,shareId:a?.shareId??""}))},condensedAll:!0}),(0,y.jsx)(et.b,{menu:ie,children:(0,y.jsx)(Ze.e,{label:l.Ru.get("more.label.context",u),size:Y,onClick:()=>{D.logInteraction(L.contextMenuButtonFactory().hitUiReveal())},condensedAll:!0})})]}),se=(0,y.jsx)(lt.F,{actions:le,playButton:(0,y.jsx)(J.f,{enabled:b&&!R,showUri:P||void 0,children:(0,y.jsx)(it.q,{onClick:Z,isPlaying:H,ariaPlayLabel:l.Ru.get("tracklist.a11y.play",u,f),ariaPauseLabel:l.Ru.get("tracklist.a11y.pause",u,f),locked:I})})}),oe=(0,y.jsx)(st.e,{images:T,name:u,type:h,breakpoint:N}),ce=(0,y.jsxs)(Qe.j,{lineClamp:2,children:[j&&(0,y.jsx)(At.T,{}),f&&_&&(0,y.jsx)(G.h,{menu:(0,y.jsx)(tt.H,{uri:P??""}),onShow:()=>{D.logInteraction(L.podcastLinkFactory().secondaryHitUiReveal())},children:(0,y.jsx)(ut.N,{to:_,onClick:()=>{D.logInteraction(L.podcastLinkFactory().hitUiNavigate({destination:_}))},children:(0,y.jsx)(Le.E,{variant:"bodySmall",semanticColor:"textSubdued",children:c(f,ct.u.SUBTITLE)})})})]});return(0,y.jsx)(yt.r,{spec:L,children:(0,y.jsx)(G.h,{menu:ie,onShow:()=>{D.logInteraction(L.secondaryHitUiReveal())},children:(0,y.jsx)(nt.k,{draggable:K,onDragStart:Q,breakpoint:N,id:`book-${m}`,media:oe,title:ee,body:te,subtitle:ce,footer:se,isActive:U,onClick:()=>{v(w)},showSeparator:o,...d})})})}));var Lt=r(63898),ft=r(28944),Pt=r(39076),_t=r(27316),bt=r(34629),Rt=r(16323);const It=({renderItem:e})=>{const t=(0,bt.v7)(),{getItem:r,nrValidItems:n,invalidateCache:a}=(0,Pt.K_)(),{playlist:{metadata:l}}=(0,ft.gU)();(0,Rt.H)(l.uri,a);const s=(0,i.useCallback)((e=>(0,y.jsx)("div",{style:{height:e}})),[]),o=(0,i.useCallback)(((t,i)=>{const n=r(t);return n?e(n,t):s(`${i}px`)}),[r,e,s]),c="POP"===(0,Ke.wQ)()?0:10;return(0,y.jsx)(Lt.R,{firstInteractiveIsWrapper:!0,"aria-rowcount":n,"aria-colcount":6,children:(0,y.jsx)(_t.M,{totalCount:n,estimatedHeight:200,renderItem:o,renderPlaceholder:s,scrollNodeRef:t,nrRowsOverscan:10,persistanceKey:l.uri,nrInitialInView:c})})};var jt=r(56914);const vt=({children:e,index:t})=>(0,y.jsx)(jt.W,{"aria-posinset":t,children:e});var Ot=r(31965);const wt=(0,i.memo)((function({usePlayContextItem:e,contextUri:t}){const{contentsOptions:{filter:r}}=(0,We.g)(),n=(0,i.useCallback)(((e,t)=>"string"!=typeof r?e:t===ct.u.TITLE||t===ct.u.SUBTITLE?(0,y.jsx)(ee.M,{searchWords:[r],textToHighlight:e}):e),[r]),a=(0,i.useCallback)(((r,i)=>(0,Ot.xp)(r)?(0,y.jsx)(vt,{index:i,children:(0,y.jsx)(Dt,{index:i,episode:r,contextUri:t,usePlayContextItem:e,showSeparator:0!==i,highlightText:n})},`${r.uri}/${i}`):null),[t,n,e]);return(0,y.jsx)(It,{renderItem:a})}));function Nt(e){return{url:e.url,width:e.width,height:e.height}}var Bt=r(38161),kt=r(12669),Mt=r(7939),Ht=r(67275),Ut=r(41184);const Ft="zX8QX7OLPnU9eLrJV3Cd",Yt="hILz7Al7z5E0yyQdBo_K",Wt=()=>{const e=(0,kt.z)("#006450"),t=(0,ae.n)(),{user:r}=(0,Ne.d4)(Mt.Ht),a=(0,Fe.m)(),{canSort:c,canFilter:d}=a.getCapabilities(),{playlist:{metadata:u},contentsOptions:A}=(0,We.g)(),g=(0,i.useMemo)((()=>{const e=(e=>({type:ge.c.USER,uri:e?.uri??"",username:e?.id??"",displayName:e?.display_name??null,images:e?.images?.map(Nt)??[]}))(r);return{...u,owner:e,name:l.Ru.get("sidebar.your_episodes")}}),[u,r]),{isPlaying:E,togglePlay:h,usePlayContextItem:m}=(0,ue.P)((0,Ut.A)(g.uri,A),{featureIdentifier:"your_library",referrerIdentifier:"your_library"},{shuffle:!1,repeat:Ht.p.REPEAT_NONE}),p=r?(0,Be.fH)(r.id,"your-episodes").toURI():"";return(0,y.jsxs)("section",{className:Ft,"data-testid":"your-episodes-page",children:[(0,y.jsx)(s.Q,{children:l.Ru.get("sidebar.your_episodes")}),(0,y.jsx)(we,{metadata:g,backgroundColor:e,isPlaying:E,isOnline:t,togglePlay:h}),(0,y.jsxs)("div",{children:[(0,y.jsx)(Q,{metadata:g,backgroundColor:e,isPlaying:E,isOnline:t,togglePlay:h,canSort:c||d}),(0,y.jsxs)("div",{className:"contentSpacing",children:[(0,y.jsx)(Ye,{className:Yt,filterPredicates:[V.YB.UNPLAYED,V.YB.AVAILABLE_OFFLINE,V.YB.IN_PROGRESS]}),g.totalLength>0?(0,y.jsx)(wt,{usePlayContextItem:m,contextUri:p}):(0,y.jsx)(o.p,{message:l.Ru.get("collection.empty-page.episodes-subtitle"),title:l.Ru.get("collection.empty-page.episodes-title"),linkTo:"/genre/podcasts-web",linkTitle:l.Ru.get("collection.empty-page.shows-cta"),renderInline:!0,children:(0,y.jsx)(n.P,{"aria-hidden":"true"})})]})]})]})},$t=(0,i.memo)((function(){return(0,y.jsx)($e.W,{uri:Bt.H,children:(0,y.jsx)(Wt,{})})}));var Vt=r(36269),zt=r(94961);const Kt=({metadata:e,canSort:t})=>{const r=(0,kt.z)("#006450"),a=(0,ae.n)(),{sortState:c}=(0,i.useContext)(D),{filter:A}=(0,i.useContext)(u.g),{isPlaying:g,togglePlay:E,usePlayContextItem:h}=(0,ue.P)({uri:e.uri,metadata:{[zt.W.SORTING_CRITERIA]:F(c.option,c.order),[zt.W.FILTERING_PREDICATE]:(0,d.ly)(A)}},{featureIdentifier:"your_library",referrerIdentifier:"your_library"},{shuffle:!1,repeat:Ht.p.REPEAT_NONE});return(0,y.jsxs)("section",{className:z,"data-testid":"your-episodes-page",children:[(0,y.jsx)(s.Q,{children:l.Ru.get("sidebar.your_episodes")}),(0,y.jsx)(we,{metadata:e,backgroundColor:r,isPlaying:g,isOnline:a,togglePlay:E}),(0,y.jsxs)("div",{children:[(0,y.jsx)(Q,{metadata:e,backgroundColor:r,isPlaying:g,isOnline:a,togglePlay:E,canSort:t}),(0,y.jsx)("div",{className:"contentSpacing",children:e.totalLength>0?(0,y.jsx)(De,{contextUri:e.uri,usePlayContextItem:h}):(0,y.jsx)(o.p,{message:l.Ru.get("collection.empty-page.episodes-subtitle"),title:l.Ru.get("collection.empty-page.episodes-title"),linkTo:"/genre/podcasts-web",linkTitle:l.Ru.get("collection.empty-page.shows-cta"),renderInline:!0,children:(0,y.jsx)(n.P,{"aria-hidden":"true"})})})]})]})},Qt=(0,i.memo)((function(){const e=(0,$.f)().getCapabilities(),t=(0,Vt.u)();return t?(0,y.jsx)(L,{uri:t.uri,defaultSortOption:m.ADDED_AT,children:(0,y.jsx)(u.s,{uri:t.uri,children:(0,y.jsx)(Kt,{metadata:t,canSort:e.canSortTracksAndEpisodes&&t.totalLength>0})})}):(0,y.jsx)(c.A,{hasError:!1,errorMessage:l.Ru.get("error.not_found.title.page"),loadOffline:e.canModifyOffline})})),Gt=(0,i.memo)((function(){return(0,a.NC)(W.ucV)?(0,y.jsx)($t,{}):(0,y.jsx)(Qt,{})}))},41184:(e,t,r)=>{function i(e,t){return{uri:e,playlistQueryOptions:t}}r.d(t,{A:()=>i})},74448:(e,t,r)=>{r.d(t,{A:()=>i});const i={entityRow:"ci11tAmTK1LnxThQkXPy",actions:"_2sJPwAAp1wY1Ftke6iFe",visibleAction:"yuNzasMLs7hvemHI4d8Q",active:"dNymWGRudMrTI6ot9FBg",title:"luWcW9hkbLdFxRQB0yGb",body:"abYR6tZoE7BdzThmWTb0",footer:"GOcKQxqNMhGzbGiAXBig",separator:"yFQjuDAhri_egM1pwn70"}}}]);
//# sourceMappingURL=xpui-routes-collection-episodes.js.map