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AA,IAAU,CA/C6B,OAAC,CAAEoI,IAAAA,CAAG,CAAEC,KAAAA,CAAI,CAAE,CAAAlI,EAClE,MACE,GAAAyH,EAAA9G,GAAA,EAACgH,UAAAA,CAAQjH,UAAU,sEACjB,GAAA+G,EAAAjH,IAAA,EAACC,MAAAA,CAAIC,UAAU,8BACb,GAAA+G,EAAAjH,IAAA,EAACC,MAAAA,CAAIC,UAAU,0GACb,GAAA+G,EAAAjH,IAAA,EAACoH,KAAAA,CAAGlH,UAAU,gCACZ,GAAA+G,EAAA9G,GAAA,EAACa,OAAAA,CAAKd,UAAU,sBAAa,qCAAuC,YAC3D,GAAA+G,EAAA9G,GAAA,EAACa,OAAAA,CAAKd,UAAU,sBAAa,gBACtC,GAAA+G,EAAA9G,GAAA,EAACI,EAAAA,OAAKA,CAAAA,CACJC,IAAI,2BACJC,IAAI,yBACJG,MAAO,IACPC,OAAQ,GACRX,UAAU,YAGd,GAAA+G,EAAA9G,GAAA,EAACwH,EAAAA,CAAeA,CAAAA,CACd1G,MAAM,oBACN2G,SAAS,yBACTF,KAAMA,OAGV,GAAAT,EAAA9G,GAAA,EAACF,MAAAA,CAAIC,UAAU,iEACb,GAAA+G,EAAA9G,GAAA,EAAC0H,IAAWA,CACVxE,GAAG,mBACHyE,SAAU,GACVC,OAAQ,CACNC,MAAO,CACL/G,MAAO,mBACPgH,cAAe,CACbC,YAAa,CACf,CACF,EACAC,KAAM,CACJC,WAAY,CAAEC,YAAa,GAAMC,YAAa,WAAY,CAC5D,CACF,EACA1H,MAAO,IACPC,OAAQ,IACR4G,IAAKA,UAMjB","sources":["webpack://_N_E/./src/components/common/LevelCards/Curriculam.tsx","webpack://_N_E/./src/components/common/LevelCards/LevelCard.tsx","webpack://_N_E/./src/components/common/LevelCards/index.tsx","webpack://_N_E/./src/components/common/Levels/index.tsx","webpack://_N_E/./src/components/common/OnlinePlatform/index.tsx","webpack://_N_E/./src/app/media-queries.scss","webpack://_N_E/./src/components/common/LevelCards/styles.scss","webpack://_N_E/./src/components/common/Levels/styles.scss","webpack://_N_E/./src/components/common/OnlinePlatform/styles.scss","webpack://_N_E/<anon>"],"sourcesContent":["'use client';\nimport React, { useState } from 'react';\nimport Image from 'next/image';\nimport { CurriculamType } from './constants';\n\ninterface CurriculamProps {\n level: CurriculamType;\n tab: string;\n curriculamsData: string[];\n}\nconst Curriculam: React.FC<CurriculamProps> = ({ tab, curriculamsData }) => {\n const [currList, setCurrList] = useState(curriculamsData?.slice(0, 2));\n const [courseListHide, setCourseListHide] = useState(false);\n\n function handleClick() {\n setCurrList(courseListHide ? curriculamsData.slice(0, 2) : curriculamsData);\n\n setCourseListHide(!courseListHide);\n }\n return (\n <div className=\"courseList py-5 text-center\">\n <ul className=\"courseCardList text-left\">\n {currList.map((curriculam: CurriculamType) => (\n <li\n key={`${curriculam}-${tab}`}\n className=\"flex align-center text-md items-start py-1\"\n >\n <Image\n src=\"/course-card-list-icon.png\"\n alt={`${curriculam}-${tab}`}\n width={14}\n height={21}\n className=\"mr-2\"\n />\n {curriculam}\n </li>\n ))}\n </ul>\n <div className=\"curr-btn\">\n <button\n className={`curriculumBtn ${courseListHide ? 'less' : 'show'}`}\n onClick={() => handleClick()}\n >\n {courseListHide ? 'Less Curriculum' : 'Show Curriculum'}\n <span>\n <Image\n src=\"/down-arrow.svg\"\n alt=\"image\"\n title=\"image\"\n width={8}\n height={11}\n className=\"mr-2\"\n />\n </span>\n </button>\n </div>\n </div>\n );\n};\n\nexport default React.memo(Curriculam);\n","import React from 'react';\nimport Image from 'next/image';\nimport {\n Card,\n CardHeader,\n CardBody,\n CardFooter\n} from '@material-tailwind/react';\nimport Curriculam from './Curriculam';\nimport { LevelListProps, CountryWisePricing } from './constants';\nimport { discountType } from '@/constants';\nimport { calculatePercentage } from '@/utils';\nimport { useAppContext } from '@/contexts/AppContextProvider';\nimport BuyNowButton from '../BuyNowButton';\nimport Button from '../UI/Button';\nimport { usePathname, useRouter } from 'next/navigation';\nimport { CoursePurchase } from '../Levels';\n\ninterface LevelCardProps {\n level: string;\n levelDetail: LevelListProps;\n isDiscount?: boolean;\n tab: string;\n couponCode?: string;\n courseLevelId?: number;\n resumeCourses?: CoursePurchase;\n parentCheck?: CoursePurchase;\n}\n\nconst LevelCard: React.FC<LevelCardProps> = ({\n level,\n levelDetail,\n isDiscount = false,\n tab,\n couponCode,\n courseLevelId,\n resumeCourses,\n parentCheck\n}) => {\n const pathname = usePathname();\n const { countryCode, userType } = useAppContext();\n const route = useRouter();\n\n const pricing: CountryWisePricing =\n countryCode === 'IN' ? levelDetail.IN : levelDetail.US;\n\n const priceNew =\n userType === 'old' && pathname === '/booking-thank-you'\n ? pricing.oldPricePerYear || 0\n : pricing.pricePerYear;\n\n const discountAmt =\n discountType === 'percentage'\n ? calculatePercentage(priceNew, levelDetail.newDiscountValue)\n : levelDetail.newDiscountValue;\n\n const perYearAmt = priceNew - discountAmt;\n\n const perMonthAmt = Math.round(perYearAmt / levelDetail.noOfMonths);\n\n const handleResume = () => {\n const params = new URLSearchParams({\n coursePurchaseId: String(resumeCourses?.id ?? ''),\n courseTitle: resumeCourses?.course?.name ?? ''\n });\n route.push(`/course-navigation?${params.toString()}`);\n };\n\n return (\n <Card\n color=\"gray\"\n variant=\"gradient\"\n className={`courseCard courseCard${levelDetail.position} w-80 p-9`}\n >\n {!resumeCourses && !parentCheck && isDiscount && discountAmt > 0 ? (\n <div className=\"saveIcon flex flex-col items-center justify-center\">\n <p className=\"text-xl text-black leading-none\">Save</p>\n <p className=\"text-base leading-none\">\n {`${countryCode === 'IN' ? '₹' : '$'} `}\n {discountAmt}\n </p>\n </div>\n ) : null}\n <CardHeader\n floated={false}\n shadow={false}\n color=\"transparent\"\n className=\"mx-auto w-24 font-bold py-1 mb-3 bg-white text-center align-middle uppercase text-black text-base rounded-3xl\"\n >\n {levelDetail.name}\n </CardHeader>\n <CardBody className=\"p-0 pt-4\">\n {!resumeCourses && !parentCheck && isDiscount && discountAmt > 0 ? (\n <p className=\"text-base cutMainPrice text-right\">\n <span>\n {`${countryCode === 'IN' ? '₹' : '$'} `}\n {priceNew}\n </span>\n </p>\n ) : null}\n <div className=\"flex justify-between pb-4\">\n <div className=\"sessionNo\">\n <h2 className=\"text-4xl\">{levelDetail.noOfSession}</h2>\n <p className=\"text-base\">Live Classes</p>\n </div>\n\n <div className=\"sessionPrice text-right flex items-end flex-col\">\n <h2 className=\"text-4xl\">\n {`${countryCode === 'IN' ? '₹' : '$'} `}\n {!resumeCourses && !parentCheck && isDiscount\n ? perYearAmt\n : priceNew}{' '}\n </h2>\n {pricing.newPricePerMonth ? (\n <p className=\"text-lg month-text\">\n {!resumeCourses && !parentCheck && isDiscount\n ? perMonthAmt\n : Math.round(priceNew / levelDetail.noOfMonths)}\n /Month\n </p>\n ) : null}\n </div>\n </div>\n <div className=\"flex justify-center\">\n <Image\n src=\"/course-card-divider.png\"\n alt=\"Curriculam Divider\"\n width={235}\n height={15}\n />\n </div>\n <Curriculam\n tab={tab}\n level={level}\n curriculamsData={levelDetail.curriculams || []}\n />\n </CardBody>\n <CardFooter className=\"flex justify-center pb-0\">\n {!resumeCourses && !parentCheck ? (\n <BuyNowButton\n amount={priceNew}\n level={levelDetail.name}\n category={tab}\n course=\"Kathak\"\n isDiscount={isDiscount}\n courseLevelId={courseLevelId}\n couponCode={couponCode ?? ''}\n />\n ) : (\n <Button onClick={() => handleResume()} title=\"Resume\" />\n )}\n </CardFooter>\n {!resumeCourses &&\n !parentCheck &&\n couponCode &&\n isDiscount &&\n discountAmt > 0 ? (\n <div className=\"coupon-code\">\n <p>\n Coupon Code: <span>{couponCode}</span>\n </p>\n </div>\n ) : null}\n </Card>\n );\n};\n\nexport default React.memo(LevelCard);\n","import React, { useEffect } from 'react';\nimport Image from 'next/image';\nimport {\n Tabs,\n TabsHeader,\n TabsBody,\n Tab,\n TabPanel\n} from '@material-tailwind/react';\nimport { LevelListProps, LevelsProps } from './constants';\nimport LevelCard from './LevelCard';\nimport './styles.scss';\nimport { CouponCode } from '@/contexts/ThankYouContextProvider';\nimport { GetCoursePurchasesByStudentId } from '../Levels';\nimport { useLazyQuery } from '@apollo/client';\nimport { Get_Course_Purchases_By_StudentId } from '@/graphql/course/query';\nimport { isLoggedIn } from '@/utils';\nimport { useAppContext } from '@/contexts/AppContextProvider';\n\ninterface LevelCardsProps {\n levels: LevelsProps[];\n defaultTab: string;\n isDiscount?: boolean;\n couponCodes?: CouponCode;\n}\n\nconst LevelCards: React.FC<LevelCardsProps> = ({\n levels,\n isDiscount = false,\n defaultTab,\n couponCodes\n}) => {\n const [getPurchaseCourse, { data }] =\n useLazyQuery<GetCoursePurchasesByStudentId>(\n Get_Course_Purchases_By_StudentId\n );\n useEffect(() => {\n if (isLoggedIn()) {\n getPurchaseCourse();\n }\n }, [isLoggedIn()]);\n const { countryCode } = useAppContext();\n\n return (\n <Tabs key={defaultTab} value={defaultTab}>\n {countryCode === 'IN' && levels.length > 1 ? (\n <TabsHeader className=\"mx-auto w-64 secondaryButton rounded-3xl tab-view\">\n {levels.map(({ label, value }) => (\n <Tab key={value} value={value}>\n {label}\n </Tab>\n ))}\n </TabsHeader>\n ) : null}\n <TabsBody>\n {levels.map(({ label, value, levelList }) => (\n <TabPanel key={value} value={value}>\n <div className=\"flex justify-center mt-14 mb-14 card-d\">\n <Image\n src=\"/course-tab-divider.png\"\n alt=\"Card Divider\"\n title=\"Card Divider\"\n width={141}\n height={10}\n />\n </div>\n <div\n className=\"level-card-wrap mx-auto mt-10 mb-5 sm:my-5 flex items-center count-content width-adjest-mobile-view level-c\"\n id=\"levelCards\"\n >\n {levelList.map((levelDetail: LevelListProps) => (\n <LevelCard\n key={levelDetail.key}\n level={levelDetail.key}\n resumeCourses={data?.getCoursePurchasesByStudentId?.find(\n (item) => item?.course?.id === levelDetail?.courseLevelId\n )}\n parentCheck={data?.getCoursePurchasesByStudentId?.find(\n (item) =>\n levelDetail.parentcourseLevelId?.includes(\n item?.course?.id\n )\n )}\n tab={label}\n levelDetail={levelDetail}\n isDiscount={isDiscount}\n courseLevelId={levelDetail.courseLevelId}\n couponCode={\n couponCodes && levelDetail?.couponKey\n ? couponCodes[levelDetail.couponKey as keyof CouponCode]\n : undefined\n }\n />\n ))}\n </div>\n </TabPanel>\n ))}\n </TabsBody>\n </Tabs>\n );\n};\n\nexport default React.memo(LevelCards);\n","'use client';\nimport React, { useEffect, useState } from 'react';\nimport LevelFeature from './LevelFeature';\nimport LevelCards from '@/components/common/LevelCards';\nimport './styles.scss';\nimport { LevelsProps } from '../LevelCards/constants';\nimport { useAppContext } from '@/contexts/AppContextProvider';\n\ninterface LevelsProp {\n levels: LevelsProps[];\n title: string;\n}\n\nexport interface Course {\n solo_group: string;\n id: number;\n name: string;\n artform: string;\n session: string | null;\n __typename: string;\n}\n\nexport interface CoursePurchase {\n id: number;\n course: Course;\n level: number;\n expireDays: number;\n language: string;\n country: string;\n purchase_date: string;\n activationDate: string;\n expiryDate: string;\n repurchase: boolean;\n createdBy: string | null;\n updatedBy: string | null;\n amountPaid: number;\n isActive: boolean;\n comment: string | null;\n user: string | null;\n __typename: string;\n}\n\nexport interface GetCoursePurchasesByStudentId {\n getCoursePurchasesByStudentId: CoursePurchase[];\n}\n\nexport interface ResponseData {\n data: GetCoursePurchasesByStudentId;\n}\n\nconst Levels: React.FC<LevelsProp> = ({ levels, title }) => {\n const { countryCode, couponCode } = useAppContext();\n // const [couponCode, setCouponCodes] = useState<CouponCode | undefined>(\n // undefined\n // );\n\n const [filterLevels, setFilterLevels] = useState(levels);\n const [defaultTab, setDefaultTab] = useState('group');\n useEffect(() => {\n const filterList =\n countryCode === 'IN'\n ? levels\n : levels.filter((level) => level.value === 'solo');\n setFilterLevels(filterList);\n setDefaultTab(filterList.length > 1 ? 'group' : 'solo');\n }, [countryCode]);\n\n return (\n <>\n <section className=\"padding-set level-cards-content section-spacing\">\n <div className=\"section-container\">\n <h1 className=\"text-center text-white\">{title}</h1>\n <div className=\"max-w-xl mx-auto grid grid-cols-3 my-5 mb-8 alm-content\">\n <LevelFeature\n icon=\"/feature1.svg\"\n title=\"Masterclasses\"\n desc=\"Full Curriculum\"\n />\n <LevelFeature\n icon=\"/feature2.svg\"\n title=\"Practice Routines\"\n desc=\"for all sessions\"\n />\n <LevelFeature\n icon=\"/feature3.svg\"\n title=\"Performance Training\"\n desc=\"at regular intervals\"\n />\n </div>\n <LevelCards\n isDiscount={couponCode ? true : false}\n couponCodes={couponCode}\n levels={filterLevels}\n defaultTab={defaultTab}\n />\n </div>\n </section>\n </>\n );\n};\n\nexport default React.memo(Levels);\n","import React from 'react';\nimport Image from 'next/image';\nimport ReactPlayer from 'react-player';\nimport FreeTrialButton from '@/components/common/FreeTrialButton';\nimport './styles.scss';\nimport '../../../app/media-queries.scss';\n\ninterface OnlinePlatformProps {\n url: string;\n page?: string;\n}\n\nconst OnlinePlatform: React.FC<OnlinePlatformProps> = ({ url, page }) => {\n return (\n <section className=\"section-spacing space-set-mobile-view online-platform-kids\">\n <div className=\"section-container\">\n <div className=\"flex justify-between items-center join-platform-content count-content font-adjest-mobile-view\">\n <h1 className=\"text-5xl text-white\">\n <span className=\"text-break\">Join the #1 Online Platform for </span>\n Learning <span className=\"orangeText\">Indian Arts</span>\n <Image\n src=\"/large-video-divider.png\"\n alt=\"Learn Indian Art Arrow\"\n width={131}\n height={10}\n className=\"mt-3\"\n />\n </h1>\n <FreeTrialButton\n title=\"Book a Free Trial\"\n subtitle=\"(Unlock special offer)\"\n page={page}\n />\n </div>\n <div className=\"largeVideoWrap mx-auto mt-2 md:mt-3 lg:mt-12 xl:mt-16\">\n <ReactPlayer\n id=\"online-plateform\"\n controls={true}\n config={{\n vimeo: {\n title: 'Learn Indian Art',\n playerOptions: {\n playsinline: 1\n }\n },\n file: {\n attributes: { playsInline: true, crossOrigin: 'anonymous' }\n }\n }}\n width={808}\n height={409}\n url={url}\n />\n </div>\n </div>\n </section>\n );\n};\n\nexport default React.memo(OnlinePlatform);\n","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin"],"names":["LevelCards_Curriculam","React","tab","curriculamsData","param","currList","setCurrList","useState","slice","courseListHide","setCourseListHide","jsx_runtime","jsxs","div","className","jsx","ul","map","li","Image","src","alt","curriculam","concat","width","height","button","onClick","span","title","LevelCards_LevelCard","level","levelDetail","isDiscount","couponCode","courseLevelId","resumeCourses","parentCheck","pathname","usePathname","countryCode","userType","useAppContext","route","useRouter","pricing","IN","US","priceNew","oldPricePerYear","pricePerYear","discountAmt","discountType","calculatePercentage","newDiscountValue","perYearAmt","perMonthAmt","Math","round","noOfMonths","handleResume","params","URLSearchParams","coursePurchaseId","String","id","courseTitle","course","name","push","toString","Card","color","variant","position","p","CardHeader","floated","shadow","CardBody","h2","noOfSession","newPricePerMonth","Curriculam","curriculams","CardFooter","Button","BuyNowButton","amount","category","common_LevelCards","levels","defaultTab","couponCodes","getPurchaseCourse","data","useLazyQuery","Get_Course_Purchases_By_StudentId","useEffect","isLoggedIn","Tabs","value","length","TabsHeader","label","Tab","TabsBody","levelList","TabPanel","LevelCard","key","getCoursePurchasesByStudentId","find","item","parentcourseLevelId","includes","couponKey","undefined","__webpack_exports__","Z","filterLevels","setFilterLevels","setDefaultTab","filterList","filter","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","Fragment","section","h1","LevelFeature","icon","desc","LevelCards","url","page","FreeTrialButton","subtitle","ReactPlayer","controls","config","vimeo","playerOptions","playsinline","file","attributes","playsInline","crossOrigin"],"sourceRoot":""}