1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[113],{723:(e,t,i)=>{"use strict";i.d(t,{w:()=>l});let l=e=>{let t="string"==typeof e?parseInt(e):e,i=t;if(!t||isNaN(t))return"0";let l=["","K","M","B"],n=0;for(t=Math.abs(t);t>=1e3&&n<l.length-1;)t/=1e3,n++;return i<1e3?t:"".concat(t.toFixed(2)," ").concat(l[n])}},4484:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var l=i(36697),n=i(95155);let a=(0,l.A)((0,n.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},8668:e=>{e.exports={chips:"VideoScreen_chips__wKqgK",playerGradientBg:"VideoScreen_playerGradientBg__9wS_8",cdBg:"VideoScreen_cdBg__NURS8",downArrowDiv:"VideoScreen_downArrowDiv___C6Jx",downArrow:"VideoScreen_downArrow__aR2eu",title:"VideoScreen_title__RCipu",mainDiv:"VideoScreen_mainDiv__2UnnI",musicTitle:"VideoScreen_musicTitle__n_ezm",musicSubTitle:"VideoScreen_musicSubTitle__HbGzF",player:"VideoScreen_player__jJoc3",thumbnail:"VideoScreen_thumbnail__orqSy",queueIcon:"VideoScreen_queueIcon__2NSjP",videoListDiv:"VideoScreen_videoListDiv__6Kppi",queueDiv:"VideoScreen_queueDiv__hcWfs",textColor:"VideoScreen_textColor__8mMg4",queueText:"VideoScreen_queueText__hZcb6",queueTitleDiv:"VideoScreen_queueTitleDiv__ix4ys",videoTitleText:"VideoScreen_videoTitleText__A_65b",flexDr:"VideoScreen_flexDr__BwFr7",videoFlexDr:"VideoScreen_videoFlexDr__dfwev",videoIcons:"VideoScreen_videoIcons___4SyP",videoIconsDiv:"VideoScreen_videoIconsDiv__eGE8q",videoIconsSubDiv:"VideoScreen_videoIconsSubDiv__N5I1I",bgColor:"VideoScreen_bgColor__VQUp_",rightMg:"VideoScreen_rightMg__C_qPb",commentsIcon:"VideoScreen_commentsIcon__myEVN",vtIconText:"VideoScreen_vtIconText__a8UhB",vtArtistText:"VideoScreen_vtArtistText___QnnF",vtArtistDetails:"VideoScreen_vtArtistDetails__KLP3v",vtCategoriesSubText:"VideoScreen_vtCategoriesSubText__0_UAu",vtViews:"VideoScreen_vtViews__bxpO3",vtVideoDescription:"VideoScreen_vtVideoDescription__Hid40",vtDiv:"VideoScreen_vtDiv__7HbsU",vtSubDiv:"VideoScreen_vtSubDiv__IeTRi",vtArtistDiv:"VideoScreen_vtArtistDiv__cEHlU",disc:"VideoScreen_disc__DiHMk",categories:"VideoScreen_categories__jqti8",moreFromText:"VideoScreen_moreFromText__aMCG1"}},12459:(e,t,i)=>{"use strict";i.d(t,{F3:()=>r,OA:()=>v,Ok:()=>h,Rm:()=>g,Yq:()=>_,fp:()=>A,mC:()=>d,ut:()=>u,ux:()=>c,xK:()=>m});let l=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],n=["January","February","March","April","May","June","July","August","September","October","November","December"],a={Jan:"01",Feb:"02",Mar:"03",Apr:"04",May:"05",Jun:"06",Jul:"07",Aug:"08",Sep:"09",Oct:"10",N
1ov:"11",Dec:"12"},o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function s(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function c(e){let[t]=null==e?void 0:e.split("T"),[i,l,a]=t.split("-"),s=o[new Date("".concat(i,"-").concat(l,"-").concat(a)).getUTCDay()],c=n[parseInt(l)-1];return"".concat(s,", ").concat(a," ").concat(c," ").concat(i)}function r(e){let[t]=null==e?void 0:e.split("T"),[i,l,n]=t.split("-");return i}function d(e){let[t]=null==e?void 0:e.split("T"),[i,n,a]=t.split("-"),o=l[parseInt(n)-1];return"".concat(a," ").concat(o," ").concat(i)}function u(e){let[t]=null==e?void 0:e.split("T"),[i,n,a]=t.split("-"),o=l[parseInt(n)-1],c=s(a);return"".concat(o," ").concat(a).concat(c,", ").concat(i)}function v(e){let[t]=null==e?void 0:e.split("T"),[i,n,a]=t.split("-"),o=l[parseInt(n)-1],c=s(a);return"".concat(a).concat(c," ").concat(o,", ").concat(i)}function A(e){let[t]=null==e?void 0:e.split("T"),[i,l,n]=t.split("-");return"".concat(i,"-").concat(l,"-").concat(n)}function m(e){if("string"==typeof e)if(e.includes("T")){let[t]=e.split("T");return t}else{let t=e.split(" "),i=t[1],l=t[2],n=t[3];return"".concat(n,"-").concat(a[l],"-").concat(i)}{let t=new Date(e),i=9>=t.getDate()?"0".concat(t.getDate()):t.getDate(),l=9>t.getMonth()?"0".concat(t.getMonth()+1):t.getMonth()+1,n=t.getFullYear();return"".concat(n,"-").concat(l,"-").concat(i)}}function h(){let e=new Date,t=new Date(e);t.setDate(e.getUTCDate()+1);let i=9>=t.getUTCDate()?"0".concat(t.getUTCDate()):t.getUTCDate(),l=9>t.getUTCMonth()?"0".concat(t.getUTCMonth()+1):t.getUTCMonth()+1,n=t.getUTCFullYear();return"".concat(n,"-").concat(l,"-").concat(i)}let g=e=>{try{let t=e.split(", ");if(3!==t.length)throw Error("Invalid date format");let[i,l,n]=t,[a,o]=l.trim().split(" "),s=o.replace(",","").trim(),c=new Date("".concat(a," ").concat(s,", ").concat(n));if(isNaN(c))throw Error("Invalid Date");return c}catch(e){return console.error(e),null}},_=e=>new Intl.DateTimeFormat("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}).format(e)},16599:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});let l={src:"/_next/static/media/playIcon.ea401ffc.png",height:81,width:76,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJ1BMVEVMaXHZ2dng4ODX19fc3NzY2Nja2trc3Nzd3d3c3NzY2NjX19fo6OgFu1OfAAAADHRSTlMA+vxvGKTkKA87vonj9kcLAAAACXBIWXMAACxLAAAsSwGlPZapAAAAMElEQVQImS2LSRIAIAjDSgFX/v9ex2ouySXgmhBWzK6wn3Yp+g1W84A0ANB26MonHB0GAL3sdvQHAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},16742:e=>{e.exports={imgDiv:"VideoCard_imgDiv__0AK_L",thumbnail:"VideoCard_thumbnail__2NbZM",playIconDiv:"VideoCard_playIconDiv__lbQfv",playIcon:"VideoCard_playIcon__7RsWz",content:"VideoCard_content__6IOO_",title:"VideoCard_title__0kDkr",subTitle:"VideoCard_subTitle___zIfl",subTitleP:"VideoCard_subTitleP__dAxYM",footerDiv:"VideoCard_footerDiv__LA75W",footerDivS:"VideoCard_footerDivS__NuA_p",footerDivP:"VideoCard_footerDivP__SCd6F",flexDr:"VideoCard_flexDr__m_DgN",text:"VideoCard_text__kOXCU",imgMainDiv:"VideoCard_imgMainDiv__qf3c1",mainDiv:"VideoCard_mainDiv__r3Wdx"}},33876:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var l=i(95155);i(12115);var n=i(28548),a=i(33700);function o(e){let{label:t="",textColor:i="",backgroundColor:o="",size:s="md",handleClick:c,handleDelete:r,hoverBackgroundColor:d="",fontSize:u=null}=e;return(0,l.jsx)(n.A,{sx:{color:""!==i?i:"#fff",backgroundColor:""!==o?o:"#2B2B2B",fontSize:null!=u?u:a.s.text,fontFamily:"Inter-Regular",maxWidth:200,cursor:null!==c?"pointer":"auto",transition:"color 0.25s ease-in-out, background-color 0.35s ease-in-out","&:hover":{backgroundColor:null!==c?""!==d?d:"red":""}},onClick:c,onDelete:r,size:"sm"===s?"small":"medium",label:t})}},35325:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var l=i(95155),n=i(12115),a=i(33077),o=i(33700),s=i(16742),c=i.n(s);function r(e){let{title:t="",subTitle:s="",likeCount:r=0,viewCount:d=0,thumbnailLink:u="",onClick:v,orientation:A="landscape",textAlign:m=null,size:h="md"}=e,[g,_]=(0,n.useState)(window.innerWidth);return(0,n.useEffect)(()=>{let e=()=>{_(window.innerWidth)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,l.jsx)("div",{onClick:v,className:c().mainDiv,children:(0,l.jsxs)(a.Ay,{container:!0,columnSpacing:g<431?0:2*("landscape"===A),rowSpacing:2*(g<431),style:{width:g<431?"100%":"landscape"===A?o.j.lg:o.j[h],height:g<431?"auto":"landscape"===A?144:"auto"},children:[(0,l.jsx)(a.Ay,{item:!0,xs:12,sm:"landscape"===A?4:12,md:"landscape"===A?6:12,className:c().imgMainDiv,children:(0,l.jsxs)("div",{style:{height:g<431?"auto":"landscape"===A?144:"auto",minHeight:"landscape"===A?144:120},className:c().imgDiv,children:[(0,l.jsx)("img",{className:c().thumbnail,src:u,alt:"video"}),(0,l.jsx)("div",{className:c().playIconDiv,children:(0,l.jsx)("img",{className:c().playIcon,src:i(16599).A.src,alt:"Play"})})]})}),(0,l.jsx)(a.Ay,{item:!0,xs:12,sm:"landscape"===A?8:12,md:"landscape"===A?6:12,children:(0,l.jsxs)("div",{className:c().content,children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{style:{marginTop:5*("landscape"!==A),textAlign:null!=m?m:"left"},className:c().title,children:t}),s&&"landscape"===A&&(0,l.jsx)("div",{className:c().subTitle,children:s}),s&&"portrait"===A&&"md"!==h&&(0,l.jsx)("div",{className:c().subTitle,children:s})]}),(0,l.jsxs)("div",{className:c().footerDivP,children:[s&&"portrait"===A&&"md"===h&&
1(0,l.jsx)("div",{className:c().subTitleP,children:s}),(0!==r||0!==d)&&(0,l.jsxs)("div",{className:"portrait"===A&&("xs"===h||"sm"===h)?c().footerDivS:c().footerDiv,children:[(0,l.jsxs)("div",{className:c().flexDr,children:[(0,l.jsx)("img",{style:{width:33,height:23},src:i(49467).A.src,alt:"Likes"}),(0,l.jsx)("div",{className:c().text,children:r})]}),(0,l.jsxs)("div",{className:c().flexDr,children:[(0,l.jsx)("img",{style:{width:22,height:13},src:i(56997).A.src,alt:"Views"}),(0,l.jsx)("div",{className:c().text,children:d})]})]})]})]})})]})})}},38922:(e,t,i)=>{"use strict";var l=i(22455);t.A=void 0;var n=l(i(33084)),a=i(95155);t.A=(0,n.default)((0,a.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share")},42063:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var l=i(36697),n=i(95155);let a=(0,l.A)((0,n.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},42361:(e,t,i)=>{"use strict";var l=i(22455);t.A=void 0;var n=l(i(33084)),a=i(95155);t.A=(0,n.default)((0,a.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send")},49467:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});let l={src:"/_next/static/media/Like.39da5b19.png",height:174,width:215,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAALVBMVEVMaXH///////////////////////////////////////////////////////9xAJ22AAAADnRSTlMA8hgnUqaW3A2xcy3OkKcae7IAAAAJcEhZcwAALEsAACxLAaU9lqkAAAAuSURBVAiZJcXHDQAgDACxS4PQsv+4SOCPAVT5Il7q0scE2paqBpwtUg6k2bLkAg4yALYy3GncAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6}},51389:(e,t,i)=>{"use strict";var l=i(22455);t.A=void 0;var n=l(i(33084)),a=i(95155);t.A=(0,n.default)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},53868:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});let l={src:"/_next/static/media/Comments.227a597e.png",height:105,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAALVBMVEX//////////////v7///9MaXH61tb////////////////3s7P1qan729v+39+7bp7UAAAAC3RSTlP9UHm/1AD+l+cYEmydhBoAAAAJcEhZcwAALEsAACxLAaU9lqkAAAA2SURBVAiZLYpJDgAhDIDopp2p+v/nmqicSIAQB5dAOAh2xaBG1agkV5uzraTf1N/sH6pqpn9sH2MA9JCYCSsAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}},56997:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});let l={src:"/_next/static/media/eye.b782274b.png",height:98,width:179,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAJFBMVEX////////////////////////////////////////////////Vd7HLAAAAC3RSTlNljIAaVyWeBbB7VErkuZkAAAAJcEhZcwAALEsAACxLAaU9lqkAAAAlSURBVAiZBcGHAQAwCMMwh035/99KNIYZjXBdhJh8d+Tg2qqVfwiEAI7POc2HAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},65826:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});let l=function(){return null}},68212:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var l=i(36697),n=i(95155);let a=(0,l.A)((0,n.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},75122:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>B});var l=i(71983),n=i(45849),a=i(95155),o=i(12115),s=i(8668),c=i.n(s),r=i(81537),d=i(20699),u=i(33077),v=i(32567),A=i(24862),m=i(33876),h=i(51389),g=i(51485),_=i(56683),p=i(93445),f=i(49963),x=i(35325),y=i(12459),w=i(39488);let S=(0,i(36697).A)((0,a.jsx)("path",{d:"M14 10H3v2h11zm0-4H3v2h11zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2zM3 16h7v-2H3z"}),"PlaylistAdd");var b=i(50742),C=i(29766),D=i(1213),j=i(68407),k=i.n(j),V=i(95125),T=i(3717),I=i(723),M=i(96730),N=i(28744),E=i(86932),L=i(23832),U=i(65826);let B=(0,D.Ng)(e=>{var t;return{isLoggedIn:e.auth.isLoggedIn,user:null==e||null==(t=e.auth)?void 0:t.user}})(function(e){var t,s,x;let{isLoggedIn:y,user:D}=e,[j,B]=(0,o.useState)(window.innerWidth),[O,F]=(0,o.useState)(!0),[P,q]=(0,o.useState)(!0),[H,W]=(0,o.useState)([]),[J,G]=(0,o.useState)(null),{setPageTitle:K}=(0,o.useContext)(p.o),[Y,Q]=(0,o.useState)(null),[X,Z]=(0,o.useState)(!0),[$,ee]=(0,o.useState)(null),[et,ei]=(0,o.useState)(!0),[el,en]=(0,o.useState)([]),[ea,eo]=(0,o.useState)(!1),[es,ec]=(0,o.useState)(!1),[er,ed]=(0,o.useState)(null),eu=(0,w.Zp)(),[ev,eA]=(0,o.useState)(1),[em,eh]=(0,o.useState)(!0),[eg,e_]=(0,o.useState)(null),[ep,ef]=(0,o.useState)(!1),[ex,ey]=(0,o.useState)(null),[ew,eS]=(0,o.useState)(null),[eb,eC]=(0,o.useState)([]),[eD,ej]=(0,o.useState)(!0),[ek,eV]=(0,o.useState)(null),[eT,eI]=(0,o.useState)(!1),[eM,eN]=(0,o.useState)(!1),{pathname:eE}=(0,w.zy)();(0,o.useEffect)(()=>
1{if(eE){let e=null==eE?void 0:eE.split("/")[2];ed("".concat(T.U.GET_VIDEO_DETAILS).concat(e)),L.Ay.send({hitType:"pageview",page:"/videos/".concat(e),title:"Video Detail"})}},[eE]),(0,o.useEffect)(()=>{er&&eL()},[er]),(0,o.useEffect)(()=>{$?K(null==$?void 0:$.title):K("Video Details Page")},[$]);let eL=async()=>{var e,t,i,n,a,o,s,c,r,d,u,v,A;try{let A=await V.A.get(er,{headers:(0,l._)({Accept:"application/json"},(null==D?void 0:D.token)&&{Authorization:"Bearer ".concat(null==D?void 0:D.token)})});eV(null==A?void 0:A.status),200===A.status&&((null==A?void 0:A.data)&&(null==A||null==(e=A.data)?void 0:e.video_details)&&(ee(null==A||null==(t=A.data)?void 0:t.video_details),(null==A||null==(a=A.data)||null==(n=a.video_details)||null==(i=n.artists)?void 0:i.length)!==0&&G(null==A||null==(d=A.data)||null==(r=d.video_details)?void 0:r.artists),(null==A||null==(c=A.data)||null==(s=c.video_details)||null==(o=s.categories)?void 0:o.length)!==0&&W(null==A||null==(v=A.data)||null==(u=v.video_details)?void 0:u.categories)),ei(!1))}catch(e){ei(!1),eV(null==e||null==(A=e.response)?void 0:A.status)}};(0,o.useEffect)(()=>{$&&(eS("".concat(T.U.GET_ALL_VIDEOS,"/").concat(null==$?void 0:$.id)),ec(null==$?void 0:$.is_liked),eO())},[$]),(0,o.useEffect)(()=>{ew&&eY()},[ew]);let eU=(0,o.useRef)(null),eB=(0,o.useRef)(null);(0,o.useEffect)(()=>{let e=()=>{B(window.innerWidth)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,o.useEffect)(()=>{j<431?F(!1):(F(!0),q(!0))},[j]);let ez=e=>{eu(e),window.scrollTo(0,0)};(0,o.useEffect)(()=>{y&&(null==D?void 0:D.token)&&eP()},[y]);let eR=async e=>{let t=(0,l._)({playlist_name:null==e?void 0:e.title},(null==e?void 0:e.description)&&{description:null==e?void 0:e.description});try{let e=await V.A.post(T.U.CREATE_VIDEO_PLAYLIST,t,{headers:{Accept:"application/json",Authorization:"Bearer ".concat(D.token)}});200===e.status&&(ej(!0),eP(),L.Ay.event({category:"Playlist",action:"New playlist created"}),k().fire({title:"Playlist Created Successfully",icon:"success",width:600,padding:"3em",color:"#fff",background:"#000",timer:2e3,showConfirmButton:!1}).then(()=>{eo(!0)}))}catch(e){k().fire({title:"Unable to create the playlist",icon:"error",width:600,padding:"3em",color:"#fff",background:"#000",timer:2e3,showConfirmButton:!1})}},eO=async()=>{try{await V.A.get("".concat(T.U.STREAM_VIDEO).concat(null==$?void 0:$.id),{headers:{Accept:"application/json"}})}catch(e){}},eF=async e=>{eo(!1);let t={playlist_id:null==e?void 0:e.id,video_id:null==$?void 0:$.id};try{let e=await V.A.post(T.U.ADD_VIDEO_TO_PLAYLIST,t,{headers:{Accept:"application/json",Authorization:"Bearer ".concat(D.token)}});if(200===e.status){var i;k().fire({title:null==e||null==(i=e.data)?void 0:i.message,icon:"success",width:600,padding:"3em",color:"#fff",background:"#000",timer:2e3,showConfirmButton:!1})}}catch(e){k().fire({title:"Unable to add video to the playlist",icon:"error",width:600,padding:"3em",color:"#fff",background:"#000",timer:2e3,showConfirmButton:!1})}},eP=async()=>{try{let a=await V.A.get(T.U.GET_VIDEO_PLAYLIST,{headers:(0,l._)({Accept:"application/json"},(null==D?void 0:D.token)&&{Authorization:"Bearer ".concat(null==D?void 0:D.token)}),params:{page:1,items:T.O.ALL_DATA}});if(200===a.status){var e,t,i,n;(null==a?void 0:a.data)&&(null==a||null==(e=a.data)?void 0:e.data)&&(null==a||null==(i=a.data)||null==(t=i.data)?void 0:t.length)!==0&&eC(null==a||null==(n=a.data)?void 0:n.data),ej(!1)}}catch(e){eC([]),ej(!1)}},eq={videoProps:{height:j<431?240:j<835?450:j<1233?500:570,width:"100%",autoPlay:!1,loop:!1,controls:!0,url:$?null==$?void 0:$.media_url:""}},eH=()=>{y?(L.Ay.event({category:"Playlist",action:"Add to playlist button clicked",label:null==$?void 0:$.title}),L.Ay.event({category:"Playlist",action:"".concat(null==$?void 0:$.title," added to playlist"),label:null==$?void 0:$.title}),eo(!0)):eK()},eW=e=>{eu("/videos/all"+((null==e?void 0:e.tag)?"?tag=".concat(e.tag):"?category=".concat(e.categories))),window.scrollTo(0,0)},eJ=async()=>{try{let d=await V.A.get(ew+"/comments",{headers:(0,l._)({Accept:"application/json"},(null==D?void 0:D.token)&&{Authorization:"Bearer ".concat(null==D?void 0:D.token)}),params:{page:ev,items:T.O.COMMENTS_PER_PAGE}});if(200===d.status){var e,t,i,n,a,o,s,c,r;
1(null==d?void 0:d.data)&&(null==d||null==(e=d.data)?void 0:e.comments)&&((null==d||null==(i=d.data)||null==(t=i.comments)?void 0:t.data)&&(1===ev?en(null==d||null==(s=d.data)||null==(o=s.comments)?void 0:o.data):en([...el,...null==d||null==(r=d.data)||null==(c=r.comments)?void 0:c.data])),e_(null==d||null==(a=d.data)||null==(n=a.comments)?void 0:n.last_page)),ep&&ef(!1),eM&&eN(!1),eh(!1)}}catch(e){eh(!1),ep&&ef(!1)}},eG=async e=>{try{let t=await V.A.get("".concat(T.U.LIKE_VIDEO_COMMENT).concat(e,"/like"),{headers:{"Content-type":"application/json",Authorization:"Bearer ".concat(null==D?void 0:D.token)}});200===t.status&&(L.Ay.event({category:"Comments",action:"Liked/Unliked a comment",label:"Liked/Unliked a comment on ".concat(null==$?void 0:$.title)}),L.Ay.event({category:"Comments",action:"Liked/Unliked a comment on ".concat(null==$?void 0:$.title),label:"Liked/Unliked a comment on ".concat(null==$?void 0:$.title)}))}catch(e){k().fire({title:"Unable to like comment",icon:"error",width:600,padding:"3em",color:"#fff",background:"#000",timer:2e3,showConfirmButton:!1,showCancelButton:!1})}};(0,o.useEffect)(()=>{ew&&eJ()},[ev,ew]);let eK=()=>{k().fire({title:"Taking you to the login page.",width:600,padding:"3em",color:"#fff",background:"#000",timer:2e3,showConfirmButton:!1,imageUrl:i(55493).A.src,imageWidth:80,imageAlt:"Loading..."}).then(()=>{eu("/login"),window.scrollTo(0,0)})},eY=async()=>{var e,t,i,a;let o={page:1,items:T.O.NEW_VIDEOS_HOME};o=H?(0,n._)((0,l._)({},o),{categories:[null==(e=H[0])?void 0:e.slug]}):(null==$?void 0:$.tags)?(0,n._)((0,l._)({},o),{tags:[null==$||null==(t=$.tags[0])?void 0:t.slug]}):J?(0,n._)((0,l._)({},o),{artists:[null==J?void 0:J.slug]}):(0,n._)((0,l._)({},o),{type:"featured"});try{let e=await V.A.get(T.U.GET_ALL_VIDEOS,{headers:{Accept:"application/json"},params:o});200===e.status&&((null==e?void 0:e.data)&&(null==e||null==(i=e.data)?void 0:i.length)!==0&&Q(null==e||null==(a=e.data)?void 0:a.data),Z(!1))}catch(e){Z(!1)}},eQ=async()=>{if(y){eI(!0);try{let t=await V.A.get(ew+"/like",{headers:{Accept:"application/json",Authorization:"Bearer ".concat(null==D?void 0:D.token)}});if(200===t.status){var e;k().fire({title:null==t||null==(e=t.data)?void 0:e.message,icon:"success",width:600,padding:"3em",color:"#fff",background:"#000",timer:2e3,showConfirmButton:!1})}eI(!1),ec(!es),L.Ay.event({category:"Video",action:"Liked/Unliked a video",label:"Liked/Unliked a video: ".concat(null==$?void 0:$.title)}),L.Ay.event({category:"Video",action:"Liked/Unliked a video: ".concat(null==$?void 0:$.title),label:"Liked/Unliked a video: ".concat(null==$?void 0:$.title)})}catch(e){eI(!1),k().fire({title:"Unable to like the song",icon:"error",width:600,padding:"3em",color:"#fff",background:"#000",timer:2e3,showConfirmButton:!1})}}else eK()};return ek&&200!==ek?(0,a.jsx)(E.A,{errorCode:ek}):(0,a.jsxs)(g.A,{children:[(0,a.jsx)(U.A,{author:"Trini Jungle Juice",title:null==$?void 0:$.title,url:window.location.href,image:null==$?void 0:$.cover_image_url}),P&&(et?(0,a.jsx)(d.A,{sx:{bgcolor:"grey.900"},animation:"wave",variant:"rectangular",width:"100%",height:j<431?240:j<835?450:j<1233?500:570}):(0,a.jsx)(r.A,(0,l._)({ref:eU},eq))),(0,a.jsxs)(u.Ay,{container:!0,children:[(0,a.jsxs)(u.Ay,{className:c().rightMg,item:!0,xs:12,md:X||Y?8:12,lg:X||Y?9:12,xl:X||Y?9:12,children:[P&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:c().videoFlexDr,children:[(0,a.jsx)("div",{className:c().videoTitleText,children:et?(0,a.jsx)(d.A,{sx:{bgcolor:"grey.900"},animation:"wave",variant:"text",width:j<431?"100%":300,height:30}):null==$?void 0:$.title}),(0,a.jsxs)("div",{className:c().videoIconsDiv,children:[(0,a.jsxs)("div",{className:c().videoIconsSubDiv,children:[(0,a.jsxs)("div",{className:c().videoIcons,children:[es&&(null==$?void 0:$.is_liked)||es?(0,a.jsx)(b.AnD,{style:{color:"#fff",fontSize:22,cursor:"pointer"},onClick:()=>!eT&&eQ()}):(0,a.jsx)(b.$qj,{style:{color:"#fff",fontSize:22,cursor:"pointer"},onClick:()=>!eT&&eQ()}),(0,a.jsx)("div",{className:c().vtIconText,children:(0,I.w)(null==$?void 0:$.like_count)})]}),j>600&&(0,a.jsx)(S,{onClick:()=>eH(),className:c().queueIcon}),(0,a.jsx)(_.A,{title:"Checkout this amazing video: "+(null==$?void 0:$.t
1itle),link:window.location.href,transparent:!0,onShare:function(e,t){L.Ay.event({category:"Share",action:"Share Button Clicked",label:"".concat(e," Shared on ").concat(t," from video details page")}),L.Ay.event({category:"Share",action:"".concat(null==$?void 0:$.title," Shared on ").concat(t),label:"".concat(e," Shared on ").concat(t," from video details page")})}})]}),j<431&&(0,a.jsxs)("div",{className:c().bgColor,children:[(0,a.jsx)(S,{onClick:()=>eH(),className:c().queueIcon}),(0,a.jsx)("img",{src:i(53868).A.src,className:c().commentsIcon,onClick:()=>void(F(!0),setTimeout(()=>{var e;q(!1),null==(e=eB.current)||e.scrollIntoView({behavior:"smooth"})},1e3)),alt:"comments"})]})]})]}),eD&&ea?(0,a.jsx)(v.A,{open:ea,onClose:()=>eo(!1),children:(0,a.jsx)(d.A,{sx:{bgcolor:"grey.900",borderRadius:10},animation:"wave",variant:"rounded",width:"40%",height:300})}):ea&&!eD&&(0,a.jsx)(v.A,{open:ea,onClose:()=>eo(!1),style:{zIndex:0x174876e7ff},children:(0,a.jsx)(C.A,{playlist:eb,onClick:eR,onPlaylistClick:eF})}),(H&&(null==H?void 0:H.length)!==0||J&&(null==J?void 0:J.length)!==0)&&(0,a.jsxs)("div",{className:c().vtDiv,children:[H&&(null==H?void 0:H.length)!==0&&(0,a.jsxs)("div",{className:c().vtSubDiv,children:[(0,a.jsx)(b.AQx,{className:c().disc}),(0,a.jsxs)("div",{className:c().vtArtistDetails,children:[(0,a.jsx)("div",{className:c().vtArtistText,children:"Categories"}),(0,a.jsx)("div",{className:c().vtCategoriesSubText,children:(null==H?void 0:H.length)!==0&&H.map((e,t)=>t<H.length-1?(0,a.jsxs)("span",{onClick:()=>eW({categories:null==e?void 0:e.slug}),className:c().categories,children:[e.title,","," "]},t):(0,a.jsx)("span",{onClick:()=>eW({categories:null==e?void 0:e.slug}),className:c().categories,children:e.title},t))})]})]}),J&&(null==J?void 0:J.length)!==0&&(0,a.jsx)("div",{className:c().vtSubDiv,children:(0,a.jsxs)("div",{className:c().vtArtistDiv,children:[(0,a.jsx)("img",{style:{width:50,height:50},src:null==(t=J[0])?void 0:t.profile_photo_url,alt:"Views"}),(0,a.jsxs)("div",{className:c().vtArtistDetails,children:[(0,a.jsx)("div",{className:c().vtArtistText,children:"Artists"}),(0,a.jsx)("div",{className:c().vtCategoriesSubText,children:(null==J?void 0:J.length)!==0&&J.map((e,t)=>t<J.length-1?(0,a.jsxs)("span",{onClick:()=>ez("/music/artists/".concat(null==e?void 0:e.slug)),className:c().categories,children:[(null==e?void 0:e.first_name)&&(null==e?void 0:e.first_name)," ",(null==e?void 0:e.last_name)&&(null==e?void 0:e.last_name),", "]},t):(0,a.jsxs)("span",{onClick:()=>ez("/music/artists/".concat(null==e?void 0:e.slug)),className:c().categories,children:[(null==e?void 0:e.first_name)&&(null==e?void 0:e.first_name)," ",(null==e?void 0:e.last_name)&&(null==e?void 0:e.last_name)]},t))})]})]})})]}),(0,a.jsxs)("div",{className:c().vtViews,children:[(0,a.jsxs)("div",{children:[" ",(0,I.w)(null==$?void 0:$.watch_count)," views"]}),(0,a.jsxs)("div",{children:[R(null==$?void 0:$.created_at)," ago"]})]}),(0,a.jsx)("div",{className:"".concat(c().vtVideoDescription," ck-content"),dangerouslySetInnerHTML:{__html:null==$?void 0:$.description}}),(null==$?void 0:$.tags)&&(null==$||null==(s=$.tags)?void 0:s.length)!==0&&(0,a.jsx)("div",{className:c().chips,children:null==$||null==(x=$.tags)?void 0:x.map(e=>(0,a.jsx)(m.A,{label:e.slug,handleClick:()=>eW({tag:null==e?void 0:e.slug})},e.name))})]}),(0,a.jsx)("div",{ref:eB,children:O&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:c().queueTitleDiv,children:[em?(0,a.jsx)(d.A,{sx:{bgcolor:"grey.900"},animation:"wave",variant:"text",width:j<600?"100%":150,height:40}):(0,a.jsx)(f.A,{size:"md",label:"Comments (".concat(function(){for(var e,t,i,l=0,n=0;n<(null==el?void 0:el.length);n++)(null==(t=el[n])||null==(e=t.children)?void 0:e.length)!==0&&(null==(i=el[n])?void 0:i.parent_comment_id)!==null&&(l+=el[n].children.length);return l+(null==el?void 0:el.length)}(),")"),style:{marginBottom:3}}),j<431&&(0,a.jsx)(h.A,{style:{fontSize:18,color:"#fff"},onClick:()=>void setTimeout(()=>{var e;O&&F(!1),null==(e=eU.current)||e.scrollIntoView({behavior:"smooth"}),q(!0)},1e3)})]}),em?(0,a.jsx)(N.A,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(A.A,{onLike:eG,onReply:e=>{ey(e)},onButtonClick:e=>(e=>{let t=(0,l._)({comment:e},ex&&{parent_comment_id:ex});V.A.post(ew+"/comment",t,{headers:{"Content-type":"application/x-www-form-urlencoded",Authorization:"Bearer ".concat(D.token)}}).then(e=>{ex?(L.Ay.event({category:"Comments",action:"Replied on a comment",label:"Replied on a comment on ".concat(null==$?void 0:$.t
1itle)}),L.Ay.event({category:"Comments",action:"Replied on a comment on ".concat(null==$?void 0:$.title),label:"Replied on a comment on ".concat(null==$?void 0:$.title)})):(L.Ay.event({category:"Comments",action:"New comment posted",label:"Posted a comment on ".concat(null==$?void 0:$.title)}),L.Ay.event({category:"Comments",action:"New comment posted on ".concat(null==$?void 0:$.title),label:"Posted a comment on ".concat(null==$?void 0:$.title)})),ey(null),1===ev?eJ():eA(1)})})(e),data:el,handleDelete:e=>{eN(!0),V.A.get("".concat(T.U.DELETE_COMMENT).concat(e,"/delete"),{headers:{"Content-type":"application/x-www-form-urlencoded",Authorization:"Bearer ".concat(D.token)}}).then(()=>{L.Ay.event({category:"Comments",action:"Deleted a comment",label:"Deleted a comment of ".concat(null==$?void 0:$.title)}),L.Ay.event({category:"Comments",action:"Deleted a comment of ".concat(null==$?void 0:$.title),label:"Deleted a comment of ".concat(null==$?void 0:$.title)}),1===ev?eJ():eA(1)})},isDeleting:eM}),ep&&(0,a.jsx)(N.A,{}),ev<eg&&!ep&&(0,a.jsx)(M.A,{loadMore:!0,onClick:()=>{null!=eg&&ev<=eg&&(ef(!0),eA(ev+1))}})]})]})})]}),(0,a.jsx)(u.Ay,{item:!0,xs:12,md:X||Y?4:0,lg:X||Y?3:0,xl:X||Y?3:0,children:P&&(0,a.jsxs)("div",{className:c().queueDiv,children:[Y&&(0,a.jsx)(f.A,{size:"md",label:"Related Videos",style:{marginBottom:4}}),(0,a.jsx)("div",{className:c().videoListDiv,children:X?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.A,{sx:{bgcolor:"grey.900"},animation:"wave",variant:"text",width:j<600?"100%":150,height:40}),Array.from({length:8},(e,t)=>(0,a.jsxs)("div",{children:[(0,a.jsx)(d.A,{sx:{bgcolor:"grey.900"},animation:"wave",variant:"rectangular",width:j<600?"100%":273,height:181}),(0,a.jsx)(d.A,{sx:{bgcolor:"grey.900"},animation:"wave",variant:"text",width:"70%"}),(0,a.jsx)(d.A,{sx:{bgcolor:"grey.900"},animation:"wave",variant:"text",width:"50%"})]},t))]}):Y&&(0,a.jsx)(z,{size:"sm",videos:Y,handleClick:ez})})]})})]})]})});function z(e){let{videos:t,size:i,handleClick:l}=e;return null==t?void 0:t.map((e,t)=>{let n=(0,y.ux)(e.created_at);return(0,a.jsx)(x.A,{title:e.title,viewCount:e.watch_count,likeCount:e.like_count,subTitle:n,thumbnailLink:e.cover_image_url,onClick:()=>l("/videos/".concat(e.slug)),orientation:"portrait",size:i},t)})}let R=e=>{let t=new Date(e),i=new Date-t,l=Math.floor(i/1e3),n=Math.floor(i/6e4),a=Math.floor(i/36e5),o=Math.floor(i/864e5),s=Math.floor(o/30),c=Math.floor(s/12);if(l<60)return"".concat(l+(1===l?" second":" seconds"));if(n<60)return"".concat(n+(1===n?" minute":" minutes"));if(a<24)return"".concat(a+(1===a?" hour":" hours"));if(o<30)return"".concat(o+(1===o?" day":" days"));if(s<12)return"".concat(s+(1===s?" month":" months"));else return"".concat(c+(1===c?" year":" years"))}},76322:(e,t,i)=>{"use strict";i.d(t,{A:()=>v});var l=i(95155),n=i(12115),a=i(25837),o=i(56422),s=i(41983),c=i(2390),r=i(68212),d=i(42063),u=i(33700);function v(e){let{onChange:t,label:i=null,size:v="small",defaultValue:A="",type:m="text",data:h=null,error:g=!1,placeholder:_,multiline:p=!1,rows:f,disabled:x=!1,onKeyDown:y}=e,[w,S]=(0,n.useState)(""),[b,C]=(0,n.useState)(1),[D,j]=(0,n.useState)(!1);(0,n.useEffect)(()=>{S(A)},[A]);let k=g?"#ff0000":"#fff",V={"& .MuiInputBase-root":{minHeight:36.13,color:"#fff !important",fontSize:14},"& .MuiInputBase-root input":{color:"#fff !important",paddingRight:"50px",fontSize:u.s.body,fontFamily:"Inter-Regular"},"& .MuiInputBase-input.Mui-disabled":{color:"#fff",paddingRight:"50px",fontSize:u.s.body,fontFamily:"Inter-Regular",WebkitTextFillColor:"#fff"},"& .MuiFormLabel-root":{color:k,fontSize:14,fontFamily:"Inter-Regular"},"& .MuiFormLabel-root.Mui-focused":{color:k,fontSize:14,fontFamily:"Inter-Regular"},"& .MuiFormLabel-root.Mui-disabled":{color:k,fontSize:14,fontFamily:"Inter-Regular"},"& .MuiButtonBase-root":{color:k,fontSize:u.s.smallText,fontFamily:"Inter-Regular",fontWeight:"400"},"& .MuiButtonBase-root svg":{color:k,fontSize:u.s.heading},"& .MuiSelect-icon":{color:g?"#ff0000 !important":"#fff !important"},"& .MuiOutlinedInput-root fieldset":{borderColor:g?"#ff0000 !important":"#fff !important"},"& .MuiOutlinedInput-root fieldset legend span":{fontSize:"11px"},"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #000 inset",WebkitTextFillColor:"#fff"}},T=e=>{"number"!==m?(S(e),t&&t(e)):b<11&&(C(e=>e+1),S(e),t&&t(e))};return"password"===m?(0,l.jsx)(a.A,{sx:V,fullWidth:!0,id:"outlined-helperText",label:i,onChange:e=>T(e.target.value),value:w,size:v,disabled:x,type:D?"text":"password",placeholder:_,onKeyDown:y,InputProps:{endAdornment:(0,l.jsx)(o.A,{position:"end",children:(0,l.jsx)(s.A,{"aria-label":"toggle password visibility",onClick:()=>{j(!D)},edge:"end",children:D?(0,l.jsx)(r.A,{}):(0,l.jsx)(d.A,{})})})}}):"select"===m?(0,l.jsx)(a.A,{sx:V,fullWidth:!0,id:"outlined-helperText",label:i,disabled:x,onChange:e=>T(e.target.value),value:w,size:v,placeholder:_,onKeyDown:y,select:!0,children:null==h?void 0:h.map(e=>(0,l.jsx)(c.A,{value:e.value,children:e.label},e.value))}):(0,l.jsx)(a.A,{sx:V,fullWidth:!0,id:"outlined-helperText",label:i,onChange:e=>T(e.target.value),value:w,size:v,type:m,disabled:x,placeholder:_,multiline:p,onKeyDown:y,rows:f})}},81537:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var l=i(71983),n=i(95155);i(12115);var a=i(32580),o=i.n(a);function s(e){let{videoProps:t={height:500,width:500,autoPlay:!1,loop:!1,controls:!1,url:"https://www.youtube.com/watch?v=VlVJjtid6r8"}}=e;return(0,n.jsx)(o(),(0,l._)({},t))}}}]);
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.