PageSourceSearch

https://clapingo.com/_next/static/chunks/pages/creators/dashboard-1ed24213bbdba094.js

js clapingo.com collected 2026-10-01 16:40:51 UTC 6,903 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="60e5b604-6870-4c8f-9b18-114d87c42f1e",e._sentryDebugIdIdentifier="sentry-dbid-60e5b604-6870-4c8f-9b18-114d87c42f1e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82251],{70382:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/creators/dashboard",function(){return s(40524)}])},67276:function(e,t,s){"use strict";s.r(t),t.default={src:"/_next/static/media/WelcomeBanner.7dc0ba97.png",height:106,width:1200,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAABCAMAAADU3h9xAAAAElBMVEXk8bHT1Z/614/U27Ly25zg/L314eFgAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAEUlEQVR4nGNgYmFkZGZgYAUAAFEAEfcIEFsAAAAASUVORK5CYII=",blurWidth:8,blurHeight:1}},40524:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return g}});var n=s(69779),r=s(85893),l=s(67294),i=(s(53833),s(25675)),a=s.n(i),o=s(67814),c=s(59417),d=s(51624),x=s(86501),m=function(){var e=(0,l.useState)([]),t=e[0],s=e[1];return(0,l.useEffect)((function(){(0,d.Q2)((function(e){console.log(e.getCourseDetails),s(e.getCourseDetails)}),(function(e){x.ZP.error(e)}))}),[]),(0,r.jsx)(r.Fragment,{children:t.filter((function(e){return"Deleted"!==e.status})).map((function(e,t){return(0,r.jsxs)("div",{className:"cursor-pointer relative group w-[368px] h-[220px]",children:[(0,r.jsx)(a(),{src:"https://images.weserv.nl/?url=".concat(e.thumbnail?e.thumbnail:"/static/p2pcharacter/blankprofile.svg","&output=webp"),width:"368px",height:"220px",objectFit:"fill",className:"rounded-lg",alt:"thumbnail"}),(0,r.jsxs)("div",{className:"absolute h-full w-full bg-[#0E433A]/80 flex items-center justify-center -bottom-10 group-hover:bottom-0 opacity-0 group-hover:opacity-100 transition-all duration-300 font-semibold rounded-md",children:[(0,r.jsxs)("button",{className:"hover:bg-[#1d867480] rounded-md text-white py-2 px-5",children:[(0,r.jsx)(o.G,{icon:c.Yai})," Edit"]}),(0,r.jsxs)("button",{className:"hover:bg-[#1d867480] rounded-md text-white py-2 px-5",children:[(0,r.jsx)(o.G,{icon:c.Vui})," Delete"]})]}),(0,r.jsxs)("div",{className:"absolute top-[130px] w-full p-4 bg-gradient-to-t from-[#0E433A] rounded-b-lg ",children:[(0,r.jsxs)("button",{className:"text-[#0E433A] rounded-full bg-[#E9F6F4] py-1 px-4 font-semibold",children:[(0,r.jsx)(o.G,{icon:c.H0g})," ",e.coursePrice]}),(0,r.jsxs)("div",{className:"flex flex-row justify-between text-[#E9F6F4] font-semibold mt-1",children:[(0,r.jsx)("span",{className:"truncate text-ellipsis",children:e.courseName}),e.rating?(0,r.jsxs)("span",{children:[e.rating.toFixed(1)," \u2605"]}):(0,r.jsx)("span",{className:"text-[#E9F6F4] bg-primary-500 rounded-sm text-xs p-1 font-bold",children:" New"})]})]})]},t)}))})},u=s(46412),f=s(33084),p=s(85978),h=(s(11163),s(35776),s(41664)),b=s.n(h),g=(0,u.LQ)((function(){(0,p.getLocalstoregeData)("CREATOR");var e=(0,l.useState)([]),t=e[0],i=e[1],o=(0,l.useState)(1),c=o[0],u=o[1],h=(0,l.useState)(!1),g=(h[0],h[1],(0,l.useState)(!1)),j=g[0],A=g[1];(0,l.useEffect)((function(){var e={page:c,limit:5};(0,d.Q_)(e,(function(e){console.log(e),i(e)}),(function(e){x.ZP.error(e)}))}),[]);return console.log("coourseEarnings",t),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto px-4",children:[(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(a(),{src:s(67276),alt:"Welcome Banner"})}),(0,r.jsxs)("div",{className:"flex flex-row w-full justify-between mt-5 font-semibold",children:[(0,r.jsx)("h3",{className:"text-lg",children:"Recently Added"}),(0,r.jsx)(b(),{href:"/creators/myCourses",className:"block text-sm",children:(0,r.jsx)("h3",{className:"text-sm text-[#24A791] cursor-pointer",children:"View All"})})]}),(0,r.jsx)("div",{className:"flex flex-row flex-wrap justify-between gap-5 mt-3 sm:justify-center",children:(0,r.jsx)(m,{})}),(0,r.jsx)("div",{className:"flex flex-col mt-5 mb-3",children:(0,r.jsx)("div",{className:"overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,r.jsx)("div",{className:"py-2 inline-block min-w-full sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"overflow-hidden",children:[(0,r.jsx)("h3",{className:"text-lg mb-3 font-semibold",children:"Overall Earnings"}),(0,r.jsxs)("table",{className:"min-w-full",children:[(0,r.jsx)("thead",{className:"bg-neutral-100 p-3",children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"col",className:"text-sm font-medium text-neutral-700 font-inter px-6 py-4 text-left",children:"S.No"}),(0,r.jsx)("th",{scope:"col",className:"text-sm font-medium text-neutral-700 font-inter px-6 py-4 text-left",children:"Name of Course"}),(0,r.jsx)("th",{scope:"col",className:"text-sm font-medium text-neutral-700 font-inter px-6 py-4 text-left",children:"Purchased By"}),(0,r.jsx)("th",{scope:"col",className:"text-sm font-medium text-neutral-700 font-inter px-6 py-4 text-left",children:"Purchased As"}),(0,r.jsx)("th",{scope:"col",className:"text-sm font-medium text-neutral-700 font-inter px-6 py-4 text-left",children:"Ratings"}),(0,r.jsx)("th",{scope:"col",className:"text-sm font-medium text-neutral-700 font-inter px-6 py-4 text-left",children:"Earnings"})]})}),(0,r.jsx)("tbody",{children:t.map((function(e,t){return(0,r.jsxs)("tr",{className:"bg-white border-b",children:[(0,r.jsx)("td",{className:"text-sm font-medium text-primary-800 font-inter px-6 py-4 whitespace-nowrap",children:t+1}),(0,r.jsx)("td",{className:"text-sm font-medium text-primary-800 font-inter px-6 py-4 whitespace-nowrap",children:e.courseName}),(0,r.jsx)("td",{className:"text-sm font-medium text-primary-800 font-inter px-6 py-4 whitespace-nowrap",children:e.learnerName}),(0,r.jsx)("td",{className:"text-sm font-medium text-primary-800 font-inter px-6 py-4 whitespace-nowrap",children:e.purchaseDate?(0,f._3)(e.purchaseDate):"N/A"}),(0,r.jsx)("td",{className:"text-sm font-medium text-primary-800 font-inter px-6 py-4 whitespace-nowrap",children:e.courseRating}),(0,r.jsxs)("td",{className:"text-sm font-semibold font-inter text-center text-[#24A791] px-6 py-4 whitespace-nowrap",children:["+",e.amountPaid]})]},t)}))})]})]})})})}),(0,r.jsx)("div",{className:"text-center my-[10px] mx-auto py-[10
1px] text-sm text-white bg-[#24A791] cursor-pointer w-[10%] font-semibold",children:(0,r.jsxs)("button",{onClick:function(){return function(){A(!0);var e={page:c+1,limit:5};(0,d.Q_)(e,(function(e){console.log(e),e.length>0&&(i((0,n.Z)(t).concat((0,n.Z)(e))),u(c+1)),A(!1)}),(function(e){console.log(e),A(!1)}))}()},disabled:!t||j,children:[" ",j?"Loading..":"Load More"]})})]})})}))}},function(e){e.O(0,[3874,30277,95445,61228,97948,94824,32013,29866,12876,44949,74550,9584,55250,41377,16629,95551,76701,52515,13700,93183,43626,70529,53833,56132,22359,49774,92888,40179],(function(){return t=70382,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.