PageSourceSearch

https://www.bosscoderacademy.com/_next/static/chunks/pages/admin/recorded-sessions-11e202d6e458e647.js

js bosscoderacademy.com collected 2026-09-29 10:47:24 UTC 6,514 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[42847,45348],{61513:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/recorded-sessions",function(){return r(46915)}])},7486:function(e,t,r){"use strict";var s=r(55678);r(37677),t.Z=()=>({showToast:(e,t)=>{"error"===e?s.Am.error(t,{theme:"dark"}):"success"===e?s.Am.success(t,{theme:"dark"}):(0,s.Am)(t,{theme:"dark"})}})},31134:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var s=r(67294);let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()),l=e=>{let t=n(e);return t.charAt(0).toUpperCase()+t.slice(1)},o=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let c=(0,s.forwardRef)((e,t)=>{let{color:r="currentColor",size:a=24,strokeWidth:n=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:u,...m}=e;return(0,s.createElement)("svg",{ref:t,...i,width:a,height:a,stroke:r,strokeWidth:l?24*Number(n)/Number(a):n,className:o("lucide",c),...m},[...u.map(e=>{let[t,r]=e;return(0,s.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),d=(e,t)=>{let r=(0,s.forwardRef)((r,n)=>{let{className:i,...d}=r;return(0,s.createElement)(c,{ref:n,iconNode:t,className:o("lucide-".concat(a(l(e))),"lucide-".concat(e),i),...d})});return r.displayName=l(e),r}},78497:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});let s=(0,r(31134).Z)("menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},46915:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return v}});var s=r(85893),a=r(67294),n=r(64748),l=r.n(n),o=r(41664),i=r.n(o),c=r(25675),d=r.n(c),u=r(32071),m=function(e){let{masterclassId:t,masterclass:r,Closed:a,NewEvents:n}=e,o=new Date(1e3*r.CreatedOn._seconds);return(0,s.jsx)("div",{className:"rounded-[4px] border border-[#0F2368] bg-white shadow-[6px_6px_0px_0px_rgba(210,210,210,1)] transition-all duration-300 hover:scale-[1.02]",children:(0,s.jsxs)(i(),{href:"/admin/recorded-sessions/".concat(t),children:[(0,s.jsx)(d(),{width:1e4,height:1e4,className:"border-b border-dashed border-black",src:r.MasterclassImage,alt:"img"}),(0,s.jsx)("div",{className:"mt-auto flex flex-col items-center gap-y-3",children:(0,s.jsxs)("div",{className:"mx-6 mt-[32px] md:px-1 lg:px-4",children:[(0,s.jsx)("h2",{className:"text-center text-[16px] font-bold leading-[27px] ".concat(l().className),children:r.MasterclassTitle}),(0,s.jsx)("p",{className:"mt-2 text-center md:mt-3 xl:mt-2",children:r.isRecorded?"Recorded Masterclass":(0,u.WU)(new Date(o),"MMMM do | EEEE | hh:mm a")})]})})]})})},h=r(7486),f=function(e){let{containerRef:t}=e,[r,n]=(0,a.useState)([]),[l,o]=(0,a.useState)(!1),{showToast:i}=(0,h.Z)(),[c,d]=(0,a.useState)(null);(0,a.useEffect)(()=>{u()},[]);let u=async()=>{if(!l)try{o(!0);let e=await fetch("/api/admin/recorded-sessions/get-all-sessions?limit=12".concat(c?"&lastVisible=".concat(c):""),{method:"GET",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Server Error");let t=await e.json();n(e=>{let r=t.data.filter(t=>!e.some(e=>e.id===t.id));return[...e,...r]}),d(t.lastVisible),i("success","Sessions loaded successfully")}catch(e){console.error(e),i("error","Something went wrong!")}finally{o(!1)}};return(0,a.useEffect)(()=>{t.current&&t.current.scrollTo({top:t.current.scrollHeight,behavior:"smooth"})},[r]),(0,s.jsx)("div",{className:"relative flex flex-col items-center",children:(0,s.jsxs)("div",{className:"relative w-full flex-1",children:[(0,s.jsx)("div",{className:"absolute inset-0 z-10 bg-gradient-to-b from-transparent to-white"}),(0,s.jsx)("div",{className:"relative z-20",children:(0,s.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-4",children:null==r?void 0:r.map((e,t)=>(0,s.jsx)(m,{masterclass:e.data,masterclassId:e.id},t))})})]})})},x=function(){let[e,t]=(0,a.useState)(""),[r,n]=(0,a.useState)([]),[l,o]=(0,a.useState)(!1),[i,c]=(0,a.useState)(null),[d,u]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let t=setTimeout(()=>{e?m():(n([]),u(!1))},300);return()=>clearTimeout(t)},[e]);let m=async()=>{o(!0),c(null),u(!0);try{let t="/api/admin/recorded-sessions/get-all-sessions?query=".concat(e),r=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(!r.ok)throw Error("Server Error");let s=await r.json();n(s.data)}catch(e){console.error(e),c("Something went wrong!")}finally{o(!1)}};return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"flex items-center rounded-lg border p-2 shadow-md",children:(0,s.jsx)("input",{type:"text",value:e,onCh
1ange:e=>t(e.target.value),placeholder:"Search sessions...",className:"flex-1 border-none outline-none"})}),d&&(0,s.jsxs)("div",{className:"absolute left-0 top-full z-50 mt-2 max-h-80 w-full overflow-y-auto border border-gray-300 bg-white shadow-lg",children:[l&&(0,s.jsx)("div",{className:"flex justify-center p-4",children:(0,s.jsx)("span",{children:"Loading..."})}),i&&!l&&(0,s.jsx)("div",{className:"p-4 text-red-500",children:(0,s.jsx)("span",{children:i})}),!l&&!i&&0===r.length&&(0,s.jsx)("div",{className:"p-4 text-gray-500",children:(0,s.jsx)("span",{children:"No data found"})}),!l&&!i&&r.length>0&&r.map((e,t)=>(0,s.jsx)("div",{className:"border-b border-gray-200 p-4",children:e.data.MasterclassTitle},t))]})]})},p=r(97629),g=r(9008),w=r.n(g);function j(){let e=(0,a.useRef)(null);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(w(),{children:[(0,s.jsx)("title",{children:"Recorded Sessions"}),(0,s.jsx)("meta",{property:"og:type",content:"website"})]}),(0,s.jsxs)("div",{className:"mx-auto mt-20 max-w-[1160px] space-y-6",children:[(0,s.jsx)(x,{}),(0,s.jsx)("div",{ref:e,className:"h-[80vh] overflow-y-auto overflow-x-hidden",children:(0,s.jsx)(f,{containerRef:e})})]})]})}var v=j;j.getLayout=e=>(0,s.jsx)(p.Z,{children:e})},37677:function(){},64748:function(e){e.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3'",fontStyle:"normal"},className:"__className_f367f3"}}},function(e){e.O(0,[25675,41664,32071,97629,92888,49774,40179],function(){return e(e.s=61513)}),_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.