diff --git a/assets/index-ff81ed5b.js b/assets/index-5f881a31.js similarity index 99% rename from assets/index-ff81ed5b.js rename to assets/index-5f881a31.js index b9a213f..3c3166a 100644 --- a/assets/index-ff81ed5b.js +++ b/assets/index-5f881a31.js @@ -130,4 +130,4 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Pc(){return Pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function R$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function N$(e,t){return e.button===0&&(!t||t==="_self")&&!R$(e)}function Cc(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function $$(e,t){let n=Cc(e);if(t)for(let r of t.keys())n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)});return n}const M$=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],L$="startTransition",xm=cb[L$];function A$(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=DN({window:o,v5Compat:!0}));let s=i.current,[a,l]=v.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&&xm?xm(()=>l(d)):l(d)},[l,u]);return v.useLayoutEffect(()=>s.listen(c),[s,c]),v.createElement(E$,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s})}const O$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",j$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ro=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:c}=t,d=T$(t,M$),{basename:f}=v.useContext(ro),p,m=!1;if(typeof u=="string"&&j$.test(u)&&(p=u,O$))try{let h=new URL(window.location.href),g=u.startsWith("//")?new URL(h.protocol+u):new URL(u),S=uf(g.pathname,f);g.origin===h.origin&&S!=null?u=S+g.search+g.hash:m=!0}catch{}let y=u$(u,{relative:o}),P=_$(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:o});function b(h){r&&r(h),h.defaultPrevented||P(h)}return v.createElement("a",Pc({},d,{href:p||y,onClick:m||i?r:b,ref:n,target:l}))});var wm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(wm||(wm={}));var Sm;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Sm||(Sm={}));function _$(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s}=t===void 0?{}:t,a=Ua(),l=io(),u=j1(e,{relative:s});return v.useCallback(c=>{if(N$(c,n)){c.preventDefault();let d=r!==void 0?r:sa(l)===sa(u);a(e,{replace:d,state:o,preventScrollReset:i,relative:s})}},[l,a,u,r,o,n,e,i,s])}function D$(e){let t=v.useRef(Cc(e)),n=v.useRef(!1),r=io(),o=v.useMemo(()=>$$(r.search,n.current?null:t.current),[r.search]),i=Ua(),s=v.useCallback((a,l)=>{const u=Cc(typeof a=="function"?a(o):a);n.current=!0,i("?"+u,l)},[i,o]);return[o,s]}function I$({title:e,titleId:t,...n},r){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?v.createElement("title",{id:t},e):null,v.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",clipRule:"evenodd"}))}const F$=v.forwardRef(I$),V$=F$;function B$({title:e,titleId:t,...n},r){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?v.createElement("title",{id:t},e):null,v.createElement("path",{d:"M12 15a3 3 0 100-6 3 3 0 000 6z"}),v.createElement("path",{fillRule:"evenodd",d:"M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z",clipRule:"evenodd"}))}const z$=v.forwardRef(B$),U$=z$;function W$({title:e,titleId:t,...n},r){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?v.createElement("title",{id:t},e):null,v.createElement("path",{fillRule:"evenodd",d:"M10.5 3.75a6.75 6.75 0 100 13.5 6.75 6.75 0 000-13.5zM2.25 10.5a8.25 8.25 0 1114.59 5.28l4.69 4.69a.75.75 0 11-1.06 1.06l-4.69-4.69A8.25 8.25 0 012.25 10.5z",clipRule:"evenodd"}))}const H$=v.forwardRef(W$),K$=H$;function G$(e){return e>=1e6?(e/1e6).toFixed(2)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":e.toString()}function Q$(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ec({video:e,uploaderAvatar:t}){const n=Ua();return E.jsxs(tf,{isBlurred:!0,isPressable:!0,onPress:()=>n(e.url),shadow:"none",children:[E.jsx(m2,{children:E.jsx("img",{className:"w-full rounded-xl",src:e.thumbnail})}),E.jsxs(B0,{className:"flex gap-3 flex-row",children:[E.jsx(u2,{className:"flex-none",src:t||e.uploaderAvatar}),E.jsxs("div",{className:"flex gap-3 flex-col",children:[E.jsx(Jh,{color:"foreground",href:`#${e.url}`,children:e.title}),E.jsx(Jh,{color:"foreground",href:`#${e.uploaderUrl}`,children:E.jsxs("div",{className:"flex flex-row items-center break-all",children:[E.jsx("p",{className:"flex-none text-md",children:e.uploaderName}),e.uploaderVerified&&E.jsx(V$,{className:"w-6 h-6 p-1"})]})}),E.jsxs("div",{className:"flex flex-row items-center",children:[E.jsx(U$,{className:"w-6 h-6 p-1"}),E.jsx("p",{className:"flex-none text-md",children:`${G$(e.views)} • ${e.uploadedDate}`})]})]})]})]})}function D1(){return E.jsxs(tf,{isBlurred:!0,isPressable:!0,shadow:"none",className:"space-y-5 p-4",children:[E.jsx(om,{className:"rounded-lg",children:E.jsx("div",{className:"rounded-lg h-56 bg-default-300 p-4"})}),E.jsx(B0,{className:"flex gap-3 flex-row",children:E.jsx(om,{className:"flex rounded-full w-12 h-12"})})]})}function Pm({children:e}){return E.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-2 p-4",children:e})}function X$(){const[e,t]=v.useState([]);return v.useEffect(()=>{async function n(){const r=await window.piped_api.trending("US");t(r)}e.length===0&&n()}),e.length===0?E.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-2 p-4",children:[...Array(20).keys()].map(n=>E.jsx(D1,{},n))}):E.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-2 p-4",children:e.map(n=>E.jsx(Ec,{video:n},n.url))})}function Y$(){return E.jsxs(dR,{children:[E.jsxs(mc,{children:[E.jsx(mR,{className:"sm:hidden"}),E.jsx(fR,{children:E.jsx(Ro,{className:"font-bold text-inherit",to:"/trending",children:"ULTYT"})})]}),E.jsx(mc,{className:"sm:flex gap-4",justify:"start",children:E.jsx(s1,{children:E.jsx(C2,{isClearable:!0,radius:"lg",placeholder:"Type to search...",startContent:E.jsx(K$,{className:"h-6 w-6"})})})}),E.jsx(q$,{})]})}function Cm(e){let t,n;return e?(t=pR,n=t1):(t=s1,n=mc),E.jsxs(n,{className:"hidden sm:flex gap-4",justify:"center",children:[E.jsx(t,{children:E.jsx(Ro,{to:"/trending",children:"Trending"})}),E.jsx(t,{children:E.jsx(Ro,{to:"/feed",children:"Feed"})}),E.jsx(t,{children:E.jsx(Ro,{to:"/playlists",children:"Playlists"})}),E.jsx(t,{children:E.jsx(Ro,{to:"/preferences",children:"Preferences"})})]})}function q$(){return E.jsxs(E.Fragment,{children:[Cm(!1),Cm(!0)]})}function J$(){const[e,t]=v.useState(),[n,r]=v.useState(),{id:o}=d$(),[i,s]=D$(),a=i.get("tabId")||"videos";return v.useEffect(()=>{async function l(){const c=await window.piped_api.channel(o||"");t(c)}async function u(c){const d=await window.piped_api.channelTabs(e==null?void 0:e.tabs[c].data);r(d)}e||l(),!n&&a!=="videos"&&u(a)}),e?E.jsxs("div",{className:"grid grid-rows p-4",children:[E.jsx("div",{className:"",children:E.jsxs(tf,{radius:"lg",shadow:"none",children:[E.jsx("div",{className:"p-4",children:E.jsx("img",{className:"w-full rounded-xl",src:e.bannerUrl})}),E.jsx(h2,{className:"p-4 justify-between ",children:E.jsx("div",{className:"flex flex-col",children:E.jsx("div",{className:"flex flex-row gap-2 text-xl font-bold pl-2",children:e.name})})})]})}),E.jsxs("div",{className:"flex flex-row flex-wrap gap-2 bg-white rounded-xl mt-4",children:[E.jsx("div",{style:{cursor:"pointer"},onClick:()=>{s({tabId:"videos"})},className:"text-xl font-bold p-4",children:"Videos"},"videos"),e.tabs.map((l,u)=>E.jsx("div",{style:{cursor:"pointer"},onClick:()=>{s({tabId:String(u)}),r(void 0)},className:"text-xl font-bold p-4",children:Q$(l.name)},l.name))]}),a!=="videos"?E.jsx(Pm,{children:n==null?void 0:n.content.map(l=>l.type==="stream"?(l=l,E.jsx(Ec,{video:l,uploaderAvatar:e.avatarUrl},l.url)):E.jsx("div",{className:"",children:"Soon..."},Math.random()))}):E.jsx(Pm,{children:e.relatedStreams.map(l=>E.jsx(Ec,{video:l,uploaderAvatar:e.avatarUrl},l.url))})]}):E.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-2 p-4",children:[...Array(20).keys()].map(l=>E.jsx(D1,{},l))})}function Z$(){return window.piped_api=new N1("https://ytapi.dc09.ru"),E.jsx(OS,{children:E.jsxs(A$,{children:[E.jsx(Y$,{}),E.jsxs(k$,{children:[E.jsx(ys,{path:"/",element:E.jsx(C$,{to:"/trending"})}),E.jsx(ys,{path:"/trending",element:E.jsx(X$,{})}),E.jsx(ys,{path:"/channel/:id",element:E.jsx(J$,{})})]})]})})}Wl.createRoot(document.getElementById("root")).render(E.jsx(re.StrictMode,{children:E.jsx(Z$,{})})); + */function Pc(){return Pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function R$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function N$(e,t){return e.button===0&&(!t||t==="_self")&&!R$(e)}function Cc(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function $$(e,t){let n=Cc(e);if(t)for(let r of t.keys())n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)});return n}const M$=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],L$="startTransition",xm=cb[L$];function A$(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=DN({window:o,v5Compat:!0}));let s=i.current,[a,l]=v.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&&xm?xm(()=>l(d)):l(d)},[l,u]);return v.useLayoutEffect(()=>s.listen(c),[s,c]),v.createElement(E$,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s})}const O$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",j$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ro=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:c}=t,d=T$(t,M$),{basename:f}=v.useContext(ro),p,m=!1;if(typeof u=="string"&&j$.test(u)&&(p=u,O$))try{let h=new URL(window.location.href),g=u.startsWith("//")?new URL(h.protocol+u):new URL(u),S=uf(g.pathname,f);g.origin===h.origin&&S!=null?u=S+g.search+g.hash:m=!0}catch{}let y=u$(u,{relative:o}),P=_$(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:o});function b(h){r&&r(h),h.defaultPrevented||P(h)}return v.createElement("a",Pc({},d,{href:p||y,onClick:m||i?r:b,ref:n,target:l}))});var wm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(wm||(wm={}));var Sm;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Sm||(Sm={}));function _$(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s}=t===void 0?{}:t,a=Ua(),l=io(),u=j1(e,{relative:s});return v.useCallback(c=>{if(N$(c,n)){c.preventDefault();let d=r!==void 0?r:sa(l)===sa(u);a(e,{replace:d,state:o,preventScrollReset:i,relative:s})}},[l,a,u,r,o,n,e,i,s])}function D$(e){let t=v.useRef(Cc(e)),n=v.useRef(!1),r=io(),o=v.useMemo(()=>$$(r.search,n.current?null:t.current),[r.search]),i=Ua(),s=v.useCallback((a,l)=>{const u=Cc(typeof a=="function"?a(o):a);n.current=!0,i("?"+u,l)},[i,o]);return[o,s]}function I$({title:e,titleId:t,...n},r){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?v.createElement("title",{id:t},e):null,v.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",clipRule:"evenodd"}))}const F$=v.forwardRef(I$),V$=F$;function B$({title:e,titleId:t,...n},r){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?v.createElement("title",{id:t},e):null,v.createElement("path",{d:"M12 15a3 3 0 100-6 3 3 0 000 6z"}),v.createElement("path",{fillRule:"evenodd",d:"M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z",clipRule:"evenodd"}))}const z$=v.forwardRef(B$),U$=z$;function W$({title:e,titleId:t,...n},r){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?v.createElement("title",{id:t},e):null,v.createElement("path",{fillRule:"evenodd",d:"M10.5 3.75a6.75 6.75 0 100 13.5 6.75 6.75 0 000-13.5zM2.25 10.5a8.25 8.25 0 1114.59 5.28l4.69 4.69a.75.75 0 11-1.06 1.06l-4.69-4.69A8.25 8.25 0 012.25 10.5z",clipRule:"evenodd"}))}const H$=v.forwardRef(W$),K$=H$;function G$(e){return e>=1e6?(e/1e6).toFixed(2)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":e.toString()}function Q$(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ec({video:e,uploaderAvatar:t}){const n=Ua();return E.jsxs(tf,{isBlurred:!0,isPressable:!0,onPress:()=>n(e.url),shadow:"none",children:[E.jsx(m2,{children:E.jsx("img",{className:"w-full rounded-xl",src:e.thumbnail})}),E.jsxs(B0,{className:"flex gap-3 flex-row",children:[E.jsx(u2,{className:"flex-none",src:t||e.uploaderAvatar}),E.jsxs("div",{className:"flex gap-3 flex-col",children:[E.jsx(Jh,{color:"foreground",href:`#${e.url}`,children:e.title}),E.jsx(Jh,{color:"foreground",href:`#${e.uploaderUrl}`,children:E.jsxs("div",{className:"flex flex-row items-center break-all",children:[E.jsx("p",{className:"flex-none text-md",children:e.uploaderName}),e.uploaderVerified&&E.jsx(V$,{className:"w-6 h-6 p-1"})]})}),E.jsxs("div",{className:"flex flex-row items-center",children:[E.jsx(U$,{className:"w-6 h-6 p-1"}),E.jsx("p",{className:"flex-none text-md",children:`${G$(e.views)} • ${e.uploadedDate}`})]})]})]})]})}function D1(){return E.jsxs(tf,{isBlurred:!0,isPressable:!0,shadow:"none",className:"space-y-5 p-4",children:[E.jsx(om,{className:"rounded-lg",children:E.jsx("div",{className:"rounded-lg h-56 bg-default-300 p-4"})}),E.jsx(B0,{className:"flex gap-3 flex-row",children:E.jsx(om,{className:"flex rounded-full w-12 h-12"})})]})}function Pm({children:e}){return E.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-2 p-4",children:e})}function X$(){const[e,t]=v.useState([]);return v.useEffect(()=>{async function n(){const r=await window.piped_api.trending("US");t(r)}e.length===0&&n()}),e.length===0?E.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-2 p-4",children:[...Array(20).keys()].map(n=>E.jsx(D1,{},n))}):E.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-2 p-4",children:e.map(n=>E.jsx(Ec,{video:n},n.url))})}function Y$(){return E.jsxs(dR,{children:[E.jsxs(mc,{children:[E.jsx(mR,{className:"sm:hidden"}),E.jsx(fR,{children:E.jsx(Ro,{className:"font-bold text-inherit",to:"/trending",children:"ULTYT"})})]}),E.jsx(mc,{className:"sm:flex gap-4",justify:"start",children:E.jsx(s1,{children:E.jsx(C2,{isClearable:!0,radius:"lg",placeholder:"Type to search...",startContent:E.jsx(K$,{className:"h-6 w-6"})})})}),E.jsx(q$,{})]})}function Cm(e){let t,n;return e?(t=pR,n=t1):(t=s1,n=mc),E.jsxs(n,{className:"hidden sm:flex gap-4",justify:"center",children:[E.jsx(t,{children:E.jsx(Ro,{to:"/trending",children:"Trending"})}),E.jsx(t,{children:E.jsx(Ro,{to:"/feed",children:"Feed"})}),E.jsx(t,{children:E.jsx(Ro,{to:"/playlists",children:"Playlists"})}),E.jsx(t,{children:E.jsx(Ro,{to:"/preferences",children:"Preferences"})})]})}function q$(){return E.jsxs(E.Fragment,{children:[Cm(!1),Cm(!0)]})}function J$(){const[e,t]=v.useState(),[n,r]=v.useState(),{id:o}=d$(),[i,s]=D$(),a=i.get("tabId")||"videos";return v.useEffect(()=>{async function l(){const c=await window.piped_api.channel(o||"");t(c)}async function u(c){const d=await window.piped_api.channelTabs(e==null?void 0:e.tabs[c].data);r(d)}e||l(),!n&&a!=="videos"&&u(a)}),e?E.jsxs("div",{className:"grid grid-rows p-4",children:[E.jsx("div",{className:"",children:E.jsxs(tf,{radius:"lg",shadow:"none",children:[E.jsx("div",{className:"p-4",children:E.jsx("img",{className:"w-full rounded-xl",src:e.bannerUrl})}),E.jsx(h2,{className:"p-4 justify-between ",children:E.jsx("div",{className:"flex flex-col",children:E.jsx("div",{className:"flex flex-row gap-2 text-xl font-bold pl-2",children:e.name})})})]})}),E.jsxs("div",{className:"flex flex-row flex-wrap gap-2 bg-white rounded-xl mt-4",children:[E.jsx("div",{style:{cursor:"pointer"},onClick:()=>{s({tabId:"videos"})},className:"text-xl font-bold p-4",children:"Videos"},"videos"),e.tabs.map((l,u)=>E.jsx("div",{style:{cursor:"pointer"},onClick:()=>{s({tabId:String(u)}),r(void 0)},className:"text-xl font-bold p-4",children:Q$(l.name)},l.name))]}),a!=="videos"?E.jsx(Pm,{children:n==null?void 0:n.content.map(l=>l.type==="stream"?(l=l,E.jsx(Ec,{video:l,uploaderAvatar:e.avatarUrl},l.url)):E.jsx("div",{className:"",children:"Soon..."},Math.random()))}):E.jsx(Pm,{children:e.relatedStreams.map(l=>E.jsx(Ec,{video:l,uploaderAvatar:e.avatarUrl},l.url))})]}):E.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 2xl:grid-cols-5 gap-2 p-4",children:[...Array(20).keys()].map(l=>E.jsx(D1,{},l))})}function Z$(){return window.piped_api=new N1,E.jsx(OS,{children:E.jsxs(A$,{children:[E.jsx(Y$,{}),E.jsxs(k$,{children:[E.jsx(ys,{path:"/",element:E.jsx(C$,{to:"/trending"})}),E.jsx(ys,{path:"/trending",element:E.jsx(X$,{})}),E.jsx(ys,{path:"/channel/:id",element:E.jsx(J$,{})})]})]})})}Wl.createRoot(document.getElementById("root")).render(E.jsx(re.StrictMode,{children:E.jsx(Z$,{})})); diff --git a/index.html b/index.html index d854d96..85e0cc6 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ ULTYT - +