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A,CAAAA,GAAAA,KAAAA,IAAAA,SAAAA,CAAAA,EAAAA,CAAAA,SAAAA,CAAAA,EAAAA,CAAgB,EAMrE,OALoBC,IAAAA,QAAqB,CAAC,CACxCL,OAAAA,EACAI,MAAAA,EACAE,QAASD,IAAAA,OAAoB,CAAC,aAChC,EAEF,EAEaE,EAAsB,CAACC,EAAgBC,IAC3CC,KAAKC,KAAK,CAACH,EAAUC,EAAc,KAG/BG,EAAuB,SAClCC,CAAAA,MACAC,EAAAA,UAAAA,MAAAA,CAAAA,GAAAA,KAAAA,IAAAA,SAAAA,CAAAA,EAAAA,CAAAA,SAAAA,CAAAA,EAAAA,CAAyB,EAEnBC,EAAU,IAAIlH,KAAKgH,GAEzB,OADAE,EAAQrB,OAAO,CAACqB,EAAQpB,OAAO,GAAKmB,GAC7BC,CACT,EAEaC,EAAa,CAACH,EAAYI,IAC9BC,IAAOL,GAAMI,MAAM,CAACA,GAGhBE,EAAe,GACV,IAAItH,KAAKgH,GAIdO,EAAa,IAEjB,CAAC,CADM1H,CAAAA,EAAAA,EAAAA,EAAAA,EAAgB","sources":["webpack://_N_E/./src/components/common/CourseSelectionDialog/index.tsx","webpack://_N_E/./src/constants/index.ts","webpack://_N_E/./src/hooks/useConutryCode.tsx","webpack://_N_E/./src/hooks/useUTMDetail.tsx","webpack://_N_E/./src/contexts/AppContextProvider.tsx","webpack://_N_E/./src/store/App/reducer.ts","webpack://_N_E/./src/store/Cart/reducer.ts","webpack://_N_E/./src/store/Order/reducer.ts","webpack://_N_E/./src/store/User/reducer.ts","webpack://_N_E/./src/utils/cookies/index.ts","webpack://_N_E/./src/utils/index.ts","webpack://_N_E/<anon>"],"sourcesContent":["'use client';\nimport React from 'react';\nimport {\n Dialog,\n DialogHeader,\n DialogBody,\n List,\n ListItem,\n Typography\n} from '@material-tailwind/react';\nimport { useRouter } from 'next/navigation';\nimport { useAppContext } from '@/contexts/AppContextProvider';\n\ninterface CourseSelectionDialogProps {\n open: boolean;\n handleClose: () => void;\n}\n\nconst CourseSelectionDialog: React.FC<CourseSelectionDialogProps> = ({\n open,\n handleClose\n}) => {\n const route = useRouter();\n const { addUpdateCourseDispatch } = useAppContext();\n\n const handleCourseSelection = (course: string) => {\n if (addUpdateCourseDispatch) {\n addUpdateCourseDispatch(course);\n }\n route.push(`/register?bookingPage=${course}`);\n handleClose();\n };\n\n return (\n <Dialog open={open} size=\"xs\" handler={handleClose} className=\"dialog-wrap\">\n <DialogHeader className=\"flex justify-between items-center dialog-header\">\n <div className=\"flex items-center\">\n <h5>Select Your Preferred Choice </h5>\n </div>\n <div className=\"close-icon\" onClick={handleClose}>\n X\n </div>\n </DialogHeader>\n <DialogBody className=\"dialog-body p-5 text-center min-h-[180px] sm:min-h-[220px] flex items-center\">\n <div className=\"w-full checkbox-list\">\n <List>\n {/* <ListItem className=\"checkbox-list-item p-0 rounded-none hover:bg-transparent focus:bg-transparent active:bg-transparent\">\n <label\n htmlFor=\"list-one\"\n className=\"flex w-full cursor-pointer items-center px-0 py-3\"\n onClick={() => handleCourseSelection('kathak-for-kids')}\n >\n <Typography color=\"blue-gray\" className=\"font-medium\">\n Kathak- For Kids (Age: 6-12)\n </Typography>\n </label>\n </ListItem> */}\n <ListItem className=\"checkbox-list-item p-0 rounded-none hover:bg-transparent focus:bg-transparent active:bg-transparent\">\n <label\n htmlFor=\"list-two\"\n className=\"flex w-full cursor-pointer items-center px-0 py-3\"\n onClick={() => handleCourseSelection('vocals-live-course')}\n >\n <Typography color=\"blue-gray\" className=\"font-medium\">\n Vocals- For Adults (Age: 18 - 60+)\n </Typography>\n </label>\n </ListItem>\n <ListItem className=\"checkbox-list-item p-0 rounded-none hover:bg-transparent focus:bg-transparent active:bg-transparent\">\n <label\n htmlFor=\"list-three\"\n className=\"flex w-full cursor-pointer items-center px-0 py-3\"\n onClick={() => handleCourseSelection('kathak-for-adults')}\n >\n <Typography color=\"blue-gray\" className=\"font-medium\">\n Kathak- For Adults (Age: 18 - 60+)\n </Typography>\n </label>\n </ListItem>\n <ListItem className=\"checkbox-list-item p-0 rounded-none hover:bg-transparent focus:bg-transparent active:bg-transparent\">\n <label\n htmlFor=\"list-three\"\n className=\"flex w-full cursor-pointer items-center px-0 py-3\"\n onClick={() => handleCourseSelection('kathak-for-kids')}\n >\n <Typography color=\"blue-gray\" className=\"font-medium\">\n Kathak- For Kids (Age: 6 - 12)\n </Typography>\n </label>\n </ListItem>\n </List>\n </div>\n </DialogBody>\n </Dialog>\n );\n};\n\nexport default CourseSelectionDialog;\n","export const WhatsAppUrl = 'https://wa.me';\nexport const WhatsAppNo = 9820130711;\nexport const WhataAppMessage = `Hi,\n\nI came across an amazing platform that offers live online classes for Indian Arts.\n\nYou can learn Kathak or Hindustani Vocals. Courses are especially designed for Adults and Kids.\n\nSelect a course and Book a Trial class using this link: https://www.artfills.com/\n\nBest regards`;\n\nexport const WhatsAppRescheduleMessage = `Hi, I missed my class and would like to reschedule it to another time. Could you please share the available slots for rescheduling? `;\n\nexport const discountType = 'percentage';\n\n// export const API_URL = 'http://localhost:3001/api';\n// export const GRAPHQL_API_URL = 'http://localhost:3001/graphql/api';\n\nexport const API_URL = 'https://api.artfills.com/api';\n\nexport const GRAPHQL_API_URL = 'https://api.artfills.com/graphql/api';\n\nexport const COURSES = {\n 'kathak-for-adults': 'Kathak Adults',\n 'kathak-for-kids': 'Kathak kids',\n 'vocals-live-course': 'Vocals Adults',\n 'vocals-for-kids': 'Vocal Kids'\n};\n\nexport const RAZORPAY_KEY_ID = 'rzp_live_e9mftm02BJjbOC';\n\nexport const COURSE_ARTFORMS = {\n 'kathak-for-adults': 'Kathak Adults',\n 'kathak-for-kids': 'Kathak Kids',\n 'vocals-live-course': 'Vocals Adults',\n 'vocals-for-kids': 'Vocals Kids'\n};\n\nexport const TEST_OTP = '6BJshC';\n\nexport const diwali30 = 'kD8YwN';\n\nexport const von25 = '7oUZYR';\n\nexport const BAD_REQUEST_EXCEPTION = 'Bad Request Exception';\n\nexport const Thank_you_route = '/booking-thank-you';\nexport const LOGIN_URL = '/login';\nexport const AUTH_ERROR_MESSAGE =\n 'Your session has been expired! please login again';\n\nexport const NEW_ADMISSION_TITLE = 'New Admission';\nexport const NEW_ADMISSION_INSTALLMENT_TITLE = 'New Admission – Installment';\n","import { getCookieByName, isCookieExists, setCookies } from '@/utils/cookies';\nimport { useState, useMemo } from 'react';\n\nconst lookupCountryByDeviceIP = async () => {\n const URL = `https://ipapi.co/json/?key=tCQ6z1qXp03LQHPe3GQjef54NIXj8wssHgGo6MgouD8nNCxVax`;\n const res = await fetch(URL);\n const ipDetail = await res.json();\n return ipDetail;\n};\n\nconst useConutryCode = () => {\n const [countryCode, setCountryCode] = useState('IN');\n const [countryName, setCountryName] = useState('india');\n const [region, setRegion] = useState('');\n const [callingCode, setCallingCode] = useState('+91');\n const [currency, setCurrency] = useState('INR');\n const [timezone, setTimezone] = useState('Asia/Kolkata');\n\n useMemo(async () => {\n let countryShortName = '';\n let countryCallingCode = '';\n let countryCurrency = '';\n let currentRegion = '';\n let currentTimezone = '';\n let fetchedCountryName = '';\n if (isCookieExists('country_code')) {\n countryShortName = getCookieByName('country_code') ?? '';\n countryCallingCode = getCookieByName('country_calling_code') ?? '';\n countryCurrency = getCookieByName('currency') ?? '';\n currentRegion = getCookieByName('region') ?? '';\n currentTimezone = getCookieByName('timezone') ?? '';\n fetchedCountryName = getCookieByName('country_name') ?? '';\n } else {\n const ipDetail = await lookupCountryByDeviceIP();\n countryShortName = ipDetail['country_code'];\n countryCallingCode = ipDetail['country_calling_code'];\n countryCurrency = ipDetail['currency'];\n currentRegion = ipDetail['region'];\n currentTimezone = ipDetail['timezone'];\n fetchedCountryName = ipDetail['country_name'];\n const expires = new Date();\n expires.setMinutes(expires.getMinutes() + 30);\n setCookies('country_code', countryShortName, expires);\n setCookies('country_calling_code', countryCallingCode, expires);\n setCookies('currency', countryCurrency, expires);\n setCookies('region', currentRegion, expires);\n setCookies('timezone', currentTimezone, expires);\n setCookies('country_name', fetchedCountryName, expires);\n }\n setCountryCode(countryShortName);\n setCallingCode(countryCallingCode);\n setCurrency(countryCurrency === 'INR' ? 'INR' : 'USD');\n setTimezone(currentTimezone);\n setRegion(currentRegion);\n setCountryName(fetchedCountryName);\n }, []);\n\n return { countryCode, callingCode, currency, region, countryName, timezone };\n};\n\nexport default useConutryCode;\n","import { getAllCookies, setCookies } from '@/utils/cookies';\nimport { useSearchParams } from 'next/navigation';\n\nexport type UtmType = {\n Attribute: string | undefined;\n Value: string | undefined;\n};\n\nconst useUTMDetail = () => {\n const params = useSearchParams();\n\n const utmDetail: UtmType[] = [];\n const utmDetailKey = [\n 'utm_source',\n 'utm_medium',\n 'utm_term',\n 'utm_content',\n 'utm_campaign',\n 'gclid',\n 'Organic_Source'\n ];\n const cookies = getAllCookies();\n utmDetailKey.forEach((utmKey) => {\n const value = params.get(utmKey) ?? cookies[utmKey];\n const decodedValue = value ? decodeURIComponent(value) : undefined;\n if (decodedValue) {\n setCookies(utmKey, decodedValue);\n utmDetail.push({\n Attribute: `mx_${utmKey}`,\n Value: decodedValue\n });\n }\n });\n return utmDetail;\n};\n\nexport default useUTMDetail;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n'use client';\nimport useConutryCode from '@/hooks/useConutryCode';\nimport useUTMDetail, { UtmType } from '@/hooks/useUTMDetail';\nimport { AppDispatch, AppState } from '@/store/configureStore';\nimport { connect } from 'react-redux';\nimport {\n addUser,\n updateUser,\n User,\n UserDetail,\n userType as userTypeAction\n} from '@/store/User/reducer';\nimport { Cart, addUpdateCart, CartDetail } from '@/store/Cart/reducer';\nimport { addCouponCode, updateCouponCode } from '@/store/Order/reducer';\nimport React, { createContext, useContext, useState } from 'react';\nimport { addUpdateCourse } from '@/store/App/reducer';\nimport { API_URL } from '@/constants';\nimport { CouponCode } from './ThankYouContextProvider';\n\ntype AppContextValue = {\n countryCode: string;\n countryName: string;\n callingCode: string;\n currency: string;\n region: string;\n timezone: string;\n utmDetail: UtmType[];\n addUpdateCourseDispatch?: (course: string, courseLevelId?: number) => void;\n addUserDispatch?: (user: User) => void;\n updateUserDispatch?: (user: User | null) => void;\n addUpdateCartDispatch?: (cart: Cart) => void;\n addCouponCodeDispatch?: (couponCode: string) => void;\n updateCouponCodeDispatch?: (couponCode: string | null) => void;\n userDetail: UserDetail;\n cartDetail: CartDetail;\n userType: string;\n course: string | null;\n courseLevelId?: number;\n couponCode?: CouponCode | undefined;\n getCouponCode?: (courseName: string) => void;\n userTypeDispatch?: (userType: string) => void;\n};\n\ntype AppContextProviderProps = {\n children?: React.ReactNode;\n rest?: any;\n};\n\nconst initialContextValue: AppContextValue = {\n countryCode: 'IN',\n countryName: 'india',\n callingCode: '+91',\n currency: 'INR',\n region: '',\n timezone: '',\n utmDetail: [],\n userDetail: null,\n cartDetail: null,\n course: null,\n userType: ''\n};\n\nconst mapStateToProps = (state: AppState) => {\n return state; // Access the ToDo property correctly\n};\n\nconst mapStateToDispatch = (dispatch: AppDispatch) => {\n return {\n addUpdateCourseDispatch: (course: string, courseLevelId = 0) =>\n dispatch(addUpdateCourse({ course, courseLevelId })),\n addUserDispatch: (user: User) => dispatch(addUser(user)),\n updateUserDispatch: (user: User | null) => dispatch(updateUser(user)),\n addUpdateCartDispatch: (cart: Cart) => dispatch(addUpdateCart(cart)),\n addCouponCodeDispatch: (couponCode: string) =>\n dispatch(addCouponCode({ couponCode })),\n updateCouponCodeDispatch: (couponCode: string | null) =>\n dispatch(updateCouponCode({ couponCode })),\n userTypeDispatch: (usercheck: string) => dispatch(userTypeAction(usercheck))\n };\n};\n\nexport const AppContext = createContext<AppContextValue>(initialContextValue);\n\nconst AppContextProvider: React.FC<AppContextProviderProps> = ({\n children,\n ...rest\n}: AppContextProviderProps) => {\n const { countryCode, countryName, callingCode, currency, region, timezone } =\n useConutryCode();\n const [couponCode, setCouponCodes] = useState<CouponCode | undefined>(\n undefined\n );\n\n const utmDetail = useUTMDetail();\n\n const {\n addUserDispatch,\n updateUserDispatch,\n addUpdateCartDispatch,\n addUpdateCourseDispatch,\n addCouponCodeDispatch,\n updateCouponCodeDispatch,\n userTypeDispatch,\n user,\n cart,\n app\n } = rest as any;\n\n const { userDetail, userType } = user;\n const { cartDetail } = cart;\n const { course, courseLevelId } = app;\n\n const getCouponCode = (courseName: string) => {\n if (userDetail && userDetail.id) {\n setCouponCodes(undefined);\n const body = {\n courseName: courseName,\n userId: userDetail && userDetail.id\n };\n fetch(`${API_URL}/trial-class/getCourseCouponByUserId`, {\n method: 'POST',\n body: JSON.stringify(body),\n headers: { 'Content-Type': 'application/json' }\n })\n .then(async (res) => {\n const result = await res.json();\n const couponCodesData = {\n couponCodeGrL1: result.couponCodeGrL1,\n couponCodeGrL2: result.couponCodeGrL2,\n couponCodeGrL3: result.couponCodeGrL3,\n couponCodeSoL1: result.couponCodeSoL1,\n couponCodeSoL2: result.couponCodeSoL2,\n couponCodeSoL3: result.couponCodeSoL3\n };\n if (result) {\n setCouponCodes(couponCodesData);\n } else {\n setCouponCodes(undefined);\n }\n })\n .catch(() => {\n setCouponCodes(undefined);\n });\n } else {\n setCouponCodes(undefined);\n }\n };\n\n return (\n <AppContext.Provider\n value={{\n countryCode,\n countryName,\n callingCode,\n currency,\n region,\n timezone,\n utmDetail,\n addUserDispatch,\n updateUserDispatch,\n addUpdateCartDispatch,\n addUpdateCourseDispatch,\n addCouponCodeDispatch,\n updateCouponCodeDispatch,\n userDetail,\n cartDetail,\n userType,\n course,\n courseLevelId,\n couponCode,\n getCouponCode,\n userTypeDispatch\n }}\n >\n {children}\n </AppContext.Provider>\n );\n};\n\nexport default connect(mapStateToProps, mapStateToDispatch)(AppContextProvider);\n\nexport const useAppContext = () => {\n const app = useContext(AppContext);\n return app;\n};\n","import { createSlice, PayloadAction } from '@reduxjs/toolkit';\n\nexport type AppState = {\n course: string | undefined;\n courseLevelId?: number;\n};\n\nexport const initialAppState: AppState = {\n course: undefined\n};\n\nconst slice = createSlice({\n name: 'App',\n initialState: initialAppState,\n reducers: {\n addUpdateCourse: (state: AppState, action: PayloadAction<AppState>) => {\n state.course = action.payload.course;\n state.courseLevelId = action.payload.courseLevelId;\n }\n }\n});\n\nconst { reducer } = slice;\n\nexport const { addUpdateCourse } = slice.actions;\n\nexport default reducer;\n","import { createSlice, PayloadAction } from '@reduxjs/toolkit';\n\nexport type Cart = {\n amount: number;\n level: string;\n course: string;\n category: string;\n};\n\nexport type CartDetail = Cart | null;\n\nexport type CartState = {\n cartDetail: CartDetail;\n};\n\nexport const initialState: CartState = {\n cartDetail: null\n};\n\nconst slice = createSlice({\n name: 'cart',\n initialState: initialState,\n reducers: {\n addUpdateCart: (state: CartState, action: PayloadAction<Cart>) => {\n state.cartDetail = action.payload;\n }\n }\n});\n\nconst { reducer } = slice;\n\nexport const { addUpdateCart } = slice.actions;\n\nexport default reducer;\n","import { createSlice, PayloadAction } from '@reduxjs/toolkit';\n\nexport type Order = {\n amount: number;\n currency: string;\n orderId: string;\n email: string;\n name: string;\n phone: string;\n course: string;\n country: string;\n};\n\nexport type OrderDetail = Order | null;\n\nexport type OrderState = {\n orderDetail: OrderDetail;\n couponCode: string | null;\n};\n\nexport const initialToDoState: OrderState = {\n orderDetail: null,\n couponCode: null\n};\n\nconst slice = createSlice({\n name: 'Order',\n initialState: initialToDoState,\n reducers: {\n addOrder: (state: OrderState, action: PayloadAction<Order>) => {\n state.orderDetail = action.payload;\n },\n updateOrder: (state: OrderState, action: PayloadAction<Order>) => {\n state.orderDetail = action.payload;\n },\n addCouponCode: (\n state: OrderState,\n action: PayloadAction<{ couponCode: string }>\n ) => {\n state.couponCode = action.payload.couponCode;\n },\n updateCouponCode: (\n state: OrderState,\n action: PayloadAction<{ couponCode: string | null }>\n ) => {\n state.couponCode = action.payload.couponCode;\n }\n }\n});\n\nconst { reducer } = slice;\n\nexport const { addOrder, updateOrder, addCouponCode, updateCouponCode } =\n slice.actions;\n\nexport default reducer;\n","import { createSlice, PayloadAction } from '@reduxjs/toolkit';\n\nexport type User = {\n id: string;\n name: string;\n email: string;\n phone: string;\n course: string;\n callingCode: string;\n parentName: string;\n};\n\nexport type UserDetail = User | null;\n\nexport type UserState = {\n userDetail: UserDetail;\n userType: string;\n};\n\nexport const initialToDoState: UserState = {\n userDetail: null,\n userType: ''\n};\n\nconst slice = createSlice({\n name: 'User',\n initialState: initialToDoState,\n reducers: {\n addUser: (state: UserState, action: PayloadAction<User>) => {\n state.userDetail = action.payload;\n },\n updateUser: (state: UserState, action: PayloadAction<UserDetail>) => {\n state.userDetail = action.payload;\n },\n userType: (state: UserState, action: PayloadAction<string>) => {\n console.log(action.payload, 'action.payload');\n state.userType = action.payload;\n }\n }\n});\n\nconst { reducer } = slice;\n\nexport const { addUser, updateUser, userType } = slice.actions;\n\nexport default reducer;\n","import * as cookies from 'cookies-next';\n\nexport const getCookieByName = (name: string) => {\n const cookieValue = cookies.getCookie(name);\n return cookieValue;\n};\n\nexport const deleteCookieByName = (name: string) => {\n const cookieValue = cookies.deleteCookie(name);\n return cookieValue;\n};\n\nexport const getAllCookies = () => {\n const allCookies = cookies.getCookies();\n return allCookies;\n};\n\nexport const isCookieExists = (name: string) => {\n return cookies.hasCookie(name);\n};\n\nexport const setCookies = (\n name: string,\n value: string,\n expires?: Date,\n path: string = '/'\n) => {\n const expiresDateTime = new Date();\n expiresDateTime.setDate(expiresDateTime.getDate() + 1);\n cookies.setCookie(name, value, { expires: expires ?? expiresDateTime, path });\n};\n\n// Setcookie for fix issue of www and without www cookie map\n\n/* export const setCookies = (\n name: string,\n value: string,\n expires?: Date,\n path: string = '/'\n) => {\n const expiresDateTime = new Date();\n expiresDateTime.setDate(expiresDateTime.getDate() + 1);\n\n cookies.setCookie(name, value, {\n expires: expires ?? expiresDateTime,\n path,\n ...(process.env.NEXT_PUBLIC_ENV !== 'dev' && {\n domain: process.env.NEXT_PUBLIC_COOKIE_URL,\n secure: true\n })\n });\n}; */\n\nexport default cookies;\n","import voucherCodes from 'voucher-code-generator';\nimport moment from 'moment';\nimport { getCookieByName } from './cookies';\n/* eslint-disable @typescript-eslint/no-explicit-any */\nexport const createCustomError = (error: any) => {\n let message;\n if (error) {\n const graphQLErrors =\n error.graphQLErrors.length > 0 ? error.graphQLErrors[0] : null;\n message =\n graphQLErrors?.extensions?.response?.message.length > 0\n ? graphQLErrors?.extensions?.response?.message[0]\n : null;\n }\n return message;\n};\n\nexport const generateCouponCode = (length: number = 4, count: number = 6) => {\n const couponCodes = voucherCodes.generate({\n length,\n count,\n charset: voucherCodes.charset('alphabetic')\n });\n return couponCodes;\n};\n\nexport const calculatePercentage = (amount: number, percentage: number) => {\n return Math.round((amount * percentage) / 100);\n};\n\nexport const calculateMeetingTime = (\n date: string,\n additionalDays: number = 3\n) => {\n const newDate = new Date(date);\n newDate.setDate(newDate.getDate() + additionalDays);\n return newDate;\n};\n\nexport const formatDate = (date: Date, format: string) => {\n return moment(date).format(format);\n};\n\nexport const stringToDate = (date: string) => {\n const newDate = new Date(date);\n return newDate;\n};\n\nexport const isLoggedIn = () => {\n const token = getCookieByName('token');\n return !!token;\n};\n"],"names":["__webpack_exports__","Z","open","handleClose","param","route","useRouter","addUpdateCourseDispatch","useAppContext","handleCourseSelection","course","push","concat","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","Dialog","size","handler","className","DialogHeader","jsx","div","h5","onClick","DialogBody","List","ListItem","label","htmlFor","Typography","color","WhatsAppUrl","WhatsAppNo","WhataAppMessage","WhatsAppRescheduleMessage","discountType","API_URL","GRAPHQL_API_URL","COURSES","RAZORPAY_KEY_ID","COURSE_ARTFORMS","TEST_OTP","diwali30","von25","BAD_REQUEST_EXCEPTION","Thank_you_route","LOGIN_URL","AUTH_ERROR_MESSAGE","NEW_ADMISSION_TITLE","NEW_ADMISSION_INSTALLMENT_TITLE","lookupCountryByDeviceIP","res","fetch","json","hooks_useConutryCode","countryCode","setCountryCode","useState","countryName","setCountryName","region","setRegion","callingCode","setCallingCode","currency","setCurrency","timezone","setTimezone","useMemo","countryShortName","countryCallingCode","countryCurrency","currentRegion","currentTimezone","fetchedCountryName","isCookieExists","getCookieByName","ipDetail","expires","Date","setMinutes","getMinutes","setCookies","hooks_useUTMDetail","params","useSearchParams","utmDetail","cookies","getAllCookies","utmDetailKey","forEach","value","get","utmKey","decodedValue","decodeURIComponent","undefined","Attribute","Value","AppContext","createContext","userDetail","cartDetail","userType","contexts_AppContextProvider","connect","state","courseLevelId","dispatch","addUpdateCourse","addUserDispatch","addUser","user","updateUserDispatch","updateUser","addUpdateCartDispatch","addUpdateCart","cart","addCouponCodeDispatch","addCouponCode","couponCode","updateCouponCodeDispatch","updateCouponCode","userTypeDispatch","userTypeAction","usercheck","children","rest","useConutryCode","setCouponCodes","useUTMDetail","app","jsx_runtime","Provider","getCouponCode","id","body","courseName","userId","method","JSON","stringify","headers","then","result","couponCodesData","couponCodeGrL1","couponCodeGrL2","couponCodeGrL3","couponCodeSoL1","couponCodeSoL2","couponCodeSoL3","catch","useContext","slice","createSlice","name","initialState","reducers","action","payload","reducer","actions","ZP","orderDetail","addOrder","updateOrder","console","log","deleteCookieByName","path","expiresDateTime","setDate","getDate","createCustomError","message","error","graphQLErrors","length","extensions","response","generateCouponCode","count","voucherCodes","charset","calculatePercentage","amount","percentage","Math","round","calculateMeetingTime","date","additionalDays","newDate","formatDate","format","moment","stringToDate","isLoggedIn"],"sourceRoot":""}