PageSourceSearch

https://tubidy.cz/_next/static/chunks/pages/genre/[genre]-982b67d2f722839c.js

js tubidy.cz collected 2026-10-09 22:40:49 UTC 4,963 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17],{8688:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/genre/[genre]",function(){return l(8966)}])},2153:function(e,t,l){"use strict";var n=l(5893);l(7294);var s=l(1664),a=l.n(s),i=l(9136);let getGenrePath=e=>{let t=(null==e?void 0:e.alias)||(null==e?void 0:e.name)||"";return"/genre/".concat(encodeURIComponent(t.toLowerCase().replace(/\s+/g,"-")))};t.Z=()=>{let{genres:e,loading:t,error:l}=(0,i.L_)();return(0,n.jsxs)("div",{className:"bg-white rounded p-1 mt-4 mb-8 h-[564px]",children:[(0,n.jsx)("p",{className:"mb-4 text-center text-2xl font-bold",children:"Genres"}),(0,n.jsxs)("div",{className:"mb-9 flex flex-wrap justify-center gap-2",children:[t&&(0,n.jsx)("p",{className:"text-sm text-[#666]",children:"Loading genres..."}),!t&&0===e.length&&(0,n.jsx)("p",{className:"text-sm text-[#666]",children:l||"No genres available."}),!t&&e.map(e=>(0,n.jsx)(a(),{href:getGenrePath(e),className:"rounded bg-[#f5f5f5] px-3 py-1.5 text-sm",locale:"en",children:e.name},e.id||e.alias||e.name))]})]})}},5538:function(e,t,l){"use strict";var n=l(5893);l(7294);var s=l(1664),a=l.n(s),i=l(9136);let getMoodPath=e=>{let t=(null==e?void 0:e.alias)||(null==e?void 0:e.name)||"";return"/mood/".concat(encodeURIComponent(t.toLowerCase().replace(/\s+/g,"-")))};t.Z=()=>{let{moods:e,loading:t,error:l}=(0,i.L_)();return(0,n.jsxs)("div",{className:"bg-white rounded p-1 h-[244px]",children:[(0,n.jsx)("p",{className:"mb-4 text-center text-2xl font-bold",children:"Moods"}),(0,n.jsxs)("div",{className:"mb-9 flex flex-wrap justify-center gap-2",children:[t&&(0,n.jsx)("p",{className:"text-sm text-[#666]",children:"Loading moods..."}),!t&&0===e.length&&(0,n.jsx)("p",{className:"text-sm text-[#666]",children:l||"No moods available."}),!t&&e.map(e=>(0,n.jsx)(a(),{href:getMoodPath(e),className:"rounded bg-[#f5f5f5] px-3 py-1.5 text-sm",locale:"en",children:e.name},e.id||e.alias||e.name))]})]})}},8966:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return g}});var n=l(5893),s=l(7294),a=l(1163),i=l(7066),r=l(5675),c=l.n(r),d=l(9008),o=l.n(d),m=l(1664),x=l.n(m),u=l(5538),h=l(2153);let toSlug=e=>String(e||"").trim().toLowerCase().replace(/\s+/g,"-");var g=!0;t.default=e=>{var t,l,r;let{genre:d}=e,{query:m}=(0,a.useRouter)(),[g,p]=(0,s.useState)(),f=d||(null==m?void 0:m.genre);(0,s.useEffect)(()=>{let getGenreHandler=async e=>{let t=await i.Z.get("/api/genre?genre=".concat(e));p(t.data)};m.genre&&getGenreHandler(m.genre)},[m]);let v=f?"".concat("https://tubidy.cz","/genre/").concat(f,"/"):null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o(),{children:[v&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:v}),(0,n.jsx)("meta",{property:"og:url",content:v})]}),(0,n.jsxs)("title",{children:[f||m.genre," Playlists Tubidy"]}),(0,n.jsx)("meta",{name:"description",content:"".concat(f||m.genre," Playlists Tubidy")}),(0,n.jsx)("meta",{property:"og:title",content:"".concat(f||m.genre," Playlists Tubidy")}),(0,n.jsx)("meta",{property:"og:description",content:"".concat(f||m.genre," Playlists Tubidy")})]}),(0,n.jsx)("div",{className:"mx-auto pb-5",children:(0,n.jsx)("div",{className:"content mx-auto px-4",children:(0,n.jsxs)("div",{className:"-mx-4 flex flex-col md:flex-row md:gap-6",children:[(0,n.jsxs)("div",{className:"w-full md:flex-1 min-w-0",children:[(0,n.jsx)("h1",{children:(null==g?void 0:null===(t=g.genre)||void 0===t?void 0:t.title)||f||m.genre}),(0,n.jsxs)("p",{children:[(null==g?void 0:null===(l=g.playlists)||void 0===l?void 0:l.length)||0," playlists"]}),(0,n.jsx)("div",{className:"pt-5",children:g?(0,n.jsx)("div",{className:"grid grid-cols-2 xxs:grid-cols-3 sm:grid-cols-4 gap-2 pt-5",children:null==g?void 0:null===(r=g.playlists)||void 0===r?void 0:r.map((e,t)=>{let l=toSlug(e.alias||e.title),s=(null==e?void 0:e.imageUrl)&&String(e.imageUrl).trim();return(0,n.jsxs)(x(),{href:"/playlist/".concat((null==e?void 0:e.id)?"".concat(l,"/").concat(e.id):l),onClick:()=>{(null==e?void 0:e.id)&&localStorage.setItem("video-id","https://www.youtube.com/watch?v=".concat(e.id))},className:"block text-[#333] hover:text-[#337ab7] my-2",locale:"en",children:[s?(0,n.jsx)(c(),{src:s,width:180,height:180,alt:e.title||"Playlist",className:"rounded-xl",unoptimized:!0}):(0,n.jsx)("div",{className:"rounded-xl bg-[#f0f0f0] flex items-center justify-center text-[#999] text-sm",style:{width:180,height:180},children:"No image"}),(0,n.jsx)("p",{className:"mt-2",children:e.title})]},(null==e?void 0:e.id)||t)})}):(0,n.jsx)("div",{className:"flex items-center justify-center h-[68vh]",children:(0,n.jsx)("div",{className:"spinner"})})})]}),(0,n.jsx)("aside",{className:"w-full md:w-72 flex-shrink-0 mt-8 md:mt-0",children:(0,n.jsxs)("div",{className:"bg-[#f0f0f0] rounded p-4 md:sticky md:top-[80px]",children:[(0,n.jsx)(u.Z,{}),(0,n.jsx)(h.Z,{})]})})]})})})]})}}},function(e){e.O(0,[66,774,888,179],function(){return e(e.s=8688)}),_N_E=e.O()}]);

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.