PageSourceSearch

https://clapingo.com/_next/static/chunks/pages/creators/myCourses-b7b915e8269f24a3.js

js clapingo.com collected 2026-10-01 16:40:53 UTC 7,989 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]="a84b19a7-756b-40ee-b56d-c452285d638a",e._sentryDebugIdIdentifier="sentry-dbid-a84b19a7-756b-40ee-b56d-c452285d638a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{49130:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/creators/myCourses",function(){return o(84893)}])},71210:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,o,n){return!1};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48418:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(39274).Z;o(25654).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(12845).Z,a=o(38774).Z,l=r(o(67294)),s=o(76273),u=o(22725),c=o(63462),i=o(21018),f=o(57190),d=o(71210),p=o(98684),x={};function m(e,t,o,n){if(e&&s.isLocalURL(t)){Promise.resolve(e.prefetch(t,o,n)).catch((function(e){0}));var r=n&&"undefined"!==typeof n.locale?n.locale:e&&e.locale;x[t+"%"+o+(r?"%"+r:"")]=!0}}var h=l.default.forwardRef((function(e,t){var o,r=e.href,h=e.as,b=e.children,y=e.prefetch,v=e.passHref,j=e.replace,g=e.shallow,w=e.scroll,C=e.locale,_=e.onClick,N=e.onMouseEnter,E=e.onTouchStart,L=e.legacyBehavior,M=void 0===L?!0!==Boolean(!1):L,R=a(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);o=b,!M||"string"!==typeof o&&"number"!==typeof o||(o=l.default.createElement("a",null,o));var P=!1!==y,k=l.default.useContext(c.RouterContext),D=l.default.useContext(i.AppRouterContext);D&&(k=D);var O,T=l.default.useMemo((function(){var e=n(s.resolveHref(k,r,!0),2),t=e[0],o=e[1];return{href:t,as:h?s.resolveHref(k,h):o||t}}),[k,r,h]),F=T.href,A=T.as,S=l.default.useRef(F),Z=l.default.useRef(A);M&&(O=l.default.Children.only(o));var I=M?O&&"object"===typeof O&&O.ref:t,U=n(f.useIntersection({rootMargin:"200px"}),3),B=U[0],G=U[1],H=U[2],K=l.default.useCallback((function(e){Z.current===A&&S.current===F||(H(),Z.current=A,S.current=F),B(e),I&&("function"===typeof I?I(e):"object"===typeof I&&(I.current=e))}),[A,I,F,H,B]);l.default.useEffect((function(){var e=G&&P&&s.isLocalURL(F),t="undefined"!==typeof C?C:k&&k.locale,o=x[F+"%"+A+(t?"%"+t:"")];e&&!o&&m(k,F,A,{locale:t})}),[A,F,G,C,P,k]);var Q={ref:K,onClick:function(e){M||"function"!==typeof _||_(e),M&&O.props&&"function"===typeof O.props.onClick&&O.props.onClick(e),e.defaultPrevented||function(e,t,o,n,r,a,u,c,i,f){if("A"!==e.currentTarget.nodeName.toUpperCase()||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&s.isLocalURL(o)){e.preventDefault();var d=function(){"beforePopState"in t?t[r?"replace":"push"](o,n,{shallow:a,locale:c,scroll:u}):t[r?"replace":"push"](o,{forceOptimisticNavigation:!f})};i?l.default.startTransition(d):d()}}(e,k,F,A,j,g,w,C,Boolean(D),P)},onMouseEnter:function(e){M||"function"!==typeof N||N(e),M&&O.props&&"function"===typeof O.props.onMouseEnter&&O.props.onMouseEnter(e),!P&&D||s.isLocalURL(F)&&m(k,F,A,{priority:!0})},onTouchStart:function(e){M||"function"!==typeof E||E(e),M&&O.props&&"function"===typeof O.props.onTouchStart&&O.props.onTouchStart(e),!P&&D||s.isLocalURL(F)&&m(k,F,A,{priority:!0})}};if(!M||v||"a"===O.type&&!("href"in O.props)){var X="undefined"!==typeof C?C:k&&k.locale,V=k&&k.isLocaleDomain&&d.getDomainLocale(A,X,k.locales,k.domainLocales);Q.href=V||p.addBasePath(u.addLocale(A,X,k&&k.defaultLocale))}return M?l.default.cloneElement(O,Q):l.default.createElement("a",Object.assign({},R,Q),o)}));t.default=h,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21018:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateContext=t.GlobalLayoutRouterContext=t.LayoutRouterContext=t.AppRouterContext=void 0;var n=(0,o(12845).Z)(o(67294)),r=n.default.createContext(null);t.AppRouterContext=r;var a=n.default.createContext(null);t.LayoutRouterContext=a;var l=n.default.createContext(null);t.GlobalLayoutRouterContext=l;var s=n.default.createContext(null);t.TemplateContext=s},84893:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return p}});var n=o(85893),r=o(67294),a=o(53833),l=o(25675),s=o.n(l),u=o(67814),c=o(59417),i=o(51624),f=o(86501),d=function(){var e=(0,r.useState)([]),t=e[0],o=e[1];return(0,r.useEffect)((function(){(0,i.Qj)((function(e){console.log(e.getCourseDetails),o(e.getCourseDetails)}),(function(e){f.ZP.error(e)}))}),[]),(0,n.jsx)(n.Fragment,{children:t.filter((function(e){return"Deleted"!==e.status})).map((function(e,t){return(0,n.jsxs)("div",{className:"cursor-pointer relative group w-[368px] h-[220px]",children:[(0,n.jsx)(s(),{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,n.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,n.jsxs)("button",{className:"hover:bg-[#1d867480] rounded-md text-white py-2 px-5",children:[(0,n.jsx)(u.G,{icon:c.Yai})," Edit"]}),(0,n.jsxs)("button",{className:"hover:bg-[#1d867480] rounded-md text-white py-2 px-5",children:[(0,n.jsx)(u.G,{icon:c.Vui})," Delete"]})]}),(0,n.jsxs)("div",{className:"absolute top-[130px] w-full p-4 bg-gradient-to-t from-[#0E433A] rounded-b-lg ",children:[(0,n.jsxs)("button",{className:"text-[#0E433A] rounded-full bg-[#E9F6F4] py-1 px-4 font-semibold",children:[(0,n.jsx)(u.G,{icon:c.H0g})," ",e.coursePrice]}),(0,n.jsxs)("div",{className:"flex flex-row justify-between text-[#E9F6F4] font-semibold mt-1",children:[(0,n.jsx)("span",{className:"truncate text-ellipsis",children:e.courseName}),e.rating?(0,n.jsxs)("span",{children:[e.rating.toFixed(1)," \u2605"]}):(0,n.jsx)("span",{className:"text-[#E9F6F4] bg-primary-500 rounded-sm text-xs p-1 font-bold",children:" New"})]})]})]},t)}))})},p=function(){var e=(0,r.useState)([]),t=e[0],o=e[1];return(0,r.useEffect)((function(){(0,i.Qj)((function(e){console.log(e.totalCourses),o(e.totalCourses)}),(function(e){f.ZP.error(e)}))}),[]),(0,n.jsxs)("div",{children:[(0,n.jsx)(a.Z,{}),(0,n.jsxs)("div",{className:"max-w-7xl mx-auto px-4",children:[(0,n.jsxs)("div",{className:"flex flex-row w-full justify-between mt-5 font-semibold",children:[(0,n.jsxs)("div",{className:"basis-1/4",children:[(0,n.jsx)("h3",{className:"w-full justify-between mt-5 px-2 mx-2 font-semibold text-2xl text-[#013220] origin-left opensans text-[20px] lg:text-2xl font-bold",children:"My Courses"}),(0,n.jsxs)("h1",{className:"w-full justify-between mt-2 px-2 mx-2 text-sm mb-2 text-[#013220] origin-left opensans text-[20px]",children:[t," courses added"]})]}),(0,n.jsx)("button",{className:"basis-1/7 mb-5 ml-10 mt-5 ppx-8 gap-3 items-center bg-accent3-500 gap-2 py-2 px-3 rounded-[12px] text-sm ml-auto font-medium text-accent3-800",children:(0,n.jsx)("span",{children:"Add Course"})})]}),(0,n.jsx)("hr",{className:"mb-10"}),(0,n.jsx)("div",{className:"flex flex-row flex-wrap justify-between gap-5 mt-3 sm:justify-center",children:(0,n.jsx)(d,{})})]})]})}},41664:function(e,t,o){e.exports=o(48418)}},function(e){e.O(0,[97948,53833,49774,92888,40179],(function(){return t=49130,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.