2 lines
7.5 KiB
JavaScript
2 lines
7.5 KiB
JavaScript
|
"use strict";(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[4126],{22315:(e,a,s)=>{s.d(a,{p:()=>u,q:()=>i.q});var t=s(59496),o=s(61740),n=s(66632),i=s(13655),r=s(6664),l=s(95663),c=s(4637);const d=t.memo((function({uri:e,size:a=i.q.md,className:s,onClick:d,showUpsell:u}){const[m,h]=(0,n.Z)(e),p=(0,o.I0)(),x=(0,l.o)(),g=(0,t.useCallback)((()=>{x({targetUri:e,intent:m?"remove-from-library":"add-to-library",type:"click"}),h(!m),p(m?(0,r.SS)():(0,r.kK)())}),[x,e,m,h,p]);return(0,c.jsx)(i.o,{className:s,isFollowing:m,onFollow:g,onClick:d,uri:e,size:a,showUpsell:u})})),u=t.memo((function(e){return(0,c.jsx)(d,{...e})}))},54126:(e,a,s)=>{s.d(a,{X:()=>be});var t=s(59496),o=s(84875),n=s.n(o),i=s(33103),r=s(89605),l=s(94041),c=s(56162),d=s(56876),u=s(50346),m=s(3802),h=s(55345);var p=s(17201),x=s(81281),g=s(42531),k=s(40780),y=s(54186),j=s(9374),b=s(82998),f=s(37840),N=s(14241),v=s(22315),D=s(35394),C=s(46525),P=s(8038),I=s(64719),U=s(23888);const S="pvGZ831aNzHTQMZ8CA_u";var w=s(4637);const T=(0,t.memo)((function({onClick:e=(()=>{}),size:a,className:s,uri:o,sharingInfo:i,interactionData:r}){const{onCopyLink:l}=(0,U.y)({sharingInfo:i,uri:o,interactionData:r}),c=(0,t.useCallback)((()=>{l(),e()}),[e,l]);return(0,w.jsx)(I.E,{ariaLabel:m.ag.get("mwp.list.item.share"),size:a,onClick:c,className:n()(S,s),icon:P.M,condensed:!0})}));var E=s(73769),M=s(59200),L=s(82538),z=s(65439),A=s(43064),B=s(96170);const R="XvNAiCvnj8kWsiN_AcJK",F="FynKcUDwVWYYbDJvu90x",G={intent:"share",type:"click",itemIdSuffix:"contextmenu/episode/share"},Z=t.memo((function({episodeUri:e,showUri:a,sharingInfo:s,canDownload:o,requestId:i,onMarkAsPlayed:r,onMoreButtonClick:l,name:c,fullyPlayed:d,index:u}){const h=(0,A._)(e),{spec:p,logger:x}=(0,B.fU)(f.createDesktopEpisodeBlockEventFactory,{data:{uri:e,reason:i||"",position:u}}),g=(0,t.useMemo)((()=>(0,w.jsx)(v.p,{uri:e,size:v.q.sm,className:n()({[R]:(0,z.y)(h)}),onClick:(a,s)=>{s===L.mc.ADD?x.logInteraction(p.downloadButtonFactory().hitDownload({itemToDownload:e})):L.mc.REMOVE&&x.logInteraction(p.downloadButtonFactory().hitRemoveDownload({itemToRemoveFromDownloads:e}))}})),[e,h,p,x]),k=(0,t.useMemo)((()=>(0,w.jsx)(T,{uri:e,sharingInfo:s,interactionData:G,onClick:()=>{x.logInteraction(p.copyLinkFactory().hitShare({entityToBeShared:e,shareId:s?.shareId||""}))}})),[e,s,p,x]),y=(0,t.useMemo)((()=>(0,w.jsx)(C.w,{uri:e,size:N.q.sm,className:F,onClick:a=>{a?x.logInteraction(p.saveToLibraryButtonFactory().hitLike({itemToBeLiked:e})):x.logInteraction(p.saveToLibraryButtonFactory().hitRemoveLike({itemNoLongerLiked:e}))}})),[e,p,x]),j=(0,t.useMemo)((()=>(0,w.jsx)(M.yj,{menu:(0,w.jsx)(E.k,{uri:e,showUri:a,isPlayed:d,onMarkAsPlayed:r}),children:(0,w.jsx)(D.z,{size:D.q.sm,label:m.ag.get("more.label.context",c),onClick:l})})),[e,d,c,r,l,a]);return(0,w.jsxs)(w.Fragment,{children:[k,o&&g,y,j]})}));var _=s(85556),q=s(79475),W=s(36844),O=s(41836),V=s(88333);const H="rFwxt8s8DYY8p1O7tYZW",Y="sA2HogGQNi8R_zpCWei5",J="H92pPTuqDR5DcoTtjcb3",Q=({cardHeaderText:e,buttonText:a,buttonTarget:s,className:o})=>{const i=(0,W.W6)(O.vp),r=(0,t.useCallback)((e=>{e.stopPropagation()}),[]),l=(0,u.EC)(s).toURLPath(!0);return i?(0,w.jsxs)("div",{className:n()(H,o),onClick:r,children:[(0,w.jsxs)("div",{className:Y,children:[(0,w.jsx)(_.W,{className:J,iconSize:16,semanticColor:"textBase"}),(0,w.jsx)(c.D,{as:"span",variant:"balladBold",semanticColor:"textBase",children:e})]}),(0,w.jsx)(q.D,{buttonSize:"sm",colorSet:"invertedLight",component:V.Z,href:l,children:a})]}):null},K="TT1tIewS2iI8Uz8kLuQB",X="Mn93NeoqnZzVnPIP83_9",$="bG5fSAAS6rRL8xxU5iyG",ee="g5gZaZVzR0tGT4pK6iEU",ae="DbMYFmOEEz9PH1h1zK9n",se="HLixBI5DbVZNC6lrUbAB",te="y9kEPjDek0J80YRf8JJw",oe="YhOAZFuFU1oI_YQSof4z",ne="DKIjGP8CcZyjr2O2HNST",ie="A7qeQBIk3sqr7bYadWA8",re="_IJaGA3ZdVU0NiTxbGsI",le="ij5_Bi2LfqgWwHzQBXJS",ce="o_TP9z7A8LQvMXujJC7N",de="LbePDApGej12_NyRphHu",ue="hFCGY5gjCjN10WzV2VQ4",me="gk0rZwqBxJjSeiWV5lgV",he="te8hrsPnSvx9SUkzV0ME",pe="V0pEigrddg3VxP_sTdAJ",xe="acjrpluRnLumVxPt2QG9",ge="upo8sAflD1byxWObSkgn",
|
||
|
//# sourceMappingURL=4126.js.map
|