PageSourceSearch

https://supermocks.com/_next/static/chunks/pages/courses/[id]-a92a5ba7408acaad.js

js supermocks.com collected 2026-09-24 14:55:04 UTC 10,889 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5893],{87278:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/courses/[id]",function(){return s(15269)}])},70332:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var n=s(85893),r=s(96486),i=s(21362);function l(e){var t=e.faqs;return!t||(0,r.isEmpty)(t)?null:(0,n.jsxs)("div",{className:"flex flex-col gap-4 w-full max-w-7xl mx-auto px-4",children:[(0,n.jsx)("h5",{className:"mb-0 font-semibold text-2xl tracking-tight",children:"FAQs"}),(0,n.jsx)(i.UQ,{type:"single",collapsible:!0,className:"w-full",children:t.map((function(e){return(0,n.jsxs)(i.Qd,{value:"item-".concat(e.id),children:[(0,n.jsx)(i.o4,{className:"text-left font-semibold text-base",children:e.question}),(0,n.jsx)(i.vF,{children:(0,n.jsx)("div",{className:"text-base description-content",dangerouslySetInnerHTML:{__html:e.answer}})})]},e.id)}))})]})}},61204:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});var n=s(85893);function r(e){var t=e.instructors;return(null===t||void 0===t?void 0:t.length)?(0,n.jsxs)("section",{className:"flex flex-col gap-5",children:[(0,n.jsx)("h2",{className:"mb-0 text-xl font-semibold tracking-tight",children:1===t.length?"Your Expert":"Our Experts"}),(0,n.jsx)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:t.map((function(e){return(0,n.jsx)(i,{instructor:e},e.id)}))})]}):null}function i(e){var t=e.instructor;
1return(0,n.jsxs)("div",{className:"flex items-center gap-4 rounded-2xl border border-border bg-card p-4 transition-colors duration-200 ease hover:bg-accent",children:[(0,n.jsxs)("div",{className:"relative size-16 shrink-0 overflow-hidden rounded-full",children:[(0,n.jsx)("div",{className:"absolute inset-0 scale-110 blur-lg",style:{backgroundImage:"url(".concat(t.image||"/empty-image-web.svg",")"),backgroundSize:"cover",backgroundPosition:"center"}}),(0,n.jsx)("img",{src:t.image||"/empty-image-web.svg",alt:t.name,className:"relative h-full w-full rounded-full object-cover",width:64,height:64})]}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,n.jsx)("h3",{className:"mb-0 truncate text-sm font-semibold text-foreground",children:t.name}),t.subject&&(0,n.jsx)("p",{className:"truncate text-xs text-muted-foreground",children:t.subject})]})]})}},56346:function(e,t,s){"use strict";var n=s(85893),r=s(67294),i=s(96076),l=s(42238),a=s.n(l),o=s(89885),c=s(41789),u=s(93520),d=s(10707);t.Z=function(e){e.qualities;var t=e.src,s=(e.addHeader,e.uhsVersion,e.videoId),l=void 0===s?null:s,m=(0,r.useState)(!1),f=m[0],g=m[1],x=(0,r.useContext)(o.Z),v=x.appConfig,h=x.currentUser,p=(0,r.useRef)(null),b=(0,r.useMemo)((function(){return(0,u.hb)(v.web_enablewatermarkonvideos)}),[v.web_enablewatermarkonvideos]),_=(0,r.useMemo)((function(){return i.AC}),[]),j=(0,r.useMemo)((function(){return"".concat(_).concat(i.Eh,"?url=").concat(encodeURIComponent(t))}),[_,t]);if((0,r.useEffect)((function(){var e,t=(new(a())).getOS();Number(null===t||void 0===t||null===(e=t.version)||void 0===e?void 0:e.split(".")[0]);("iOS"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t?void 0:t.name.toLowerCase().includes("mac"))&&"ontouchend"in document)&&g(!0)}),[]),f){var w=new URLSearchParams;if(l){var N,k=(0,d.rV)(l);if(null===k||void 0===k?void 0:k.timestamp)w.append("timestamp",(null!==(N=k.timestamp)&&void 0!==N?N:0).toString())}return w.append("url",t),w.append("disable_ios","1"),b&&h&&w.append("watermark","".concat(h.email,"%0A").concat(h.phone)),(0,n.jsx)(c.Z,{url:"".concat(i.AC,"ios-player?").concat(w.toString())})}return(0,n.jsx)("div",{className:"ratio ratio-16x9",children:(0,n.jsx)("iframe",{width:"100%",ref:p,height:"450px",allowFullScreen:!0,allow:"autoplay",src:j})})}},15269:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return O}});var n=s(47568),r=s(26042),i=s(69396),l=s(10253),a=s(29815),o=s(97582),c=s(85893),u=s(96486),d=s(67294),m=s(99209),f=s(7386),g=s(45508),x=s(52077),v=s(96076),h=s(47041),p=s(89885),b=s(6749),_=s(24271),j=s(93520),w=s(67814),N=s(59417),k=s(56346),y=s(983),C=s(60735),Z=s(61204),S=s(70332),E=s(83609),P=s(96754),I=s(8971),z=s(62461);function O(e){var t=e.faqs,s=e.instructors,l=e.subjects,f=e.liveCourses,g=e.tests,x=e.freeVideos,O=e.lcId,M=e.isExtend,A=void 0===M?"0":M,q=e.api,L=(0,d.useContext)(p.Z).appConfig,F=(0,d.useState)((function(){return function(e,t){if("1"!=t)return e;var s,n=Number(null!==(s=e.extended_validity_price)&&void 0!==s?s:e.price),l=Number(e.price),a=Number(e.price_without_gst),o=a>0&&l>0?Math.round(n*(a/l)):n;return(0,i.Z)((0,r.Z)({},e),{price:n,price_without_gst:o,mrp:0})}(e.course,A)})),R=F[0],U=(F[1],(0,d.useState)(null)),D=U[0],H=U[1],T=(0,d.useState)(!1),V=T[0],Q=T[1],G=(0,d.useState)(0),K=G[0],W=G[1],X=(0,d.useState)(!1),Y=X[0],B=X[1],J=(0,d.useState)(x||[]),$=J[0],ee=J[1],te=(0,d.useState)(!1),se=te[0],ne=te[1],re=(0,d.useRef)(null),ie=(0,d.useMemo)((function(){return(0,j.hb)(L.web_showPricingPlansOnCourseDetailsPage)}),[L.web_showPricingPlansOnCourseDetailsPage]),le=(0,d.useCallback)((0,n.Z)((function(){var e,t,s,n,r;return(0,o.__generator)(this,(function(i){switch(i.label){case 0:if(Y||!V)return[2];B(!0),i.label=1;case 1:return i.trys.push([1,3,4,5]),e=q||(0,h.getCookie)(v.z1),[4,(0,m.WN)(e,R.id,-1,K)];case 2:return t=i.sent(),0===(r=Array.isArray(null!==(s=null===t||void 0===t?void 0:t.data)&&void 0!==s?s:t)?null!==(n=null===t||void 0===t?void 0:t.data)&&void 0!==n?n:t:[]).length?(Q(!1),[2]):(ee((function(e){return(0,a.Z)(e).concat((0,a.Z)(r))})),W((function(e){return e+r.length})),Q(r.length>=20),[3,5]);case 3:return i.sent(),Q(!1),[3,5];case 4:return B(!1),[7];case 5:return[2]}}
1))})),[Y,V,q,R.id,K]);re.current=le,(0,d.useEffect)((function(){var e,t=null!==(e=null===x||void 0===x?void 0:x.length)&&void 0!==e?e:0;t>0&&(Q(t>=20),W(t))}),[x]),(0,d.useEffect)((function(){O&&(0,m.OF)({lcId:O,lcApi:q}).then((function(e){(0,u.isEmpty)(e)||(0,_.G5)(e,"[LINKEDCOURSE-".concat(11,"-").concat(O,"]"))})).catch((function(){}))}),[O,q]);var ae=[R.course_feature_1,R.course_feature_2,R.course_feature_3,R.course_feature_4,R.course_feature_5].filter(Boolean);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(b.Z,{content:(0,r.Z)({meta_title:R.meta_title||R.course_name,meta_description:R.meta_description||R.course_description,og_title:R.meta_title||R.course_name,og_description:R.meta_description||R.course_description,host:L.host},R)}),(0,c.jsxs)("main",{className:"flex flex-col gap-6 lg:gap-12 max-w-7xl mx-auto w-full px-4 py-6 lg:py-12",children:[(0,c.jsx)(E.Z,{title:R.course_name,breadcrumbs:[{label:"Home",href:"/"},{label:L.web_menucoursename||"Courses",href:"/courses"},{label:R.course_name,href:"/courses/".concat(R.id)}]}),(0,c.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-[4fr_2.5fr] gap-8 lg:gap-12",children:[(0,c.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 lg:gap-8 lg:col-start-1",children:[(0,c.jsx)("div",{className:"relative aspect-video w-full overflow-hidden rounded-2xl border",children:(0,c.jsx)(P.L,{imageStr:R.course_thumbnail,title:R.course_name,imgHeight:"",mode:"blur-bg",fallbackSeed:R.course_name})}),!(0,u.isEmpty)(R.course_demo_video)&&(0,c.jsx)("div",{className:"rounded-2xl overflow-hidden border border-border",children:(0,c.jsx)(k.Z,{src:R.course_demo_video})})]}),(0,c.jsx)("div",{className:"relative lg:col-start-2 lg:row-start-1 lg:row-span-4 self-start",children:(0,c.jsx)("div",{className:"lg:sticky lg:top-24 h-fit",children:(0,c.jsx)(y.Z,{course:R,selectedPlan:D,setSelectedPlan:H,isExtend:A,lcId:O,showPricingPlansOnCourseDetailsPage:ie})})}),(0,c.jsxs)("div",{className:"flex min-w-0 flex-col gap-8 lg:col-start-1",children:[ae.length>0&&(0,c.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,c.jsx)("h3",{className:"mb-0 text-xl font-semibold tracking-tight",children:"Features"}),(0,c.jsx)("ul",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 pl-0 list-none",children:ae.map((function(e,t){return(0,c.jsxs)("li",{className:"flex gap-2.5 font-medium list-none",children:[(0,c.jsx)(w.G,{icon:N.f8k,className:"text-primary mt-[3px] shrink-0"}),e]},t)}))})]}),!(0,u.isEmpty)(R.course_description)&&(0,c.jsxs)("div",{className:"flex flex-col gap-3 relative",children:[(0,c.jsx)("h3",{className:"mb-0 text-xl font-semibold tracking-tight",children:"Description"}),(0,c.jsx)("div",{className:"description overflow-hidden transition-all duration-300 cubic-bezier(.215,.61,.355,1) ".concat(se?"max-h-none":"max-h-40"),dangerouslySetInnerHTML:{__html:R.course_description}}),!se&&(0,c.jsx)("div",{className:"absolute bottom-0 right-0 bg-gradient-to-t from-background to-background/0 w-full h-3/4 z-10"}),(0,c.jsxs)("button",{type:"button",onClick:function(){return ne((function(e){return!e}))},className:"text-sm font-semibold text-primary group inline-flex items-center gap-1 transition-colors duration-200 ease z-10",children:[se?"Show less":"Show more"," ",(0,c.jsx)(I.Z,{className:(0,z.cn)("size-5 shrink-0 transition-all duration-200 ease",se?"rotate-180":"")})]})]})]}),(0,c.jsx)("div",{className:"min-w-0 lg:col-start-1",children:(0,c.jsx)(C.Z,{course:R,subjects:l,liveCourses:f,freeVideos:$,tests:g,loading:Y,hasMore:V,onLoadMore:function(){var e;return null===(e=re.current)||void 0===e?void 0:e.call(re)},api:q,lcId:O})})]}),(0,c.jsxs)("div",{className:"flex flex-col gap-12 pb-16",children:[s.length>0&&(0,c.jsx)(Z.Z,{instructors:s}),(0,c.jsx)(S.Z,{faqs:t})]})]})]})}O.getInitialProps=function(){var e=(0,n.Z)((function(e){var t,s,n,c,u,d,x,p,b,_,j,w,N,k,y,C,Z,S,E;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return t=e.query,s=t.api?(0,g.NA)(t.api):(0,h.getCookie)(v.z1,e),n=t.id.split("-",1)[0],[4,(0,m.Yt)(s,n,t.lcId,(0,h.getCookie)(v.z1,e))];case 1:return(null===(c=o.sent())||void 0===c?void 0:c.length)<1?[2,{statusCode:404}]:[4,(0,m.nm)(s,n)];case 2:return u=o.sent(),[4,(0,m.tR)(s,n)];case 3:return d=o.sent(),[4,(0,m.WN)(s,n,-1)];case 4:return x=o.sent(),[4,Promise.allSettled([(0,m.jU)(s,n,t.lcId,(0,h.getCookie)(v.z1,e)),(0,m.T
10)(s,n),(0,f.CK)(s,n,-1)])];case 5:return p=l.Z.apply(void 0,[o.sent(),3]),b=p[0],_=p[1],j=p[2],w="fulfilled"===b.status?b.value:{live:[],upcoming:[]},y=(0,a.Z)(null!==(N=null===w||void 0===w?void 0:w.live)&&void 0!==N?N:[]).concat((0,a.Z)(null!==(k=null===w||void 0===w?void 0:w.upcoming)&&void 0!==k?k:[])),Z="fulfilled"===_.status&&null!==(C=_.value)&&void 0!==C?C:[],E="fulfilled"===j.status&&null!==(S=j.value)&&void 0!==S?S:[],[2,(0,i.Z)((0,r.Z)({},t),{course:c[0],faqs:u,instructors:d,subjects:Z,liveCourses:y,tests:E,freeVideos:x,api:s})]}}))}));return function(t){return e.apply(this,arguments)}}(),O.layout=x.kz}},function(e){e.O(0,[4885,9412,8534,7432,5495,614,5675,6436,2965,1483,8404,4288,6661,7340,8162,3609,366,5328,4380,7518,5531,828,3469,9756,6157,3974,7131,4420,9009,4845,9774,2888,179],(function(){return t=87278,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.