1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[45363],{88142:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/recorded-sessions/[sessionId]",function(){return t(98935)}])},98935:function(e,s,t){"use strict";t.r(s);var a=t(85893),r=t(11163),l=t(67294),d=t(27702),c=t(9008),n=t.n(c);s.default=()=>{let{sessionId:e}=(0,r.useRouter)().query,[s,t]=(0,l.useState)([]),[c,i]=(0,l.useState)(null),[x,o]=(0,l.useState)(!1);(0,l.useEffect)(()=>{e&&m(e)},[e]);let m=async e=>{o(!0);try{let{data:s}=await d.Z.get("/api/admin/recorded-sessions/get-analytics",{params:{masterclassId:e}});t(s.analytics||[]),i(s.summary||null)}catch(e){console.error("Error fetching session data:",e),t([]),i(null)}finally{o(!1)}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n(),{children:(0,a.jsx)("title",{children:"Recorded Session"})}),(0,a.jsxs)("div",{className:"min-h-screen bg-gray-50 p-8",children:[(0,a.jsxs)("h1",{className:"mb-6 text-xl font-bold text-blue-700",children:["Masterclass-ID: ",(0,a.jsx)("span",{className:"text-gray-800",children:e})]}),x&&(0,a.jsx)("p",{className:"text-center text-lg text-blue-500",children:"Loading..."}),(0,a.jsx)("div",{className:"text-center text-2xl font-bold",children:null==c?void 0:c.masterclassTitle}),c&&(0,a.jsxs)("div",{className:"mb-10",children:[(0,a.jsx)("h2",{className:"mb-4 text-2xl font-semibold text-gray-800",children:"Summary"}),(0,a.jsxs)("table",{className:"w-full table-auto border-collapse rounded bg-white shadow-md",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"bg-gray-100",children:[(0,a.jsx)("th",{className:"border px-4 py-2 text-left text-gray-700",children:"Metric"}),(0,a.jsx)("th",{className:"border px-4 py-2 text-left text-gray-700",children:"Value"})]})}),(0,a.jsxs)("tbody",{children:[(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"border px-4 py-2 text-gray-600",children:"Total Watch Time Sum"}),(0,a.jsxs)("td",{className:"border px-4 py-2 text-gray-800",children:[(c.totalWatchTimeSum/60).toFixed(2)," mins"]})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"border px-4 py-2 text-gray-600",children:"Maximum Percentage Average"}),(0,a.jsxs)("td",{className:"border px-4 py-2 text-gray-800",children:[c.maxumumPercentageAverage.toFixed(2),"%"]})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"border px-4 py-2 text-gray-600",children:"Valid Documents Count"}),(0,a.jsx)("td",{className:"border px-4 py-2 text-gray-800",children:c.validDocumentsCount})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"border px-4 py-2 text-gray-600",children:"Max Percentage Viewed"}),(0,a.jsxs)("td",{className:"border px-4 py-2 text-gray-800",children:[c.maxiPercentageViewed,"%"]})]})]})]})]}),(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)("h2",{className:"mb-4 text-2xl font-semibold text-gray-800",children:"Session Analytics"}),0===s.length?(0,a.jsx)("p",{className:"text-gray-600",children:"No data found for this session."}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:s.map((e,s)=>(0,a.jsxs)("div",{className:"rounded border bg-white p-4 shadow-md",children:[(0,a.jsxs)("p",{className:"text-gray-700",children:[(0,a.jsx)("strong",{children:"Email:"})," ",e.email]}),(0,a.jsxs)("p",{className:"text-gray-700",children:[(0,a.jsx)("strong",{children:"Total Watch Time:"})," ",(e.totalWatchTime/60).toFixed(2)," mins"]}),(0,a.jsxs)("p",{className:"text-gray-700",children:[(0,a.jsx)("strong",{children:"Max Percentage Viewed:"})," ",e.maxPercentageViewed,"%"]})]},s))})})]})]})]})}}},function(e){e.O(0,[87066,92888,49774,40179],function(){return e(e.s=88142)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.