-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2894.js
1 lines (1 loc) · 11.6 KB
/
2894.js
1
"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[2894],{30449:(e,a,s)=>{s.d(a,{e:()=>c});var n=s(30758),o=s(72418),t=s(56116),i=s(67759),l=s(86070);const r=n.memo((function({uri:e,size:a=o.M.md,className:s,onClick:r,showUpsell:c,canDownload:d,condensed:u}){const[m,h]=(0,i.A)(e),x=(0,t.W)(),p=(0,n.useCallback)((()=>{x({targetUri:e,intent:m?"remove-from-library":"add-to-library",type:"click"}),h(!m)}),[x,e,m,h]);return(0,l.jsx)(o.f,{className:s,isFollowing:m,onFollow:p,onClick:r,uri:e,size:a,showUpsell:c,canDownload:d,condensed:u})})),c=n.memo((function(e){return(0,l.jsx)(r,{...e})}))},93114:(e,a,s)=>{s.d(a,{w:()=>m});var n=s(30758),o=s(97500),t=s.n(o),i=s(8126),l=s(93492),r=s(68692),c=s(73080);const d="pvGZ831aNzHTQMZ8CA_u";var u=s(86070);const m=(0,n.memo)((function({onClick:e=()=>{},size:a,className:s,uri:o,sharingInfo:m,interactionData:h,ariaLabel:x=l.Ru.get("mwp.list.item.share"),condensedAll:p,placement:g,semanticColor:v,disableTooltip:j}){const{onCopyLink:b}=(0,c.L)({sharingInfo:m,uri:o,interactionData:h}),y=(0,n.useCallback)((()=>{b(),e()}),[e,b]);return(0,u.jsx)(r.a,{ariaLabel:x,size:a,onClick:y,className:t()(d,s),icon:i.C,condensedAll:p,placement:g,condensed:!0,semanticColor:v,disableTooltip:j})}))},18065:(e,a,s)=>{s.d(a,{k:()=>de});var n=s(30758),o=s(97500),t=s.n(o),i=s(85387),l=s(13505),r=s(75635),c=s(55158),d=s(94154),u=s(94934),m=s(12431),h=s(72574),x=s(93492),p=s(3585),g=s(555),v=s(90591);const j="rFwxt8s8DYY8p1O7tYZW",b="sA2HogGQNi8R_zpCWei5",y="H92pPTuqDR5DcoTtjcb3";var k=s(86070);const C=({cardHeaderText:e,buttonText:a,buttonTarget:s,className:o})=>{const i=(0,n.useCallback)((e=>{e.stopPropagation()}),[]),r=(0,h.o_h)(s).toURLPath(!0);return(0,k.jsxs)("div",{className:t()(j,o),onClick:i,children:[(0,k.jsxs)("div",{className:b,children:[(0,k.jsx)(p.p,{className:y,size:"small",semanticColor:"textBase"}),(0,k.jsx)(l.E,{as:"span",variant:"bodyMediumBold",semanticColor:"textBase",children:e})]}),(0,k.jsx)(g.$,{size:"small",colorSet:"invertedLight",component:v.v,href:r,children:a})]})};var f=s(33746),N=s(30449),w=s(80352),E=s(10161),T=s(93114),P=s(585),R=s(92734),D=s(31531),I=s(96205),S=s(20951),B=s(46777),M=s(21081),L=s(45176),z=s(82362);const U="T9iBYqbERZHdwDl0U2tC",A="DS4BYgmEO7Wy5RutUt60",F="N2Fkohxhgu1_QAWUDc4O",H="hGbRiYkIjjy4sJvor0A2",O="OgaF7O4ER8AvZfFd6JdJ",G="yajqMP67F0nOikjbvLX9",_="bdGDIiYj50H66Hx5uevz",Z="kiT5NMttSzIDbtqBKc1J",W="TG1hsDPHeO5QUf4EQasO",Y="_NdByrVnM0OS7aK_GfRn",V="afJf_mGi7ghd5WYQwPLb",Q="UpgTvLnGW6GFjAUfaPXH",q="kxVuYXZ4sVWn6XuJgFhX",J="UvdRnanMNuY384mjTf2l",X="fmu47VumZ84IoKgMK1yU",$="dUScIGoP9fWn5IVsztB7",K={intent:"share",type:"click",itemIdSuffix:"contextmenu/episode/share"},ee=n.memo((function({episodeUri:e,showUri:a,sharingInfo:s,size:o,canDownload:i,requestId:l,onMarkAsPlayed:r,onMoreButtonClick:c,name:d,fullyPlayed:u,index:m}){const h=(0,M.T)(e),{spec:p,logger:g}=(0,z.r)(f.d,{data:{uri:e,reason:l||"",position:m}}),v=o===S.E.LARGE?"medium":"small",j=(0,n.useMemo)((()=>(0,k.jsx)(N.e,{uri:e,size:v,className:t()({[O]:(0,B.X)(h)}),onClick:(a,s)=>{s===L.NV.ADD?g.logInteraction(p.downloadButtonFactory().hitDownload({itemToDownload:e})):L.NV.REMOVE&&g.logInteraction(p.downloadButtonFactory().hitRemoveDownload({itemToRemoveFromDownloads:e}))},canDownload:i,condensed:!0})),[e,h,p,g,v,i]),b=(0,n.useMemo)((()=>(0,k.jsx)(T.w,{uri:e,sharingInfo:s,interactionData:K,size:v,onClick:()=>{g.logInteraction(p.copyLinkFactory().hitShare({entityToBeShared:e,shareId:s?.shareId||""}))}})),[e,s,p,g,v]),y=(0,n.useMemo)((()=>(0,k.jsx)(E.b,{uri:e,size:v,className:O,onClick:a=>{a?g.logInteraction(p.saveToLibraryButtonFactory().hitLike({itemToBeLiked:e})):g.logInteraction(p.saveToLibraryButtonFactory().hitRemoveLike({itemNoLongerLiked:e}))},condensed:!0})),[e,p,g,v]),C=(0,I.v)(e),U=(0,n.useMemo)((()=>(0,k.jsx)(D.g,{size:v,uri:e,className:O})),[e,v]),A=(0,n.useMemo)((()=>(0,k.jsx)(P.b,{menu:(0,k.jsx)(R.b,{uri:e,showUri:a,isPlayed:u,onMarkAsPlayed:r}),children:(0,k.jsx)(w.e,{size:v,label:x.Ru.get("more.label.context",d),onClick:c})})),[e,u,d,r,c,a,v]);return(0,k.jsxs)(k.Fragment,{children:[C?U:y,j,b,A]})}));var ae=s(5119),se=s(55214),ne=s(37926),oe=s(38377),te=s(13317),ie=s(75189),le=s(78172),re=s(72242),ce=s(74505);const de=n.memo(n.forwardRef((function({uri:e,name:a,showName:s,showUri:o,size:p,description:g,durationMs:v,images:j,badges:b,fullyPlayed:y,releaseDate:f,resumePositionMs:N,isCurrentlyPlaying:w,isPlaying:E,onContextMenu:T,onTouchStart:P,onTouchEnd:R,handlePlaybackClick:D,draggable:I,handleDragStart:B,handleClick:M,position:L,index:z,isPlayable:O,isPaywalled:K,isUserSubscribed:de,isCourseLesson:ue,episodeSharingInfo:me,playButtonWrapper:he=null,highlightText:xe=e=>e,onMarkAsPlayed:pe,contentInformation:ge,requestId:ve,mediaTypes:je,onMoreButtonClick:be,status:ye,variant:ke="default"},Ce){const fe=(0,i.Zp)(),Ne=w&&E,we=p===S.E.LARGE,Ee=(0,h.o_h)(e).toURLPath(!0),Te=(0,h.o_h)(o)?.toURLPath(!0),Pe=(0,se.hD)(e,f?.isoString,N,y),Re=K&&!de,De=je?.includes(re.C.Video)??!1,Ie=Re||O,Se=x.Ru.get("tracklist.a11y.play",a,s),Be=x.Ru.get("tracklist.a11y.pause",a,s),Me=(0,n.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),ue||(fe(Ee),M&&M(e))}),[ue,M,fe,Ee]),Le=(0,n.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),Te&&fe(Te)}),[Te,fe]),ze=(0,n.useCallback)((e=>{e.stopPropagation(),Re||D(e)}),[D,Re]),Ue=(0,k.jsx)(ne.R,{size:"small",version:"next-best-episode"===ke?ne.H.primary:ne.H.secondary,onClick:ze,isPlaying:Ne,disabled:!Ie,locked:Re,ariaPlayLabel:Se,ariaPauseLabel:Be}),Ae=he?he(Ue):Ue,Fe=(0,k.jsx)(k.Fragment,{children:ye&&(0,k.jsx)(l.E,{variant:"bodySmall",semanticColor:"textSubdued",paddingBottom:r.vw,children:ye})}),He=(0,k.jsxs)(c.d,{className:F,href:Ee,onClick:Me,lineClamp:2,children:[Pe&&(0,k.jsx)(se.Tc,{}),xe(a)]}),Oe=(0,k.jsxs)(d.j,{lineClamp:2,paddingBottom:we?r.v4:void 0,children:[De&&(0,k.jsx)(oe.T,{className:V}),s&&Te&&(0,k.jsx)(ae.N,{to:Te,onClick:Le,children:(0,k.jsx)(l.E,{variant:"bodySmall",semanticColor:"textSubdued",children:xe(s)})})]}),Ge=(0,k.jsxs)("div",{className:J,children:[(0,k.jsx)(u.v,{lineClamp:2,paddingBottom:we?r.vw:void 0,children:xe(g??"")}),(0,k.jsxs)("div",{className:_,children:[(0,k.jsx)("div",{className:Q,children:b}),(0,k.jsx)(ce.j,{isPlaying:Ne,fullyPlayed:y,durationMs:v,releaseDate:f,resumePositionMs:N,position:w?L:void 0})]})]}),_e=(0,k.jsxs)("div",{className:q,children:[(0,k.jsx)("div",{onClick:e=>{e.stopPropagation()},className:H,children:(0,k.jsx)(ee,{episodeUri:e,showUri:o??"",sharingInfo:me,size:p,canDownload:!K||K&&de,requestId:ve,index:z,name:a,fullyPlayed:y,onMarkAsPlayed:pe,onMoreButtonClick:be})}),(0,k.jsx)("div",{children:Ae})]}),Ze="default"===ke&&(0,k.jsx)("div",{className:Z,children:(0,k.jsx)(te.b,{className:t()(W,{[Y]:we}),type:le.c.EPISODE,size:(e=>{switch(e){case S.E.LARGE:return ie.Qe.SIZE_112;case S.E.MEDIUM:return ie.Qe.SIZE_64;default:return ie.Qe.SIZE_48}})(p),title:a,shape:te.u.ROUNDED_CORNERS,images:j})});return(0,k.jsxs)("div",{className:t()(U,{[A]:w,[$]:"next-best-episode"===ke,[G]:ue}),"data-testid":`episode-${z}`,draggable:I&&!!B,onDragStart:B,onClick:Me,onContextMenu:T,onTouchStart:P,onTouchEnd:R,children:[ge&&(0,k.jsx)(C,{className:X,cardHeaderText:ge.cardHeaderText,buttonText:ge.buttonText,buttonTarget:ge.buttonTarget}),(0,k.jsx)(m.v,{size:"xxl",ref:Ce,media:Ze,title:He,id:`episode-${z}`,subtitle:s&&Te?Oe:Ge,pretitle:Fe,body:s&&Te?Ge:void 0,variant:"naked",footer:_e,hoverBackgroundColor:"backgroundHighlight",layout:we?"wide":"regular",horizontalGap:we?r.lT:r.CJ,verticalGap:r.v4,paddingBlockStart:r.CD,paddingBlockEnd:r.CD})]})})))},45289:(e,a,s)=>{s.d(a,{N:()=>S});var n=s(97500),o=s.n(n),t=s(54981),i=s(86378),l=s(98480),r=s(13505),c=s(555),d=s(30758),u=s(99998);const m="pH79IoVAcUC3Hn_VbS3B",h="v24nSqF2h73Ep3EJNkNl",x="OPvfrmGjqSYso3Me5FCd",p="TCbF8QBxkRc0mqI5_lzg",g="ZYBmZ8ghf3oA7NH2mI7r",v="Jtt6TUrz6TioPQsKXIY7",j="yzZ_VZHrZBb3REPcU7tD";var b=s(86070);const y=({"aria-label":e,children:a})=>{const s=(0,d.useRef)(null),n=(0,i.Oj)();return(0,b.jsx)(u.s,{focusTrapOptions:{initialFocus:()=>s.current??!1,onPostDeactivate:()=>{n({type:"close"})}},children:(0,b.jsx)("div",{"aria-label":e,tabIndex:-1,ref:s,className:h,children:a})})},k=({title:e,body:a,cta:s,onClose:n})=>(0,b.jsxs)(y,{"aria-label":e,children:[(0,b.jsx)(r.E,{as:"div",variant:"bodyMediumBold",className:x,children:e}),(0,b.jsx)(r.E,{as:"div",variant:"bodySmall",className:p,children:a}),(0,b.jsx)("div",{className:g,children:(0,b.jsx)(c.$,{size:"small",colorSet:"invertedLight",onClick:n,children:s})})]});var C=s(61e3),f=s(93492);const N=({onClose:e})=>{const a=f.Ru.get("paywalls.modal-heading"),s=(0,b.jsxs)(b.Fragment,{children:[f.Ru.get("paywalls.modal-body-p1"),(0,b.jsx)("br",{}),(0,b.jsx)("br",{}),f.Ru.get("paywalls.modal-body-p2"),(0,b.jsx)("br",{}),(0,b.jsx)("br",{}),f.Ru.get("paywalls.modal-body-p3")]});return(0,b.jsxs)(y,{"aria-label":a,children:[(0,b.jsx)(r.E,{as:"div",variant:"bodyMediumBold",className:x,children:a}),(0,b.jsx)(r.E,{as:"div",variant:"bodySmall",className:p,children:s}),(0,b.jsx)("div",{className:g,children:(0,b.jsx)(C.H,{size:"small",semanticColor:"textBase",onClick:e,children:f.Ru.get("close")})})]})};var w=s(94154),E=s(81751);const T=({upsellExplanation:e,gatedEntityRelations:a,onClose:s})=>{const n=e.title,t=a.entitiesWithValueProps.at(0),i=t?.summary?.forUserWithoutAccess,l=t?.valueProps.map((({displayText:e})=>e))??[],d=l?.length>1;return(0,b.jsxs)(y,{"aria-label":n,children:[(0,b.jsx)(r.E,{as:"div",variant:"bodyMediumBold",className:x,children:n}),(0,b.jsxs)(r.E,{as:"div",variant:"bodySmall",className:p,children:[i,l&&d&&(0,b.jsx)(w.j,{hasTextSeparator:!0,semanticColor:"textBase",children:l})]}),(0,b.jsxs)("div",{className:o()(g,v),children:[(0,b.jsx)(C.H,{size:"small",condensed:!0,onClick:s,children:f.Ru.get("action-trigger.button.not-now")}),(0,b.jsx)(c.$,{size:"small",colorSet:"invertedLight",href:e.url,iconTrailing:E.H,children:e.cta})]})]})},P=({title:e,body:a,cta:s,url:n,onClose:o})=>(0,b.jsxs)(y,{"aria-label":e,children:[(0,b.jsx)(r.E,{as:"div",variant:"bodyMediumBold",className:x,children:e}),(0,b.jsx)(r.E,{as:"div",variant:"bodySmall",className:p,children:a}),(0,b.jsxs)("div",{className:g,children:[(0,b.jsx)(C.H,{size:"small",semanticColor:"textBase",onClick:o,children:f.Ru.get("close")}),(0,b.jsx)(c.$,{size:"small",colorSet:"invertedLight",href:n,children:s})]})]});var R=s(97137),D=s(43953);const I=({showUri:e})=>{const a=(0,i.Oj)(),s=function(e){const a=(0,D.T)(),[s,n]=(0,d.useState)(null);return(0,d.useEffect)((()=>{!async function(){try{const s=await a.getAccessInfo(e);n(s)}catch(e){console.error(e),n(void 0)}}()}),[a,e]),s}(e);if(null===s)return null;let n=(0,b.jsx)(N,{onClose:()=>a({type:"close"})});return s?.basic&&(n=(0,b.jsx)(k,{...s.basic,onClose:()=>a({type:"close"})})),s?.upsellLink&&(n=(0,b.jsx)(P,{...s.upsellLink,onClose:()=>a({type:"close"})})),s?.gatedEntityRelations&&s?.upsellLink&&(n=(0,b.jsx)(T,{upsellExplanation:s.upsellLink,gatedEntityRelations:s.gatedEntityRelations,onClose:()=>a({type:"close"})})),(0,b.jsxs)(t.A,{colorSet:"announcement",className:m,onClick:e=>{e.stopPropagation()},onContextMenu:e=>{e.stopPropagation()},children:[n,(0,b.jsx)("div",{"data-popper-arrow":"",className:o()(j)})]})},S=({children:e,enabled:a,showUri:s,renderInline:n=!0})=>a&&s?(0,b.jsx)(R.y,{trigger:"click",action:"toggle",offset:[-2,20],renderInline:n,content:(0,b.jsx)(I,{showUri:s}),children:e}):(0,l.d)(e)?e(!1,(()=>{}),{current:null}):e},4438:(e,a,s)=>{s.d(a,{y:()=>i});var n=s(93492),o=s(68320),t=s(86070);const i=()=>(0,t.jsx)(o.E,{ariaLabel:n.Ru.get("paid"),text:n.Ru.get("paid")})},31531:(e,a,s)=>{s.d(a,{g:()=>n.g});var n=s(27)},96205:(e,a,s)=>{s.d(a,{v:()=>n.v});var n=s(56454)},46777:(e,a,s)=>{s.d(a,{X:()=>o});var n=s(45176);function o(e){return[n.kw.YES,n.kw.DOWNLOADING,n.kw.WAITING].includes(e)}}}]);