1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1452,4209,339,6130],{98668:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/fans/[username]",function(){return t(6541)}])},24209:function(e,n,t){"use strict";var r=t(26042),a=t(69396),o=t(99534),s=t(10253),i=t(85893),l=t(31812),c=t(34386),u=t(93946),d=t(63464),p=t(63608),f=t(14313),h=t(33850);n.Z=function(e){var n=e.userId,t=e.status,m=e.canBeFollowed,g=e.iconButton,b=e.size,x=e.sx,v=(0,o.Z)(e,["userId","status","canBeFollowed","iconButton","size","sx"]),w=(0,s.Z)((0,d.m)(),2),y=w[0],Z=w[1],L=(0,p.Os)(),j=(0,p.UQ)(),k=(0,s.Z)((0,p.nK)(n,void 0===t&&y),2),S=k[0],I=k[1],T=t||S,P=function(){y?!I&&T&&(T.followed?j.mutate(n):L.mutate(n)):Z()};return g?(0,i.jsx)(c.Z,{title:(null===T||void 0===T?void 0:T.label)||(y?"Loading":"Follow"),arrow:!0,placement:"top",children:(0,i.jsx)("span",{children:(0,i.jsx)(u.Z,(0,a.Z)((0,r.Z)({onClick:P,disabled:L.isLoading||j.isLoading},v),{children:(0,i.jsx)(f.A,{beatFade:L.isLoading||j.isLoading,icon:(null===T||void 0===T?void 0:T.followed)?"userGroup":"user",color:"inherit"})}))})}):(0,i.jsx)(l.Z,(0,a.Z)((0,r.Z)({variant:"contained",className:"rounded narrow",loading:L.isLoading||j.isLoading,onClick:P,sx:(0,r.Z)((0,a.Z)((0,r.Z)({minWidth:"small"===b?0:162},"small"===b?{height:"3rem !important",fontSize:"1.3rem"}:{}),{whiteSpace:"nowrap","&.Mui-disabled":{backgroundColor:h.Il.PRM_500,color:h.Il.WHITE}}),x),startIcon:"small"===b?null:(0,i.jsx)(f.A,{icon:"user",size:"sm"}),disabled:!1===m&&!(null===T||void 0===T?void 0:T.followed)},v),{children:!1===m?"No Follow":(null===T||void 0===T?void 0:T.label)||(y?"Loading":"Follow")}))}},90339:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return w}});var r,a=t(26042),o=t(69396),s=t(10253),i=t(85893),l=t(67294),c=t(11163),u=t(5239),d=t(63608),p=t(61869),f=t(77615),h=t(14924),m=t(15861),g=t(10467),b=(r={},(0,h.Z)(r,f.kK.SHOWS,{page:f.kK.SHOWS,steps:[g.V$.SUPPORT,g.V$.LEARN_LISTEN,g.V$.COMPLETE_TASKS,g.V$.G
1ET_STARTED],subtitle:"<strong>The Podcasting 3.0 Super App</strong><br /><br />\n TrueFans is a next-generation audio platform available on <strong>iOS</strong>, <strong>Android</strong>, and the <strong>Web</strong>.<br />\n Discover and enjoy <strong>millions of podcasts, thousands of music tracks, and hundreds of audiobooks</strong> \u2014 all <strong>free to listen</strong> to.\n ",title:"Welcome to TrueFans"}),(0,h.Z)(r,f.kK.MUSIC,{page:f.kK.MUSIC,steps:[g.V$.NEW_MUSIC,g.V$.MUSICAST,g.V$.HOME_GROWN_MUSIC],subtitle:"On this <strong>Music Page</strong> you will discover new, live and recently updated artist tracks.",title:"Welcome to TrueFans"}),(0,h.Z)(r,f.kK.PODCAST,{page:f.kK.PODCAST,steps:[g.JS.PLAY,g.JS.PLAYLIST,g.JS.ZAP,g.JS.CLAIM],title:"Play A Podcast"}),(0,h.Z)(r,f.kK.EPISODE,{page:f.kK.EPISODE,steps:[g.JS.BOOSTAGRAM,g.JS.CLIP,g.JS.SHARE],title:"Play An Episode"}),(0,h.Z)(r,f.kK.SEARCH,{page:f.kK.SEARCH,steps:[g.V$.SEARCH,g.JS.SUGGEST,g.JS.VOTE],title:"Find A Podcast",cta:(0,i.jsxs)(m.Z,{mt:2,children:[(0,i.jsx)("strong",{children:" Hint: "}),"If you are not sure what you want to listen too, then simply click \u2018Play Something\u2019 to get a random selection."]})}),(0,h.Z)(r,f.kK.QUEUE,{page:f.kK.QUEUE,steps:[g.V$.CURRENT,g.V$.HISTORY,g.V$.PLAYLISTS],title:"Continue Your Listening",subtitle:"In your <strong>Library Tab</strong> you can see podcast episodes you are currently listening to.",activeStep:0}),(0,h.Z)(r,f.kK.HISTORY,{page:f.kK.HISTORY,steps:[g.V$.CURRENT,g.V$.HISTORY,g.V$.PLAYLISTS],title:"Review Your History",subtitle:"On your <strong>History Tab</strong> you can see episodes you have finished listening too,<br /> how long you played each episode and the value you paid for each episode.",activeStep:1}),(0,h.Z)(r,f.kK.PLAYLISTS,{page:f.kK.PLAYLISTS,steps:[g.V$.CURRENT,g.V$.HISTORY,g.V$.PLAYLISTS],title:"View Your Playlists",subtitle:"On your <strong>Playlist Tab</strong> you can see what playlists you have created and saved.<br />Click any playlist to load it up into your audio player.",activeStep:2}),(0,h.Z)(r,f.kK.ACTIVITY,{page:f.kK.ACTIVITY,steps:[g.V$.TOGGLE,g.V$.FILTER,g.V$.PRIVACY],title:"View Your Activity",subtitle:"On this <strong>Activitystream Tab</strong> you can see all of your activity<br /> i.e what you earned and how much you spent."}),(0,h.Z)(r,f.kK.NOTIFICATIONS,{page:f.kK.NOTIFICATIONS,steps:[g.V$.TOGGLE_N,g.V$.FILTER_N,g.V$.PRIVACY_N],title:"All Your Notifications",subtitle:"On this <strong>Notifications Tab</strong> you can see all of your notifications.<br /> i.e when new episodes drop, when someone follows you, when shows go live. "}),(0,h.Z)(r,f.kK.FOLLOWING,{page:f.kK.FOLLOWING,steps:[g.V$.FOLLOWING,g.V$.FOLLOWERS,g.V$.PRIVACY],title:"View Your Friends",subtitle:"On this <strong>Friends Tab</strong> you can see all of your followers and the people you follow."}),r),x=t(57172),v=t(98375),w=function(e){var n=e.page,t=e.buttonProps,r=e.hintProps,h=e.cta,m=e.menuButton,g=e.index,w=(0,d.aF)().user,y=(0,s.Z)(function(e){switch(e){case f.kK.SEARCH:return[!1,{hintPage:e},"On this <strong>Search Page</strong> you can find your favourite podcasts and <strong>become a fan</strong><br /> or <strong>suggest</strong> a new podcast currently not in our podcast database."];case f.kK.PODCAST:return[!0,{hintPage:e},"On this <strong>Podcast Page</strong> you can set your own value to play any episode."];case f.kK.EPISODE:return[!0,{hintPage:e},"On this <strong>Episode Page</strong> you can read the show notes or follow along with the transcript.<br /> You can also give direct feedback to the podcaster by leaving them a boostagram message or for other fans to read."];default:return[!1,{},""]}}(n),3),Z=y[0],L=y[1],j=y[2],k=(0,s.Z)((0,p.R)(),2),S=k[0],I=k[1],T=(0,s.Z)((0,d.Ax)(Z&&!!w,L),1)[0],P=(0,c.useRouter)(),N=P.query.join,E=b[n],C=(0,a.Z)((0,o.Z)((0,a.Z)({enabled:void 0!==w&&E&&(!Z||Z&&void 0!==T)},E,T),{subtitle:T&&E.steps?"You can earn another <strong>".concat((0,u.bx)(E.steps.reduce((function(e,n){return T.gamification[n]>0?e+T.gamification[n]:e+0}),0)),"</strong> by completing the following tasks."):(null===E||void 0===E?void 0:E.subtitle)||j,cta:h||E.cta}
1),r);return(0,l.useEffect)((function(){"1"===N&&n===f.kK.SHOWS&&0===g&&C.enabled&&(setTimeout((function(){S({backdrop:"transparent",maxWidth:"xl",content:(0,i.jsx)(x.Z,(0,o.Z)((0,a.Z)({},C),{page:n,handleClose:I}))})}),1e3),P.replace({pathname:P.pathname,query:void 0},void 0,{shallow:!0}))}),[n,N,g,C.enabled]),w&&E?(0,i.jsx)(v.Z,(0,a.Z)({buttonProps:t,menuButton:m},C)):null}},36458:function(e,n,t){"use strict";var r=t(26042),a=t(99534),o=t(85893),s=t(90577);n.Z=function(e){var n=e.isOnline,t=e.badgeSize,i=void 0===t?"large":t,l=(0,a.Z)(e,["isOnline","badgeSize"]);return(0,o.jsx)(s.Z,(0,r.Z)({},l,n?{badgeContent:(0,o.jsx)("span",{className:"circle green ".concat(i),children:"\xa0"}),tooltipText:"Online"}:{}))}},66130:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var r=t(85893),a=t(67294),o=t(69417),s=t(57922),i=t(14924),l=t(1169),c=t(33850),u=(0,l.ZL)()((function(e){var n;return{content:{overflow:"hidden","&.scroll":{overflow:"auto",marginBottom:"16px"},"& ol,& ul":{listStylePosition:"inside"}},description:(n={fontSize:"1.6rem",lineHeight:1.8,paddingBottom:"2rem"},(0,i.Z)(n,e.breakpoints.down("xs"),{fontSize:16}),(0,i.Z)(n,"& img",{display:"block",maxWidth:"100%"}),n),notExpanded:{maskImage:"linear-gradient(#f7f7f0,#f7f7f0,rgba(255,255,255,0))","& article":{overflow:"hidden",maxHeight:"3.6em",lineHeight:"1.8em"}},textBtn:{fontWeight:600,lineHeight:1,padding:0,minHeight:"3rem",maxHeight:"3rem",transform:"translateY(-1.5rem)",color:c.Il.PRM_400,"&.light":{color:c.Il.WHITE}}}})),d=function(e){var n=e.text,t=e.scrollable,i=e.light,l=void 0===i||i,c=u().classes,d=(0,a.useState)(!1),p=d[0],f=d[1],h=(0,a.useState)(!0),m=h[0],g=h[1],b=(0,a.useRef)(null);return(0,a.useEffect)((function(){if(b.current){var e=b.current.offsetHeight,n=parseFloat(getComputedStyle(b.current).lineHeight);Math.floor(e/n)<2&&g(!1)}}),[]),n?(0,r.jsxs)("div",{className:"".concat(c.content," ").concat(t?"scroll":""),children:[(0,r.jsx)(s.Z,{in:p,className:p?"":c.notExpanded,collapsedSize:"7rem",children:(0,r.jsx)("article",{ref:b,className:c.description,dangerouslySetInnerHTML:{__html:n}})}),m&&(0,r.jsx)(o.Z,{onClick:function(){f((function(e){return!e}))},color:"primary",className:"".concat(c.textBtn," ").concat(l?"light":"dark"," ").concat(p?"top":"left"),children:p?"show less":"read more"})]}):null}},7454:function(e,n,t){"use strict";var r=t(47568),a=t(26042),o=t(69396),s=t(99534),i=t(10253),l=t(97582),c=t(85893),u=t(67294),d=t(34386),p=t(15861),f=t(48885),h=t(18972),m=t(44347),g=t(69417),b=t(63608),x=t(10611),v=t(50918),w=t(14313),y=t(33850),Z=t(68302);n.Z=function(e){var n=e.iconButton,t=e.clr,L=e.menuButton,j=e.text,k=e.title,S=e.path,I=e.label,T=void 0===I?"":I,P=e.query,N=void 0===P?"":P,E=(0,s.Z)(e,["iconButton","clr","menuButton","text","title","path","label","query"]),C=(0,v.R)("lg",!0),O=(0,b.Sy)(),_=(0,i.Z)((0,Z.D)(),1)[0],A=(0,i.Z)((0,x.o)(),1)[0],R=(0,u.useState)(null),F=R[0],H=R[1],K=Boolean(F),V="".concat("https://truefans.fm").concat(S||"".concat(window.location.pathname).concat(N)),U=function(){var e=(0,r.Z)((function(){var e;return(0,l.__generator)(this,(function(n){switch(n.label){case 0:if(!navigator.share)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,navigator.share({text:j,title:k,url:V})];case 2:return n.sent(),[3,4];case 3:return e=n.sent(),console.error("Error : ".concat(e)),[3,4];case 4:return[3,6];case 5:_({message:"Your browser does not support share feature",status:"warning"}),n.label=6;case 6:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}();if(L)return(0,c.jsxs)(h.Z,{onClick:U,disabled:O.isLoading,children:[(0,c.jsx)(f.Z,{children:(0,c.jsx)(w.A,{icon:"share",color:"inherit",spin:O.isLoading})}),(0,c.jsxs)(p.Z,{variant:"subtitle2",children:["Share ",T]})]});var Y=(0,c.jsx)(g.Z,(0,o.Z)((0,a.Z)({variant:n?"text":"outlined",onClick:C?U:function(e){H(e.currentTarget)}},n?{sx:{padding:"8px",minWidth:"auto",borderRadius:"50%",width:"small"===E.size?34:40,height:"small"===E.size?34:40,color:t||y.Il.NTR_100}}:{startIcon:(0,c.jsx)(w.A,{icon:"share"}),loadingPosition:"start"},E),{children:n?(0,c.jsx)(w.A,{icon:"share",color:"inherit"}):"Share ".concat(T)}));return(0,c.jsxs)(c.Fragment,{children:[n&&!E.disabled?(0,c.jsx)(d.Z,{title:"Share",arrow:!0,placement:"top",children:Y}):Y,C?null:(0,c.jsxs)(m.Z,{anchorEl:F,open:K,onClose:function(){H(null)},PaperProps:{elevation:0,sx:{overflow:"visible",filter:"drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",mt:1.5}},transformOrigin:{horizontal:"right",vertical:"top"}
1,anchorOrigin:{horizontal:"right",vertical:"bottom"},children:[(0,c.jsxs)(h.Z,{onClick:function(){return A(V)},children:[(0,c.jsx)(f.Z,{children:(0,c.jsx)(w.A,{icon:"copy",color:"inherit"})}),(0,c.jsx)(p.Z,{variant:"subtitle2",children:"Copy Link"})]}),(0,c.jsxs)(h.Z,{onClick:U,disabled:O.isLoading,children:[(0,c.jsx)(f.Z,{children:(0,c.jsx)(w.A,{icon:"share",color:"inherit",spin:O.isLoading})}),(0,c.jsxs)(p.Z,{variant:"subtitle2",children:["Share ",T]})]})]})]})}},84411:function(e,n,t){"use strict";var r=t(85893),a=t(67294),o=t(51233),s=t(73313),i=t(8298);n.Z=function(e){var n=e.children,t=e.tab,l=e.handleTabChange,c=e.dark,u=(0,a.useRef)(null),d=(0,a.useState)(0),p=d[0],f=d[1];(0,a.useEffect)((function(){if(u.current){var e=u.current.getBoundingClientRect(),n=window.pageYOffset;f(e.top+n+25)}}),[]);var h=(0,i.Z)({disableHysteresis:!0,threshold:p});return(0,r.jsx)(o.Z,{className:"padding custom-panel-tabs ".concat(h?"fixed":""),ref:u,children:(0,r.jsx)(s.Z,{className:"custom-tab ".concat(h||c?"dark":"light"),value:t,onChange:l,variant:"scrollable",id:"tabs",children:n})})}},43104:function(e,n,t){"use strict";t.d(n,{y:function(){return a}});var r=t(14924),a=(0,t(1169).ZL)()((function(e){var n;return{root:(0,r.Z)({paddingBottom:"7.7rem","& > *":(0,r.Z)({marginTop:"3.5rem"},e.breakpoints.down("md"),{marginTop:0})},e.breakpoints.down("sm"),{flexDirection:"column",gap:10,alignItems:"center"}),infoBox:(n={position:"relative",marginLeft:"10.8rem",padding:"2rem 0",paddingRight:"4rem",flex:1},(0,r.Z)(n,e.breakpoints.down(1300),{marginLeft:"6rem"}),(0,r.Z)(n,e.breakpoints.down("md"),{marginLeft:"2rem",paddingRight:0}),(0,r.Z)(n,e.breakpoints.down("sm"),{marginLeft:0,alignItems:"center"}),n),playlistMeta:(0,r.Z)({"&:not(:first-of-type)":{marginTop:"4rem"}},e.breakpoints.down("md"),{gap:"10px",flexWrap:"wrap",marginBottom:"16px"}),playlists:(0,r.Z)({display:"flex",flexDirection:"column",gap:"8px","& div.swiper":{paddingLeft:"2.4rem",paddingTop:"2.4rem"},"& > div:first-of-type":{paddingLeft:"2.4rem"}},e.breakpoints.down("md"),{gap:0,"& div.switch":{marginLeft:"auto"},"& > div:first-of-type":{paddingLeft:0},"& div.swiper":{paddingLeft:0}}),gridContainer:(0,r.Z)({marginTop:"32px",padding:"0 10rem 0 2.4rem"},e.breakpoints.down("sm"),{padding:"0 5rem 0 2.4rem"}),playBtn:(0,r.Z)({},e.breakpoints.down("sm"),{"& span.text":{display:"none"}}),switch:{alignSelf:"center",marginRight:"-32px"}}}))},10611:function(e,n,t){"use strict";t.d(n,{o:function(){return s}});var r=t(10253),a=t(68302),o=t(67294),s=function(){var e=(0,r.Z)((0,a.D)(),1)[0],n=(0,o.useCallback)((function(n){var t;(null===window||void 0===window||null===(t=window.navigator)||void 0===t?void 0:t.clipboard)||e({message:"Your browser doesn't support clipboard feature !",status:"warning"}),window.navigator.clipboard.writeText(n),e({message:"Copied to clipboard",status:"info"})}),[]);return[n]}},57453:function(e,n,t){"use strict";t.d(n,{x:function(){return l}});var r=t(26042),a=t(69396),o=t(67294),s=t(11163),i=function(e,n,t){return!(!n||"string"!==typeof n)&&(e.includes(n)?n:t||"")},l=function(e,n){var t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l=(0,s.useRouter)(),c=l.query,u=l.pathname,d=l.isReady,p=i(e,c.tab,n),f=(0,o.useState)(!!d&&(p||n||e[0])),h=f[0],m=f[1],g=(0,o.useCallback)((function(e,n){m(n),t&&l.replace({pathname:u,query:(0,a.Z)((0,r.Z)({},c),{tab:n})},void 0,{shallow:!0})}),[u,c,t]);return(0,o.useEffect)((function(){!1!==p&&p!==h&&m(p)}),[p]),[h,g,c.tab]}},6541:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return fe},default:function(){return he}});var r=t(85893),a=t(9008),o=t.n(a),s=t(28465),i=t(26042),l=t(69396),c=t(10253),u=t(5152),d=t.n(u),p=t(51233),f=t(15861),h=t(41664),m=t.n(h),g=t(69417),b=t(23795),x=t(40044),v=t(77615),w=t(63608),y=t(14313),Z=t(24209),L=t(34386),j=t(93946),k=t(7454),S=t(33850),I=t(60989),T=t(90020),P=t(11163),N=t(5239),E=t(90339),C=(0,t(1169).ZL)()((function(){return{button:{backgroundColor:S.Il.PRM_200,width:34,height:34,"& > svg":{filter:"brightness(500)"},"&:hover":{backgroundColor:S.Il.PRM_300}}}})),O=function(e){var n=e.page,t=N.Ke.getUser();return(0,r.jsx)(p.Z,{direction:"row",alignItems:"center",gap:{xs:"16px",md:"32px"},mt:"20px",children:function(){switch(n){case v.kK.FOLLOWING:return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m(),{passHref:!0,href:"".concat(window.location.href.split("&type")[0],"&type=following"),children:(0,r.jsx)(g.Z,{startIcon:(0,r.jsx)(y.A,{icon:"users"}),variant:"contained",color:"primary",component:"a",className:"rounded sm",children:"View Friends"})}),(0,r.jsx)(m(),{passHref:!0,href:"".concat(window.location.href.split("&type")[0],"&type=followers"),children:(0,r.jsx)(g.Z,{startIcon:(0,r.jsx)(y.A,{icon:"users",color:S.Il.PRM_400}),variant:"outlined",color:"secondary",component:"a",className:"rounded sm",children:"View Followers"})})]});case v.kK.ACTIVITY:return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m(),{passHref:!0,href:"".concat(window.location.href.split("&type")[0],"&type=me"),children:(0,r.jsx)(g.Z,{startIcon:(0,r.jsx)(y.A,{icon:"user"}),variant:"contained",color:"primary",component:"a",className:"rounded sm",children:"My A
1ctivity"})}),(0,r.jsx)(m(),{passHref:!0,href:"".concat(window.location.href.split("&type")[0],"&type=friends"),children:(0,r.jsx)(g.Z,{startIcon:(0,r.jsx)(y.A,{icon:"users",color:S.Il.PRM_400}),variant:"outlined",color:"secondary",component:"a",className:"rounded sm",children:"Friends Activity"})})]});default:return(0,r.jsx)(m(),{passHref:!0,href:t?"/fans/".concat(t.username,"?tab=").concat(v.LL.Earn):"/settings#email-section",children:(0,r.jsx)(g.Z,{startIcon:(0,r.jsx)(y.A,{icon:"listCheck",color:S.Il.PRM_400}),variant:"outlined",color:"secondary",component:"a",className:"rounded sm",children:"View Task List"})})}}()})},_=function(){var e=C().classes,n=function(e){if(!e||"string"!==typeof e)return v.kK.QUEUE;switch(e){case v.LL.Library:return v.kK.QUEUE;case v.LL.History:return v.kK.HISTORY;case v.LL.Playlists:return v.kK.PLAYLISTS;case v.LL.Activity:return v.kK.ACTIVITY;case v.LL.Friends:return v.kK.FOLLOWING;case v.LL.Notifications:return v.kK.NOTIFICATIONS;default:return""}}((0,P.useRouter)().query.tab);return n?(0,r.jsx)(E.default,{page:n,buttonProps:{className:e.button},cta:(0,r.jsx)(O,{page:n})}):null},A=[{platform:"linkedin",label:"LinkedIn",icon:"linkedin",prefix:"linkedin.com/in/"},{platform:"x",label:"X",icon:"x",prefix:"x.com/"},{platform:"threads",label:"Threads",icon:"threads",prefix:"threads.net/@"}],R=function(e){var n=e.socialLinks,t=e.nostrKey,a=e.name,o=e.username,s=C().classes;return(0,r.jsxs)(p.Z,{direction:"row",alignItems:"center",gap:"10px",alignSelf:"center",children:[A.filter((function(e){return null===n||void 0===n?void 0:n[e.platform]})).map((function(e){return(0,r.jsx)(L.Z,{title:e.label,arrow:!0,placement:"top",children:(0,r.jsx)(j.Z,{component:b.Z,href:T.Qc[e.platform](n[e.platform]),target:"_blank",rel:"me noopener",className:s.button,children:(0,r.jsx)(y.A,{icon:e.icon,color:"white"})})},e.platform)})),(0,r.jsx)(L.Z,{title:"TrueFans Social",arrow:!0,placement:"top",children:(0,r.jsx)(j.Z,{component:b.Z,href:"https://truefans.social/@".concat(o),target:"_blank",className:s.button,children:(0,r.jsx)(I.W,{id:"fediverse-logo",width:20,height:18})})}),t&&(0,r.jsx)(L.Z,{title:"Nostr",arrow:!0,placement:"top",children:(0,r.jsx)(j.Z,{component:b.Z,href:"https://astral.ninja/".concat(t),target:"_blank",rel:"me noopener",className:s.button,children:(0,r.jsx)(I.W,{id:"nostr-logo",width:15,height:15})})}),(0,r.jsx)(k.Z,{title:a,iconButton:!0,clr:S.Il.WHITE,className:s.button,size:"small",label:"User"}),(0,r.jsx)(_,{})]})},F=t(14739),H=t(90577),K=t(66130),V=t(36458),U=t(84411),Y=t(51107),G=t(57453),W=t(54285),M=t(14924),B=t(67294),$=t(47079),D=function(){var e,n=(0,w.aF)().user,t=(0,W.i)(),r=t.socket,a=t.connected,o=function(e){var n=(0,B.useState)({}),t=n[0],r=n[1],a=(0,B.useCallback)((function(e){r((function(n){return(0,l.Z)((0,i.Z)({},n),(0,M.Z)({},e._id,(0,i.Z)({},n[e._id],e)))}))}),[]);return(0,B.useEffect)((function(){if(e){var n=function(e){var n={};e.forEach((function(e){return n[e._id]=e})),r(n)},t=function(e){return a(e)},o=function(e){return a(e)};return e.on($.QH.USERS_ONLINE,n),e.on($.QH.USER_ONLINE,t),e.on($.QH.USER_OFFLINE,o),function(){e.off($.QH.USERS_ONLINE,n),e.off($.QH.USER_ONLINE,t),e.off($.QH.USER_OFFLINE,o)}}}),[e,a]),{presenceMap:t}}(r).presenceMap;return{presenceMap:o,getStatus:function(n){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null!==(e=null===(t=o[n])||void 0===t?void 0:t.isOnline)&&void 0!==e?e:r},connected:a,currentUser:n}},z=t(89194),Q=d()((function(){return Promise.all([t.e(8896),t.e(5191),t.e(1050),t.e(4258),t.e(2703),t.e(4253),t.e(3040),t.e(1413),t.e(6080),t.e(2266),t.e(5893),t.e(1750),t.e(1982)]).then(t.bind(t,31982))}),{loadableGenerated:{webpack:function(){return[31982]}},ssr:!1}),J=d()((function(){return Promise.all([t.e(8896),t.e(5191),t.e(1050),t.e(4258),t.e(4253),t.e(7705),t.e(1004),t.e(4093)]).then(t.bind(t,21004))}),{loadableGenerated:{webpack:function(){return[21004]}},ssr:!1}),q=d()((function(){return Promise.all([t.e(8896),t.e(6154),t.e(1687),t.e(6450)]).then(t.bind(t,52887))}),{loadableGenerated:{webpack:function(){return[52887]}},ssr:!1}),X=d()((function(){return Promise.all([t.e(8896),t.e(7167),t.e(263)]).then(t.bind(t,56211))}),{loadableGenerated:{webpack:function(){return[56211]}},ssr:!1}),ee=d()((function(){return Promise.all([t.e(8896),t.e(4256)]).then(t.bind(t,24256))}),{loadableGenerated:{webpack:function(){return[24256]}},ssr:!1}),ne=d()((function(){return Promise.all([t.e(8896),t.e(6658)]).then(t.bind(t,36658))}),{loadableGenerated:{webpack:function(){return[36658]}},ssr:!1}),te=d()((function(){return Promise.all([t.e(8896),t.e(5191),t.e(1050),t.e(4258),t.e(4253),t.e(6650)]).then(t.bind(t,46650))}),{loadableGenerated:{webpack:function(){return[46650]}},ssr:!1}),re=d()((function(){return Promise.all([t.e(8896),t.e(5191),t.e(3810)]).then(t.bind(t,33810))}),{loadableGenerated:{webpack:function(){return[33810]}},ssr:!1}),ae=d()((function(){return Promise.all([t.e(8896),t.e(5191),t.e(1050),t.e(4258),t.e(4253),t.e(3040),t.e(7457)]).then(t.bind(t,54939))}),{loadableGenerated:{webpack:function(){return[54939]}},ssr:!1}),oe=d()((function(){return Promise.all([t.e(8896),t.e(5191),t.e(1050),t.e(4258),t.e(6120),t.e(5871),t.e(4253),t.e(3040),t.e(1413),t.e(6080),t.e(1799),t.e(4351),t.e(4791),t.e(759)]).then(t.bind(t,2974
11))}),{loadableGenerated:{webpack:function(){return[29741]}},ssr:!1}),se=d()((function(){return Promise.all([t.e(8896),t.e(5191),t.e(1050),t.e(4258),t.e(4253),t.e(3040),t.e(1413),t.e(6080),t.e(1799),t.e(9727),t.e(7282)]).then(t.bind(t,51523))}),{loadableGenerated:{webpack:function(){return[51523]}},ssr:!1}),ie=d()((function(){return Promise.all([t.e(8896),t.e(2162)]).then(t.bind(t,12162))}),{loadableGenerated:{webpack:function(){return[12162]}},ssr:!1}),le=function(e){var n=e.user,t=e.isCurrentUserPage,a=e.tabs,o=e.tab,s=e.todoCount,i=e.tasks,l=void 0===i?[]:i,c=function(e){var a;if(!t&&!(null===(a=n.settings.publicTabs)||void 0===a?void 0:a.includes(e)))return null;switch(e){case v.LL.Library:return(0,r.jsx)(Q,{userId:n._id,history:!1});case v.LL.History:return(0,r.jsx)(Q,{userId:n._id,history:!0});case v.LL.Clips:return(0,r.jsx)(q,{docId:n._id,docKey:"users"});case v.LL.Comments:return(0,r.jsx)(X,{docId:n._id,docKey:"users"});case v.LL.Friends:return(0,r.jsx)(te,{userId:n._id});case v.LL.Earn:return t&&s?(0,r.jsx)(re,{showFiat:n.settings.currencyType===T.l7.FIAT,currency:n.currency,tasks:l,todoCount:s}):null;case v.LL.Wallet:return t?(0,r.jsx)(ee,{showFiat:n.settings.currencyType===T.l7.FIAT}):null;case v.LL.Notes:return t?(0,r.jsx)(ie,{}):null;case v.LL.Notifications:return(0,r.jsx)(ae,{userId:n._id});case v.LL.Activity:return(0,r.jsx)(J,{userId:n._id});case v.LL.Charts:return(0,r.jsx)(ne,{userId:n._id,isCurrentUserChart:t});case v.LL.Playlists:return(0,r.jsx)(oe,{userId:n._id,isCurrentUserPage:t});case v.LL.Podcasts:var o;return(0,r.jsx)(se,{label:(null===(o=n.podcastRoles)||void 0===o?void 0:o.includes("Singer"))?"track":"podcast",userId:n._id,username:n.name});default:return"Coming soon"}};return(0,r.jsx)("div",{className:"custom-panel-content ".concat(o===v.LL.Playlists?"padding-left":"padding "),children:a.map((function(e){return(0,r.jsx)(z.Z,{value:o,index:e,children:c(e)},e)}))})},ce=t(43104),ue=d()((function(){return t.e(5926).then(t.bind(t,55926))}),{loadableGenerated:{webpack:function(){return[55926]}},ssr:!1}),de=d()((function(){return t.e(1379).then(t.bind(t,91379))}),{loadableGenerated:{webpack:function(){return[91379]}},ssr:!1}),pe=function(e){var n,t,a,o,s,u=e.user,d=e.meta,h=void 0===d?{followingCount:0,totalListenTime:0,subscriptionCount:0}:d,L=(0,ce.y)().classes,j=(0,Y.y)().classes,k=(0,c.Z)((0,w.Br)(u.username),1)[0],I=D(),T=I.getStatus,P=I.currentUser,N=(null===k||void 0===k?void 0:k.user)||u,E=(null===P||void 0===P?void 0:P._id)===N._id,C=E||!N.settings.publicTabs?Object.values(v.LL):N.settings.publicTabs,O=(0,c.Z)((0,G.x)(C),2),_=O[0],A=O[1],W=(0,c.Z)((0,w.Dj)(E),1)[0],M=W.tasks,B=W.todoCount;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.Z,{sx:{background:S.Il.DEFAULT_BG},children:[(0,r.jsxs)(p.Z,{className:"padding ".concat(L.root),direction:"row",spacing:0,children:[N.settings.onlineStatus?(0,r.jsx)(V.Z,{alt:N.username,src:N.avatar,isOnline:T(N._id,N.isOnline),className:"".concat(j.avatar," lg")}):(0,r.jsx)(H.Z,{alt:N.username,src:N.avatar,className:"".concat(j.avatar," lg")}),(0,r.jsxs)(p.Z,{className:L.infoBox,alignItems:"flex-start",children:[(0,r.jsx)(f.Z,{className:"medium",variant:"h2",component:"h1",mb:.5,children:N.displayName}),(0,r.jsx)(f.Z,{className:"medium grey",mb:"12px",children:"Joined ".concat(new Date(N.createdAt).toLocaleString("default",{month:"long",year:"numeric",day:"numeric"}))}),N.about&&(0,r.jsx)(K.default,{text:N.about,light:!1}),(0,r.jsx)(F.Z,(0,l.Z)((0,i.Z)({color:"dark",center:!0},(null===k||void 0===k?void 0:k.meta)||h),{podcastCountLabel:(null===(n=N.podcastRoles)||void 0===n?void 0:n.includes("Singer"))?"Tracks":void 0,username:N.username,balance:E?null===k||void 0===k||null===(t=k.meta)||void 0===t?void 0:t.balance:void 0,showLevel:!0})),N.settings.currentPlaying&&(0,r.jsx)(ue,{nowPlaying:N.nowPlaying,userId:N._id,displayName:N.displayName}),(0,r.jsxs)(f.Z,{mt:{xs:2},color:S.Il.PRM_400,textAlign:"center",children:[null===(a=N.tags)||void 0===a?void 0:a.map((function(e){return(0,r.jsx)(m(),{href:"/search?type=fans&tag=".concat(e),children:(0,r.jsxs)("a",{children:["#",e,"\xa0"]})},e)})),null===(o=N.podcastRoles)||void 0===o?void 0:o.map((function(e){return(0,r.jsx)(m(),{href:"/search?type=fans&role=".concat(e),children:(0,r.jsxs)("a",{children:["#",e,"\xa0"]})},e)}))]}),(0,r.jsxs)(p.Z,{gap:"16px",alignItems:{xs:"center",lg:"flex-start"},mt:{xs:2},children:[E?(0,r.jsx)(m(),{passHref:!0,href:"/settings",children:(0,r.jsx)(g.Z,{startIcon:(0,r.jsx)(y.A,{icon:"gear",size:"sm"}),variant:"contained",className:"rounded narrow",component:b.Z,sx:{minWidth:"20rem"},children:"Edit"})}):(0,r.jsx)(Z.Z,{sx:{minWidth:"20rem"},userId:N._id,canBeFollowed:null===(s=N.settings)||void 0===s?void 0:s.allowToFollow}
1),(0,r.jsx)(R,{socialLinks:N.socialLinks,username:N.username,name:N.name,userId:N._id})]})]})]}),(0,r.jsx)(U.Z,{dark:!0,tab:_,handleTabChange:A,children:C.map((function(e){var n;return"earn"===e&&!B||"wallet"===e&&!E?null:(0,r.jsx)(x.Z,{label:"my podcasts"===e?(null===(n=N.podcastRoles)||void 0===n?void 0:n.includes("Singer"))?"Discography":"My Podcasts":"earn"===e?(0,r.jsxs)("span",{style:B?{transform:"translateY(-2.8px)"}:void 0,children:["Earn ",B?(0,r.jsx)("sup",{className:"custom-badge",children:B}):null]}):e,value:e},e)}))})]}),(0,r.jsx)(le,{todoCount:B,tasks:M,tab:_,tabs:C,isCurrentUserPage:E,user:N}),E&&!N.settings.newsletterEnabled&&(0,r.jsx)(de,{})]})},fe=!0,he=function(e){var n=e.user,t=e.meta;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(s.Z,{title:n.displayName,description:n.about,children:[(0,r.jsxs)(o(),{children:[(0,r.jsx)("meta",{property:"og:site_name",content:n.name||n.username},"og:site_name"),(0,r.jsx)("meta",{property:"og:image",content:"".concat("https://cdn.truefans.fm","/").concat(n.avatar)},"og:image")]}),(0,r.jsx)(pe,{user:n,meta:t})]})})}}},function(e){e.O(0,[4031,1609,1632,8375,9774,2888,179],(function(){return n=98668,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.