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Y,yDAEd,MACF,KAAKuK,EAAAA,GAAeU,UAClBd,EACE,8KAEF,MACF,QACEA,EAAenK,EAAYsK,GAE/B,GAEF,CAACtK,IAMH,OAJAoK,EAAAA,WAAgB,KACdC,EAAuB,OAANL,QAAM,IAANA,EAAAA,EAAU,GAAG,GAC7B,CAACA,EAAQhK,EAAWqK,KAEhBjK,EAAAA,EAAAA,KAACuI,EAAAA,GAAM,CAAC3I,UAAWkK,KAAiBD,GAAkB,C","sources":["assets/images/svg/wifi-warning.svg","modules/core/helper/ECNotificationHelper.tsx","hooks/useRootColor.ts","hooks/useThemeColor.ts","modules/core/presentation/ErrorFallback/ErrorFallback.tsx","App.tsx","constants/antd-theme.constants.ts","hocs/withAntdTheme.tsx","hooks/useQueryParams.ts","hooks/useIsThemePreview.ts","modules/core/component/ui/SCButton/SCButton.tsx"],"sourcesContent":["var _g;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nfunction SvgWifiWarning(_ref, svgRef) {\n let {\n title,\n titleId,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n fill: \"none\",\n height: 20,\n viewBox: \"0 0 20 20\",\n width: 20,\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n fill: \"#FFCC00\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"m10 3c-.55228 0-1 .44772-1 1v8c0 .112.01841.2197.05237.3202.13352.3953.50734.6798.94763.6798.449 0 .8289-.2959.9553-.7034.0023-.0076.0046-.0152.0068-.0228.0247-.087.0379-.1789.0379-.2738v-8c0-.55228-.4477-1-1-1z\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"m12 12v-.8727c.3429.1857.6651.4234.9549.7133.3635.3634.6618.8087.8694 1.2825.1662.3794-.0065.8217-.3859.988-.3794.1662-.8217-.0066-.988-.3859-.1344-.3068-.3281-.5959-.5561-.824-.0244-.0243-.0491-.0481-.0741-.0713.1155-.2528.1798-.5338.1798-.8299z\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"m13.5294 10.512c-.4539-.4539-.9741-.80102-1.5294-1.04145v-1.60047c.9473.30256 1.8384.82965 2.59 1.58127.4726.4726.8809 1.04465 1.192 1.65285.1886.3688.0426.8206-.3262 1.0092-.3688.1887-.8206.0426-1.0093-.3262-.2417-.4726-.5588-.9168-.9171-1.2752z\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"m15.6684 8.62387c-1.0517-1.0517-2.3243-1.74794-3.6684-2.0887v-1.53984c1.733.36608 3.3832 1.22204 4.7291 2.56788.4035.40359.7841.86411 1.1155 1.34419.2353.34091.1496.808-.1913 1.04328-.3409.23532-.808.14962-1.0432-.19124-.281-.40704-.6038-.79764-.9417-1.13557z\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"m3.33957 7.56321c1.32807-1.32806 2.95251-2.1791 4.66043-2.55311v1.54279c-1.31879.34687-2.56598 1.0372-3.59977 2.07098-.32098.32099-.64053.71173-.93237 1.1324-.2361.34033-.7034.42483-1.04373.18873-.34034-.2361-.42484-.7034-.18873-1.04373.34026-.49048.71581-.94969 1.10417-1.33806z\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"m5.4786 9.45135c.73345-.73344 1.59973-1.25308 2.5214-1.55892v1.60846c-.52954.23895-1.02561.57601-1.46074 1.01111-.37508.3751-.67956.7965-.91405 1.2601-.18696.3696-.63816.5177-1.00778.3308-.36962-.187-.5177-.6382-.33074-1.0078.30594-.6049.70405-1.15589 1.19191-1.64375z\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"m7.1137 11.8406c.27042-.2705.569-.4955.8863-.6753v.8347c0 .3138.07225.6107.20103.8749l-.02667.0263c-.22664.2267-.41137.5038-.547.8138-.16605.3794-.60828.5525-.98775.3864-.37948-.166-.5525-.6083-.38646-.9877.20851-.4766.49751-.9101.86055-1.2731z\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"m10.9214 13.8817c.4851.4852.4851 1.2717 0 1.7569-.4851.4851-1.27173.4851-1.75687 0-.48515-.4852-.48515-1.2717 0-1.7569.48514-.4851 1.27177-.4851 1.75687 0z\"\n }))));\n}\nconst ForwardRef = /*#__PURE__*/React.forwardRef(SvgWifiWarning);\nexport default __webpack_public_path__ + \"static/media/wifi-warning.566ce3494413282d4b2c199d892fd702.svg\";\nexport { ForwardRef as ReactComponent };","import { NotificationInstance } from \"antd/es/notification/interface\";\nimport { NOTIFICATION_CONST } from \"../models/constants/core.constants\";\nimport { ReactComponent as NetworkWarning } from \"../../../assets/images/svg/wifi-warning.svg\";\n\nexport const getColorClass = (hash: string) => {\n switch (hash) {\n case \"#9C00EB\":\n return \"purple\";\n case \"#F1B100\":\n return \"mustard\";\n case \"#177F07\":\n return \"green\";\n case \"#32C6EC\":\n return \"skyLightBlue\";\n default:\n return \"purple\";\n }\n};\nexport const openNotification = (\n api: NotificationInstance,\n msg: string,\n type: string\n) => {\n if (type === NOTIFICATION_CONST.SUCCESS) {\n api.success({\n message: msg,\n description: \"\",\n placement: \"bottomRight\",\n duration: 2,\n className: `rounded-lg opacity-75 `,\n });\n } else if (type === NOTIFICATION_CONST.NETWORK_ERROR) {\n api.warning({\n message: msg,\n description: \"\",\n placement: \"bottomRight\",\n duration: null,\n icon: ,\n // closeIcon: true,\n className: `rounded-lg opacity-75`,\n });\n } else {\n api.error({\n message: msg,\n description: \"\",\n placement: \"bottomRight\",\n duration: 2,\n className: `rounded-lg opacity-75`,\n });\n }\n};\n","import { useEffect } from \"react\";\n\nexport const useRootColor = (varName: string, value: any) => {\n useEffect(() => {\n document.documentElement.style.setProperty(\n varName,\n value === undefined ? null : value\n );\n }, [varName, value]);\n\n return null;\n};\n","import { useEffect, useMemo, useState } from \"react\";\nimport { useRootColor } from \"./useRootColor\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport useIsThemePreview from \"./useIsThemePreview\";\nimport { TAP_USER_ROLES } from \"../modules/core/models/enums/tap.enum\";\nimport { RootState } from \"../store\";\nimport { resetTheme } from \"../store/slice/ThemeSlice\";\n\n/**\n * Custom hook that retrieves the theme color code based on the provided options.\n *\n * @param {Object} options - Optional parameters for the hook.\n * @param {boolean} options.fromWholeApp - Flag indicating whether to retrieve the color code from the global store or query params. Default is false.\n * @return {null} The hook does not return any value.\n */\nconst useThemeColor = ({\n fromWholeApp = false,\n}: { fromWholeApp?: boolean } = {}): null => {\n const dispatch = useDispatch();\n\n const [themeColorCode, setThemeColorCode] = useState<\n null | string | undefined\n >(null);\n const [btnPrimary, setBtnPrimary] = useState(null);\n const [btnSecondary, setBtnSecondary] = useState(\n null\n );\n const [gradientForegroundColor, setGradientForegroundColor] = useState<\n null | string | undefined\n >(null);\n\n const {\n colorCode: queryColorCode,\n buttonPrimaryColor: queryBtnPrimaryColor,\n buttonSecondaryColor: queryBtnSecondaryColor,\n gradientForegroundColor: queryGradientForegroundColor,\n } = useIsThemePreview();\n\n const isLoggedIn = useSelector((state: RootState) => state.auth?.isLoggedIn);\n\n const isUserDetailsFetched = useSelector(\n (state: RootState) => state.userDetail?.email !== \"\"\n );\n const isCorporateUser = useSelector(\n (state: RootState) =>\n state.userDetail.role === TAP_USER_ROLES.CORPORATE_USER\n );\n\n const storeColorCode = useSelector(\n (state: RootState) => state.theme.appliedTheme.colorCode\n );\n\n const storeButtonPrimaryColor = useSelector(\n (state: RootState) => state.theme.appliedTheme.buttonPrimaryColor\n );\n const storeButtonSecondaryColor = useSelector(\n (state: RootState) => state.theme.appliedTheme.buttonSecondaryColor\n );\n const storeGradientForegroundColor = useSelector(\n (state: RootState) => state.theme.appliedTheme.gradientForegroundColor\n );\n\n const colors: {\n primary?: string;\n btnPrimary?: string;\n btnSecondary?: string;\n gradientForegroundColor?: string;\n } = useMemo(() => {\n return {\n primary: queryColorCode ?? storeColorCode,\n btnPrimary: queryBtnPrimaryColor ?? storeButtonPrimaryColor,\n btnSecondary: queryBtnSecondaryColor ?? storeButtonSecondaryColor,\n gradientForegroundColor:\n queryGradientForegroundColor ?? storeGradientForegroundColor,\n };\n }, [\n // isCorporateUser,\n queryColorCode,\n storeColorCode,\n storeButtonPrimaryColor,\n storeButtonSecondaryColor,\n storeGradientForegroundColor,\n queryBtnPrimaryColor,\n queryBtnSecondaryColor,\n queryGradientForegroundColor,\n ]);\n\n useEffect(() => {\n setThemeColorCode(colors?.primary);\n setBtnPrimary(colors?.btnPrimary);\n setBtnSecondary(colors?.btnSecondary);\n setGradientForegroundColor(colors?.gradientForegroundColor);\n\n if (isUserDetailsFetched && !isCorporateUser) {\n setThemeColorCode(undefined);\n setBtnPrimary(undefined);\n setBtnSecondary(undefined);\n setGradientForegroundColor(undefined);\n }\n }, [\n isUserDetailsFetched,\n isCorporateUser,\n colors?.primary,\n colors?.btnPrimary,\n colors?.btnSecondary,\n colors?.gradientForegroundColor,\n ]);\n\n useEffect(() => {\n if (!isLoggedIn) {\n dispatch(resetTheme());\n }\n }, [dispatch, isLoggedIn]);\n\n useRootColor(\"--primary\", themeColorCode);\n useRootColor(\"--btn-primary\", btnPrimary);\n useRootColor(\"--btn-secondary\", btnSecondary);\n useRootColor(\"--btn-text\", gradientForegroundColor);\n\n return null;\n};\n\nexport default useThemeColor;\n","import React, { ReactNode, useEffect, useState } from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\nimport { useTranslation } from \"react-i18next\";\nimport SCButton from \"../../component/ui/SCButton\";\n\ntype ErrorFallbackProps = {\n children: ReactNode | ReactNode[];\n};\n\ninterface FallbackProps {\n error: Error;\n}\n\nconst Fallback = ({ error }: FallbackProps) => {\n const { t } = useTranslation();\n\n const [isBuildChunkError, setIsBuildChunkError] = useState(false);\n const [message, setMessage] = useState(\n t(\"core.ErrorFallback.message\")\n );\n\n useEffect(() => {\n if (error?.message.includes(\"Loading chunk\")) {\n setIsBuildChunkError(true);\n setMessage(t(\"core.ErrorFallback.buildUploaded\"));\n window.location.reload();\n } else {\n setIsBuildChunkError(false);\n setMessage(t(\"core.ErrorFallback.message\"));\n }\n }, [error?.message, t]);\n\n return (\n \n \n \n \n \n {\" \"}\n {message}{\" \"}\n \n {!isBuildChunkError && (\n {\n window.location.reload();\n }}\n >\n {t(\"core.ErrorFallback.actionBtn\")}\n \n )}\n \n \n \n \n );\n};\n\nconst myErrorHandler = (\n error: Error,\n info: { componentStack?: string | null }\n) => {\n console.log(\"Error from error boundary \", error);\n console.log(\"Error info from error boundary \", info);\n};\n\nconst ErrorFallback: React.FC = ({ children }: ErrorFallbackProps) => {\n return (\n \n {children}\n \n );\n};\n\nexport default ErrorFallback;\n","import { notification } from \"antd\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { Outlet, useSearchParams } from \"react-router-dom\";\nimport { openNotification } from \"./modules/core/helper/ECNotificationHelper\";\nimport { useEffect } from \"react\";\nimport { NOTIFICATION_CONST } from \"./modules/core/models/constants/core.constants\";\nimport { RootState } from \"./store\";\nimport Loader from \"./modules/core/presentation/Loader\";\nimport { setGlobalState } from \"./store/slice/GlobalSlice\";\nimport useThemeColor from \"./hooks/useThemeColor\";\nimport packageJson from \"../package.json\";\nimport ErrorFallback from \"./modules/core/presentation/ErrorFallback/ErrorFallback\";\nimport withAntdTheme from \"./hocs/withAntdTheme\";\n\nconst App: React.FC = () => {\n useThemeColor({ fromWholeApp: true });\n let [searchParams] = useSearchParams();\n\n const [api, contextHolder] = notification.useNotification({\n stack: { threshold: 10 },\n });\n const dispatch = useDispatch();\n const { error, loading, networkError } = useSelector(\n (state: RootState) => state.global\n );\n\n // TODO later on we can remove following function once the development is almost done and we want cache on user's machine\n const handlCaching = () => {\n let version = localStorage.getItem(\"version\");\n if (version !== packageJson.version) {\n console.log(\"checking cache issue\");\n\n if (\"caches\" in window) {\n caches.keys().then((names) => {\n names.forEach((name) => {\n caches.delete(name);\n });\n });\n window.location.reload();\n }\n localStorage.clear();\n localStorage.setItem(\"version\", packageJson.version);\n }\n };\n\n useEffect(() => {\n handlCaching();\n }, []);\n\n useEffect(() => {\n if (!searchParams.get(\"token\") && !searchParams.get(\"email\")) {\n localStorage.removeItem(\"otpTimeout\");\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [searchParams]);\n\n useEffect(() => {\n if (!!error?.message) {\n api.destroy();\n openNotification(api, error?.message, error.type);\n }\n }, [error, api]);\n\n useEffect(() => {\n if (!!networkError?.message) {\n openNotification(api, networkError?.message, networkError?.type);\n }\n }, [networkError, api]);\n\n const removeNetworkErrorToaster = () => {\n api.destroy();\n dispatch(\n setGlobalState({\n networkError: {\n message: ``,\n type: NOTIFICATION_CONST.NETWORK_ERROR,\n },\n })\n );\n };\n\n useEffect(() => {\n document\n .getElementById(\"root\")\n ?.addEventListener(\"click\", removeNetworkErrorToaster);\n return () => {\n document\n .getElementById(\"root\")\n ?.removeEventListener(\"click\", removeNetworkErrorToaster);\n };\n });\n\n return (\n \n {loading && (\n \n \n \n )}\n {contextHolder}\n \n \n );\n};\n\nexport default withAntdTheme(App);\n","import type { ThemeConfig } from \"antd\";\n\nconst themeConfig: ThemeConfig = {\n hashed: false,\n cssVar: false,\n token: {\n fontSize: 16,\n fontFamily: \"'Inter', sans-serif\",\n colorPrimary: \"var(--primary, var(--primary-fallback))\",\n // borderRadius: 50,\n },\n components: {\n Typography: {\n colorText: \"var(--primary)\",\n },\n Switch: {\n colorPrimary: \"var(--primary)\",\n colorPrimaryHover: \"var(--primary)\",\n colorPrimaryBorder: \"var(--primary)\",\n handleBg: \"#33FF00\",\n colorText: \"#33FF00\",\n colorTextQuaternary: \"#fff\",\n colorTextTertiary: \"#fff\",\n trackHeight: 26,\n },\n Button: {\n primaryColor: \"var(--primary)\",\n colorText: \"var(--btn-text)\",\n // borderRadius: 50,\n // borderRadiusLG: 50,\n // borderRadiusXS: 50,\n // borderRadiusSM: 50,\n // defaultBg: \"var(--primary-gradient)\",\n // defaultActiveBg: \"var(--primary-gradient)\",\n // defaultHoverBg: \"var(--primary-gradient)\",\n // fontWeight: 700,\n // fontWeightStrong: 700,\n },\n Select: {\n colorPrimary: \"var(--primary)\",\n optionActiveBg: \"rgba(0, 0, 0, 0.04)\",\n optionSelectedBg: \"rgba(0, 0, 0, 0.04)\",\n optionSelectedFontWeight: 500,\n colorText: \"#A4A4A4\",\n colorTextPlaceholder: \"#A4A4A4\",\n },\n Anchor: {\n colorText: \"var(--primary)\",\n colorPrimary: \"var(--primary)\",\n colorPrimaryHover: \"var(--primary)\",\n },\n Radio: {\n colorText: \"var(--primary)\",\n colorPrimary: \"var(--primary)\",\n colorPrimaryActive: \"var(--primary)\",\n colorPrimaryHover: \"var(--primary)\",\n },\n },\n};\n\nexport default themeConfig;\n","import { ConfigProvider } from \"antd\";\nimport themeConfig from \"../constants/antd-theme.constants\";\n\nconst withAntdTheme = (WrappedComponent: any) => {\n const WrappedComponentHOC = (props: any) => {\n return (\n \n \n \n );\n };\n\n return WrappedComponentHOC;\n};\n\nexport default withAntdTheme;\n","import { useCallback } from \"react\";\nimport { useLocation } from \"react-router-dom\";\n\nfunction useQueryParams() {\n const { search } = useLocation();\n\n const getQueryParam = useCallback(\n (key: string) => {\n const urlParams = new URLSearchParams(search);\n return urlParams.get(key);\n },\n [search]\n );\n\n return { getQueryParam };\n}\n\nexport default useQueryParams;\n","import { useMemo } from \"react\";\nimport useQueryParams from \"./useQueryParams\";\n\nfunction useIsThemePreview() {\n const { getQueryParam } = useQueryParams();\n\n const isThemePreview = useMemo(() => {\n return getQueryParam(\"isThemePreview\") === \"true\";\n }, [getQueryParam]);\n\n const colorCode = useMemo(() => {\n return getQueryParam(\"colorCode\");\n }, [getQueryParam]);\n\n const buttonPrimaryColor = useMemo(() => {\n return getQueryParam(\"buttonPrimaryColor\");\n }, [getQueryParam]);\n\n const buttonSecondaryColor = useMemo(() => {\n return getQueryParam(\"buttonSecondaryColor\");\n }, [getQueryParam]);\n\n const gradientForegroundColor = useMemo(() => {\n return getQueryParam(\"gradientForegroundColor\");\n }, [getQueryParam]);\n\n return {\n isThemePreview,\n colorCode,\n buttonPrimaryColor,\n buttonSecondaryColor,\n gradientForegroundColor,\n };\n}\n\nexport default useIsThemePreview;\n","import { Button } from \"antd\";\nimport { ButtonProps } from \"antd/lib\";\nimport * as React from \"react\";\nimport { SC_BUTTON_TYPE } from \"../../../models/constants/core.constants\";\n\nexport type SCButtonProps = ButtonProps & {\n scType?: string;\n};\n\nconst SCButton: React.FC = (props: SCButtonProps) => {\n const { scType, className, ...restInputProps } = props;\n const [scClassName, setScClassName] = React.useState(\n \" !capitalize primary-btn custom-sm:h-[40px] font-bold \"\n );\n const reSetScClassName = React.useCallback(\n (type: string) => {\n let common = \" !capitalize primary-btn custom-sm:h-[40px] font-bold \";\n let submit_common =\n \" !capitalize primary-btn custom-sm:h-[40px] font-bold font-secondary \";\n switch (type) {\n case SC_BUTTON_TYPE.PRIMARY:\n setScClassName(className + common);\n break;\n case SC_BUTTON_TYPE.SECONDARY:\n setScClassName(\n className +\n \" !capitalize secondary-btn custom-sm:h-[40px] font-bold \"\n );\n break;\n case SC_BUTTON_TYPE.SUBMIT_PRIMARY:\n setScClassName(className + submit_common);\n break;\n case SC_BUTTON_TYPE.PRICING_BACK:\n setScClassName(className + common + \" w-[110px] \");\n break;\n case SC_BUTTON_TYPE.UPLOAD_BUTTON:\n setScClassName(\n className +\n \" capitalize bg-white rounded-3xl h-[48px] sm:px-[20px] px-2 \"\n );\n break;\n case SC_BUTTON_TYPE.SUBMIT_UPLOAD_BUTTON:\n setScClassName(\n className +\n \" bg-white rounded-3xl h-[48px] px-[20px] font-bold capitalize font-secondary \"\n );\n break;\n case SC_BUTTON_TYPE.CLEAR_FORM:\n setScClassName(className + common + \" mt-[10px] \");\n break;\n case SC_BUTTON_TYPE.KEYPAD:\n setScClassName(\"num-btn font-secondary\");\n break;\n case SC_BUTTON_TYPE.EXPIRED:\n setScClassName(\n className + \" !capitalize danger-btn custom-sm:h-[40px] font-bold \"\n );\n break;\n case SC_BUTTON_TYPE.TYPE_LINK:\n setScClassName(\n \"!p-0 text-left text-primary 2xl:text-xl lg:text-lg border-none text-base font-secondary tracking-[0.4px] font-medium hover:underline hover:text-primary !shadow-none !px-2\"\n );\n break;\n default:\n setScClassName(className + common);\n break;\n }\n },\n [className]\n );\n React.useEffect(() => {\n reSetScClassName(scType ?? \"\");\n }, [scType, className, reSetScClassName]);\n\n return ;\n};\n\nexport default SCButton;\n"],"names":["_g","_extends","Object","assign","bind","n","e","arguments","length","t","r","hasOwnProperty","call","apply","SvgWifiWarning","_ref","svgRef","title","titleId","props","fill","height","viewBox","width","xmlns","ref","id","d","ForwardRef","openNotification","api","msg","type","NOTIFICATION_CONST","SUCCESS","success","message","description","placement","duration","className","NETWORK_ERROR","warning","icon","_jsx","NetworkWarning","error","useRootColor","varName","value","useEffect","document","documentElement","style","setProperty","undefined","fromWholeApp","dispatch","useDispatch","themeColorCode","setThemeColorCode","useState","btnPrimary","setBtnPrimary","btnSecondary","setBtnSecondary","gradientForegroundColor","setGradientForegroundColor","colorCode","queryColorCode","buttonPrimaryColor","queryBtnPrimaryColor","buttonSecondaryColor","queryBtnSecondaryColor","queryGradientForegroundColor","useIsThemePreview","isLoggedIn","useSelector","state","_state$auth","auth","isUserDetailsFetched","_state$userDetail","userDetail","email","isCorporateUser","role","TAP_USER_ROLES","CORPORATE_USER","storeColorCode","theme","appliedTheme","storeButtonPrimaryColor","storeButtonSecondaryColor","storeGradientForegroundColor","colors","useMemo","primary","resetTheme","Fallback","useTranslation","isBuildChunkError","setIsBuildChunkError","setMessage","includes","window","location","reload","children","_jsxs","SCButton","onClick","myErrorHandler","info","console","log","_ref2","ErrorBoundary","FallbackComponent","onError","withAntdTheme","App","useThemeColor","searchParams","useSearchParams","contextHolder","notification","useNotification","stack","threshold","loading","networkError","global","localStorage","getItem","packageJson","caches","keys","then","names","forEach","name","delete","clear","setItem","get","removeItem","destroy","removeNetworkErrorToaster","setGlobalState","_document$getElementB","getElementById","addEventListener","_document$getElementB2","removeEventListener","ErrorFallback","position","zIndex","backgroundColor","pointerEvents","Loader","styleLoadingOutlined","fontSize","Outlet","hashed","cssVar","token","fontFamily","colorPrimary","components","Typography","colorText","Switch","colorPrimaryHover","colorPrimaryBorder","handleBg","colorTextQuaternary","colorTextTertiary","trackHeight","Button","primaryColor","Select","optionActiveBg","optionSelectedBg","optionSelectedFontWeight","colorTextPlaceholder","Anchor","Radio","colorPrimaryActive","WrappedComponent","ConfigProvider","themeConfig","search","useLocation","getQueryParam","useCallback","key","URLSearchParams","useQueryParams","isThemePreview","scType","restInputProps","scClassName","setScClassName","React","reSetScClassName","common","SC_BUTTON_TYPE","PRIMARY","SECONDARY","SUBMIT_PRIMARY","PRICING_BACK","UPLOAD_BUTTON","SUBMIT_UPLOAD_BUTTON","CLEAR_FORM","KEYPAD","EXPIRED","TYPE_LINK"],"sourceRoot":""}
\n {\" \"}\n {message}{\" \"}\n