PageSourceSearch

https://tubidy.cz/_next/static/chunks/pages/mood/[mood]-5bf1ccc27d9318a7.js

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

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