1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2178],{82311:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hls-player",function(){return n(76938)}])},57654:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var r=n(51438),i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;(0,r.Z)(this,e),this.volume=1,this.previousVolume=1,this.volume=t,this.onVolumeChange=n,this.onDisabledChange=i}var t=e.prototype;return t.setVolume=function(e){var t;0===e&&(this.previousVolume=this.volume),this.volume=e,null===(t=this.onVolumeChange)||void 0===t||t.call(this,e)},t.setDisabled=function(e){var t;null===(t=this.onDisabledChange)||void 0===t||t.call(this,e)},t.getVolume=function(){return this.volume},t.getPreviousVolume=function(){return this.previousVolume},t.mute=function(){this.setVolume(0)},t.unmute=function(){this.setVolume(this.previousVolume||1)},t.toggle=function(){0===this.volume?this.unmute():this.mute()},e}()},5417:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(85893),i=n(89885),o=n(67294);function a(){var e=(0,o.useContext)(i.Z).appConfig;return(0,r.jsxs)("div",{className:"d-flex flex-column justify-content-center align-items-center my-5 pt-4 bg-black",children:[(0,r.jsx)("div",{className:"mb-4 font-lg text-white",children:"Please download the app to watch this video"}),(0,r.jsx)("a",{href:e.web_iosurl||"https://apps.apple.com/in/app/my-coaching-by-appx/id1662307591",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)("img",{src:"https://appx-static.akamai.net.in/app-store.png",width:150,alt:"App Store"})})]})}},57379:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(85893),i=n(59417),o=n(67814),a=(n(67294),n(70499));function s(e){var t=e.isOpen,n=e.toggle,s=e.isError,u=void 0!==s&&s,c=e.errorText,l=void 0===c?"An error occurred while fetching video details":c,d=function(e){u||e.preventDefault()};return(0,r.jsx)(a.Vq,{open:t,onOpenChange:function(e){e||n()},children:(0,r.jsxs)(a.cZ,{closeButton:u,className:"max-w-md",onEscapeKeyDown:d,onInteractOutside:d,children:[(0,r.jsx)(a.fK,{children:(0,r.jsx)(a.$N,{children:u?"Error":"Please wait"})}),(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3 py-4 text-center",children:[!u&&(0,r.jsx)(o.G,{icon:i.LM3,size:"2x",spin:!0}),(0,r.jsx)(a.Be,{className:"text-foreground",children:u?l:"We are fetching the video details..."})]})]})})}},49475:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893),i=n(58094);function o(){var e=(0,i.Z)();return(0,r.jsx)("div",{className:"w-100 absolute top-0",style:{background:e,height:"5px",zIndex:1e3}})}},23956:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(85893),i=n(67294),o=n(93041),a=n(59417),s=n(67814),u=n(3751),c=n(19201),l=n(43704),d=n(84082),v=n(70789),f=n(68777),m=n(91328),p=n(49475),g=n(96486),h=n(39154),x=n(7079),y=n(89885),w=n(42238),b=n.n(w),E=n(57654),j=n(76585),k=n(5417),S=n(29823),_=n(49458),L=(n(25675),new Set(["bufferStalledError","bufferNudgeOnStall","bufferSeekOverHole","bufferAppendError","bufferFullError"]));function C(e){var t,n,w=function(e){var t=W.current;if(t)if(Ke(t),Q.current&&(Q.current.destroy(),Q.current=null),o.ZP.isSupported()){var n={};R&&(n={enableWorker:!0,lowLatencyMode:!0,backBufferLength:90,liveSyncDurationCount:3,maxBufferHole:.5}),Q.current=new o.ZP(n),Q.current.loadSource(e),Q.current.attachMedia(t);var r,i=new E.y(null!==(r=null===t||void 0===t?void 0:t.volume)&&void 0!==r?r:0,(function(e){t&&(t.volume=e)}),(function(e){var n,r=null===(n=t.parentElement)||void 0===n?void 0:n.querySelector(".volume-control");r&&(r.style.opacity=e?"0.5":"1",r.style.pointerEvents=e?"none":"auto")}));window._volumeControls=window._volumeControls||new Map,window._volumeControls.set((null===t||void 0===t?void 0:t.id)||"hlsvideo",i),Ge.current=function(){if(Ye(),Fe.current=0,null!==qe.current&&qe.current>0){var e=Math.min(qe.current,t.duration||0);t.currentTime=e,console.log("Resuming video from stored time: ".concat(e,", duration: ").concat(t.duration,", pauseTimeRef.current: ").concat(qe.current))}else P&&(t.currentTime=0);t.playbackRate=oe,t.play().then((function(e){J(!0),xe(!1),Ve(!1)})).catch((function(e){xe(!0)}))},t.addEventListener("loadeddata",Ge.current),We.current=function(){Be.current=!1,Fe.current=0,Ve(!1)},t.addEventListener("playing",We.current),Qe.current=function(){Be.current=!1,Ve(!1)},t.addEventListener("play",Qe.current),Xe.current=function(){ze.current||Be.current||t.ended||setTimeout((function(){et()}),100)},t.addEventListener("pause",Xe.current),Q.current.on(o.ZP.Events.ERROR,(function(t,n){if(console.error(t,n),(null===n||void 0===n?void 0:n.fatal)||n.type!==o.ZP.ErrorTypes.MEDIA_ERROR||!L.has(n.details)){if(null===n||void 0===n?void 0:n.fatal)if(W.current&&(qe.current=W.current.currentTime),Ve(!0),n.type!==o.ZP.ErrorTypes.NETWORK_E
1RROR)if(n.type!==o.ZP.ErrorTypes.MEDIA_ERROR)$e(e);else{if(Fe.current<1&&Q.current){Fe.current+=1;try{return void Q.current.recoverMediaError()}catch(r){console.error("recoverMediaError failed",r)}}$e(e)}else $e(e)}else et()}))}else{var a,s=(new(b())).getOS();Number(null===s||void 0===s||null===(a=s.version)||void 0===a?void 0:a.split(".")[0]);("iOS"==(null===s||void 0===s?void 0:s.name)||(null===s||void 0===s?void 0:s.name.toLowerCase().includes("mac"))&&"ontouchend"in document)&&Ie(!0),console.error("This is an old browser that does not support MSE https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API")}},C=e.src,N=e.qualities,Z=e.seekBarDisabled,R=e.low_latency_enabled,T=e.isWindowsApp,I=e.isMobile,O=void 0!==I&&I,M=e.disableFluidMode,V=void 0!==M&&M,D=e.playFromBeginning,P=void 0!==D&&D,A=e.watermarkText,B=e.isAdmin,F=void 0!==B&&B,z=e.debug,U=void 0!==z&&z,q=e.live_rewind_enable,G=void 0===q?"0":q,W=(0,i.useRef)(null),Q=(0,i.useRef)(),X=(0,i.useState)(!1),H=X[0],J=X[1],K=(0,i.useState)(!1),Y=(K[0],K[1],(0,i.useState)(0)),$=Y[0],ee=Y[1],te=(0,i.useState)("00:00/00:00"),ne=te[0],re=te[1],ie=(0,i.useState)(1),oe=ie[0],ae=ie[1],se=(0,i.useState)(!1),ue=se[0],ce=se[1],le=(0,i.useState)(),de=le[0],ve=le[1],fe=(0,i.useState)(!1),me=fe[0],pe=fe[1],ge=(0,i.useState)(!0),he=ge[0],xe=ge[1],ye=(0,i.useState)(0),we=ye[0],be=ye[1],Ee=(0,i.useState)(e.selectedQuality),je=Ee[0],ke=Ee[1],Se=(0,i.useContext)(y.Z),_e=Se.appConfig,Le=Se.currentUser,Ce=(0,i.useState)(e.selectedVideoFitOption||x.zz[0]),Ne=Ce[0],Ze=Ce[1],Re=(0,i.useState)(!1),Te=Re[0],Ie=Re[1],Oe=(0,i.useState)(!1),Me=Oe[0],Ve=Oe[1],De=(0,i.useRef)(null),Pe=(0,i.useRef)(0),Ae=(0,i.useRef)(null),Be=(0,i.useRef)(!1),Fe=(0,i.useRef)(0),ze=(0,i.useRef)(!1),Ue=(0,i.useRef)(null),qe=(0,i.useRef)(null),Ge=(0,i.useRef)(null),We=(0,i.useRef)(null),Qe=(0,i.useRef)(null),Xe=(0,i.useRef)(null),He=(0,u.useTimer)({autoStart:!0,expiryTimestamp:(new Date).setSeconds((new Date).getSeconds()+S.kL),onExpire:function(){ot()}}),Je=function(){if(W.current){var e;!function(){var e=W.current;if(e&&e.buffered&&e.buffered.length>0){var t=100/e.duration*e.buffered.end(0);be(t)}}(),pe(null===(e=Q.current)||void 0===e?void 0:e.liveSyncPosition);var t=100/W.current.duration*W.current.currentTime;if(isNaN(t))ee(0),re("00:00/00:00");else{ee(t);var n=new Date(1e3*W.current.duration).toISOString().substr(11,8),r=new Date(1e3*W.current.currentTime).toISOString().substr(11,8),i=Math.floor(W.current.duration/3600),o=Math.floor(W.current.currentTime/3600);if(0!=i)if(0!=o)re(r+"/"+n);else{var a=r.split(":");r=a[1]+":"+a[2],re(r+"/"+n)}else{var s=n.split(":");if(n=s[1]+":"+s[2],0!=o)re(r+"/"+n);else{var u=r.split(":");r=u[1]+":"+u[2],re(r+"/"+n)}}}}},Ke=(0,i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W.current;e&&(Ge.current&&(e.removeEventListener("loadeddata",Ge.current),Ge.current=null),We.current&&(e.removeEventListener("playing",We.current),We.current=null),Qe.current&&(e.removeEventListener("play",Qe.current),Qe.current=null),Xe.current&&(e.removeEventListener("pause",Xe.current),Xe.current=null))}),[]),Ye=function(){De.current&&(clearInterval(De.current),De.current=null),Pe.current=0,Ae.current=null,Be.current=!1,Fe.current=0,Ve(!1)},$e=function(e){if(e){var t=Ae.current===e;if(De.current){if(t)return;clearInterval(De.current),De.current=null}t||(Pe.current=0),Ae.current=e,Be.current=!0,Ve(!0),De.current=setInterval((function(){!function(e){if(Pe.current>=24)return console.log("Max retries reached, stopping retry attempts"),void Ye();Pe.current+=1,console.log("Retrying video load, attempt ".concat(Pe.current,"/").concat(24)),Be.current=!0,w(e)}(e)}),5e3)}},et=function(){Ue.current&&clearTimeout(Ue.current),!W.current||!W.current.paused||ze.current||Be.current||W.current.ended||(console.log("Video paused unexpectedly, attempting to resume..."),W.current.play().then((function(){console.log("Video resumed successfully"),J(!0),xe(!1),Be.current=!1,Ve(!1)})).catch((function(e){console.log("Failed to resume video, will retry:",e);var t=(null===je||void 0===je?void 0:je.path)||C;$e(t)}))),Ue.current=setTimeout((function(){ze.current=!1}),1e3)};(0,i.useEffect)((function(){return document.addEventListener("keydown",tt),function(){Ke(W.current),Q.current&&(Q.current.destroy(),Q.current=null),Ye(),Ue.current&&clearTimeout(Ue.current),document.removeEventListener("keydown",tt)}}),[]);var tt=function(e){"INPUT"!=e.target.tagName&&"Space"==e.code&&(rt(),e.preventDefault())};(0,i.useEffect)((function(){var e=W.current;if(e){var t=C;return e.addEventListener("timeupdate",Je),je&&(t=je.path),w(t),function(){e&&e.removeEventListener("timeupdate",Je),Ke(e)}}}),[C,W]);var nt,rt=function(){W.current.paused?(ze.current=!1,W.current.play()):(ze.current=!0,W.current.pause()),J(!W.current.paused),xe(!1)},it=function(){var e=document.getElementById("hlsplayer");if((!e||!e.classList.contains("user-active"))&&(e.classList.remove("user-inactive"),e.classList.add("user-active"),!He.seconds<=1)){var t=(new Date).setSeconds((new Date).getSeconds()+S.kL);He.restart(t,!0)}},ot=function(){var e=document.getElementById("hlsplayer");e&&(e.classList.remove("user-active"),e.classList.add("user-inactive"))};return Te?(0,r.jsx)(k.Z,{}):(0,r.jsxs)("div",{id:"hlsplayer",onClick:function(e){if(!(e.target.closest("#hls-player-video-controls")||e.target.closest("#floatingBtns"))){var t=document.getElementById("hlsplayer");
1t&&t.classList.contains("user-active")?(ot(),He.pause()):it()}},onMouseMove:it,onTouchStart:it,className:"h-100",style:{position:"relative",paddingTop:"56.25%"},children:[U&&(0,r.jsx)(_.Z,{isMobile:O,componentSuffix:"HlsPlayer"}),V&&(0,r.jsx)(p.Z,{}),!(0,g.isEmpty)(A)&&(0,r.jsx)(h.Z,{message:A,isAdmin:F},"watermark"),(0,g.isEmpty)(A)&&"0"!=_e.web_enablewatermarkonvideos&&Le&&(0,r.jsx)(h.Z,{isAdmin:F},"watermark"),(0,r.jsxs)("div",{style:{height:V?"100vh":"100%"},children:[!he&&(null===(t=W.current)||void 0===t?void 0:t.readyState)<2&&(0,r.jsx)(s.G,{icon:a.IJ7,spin:!0,color:"gray",size:"2x",className:"absolute center"}),Me&&!he&&(0,r.jsx)("div",{className:"absolute center text-center z-10",children:(0,r.jsx)("img",{src:"/assets/customplayer/css-loader.gif",alt:"Loading...",width:40,height:40})}),(0,r.jsx)("video",{id:"hlsvideo",style:{width:"100%",objectFit:null!==(nt=Ne.value)&&void 0!==nt?nt:"contain"},ref:W,poster:S.u7,autoPlay:!1}),he&&(0,r.jsx)(s.G,{icon:a.aQp,size:"3x",className:"absolute center opacity-75 cursor-pointer text-muted-foreground",onClick:rt}),!he&&(0,r.jsxs)("div",{id:"hls-player-video-controls",children:[me-(null===(n=W.current)||void 0===n?void 0:n.currentTime)>10&&(0,r.jsxs)(d.Z,{size:"sm",color:"link",className:"text-white",onClick:function(){W.current.currentTime=me},children:[(0,r.jsx)(s.G,{style:{fontSize:"8px"},className:"text-danger me-1",icon:a.diR}),"Go Live"]}),(0,r.jsxs)("div",{className:"d-flex",children:[!R&&(0,r.jsx)("div",{className:"duration mx-2 font-sm d-md-none text-white",children:ne.split("/")[0]}),!Z&&(0,r.jsx)(v.Z,{currentTime:$,bufferedTime:we,onTimeChange:function(e){var t=W.current.duration*(e.target.value/100);W.current.currentTime=t,ee(e.target.value)},seekBarDisabled:Z}),!R&&(0,r.jsx)("div",{className:"duration mx-2 font-sm d-md-none text-white",children:ne.split("/")[1]})]}),(0,r.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[(0,r.jsxs)("div",{className:"d-flex align-items-center",children:[(0,r.jsx)("div",{id:"hls-play-pause",className:"icon",onClick:rt,children:(0,r.jsx)(s.G,{icon:H?a.XQY:a.zc,className:""})}),!O&&(0,r.jsx)(l.Z,{}),Z?(0,r.jsxs)("div",{className:"text-white px-2 font-sm mt-1",children:[(0,r.jsx)(s.G,{style:{fontSize:"5px"},className:"text-danger me-1 mb-1",icon:a.diR}),"LIVE"]}):(0,r.jsx)("div",{className:"ms-2 duration font-sm d-none d-md-block text-white",children:ne})]}),(0,r.jsxs)("div",{className:"d-flex align-items-center",children:[e.toggleChat&&(0,r.jsx)("div",{className:"icon pe-2",onClick:e.toggleChat,children:(0,r.jsx)(s.G,{icon:a.lXL})}),"1"==G&&(0,r.jsx)("div",{className:"speed-di",children:(0,r.jsx)(f.Z,{speed:oe,onSpeedChange:function(e){var t=e.target.value;W.current.playbackRate=t,ae(t)}})}),(0,r.jsx)("div",{className:"video-fit-options-selector-div",children:(0,r.jsx)(x.ZP,{selectedVideoFitOption:Ne,onVideoFitOptionChange:function(e){Ze(e)}})}),N&&je&&N.length>0&&(0,r.jsx)("div",{className:"quality-div",children:(0,r.jsx)(m.Z,{qualities:N,selectedQuality:je,onQualityChange:function(e){Ye(),Q.current&&(Q.current.destroy(),Q.current=null);var t=e.target.value,n=e.target.name;J(!0);var r=(null!==N&&void 0!==N?N:[]).find((function(e){return e.path==t&&e.quality==n}));r&&ke(r),ee(0),w(t),Je()}})}),"1"!=T&&!O&&(0,r.jsx)("div",{className:"icon",onClick:function(){var e=document.getElementById("hlsvideo");document.pictureInPictureElement?document.exitPictureInPicture():e.requestPictureInPicture().then((function(t){ve(!0),e.addEventListener("leavepictureinpicture",(function(){ve(!1)}))})).catch((function(e){console.error(e),c.A.error("Picture in picture mode not supported")}))},children:de?(0,r.jsx)(s.G,{icon:a.wyP}):(0,r.jsx)("img",{src:"/icons/pic.svg",style:{height:"24px",width:"24px"},alt:"Picture in Picture"})}),(0,r.jsx)("div",{id:"hls-full-screen",className:"icon",style:O?{visibility:"hidden"}:{},onClick:function(){var t=document.getElementById("hlsplayerwithchat")?document.getElementById("hlsplayerwithchat"):document.getElementById("hlsplayer"),n=t.getElementsByTagName("video")[0];document.fullscreenElement?(document.exitFullscreen(),screen.orientation.lock&&screen.orientation.lock("natural")):((0,j.Zx)(t,n,(function(){document.fullscreenElement?(ce(!0),e.setIsFullScreen&&e.setIsFullScreen(!0)):(ce(!1),e.setIsFullScreen&&e.setIsFullScreen(!1))})),screen.orientation.lock&&screen.orientation.lock("landscape-primary"))},children:(0,r.jsx)(s.G,{icon:ue?a.Qj4:a.TL5})})]})]})]})]})]})}},91328:function(e,t,n){"use strict";var r=n(85893),i=n(67294),o=n(67955),a=n(98842),s=n(28055),u=n(38824),c=n(67814),l=n(59417);t.Z=function(e){var t=e.qualities,n=e.selectedQuality,d=e.onQualityChange,v=(0,i.useState)(!1),f=v[0],m=v[1];return(0,r.jsxs)(o.Z,{direction:"up",isOpen:f,toggle:function(){m(!f)},id:"quality-selector",onMouseEnter:function(){m(!0)},onMouseLeave:function(){m(!1)},children:[(0,r.jsx)(a.Z,{className:"text-white icon",color:"transparent",children:(0,r.jsx)(c.G,{icon:l.gr5})}),(0,r.jsx)(s.Z,{end:!0,style:{right:"-100% !important"},dark:!0,children:t.map((function(e,t){return(0,r.jsx)(u.Z,{value:e.path,name:e.quality,active:n.quality==e.quality,onClick:d,children:e.quality},t)}))})]})}},49458:function(e,t,n){"use strict";var r=n(47568),i=n(97582),o=n(85893),a=n(67294),s=n(40116),u=n(73916);t.Z=function(e){var t=e.isMobile,n=void 0!==t&&t,c=e.componentSuffix,l=void 0===c?"VideoPlayer":c,d=(0,a.useState)(null),v=d[0],f=d[1];(0,a.useEffect)((function(){var e=(0,u.hu)({componentSuffix:l,enableNetworkLogging:!0,storageKey:"".concat(l.toLowerCase(),"_logs")});return f(e),function(){e.destroy()}}),[l]);var m=function(){var e=(0,r.Z)((function(){var e,t,n,r,o,a;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:if(!v)return[2];if(e="[".concat(l," Logs]\nUserAgent: ").concat(navigator.userAgent||"","\nTimestamp: ").concat((new Date).toISOString(),"\n\n"),t=v.exportLogs(),n=e+t,!navigator.clipboard||!navigator.clipboard.writeText)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,navigator.clipboard.writeText(n)];case 2:return i.sent(),console.log("Logs copied to clipboard (".concat(v.getLogs().length,")")),[2];case 3:return r=i.sent(),console.error("Failed to copy logs:",r),[3,4];case 4:(o=document.createElement("textarea")).value=n,o.style.position="fixed",o.style.left="-9999px",document.body.appendChild(o),o.focus(),o.select(),i.label=5;case 5:return i.trys.push([5,9,10,11]),navigator.clipboard&&navigator.clipboard.writeText?[4,navigator.clipboard.writeText(o.value)]:[3,7];case 6:return i.sent(),console.log("Logs copied to clipboard (".concat((null===v||void 0===v?void 0:v.getLogs().length)||0,")")),[3,8];case 7:document.execCommand("copy"),console.log("Logs copied to clipboard (".concat((null===v||void 0===v?void 0:v.getLogs().length)||0,")")),i.label=8;case 8:return[3,11];case 9:return a=i.sent(),console.error("Failed to copy logs:",a),[3,11];case 10:return document.body.removeChild(o),[7];case 11:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}(),p=n?"Copy ".concat(l," logs"):"Download ".concat(l," logs");return(0,o.jsx)("button",{onClick:function(){try{n?m():function(){if(v)try{var e="[".concat(l," Logs]\nUserAgent: ").concat(navigator.userAgent||"","\nTimestamp: ").concat((new Date).toISOString(),"\n\n"),t=v.exportLogs(),n=new Blob([e+t],{type:"text/plain"}),r=URL.createObjectURL(n),i=document.createElement("a");i.href=r,i.download="".concat(l.toLowerCase(),"-logs-").concat((new Date).toISOString().replace(/[:.]/g,"-"),".txt"),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r),console.log("Logs downloaded (".concat(v.getLogs().length,")"))}catch(o){console.error("Failed to download logs:",o)}}()}catch(e){console.error(n?"Copy logs exception:":"Download logs exception:",e)}},"aria-label":p,title:p,style:{position:"absolute",left:"4px",top:"50%",transform:"translateY(-50%)",width:"clamp(20px, 2.5vw, 28px)",height:"clamp(20px, 2.5vw, 28px)",borderRadius:"9999px",zIndex:2147483647,background:"rgba(0,0,0,0.45)",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",padding:"0",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",backdropFilter:"blur(2px)",opacity:"0.6",transition:"opacity 0.2s ease"},onMouseEnter:function(e){e.currentTarget.style.opacity="0.95"},onMouseLeave:function(e){e.currentTarget.style.opacity="0.6"},children:(0,o.jsx)(s.Z,{className:"w-6 h-6"})})}},70789:function(e,t,n){"use strict";var r=n(85893),i=n(67294);t.Z=function(e){var t=e.currentTime,n=e.bufferedTime,o=e.seekBarDisabled,a=e.onTimeChange,s=(0,i.useRef)(null),u=(0,i.useState)(!1),c=u[0],l=u[1],d=function(e){return s.current?(e-s.current.getBoundingClientRect().left)/s.current.clientWidth*100:0},v=function(e){if(c){var t=d(e);a({target:{value:t}})}},f=function(e){c&&v(e.touches[0].clientX)};return(0,i.useEffect)((function(){var e=function(){c&&l(!1)},t=function(e){c&&v(e.clientX)};return window.addEventListener("mousemove",t),window.addEventListener("mouseup",e),window.addEventListener("touchmove",f),window.addEventListener("touchend",e),function(){window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",e),window.removeEventListener("touchmove",f),window.removeEventListener("touchend",e)}}),[c]),(0,r.jsx)("div",{className:"custom-seek-bar-container",onClick:function(e){var t=d(e.clientX);a({target:{value:t}})},onMouseDown:function(){l(!0)},onTouchStart:function(){return l(!0)},ref:s,children:(0,r.jsxs)("div",{className:"seek-bar-background",children:[(0,r.jsx)("div",{className:"seek-bar-progress",style:{width:"".concat(o?100:t,"%")}}),(0,r.jsx)("div",{className:"seek-bar-buffered",style:{width:"".concat(n,"%")}})]})})}},68777:function(e,t,n){"use strict";var r=n(85893),i=n(67294),o=n(67955),a=n(98842),s=n(28055),u=n(38824);t.Z=function(e){var t=e.speed,n=e.onSpeedChange,c=(0,i.useState)(!1),l=c[0],d=c[1];return(0,r.jsxs)(o.Z,{id:"speed-control",direction:"up",isOpen:l,toggle:function(){d(!l)},onMouseEnter:function(){d(!0)},onMouseLeave:function(){d(!1)},children:[(0,r.jsxs)(a.Z,{className:"text-white icon",color:"transparent",children:[t,"x"]}),(0,r.jsx)(s.Z,{end:!0,style:{right:"-100% !important"},dark:!0,className:"max-h-[100px] overflow-auto lg:max-h-none",children:[{label:"0.5x",value:"0.5"},{label:"0.75x",value:"0.75"},{label:"1x",value:"1"},{label:"1.25x",value:"1.25"},{label:"1.5x",value:"1.5"},{label:"1.75x",value:"1.75"},{label:"2.0x",value:"2"},{label:"2.5x",value:"2.5"},{label:"3.0x",value:"3"},{label:"4.0x",value:"4"}].map((function(e,i){return(0,r.jsx)(u.Z,{active:e.value==t,value:e.value,onClick:n,children:e.label},e.value)}))})]})}},7079:function(e,t,n){"use strict";n.d(t,{zz:function(){return d}});var r=n(85893),i=n(67294),o=n(67955),a=n(98842),s=n(28055),u=n(38824),c=n(59417),l=n(67814),d=[{label:"Fit Video",value:"contain"},{label:"Fit Width",value:"fill"}];t.ZP=function(e){var t=e.options,n=void 0===t?d:t,v=e.selectedVideoFitOption,f=void 0===v?d[0]:v,m=e.onVideoFitOptionChange,p=(0,i.useState)(!1),g=p[0],h=p[1];return(0,r.jsxs)(o.Z,{direction:"up",isOpen:g,toggle:function(){h(!g)},id:"video-fit-options-selector",onMouseEnter:function(){h(!0)},onMouseLeave:function(){h(!1)},children:[(0,r.jsx)(a.Z,{className:"d-flex text-white icon align-items-center",color:"transparent",children:(0,r.jsx)(l.G,{className:"ms-2",icon:c.UFF})}),(0,r.jsx)(s.Z,{end:!0,style:{right:"-100% !important"},dark:!0,children:n.map((function(e,t){return(0,r.jsx)(u.Z,{value:e.value,active:f.value==e.value,onClick:function(){return null===m||void 0===m?void 0:m(e)},children:e.label},t)}))})]})}},43704:function(e,t,n){"use strict";var r=n(85893),i=n(67294),o=n(67814),a=n(59417),s=n(57654),u=n(29823);t.Z=function(){var e=(0,i.useState)(1),t=e[0],n=e[1],c=(0,i.useState)(!1),l=c[0],d=c[1],v=(0,i.useRef)(null);(0,i.useEffect)((function(){var e=document.querySelector("video");e&&(e.volume=t),window.parent!==window&&window.parent.postMessage({type:"VIDEO_VOLUME_UPDATE",volume:t},"*")}),[t]),(0,i.useEffect)((function(){var e,t=document.querySelector("video"),r=(null===t||void 0===t?void 0:t.volume)||1;
1(v.current=new s.y(r,(function(e){return n(e)}),(function(e){return d(e)})),window.parent!==window)&&window.parent.postMessage({type:"REGISTER_VOLUME_CONTROL",controllerId:null===(e=window.frameElement)||void 0===e?void 0:e.id},"*");window._volumeControls=window._volumeControls||new Map,window._volumeControls.set("main",v.current);var i=function(e){var t=e.data||{},n=t.type,r=t.volume,i=t.disabled;n===u.Rv.SET_VOLUME&&v.current?v.current.setVolume(r):n===u.Rv.SET_DISABLED&&v.current&&v.current.setDisabled(i)};return window.addEventListener("message",i),function(){var e;null===(e=window._volumeControls)||void 0===e||e.delete("main"),window.removeEventListener("message",i)}}),[]);var f=t>0?a.ihg:a.YLJ;return(0,r.jsxs)("div",{className:"volume-control icon d-flex align-items-center",style:{opacity:l?.5:1},children:[(0,r.jsx)(o.G,{icon:f,onClick:function(){!l&&v.current&&v.current.toggle()},style:{cursor:l?"not-allowed":"pointer"}}),(0,r.jsx)("input",{type:"range",className:"form-range align-top m-2",min:"0",max:"1",step:"0.1",value:t,onChange:function(e){if(!l&&v.current){var t=parseFloat(e.target.value);v.current.setVolume(t)}},disabled:l})]})}},39154:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(26042),i=n(69396),o=n(85893),a=n(96486),s=n(67294),u=n(89885),c=n(73716),l=n(42474),d=n.n(l),v=n(29823),f={display:"block",visibility:"visible",opacity:"0.1",zIndex:"1000",fontSize:"0.5rem",color:"rgb(128, 128, 128)",background:"transparent",backgroundColor:"transparent",overflow:"visible",position:"absolute",padding:"0px",minWidth:"24px",textAlign:"center",pointerEvents:"none",borderRadius:"0px"},m=(0,i.Z)((0,r.Z)({},f),{color:"rgb(255, 0, 0)",background:"rgb(246, 247, 249)",backgroundColor:"rgb(246, 247, 249)",opacity:"0.5",fontSize:"1.6rem",minWidth:"120px",padding:"4px 10px",paddingTop:"4px",paddingBottom:"4px",paddingLeft:"10px",paddingRight:"10px"}),p=(0,i.Z)((0,r.Z)({},f),{opacity:"0.1",zIndex:"1000",fontSize:"0.4rem"}),g=function(e){var t=window.getComputedStyle(e),n=Object.keys(f).reduce((function(e,n){return e[n]=t[n],e}),{});return d().createHash("sha256").update(JSON.stringify(n)).digest("hex")};function h(e){var t=(0,s.useContext)(u.Z),n=t.currentUser,l=t.appConfig,d=(0,s.useState)(),h=d[0],x=d[1],y=(0,s.useRef)(""),w=function(t){var o,s;if(!(0,a.isEmpty)(e.message)||!(0,a.isEmpty)(n)){if(!t&&!1===function(){var t,r,i,o,s,u,c=document.getElementById("watermark");if(!c)return!1;if(c.hidden||c.clientHeight<(e.isAdmin?40:10)||c.clientWidth<(e.isAdmin?120:20))return!1;if(c.style.display!==p.display)return!1;if(c.style.visibility!==p.visibility)return!1;if(Number(c.style.opacity)<Number(p.opacity))return!1;if(Number(c.style.zIndex)<Number(p.zIndex))return!1;if(c.style.fontSize!==p.fontSize)return!1;if(c.style.color!==p.color)return!1;if(c.style.background!==p.background)return!1;if(c.style.position!==p.position)return!1;if(c.style.padding!==p.padding)return!1;if(["right","bottom","maxHeight","maxWidth","margin","marginTop","marginBottom","marginLeft","marginRight","scale","transform","translate","contentVisibility","contain","clipPath","webkitTransform"].some((function(e){return!(!c.style[e]||(0,a.isEmpty)(c.style[e]))})))return!1;var l=Number(null===(t=c.style.top)||void 0===t?void 0:t.replace("%","")),d=Number(null===(r=c.style.left)||void 0===r?void 0:r.replace("%",""));if(!(null===(i=c.style.top)||void 0===i?void 0:i.endsWith("%"))||!(null===(o=c.style.left)||void 0===o?void 0:o.endsWith("%"))||l<0||l>100||d<0||d>100)return!1;var v=e.message||"".concat(null===(s=n.email)||void 0===s?void 0:s.trim(),"\n").concat(null===(u=n.phone)||void 0===u?void 0:u.trim());if(c.innerText!==v)return!1;var m=g(c);if(!y.current)return y.current=m,!0;var h=m===y.current;if(!h){var x=window.getComputedStyle(c);Object.keys(f).forEach((function(e){x[e]}))}return h}())return window.parent.location,void window.location;var u=document.getElementById("watermark");if(h){u||(u=document.createElement("div")),u.id="watermark";var c=(0,a.random)(0,85),d=(0,a.random)(5,90);u.innerText=e.message||"".concat(null===(o=n.email)||void 0===o?void 0:o.trim(),"\n").concat(null===(s=n.phone)||void 0===s?void 0:s.trim()),u.hidden=!1;var v=e.isAdmin?50:!(0,a.isEmpty)(l.web_videowatermarkopacity)&&l.web_videowatermarkopacity>0?l.web_videowatermarkopacity:10,x=(0,i.Z)((0,r.Z)({},e.isAdmin?m:f),{left:"".concat(c,"%"),top:"".concat(d,"%"),opacity:"".concat(v,"%")});Object.assign(u.style,x),h.appendChild(u),y.current=g(u)}}};return(0,s.useEffect)((function(){window.addEventListener("message",(function(e){e.data.event===v.Rv.DEBUG_MODE_VALUE&&(window.__debugMode=e.data.value)}))}),[]),(0,s.useEffect)((function(){if(!(0,a.isEmpty)(e.message)||!(0,a.isEmpty)(n)){var t=document.getElementById("watermark"),r=t.parentNode;x(r)}}),[e.message,n]),(0,s.useEffect)((function(){if(h){w(!0);var e=(0,c.XR)(w,2e4);return function(){e.cancel()}}}),[h]),(0,o.jsx)("div",{id:"watermark"})}},58094:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294),i=n(89885);function o(){var e=(0,r.useContext)(i.Z).currentUser;if(!e||!e.phone)return null;var t=e.phone.slice(0,7),n=Number(t).toString(16);return"#".concat(n)}},76938:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var r=n(47568),i=n(26042),o=n(69396),a=n(97582),s=n(85893),u=n(47041),c=n(96486),l=n(99209),d=n(29823),v=n(45508),f=n(23956),m=n(76585),p=n(11163),g=n(67294),h=n(89885),x=(n(93520),n(57379)),y=n(19201);function w(e){var t=e.courseId,n=e.videoId,u=e.isFolderCourse,d=void 0===u?0:u,w=(e.token,(0,g.useState)(!1)),b=w[0],E=w[1],j=(0,g.useState)(null),k=j[0],S=j[1],_=(0,g.useState)(!1),L=_[0],C=_[1],N=(0,g.useState)(!1),Z=N[0],R=N[1],T=((0,p.useRouter)(),(0,g.useContext)(h.Z).appConfig,function(){var e=(0,r.Z)((function(){var e,r,s,u,f,p;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,5,,6]),E(!0),C(!0),R(!1),(e=!1)?[4,(0,m.Uj)()]:[3,2];case 1:return s=a.sent(),[3,3];case 2:s="",a.label=3;case 3:return r=s,[4,(0,l.mJ)({baseURL:"",course_id:t,video_id:n,ytflag:0,folder_wise_course:d,origin:null,token:"",userId:"",lcId:null,lcApi:null,recaptchaValue:r,recaptchaVerificationNeeded:e})];
1case 4:return u=a.sent(),C(!1),R(!1),(0,c.isEmpty)(null===u||void 0===u?void 0:u.livestream_links)?(E(!1),S(null),[2]):((f=(0,i.Z)({},u)).file_link=(0,v.NA)(f.file_link),f.media_id=(0,v.NA)(f.media_id),(0,c.isEmpty)(f.livestream_links)||(f.livestream_links=f.livestream_links.map((function(e){return(0,o.Z)((0,i.Z)({},e),{path:(0,v.NA)(e.path)})}))),f.video_id=(0,v.NA)(f.video_id),S(f),E(!1),[3,6]);case 5:return p=a.sent(),R(!0),E(!1),console.log(p),y.A.error(p.message),[3,6];case 6:return[2]}}))}));return function(){return e.apply(this,arguments)}}());return(0,g.useEffect)((function(){T()}),[]),(0,c.isEmpty)(k)?null:!b&&(0,c.isEmpty)(k)?(0,s.jsx)("div",{children:"Video not found"}):(0,s.jsxs)("div",{children:[(0,s.jsx)(f.Z,{qualities:k.livestream_links,seekBarDisabled:"0"==k.live_rewind_enable&&"1"==k.live_status,selectedQuality:k.livestream_links[0],src:k.livestream_links[0].path,isWindowsApp:!1,low_latency_enabled:k.low_latency_enabled,disableFluidMode:!0}),(0,s.jsx)(x.Z,{isOpen:L,toggle:function(){C(!L),R(!1)},isError:Z})]})}w.getInitialProps=function(){var e=(0,r.Z)((function(e){var t,n,r,o,s;return(0,a.__generator)(this,(function(a){return t=e.query,n=t.courseId,r=t.videoId,o=t.isFolderCourse,void 0===o?0:o,s=t.token,t.baseUrl||(0,u.getCookie)(d.z1,e),(t.userId||(0,u.getCookie)(d.JR,e))&&s?"noposter"!=r&&n&&r?[2,(0,i.Z)({},t)]:[2,{statusCode:404}]:[2,{statusCode:401}]}))}));return function(t){return e.apply(this,arguments)}}(),w.layout=function(e){var t=e.children;return(0,s.jsx)("div",{children:t})}}},function(e){e.O(0,[9412,614,5675,6661,9774,2888,179],(function(){return t=82311,e(e.s=t);var t}));var t=e.O();_N_E=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.