PageSourceSearch

https://www.turito.com/_next/static/chunks/pages/in/course/[id]/[id1]-59c10b36301364a0.js

js turito.com collected 2026-09-24 10:07:26 UTC 20,968 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3689],{43051:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/in/course/[id]/[id1]",function(){return s(7412)}])},7412:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return D}});var a=s(7297),n=s(85893),o=s(67294),r=s(99752),i=s(6543),l=s(92205),c=s(56996),p=s(33666),u=s(12106),h=s(33052),d=s(20882),g=s(76826),m=s(83345),_=s(44608),C=s(84316);s(90643);var P=s(4153),f=s(9008),v=s.n(f),w=s(12171),j=s(57252),y=s(34339),b=s(28687),x=s.n(b),L=s(56562),k=s(3338),S=s(38128),T=s(55131),N=s.n(T),O=s(11163);let q=e=>{let{pkgCode:t}=e,s=(0,O.useRouter)(),[a,r]=(0,o.useState)([]),[i,l]=(0,o.useState)(""),[c,p]=(0,o.useState)([]),u={"turito-champion-program-for-iit-jee":"Turito Champion program for IIT-JEE","turito-champion-program-for-neet":"Turito Champion program for NEET","turito-broadcast-foundation-for-class-10":"Turito Champion - Foundation for Class 10","turito-broadcast-foundation-for-class-9":"Turito Champion - Foundation for Class 9","turito-broadcast-foundation-for-class-8":"Turito Champion - Foundation for Class 8","turito-broadcast-foundation-for-class-7":"Turito Champion - Foundation for Class 7","turito-broadcast-foundation-for-class-6":"Turito Champion - Foundation for Class 6","turito-broadcast-foundation-for-class-5":"Turito Champion - Foundation for Class 5","turito-broadcast-foundation-for-class-4":"Turito Champion - Foundation for Class 4"},h=async()=>{var e,a,n,o,i,c,h,d,g;let m=new _.default,C=await m.getData("API_COMMON_URL","champion/program/subject/topics");if((null==C?void 0:C.status)&&(null==C?void 0:null===(e=C.response)||void 0===e?void 0:null===(a=e.data)||void 0===a?void 0:a.length)>0)for(let e of C.response.data){let a="";for(let t of null==e?void 0:null===(n=e.courseName)||void 0===n?void 0:n.split(""))t.trim().length>0&&(a+=t);if(a.toLowerCase()===(null==u?void 0:null===(i=u[t||(null===(o=s.asPath.split("/"))||void 0===o?void 0:o.pop())])||void 0===i?void 0:i.replaceAll(" ","").toLowerCase())){r(null==e?void 0:e.subjectTopics),l((null==e?void 0:null===(c=e.subjectTopics)||void 0===c?void 0:null===(h=c[0])||void 0===h?void 0:h.subjectName)||"");let t=[...new Set(null==e?void 0:null===(d=e.subjectTopics)||void 0===d?void 0:null===(g=d[0])||void 0===g?void 0:g.topics)];p(t);break}r([]),l(""),p([])}},d=e=>{var t;l(e);let s=null===(t=null==a?void 0:a.find(t=>t.subjectName===e))||void 0===t?void 0:t.topics,n=[...new Set(s)];p(n)};return(0,o.useEffect)(()=>{h()},[]),(null==a?void 0:a.length)>0?(0,n.jsxs)("div",{className:"pl-row ".concat(N().topicSection),children:[(0,n.jsx)("h2",{className:"common_heading text-center",children:"Topics covered"}),(0,n.jsx)("ul",{className:N().subList,children:null==a?void 0:a.map(e=>(0,n.jsx)("li",{className:i===(null==e?void 0:e.subjectName)?N().activeTab:{},onClick:()=>d(null==e?void 0:e.subjectName),children:(0,n.jsx)("span",{children:(null==e?void 0:e.subjectName)||""})},null==e?void 0:e.subjectName))}),(0,n.jsx)("div",{className:N().topicList,children:(0,n.jsx)("ul",{children:null==c?void 0:c.map((e,t)=>(0,n.jsx)("li",{children:(0,n.jsx)("p",{children:e})},t))})})]}):null};function M(){let e=(0,a.Z)(["\n        query StreamPageQuery($path: String!, $countryCode: String!){\n            streamPage(where: {\n                path: $path\n\n\n            }){\n                path\n                valueProposition\n                seoTags{\n                    description\n                    keywords\n                    og__type\n                    og__site_name\n                    og__title\n                    og__description\n                    og__url\n                    og__image\n                    subject\n                    author\n                    robots\n                    googlebot__news\n                    apple__itunes__app\n                    google__play__app\n                    thumbnail\n                    og__video\n                    og__video__secure_url\n                    og__video__width\n                    og__video__height\n                    og__video__tag\n                    twitter__card\n                    twitter__site\n                    twitter__creator\n                    twitter__title\n                    twitter__description\n                    twitter__image\n                    twitter__url\n                    twitter__player\n                    twitter__player__width\n                    twitter__player__height\n                    fb__app_id\n                    fbPages\n\n                }
1\n                pageContents(where: {\n                    regions_some: {\n                        countries_some: {\n                            code: $countryCode\n                        }\n                    }\n                }){\n                    contentBlocks{\n                        identifier\n                        htmlContent{\n                            html\n                            text\n                        }\n                    }\n                }\n                streamPageFaqs(where: {\n                    regions_some: {\n                        countries_some: {\n                            code: $countryCode\n                        }\n                    }\n                }){\n                    faqQuestions{\n                        question\n                        answer\n                    }\n                }\n\n                streamPageTestimonials(where: {\n                    regions_some: {\n                        countries_some: {\n                            code: $countryCode\n                        }\n                    }\n                }){\n                    testimonials{\n                        criticName\n                        criticType\n                        rating\n                        review\n                    }\n                }\n                streamPageTeachers(where: {\n                    regions_some: {\n                        countries_some: {\n                            code: $countryCode\n                        }\n                    }\n                }){\n                    teachers{\n                        name\n                        description\n                        image\n                        preferredSubjects\n                        experienceInYears\n                    }\n                }\n            }\n        } "]);return M=function(){return e},e}function I(){let e=(0,a.Z)(["\n         query StreamPageQuery($path: String!, $countryCode: String!){\n             streamPage(where: {\n                 path: $path\n \n \n             }){\n                 path\n                 valueProposition\n                 seoTags{\n                     description\n                     keywords\n                     og__type\n                     og__site_name\n                     og__title\n                     og__description\n                     og__url\n                     og__image\n                     subject\n                     author\n                     robots\n                     googlebot__news\n                     apple__itunes__app\n                     google__play__app\n                     thumbnail\n                     og__video\n                     og__video__secure_url\n                     og__video__width\n                     og__video__height\n                     og__video__tag\n                     twitter__card\n                     twitter__site\n                     twitter__creator\n                     twitter__title\n                     twitter__description\n                     twitter__image\n                     twitter__url\n                     twitter__player\n                     twitter__player__width\n                     twitter__player__height\n                     fb__app_id\n                     fbPages\n \n                 }\n                 pageContents(where: {\n                     regions_some: {\n                         countries_some: {\n                             code: $countryCode\n                         }\n                     }\n                 }){\n                     contentBlocks{\n                         identifier\n                         htmlContent{\n                             html\n                             text\n                         }\n                     }\n                 }\n                 streamPageFaqs(where: {\n                     regions_some: {\n                         countries_some: {\n                             code: $countryCode\n                         }\n                     }\n                 }){\n                     faqQuestions{\n                         question\n                         answer\n                     }\n                 }
1\n \n                 streamPageTestimonials(where: {\n                     regions_some: {\n                         countries_some: {\n                             code: $countryCode\n                         }\n                     }\n                 }){\n                     testimonials{\n                         criticName\n                         criticType\n                         rating\n                         review\n                     }\n                 }\n                 streamPageTeachers(where: {\n                     regions_some: {\n                         countries_some: {\n                             code: $countryCode\n                         }\n                     }\n                 }){\n                     teachers{\n                         name\n                         description\n                         image\n                         preferredSubjects\n                         experienceInYears\n                     }\n                 }\n             }\n         } "]);return I=function(){return e},e}class F extends o.Component{async loadInstant(e,t){let s=new _.default;s.getData("API_COMMON_URL","banner/list?path=course/"+e+"/"+t,{}).then(e=>{e.status&&this.setState({banner:e.response})}),s.getData("API_COMMON_URL","stream/list",{}).then(t=>{if(!0===t.status){this.setState({streamList:t.response});let s=t.response.filter(t=>t.displayCode===e);e=s[0]?s[0].code:e}s.getData("API_COMMON_URL","master/course/group/list?master_stream_code="+e,{}).then(e=>{!0===e.status&&this.setState({packageGroup:e.response})}),s.getData("API_COMMON_URL","master/course/list?master_stream_code="+e,{}).then(e=>{!0===e.status&&this.setState({packageList:e.response.masterCourses})})})}componentDidMount(){let{data:e}=this.props;P.L("stream/"+e.path+"/"+e.path1+" - YuppMaster"),this.setState({streamCode:e.path}),this.setState({packageCode:e.path1}),this.loadInstant(e.path,e.path1);let{queryPath:t}=this.props;this.getStreamPageContent(t)}componentDidUpdate(e){let{data:t}=this.props;if(t.path1!==e.data.path1){P.L("stream/"+t.path+"/"+t.path1+" - YuppMaster"),this.setState({packageCode:t.path1}),this.setState({packageCourse:[],testimonial:[],config:[],faculty:[],gradeList:[],boardList:[],faq:[],relatedCourse:[],streamList:[],streamCode:"",packageCode:"",didChange:!0,courseSchedule:[],testimonials:[],faqs:[],packageGroup:[],packageList:[],banner:this.props.banner});let{queryPath:e}=this.props;this.getStreamPageContent(e),this.loadInstant(t.path,t.path1)}}async getStreamPageContent(e){let t=new y.Z,s=await t.getCountryCode({});s||(s=""),this.setState({userGeo:s});let a=(0,b.gql)(M()),n={path:e,countryCode:s},o=await x()("https://api-eu-central-1.graphcms.com/v2/ckh0dne57rh8901xj2s6p730m/master",a,n).catch(e=>{});o&&o.streamPage&&(o.streamPage.pageContents&&o.streamPage.pageContents[0]&&o.streamPage.pageContents[0].contentBlocks&&this.setState({contentBlock:o.streamPage.pageContents[0].contentBlocks}),o.streamPage.streamPageFaqs&&o.streamPage.streamPageFaqs.length>0&&o.streamPage.streamPageFaqs[0].faqQuestions&&this.setState({faqs:o.streamPage.streamPageFaqs[0].faqQuestions}),o.streamPage.streamPageTestimonials&&o.streamPage.streamPageTestimonials.length>0&&o.streamPage.streamPageTestimonials[0].testimonials&&this.setState({testimonials:o.streamPage.streamPageTestimonials[0].testimonials}),o.streamPage.streamPageTeachers&&o.streamPage.streamPageTeachers.length>0&&o.streamPage.streamPageTeachers[0].teachers&&this.setState({faculty:o.streamPage.streamPageTeachers[0].teachers}))}static async getInitialProps(e){let t={path:e.query.id,path1:e.query.id1},s=t.path,a=s,n=t.path1,r=[],i=[],l=[],c=[],p=[],u=[],h=[],d=[],g=[],m={},P="",f=new _.default,v="";new C.default;let w=await f.getData("API_COMMON_URL","stream/list",e);if(w&&w.status){let t=w.response.filter(e=>e.displayCode===s);a=t[0]?t[0].code:s;let o=await f.getData("API_COMMON_URL","banner/list?path=course/"+a+"/"+n,e).catch(e=>{});o&&o.status&&o.response&&(P=o.response?o.response:""),d=await f.getData("API_COMMON_URL","master/course/group/list?master_stream_code="+a,e),g=await f.getData("API_COMMON_U
1RL","master/course/list?master_stream_code="+a,e),r=await f.getData("API_COMMON_URL","related/master/courses?master_course_display_code="+n,e),l=await f.getData("API_PACKAGE_URL","master/course/details?display_code="+n,e),i=await f.getData("API_COMMON_URL","system/config",e),p=await f.getData("API_COMMON_URL","grade/list",e),u=await f.getData("API_COMMON_URL","board/list",e),h=await f.getData("API_PACKAGE_URL_V2","master/course/package/details?display_code="+n,e)}let j=c.status?c.response.list:[],L=e.asPath,k=new y.Z;(v=await k.getCountryCode(e))||(v="");let S=(0,b.gql)(I()),T={path:L,countryCode:v},N=[],O=await x()("https://api-eu-central-1.graphcms.com/v2/ckh0dne57rh8901xj2s6p730m/master",S,T).catch(e=>{});return O&&(N=O),o.Component.getInitialProps&&(m=await o.Component.getInitialProps(e)),{packageList:g,packageGroup:d,banner:P,masterCourseContent:N,queryPath:L,data:t,pageProps:m,error:"",relatedCourse:r,packageCourse:l,testimonial:[],facultyList:j,config:i,faq:[],grade:p,board:u,stream:w,userGeo:v,courseSchedule:h}}render(){var e,t,s,a,o,_;let{data:C}=this.props,P=C.path.split("/"),f=P[0],y=C.path1,b=this.state.didChange,x=this.state.config.length>0?this.state.config:this.props.config.response,T=this.state.packageGroup.length>0?this.state.packageGroup:this.props.packageGroup.response?this.props.packageGroup.response.masterCourseGroups:[],N=this.state.packageList.length>0?this.state.packageList:this.props.packageList.response?this.props.packageList.response.masterCourses:[],O=this.state.packageCourse.length>0?this.state.packageCourse:this.props.packageCourse.response,M=[],I=this.state.gradeList.length>0?this.state.gradeList:this.props.grade.response,F=this.state.boardList.length>0?this.state.boardList:this.props.board.response,D=this.state.streamList.length>0?this.state.streamList:this.props.stream.response,A=this.state.relatedCourse.length>0?this.state.relatedCourse:this.props.relatedCourse.response?this.props.relatedCourse.response.relatedCourses:[],G=this.state.courseSchedule.length>0?this.state.courseSchedule:this.props.courseSchedule.response?this.props.courseSchedule.response:[],U=[],Z=D.find(e=>e.displayCode===f),R=this.props.userGeo?this.props.userGeo:"",B={},$=[],E=[];this.props.masterCourseContent&&this.props.masterCourseContent.streamPage&&(B=this.props.masterCourseContent.streamPage.seoTags&&this.props.masterCourseContent.streamPage.seoTags.length>0?this.props.masterCourseContent.streamPage.seoTags[0]:"",U=this.props.masterCourseContent.streamPage.pageContents&&this.props.masterCourseContent.streamPage.pageContents[0]&&this.props.masterCourseContent.streamPage.pageContents[0].contentBlocks?this.props.masterCourseContent.streamPage.pageContents[0].contentBlocks:this.state.contentBlock,this.props.masterCourseContent.streamPage.valueProposition&&this.props.masterCourseContent.streamPage.valueProposition,M=this.props.masterCourseContent.streamPage.streamPageTestimonials&&this.props.masterCourseContent.streamPage.streamPageTestimonials.length>0&&this.props.masterCourseContent.streamPage.streamPageTestimonials[0].testimonials?this.props.masterCourseContent.streamPage.streamPageTestimonials[0].testimonials:this.state.testimonials,E=this.props.masterCourseContent.streamPage.streamPageTeachers&&this.props.masterCourseContent.streamPage.streamPageTeachers.length>0&&this.props.masterCourseContent.streamPage.streamPageTeachers[0].teachers?this.props.masterCourseContent.streamPage.streamPageTeachers[0].teachers:this.state.faculty,$=this.props.masterCourseContent.streamPage.streamPageFaqs&&this.props.masterCourseContent.streamPage.streamPageFaqs.length>0&&this.props.masterCourseContent.streamPage.streamPageFaqs[0].faqQuestions?this.props.masterCourseContent.streamPage.streamPageFaqs[0].faqQuestions:this.state.faqs);let Q=[];if(G&&G.courses&&G.courses.length>0){let e=JSON.parse(JSON.stringify(G.courses));(e=e.sort((e,t)=>e.course.startsFrom-t.course.startsFrom)).map((e,t)=>{let s="";e.course&&e.course.startsFrom&&(s=new Intl.DateTimeFormat("en-US",{month:"short",day:"2-digit"}).format(e.course.startsFrom)),Q.push(s)})}let J=Q.join(", "),Y=!1;"universal-program"===P[0]&&(Y=!0);let{og__url:H="",og__title:K="",og__description:X=""}=(null===(e=this.props)||void 0===e?void 0:null===(t=e.masterCourseContent)||void 0===t?void 0:null===(s=t.streamPage)||void 0===s?void 0:null===(a=s.seoTags)||void 0===a?void 0:a[0])||{};return null===(o=this.props)||void 0===o||null===(_=o.userGeo)||void 0===_||_.toLowerCase(),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(v(),{children:[(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Course","@id":"".concat(H,"#course"),name:K,description:X,url:H,provider:{"@type":"Organization","@id":"https://www.turito.com/in"},hasCourseInstance:{"@type":"CourseInstance",courseMode:["online","live online"]},educationalLevel:["Primary school","Middle school"]}
1)}}),!!B&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:B.og__title}),(0,n.jsx)("meta",{name:"description",content:B.description}),(0,n.jsx)("link",{rel:"canonical",href:B.og__url})]}),!!B&&0!==Object.keys(B).length&&Object.keys(B).map((e,t)=>(B[e],(0,n.jsx)(n.Fragment,{children:B[e]?e.includes("og__")||e.includes("twitter__")?(0,n.jsx)("meta",{property:e.split("__").join(":")+"",content:B[e]+""}):(0,n.jsx)("meta",{name:e.split("__").join("-")+"",content:B[e]+""}):""})))]}),(0,n.jsx)(r.Z,{children:(0,n.jsxs)("div",{className:"pl-body",children:[(0,n.jsx)(d.Z,{pathCode:P[0],streamList:D,isStreamPage:!0,userGeo:R}),(0,n.jsx)("div",{className:"side_overlay"}),(0,n.jsx)("div",{className:"sidebar_home",children:(0,n.jsx)(j.Z,{pathCode:P[0],streamList:D,isStreamPage:!0})}),(0,n.jsxs)("main",{className:"pl-main-container",children:[!!this.state.banner&&!!this.state.banner.list&&this.state.banner.list.length>0&&(0,n.jsx)(S.Z,{banner:this.state.banner,config:x}),(0,n.jsx)("div",{className:"groupingCourseBg",children:(0,n.jsx)(L.Z,{userGeo:R,packageGroup:T,streamCode:f,packageCode:y,packageList:N})}),(0,n.jsxs)(n.Fragment,{children:[(null==B?void 0:B.og__title)&&(0,n.jsx)("h1",{className:"sr-only",children:B.og__title}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{packageCourse:O,currentStream:Z,didChange:b,handleDidChange:this.handleDidChange,batchesText:J,courseSchedule:G,config:x,countrySlug:"/in"})})]}),!!O&&O.hasBatches&&(0,n.jsx)("div",{className:"courseSchedule",children:(0,n.jsx)(w.Z,{packageCourse:O,currentStream:Z,courseSchedule:G,didChange:b,handleDidChange:this.handleDidChange,config:x})}),U.length>0&&(0,n.jsx)("div",{children:(0,n.jsx)(k.Z,{contentBlock:U,isUniversalProgram:Y})}),(0,n.jsx)("div",{children:(0,n.jsx)(q,{pkgCode:null==O?void 0:O.code})}),(0,n.jsx)("div",{children:(0,n.jsx)(l.Z,{})}),!!M&&M.length>0&&(0,n.jsx)("div",{children:(0,n.jsx)(p.Z,{testimonials:M,config:x,title:Z.title})}),E.length>0&&(0,n.jsx)("div",{children:(0,n.jsx)(u.Z,{faculty:E,config:x})}),(0,n.jsx)("div",{children:(0,n.jsx)(m.Z,{gradeList:I,boardList:F,source:"Package_Page",isUniversalProgram:Y})}),!!$&&$.length>0&&(0,n.jsx)("div",{children:(0,n.jsx)(h.Z,{faqs:$})}),A.length>0&&(0,n.jsx)("div",{children:(0,n.jsx)(c.Z,{userGeo:R,relatedCourse:A,path:P,currentStream:Z})})]}),(0,n.jsx)(g.Z,{userGeo:R,streamList:D})]})})]})}constructor(e){super(e),this.handleDidChange=()=>{this.setState({didChange:!1})},this.state={packageCourse:[],testimonial:[],config:[],faculty:[],gradeList:[],boardList:[],faq:[],relatedCourse:[],streamList:[],didChange:!0,courseSchedule:[],testimonials:[],faqs:[],packageGroup:[],packageList:[],contentBlock:[],banner:this.props.banner}}}var D=F},55131:function(e){e.exports={topicSection:"topicsBroadcast_topicSection__9420O",subList:"topicsBroadcast_subList__2D4ya",activeTab:"topicsBroadcast_activeTab__8yHp7",topicList:"topicsBroadcast_topicList__bvLRv"}}},function(e){e.O(0,[6492,6239,1664,5675,2950,6271,5609,1139,6826,399,9723,6003,882,8128,6399,3355,9774,2888,179],function(){return e(e.s=43051)}),_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.