PageSourceSearch

https://scripod.com/assets/route-CenfOLf8.js

js scripod.com collected 2026-10-09 00:24:25 UTC 6,855 bytes, 1 lines download raw bytes

1import{a as e,t}from"./jsx-runtime-D_MnEzuy.js";import{t as n}from"./react-DBEjWt7A.js";import{i as r,t as i}from"./link-Di2oYaad.js";import{n as a}from"./Match-8Tc0SfCC.js";import{t as o}from"./useLocation-C3XIkhMo.js";import{n as s}from"./index.esm-yZ3WVT7t.js";import{i as c}from"./dist-DT2jQ2P_.js";import{n as l,r as u}from"./auth-DZmhojk1.js";import{r as d}from"./react-icons.esm-DSF_-psr.js";import{n as f,r as p,t as m}from"./avatar-v2yjoNfi.js";import{t as h}from"./useBreakpoint-CS_v3kWd.js";import{x as g}from"./index-Pzh4jCAc.js";import{t as _}from"./loading-CH-yR5Tr.js";import{t as v}from"./suspense-fade-CqpYXQ3i.js";var y=e(n()),b=`/buy-me-a-coffee.png`,x=t(),{slot:S}=g;function C(){return(0,x.jsx)(T,{})}var w=({active:e,title:t,href:n,suffix:r,onClick:a})=>(0,x.jsx)(i,{to:n,onClick:a,children:(0,x.jsxs)(`h2`,{className:c(`relative whitespace-nowrap font-medium text-xl cursor-pointer hover:opacity-100 transition-opacity duration-200 leading-5 mb-4`,{"opacity-50":!e}),children:[t,r]})}),T=()=>{let{user:e}=l(),t=o().pathname,n=r(),{isMaxSm:g}=h(`sm`,`max`),S=(0,y.useMemo)(()=>[{nav:`recent`,title:`Listen History`,Component:w,href:`/account/recent`,icon:s.clock}
1,{nav:`fav`,title:`Favourites`,Component:w,href:`/account/fav`,icon:s.star},{nav:`tasks`,title:`AI Requests`,Component:w,href:`/account/tasks`,icon:s.ai},{nav:`faq`,title:`FAQ`,Component:w,href:`/account/faq`,icon:s.faq},{nav:`setting`,title:`Settings`,Component:w,href:`/account/settings`,icon:s.gear}],[]);if((0,y.useEffect)(()=>{t===`/account`&&!g&&n.navigate({to:`/account/recent`,replace:!0})},[t,g,n]),!e)return(0,x.jsx)(u,{isDialog:!0});let C=(0,x.jsxs)(`div`,{className:`max-w-full py-12 text-foreground/90`,children:[(0,x.jsxs)(`div`,{className:`flex flex-col items-center`,children:[(0,x.jsxs)(m,{className:`size-16`,children:[(0,x.jsx)(p,{src:e?.avatarUrl||void 0}),(0,x.jsx)(f,{className:`opacity-80 hover:opacity-100`,children:e.fullName?.slice(0,2)||(0,x.jsx)(s.user,{})})]}),(0,x.jsx)(`div`,{className:`min-w-0 mt-4 flex-1 text-ellipsis overflow-clip`,children:e.fullName}),(0,x.jsx)(`div`,{className:`text-sm text-foreground/50`,children:e.email})]}),(0,x.jsx)(`div`,{className:`mt-8`,children:S.map((e,t)=>(0,x.jsx)(`div`,{className:`not-first:border-t border-background hover-hover:hover:bg-foreground
1/5 active:bg-foreground/5`,children:(0,x.jsx)(i,{to:e.href,viewTransition:{types:[`slide-left`]},children:(0,x.jsxs)(`div`,{className:`h-12 p-5 flex items-center font-medium`,children:[(0,x.jsx)(e.icon,{className:`size-5 mr-4`}),e.title,(0,x.jsx)(d,{className:`size-6 -mr-1.5 text-foreground/30 ml-auto`})]})})},t))}),(0,x.jsxs)(`div`,{className:`p-5 text-sm text-foreground/25 transition space-y-1`,children:[(0,x.jsx)(`div`,{className:`flex flex-wrap gap-8`,children:(0,x.jsx)(`div`,{children:`© 2024 Scripod`})}),(0,x.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,x.jsx)(i,{to:`/account/faq`,viewTransition:{types:[`slide-left`]},className:`active:text-foreground/80`,children:`Contact`}),(0,x.jsx)(`span`,{children:`·`}),(0,x.jsx)(i,{to:`/privacy`,viewTransition:{types:[`slide-left`]},className:`active:text-foreground/80`,children:`Privacy`}),(0,x.jsx)(`span`,{children:`·`}),(0,x.jsx)(i,{to:`/terms`,viewTransition:{types:[`slide-left`]},className:`active:text-foreground/80`,children:`Terms`})]}),(0,x.jsx)(`div`,{className:``,children:`Made with ♥ for podcast lovers`}),(0,x.jsxs)(`form`,{action:`/api/create-coffee-checkout-session`,method:`POST`,target:`_blank`,className:`ml-auto opacity-50 active:opacity-100 transition-opacity duration-200`,children:[(0,x.jsx)(`input`,{type:`hidden`,name:`successUrl`,value:`${window.location.origin}/thank-you-coffee`}),(0,x.jsx)(`input`,{type:`hidden`,name:`cancelUrl`,value:window.location.href}),(0,x.jsx)(`button`,{type:`submit`,className:`mt-2`,children:(0,x.jsx)(`img`,{src:b,alt:`Buy Me a Coffee`,className:`h-12`})})]})]})]});return g?t?.startsWith(`/account/`)?(0,x.jsx)(v,{fallback:(0,x.jsx)(_,{className:`px-4`}),children:(0,x.jsx)(`div`,{className:`pb-safe-offset-32`,children:(0,x.jsx)(a,{})})}):(0,x.jsx)(`div`,{className:`pt-safe-offset-0`,children:C}):(0,x.jsxs)(`div`,{className:`pt-safe-offset-0 lg:my-12 flex gap-5 mx-auto w-full max-w-5xl`,children:[(0,x.jsxs)(`div`,{className:`flex flex-col sm:max-w-64 rounded-2xl flex-1 self-start px-5 py-4 sticky top-safe-offset-0 lg:top-safe-offset-12`,children:[(0,x.jsxs)(`div`,{className:`flex gap-3 items-center -mx-3 -mt-2`,children:[(0,x.jsxs)(m,{className:`size-11`,children:[(0,x.jsx)(p,{src:e?.avatarUrl||void 0}),(0,x.jsx)(f,{className:`opacity-80 hover:opacity-100`,children:e.fullName?.slice(0,2)||(0,x.jsx)(s.user,{})})]}),(0,x.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,x.jsx)(`div`,{className:`text-ellipsis overflow-clip`,children:e.fullName}),(0,x.jsx)(`div`,{className:`text-ellipsis overflow-clip text-sm text-foreground/50`,children:e.email})]})]}),(0,x.jsx)(`div`,{className:`mt-3`,children:(0,x.jsx)(`div`,{children:S.map((e,n)=>(0,x.jsx)(i,{to:e.href,children:(0,x.jsxs)(`div`,{className:c(`flex items-center h-11 rounded-full px-3 -mx-3 font-medium text-lg text-foreground/50 hover-hover:hover:text-foreground/80 transition`,t===e.href&&`text-foreground! bg-foreground
1/10`),children:[(0,x.jsx)(e.icon,{className:`size-5 mr-3`}),e.title]})},n))})}),(0,x.jsx)(`div`,{className:`border-b-[0.5px] border-foreground/20 my-3`}),(0,x.jsx)(`div`,{className:`mt-2`,children:(0,x.jsxs)(`div`,{className:`group text-sm text-foreground/25 hover:text-foreground/60 transition space-y-1`,children:[(0,x.jsx)(`div`,{children:`© 2024 Scripod`}),(0,x.jsx)(`div`,{className:``,children:`Made with ♥ for podcast lovers`}),(0,x.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,x.jsx)(i,{to:`/account/faq`,className:`hover:text-foreground/80`,children:`Contact`}),(0,x.jsx)(`span`,{children:`·`}),(0,x.jsx)(i,{to:`/privacy`,className:`hover:text-foreground/80`,viewTransition:{types:[`slide-left`]},children:`Privacy`}),(0,x.jsx)(`span`,{children:`·`}),(0,x.jsx)(i,{to:`/terms`,className:`hover:text-foreground/80`,viewTransition:{types:[`slide-left`]},children:`Terms`})]}),(0,x.jsxs)(`form`,{action:`/api/create-coffee-checkout-session`,method:`POST`,target:`_blank`,className:`ml-auto opacity-50 group-hover:opacity-100 transition-opacity duration-200`,children:[(0,x.jsx)(`input`,{type:`hidden`,name:`successUrl`,value:`${window.location.origin}/thank-you-coffee`}),(0,x.jsx)(`input`,{type:`hidden`,name:`cancelUrl`,value:window.location.href}),(0,x.jsx)(`button`,{type:`submit`,className:`mt-4`,children:(0,x.jsx)(`img`,{src:b,alt:`Buy Me a Coffee`,className:`w-full rounded-2xl`})})]})]})})]}),!g&&(0,x.jsx)(`div`,{className:`flex-2 min-h-176 rounded-lg pb-safe-offset-32 min-w-0`,children:(0,x.jsx)(v,{fallback:(0,x.jsx)(_,{}),children:(0,x.jsx)(a,{})})})]})};export{C as component};

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.