PageSourceSearch

https://truefans.fm/_next/static/chunks/309.339baf3995ebb18a.js

js truefans.fm collected 2026-10-02 02:56:34 UTC 31,321 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[309],{76229:function(e,t,i){i.d(t,{Z:function(){return Z}});var n=i(63366),a=i(87462),o=i(67294),s=i(90512),l=i(94780),r=i(90948),d=i(28628),c=i(57922),u=i(74187),p=i(79998),m=i(1588),x=i(34867);function h(e){return(0,x.ZP)("MuiStepContent",e)}(0,m.Z)("MuiStepContent",["root","last","transition"]);var v=i(85893);const f=["children","className","TransitionComponent","transitionDuration","TransitionProps"],g=(0,r.ZP)("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.last&&t.last]}})((({ownerState:e,theme:t})=>(0,a.Z)({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:t.vars?`1px solid ${t.vars.palette.StepContent.border}`:`1px solid ${"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}`},e.last&&{borderLeft:"none"}))),j=(0,r.ZP)(c.Z,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({});var Z=o.forwardRef((function(e,t){const i=(0,d.i)({props:e,name:"MuiStepContent"}),{children:r,className:m,TransitionComponent:x=c.Z,transitionDuration:Z="auto",TransitionProps:b}=i,y=(0,n.Z)(i,f),{orientation:w}=o.useContext(u.Z),{active:I,last:P,expanded:C}=o.useContext(p.Z),N=(0,a.Z)({},i,{last:P}),S=(e=>{const{classes:t,last:i}=e,n={root:["root",i&&"last"],transition:["transition"]};return(0,l.Z)(n,h,t)})(N);let _=Z;return"auto"!==Z||x.muiSupportAuto||(_=void 0),(0,v.jsx)(g,(0,a.Z)({className:(0,s.Z)(S.root,m),ref:t,ownerState:N},y,{children:(0,v.jsx)(j,(0,a.Z)({as:x,in:I||C,className:S.transition,ownerState:N,timeout:_,unmountOnExit:!0},b,{children:r}))}))}))},75596:function(e,t,i){var n=i(10253),a=i(85893),o=i(93946),s=i(34386),l=i(15861),r=i(48885),d=i(18972),c=i(14313),u=i(63464),p=i(61869),m=i(78389);t.Z=function(e){var t=e.episodeId,i=e.reported,x=e.menuButton,h=(0,n.Z)((0,u.m)(),2),v=h[0],f=h[1],g=(0,n.Z)((0,p.R)(),2),j=g[0],Z=g[1],b=function(){j({backdrop:"transparent",maxWidth:"sm",content:(0,a.jsx)(m.Z,{handleClose:Z,docId:t})})};return x?(0,a.jsxs)(d.Z,{disabled:i,onClick:v?b:f,children:[(0,a.jsx)(r.Z,{children:(0,a.jsx)(c.A,{icon:"flag",dark:!0})}),(0,a.jsx)(l.Z,{variant:"subtitle2",children:i?"Reported":"Report Episode"})]}):(0,a.jsx)(s.Z,{arrow:!0,placement:"top",title:"Report",children:(0,a.jsx)(o.Z,{disabled:i,onClick:v?b:f,children:(0,a.jsx)(c.A,{icon:"flag",dark:!0})})})}},39402:function(e,t,i){var n=i(10253),a=i(85893),o=i(67294),s=i(69417),l=i(62898),r=i(61869),d=i(63464),c=i(14313);t.Z=function(e){var t=e.podcastId,i=e.postId,u=e.currency,p=e.totalPrice,m=e.totalSats,x=e.autoOpen,h=(0,n.Z)((0,r.R)(),2),v=h[0],f=h[1],g=(0,n.Z)((0,d.m)(),2),j=g[0],Z=g[1],b=function(){u&&p&&m&&(j?v({backdrop:"transparent",maxWidth:"sm",content:(0,a.jsx)(l.Z,{handleClose:f,currency:u,sats:m,value:p,podcastId:t,postId:i})}):Z())};return(0,o.useEffect)((function(){x&&b()}),[x]),(0,a.jsx)(s.Z,{sx:t?{padding:"8px",maxHeight:"22px",fontSize:"1.4rem"}:{alignSelf:"center",minWidth:"15rem",maxHeight:"40px"},variant:"contained",color:"warning",startIcon:(0,a.jsx)(c.A,{icon:"cart"}),onClick:b,children:"Buy"})}},13988:function(e,t,i){i.r(t),i.d(t,{default:function(){return Ie}});var n=i(26042),a=i(69396),o=i(10253),s=i(29815),l=i(85893),r=i(11163),d=i(51233),c=i(69417),u=i(15861),p=i(34386),m=i(16592),x=i(14313),h=i(5239),v=i(12732),f=i(50918),g=i(27197),j=i(67294),Z=i(88767),b=i(54285),y=i(47079),w=i(68302),I=i(37122),P=i(63316),C=i(8379),N=i(41664),S=i.n(N),_=i(18972),k=i(48885),R=i(84366),A=i(77615),E=i(33193),T=i(70489),D=i(90577),F=i(87193),W=i(90103),L=i(7454),B=i(6732),M=i(49005),z=i(61410),O=i(79643),V=i(68018),U=i(63098),H=i(75596),Y=i(7134),Q=i(15665),G=i(29913),q=i(33850),K=i(10611),$=i(61869),J=i(74628),X=i(38350),ee=i(60989),te=function(e){var t=e.season,i=e.episode,n=e.pubDate,a=e.playCount,o=e.duration,s=e.minLeft,r=e.displayTranscript,d=e.percentage,c=e.trailer,u=e.music,p=e.video,m=(e.isrc,e.aiGenerated),v=e.downloaded,f=e.hideTotalPlays,g=e.mostPopular,j=e.explicit,Z=void 0!==j&&j,b=e.displayDuration,y=void 0===b||b;return(0,l.jsxs)(l.Fragment,{children:[c&&(0,l.jsxs)("span",{className:"flex",children:["Trailer",(0,l.jsx)("span",{className:"bullet",children:"\xa0\u25e6"})]}),(t||i)&&(0,l.jsxs)("span",{className:"flex",children:[t?"S".concat(t," "):"",i?"E".concat(i):"",(0,l.jsx)("span",{className:"bullet",children:"\xa0\u25e6"})]}),(0,l.jsxs)("span",{className:"flex",children:[(0,h.p6)(n,{shortDate:!0,showYear:!0}),(0,l.jsx)("span",{className:"bullet",children:"\xa0\u25e6"})]}),y&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{children:s?"".concat((0,h.Ib)(s)," left"):(0,h.hK)(o||"0")}),(0,l.jsx)("span",{className:"bullet",children:"\u25e6"})]}),void 0!==d&&(0,l.jsxs)("span",{className:"percentage",children:["".concat(d,"% "),(0,l.jsx)("span",{children:"completed"}),(0,l.jsx)("span",{className:"bullet",children:"\xa0\u25e6"})]}),(0,h.fQ)(Z)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ee.W,{id:"explicit",color:q.Il.PRM_500}),(0,l.jsx)("span",{className:"bullet",children:"\xa0\u25e6"})]}),m&&(0,l.jsxs)("span",{className:"flex",children:[(0,l.jsx)(x.A,{icon:"robot",color:q.Il.PRM_500}),(0,l.jsx)("span",{className:"bullet",children:"\xa0\u25e6"})]}),v&&(0,l.jsxs)("span",{className:"flex",children:[(0,l.jsx)(x.A,{icon:"download",color:q.Il.PRM_500}),(0,l.jsx)("span",{className:"bullet",children:"\xa0\u25e6"})]}),p&&(0,l.jsxs)("span",{className:"flex",children:[(0,l.jsx)(x.A,{icon:"video",color:q.Il.PRM_500}),(0,l.jsx)("span",{children:"\xa0video"}),(0,l.jsx)("span",{className:"bullet",children:"\xa0\u25e6"})]}),r&&(0,l.jsx)(x.A,{icon:"captioning",color:q.Il.PRM_500}),!f&&(0,l.jsxs)("span",{className:"flex",children:[(0,l.jsx)(x.A,{size:"sm",icon:u?"musicNote":"play"}),(0,l.jsxs)("span",{children:["\xa0",null!==a&&void 0!==a?a:0]})]}),g&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"bullet",children:"\xa0\u25e6"}),(0,l.jsx)("span",{style:{padding:"0 4px",borderRadius:"4px",backgroundColor:q.Il.PRM_200},className:"flex",children:"Most Popular"})]})]})},ie=i(88402),ne=i(14924),ae=(0,i(1169).ZL)()((function(e){var t,i,n;return{root:(0,ne.Z)({paddingBottom:"2rem",paddingTop:"3rem",borderBottom:"1px solid #7070702b",position:"relative","&[aria-selected='true']":(t={backgroundColor:q.Il.PRM_100,padding:"48px 24px",borderBottom:0,marginBottom:80,"&.ad":{marginBottom:0},"&.promo":{padding:"48px 24px 24px"}},(0,ne.Z)(t,e.breakpoints.down("sm"),{padding:"48px 16px 24px"}),(0,ne.Z)(t,"& + div",{borderTop:"1px solid #7070702b"}),t)},e.breakpoints.down(800),{flexDirection:"column",alignItems:"center",gap:24,"& > a:first-of-type":{display:"none"}}),figContainer:{marginBottom:"10px","& > a":(0,ne.Z)({display:"none"},e.breakpoints.down(800),{display:"block"})},pin:{position:"absolute",top:12,left:24,display:"inline-flex",alignItems:"center",color:q.Il.PRM_400,fontSize:13,fontWeight:600,"& > svg":{animationIterationCount:2}},label:{position:"absolute",bottom:-70,left:0,right:0,display:"inline-flex",alignItems:"center",fontWeight:500,"& > button":(0,ne.Z)({display:"none"},e.breakpoints.down("sm"),{display:"flex"})},figure:(i={minWidth:"16.8rem",maxWidth:"16.8rem",height:"16.8rem",boxShadow:"0px 0px 20px #00000029"},(0,ne.Z)(i,e.breakpoints.down("md"),{minWidth:"20rem",maxWidth:"20rem",he
1ight:"20rem"}),(0,ne.Z)(i,e.breakpoints.down("sm"),{minWidth:"12rem",maxWidth:"12rem",height:"12rem"}),i),guests:(0,ne.Z)({},e.breakpoints.down(1e3),{"& > span > *:not(.z)":{display:"none"}}),metaContainer:(n={display:"flex",alignItems:"center",marginBottom:"1.2rem",width:"100%","& > div.bars":{marginRight:10},"& > div:last-child":{marginLeft:"auto"},"& > span:not(:last-child)":{marginRight:"1rem"},"& > span.flex":{display:"flex",alignItems:"center"},"& > svg":{marginRight:"0.5rem"}},(0,ne.Z)(n,e.breakpoints.down("md"),{flexWrap:"wrap",marginBottom:6,"& > span.percentage > span:first-of-type":{display:"none"}}),(0,ne.Z)(n,e.breakpoints.down("sm"),{marginTop:10,marginBottom:10,"& > div:last-child":{marginLeft:0}}),n),metaValue:(0,ne.Z)({},e.breakpoints.down("sm"),{flexDirection:"row",gap:6,alignItems:"center"}),outlineBtn:{maxHeight:"33px",width:"33px",padding:"6px 10px",border:"1px solid #7070703b",fontSize:14,borderRadius:25,minWidth:"auto",color:q.Il.NTR_200},vBtn:{fontSize:12,height:"100%",color:q.Il.NTR_400,"&.Mui-disabled":{opacity:0}},promoInfo:(0,ne.Z)({},e.breakpoints.down("sm"),{position:"absolute",bottom:16,left:16,width:"90%"}),infoButton:{height:31,fontSize:12,borderRadius:50,"& svg":{fontSize:"12px !important"}}}})),oe=function(e){var t=e.slug,i=e.episodeId,n=ae().classes;return(0,l.jsx)(S(),{passHref:!0,href:"/".concat(t,"/").concat(i,"?tab=").concat(A.UC.boosts),children:(0,l.jsx)(c.Z,{size:"small",color:"secondary",className:n.outlineBtn,component:"a",children:(0,l.jsx)(x.A,{icon:"comment",color:q.Il.NTR_200})})})},se=function(e){var t,i,n,a,s,r,v,f,g,Z,b,y,w,I,P,C,N,ee,ne,se,le,re,de,ce=e.episode,ue=e.podcast,pe=e.isPrivate,me=e.matchMobile,xe=e.downloaded,he=e.showFiat,ve=e.sk,fe=e.skv,ge=e.isAd,je=e.promoted,Ze=ae().classes,be=(0,o.Z)((0,K.o)(),1)[0],ye=(0,o.Z)((0,$.R)(),2),we=ye[0],Ie=ye[1],Pe=(0,E.x)(),Ce=Pe.audio,Ne=Pe.toggleAudio,Se=Pe.addToPlaylist,_e=Pe.playlist,ke=(0,j.useMemo)((function(){var e;return(0,h.Wv)(ce.enclosure.type)?ce.enclosure:null===(e=ce.alternateEnclosures)||void 0===e?void 0:e.find((function(e){return(0,h.Wv)(e.type)}))}),[ce.enclosure.type,ce.alternateEnclosures]),Re=(0,J.mH)(),Ae=(0,h.Ag)();if(!ue)return null;var Ee,Te,De,Fe=(null===(t=ce.meta)||void 0===t?void 0:t.valuePerMin)||0,We=(null===(i=ce.meta)||void 0===i?void 0:i.status)===R._$.FINISHED,Le=null===(n=ce.meta)||void 0===n?void 0:n.lastPlay,Be=null!==(Ee=null===(a=ce.value4value)||void 0===a?void 0:a.locked)&&void 0!==Ee?Ee:null===ue||void 0===ue||null===(s=ue.value4value)||void 0===s?void 0:s.locked,Me=ue.featuredEpisode===ce._id,ze=null!==(Te=ce.isPremium)&&void 0!==Te?Te:ue.isPremium,Oe=ce.paywall||ue.paywall,Ve=function(e){var t,i;Se({_id:ce._id,url:ce.enclosure.url,type:ce.enclosure.type,start:Le&&Le.end!==Le.duration?Le.end:void 0,epTitle:ce.title,podTitle:ue.title,podSlug:ue.slug,podId:ue._id,chapters:ce.chapters,satsPerMin:Fe,supported:(null===(t=ce.meta)||void 0===t?void 0:t.supported)?null===(i=ce.meta.totalPaid)||void 0===i?void 0:i.sats:0,img:ce.itunes.image||(null===ue||void 0===ue?void 0:ue.image.url)},!0===e)},Ue=(0,h.le)(ue.slug),He="/".concat(ue.slug,"/").concat(ce._id).concat(je?"?".concat(m.vU,"=1").concat(ve?"&".concat("country"===ve?"ct":"cat","=").concat(fe):""):"");return(0,l.jsxs)(d.Z,{direction:"row",className:"".concat(Ze.root," ").concat(ge?"ad":""),"aria-selected":Me||ge?"true":"false",gap:"30px",children:[(Me||ge)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("span",{className:Ze.pin,children:[(0,l.jsx)(x.A,{icon:ge?"ad":"pin",bounce:!0}),"\xa0"," ","".concat(ge?"Promotion":ce.type===R.Wf.TRAILER?"Welcome Trailer":"Featured Episode")]}),!ge&&(0,l.jsxs)(d.Z,{className:Ze.label,direction:"row",justifyContent:"space-between",children:[(0,l.jsx)("span",{children:ue.medium===X.VY.AUDIO_BOOK?"New Chapters":"New Episodes"}),(0,l.jsx)(U.Z,{})]})]}),(0,l.jsx)(S(),{href:He,children:(0,l.jsx)("a",{children:(0,l.jsx)("figure",{className:Ze.figure,children:(0,l.jsx)(T.Z,{src:Ue||ce.itunes.image||(null===ue||void 0===ue?void 0:ue.image.url),fallbackSrc:ue.image.url,layout:"fill",alt:ce.title,usePrefix:null===Ue})})})}),(0,l.jsx)(d.Z,{flex:1,direction:"column",alignItems:"flex-start",spacing:1,width:"100%",children:(0,l.jsxs)(d.Z,{direction:"column",width:"100%",minHeight:"16.8rem",children:[(0,l.jsxs)(d.Z,{direction:"row",gap:"10px",className:Ze.figContainer,children:[(0,l.jsx)(S(),{href:He,children:(0,l.jsx)("a",{children:(0,l.jsx)("figure",{className:Ze.figure,children:(0,l.jsx)(T.Z,{src:ce.itunes.image||(null===ue||void 0===ue?void 0:ue.image.url),fallbackSrc:ue.image.url,layout:"fill",alt:ce.title})})})}),(0,l.jsxs)(d.Z,{flex:"1",children:[(0,l.jsx)(S(),{href:He,passHref:!0,children:(0,l.jsx)(u.Z,{variant:"h3",sx:{maxWidth:"800px",fontSize:{xs:"18px",md:"2.6rem"}},className:"medium ellipsis-2",component:"a",children:ce.title})}),(0,l.jsxs)(u.Z,{variant:"subtitle1",component:"div",mr:"auto",color:"primary",className:Ze.metaContainer,children:[(null===Ce||void 0===Ce?void 0:Ce._id)===ce._id&&(0,l.jsx)(W.Z,{playing:(null===Ce||void 0===Ce?void 0:Ce.isPlaying)&&Ce._id===ce._id,paused:Ce&&!Ce.isPlaying&&Ce._id===ce._id}),(0,l.jsx)(te,{displayDuration:!We&&!ce.ended,playCount:ce.playCount,hideTotalPlays:ue.hideTotalPlays,duration:ce.itunes.duration,minLeft:Le?Le.duration-Le.end:void 0,percentage:null===(r=ce.meta)||void 0===r?void 0:r.completed,season:ce.itunes.season,episode:ce.itunes.episode,explicit:ce.itunes.explicit,pubDate:ce.pubDate,aiGenerated:null!==(De=ce.aiGenerated)&&void 0!==De?De:ue.aiGenerated,music:ue.medium===X.VY.MUSIC,trailer:ce.type===R.Wf.TRAILER,video:!!ke,isrc:ce.isrc,downloaded:xe,mostPopular:ce.mostPlayed}),Ae&&(null===(v=ce.meta)||void 0===v?void 0:v.valueRemaining)&&(ce.meta.valueRemaining.sats||ce.meta.supported||ze)?(0,l.jsxs)(d.Z,{alignItems:"flex-end",className:Ze.metaValue,children:[ce.meta.totalZapped&&(0,l.jsxs)("span",{className:"primary",children:[(0,l.jsx)("small",{children:"zapped:\xa0"}),ce.meta.totalZapped.formattedSats]}),(0,l.jsxs)("span",{className:"primary",children:[(0,l.jsx)("small",{children:Fe<0?"Earn: ":We||ce.paidPremium?"Paid: ":ce.meta.supported?"Supported: ":ze&&Oe?"Premium: ":ce.meta.lastPlay?"Remaining: ":Be?"Minimum":"Suggested: "}),ze&&Oe?"bitcoin"===Oe.type?(0,h.bx)(Oe.buyPrice):"".concat(m.CE[Oe.currency]).concat(Oe.buyPrice.toFixed(2)):he?We||ce.meta.supported?null===(f=ce.meta.totalPaid)||void 0===f?void 0:f.formattedFiat:ce.meta.valueRemaining.formattedFiat:We||ce.meta.supported?null===(g=ce.meta.totalPaid)||void 0===g?void 0:g.formattedSats:ce.meta.valueRemaining.formattedSats]})]}):null]})]})]}),(0,l.jsxs)(d.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",mb:2,gap:"16px",children:[ce.description&&(0,l.jsx)(u.Z,{className:"ellipsis-2",variant:"caption",children:ce.description}),!me&&(0,l.jsx)(d.Z,{direction:"row",alignItems:"center",spacing:2,className:Ze.guests,children:null===(Z=ce.persons)||void 0===Z?void 0:Z.filter((function(e){var t;return"guest"===(null===(t=e.role)||void 0===t?void 0:t.toLowerCase())})).map((function(e,t){var i,n;return(0,l.jsx)(p.Z,{title:e.name,arrow:!0,placement:"top",children:(0,l.jsx)("span",{children:(0,l.jsx)(D.Z,{className:"md ".concat(t<3?"z":""),alt:e.name,src:e.img||(null===(i=e.user)||void 0===i?void 0:i.avatar),username:null===(n=e.user)||void 0===n?void 0:n.username})})},e.name)}))})]}),(0,l.jsxs)(d.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",mt:"auto",children:[(0,l.jsxs)(d.Z,{direction:"row",alignItems:"center",gap:"10px",width:"100%",children:[(0,l.jsx)(M.Z,{docId:ce._id,doc:A.d2.episodes,zapped:ce.zapped,className:Ze.outlineBtn,size:"small",color:"secondary"}),!ce.live&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(p.Z,{title:"Add to Playlist",arrow:!0,placement:"top",children:(0,l.jsx)("span",{children:(0,l.jsx)(ie.Z,{handleNewClick:function(){Ve(!0)},setPlaylist:Se,episodeId:ce._id,currentPlaylist:null===_e||void 0===_e?void 0:_e.name,currentPlaylistId:null===_e||void 0===_e?void 0:_e._id,handleCurrentClick:Ve,darkBtn:!0})})})}),(0,l.jsx)(p.Z,{title:"Comment",arrow:!0,placement:"top",children:(0,l.jsx)("span",{children:me?(0,l.jsx)(Y.x,{iconButton:!0,episodeId:ce._id,suggested:null===(b=ce.meta)||void 0===b?void 0:b.boostValue,duration:ce.itunes.duration,className:Ze.outlineBtn}):(0,l.jsx)(oe,{episodeId:ce._id,slug:ue.slug})})}),ce.live&&(null===(y=ue.liveItem)||void 0===y||null===(w=y.chat)||void 0===w?void 0:w.embedUrl)&&(0,l.jsx)(p.Z,{title:"Chat",arrow:!0,placement:"top",children:(0,l.jsx)(c.Z,{color:"secondary",size:"small",className:Ze.outlineBtn,variant:"outlined",component:"a",href:ue.liveItem.chat.embedUrl,target:"_blank",children:(0,l.jsx)(x.A,{size:"sm",icon:"comment",color:q.Il.NTR_200})})}),ze&&ce.type===R.Wf.TRAILER?null:(0,l.jsx)(z.Z,{value:(null===(I=ce.meta)||void 0===I?void 0:I.valueRemaining)&&0===ce.meta.valueRemaining.sats?0:null===(P=ce.meta)||void 0===P?void 0:P.valuePerMin,supported:null===(C=ce.meta)||void 0===C?void 0:C.supported,purchased:null===(N=ce.meta)||void 0===N?void 0:N.purchased,episodeId:ce._id,duration:ce.itunes.duration,locked:Be,isPremium:ze,className:"dark"}),!ce.live&&(0,l.jsxs)(B.Z,{closeOnClick:!0,buttonProps:{className:Ze.outlineBtn},buttonNode:(0,l.jsx)(x.A,{icon:"ellipsisStroke"}),anchorOrigin:{horizontal:"left",vertical:"bottom"},transformOrigin:{horizontal:"left",vertical:"top"},children:[(0,l.jsx)(S(),{href:He,passHref:!0,children:(0,l.jsxs)(_.Z,{component:"a",children:[(0,l.jsx)(k.Z,{children:(0,l.jsx)(x.A,{icon:"arrowUpFrom"})}),(0,l.jsx)(u.Z,{variant:"subtitle2",children:"Go to Episode"})]})}),(null===(ee=ce.meta)||void 0===ee?void 0:ee.ableToRate)&&(0,l.jsxs)(_.Z,{onClick:function(){we({backdrop:"transparent",maxWidth:"sm",content:(0,l.jsx)(O.Z,{handleClose:Ie,episodeId:ce._id,image:ce.itunes.image||ue.image.url,title:ce.title})})},children:[(0,l.jsx)(k.Z,{children:(0,l.jsx)(x.A,{icon:"star"})}),(0,l.jsx)(u.Z,{variant:"subtitle2",children:"Review"})]}),(0,l.jsxs)(_.Z,{onClick:function(){return be("".concat("https://truefans.fm","/").concat(ue.slug,"/").concat(ce._id))},children:[(0,l.jsx)(k.Z,{children:(0,l.jsx)(x.A,{icon:"copy"})}),(0,l.jsx)(u.Z,{variant:"subtitle2",children:"Copy Link"})]}),(0,l.jsx)(L.Z,{label:"Episode",title:ce.title,menuButton:!0}),(0,l.jsx)(V.Z,{episodeId:ce._id}),(0,l.jsx)(Q.m4,{episodeId:ce._id,menuButton:!0}),(0,l.jsx)(G.Z,{url:ce.enclosure.url,episodeId:ce._id,disabled:ze}),(0,l.jsx)(H.Z,{episodeId:ce._id,reported:ce.reported,menuButton:!0})]})]}),(0,l.jsx)(F.Z,{onClick:function(){var e,t,i,n,a,o,s=ke&&(null===Ae||void 0===Ae?void 0:Ae.settings.playVideoFirst)?ke:ce.enclosure;Ne({_id:ce._id,start:!ce.live&&(null===(e=ce.meta)||void 0===e?void 0:e.status)!==R._$.FINISHED&&Le&&Le.end!==Le.duration?Le.end:void 0,live:ce.live?ue.liveItem:void 0,description:ce.description||ue.description,url:s.url,type:s.type,medium:ue.medium,pubDate:ce.pubDate,transcript:null===(t=ce.transcript)||void 0===t?void 0:t.url,isPremium:ze,podTitle:ue.title,podSlug:ue.slug,podId:ue._id,funding:ue.funding,epTitle:ce.title,chapters:ce.chapters,alternateEnclosures:ce.alternateEnclosures,satsPerMin:Fe,supported:(null===(i=ce.meta)||void 0===i?void 0:i.supported)?null===(n=ce.meta.totalPaid)||void 0===n?void 0:n.sats:0,purchased:null===(a=ce.meta)||void 0===a?void 0:a.purchased,finished:(null===(o=ce.meta)||void 0===o?void 0:o.status)===R._$.FINISHED,img:ce.itunes.image||ue.image.url}),je&&Re.mutate({type:X.yc.PLAY,podcastId:ue._id,category:"category"===ve&&fe?(0,h.lI)(fe):void 0,country:"country"===ve&&fe?fe:void 0})},finished:We,ended:ce.ended,disabledReason:null===(ne=ce.meta)||void 0===ne||null===(se=ne.playStatus)||void 0===se?void 0:se.reason,disabled:!(null===(le=ce.meta)||void 0===le||null===(re=le.playStatus)||void 0===re?void 0:re.isPlayable)||ce.ended,status:ce.live&&ue.liveItem?ue.liveItem.status:null===(de=ce.meta)||void 0===de?void 0:de.status,supportVideo:!!ke&&(null===Ae||void 0===Ae?void 0:Ae.settings.playVideoFirst),playing:(null===Ce||void 0===Ce?void 0:Ce.isPlaying)&&(null===Ce||void 0===Ce?void 0:Ce._id)===ce._id,bonus:ce.type===R.Wf.BONUS,promo:ge,isPrivate:pe,isPremium:ze,trailer:ce.type===R.Wf.TRAILER})]})]})})]})},le=i(28485),re=i(53956),de=i(52570),ce=i(70023),ue=i(23795),pe=i(31812),me=i(94054),xe=i(50135),he=i(87109),ve=i(16052),fe=[{label:"7 days",value:7},{label:"14 days",value:14},{label:"30 days",value:30}],ge=function(e){var t,i=e.podcastId,n=e.receiverId,a=e.minPromotionValues,o=(0,j.use
1State)(fe[0].value),s=o[0],r=o[1],c=(0,j.useState)(null!==(t=null===a||void 0===a?void 0:a["".concat(s,"-day")])&&void 0!==t?t:100),p=c[0],h=c[1],v=(0,J.$9)();return(0,l.jsx)(d.Z,{component:"form",onSubmit:function(e){e.preventDefault(),v.mutate({podcastId:i,receiverId:n,sats:p,duration:s})},direction:"column",gap:"24px",flex:"1",p:{xs:"16px",md:"32px"},children:v.isSuccess?(0,l.jsxs)(u.Z,{className:"medium",sx:{color:"green"},children:["The podcast owner has received your promotion request.",(0,l.jsx)("br",{})," Click"," ",(0,l.jsx)(ue.Z,{target:"_blank",href:"".concat("https://creators.truefans.fm","/podcasts/").concat(i,"?tab=promotions&tab2=podcasts"),children:"here"})," ","to track the status of your requests."]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(u.Z,{className:"medium",children:["Send a promotion request to this podcaster.",(0,l.jsx)("br",{})," Pick a duration period and suggest a price."]}),(0,l.jsxs)(me.Z,{fullWidth:!0,children:[(0,l.jsx)("label",{htmlFor:"type-input",children:"Duration"}),(0,l.jsx)(I.Z,{size:"small",options:fe,placeholder:"Duration",onChange:function(e){r(e.target.value)},value:s})]}),(0,l.jsxs)(me.Z,{children:[(0,l.jsx)("label",{children:"Offered Amount (SATs)"}),(0,l.jsx)(xe.Z,{type:"number",value:p,onChange:function(e){h(+e.target.value)},InputProps:{inputProps:{min:1,step:1},startAdornment:(0,l.jsx)(he.Z,{position:"start",children:m.rD})}})]}),(0,l.jsx)(pe.Z,{sx:{mt:2,alignSelf:"flex-start"},variant:"contained",className:"rounded",loading:v.isLoading,type:"submit",disabled:!s||!p,startIcon:(0,l.jsx)(x.A,{icon:"paperPlane"}),children:"Send Request"})]})})},je=function(e){var t=e.podcast,i=e.userPodcast,n=e.minPromotionValues,a=ae().classes,s=(0,o.Z)((0,$.R)(),2),r=s[0],p=s[1];return(0,l.jsxs)(d.Z,{direction:"row",className:"".concat(a.root," ad promo"),"aria-selected":"true",gap:"30px",children:[(0,l.jsxs)("span",{className:a.pin,children:[(0,l.jsx)(x.A,{icon:"ad",bounce:!0}),"\xa0 Podcast Promotion"]}),(0,l.jsx)(d.Z,{flex:1,direction:"column",alignItems:"flex-start",spacing:1,width:"100%",children:(0,l.jsx)(d.Z,{direction:"column",width:"100%",minHeight:"16.8rem",children:(0,l.jsxs)(d.Z,{direction:"row",gap:"16px",children:[(0,l.jsx)("figure",{className:a.figure,children:(0,l.jsx)(T.Z,{src:i.image.url,layout:"fill",alt:i.title})}),(0,l.jsxs)(d.Z,{justifyContent:"space-between",flex:"1",children:[(0,l.jsxs)(d.Z,{children:[(0,l.jsx)(u.Z,{variant:"h3",sx:{maxWidth:"800px",fontSize:{xs:"18px",md:"2.6rem"}},className:"medium ellipsis-2",children:"Promote your podcast here?"}),(0,l.jsx)(u.Z,{variant:"subtitle1",component:"div",mr:"auto",color:"primary",className:a.metaContainer,children:"Set Duration \u25e6 Offer Payment \u25e6 Send Request"})]}),(0,l.jsxs)(d.Z,{direction:"row",justifyContent:"space-between",gap:"16px",alignItems:"center",alignSelf:"stretch",className:a.promoInfo,children:[(0,l.jsx)(c.Z,{color:"secondary",size:"small",onClick:function(){r({backdrop:"transparent",content:(0,l.jsxs)(d.Z,{minWidth:{xs:"0",md:"600px"},children:[(0,l.jsx)(ve.C,{title:"About Podcast promotion",handleClose:p}),(0,l.jsxs)(d.Z,{p:{xs:"16px",md:"32px"},gap:"10px",children:[(0,l.jsx)(u.Z,{variant:"h5",fontWeight:600,children:"Get Featured on this Podcast Page"}),(0,l.jsxs)(u.Z,{className:"medium",children:["Want to promote your podcast to a new audience? You can send an offer to this podcaster to have your podcast featured on their podcast page.",(0,l.jsx)("br",{}),"Simply\xa0",(0,l.jsx)("strong",{children:"choose how long you\u2019d like your podcast to be featured and make a payment offer"}),".",(0,l.jsx)("br",{}),"The podcaster will review your offer and either accept or decline it. You\u2019ll receive an email notification once they\u2019ve made their decision.",(0,l.jsx)("br",{}),"If your initial offer is declined, don\u2019t worry \u2014 you can always"," ",(0,l.jsx)("strong",{children:"submit a new counteroffer"}),".",(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),(0,l.jsx)("strong",{children:"Good luck!"})]})]})]}),maxWidth:"sm"})},variant:"outlined",className:a.infoButton,startIcon:(0,l.jsx)(x.A,{icon:"info",dark:!0}),children:"LEARN"}),(0,l.jsx)(c.Z,{variant:"contained",color:"primary",className:"badge",startIcon:(0,l.jsx)(x.A,{icon:"paperPlane",width:10,height:10}),onClick:function(){r({backdrop:"transparent",content:(0,l.jsxs)(d.Z,{minWidth:{xs:"0",md:"600px"},children:[(0,l.jsx)(ve.C,{title:"Promote Your Podcast",handleClose:p}),(0,l.jsx)(ge,{podcastId:i._id,receiverId:t._id,minPromotionValues:n})]}),maxWidth:"sm"})},children:"ASK"})]})]})]})})})]})},Ze=i(63608),be=i(84548),ye=i(39402),we=function(e){return Array.from({length:e||1}).map((function(e,t){return{label:"Season ".concat(t+1),value:t+1}}))},Ie=function(e){var t,i,N,S,_=e.podcastId,k=e.medium,R=e.singleItem,A=e.seasons,E=(0,be.y)().classes,T=(0,o.Z)((0,g.U)((0,a.Z)((0,n.Z)({},m.jS),{month:k===X.VY.MUSIC||k===X.VY.AUDIO_BOOK||k===X.VY.COURSE||R?void 0:-1})),2),D=T[0],F=T[1],W=(0,o.Z)((0,v.sN)(_,D),2),L=W[0],B=L.episodes,M=L.podcast,z=L.count,O=L.totalTime,V=L.totalValue,U=L.currency,H=L.show
1Fiat,Y=L.totalPaid,Q=L.savedKeys,G=L.promotedEpisode,K=W[1],$=(0,f.R)("md",!0),J=(0,r.useRouter)().query,ee=(0,Ze.aF)().user,te=function(e){var t=(0,b.i)().socket,i=(0,j.useState)(!1),n=i[0],a=i[1],s=(0,Z.useQueryClient)(),l=(0,o.Z)((0,w.D)(),1)[0];return(0,j.useEffect)((function(){if(t&&e){t.emit("podcast:join",e);var i=function(){return a(!0)},n=function(){a(!1),l({message:"New episodes are available !",status:"info"}),s.invalidateQueries(h.ad.podcast.docs("slug")),s.invalidateQueries(h.ad.podcast.nested(h.Zr,e))},o=function(){return a(!1)};return t.on(y.QH.FEED_PULL_STARTED,i),t.on(y.QH.FEED_PULL_SUCCESS,n),t.on(y.QH.FEED_PULL_NO_CHANGE,o),function(){t.emit("podcast:leave",e),t.off(y.QH.FEED_PULL_STARTED,i),t.off(y.QH.FEED_PULL_SUCCESS,n),t.off(y.QH.FEED_PULL_NO_CHANGE,o)}}}),[t,e,l,s]),{isChecking:n}}(_).isChecking,ie=!G&&!(null===M||void 0===M?void 0:M.promotionRequestDisabled);(null===ee||void 0===ee?void 0:ee.podcast)&&(null===M||void 0===M||M.claimed);var ne=(0,o.Z)(k===X.VY.AUDIO_BOOK?["chapters","book"]:k===X.VY.VIDEO?["videos","video"]:k===X.VY.RADIO?["shows","radio"]:k===X.VY.MUSIC?[R?"single":"tracks",R?"musicNote":"musicDisk"]:["episodes","cards"],2),ae=ne[0],oe=ne[1],ue=(0,l.jsxs)(d.Z,{direction:"row",ml:$?0:"auto",mb:$?"24px":0,gap:"16px",sx:{opacity:K?.1:1},justifyContent:"flex-end",alignSelf:$?"stretch":"initial",children:[(0,l.jsxs)(d.Z,{gap:$?"12px":"6px",direction:$?"row":"column",children:[void 0!==O&&(0,l.jsxs)(d.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,l.jsx)(x.A,{icon:"clock",color:q.Il.NTR_200}),(0,l.jsx)(u.Z,{variant:"subtitle1",className:$?"lg":"",children:O?(0,h.LU)(O):"---"})]}),(null===Y||void 0===Y?void 0:Y.sats)?(0,l.jsx)(p.Z,{title:"Total Paid",arrow:!0,placement:"top",children:(0,l.jsx)(u.Z,{variant:"subtitle1",className:$?"lg":"",children:H?null===Y||void 0===Y?void 0:Y.formattedFiat:null===Y||void 0===Y?void 0:Y.formattedSats})}):U&&(null===V||void 0===V?void 0:V.sats)?(0,l.jsx)(p.Z,{title:"Total Value",arrow:!0,placement:"top",children:(0,l.jsx)(u.Z,{variant:"subtitle1",className:$?"lg":"",children:H?V.formattedFiat:V.formattedSats})}):null]}),(0,l.jsxs)(d.Z,{gap:"6px",children:[!$&&(0,l.jsxs)(u.Z,{variant:"subtitle1",sx:{display:"flex",alignItems:"center"},whiteSpace:"nowrap",children:[(0,l.jsx)(x.A,{icon:oe,color:q.Il.NTR_200}),(0,l.jsxs)("span",{children:["\xa0\xa0",(0,h.Ho)(ae,z)]})]}),te&&(0,l.jsx)(p.Z,{title:"Checking for new episodes",children:(0,l.jsxs)("span",{children:[(0,l.jsx)(x.A,{icon:"arrowsRotate",dark:!0,spin:!0}),(0,l.jsx)(u.Z,{variant:"subtitle1",component:"span",children:"\xa0\xa0Checking"})]})}),(null===M||void 0===M||null===(t=M.value4value)||void 0===t?void 0:t.fixedPrice)&&(null===M||void 0===M||null===(i=M.value4value)||void 0===i?void 0:i.totalPriceCurrency)&&(null===V||void 0===V?void 0:V.sats)?(0,l.jsx)(ye.Z,{currency:null===(N=M.value4value)||void 0===N?void 0:N.totalPriceCurrency,totalSats:V.sats,totalPrice:null===(S=M.value4value)||void 0===S?void 0:S.totalPrice,podcastId:M._id}):(null===M||void 0===M?void 0:M.isPremium)?null:(null===Y||void 0===Y?void 0:Y.sats)?(0,l.jsx)(p.Z,{title:"Bought",arrow:!0,placement:"top",children:(0,l.jsx)("span",{children:(0,l.jsx)(c.Z,{disabled:!0,sx:{padding:"8px",maxHeight:"22px",fontSize:"1.4rem"},variant:"contained",children:"Paid"})})}):null]})]}),pe=(0,l.jsxs)(d.Z,{direction:"row",justifyContent:"space-between",mb:"3.6rem",flexWrap:"wrap",gap:"16px",className:E.filters,children:[!R&&!$&&(0,l.jsx)(C.Z,{placeholder:"Search for ".concat(ae),onChange:function(e){F({search:e,page:1,month:void 0})}}),(0,l.jsxs)(d.Z,{direction:"row",gap:"24px",flexWrap:{xs:"wrap",md:"nowrap"},children:[(0,l.jsx)(I.Z,{options:k===X.VY.AUDIO_BOOK?m.Sv:m.MQ,placeholder:"Sort by",onChange:function(e){F({sort:e.target.value,month:void 0,page:1})},value:D.sort}),A&&A>1?(0,l.jsx)(I.Z,{size:"small",options:we(A),placeholder:"Season",onChange:function(e){F({season:e.target.value,month:void 0})},value:D.season}):null,ee&&(0,l.jsx)(I.Z,{size:"small",options:m.lT,placeholder:"Status",onChange:function(e){F({status:e.target.value})},value:D.status}),(0,l.jsx)(de.Z,{label:"Date",value:D.month&&+D.month>0&&D.year?"".concat(D.year,"-").concat(String(D.month).padStart(2,"0")):null,onChange:function(e,t){F({month:e,year:t})}})]}),!$&&ue]});return(0,l.jsxs)(l.Fragment,{children:[$?(0,l.jsxs)(d.Z,{alignItems:"flex-start",ga
1p:"8px",children:[(0,l.jsx)(C.Z,{placeholder:"Search for ".concat(ae),onChange:function(e){F({search:e,page:1})}}),(0,l.jsx)(ce.Z,{metaComponent:(0,l.jsxs)(u.Z,{variant:"subtitle1",className:"lg",sx:{display:"flex",alignItems:"center"},whiteSpace:"nowrap",children:[(0,l.jsx)(x.A,{icon:"cards",color:q.Il.NTR_200}),(0,l.jsxs)("span",{children:["\xa0\xa0",(0,h.Ho)(ae,z)]})]}),children:pe}),ue]}):pe,(0,l.jsx)(le.Z,{isLoading:K,text:"No ".concat(ae," found ").concat(D.month?"for this month, view a previous month.":"","."),count:z}),(0,l.jsxs)(P.Z,{isLoading:K,loadingText:"Checking for new ".concat(ae),children:[B.map((function(e,t,i){return t!=(1===i[0].weight?2:1)&&1!=i.length||!G&&!ie?(0,l.jsx)(se,{episode:e,podcast:M,isPrivate:!!(null===M||void 0===M?void 0:M.ownerId),downloaded:"manual"===(null===Q||void 0===Q?void 0:Q[e._id]),matchMobile:$,showFiat:H,promoted:(null===M||void 0===M?void 0:M.promoted)&&"1"===J.cp,sk:J.cat?"category":J.ct?"country":void 0,skv:J.cat&&"string"===typeof J.cat?J.cat:J.ct&&"string"===typeof J.ct?J.ct:""},e._id):(0,s.Z)(G?[(0,l.jsx)(se,{episode:G,podcast:G.podcast,downloaded:"manual"===(null===Q||void 0===Q?void 0:Q[G._id]),matchMobile:$,showFiat:H,isAd:!0},G._id)]:M&&(null===ee||void 0===ee?void 0:ee.podcast)&&M._id!==ee.podcast._id?[(0,l.jsx)(je,{userPodcast:ee.podcast,podcast:M,minPromotionValues:M.minPromotionValues},M._id)]:[]).concat([(0,l.jsx)(se,{episode:e,podcast:M,downloaded:"manual"===(null===Q||void 0===Q?void 0:Q[e._id]),matchMobile:$,showFiat:H,isPrivate:!!(null===M||void 0===M?void 0:M.ownerId),promoted:(null===M||void 0===M?void 0:M.promoted)&&"1"===J.cp,sk:J.cat?"category":J.ct?"country":void 0,skv:J.cat&&"string"===typeof J.cat?J.cat:J.ct&&"string"===typeof J.ct?J.ct:""},e._id)])})),(0,l.jsxs)(d.Z,{mt:"3rem",direction:"row",justifyContent:D.month?"space-between":"flex-end",alignItems:"center",children:[D.month&&(0,l.jsx)(c.Z,{onClick:function(){F({month:void 0,year:void 0})},children:"View All Episodes"}),(0,l.jsx)(re.Z,{page:D.page,rowsPerPage:D.limit,onChange:F,count:z,mt:0})]})]})]})}}}]);

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.