1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1811],{54123(e,a,t){t.r(a),t.d(a,{default:()=>E});var l=t(63696),s=t(49519),c=t(39423),i=t(43514),n=t(46253),m=t(9403),r=t(80315),u=t(67300);const o=({examName:e,allPackageCountData:a,handleAllBatchesClick:t,handleAllCoursesClick:i})=>{const{pathname:n}=(0,s.useLocation)(),m=(0,s.useHistory)();let r="";return a&&(r=a?.packages?.reduce((e,a)=>e?`${e}, ${a?.title}`:a?.title,"")),l.createElement("div",{className:"viewBatchWrap"},l.createElement("div",{className:"viewBatchBox LeftBoxView"},l.createElement("div",{className:"viewBatchHeadingWrap"},l.createElement("div",{className:"viewBatchHeading"},"All Batches for ",e),l.createElement("div",{className:"viewBatchBtnTop"+(0===a?.packages?.length?" disabled":"")},l.createElement("span",{onClick:t},"View All Batches"))),a?.packages?.length>0?l.createElement(l.Fragment,null,l.createElement("div",{className:"viewBatchPhera"},r," ",a?.subParentCount>2&&l.createElement(l.Fragment,null,"and"," ",l.createElement("span",null,a?.subParentCount-2," others"))),l.createElement("div",{className:"viewBatchList"},a?.packages?.map(e=>l.createElement("div",{key:e.packageId,className:"viewBatchThumb cp",onClick:()=>((e,a)=>{const t=n.substring(0,n.length-8);m.push(`${t}/${e}/${(0,c.Gm)(a)}/batch`)})(e.packageId,e.title)},l.createElement("span",null,l.createElement("img",{src:e?.thumbnail,alt:"thumbnail-image"})))),a?.subParentCount>2&&l.createElement("div",{className:"viewBatchThumb cp",onClick:t},l.createElement("img",{src:a?.packages?.[1]?.thumbnail,alt:"package-thumbnail-icon"}),l.createElement("span",{className:"viewBatchMore"},"+",a?.subParentCount-2," more",l.createElement("br",null),"courses")))):l.createElement("div",{className:"viewBatchList"},l.createElement(u.default,{message:"No Batches Found"}))),l.createElement("div",{className:"viewBatchBox RightBoxView"},l.createElement("div",{className:"viewBatchHeadingWrap"},l.createElement("div",{className:"viewBatchHeading"},"All Courses for ",e),l.createElement("div",{className:"viewBatchBtnTop"},l.createElement("span",{onClick:i},"View All Courses"))),l.createElement("div",{className:"viewAllCourseList"},a?.childPackageMap?.ONLINE_LIVE_CLASSES>0&&l.createElement("div",{className:"viewAllCourseListBox"},l.createElement("div",{className:"viewAllCourseName"},"Live Class"),l.createElement("div",{className:"viewAllCourseValue"},a?.childPackageMap?.ONLINE_LIVE_CLASSES," ","Courses")),a?.childPackageMap?.TEST_SERIES>0&&l.createElement("div",{className:"viewAllCourseListBox"},l.createElement("div",{className:"viewAllCourseName"},"Test Series"),l.createElement("div",{className:"viewAllCourseValue"},a?.childPackageMap?.TEST_SERIES," Courses")),a?.childPackageMap?.VIDEOS>0&&l.createElement("div",{className:"viewAllCourseListBox"},l.createElement("div",{className:"viewAllCourseName"},"Video Class"),l.createElement("div",{className:"viewAllCourseValue"},a?.childPackageMap?.VIDEOS," Courses")),a?.childPackageMap?.EBOOKS>0&&l.createElement("div",{className:"viewAllCourseListBox"},l.createElement("div",{className:"viewAllCourseName"},"E-books"),l.createElement("div",{className:"viewAllCourseValue"},a?.childPackageMap?.EBOOKS," Courses"))),l.createElement("div",{className:"viewAllCourseBoxImg"},l.createElement("img",{src:"/images/viewallcourseBigImg.svg",alt:"view-all-courses"}))))},E=()=>{const{packageId:e,examId:a,packageName:t,examName:u}=(0,s.useParams)(),{pathname:E,state:h}=(0,s.useLocation)(),[v,d]=(0,l.useState)(h),[g,C]=(0,l.useState)(!1),N=(0,s.useHistory)();(0,l.useEffect)(()=>{if(!v){C(!0);try{(0,r.A)(`${m.uS.allPackageCount}?packageId=${e}&exams=${a}`).then(e=>{e.success&&d(e.data),C(!1)}).catch(e=>{C(!1)})}catch(t){}}},[]);let p=[{route:"/my-purchase",name:"My Purchase"},{route:`/my-purchase/${e}/${t}/exams`,name:(0,c.kR)((0,c.TH)(t))},{route:E,name:(0,c.kR)((0,c.TH)(u))}];return l.createElement(i.A,{breadCrumbRoutes:p,pageTitle:(0,c.TH)(u),rightSection:l.createElement(l.Fragment,null)},g?l.createElement(n.default,null):l.createElement(o,{examName:u,allPackageCountData:v,handleAllBatchesClick:()=>
1{if(0==v?.packages?.length)return;const e=`${E.substring(0,E.length-8)}/allBatches`;N.push(e)},handleAllCoursesClick:()=>{const e=E.substring(0,E.length-8);N.push(e,{fromOptionsPage:!0})}}))}}}]);
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.