1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3974],{92817:function(e,t,n){n.d(t,{C7:function(){return o},FR:function(){return m},T5:function(){return f},Tx:function(){return w},Vr:function(){return s},YR:function(){return h},Yt:function(){return l},dr:function(){return d},jU:function(){return p},ks:function(){return u},q7:function(){return g},tS:function(){return c},v:function(){return x},zU:function(){return v}});var r=n(47568),i=n(97582),a=n(29061),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=arguments.length>3?arguments[3]:void 0;return r?a.Z.get("/get/courselistnewv2",{baseURL:e,params:{start:n,exam_id:r}}).then((function(e){return e.data})):a.Z.get("/get/folder_courses",{baseURL:e,params:{start:n,parent_id:t}}).then((function(e){return e.data}))},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2?arguments[2]:void 0;return a.Z.get("/get/parent_folder_courses",{baseURL:n,params:{start:t,current_folder_id:e}}).then((function(e){return e.data}))},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return a.Z.get("/get/courselistnewv2",{baseURL:t,params:{start:e}}).then((function(e){return e.data}))},l=function(e,t,n,r){var i={id:t};return n&&(i.linked_course_id=n,i.lc_app_api_url=new URL(r).host),a.Z.get("/get/coursenew_by_idv2",{baseURL:e,params:i}).then((function(e){return e.data.data}))},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,c={course_id:t,parent_id:n,windowsapp:o,start:s};return r&&(c.lc_app_api_url=new URL(i).host,c.linked_course_id=r),a.Z.get("/get/folder_contentsv3",{baseURL:e,params:c}).then((function(e){return e.data.data}))},d=function(){var e=(0,r.Z)((function(e,t,n,r){var a,o,s,c=arguments;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return a=c.length>4&&void 0!==c[4]?c[4]:"0",[4,u(e,t,-1,n,r,a)];case 1:return(null===(o=i.sent())||void 0===o?void 0:o.length)?(s=o[0],1===o.length&&"FOLDER"===String(s.material_type||"FOLDER").toUpperCase()?[4,u(e,t,s.id,n,r,a)]:[2,{entries:o,parentId:-1}]):[2,{entries:[],parentId:-1}];case 2:return[2,{entries:i.sent(),parentId:s.id}]}}))}));return function(t,n,r,i){return e.apply(this,arguments)}}(),f=function(e,t,n,r,i,o,s){var c={course_id:t,parent_id:-1,windowsapp:o,start:0,all_content:1,search:n};return r&&(c.lc_app_api_url=new URL(i).host,c.linked_course_id=r),a.Z.get("/get/folder_contentsv3",{baseURL:e,params:c,cancelToken:s}).then((function(e){return e.data.data}))},v=function(e,t,n){return a.Z.get("/get/parent_folder_contents",{baseURL:e,params:{course_id:t,current_folder_id:n}}).then((function(e){return e.data.data}))},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return a.Z.get("/get/featuredcourselistnewv2",{baseURL:e,params:{start:t}}).then((function(e){return e.data.data}))},p=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"1,2",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:-1,s={course_id:t,start:o,live_status:i};return n&&(s.lc_app_api_url=new URL(r).host,s.linked_course_id=n),a.Z.get("/get/course_contents_by_live_status",{baseURL:e,params:s}).then((function(e){return e.data.data}))},h=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,c={course_id:t,start:i,folder_wise_course:n,userid:r};return o&&(c.lc_app_api_url=new URL(s).host,c.linked_course_id=o),a.Z.get("/get/get_previous_live_videos",{baseURL:e,params:c}).then((function(e){return e.data}))},g=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"10",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:-1,s={course_id:t,item_type:i,userid:o};
1return n&&(s.lc_app_api_url=new URL(r).host,s.linked_course_id=n),a.Z.get("/get/get_sub_folder_courses",{baseURL:e,params:s}).then((function(e){return e.data.data}))},x=function(e){return a.Z.post("/post/update_video_rating",e).then((function(e){return e.data.data}))},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return a.Z.get("/get/coursecategories",{baseURL:e,params:{folder_course:t}}).then((function(e){return e.data}))}},24112:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(85893),i=n(89885),a=n(96486),o=n(67294);function s(){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.jsxs)("div",{className:"flex items-center gap-4 justify-center flex-wrap w-full px-4",children:[!(0,a.isEmpty)(e.web_androidurl)&&(0,r.jsx)("a",{href:e.web_androidurl,target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)("img",{src:"/google-play.svg",className:"mb-2",alt:"Google Play Store"})}),!(0,a.isEmpty)(e.web_iosurl)&&(0,r.jsx)("a",{href:e.web_iosurl,target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)("img",{src:"https://appx-static.akamai.net.in/app-store.png",className:"mb-2 bg-background",width:132,alt:"App Store"})}),!(0,a.isEmpty)(e.web_macappurl)&&(0,r.jsx)("a",{href:e.web_macappurl,target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)("img",{src:"https://appx-static.akamai.net.in/static-assets/website/intel.webp",width:132,className:"mb-2 bg-background",alt:"Mac With Intel Chip"})}),!(0,a.isEmpty)(e.web_macappurlapplechip)&&(0,r.jsx)("a",{href:e.web_macappurlapplechip,target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)("img",{src:"https://appx-static.akamai.net.in/static-assets/website/mac.webp",width:132,className:"mb-2 bg-background",alt:"Mac With Apple Chip"})}),!(0,a.isEmpty)(e.web_windowsurl)&&(0,r.jsx)("a",{href:e.web_windowsurl,target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)("img",{alt:"Windows",className:"mb-2",src:"https://appx-static.akamai.net.in/static-assets/website/windows.webp",width:132})})]})]})}},5417:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(85893),i=n(89885),a=n(67294);function o(){var e=(0,a.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"})})]})}},21523:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(85893),i=(n(67294),n(35739)),a=n(25205);function o(e){var t=e.onClose;return(0,r.jsx)("div",{className:"flex h-full min-h-[300px] items-center justify-center p-6",children:(0,r.jsxs)("div",{className:"w-full max-w-md rounded-xl p-6 text-center",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(a.Z,{className:"mx-auto mb-4 h-12 w-12 text-yellow-500"}),(0,r.jsx)("h3",{className:"mb-3 text-lg font-semibold",children:"Browser Not Supported"})]}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:"Please use Firefox to view this video, or update your Chrome browser to the latest version."}),t&&(0,r.jsx)(i.z,{className:"mt-5",onClick:t,children:"Close"})]})})}},27033:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(85893),i=n(67294),a=n(84082),o=n(95719),s=n(83024),c=n(60766),l=n(23149),u=n(89885),d=n(19201),f=n(11312),v=n(92817),m=n(59417),p=n(67814);function h(e){var t=e.courseId,n=e.ytFlag,h=e.videoId,g=e.isFolderCourse,x=(0,i.useContext)(u.Z),w=(x.currentUser,x.appConfig),b=(0,i.useState)(),y=b[0],_=b[1],j=(0,i.useState)(),k=j[0],N=j[1],E=function(){return N(!k)};return(0,r.jsxs)(r.Fragment,{children:["1"==w.web_enablecourseteacherrating&&(0,r.jsxs)(a.Z,{color:"link",size:"sm",onClick:E,className:"px-2 py-0",children:[(0,r.jsx)(p.G,{className:" me-1",icon:m.Tab}),"Feedback"]}),(0,r.jsxs)(o.Z,{isOpen:k,toggle:E,children:[(0,r.jsx)(s.Z,{isOpen:k,toggle:E,children:"Rate this Expert"}),(0,r.jsx)(c.Z,{className:"p-0 d-flex justify-content-center",children:(0,r.jsx)(f.Z,{count:y,onChange:function(e){return _(e)},size:50,activeColor:"#ffd700"})}),(0,r.jsx)(l.Z,{className:"justify-content-center",children:(0,r.jsx)(a.Z,{onClick:function(){var e={rating:y,course_id:t,ytFlag:n,video_id:h,folder_wise_course:g};(0,v.v)(e).then((function(e){d.A.success("Your rating has been submitted."),_(),E()}))},children:"Submit"})})]})]})}},78207:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(26042),i=n(69396),a=n(29815),o=n(85893),s=n(67294),c=n(89355),l=n(89885),u=n(73716),d=n(24271),f=n(96486),v=n(30381),m=n.n(v),p=n(97340),h=n(19201),g=n(35739),x=n(72685);n(62461);
1function w(e){var t=(0,s.useState)([]),n=t[0],v=t[1],m=(0,s.useState)(!1),p=m[0],w=m[1],y=(0,s.useRef)(null),_=(0,s.useRef)(null),j=(0,s.useRef)(null),k=(0,s.useContext)(l.Z),N=k.currentUser,E=k.appConfig,R=k.toggleAuthModal,S=(0,d.G5)(E.web_firebaseconfig),Z=e.video,C=e.folderCourse;(0,s.useEffect)((function(){var e=(0,c.N8)(S);y.current=(0,c.iH)(e,"/recordedComments/".concat(Z.id).concat("1"==C?"_f":""));var t=null;return(0,f.isEmpty)(N)||(t=(0,c.iH)(e,"/data/user_block_status/"+N.userid),(0,c.jM)(t,(function(e){var t=e.val();w(!0===t)}))),(0,c.yv)(y.current,(function(e){var t=e.val(),n=e.key;v((function(e){return e.find((function(e){return e.key===n}))?e:(0,a.Z)(e).concat([(0,i.Z)((0,r.Z)({key:n},t),{replies:t.replies?Object.values(t.replies):[]})])}))})),function(){try{y.current&&(0,c.S1)(y.current,"child_added"),t&&(0,c.S1)(t,"value")}catch(e){console.error("e",e)}}}),[Z.id,C,S,N]),(0,s.useEffect)((function(){_.current&&_.current.scrollTo({top:_.current.scrollHeight,behavior:"smooth"})}),[n]);var L=function(){var e;if(N){var t=null===(e=j.current)||void 0===e?void 0:e.value,n=(0,u.MI)(t);if(!p&&!(0,f.isEmpty)(null===n||void 0===n?void 0:n.trim())){if((0,u.$N)(t))return j.current.value=n,void h.A.warn("URLs are not allowed",{position:"bottom-right"});var r={userName:N.name,userComment:n,postedAt:(new Date).getTime(),userId:N.userid},i=(0,c.N8)(S),a="/recordedComments/".concat(Z.id).concat("1"==C?"_f":""),o=(0,c.VF)((0,c.iH)(i,a));(0,c.t8)(o,r),j.current.value=""}}else R()};return(0,o.jsxs)("div",{className:"flex h-full max-h-[43vh] flex-col border-border bg-card overflow-x-hidden",children:["0"==E.web_enablevideotimestamp&&(0,o.jsx)("div",{className:"border-b border-border bg-muted px-4 py-3 text-sm font-semibold text-foreground",children:"Comments"}),(0,o.jsx)("div",{className:"flex-1 overflow-y-auto overflow-x-hidden bg-muted/40 px-3 py-3 dark:bg-accent/20",ref:_,children:n.map((function(e,t){return(0,o.jsx)(b,{message:e,video:Z},e.key||t)}))}),(0,o.jsx)("div",{className:"border-t border-border bg-card p-3",children:(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(x.I,{ref:j,type:"text",placeholder:"Write your comment here...",onKeyDown:function(e){return"Enter"==e.key&&L()},name:"typedMessage",disabled:p,className:"h-10 flex-1 rounded-full bg-muted/60"}),(0,o.jsx)(g.z,{type:"button",variant:"secondary",onClick:L,disabled:p,className:"shrink-0 rounded-full px-4",children:"Send"})]})})]})}var b=function(e){var t=e.message,n=e.video,i=(0,s.useState)(!1),v=i[0],w=i[1],b=(0,s.useState)([]),y=b[0],_=b[1],j=(0,s.useState)(!1),k=j[0],N=j[1],E=(0,s.useContext)(l.Z),R=E.currentUser,S=E.appConfig,Z=(0,d.G5)(S.web_firebaseconfig),C=(0,c.N8)(Z),L=(0,s.useRef)(null),I=(0,s.useRef)(null);(0,s.useEffect)((function(){I.current=(0,c.iH)(C,"/recordedComments/".concat(n.id,"/").concat(t.key,"/replies"));var e=(0,c.iH)(C,"/data/user_block_status/"+R.userid);return(0,c.jM)(e,(function(e){var t=e.val();w(!0===t)})),(0,c.yv)(I.current,(function(e){var t=e.val(),n=e.key;_((function(e){return e.find((function(e){return e.key===n}))?e:(0,a.Z)(e).concat([(0,r.Z)({key:n},t)])}))})),function(){(0,c.S1)(e,"value"),I.current&&(0,c.S1)(I.current,"child_added")}}),[t.key,n.id,Z,R]);var T=function(){var e;if(R){var t=null===(e=L.current)||void 0===e?void 0:e.value,n=(0,u.MI)(t);if(!v&&!(0,f.isEmpty)(null===n||void 0===n?void 0:n.trim())){if((0,u.$N)(t))return L.current.value=n,void h.A.warn("URLs are not allowed",{position:"bottom-right"});var r={userName:R.name,userComment:n,postedAt:(new Date).getTime(),userId:R.userid},i=(0,c.VF)(I.current);(0,c.t8)(i,r).then((function(){L.current.value=""}))}}};return(0,o.jsx)("div",{className:"mb-3",children:(0,o.jsxs)("div",{className:"rounded-lg border border-border bg-card p-3 shadow-sm",children:[(0,o.jsxs)("div",{className:"text-sm text-foreground",children:[(0,o.jsxs)("span",{className:"me-2 font-semibold",children:[t.userName,":"]}),(0,o.jsx)(p.Z,{options:{target:"_blank",rel:"noopener noreferrer"},children:(0,u.i5)(t.userComment)})]}),(0,o.jsxs)("div",{className:"mt-2 flex items-end gap-3",children:[(0,o.jsx)(g.z,{type:"button",variant:"link",size:"sm",onClick:function(){return N(!k)},className:"h-auto p-0 text-primary",children:"Reply"}),(null===y||void 0===y?void 0:y.length)>0?(0,o.jsxs)(g.z,{type:"button",variant:"link",size:"sm",onClick:function(){return N(!k)},className:"h-auto p-0 text-primary",children:[k?"Hide":"View"," replies (",null===y||void 0===y?void 0:y.length,")"]}):null,(0,o.jsx)("time",{className:"ms-auto text-xs text-muted-foreground",children:m()(t.postedAt).format("DD MMM hh:mmA")})]}),k?(0,o.jsxs)("div",{className:"mt-3 border-t border-border pt-3",children:[y.map((function(e){return(0,o.jsxs)("div",{className:"pb-2 text-sm text-foreground",children:[(0,o.jsxs)("span",{className:"me-2 font-semibold",children:[e.userName,":"]}),(0,o.jsx)(p.Z,{options:{target:"_blank",rel:"noopener noreferrer"},children:(0,u.i5)(e.userComment)})]},e.key)})),(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(x.I,{ref:L,t
1ype:"text",placeholder:"Write your reply here...",onKeyDown:function(e){return"Enter"==e.key&&T()},autoFocus:!0,disabled:v,className:"h-9 flex-1 text-sm"}),(0,o.jsx)(g.z,{type:"button",variant:"secondary",size:"sm",disabled:v,onClick:T,children:"Send"})]})]}):null]})})}},42836:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(85893),i=n(67294),a=n(96076);function o(e){var t=e.manifestUrl,n=e.qualityOptions,o=e.licenseServer,s=e.licenseToken,c=e.certificateUrl,l=e.drmSystem,u=void 0===l?"auto":l,d=e.debug,f=void 0!==d&&d,v=(0,i.useRef)(null),m=a.$0,p=function(e){try{var t=new URL(e).hostname;return t===a.k0||t.endsWith(".".concat(a.k0))}catch(n){return!1}}(m),h="".concat(m).concat(a.cz).concat(f?"?debug=1":""),g=m.replace(/\/$/,"");return(0,i.useEffect)((function(){if(p){var e=function(e){if(e.origin===g){var r,i=null!==(r=e.data)&&void 0!==r?r:{},l=i.type,d=i.data;if(l===a.Rv.PLAYER_READY){var m,p,h={type:a.Rv.INIT_PLAYER,data:{manifestUrl:t,qualityOptions:n,licenseServer:o,licenseToken:s,certificateUrl:c,drmSystem:u,debug:f}};null===(m=v.current)||void 0===m||null===(p=m.contentWindow)||void 0===p||p.postMessage(h,g)}else l===a.Rv.PLAYER_ERROR&&console.log("[DrmIframePlayer] got PLAYER_ERROR",d)}};return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}}),[t,n,o,s,c,u,f,g,p]),p?(0,r.jsx)("div",{className:"bg-black flex items-center justify-center w-100 h-100 aspect-video",children:(0,r.jsx)("iframe",{ref:v,src:h,className:"aspect-video w-100 h-100",allow:"autoplay; fullscreen; encrypted-media",allowFullScreen:!0,loading:"lazy"})}):null}o.displayName="DrmIframePlayer"},51006:function(e,t,n){n.d(t,{ZP:function(){return m}});var r=n(26042),i=n(69396),a=n(85893),o=n(67294),s=n(11163),c=n(40828),l=n(96076),u=n(19201);function d(){try{return JSON.parse(localStorage.getItem(l.dA.FREE_PREVIEW_MAP)||"{}")}catch(e){return{}}}function f(e){try{localStorage.setItem(l.dA.FREE_PREVIEW_MAP,JSON.stringify(e))}catch(t){}}function v(e){var t,n=null!==(t=d()[e])&&void 0!==t?t:0;return Math.max(0,l.Q9-n)}function m(e){var t,n,m,p,h,g=e.videoId,x=e.product,w=(0,s.useRouter)(),b=v(g),y=(0,o.useState)(b),_=y[0],j=y[1],k=(0,o.useState)(b<=0),N=k[0],E=k[1],R=(0,o.useRef)(null),S=(0,o.useRef)(null),Z=(0,o.useRef)(l.Q9-b),C=(0,o.useRef)(!1);(0,o.useEffect)((function(){var e=v(g);Z.current=l.Q9-e,C.current=!1,j(e),E(e<=0)}),[g]),(0,o.useEffect)((function(){if(!N)return R.current=setInterval((function(){Z.current+=1;var e=d();e[g]=Z.current,f(e);var t=l.Q9-Z.current;j(t),t<=0&&(clearInterval(R.current),function(e){var t=d();t[e]=l.Q9,f(t)}(g),E(!0))}),1e3),function(){clearInterval(R.current),S.current&&clearTimeout(S.current)};C.current||(C.current=!0,u.A.error("Free preview ended"),S.current=setTimeout((function(){document.fullscreenElement&&document.exitFullscreen()}),800))}),[g,N]),(0,o.useEffect)((function(){var e=function(){var e,t=document.getElementById("free-preview-timer");t&&(document.fullscreenElement?document.fullscreenElement.appendChild(t):null===(e=document.getElementById("videoContainer"))||void 0===e||e.appendChild(t))};return document.addEventListener("fullscreenchange",e),function(){return document.removeEventListener("fullscreenchange",e)}}),[]);var L=x&&x.price?(0,i.Z)((0,r.Z)({},x),{id:x.id,title:x.course_name,image:x.course_thumbnail,itemId:x.id,itemType:10,price:x.price,mrp:x.mrp,priceKicker:x.price_kicker,uhs_price:null!==(t=x.uhs_price)&&void 0!==t?t:"0",is_paid:"0",allow_payment:"1",installmentPlans:null!==(n=x.installmentplan)&&void 0!==n?n:[],showEmiPay:String(x.showemipay),pricingPlans:null!==(m=x.pricing_plans)&&void 0!==m?m:[],subscription_plans:null!==(p=x.subscription_plans)&&void 0!==p?p:[],upsell_items:null!==(h=x.upsell_items)&&void 0!==h?h:[]}):null,I=Math.floor(_/60),T=_%60;return N?(0,a.jsxs)("div",{id:"free-preview-timer",className:"absolute inset-0 z-[10] flex flex-col items-center justify-center bg-black/[0.88] rounded-md",children:[(0,a.jsx)("p",{className:"mb-5 text-center text-[1.1rem] font-semibold text-white",children:"Your free preview has ended"}),L&&(0,a.jsx)("div",{className:"min-w-[180px]",children:(0,a.jsx)(c.Z,{product:L,currencyTextClassName:"text-white"})}),!L&&(null===x||void 0===x?void 0:x.id)&&(0,a.jsx)("button",{onClick:function(){if(null===x||void 0===x?void 0:x.id){var e="1"==x.folder_wise_course?"/new-courses/".concat(x.id):"/courses/".concat(x.id);w.push(e)}},className:"min-w-[180px] px-4 py-2 bg-blue-600 text-white rounded-md",children:"Buy Course"}),!L&&!x&&(0,a.jsx)("p",{className:"text-white text-sm",children:"Please purchase this course to continue"})]}):(0,a.jsxs)("div",{id:"free-preview-timer",className:"pointer-events-none absolute left-2 top-2.5 z-100 rounded-full bg-black/65 px-3 py-1 text-sm font-semibold text-white whitespace-nowrap",children:["Free preview: ",I,":",String(T).padStart(2,"0")]})}},23956:function(e,t,n){n.d(t,{Z:function(){return S}});
1var r=n(85893),i=n(67294),a=n(93041),o=n(59417),s=n(67814),c=n(3751),l=n(19201),u=n(43704),d=n(84082),f=n(70789),v=n(68777),m=n(91328),p=n(49475),h=n(96486),g=n(39154),x=n(7079),w=n(89885),b=n(42238),y=n.n(b),_=n(57654),j=n(76585),k=n(5417),N=n(96076),E=n(49458),R=(n(25675),new Set(["bufferStalledError","bufferNudgeOnStall","bufferSeekOverHole","bufferAppendError","bufferFullError"]));function S(e){var t,n,b=function(e){var t=V.current;if(t)if($e(t),Q.current&&(Q.current.destroy(),Q.current=null),a.ZP.isSupported()){var n={};L&&(n={enableWorker:!0,lowLatencyMode:!0,backBufferLength:90,liveSyncDurationCount:3,maxBufferHole:.5}),Q.current=new a.ZP(n),Q.current.loadSource(e),Q.current.attachMedia(t);var r,i=new _.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(Je(),De.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 M&&(t.currentTime=0);t.playbackRate=ae,t.play().then((function(e){K(!0),xe(!1),Ae(!1)})).catch((function(e){xe(!0)}))},t.addEventListener("loadeddata",Ge.current),Ve.current=function(){ze.current=!1,De.current=0,Ae(!1)},t.addEventListener("playing",Ve.current),Qe.current=function(){ze.current=!1,Ae(!1)},t.addEventListener("play",Qe.current),He.current=function(){Be.current||ze.current||t.ended||setTimeout((function(){et()}),100)},t.addEventListener("pause",He.current),Q.current.on(a.ZP.Events.ERROR,(function(t,n){if(console.error(t,n),(null===n||void 0===n?void 0:n.fatal)||n.type!==a.ZP.ErrorTypes.MEDIA_ERROR||!R.has(n.details)){if(null===n||void 0===n?void 0:n.fatal)if(V.current&&(qe.current=V.current.currentTime),Ae(!0),n.type!==a.ZP.ErrorTypes.NETWORK_ERROR)if(n.type!==a.ZP.ErrorTypes.MEDIA_ERROR)Xe(e);else{if(De.current<1&&Q.current){De.current+=1;try{return void Q.current.recoverMediaError()}catch(r){console.error("recoverMediaError failed",r)}}Xe(e)}else Xe(e)}else et()}))}else{var o,s=(new(y())).getOS();Number(null===s||void 0===s||null===(o=s.version)||void 0===o?void 0:o.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)&&Te(!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")}},S=e.src,Z=e.qualities,C=e.seekBarDisabled,L=e.low_latency_enabled,I=e.isWindowsApp,T=e.isMobile,F=void 0!==T&&T,P=e.disableFluidMode,A=void 0!==P&&P,U=e.playFromBeginning,M=void 0!==U&&U,O=e.watermarkText,z=e.isAdmin,D=void 0!==z&&z,B=e.debug,W=void 0!==B&&B,q=e.live_rewind_enable,G=void 0===q?"0":q,V=(0,i.useRef)(null),Q=(0,i.useRef)(),H=(0,i.useState)(!1),Y=H[0],K=H[1],$=(0,i.useState)(!1),J=($[0],$[1],(0,i.useState)(0)),X=J[0],ee=J[1],te=(0,i.useState)("00:00/00:00"),ne=te[0],re=te[1],ie=(0,i.useState)(1),ae=ie[0],oe=ie[1],se=(0,i.useState)(!1),ce=se[0],le=se[1],ue=(0,i.useState)(),de=ue[0],fe=ue[1],ve=(0,i.useState)(!1),me=ve[0],pe=ve[1],he=(0,i.useState)(!0),ge=he[0],xe=he[1],we=(0,i.useState)(0),be=we[0],ye=we[1],_e=(0,i.useState)(e.selectedQuality),je=_e[0],ke=_e[1],Ne=(0,i.useContext)(w.Z),Ee=Ne.appConfig,Re=Ne.currentUser,Se=(0,i.useState)(e.selectedVideoFitOption||x.zz[0]),Ze=Se[0],Ce=Se[1],Le=(0,i.useState)(!1),Ie=Le[0],Te=Le[1],Fe=(0,i.useState)(!1),Pe=Fe[0],Ae=Fe[1],Ue=(0,i.useRef)(null),Me=(0,i.useRef)(0),Oe=(0,i.useRef)(null),ze=(0,i.useRef)(!1),De=(0,i.useRef)(0),Be=(0,i.useRef)(!1),We=(0,i.useRef)(null),qe=(0,i.useRef)(null),Ge=(0,i.useRef)(null),Ve=(0,i.useRef)(null),Qe=(0,i.useRef)(null),He=(0,i.useRef)(null),Ye=(0,c.useTimer)({autoStart:!0,expiryTimestamp:(new Date).setSeconds((new Date).getSeconds()+N.kL),onExpire:function(){at()}}),Ke=function(){if(V.current){var e;!function(){var e=V.current;if(e&&e.buffered&&e.buffered.length>0){var t=100/e.duration*e.buffered.end(0);ye(t)}}(),pe(null===(e=Q.current)||void 0===e?void 0:e.liveSyncPosition);var t=100/V.current.duration*V.current.currentTime;if(isNaN(t))ee(0),re("00:00/00:00");else{ee(t);var n=new Date(1e3*V.current.duration).toISOString().substr(11,8),r=new Date(1e3*V.current.currentTime).toISOString().substr(11,8),i=Math.floor(V.current.duration/3600),a=Math.floor(V.current.currentTime/3600);if(0!=i)if(0!=a)re(r+"/"+n);else{var o=r.split(":");
1r=o[1]+":"+o[2],re(r+"/"+n)}else{var s=n.split(":");if(n=s[1]+":"+s[2],0!=a)re(r+"/"+n);else{var c=r.split(":");r=c[1]+":"+c[2],re(r+"/"+n)}}}}},$e=(0,i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V.current;e&&(Ge.current&&(e.removeEventListener("loadeddata",Ge.current),Ge.current=null),Ve.current&&(e.removeEventListener("playing",Ve.current),Ve.current=null),Qe.current&&(e.removeEventListener("play",Qe.current),Qe.current=null),He.current&&(e.removeEventListener("pause",He.current),He.current=null))}),[]),Je=function(){Ue.current&&(clearInterval(Ue.current),Ue.current=null),Me.current=0,Oe.current=null,ze.current=!1,De.current=0,Ae(!1)},Xe=function(e){if(e){var t=Oe.current===e;if(Ue.current){if(t)return;clearInterval(Ue.current),Ue.current=null}t||(Me.current=0),Oe.current=e,ze.current=!0,Ae(!0),Ue.current=setInterval((function(){!function(e){if(Me.current>=24)return console.log("Max retries reached, stopping retry attempts"),void Je();Me.current+=1,console.log("Retrying video load, attempt ".concat(Me.current,"/").concat(24)),ze.current=!0,b(e)}(e)}),5e3)}},et=function(){We.current&&clearTimeout(We.current),!V.current||!V.current.paused||Be.current||ze.current||V.current.ended||(console.log("Video paused unexpectedly, attempting to resume..."),V.current.play().then((function(){console.log("Video resumed successfully"),K(!0),xe(!1),ze.current=!1,Ae(!1)})).catch((function(e){console.log("Failed to resume video, will retry:",e);var t=(null===je||void 0===je?void 0:je.path)||S;Xe(t)}))),We.current=setTimeout((function(){Be.current=!1}),1e3)};(0,i.useEffect)((function(){return document.addEventListener("keydown",tt),function(){$e(V.current),Q.current&&(Q.current.destroy(),Q.current=null),Je(),We.current&&clearTimeout(We.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=V.current;if(e){var t=S;return e.addEventListener("timeupdate",Ke),je&&(t=je.path),b(t),function(){e&&e.removeEventListener("timeupdate",Ke),$e(e)}}}),[S,V]);var nt,rt=function(){V.current.paused?(Be.current=!1,V.current.play()):(Be.current=!0,V.current.pause()),K(!V.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"),!Ye.seconds<=1)){var t=(new Date).setSeconds((new Date).getSeconds()+N.kL);Ye.restart(t,!0)}},at=function(){var e=document.getElementById("hlsplayer");e&&(e.classList.remove("user-active"),e.classList.add("user-inactive"))};return Ie?(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");t&&t.classList.contains("user-active")?(at(),Ye.pause()):it()}},onMouseMove:it,onTouchStart:it,className:"h-100",style:{position:"relative",paddingTop:"56.25%"},children:[W&&(0,r.jsx)(E.Z,{isMobile:F,componentSuffix:"HlsPlayer"}),A&&(0,r.jsx)(p.Z,{}),!(0,h.isEmpty)(O)&&(0,r.jsx)(g.Z,{message:O,isAdmin:D},"watermark"),(0,h.isEmpty)(O)&&"0"!=Ee.web_enablewatermarkonvideos&&Re&&(0,r.jsx)(g.Z,{isAdmin:D},"watermark"),(0,r.jsxs)("div",{style:{height:A?"100vh":"100%"},children:[!ge&&(null===(t=V.current)||void 0===t?void 0:t.readyState)<2&&(0,r.jsx)(s.G,{icon:o.IJ7,spin:!0,color:"gray",size:"2x",className:"absolute center"}),Pe&&!ge&&(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=Ze.value)&&void 0!==nt?nt:"contain"},ref:V,poster:N.u7,autoPlay:!1}),ge&&(0,r.jsx)(s.G,{icon:o.aQp,size:"3x",className:"absolute center opacity-75 cursor-pointer text-muted-foreground",onClick:rt}),!ge&&(0,r.jsxs)("div",{id:"hls-player-video-controls",children:[me-(null===(n=V.current)||void 0===n?void 0:n.currentTime)>10&&(0,r.jsxs)(d.Z,{size:"sm",color:"link",className:"text-white",onClick:function(){V.current.currentTime=me},children:[(0,r.jsx)(s.G,{style:{fontSize:"8px"},className:"text-danger me-1",icon:o.diR}),"Go Live"]}),(0,r.jsxs)("div",{className:"d-flex",children:[!L&&(0,r.jsx)("div",{className:"duration mx-2 font-sm d-md-none text-white",children:ne.split("/")[0]}),!C&&(0,r.jsx)(f.Z,{currentTime:X,bufferedTime:be,onTimeChange:function(e){var t=V.current.duration*(e.target.value/100);V.current.currentTime=t,ee(e.target.value)},seekBarDisabled:C}),!L&&(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:Y?o.XQY:o.zc,className:""})}),!F&&(0,r.jsx)(u.Z,{}),C?(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:o.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:o.lXL})}),"1"==G&&(0,r.jsx)("div",{className:"speed-di",children:(0,r.jsx)(v.Z,{speed:ae,onSpeedChange:function(e){var t=e.target.value;V.current.playbackRate=t,oe(t)}})}),(0,r.jsx)("div",{className:"video-fit-options-selector-div",children:(0,r.jsx)(x.ZP,{selectedVideoFitOption:Ze,onVideoFitOptionChange:function(e){Ce(e)}})}),Z&&je&&Z.length>0&&(0,r.jsx)("div",{className:"quality-div",children:(0,r.jsx)(m.Z,{qualities:Z,selectedQuality:je,onQualityChange:function(e){Je(),Q.current&&(Q.current.destroy(),Q.current=null);var t=e.target.value,n=e.target.name;K(!0);var r=(null!==Z&&void 0!==Z?Z:[]).find((function(e){return e.path==t&&e.quality==n}));r&&ke(r),ee(0),b(t),Ke()}})}),"1"!=I&&!F&&(0,r.jsx)("div",{className:"icon",onClick:function(){var e=document.getElementById("hlsvideo");document.pictureInPictureElement?document.exitPictureInPicture():e.requestPictureInPicture().then((function(t){fe(!0),e.addEventListener("leavepictureinpicture",(function(){fe(!1)}))})).catch((function(e){console.error(e),l.A.error("Picture in picture mode not supported")}))},children:de?(0,r.jsx)(s.G,{icon:o.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:F?{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?(le(!0),e.setIsFullScreen&&e.setIsFullScreen(!0)):(le(!1),e.setIsFullScreen&&e.setIsFullScreen(!1))})),screen.orientation.lock&&screen.orientation.lock("landscape-primary"))},children:(0,r.jsx)(s.G,{icon:ce?o.Qj4:o.TL5})})]})]})]})]})]})}},94679:function(e,t,n){n.d(t,{Z:function(){return x}});var r=n(47568),i=n(97582),a=n(85893),o=n(67294),s=n(35773),c=n(95305),l=n(23956),u=n(36157),d=n(89756),f=n(89885),v=(n(67814),n(45508)),m=n(24271),p=n(89355),h=n(11163),g=n(99209);function x(e){var t=(0,o.useContext)(f.Z),n=t.appConfig,x=t.currentUser,w=(0,h.useRouter)(),b=(0,o.useState)(),y=b[0],_=b[1],j=(0,o.useState)(!0),k=j[0],N=j[1],E=function(){return N(!k)},R="1"==n.web_enablefullpagevideo||"/live/[id]"==w.pathname,S=(0,o.useState)(!1),Z=S[0],C=S[1],L=(0,o.useState)({}),I=L[0],T=L[1],F=null,P="1"==e.video.ytFlagWeb?(0,v.NA)(e.video.video_id):e.video.recording_schedule;(0,o.useEffect)((function(){0==y&&N(!0),y&&Z?(A(),window.onresize=A):window.onresize=null}),[y]);var A=function(){var e=16*window.innerHeight/9,t=(window.innerWidth-e)/2;t<0&&(t=0),T({right:t,width:.2*e})},U=function(){var e=(0,r.Z)((function(){var e,t,r,a,o,s;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:if(e=w.query.lcId?"[LINKEDCOURSE-".concat(11,"
1-").concat(w.query.lcId,"]"):"[DEFAULT]",t=n.web_firebaseconfig,!w.query.lcId||!(0,m.gG)(e))return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,(0,g.OF)({lcId:w.query.lcId,lcApi:(0,v.NA)(w.query.api)})];case 2:return t=i.sent(),[3,4];case 3:return r=i.sent(),console.error("Error in getting firebase config",r),[3,4];case 4:return a=(0,m.G5)(t,e),o=(0,p.N8)(a),s="/data/browserlive_screenshare/"+P,F=(0,p.iH)(o,s),(0,p.jM)(F,(function(e){var t=e.val();C(t)})),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){return U(),function(){F&&(0,p.S1)(F,"value"),C(!1)}}),[]),(0,a.jsx)("div",{id:"hlsplayerwithchat",children:(0,a.jsxs)(s.Z,{className:"align-items-stretch gx-0 h-100 ".concat("5"==e.video.hls_stream_type?"bg-background":""," ").concat(y&&Z?"screenshare-active":""),children:[(0,a.jsx)(c.Z,{md:R||!k||y&&Z?"12":"8",style:{minHeight:"250px"},className:R?"mb-5 bg-dark rounded overflow-hidden position-relative":"position-relative",children:e.videojs?(0,a.jsx)(u.Z,{qualities:e.qualities,seekBarDisabled:e.seekBarDisabled,selectedQuality:e.selectedQuality,src:e.src,isWindowsApp:n.isWindowsApp,low_latency_enabled:e.low_latency_enabled,debug:e.debug}):(0,a.jsx)(l.Z,{qualities:e.qualities,seekBarDisabled:e.seekBarDisabled,selectedQuality:e.selectedQuality,src:e.src,isWindowsApp:n.isWindowsApp,low_latency_enabled:e.low_latency_enabled,setIsFullScreen:_,toggleChat:E,playFromBeginning:"1"==n.web_enableplayprocessingvideos&&"0"==e.video.live_status,live_rewind_enable:e.video.live_rewind_enable,debug:e.debug})}),k&&x&&(0,a.jsx)(c.Z,{md:R?"12":"4",id:y&&Z?"transparentChat":"",style:y&&Z?I:{},className:"".concat(R?"rounded overflow-hidden":""," "),children:(0,a.jsx)(d.Z,{video:e.video,toggleChat:E,isFullScreen:y})})]})})}},68178:function(e,t,n){n.d(t,{Z:function(){return v}});var r=n(85893),i=n(67294),a=n(35773),o=n(95305),s=n(89885),c=n(89756),l=n(41789),u=n(11163),d=n(93520),f=n(10707);function v(e){var t=(0,i.useContext)(s.Z),n=t.appConfig,v=t.currentUser,m=(0,u.useRouter)(),p="1"==n.web_enablefullpagevideo||"/live/[id]"==m.pathname,h=new URLSearchParams;h.append("url",e.src||"");var g=(0,f.rV)(e.video.id);return(null===g||void 0===g?void 0:g.timestamp)&&h.append("timestamp",g.timestamp.toString()),(0,d.hb)(n.web_enablewatermarkonvideos)&&v&&h.append("watermark","".concat(v.email,"%0A").concat(v.phone)),(0,r.jsxs)(a.Z,{className:"gx-0 align-items-center",children:[(0,r.jsx)(o.Z,{md:p?"12":"8",className:p?"mb-5 bg-dark rounded overflow-hidden":"",children:(0,r.jsx)(l.Z,{url:"https://streamos.teachx.in/embed?".concat(h.toString())})}),(0,r.jsx)(o.Z,{md:p?"12":"4",className:p?"rounded overflow-hidden":"",children:(0,r.jsx)(c.Z,{video:e.video})})]})}},19532:function(e,t,n){var r=n(85893),i=n(67294),a=n(42238),o=n.n(a),s=n(89885),c=n(93520),l=n(24112);t.Z=function(e){var t=e.keyVersion,n=e.selectedQuality,a=e.onLaunched,u=(0,i.useContext)(s.Z),d=u.appConfig,f=u.currentUser,v=(0,i.useMemo)((function(){return(0,c.hb)(d.isWindowsApp)}),[d.isWindowsApp]),m=(0,i.useMemo)((function(){return"function"===typeof window.nativeVideoPlayer}),[]),p=(0,i.useMemo)((function(){var e=(new(o())).getOS();return!!("iOS"==(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e?void 0:e.name.toLowerCase().includes("mac"))&&"ontouchend"in document)}),[]);return(0,i.useEffect)((function(){v&&m&&(window.nativeVideoPlayer({url:n.path,watermark:"".concat(f.email,"%0A").concat(f.phone),keyversion:t||""}),null===a||void 0===a||a())}),[v,m,n,a]),p||v&&!m||!v?(0,r.jsx)(l.Z,{}):null}},96568:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(85893);n(67294);function i(e){return e.src?(0,r.jsx)("div",{className:"video",style:{position:"relative",paddingBottom:"56.25%",paddingTop:25,height:0},children:(0,r.jsx)("iframe",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},src:e.src,frameBorder:"0"})}):(0,r.jsx)("div",{children:"Vimeo src missing"})}},43759:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(85893),i=n(96486),a=n(67294),o=(n(49475),n(39154)),s=n(89885);function c(e){var t,n=(0,a.useContext)(s.Z).appConfig,c=function(e){var t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=|shorts\/|live\/)([^#&?]*).*/);return t&&11===t[2].length?t[2]:null},l="";e.videoId?l=(null===(t=e.videoId)||void 0===t?void 0:t.startsWith("http"))?e.videoId.includes("/live/")||e.videoId.includes("/shorts/")||e.videoId.includes("watch?v=")||e.videoId.includes("youtu.be/")?c(e.videoId):e.videoId.split("/").pop():e.videoId:l=c(e.src);return(0,r.jsxs)("div",{className:"relative flex my-auto w-full h-full",children:[((0,i.isEmpty)(n.web_enablewatermarkonvideos)||"0"!=n.web_enablewatermarkonvideos)&&(0,r.jsx)(o.Z,{}),(0,r.jsx)("iframe",{className:"aspect-video w-full h-full",src:"https://www.youtube.com/embed/".concat(l,"?rel=0"),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})]})}},46487:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(85893),i=n(67294),a=n(35773),o=n(95305),s=n(89885),c=n(89756),l=n(11163);function u(e){var t=(0,i.useContext)(s.Z).appConfig,n=(0,l.useRouter)(),u="1"==t.web_enablefullpagevideo||"/live/[id]"==n.pathname,d="";return d=e.videoId?e.videoId:function(e){var t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return t&&11===t[2].length?t[2]:null}(e.src),(0,r.jsxs)(a.Z,{className:"gx-0 align-items-center",children:[(0,r.jsx)(o.Z,{md:u?"12":"8",className:u?"mb-5 bg-dark rounded overflow-hidden":"",children:(0,r.jsx)("div",{className:"video",style:{position:"relative",paddingBottom:"56.25%",paddingTop:25,height:0},children:(0,r.jsx)("iframe",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},src:"https://www.youtube.com/embed/".concat(d,"?rel=0"),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})}),(0,r.jsx)(o.Z,{md:u?"12":"4",className:u?"rounded overflow-hidden":"",children:(0,r.jsx)(c.Z,{video:e.video})})]})}},96749:function(e,t,n){n.d(t,{Z:function(){return v}});var r=n(85893),i=n(67294),a=(n(25675),n(89885)),o=n(89756),s=n(39154),c=(n(49475),n(96486)),l=n(11163),u=n(76585),d=n(73716),f=n(96076);function v(e){var t=(0,i.useContext)(a.Z),n=t.appConfig,v=t.currentUser,m=(0,l.useRouter)(),p=(0,i.useState)(!0),h=p[0],g=p[1],x=(0,i.useState)(!0),w=x[0],b=x[1],y=(0,i.useRef)(null),_=(0,i.useRef)(null),j=(0,i.useMemo)((function(){return e.video}
1),[e.video]),k=(0,i.useMemo)((function(){return"1"==n.web_enablefullpagevideo||"/live/[id]"==m.pathname}),[n.web_enablefullpagevideo,m.pathname]),N=(0,i.useMemo)((function(){return(0,u.jv)(j,v,!1,e.debug)}),[j,v,e.debug]),E=(0,i.useMemo)((function(){return e.isFullPage||m.pathname.includes("/live/")}),[e.isFullPage,m.pathname]),R=(0,i.useMemo)((function(){return e.chatLayout?e.chatLayout:"auto"}),[e.chatLayout]);(0,i.useEffect)((function(){(0,c.isEmpty)(j.cookie_key)||(0,c.isEmpty)(j.cookie_value)||(0,d.d8)(j.cookie_key,j.cookie_value);var e=function(e){e.data===f.Rv.FULLSCREEN?document.fullscreenElement?(document.exitFullscreen(),screen.orientation.lock&&screen.orientation.lock("natural")):((0,u.Zx)(y.current,_.current),screen.orientation.lock&&screen.orientation.lock("landscape-primary")):e.data===f.Rv.FULLSCREEN_EXIT?document.fullscreenElement&&(document.exitFullscreen(),screen.orientation.lock&&screen.orientation.lock("natural")):e.data===f.Rv.TOGGLE_CHAT_SECTION&&g((function(e){return!e}))};return window.addEventListener("message",e),function(){window.removeEventListener("message",e)}}),[j]);var S=h?"auto"===R?{container:"flex flex-col md:flex-row items-center",playerContainer:"w-full ".concat(k?"mb-5 bg-dark rounded overflow-hidden":""," \n ").concat(k?"":"md:w-2/3 h-full"," aspect-video"),chatContainer:"w-full mt-2 md:mt-0 ".concat(k?"rounded overflow-hidden":""," \n ").concat(k?"":"md:w-1/3","\n ").concat(E?"h-[40vh]":""," md:h-full overflow-y-auto")}:"side"===R?{container:"flex flex-row items-center",playerContainer:"w-2/3 h-full flex-shrink-0 ".concat(k?"mr-2 bg-dark rounded overflow-hidden":""," aspect-video"),chatContainer:"w-1/3 h-full ".concat(k?"rounded overflow-hidden":""," overflow-y-auto")}:"bottom"===R?{container:"flex flex-col items-center",playerContainer:"w-full ".concat("h-[60vh]"," ").concat(k?"mb-2 bg-dark rounded overflow-hidden":""," aspect-video"),chatContainer:"w-full ".concat("h-[40vh]"," ").concat(k?"rounded overflow-hidden":""," overflow-y-auto")}:{container:"flex flex-col md:flex-row items-center",playerContainer:"w-full ".concat(k?"mb-5 bg-dark rounded overflow-hidden":""," aspect-video"),chatContainer:"w-full mt-2 md:mt-0 ".concat(k?"rounded overflow-hidden":""," \n ").concat(k?"":"md:w-1/3","\n ").concat(E?"h-[40vh]":"h-[calc(50vh-80px)]"," md:h-full overflow-y-auto")}:{container:"flex flex-col w-full",playerContainer:"w-full h-full flex-shrink-0",chatContainer:""};return(0,r.jsxs)("div",{className:"".concat(S.container," zero-latency-player-with-chat w-full ").concat(E?"h-[calc(100vh-150px)]":"h-full"," overflow-auto"),id:"hlsplayerwithchat",ref:y,style:{height:E?"calc(100vh - 150px)":"100%"},children:[(0,r.jsxs)("div",{className:"relative ".concat(S.playerContainer),children:[((0,c.isEmpty)(n.web_enablewatermarkonvideos)||"0"!=n.web_enablewatermarkonvideos)&&(0,r.jsx)(s.Z,{}),(0,r.jsx)("div",{className:"absolute top-0 left-0 w-full h-full ".concat(w?"flex items-center justify-center":"hidden"),children:(0,r.jsx)("img",{src:"/assets/customplayer/css-loader.gif",alt:"Loading...",width:40,height:40})}),(0,r.jsx)("iframe",{ref:_,src:N,loading:"lazy",allow:"autoplay",className:"w-full h-full aspect-video",onLoad:function(){b(!1)},allowFullScreen:!0})]}),h&&(0,r.jsx)("div",{className:S.chatContainer,children:v&&(0,r.jsx)(o.Z,{video:e.video})})]})}}}]);
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.