PageSourceSearch

https://tubidy.cz/_next/static/chunks/pages/search-05fc007c28f30181.js

js tubidy.cz collected 2026-10-09 22:40:41 UTC 5,397 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[603],{7646:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return a(6534)}])},3033:function(e,t){"use strict";t.Z={src:"/_next/static/media/whatsapp.8f314a32.svg",height:22,width:14,blurWidth:0,blurHeight:0}},2153:function(e,t,a){"use strict";var s=a(5893);a(7294);var l=a(1664),n=a.n(l),c=a(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:a}=(0,c.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:a||"No genres available."}),!t&&e.map(e=>(0,s.jsx)(n(),{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,a){"use strict";var s=a(5893);a(7294);var l=a(1664),n=a.n(l),c=a(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:a}=(0,c.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:a||"No moods available."}),!t&&e.map(e=>(0,s.jsx)(n(),{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))]})]})}},6534:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return Page}});var s=a(5893),l=a(7294),n=a(1163),c=a(9008),i=a.n(c),r=a(7066),d=a(5675),o=a.n(d),x=a(1664),m=a.n(x),h=a(3033),components_SearchResult=e=>{let{searchData:t}=e,a=Array.isArray(t)?t:t?[t]:[];return(0,s.jsx)(s.Fragment,{children:a.map((e,t)=>(0,s.jsx)(l.Fragment,{children:(0,s.jsx)("div",{className:"w-full",children:(0,s.jsxs)("div",{className:"mb-[7px] py-[6px] pe-[26px] pl-[6px] rounded-sm list-container",children:[(0,s.jsx)("div",{className:"table-cell align-middle pr-[10px]",children:(0,s.jsx)(m(),{href:"/details/",locale:"en",onClick:()=>{localStorage.setItem("videoId","".concat(null==e?void 0:e.videoId))},"aria-label":e.title,className:"md:w-[168px] md:h-[126px] w-[90px] h-68px block",children:(0,s.jsx)(o(),{className:"align-middle object-contain w-full h-full",width:0,height:0,sizes:"100",src:e.imgSrc,alt:e.title,loading:"eager"})})}),(0,s.jsxs)("div",{className:"table-cell align-middle ",children:[(0,s.jsx)(m(),{href:"/details/",locale:"en",onClick:()=>{localStorage.setItem("videoId","".concat(null==e?void 0:e.videoId))},"aria-label":e.title,className:"text-[#333]",children:(0,s.jsx)("p",{className:"font-bold text-[14px] md:font-normal md:text-[18px] mt-0 mb-[5px]",children:e.title})}),(0,s.jsxs)("ul",{className:"m-0 p-0 list-none",children:[(0,s.jsxs)("li",{className:"mr-[5px] mb-[5px] p-[5px] float-left text-center border border-[#e5e5e5]",children:[(0,s.jsx)("span",{className:"hidden md:inline-block",children:"Duration:"})," ",e.duration]}),(0,s.jsx)("li",{className:"p-[5px] float-left border border-[#e5e5e5]",children:(0,s.jsx)(m(),{href:"#","aria-label":"whatsapp",children:(0,s.jsx)(o(),{src:h.Z,alt:"whatsapp",loading:"eager"})})})]})]})]})})},t))})},u=a(3700);function Page(){let e=(0,n.useRouter)(),[t,a]=(0,l.useState)(),[c,d]=(0,l.useState)(""),{setLoader:o,loader:x,setError:m}=(0,l.useContext)(u.I);return(0,l.useEffect)(()=>{d(localStorage.getItem("search"))},[]),(0,l.useEffect)(()=>
1{if(c){o(!0);let e="https://us-central1-ytmp3-tube.cloudfunctions.net",searchRes=async()=>{try{if(c.includes("https://")){let t=await r.Z.get("".concat(e,"/singleResult?q=").concat(c.split("v=")[1])),s=await t.data;a([s])}else{let t=await r.Z.get("".concat(e,"/searchResult?q=").concat(c)),s=await t.data;a(s)}}catch(e){m("Video not Found")}finally{o(!1)}};searchRes()}},[c]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i(),{children:[(0,s.jsxs)("title",{children:[e.query.search," — Tubidy"]}),(0,s.jsx)("meta",{name:"description",content:"".concat(e.query.search," — Tubidy")}),(0,s.jsx)("meta",{property:"og:title",content:"".concat(e.query.search," — Tubidy")}),(0,s.jsx)("meta",{property:"og:description",content:"".concat(e.query.search," — Tubidy")})]}),(0,s.jsx)("div",{className:"mx-auto pb-5",children:(0,s.jsx)("div",{className:"content mx-auto px-4",children:(0,s.jsx)("div",{className:"-mx-4 flex flex-col md:flex-row md:gap-6",children:(0,s.jsx)("div",{className:"w-full md:flex-1 min-w-0",children:x?(0,s.jsx)("div",{className:"flex items-center justify-center h-[68vh]",children:(0,s.jsx)("div",{className:"spinner"})}):(0,s.jsx)(components_SearchResult,{searchData:t})})})})})]})}a(5538),a(2153)}},function(e){e.O(0,[66,774,888,179],function(){return e(e.s=7646)}),_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.