1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[354],{1148:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/details",function(){return n(3208)}])},3208:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Page}});var o=n(5893),a=n(7294),l=n(7066),s=n(9008),d=n.n(s);n(5675);var i=n(6649),c=n(3700),r=n(1664),u=n.n(r);function Page(){let[e,t]=(0,a.useState)(),[n,s]=(0,a.useState)(!0),[r,m]=(0,a.useState)(!1),[h,p]=(0,a.useState)(""),[x,w]=(0,a.useState)(!1),[v,f]=(0,a.useState)(!1),{setError:b,setLoader:g,loader:y}=(0,a.useContext)(c.I);return(0,a.useEffect)(()=>{let updateVideo=()=>{p(localStorage.getItem("videoId")||""),t(void 0)};return updateVideo(),window.addEventListener("videoChanged",updateVideo),()=>{window.removeEventListener("videoChanged",updateVideo)}},[]),(0,a.useEffect)(()=>{let getSearchRes=async()=>{try{if(h){let e=await l.Z.get("".concat("https://us-central1-ytmp3-tube.cloudfunctions.net","/singleResult?q=").concat(h));t(e.data),g(!1)}}catch(e){b("Video not Found"),g(!1)}};getSearchRes()},[h,t]),(0,a.useEffect)(()=>{let t=null==e?void 0:e.videoId;if(!t){w(!1);return}let checkChannelName=async()=>{f(!0);try{var e,n;let o=await l.Z.get("https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=".concat(t,"&format=json")),a=(null==o?void 0:null===(n=o.data)||void 0===n?void 0:null===(e=n.author_name)||void 0===e?void 0:e.trim())||"";w("saregama music"===a.toLowerCase())}catch(e){w(!1)}finally{f(!1)}};checkChannelName()},[null==e?void 0:e.videoId]),(0,a.useEffect)(()=>{var e,t;let n=document.createElement("script");n.src="//xm.liquorssquab.com/tJcri78No2mcF/118931",n.async=!0,n.setAttribute("data-cfasync","false"),null===(t=document)||void 0===t||null===(e=t.getElementById("banner-ad"))||void 0===e||e.appendChild(n.cloneNode())},[]),e?g(!1):g(!0),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(d(),{children:[(0,o.jsx)("title",{children:"Download - Tubidy"}),(0,o.jsx)("meta",{name:"description",content:"Download - Tubidy"}),(0,o.jsx)("meta",{property:"og:title",content:"Download - Tubidy"}),(0,o.jsx)("meta",{property:"og:description",content:"Download - Tubidy"})]}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"w-full overflow-hidden block h-[90px]",id:"banner-ad"}),h?(0,o.jsx)(o.Fragment,{children:v&&(null==e?void 0:e.videoId)?(0,o.jsx)("p",{className:"text-center mt-6 text-gray-600",children:"Checking channel..."}):x?(0,o.jsxs)("div",{className:"text-center py-10 px-4",children:[(0,o.jsx)("h3",{className:"text-2xl font-semibold mb-3",children:"404: Video not found"}),(0,o.jsx)(u(),{href:"/",className:"bg-red-500 text-white px-6 py-2 rounded-lg font-medium hover:bg-red-600 transition",children:"Go to Home"})]}):y?(0,o.jsx)("div",{className:"flex items-center justify-center h-[68vh]",children:(0,o.jsx)("div",{className:"spinner"})}):(0,o.jsxs)("div",{className:"content mx-auto pb-5",children:[(0,o.jsx)("h1",{className:"!text-[15px] font-bold text-center px-4",children:null==e?void 0:e.title}),(0,o.jsx)("div",{className:"mt-5 bg-white rounded-sm px-4 py-3 shadow-[1px_1px_2px_#d4d4d4]",children:(0,o.jsx)("div",{className:"text-center",children:(0,o.jsxs)("div",{className:"content mx-auto pb-5",children:[(0,o.jsx)("blockquote",{className:"text-[13px] px-4 hidden md:block",children:'If you find several Ads windows appear, just Close the Ads and return to this page, then click the "Download" button again, the Download process will start immediately!'}),(0,o.jsx)("div",{className:"my-2",children:(0,o.jsx)(i.Z,{sandbox:"allow-scripts allow-same-origin allow-presentation allow-downloads allow-forms allow-popups allow-modals allow-popups allow-modals",src:"".concat("https://api.ytmp3.tube/widgetplus?url=https://www.youtube.com/watch?v=").concat(null==e?void 0:e.videoId,"&title=").concat(encodeURIComponent(null==e?void 0:e.title)),allowtransparency:"true",scrolling:"no",width:"100%",className:"border-none min-h-[620px] xxs2:min-h-[700px]"},null==e?void 0:e.videoId)}),(0,o.jsx)("iframe",{rel:"preconnect",width:"100%",style:{aspectRatio:"16/9",maxWidth:"600px",margin:"auto"},src:"https://youtube.com/embed/".concat(null==e?void 0:e.videoId),title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"})]})})})]})}):(0,o.jsxs)("div",{className:"text-center py-20",children:[(0,o.jsx)("h2",{className:"text-2xl font-semibold mb-4 text-gray-800",children:"No video foun
1d"}),(0,o.jsx)("p",{className:"text-gray-600 mb-6 text-center",children:"Please search again or go back to the home page."}),(0,o.jsx)(u(),{href:"/",className:"bg-red-500 text-white px-6 py-2 rounded-lg font-medium hover:bg-red-600 transition",children:"Go to Home"})]})]})]})}}},function(e){e.O(0,[66,649,774,888,179],function(){return e(e.s=1148)}),_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.