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mCACJ/L,KAAM,WACR,EACAoQ,WAAY,CACVrE,GAAI,mCACJ/L,KAAM,WACR,EACAqQ,aAAc,CACZtE,GAAI,mCACJ/L,KAAM,aACR,EACAsQ,oBAAqB,CACnBvE,GAAI,uCACJ/L,KAAM,mBACR,CACF,EAuBaD,EAAe,CAC1BgM,GAAI,mCACJ/L,KAAM,OACNuQ,aAbiC,CACjCxE,GAAI,mCACJ/L,KAAM,cACNwQ,YAAa,CACXzE,GAAI,mCACJ/L,KAAM,YACR,CACF,EAQEmH,QAAS,CACP4E,GAAI,mCACJ/L,KAAM,SACR,EAEAoH,eAAgB,CACd2E,GAAI,mCACJ/L,KAAM,eACR,CACF,EAGayQ,EAAgB,CAC3B1E,GAAI,mCACJ/L,KAAM,QACN0Q,KAAM3Q,CACR,EAGa4Q,EAAkB,CAC7B5E,GAAI,mCACJ/L,KAAM,cACN4Q,0BA/C6C,CAC7C7E,GAAI,mCACJ/L,KAAM,0BACN6Q,yBAA0B,CACxB9E,GAAI,mCACJ/L,KAAM,wBACR,CACF,EAyCE8Q,MAAOL,EACP7I,eAAgB,CACdmE,GAAI,mCACJ/L,KAAM,eACR,EACA+Q,wBAAyBf,CAC3B","sources":["webpack://_N_E/./src/app/utils/Common.tsx","webpack://_N_E/./src/app/utils/DayJS.tsx","webpack://_N_E/./src/app/utils/LanguageContext.tsx","webpack://_N_E/./src/app/utils/Metadata.tsx","webpack://_N_E/./src/app/utils/MyContext.tsx","webpack://_N_E/./src/app/utils/class/cms/meeting.tsx","webpack://_N_E/./src/app/utils/class/cms/entries.tsx","webpack://_N_E/./src/app/utils/class/cms/race.tsx","webpack://_N_E/./src/app/utils/class/cms/index.tsx","webpack://_N_E/./src/app/utils/class/common/base.ts","webpack://_N_E/./src/app/utils/constant/menuTabSet.ts","webpack://_N_E/./src/app/utils/constant/pageSet.ts","webpack://_N_E/./src/app/utils/constant/statusSet.ts","webpack://_N_E/./src/app/utils/constant/template.ts"],"sourcesContent":["import { createTheme } from \"@mui/material\";\nimport { ReadonlyURLSearchParams } from \"next/navigation\";\nimport { MenuTab, RaceNo } from \"./class/common/base\";\nimport { compareDate, dateFormat, formattedDate, toDate } from \"./DayJS\";\nimport { Meeting } from \"./class/cms\";\nimport { fakeLoadingPages, menuTabSet } from \"./constant/menuTabSet\";\nimport { useRef, useEffect } from 'react';\nimport { meetingStatus, pmPoolStatus, raceResultStatus, raceStatus } from \"./constant/statusSet\";\nimport { getMetaImage, getMetaKeywords, getMetaTitle } from \"./Metadata\";\nimport { includes, orderBy } from \"lodash\";\nimport { raceTemplate } from \"./constant/template\";\nimport { LANGTYPE_EN, LANGCODE_EN, LANGCODE_CT, LangCode } from \"./LanguageContext\";\n\ndeclare module \"@mui/material/styles\" {\n interface Theme {\n extraPalette: {\n primary: {\n grey: string;\n darkGrey: string;\n };\n text: {\n primary: string;\n }\n };\n }\n // allow configuration using `createTheme`\n interface ThemeOptions {\n extraPalette?: {\n primary?: {\n grey?: string;\n darkGrey?: string;\n };\n text?: {\n primary?: string;\n }\n };\n }\n}\n\n// Remember to sync with globals.scss & variables.module.scss\nexport const theme = createTheme({\n components: {\n // Name of the component\n MuiButtonBase: {\n defaultProps: {\n // The props to change the default for.\n disableRipple: true, // No more ripple, on the whole application 💣!\n },\n },\n MuiLink: {\n defaultProps: {\n underline: \"hover\",\n color: \"#122C68\"\n }\n }\n },\n typography: {\n fontFamily: \"inherit\",\n },\n breakpoints: {\n values: {\n xs: 0,\n sm: 600,\n md: 900,\n lg: 1024,\n xl: 1536, \n },\n },\n palette: {\n primary: {\n main: \"#173E96\",\n light: \"#E2EDF6\",\n dark: \"#132B68\",\n },\n grey: {\n 100: \"#F4F4F4\",\n 300: \"#E1E1E1\",\n },\n text: {\n primary: \"#000000\",\n secondary: \"#333333\",\n },\n divider: \"#B4B4B4\",\n },\n extraPalette: {\n primary: {\n grey: \"#909FBD\",\n darkGrey: \"#6176A0\",\n },\n text: {\n primary: \"#122C68\",\n }\n },\n});\n\nexport const getSearchParams = (searchParams: ReadonlyURLSearchParams | URLSearchParams) => {\n return Object.fromEntries(searchParams.entries())\n}\n\nconst sanitizeInput = (input?: string) => {\n // Basic sanitation to remove potentially harmful characters\n return input?.replace(/[<>%]/g, ''); // Example: remove <, >, and %\n};\n\n/**\n * Need to set isExternal = true when not navigating within /overseas\n * Only input langCodeToChange when switching language\n * \n * @param newPathname \n * @param queries \n * @param keepQuery \n * @param isExternal \n * @param langCodeToChange \n * @returns \n */\nexport const generateUrl = (newPathname?: string, queries?: { [key: string]: string | undefined }, keepQuery?: boolean, isExternal: boolean = false, langCodeToChange?: LangCode) => {\n if (newPathname) {\n newPathname = sanitizeInput(newPathname); // Sanitize the pathname\n }\n\n const path = newPathname?.split(\"?\")?.[0];\n const searchPart = newPathname?.split(\"?\")?.[1];\n const params = new URLSearchParams(keepQuery ? window.location.search : searchPart)\n // sanitation & set param\n const paramsObj = {...Object.fromEntries(params.entries()), ...queries} // queries value will override current params if it is duplicated\n for (const key in paramsObj) {\n if (paramsObj[key]) {\n params.set(key, sanitizeInput(paramsObj[key]?.toString()) || '');\n } else {\n params.delete(key);\n }\n }\n if (isExternal) {\n return decodeURIComponent(`${path || window.location.pathname}${params.toString() ? \"?\" + params.toString() : ''}`)\n }\n const langCode = langCodeToChange || window.location.pathname?.split(\"/\")?.[1] || \"en-us\"\n return decodeURIComponent(`${path ? \"/\" + langCode + \"/overseas\" + path : window.location.pathname}${params.toString() ? \"?\" + params.toString() : ''}`)\n}\n\nexport const setRouting = (newPathname?: string, queries?: { [key: string]: string | undefined }, curState?: any) => {\n const curUrl = window.location.href\n const host = window.location.host\n const newUrl = generateUrl(newPathname, queries, true);\n console.log('route generate', newUrl, queries)\n if (curUrl.slice(curUrl.indexOf(host) + host.length) != newUrl) {\n console.log('route update', curUrl, newUrl)\n window.history.pushState({ prePath: curUrl }, '', newUrl);\n }\n}\n\nexport const updateMetaTag = (lang: string, page: string) => {\n console.log('updateMetaTag', lang, page);\n document.title = getMetaTitle(lang, page);\n document.querySelectorAll('meta[name=\"description\"], meta[name=\"keywords\"]')?.forEach(e => e?.setAttribute(\"content\", getMetaKeywords(lang, page)));\n \n // update og tag\n document.querySelectorAll('meta[property=\"og:title\"], meta[name=\"twitter:title\"]')?.forEach(e => e?.setAttribute(\"content\", getMetaTitle(lang, page)));\n document.querySelectorAll('meta[property=\"og:description\"], meta[name=\"twitter:description\"]')?.forEach(e => e?.setAttribute(\"content\", getMetaKeywords(lang, page)));\n document.querySelectorAll('meta[property=\"og:image\"], meta[name=\"twitter:image\"]')?.forEach(e => e?.setAttribute(\"content\", getMetaImage(lang, page)));\n}\n\nexport const switchLanguage = (lang: LangCode) => {\n const currentPath = window.location.pathname;\n const pathParts = currentPath.split(\"/\");\n if ([LANGCODE_EN, LANGCODE_CT].includes(pathParts[1])) {\n pathParts[1] = lang;\n const newPath = pathParts.splice(0, 4).join(\"/\");\n window.location.href = generateUrl(newPath, {'b_cid': ''}, true, true, lang);\n }\n};\n\nexport const openTarget = (target?: string | null) => {\n return target ? ([\"01-NewPage\", \"_blank\"].includes(target || '') ? \"_blank\" : \"_self\") : undefined;\n};\n\nexport const openNewWindow = (newwindow: String | null) => {\n return newwindow === \"1\" ? \"_blank\" : \"_self\";\n};\n\nexport const redirectToLink = (\n link?: string,\n target?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\" | \"_unfencedTop\",\n features?: string\n) => {\n if (!link) return;\n return window.open(link, target || \"_blank\", features);\n};\n\nexport const defaultValue = (\n src: T | undefined | null,\n defaultValue: T\n) => {\n return src ? src : defaultValue;\n};\n\nexport const isUrlExisted = async (url: string) => {\n let controller = new AbortController();\n const timeout = setTimeout(() => controller.abort(), window.globalConfig?.OTHERS?.CHECKEXIST_TIMEOUT || 10000);\n return !url ? false : await fetch(url, { method: \"HEAD\", cache: \"no-store\", signal: controller.signal, redirect: 'manual' })\n .then((res) => {return res.url.replace(/https:|http:/g,'') == url.replace(/https:|http:/g,'') && [200, 302].includes(res.status)})\n .catch((err) => {\n console.log('err----', err)\n return false\n });\n};\n\nexport const paddingNum = (value: Number | number | string, minimumIntegerDigits: number = 2) => {\n switch (typeof value) {\n case 'object':\n case 'number':\n return value.toLocaleString('en-us', { minimumIntegerDigits: minimumIntegerDigits, useGrouping: false })\n case 'string':\n if (!isNaN(Number(value)))\n return Number(value).toLocaleString('en-us', { minimumIntegerDigits: minimumIntegerDigits, useGrouping: false })\n }\n return 0\n}\n\nexport const getSilkImagePath = (meetingdate: string, meetingVenueCode: string, raceNo: Number | number | string, horseId: number | string) => {\n const folder = `${meetingdate}_${meetingVenueCode}_r${paddingNum(raceNo)}`\n return `${folder}/${folder}_h${paddingNum(horseId)}`\n}\n\nexport const generateSilkImagePath = (path: string, langCode?: string) => {\n let url = `${getCmsDomain()}/-/media/Sites/Common/SimulcastRaceColor/${path}.gif`;\n return generateUrl(url, {\n 'sc_lang': langCode || '',\n 'ver': new Date().getTime().toString(),\n }, false, true);\n};\n\nexport const generateFormGuidePdfPath = (langType: string, season: string, meetingdate: string, meetingVenueCode?: string, raceNo?: number | string) => {\n if (!meetingdate) return;\n const fileName = `OS${langType[0]?.toUpperCase() || 'E'}${meetingdate.split('T')[0]}_starter` // chi: 'OSC' / eng: 'OSE'\n const suffix = meetingVenueCode ? `_${meetingVenueCode}${raceNo ? `_r${raceNo}` : '_all'}` : `_all` // 3 types: all races ('_all') / individual meeting ('_{venueCode}_all') / individual race ('_{venueCode}_r{raceNo}')\n const urlPath = '{sitecoreDomain}/-/media/Sites/JCRW/FormGuide/Simulcast/{season}/{meetingdate}/{formGuideFileName}.pdf'\n const url = urlPath\n .replace('{sitecoreDomain}', getCmsDomain())\n .replace('{season}', season)\n .replace('{meetingdate}', meetingdate)\n .replace('{formGuideFileName}', fileName + suffix);\n return url\n};\n\nexport const formattedNumber = (value: number) => {\n const newFormattedNumber = new Intl.NumberFormat(\"en-us\", {\n style: \"decimal\",\n currency: \"USD\",\n }).format(value);\n return newFormattedNumber;\n};\n\nexport const arrayToObjectByDisplayName = (array: T[]) => {\n return Array.isArray(array) && array.reduce((acc: any, value: T) => ({\n ...acc,\n [value?.displayName]: value\n }), {}) || {};\n}\n\nexport function redirectPage(e: React.MouseEvent, action: string, lang: string) {\n e.preventDefault();\n let url = \"\";\n if (typeof window !== \"undefined\" && window.top !== null) {\n let returnURL = window.top.location.href;\n if (typeof returnURL !== \"undefined\") {\n returnURL = encodeURIComponent(returnURL);\n if(lang === LANGTYPE_EN){\n if (action == \"login\") {\n url = window.globalConfig?.LINKED_PAGES?.LOGINPAGE + \"Lang=E&ReturnUrl=\" + returnURL;\n window.top.location.href = url;\n } else if (action == \"logout\") {\n alert(\"If you are using HKJC Web Services in other browser windows, they will also be logged out. Please close those browser windows if needed.\");\n url = window.globalConfig?.LINKED_PAGES?.LOGOUTPAGE + \"&Lang=E&ReturnUrl=\" + returnURL;\n window.top.location.href = url;\n } else if (action == \"register\") {\n url = window.globalConfig?.LINKED_PAGES?.REGISTERPAGE + \"&Lang=E\";\n window.top.location.href = url;\n } else if (action == \"preference\") {\n url = window.globalConfig?.LINKED_PAGES?.PREFERENCEPAGE + \"&Lang=E&ReturnUrl=\" + returnURL;\n window.top.location.href = url;\n } else if (action == \"help\") {\n window.open(window.globalConfig?.LINKED_PAGES?.FAQPAGEENG);\n }\n } else {\n if (action == \"login\") {\n url = window.globalConfig?.LINKED_PAGES?.LOGINPAGE + \"Lang=C&ReturnUrl=\" + returnURL;\n window.top.location.href = url;\n } else if (action == \"logout\") {\n alert(\"如你正在其他視窗開啟馬會網上服務,該等服務亦會同時被登出,如有需要請關閉該等視窗。\");\n url = window.globalConfig?.LINKED_PAGES?.LOGOUTPAGE + \"&Lang=C&ReturnUrl=\" + returnURL;\n window.top.location.href = url;\n } else if (action == \"register\") {\n url = window.globalConfig?.LINKED_PAGES?.REGISTERPAGE + \"&Lang=C\";\n window.top.location.href = url;\n } else if (action == \"preference\") {\n url = window.globalConfig?.LINKED_PAGES?.PREFERENCEPAGE + \"&Lang=C&ReturnUrl=\" + returnURL;\n window.top.location.href = url;\n } else if (action == \"help\") {\n window.open(window.globalConfig?.LINKED_PAGES?.FAQPAGECHI);\n }\n }\n }\n }\n}\n\nexport const generateUrl2SpecifiedMeeting = (lang: LangCode, meeting?: Meeting, raceNo?: string, component?: \"_Calendar\" | \"-Fixture_Race\", keepQuery?: boolean) => {\n if (!meeting) return;\n const raceSummaryMenuTab = new MenuTab(menuTabSet.RACE_SUMMARY);\n return generateUrl(`/${raceSummaryMenuTab.valueOf()}`, {\n 'RaceDate': formattedDate(toDate(meeting.meetingDate?.value, dateFormat.cms.datetime), 'YYYYMMDD'),\n 'Racecourse': meeting.venueCodeForSearchParam(),\n 'RaceNo': new RaceNo(raceNo).valueOf() ? new RaceNo(raceNo).toString() : '',\n 'redirect': 'Y',\n 'b_cid': component ? `SPLDSP_racing/simulcast${component}` : '',\n 'focus': 'Y'\n }, keepQuery, false, lang);\n};\n\nexport const generateHorseProfileUrl = (lang: LangCode, meetingdate: Date, meetingVenueCode: string, raceNo: string, horseId: string, horseNo: string, pageName?: string) => {\n let urlPath = '/{lang}/overseas/horseprofile?h={meetingDate}/{meetingVenueCode}/{raceNo}/{simulcastHorseId}/{horseNo}'\n if (pageName) {\n const internalAd = `SPLDSP_racing/simulcast-${pageName}_HorseProfile`;\n urlPath += '&b_cid=' + internalAd;\n }\n\n let url = urlPath\n .replace('{lang}', lang)\n .replace('{meetingDate}', formattedDate(meetingdate, \"YYYYMMDD\"))\n .replace('{meetingVenueCode}', meetingVenueCode || '')\n .replace('{raceNo}', raceNo)\n .replace('{simulcastHorseId}', horseId)\n .replace('{horseNo}', horseNo);\n return url;\n};\n\nexport const addSeasonYear = (season: string, year: number, connector?: string) => {\n const [prefix, suffix] = season.split(/[^0-9]/g).map((s) => parseInt(s) ? parseInt(s) : 0)\n return `${prefix + year}${connector || season.replaceAll(/\\d/g, \"\")}${suffix + year}`;\n}\n\nexport const getCmsDomain= () => {\n return window.globalConfig?.DATA_SOURCES?.CMS_DOMAIN;\n};\n\nexport const getJcbwDomain= () => {\n return window.globalConfig?.DATA_SOURCES?.JCBW_DOMAIN;\n};\n\nexport const useClickReflesh = (delay = 60*1000) => {\n const timer60second = useRef(null);\n const timerloading = useRef(null);\n\n const onclickDuringDelay = (loading:any, setLoading:any) => {\n if (loading) return;\n setLoading(true);\n timerloading.current = setTimeout(() => {\n setLoading(false)\n }, 300)\n }\n\n const onclickRefleshOnce = (setLoading:any, func:any) => {\n timerloading.current = null;\n clearTimeout(timerloading.current);\n setLoading(true);\n func();\n }\n\n const delay60sRefresh = (loading:any, setLoading:any, func:any) => {\n if (timer60second.current) {\n onclickDuringDelay(loading, setLoading);\n return;\n } else {\n if (timer60second.current) return;\n onclickRefleshOnce(setLoading, func)\n timer60second.current = setTimeout(() => {\n timer60second.current = null;\n }, delay);\n }\n }\n useEffect(() => {\n return () => {\n timerloading.current = null;\n timer60second.current = null;\n clearTimeout(timerloading.current);\n clearTimeout(timer60second.current);\n }\n }, [])\n return {\n delay60sRefresh\n };\n};\n\nexport const getDefaultMenuTab = (bizDate?: Date, meeting?: Meeting) => {\n let defaultMenuTab = menuTabSet.RACE_SUMMARY;\n if (!bizDate || !meeting) {\n return new MenuTab(defaultMenuTab)\n }\n\n const noRacecardMtStatus = [meetingStatus.DRAFT];\n if (compareDate(formattedDate(toDate(meeting.meetingDate?.value, dateFormat.cms.datetime), \"YYYY-MM-DD\"), formattedDate(bizDate, \"YYYY-MM-DD\"), \"after\", true)){\n if (meeting.RaceMeetingProfile?.status && !noRacecardMtStatus.includes(meeting.RaceMeetingProfile?.status?.toUpperCase())) { // biz date <= meeting date + meeting status !== (Draft) *IDA RS state doc: mt status = Defined have complete race card information\n defaultMenuTab = menuTabSet.RACE_CARD\n }\n } else if (meeting?.isPostRace(bizDate)) {\n defaultMenuTab = menuTabSet.RESULTS\n }\n\n return new MenuTab(defaultMenuTab)\n}\n\nexport const adobeData = (lang: \"en\"|\"zh-hk\" | \"zh-cn\", type: \"pageview\" | \"interaction\", data: WAData) => {\n // Refer to: https://deopconf01.corp.hkjc.com/display/RWWS/JCRW+Simulcast+Implementation+Guide\n /*\n adobeDataLayer.push({\n \"event\": \"pageview\", // options: pageview / interaction\n \"page\": {\n \"name\": \"\", //Optional\n \"id\": \"racing/simulcast\",\n \"language\": \"\",\n },\n \"user\": {\n \"cuno\": \"cf12358c-af1b-4aea-b4c0-xxxxxxxxxxxx\",\n \"customer_segment\": \"N00000NNN0061YY\",\n },\n \"content\": {\n \"horse\": \"20240911-S1-God\", // --\n \"race_no\": \"20230313-S1-3\", // \" - - e.g. 20230313-S1-3(NA if no value, e.g. 20230313-NA-NA)\"\n },\n \"interaction\": {\n \"sorting\": \"by name desc\",\n \"event_id\": \"racing/simulcast_Click_RaceSummary_HighlightComponent\",\n \"button_name\": \"racing/simulcast_Click_All\",\n \"video_filename\": \"\",\n \"content_title\": \" /