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H1C,OAGiDigB,K,SAG1D,IATK,UAWFD,EAXE,UAWeD,GAXf,OAWqBE,IAG9B,CAEO,SAAS4D,EACd+S,GAMC,IAAD,yDADI,CAAC,EACL,IAJEJ,OAAAA,OAIF,MAJW,EAIX,MAHEzuB,YAAAA,OAGF,MAHgB,CAAC,UAAW,UAAW,SAAU,UAAW,WAG5D,MAFEkY,KAAAA,OAEF,MAFS,MAET,EACM4W,EAAqC,kBAAhBD,EAA2BE,WAAWF,GAAeA,EAC1EG,EAAc,GAAKF,EAAc,GAAKL,EAC5C,OAAO3W,EAAmB,CACxBC,IAAK+W,EACL9W,IAAKgX,EACL/W,YAAa,WACbjY,YAAaA,EAAYqN,IAAI8f,EAAAA,GAC7BjV,KAAAA,GAEJ,C,sECzEO,IAEMpK,EAAiB,WAI5B,MAAO,CACL,kBAJQ,IAAI3B,MAC2B8iB,qBAAuB,GAGdjf,WAChD,mBAAoBjN,OAAOmsB,OAAOC,WAAWnf,WAC7C,qBAAsBjN,OAAOmsB,OAAOhwB,MAAM8Q,WAC1C,oBAAqBjN,OAAOmsB,OAAOrwB,OAAOmR,WAC1C,oBAAqBhN,SAASjE,KAAKqwB,YAAYpf,WAC/C,qBAAsBhN,SAASjE,KAAKswB,aAAarf,WACjD,sBAAsBsf,MAAAA,eAAAA,EAAAA,UAAWC,iBAAiB,GAAOvf,WACzD,qBAAsBwf,KAAKC,iBAAiBC,kBAAkBC,SAElE,C","sources":["contexts/I18nContext/I18n.config.ts","contexts/I18nContext/I18nContext.tsx","providers/ReactQueryProvider/ReactQueryProvider.tsx","styles/globalStyles/GlobalCss.ts","styles/globalStyles/ResetCss.ts","styles/theme/palette.ts","styles/theme/components.ts","styles/theme/index.ts","styles/theme/animations.ts","providers/StylesProvider/StylesProvider.tsx","providers/SnackbarProvider/SnackbarProvider.tsx","providers/AppProvider/AppProvider.tsx","providers/MdxProvider/MdxProvider.tsx","components/ui/CookieYes/CookieYes.tsx","components/ui/ScrollToTop/ScrollToTop.tsx","styles/utils/fontFace.ts","styles/FontsCss.ts","containers/App/App.tsx","utils/appMeta.ts","redux/store.ts","redux/createStore.ts","Root.tsx","api/APIs/AuthApi.ts","api/APIs/ProfileApi.ts","api/APIs/ImagesApi.ts","api/APIs/VideosApi.ts","api/APIs/CreditsApi.ts","api/APIs/UserTransactionApi.ts","api/cacheKeys.ts","api/core/ApiBase.ts","api/core/ApiErrorBase.ts","api/errors/extractApiError.ts","api/core/AppApiBase.ts","api/domain/currency.ts","api/domain/transactions/b2cTransaction.ts","api/domain/transactions/paymentProvider.ts","api/errors/ApiException.ts","api/errors/ValidationException.ts","api/hooks/helpers/useApiQuery.ts","api/hooks/helpers/useOnApiError.ts","api/hooks/helpers/useUpdateQuery.ts","api/hooks/helpers/useApiMutation.ts","api/hooks/helpers/useApiReadyQuery.ts","api/hooks/queries/useMyProfile.ts","api/hooks/queries/useVideoDetail.ts","api/hooks/mutations/useAutologin.ts","api/providers/AppApiProvider/AppApiProvider.tsx","api/providers/AuthProvider/AuthProvider.tsx","api/reduxSlices/auth/auth.actions.ts","api/utils/tokenUtils.ts","components/layout/Seo/Seo.tsx","components/ui/Button/Button.sizes.ts","components/ui/Button/Button.styles.ts","components/ui/Button/Button.variants.ts","components/ui/Button/ButtonContent/ButtonContent.styles.ts","components/ui/Button/ButtonContent/ButtonContent.tsx","components/ui/Button/Button.tsx","components/ui/InfoMessage/InfoMessage.styles.ts","components/ui/InfoMessage/useInfoMessageStyle.ts","components/ui/InfoMessage/InfoMessage.tsx","components/ui/Markdown/Markdown.styles.tsx","components/ui/Markdown/index.ts","components/ui/Shared/Shared.tsx","components/ui/Typography/TextBase/TextBase.styles.ts","components/ui/Typography/TextBase/TextBase.tsx","components/ui/Typography/Typography.ts","config/app.ts","config/urls.ts","helpers.ts","hooks/useModalState.ts","hooks/useContextWithCheck.ts","hooks/useAppDocMetaData.ts","api/APIs/PublicApi.ts","config/support.ts","hooks/queries/useLegalInfo.ts","hooks/useOnErrorSnackbar.tsx","hooks/useTranslation.ts","hooks/useTranslationNS.ts","hooks/windowEvents/useListenMessage.ts","hooks/windowEvents/types.ts","hooks/windowEvents/usePostMessage.ts","providers/MdxProvider/components/MdxWrapper.tsx","redux/filter/filter.utils.ts","redux/filter/filter.reducer.ts","redux/filter/filter.actions.ts","redux/dataGrid/dataGrid.reducer.ts","redux/utils.ts","redux/dataGridReducers.ts","redux/pagination/pagination.actions.ts","redux/pagination/pagination.reducer.ts","redux/sorting/sorting.actions.ts","redux/sorting/sorting.reducer.ts","routes/components/ProtectedRoute/components/ErrorView.tsx","routes/components/ProtectedRoute/components/ProfileRequired.tsx","routes/components/ProtectedRoute/ProtectedRoute.tsx","routes/components/ProtectedRoute/components/LoadingView.tsx","routes/components/ProtectedRoute/components/RedirectWithMsg.tsx","routes/components/PublicRoute/PublicRoute.tsx","components/ui/LazyLoad/lazyLoad.tsx","routes/authRoutes.ts","components/ui/PaymentRedirect/PaymentRedirect.tsx","components/ui/PaymentRedirect/PaymentRedirect.config.ts","views/PaymentRedirect/PaymentRedirect.tsx","views/IframeRedirect/IframeRedirect.tsx","routes/appRoutes.ts","routes/profileRoutes.ts","routes/docsRoutes.ts","styles/theme/breakpoints.ts","styles/theme/shapings.ts","styles/theme/typography.ts","styles/utils/mixins.ts","styles/utils/responsiveUtils.ts","utils/general.ts"],"sourcesContent":["import { use, InitOptions } from 'i18next'\nimport I18nextBrowserLanguageDetector from 'i18next-browser-languagedetector'\nimport Backend from 'i18next-http-backend'\nimport { initReactI18next } from 'react-i18next'\n\nexport const defaultLanguage = 'en'\nexport const languages = ['en', 'de']\n\n// https://www.i18next.com/overview/configuration-options\nexport const i18nextOptions = (appNS: string): InitOptions => ({\n fallbackLng: defaultLanguage,\n supportedLngs: languages,\n\n keySeparator: '.',\n nsSeparator: ':',\n // ns: ['ui', appNS],\n ns: [appNS],\n defaultNS: appNS,\n\n load: 'languageOnly',\n nonExplicitSupportedLngs: false,\n returnEmptyString: false,\n returnNull: false,\n\n backend: {\n loadPath: '/locales/{{lng}}/{{ns}}.json',\n addPath: '/locales/add/{{lng}}/{{ns}}',\n },\n\n parseMissingKeyHandler: (key: string) => {\n const splitKey = key.split('.')\n return splitKey[splitKey.length - 1]\n },\n\n react: {\n useSuspense: true,\n defaultTransParent: 'div',\n hashTransKey(defaultValue: string) {\n console.log('missing key', defaultValue)\n return defaultValue\n },\n },\n})\n\nexport const i18nInitialize = (appNS: string) =>\n use(I18nextBrowserLanguageDetector).use(Backend).use(initReactI18next).init(i18nextOptions(appNS))\n","import { createContext, useCallback, useEffect } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport moment from 'moment'\n\nimport { useContextWithCheck } from 'hooks'\nimport { WithChild } from 'utils'\n\nimport { languages, defaultLanguage } from './I18n.config'\n\nimport { I18nContextData } from './index'\n\nconst I18nContext = createContext(undefined)\n\nexport const I18nProvider = ({ children }: WithChild) => {\n const { i18n } = useTranslation()\n\n const changeLanguage = useCallback(\n (lang: string) => {\n moment.locale(lang)\n return i18n.changeLanguage(lang)\n },\n [i18n],\n )\n\n useEffect(() => {\n moment.locale(i18n.language)\n }, [i18n.language])\n\n // useEffect(() => {\n // i18nInitialize('main').then()\n // }, [])\n\n return (\n \n {children}\n \n )\n}\n\nexport const useI18n = () => useContextWithCheck(I18nContext)\n","import { QueryClient, QueryClientProvider } from 'react-query'\nimport { useMemo } from 'react'\n\nimport { useOnErrorSnackbar } from 'hooks/useOnErrorSnackbar'\n\nimport { ReactQueryProviderProps } from './index'\n\nexport const ReactQueryProvider = ({ children }: ReactQueryProviderProps) => {\n const onErrorSnackbar = useOnErrorSnackbar()\n\n const queryClient = useMemo(() => {\n const onError = onErrorSnackbar\n return new QueryClient({\n defaultOptions: {\n queries: {\n refetchOnWindowFocus: false,\n refetchOnMount: false,\n retry: false,\n onError: err => onError(err),\n },\n mutations: {\n onError: err => onError(err),\n },\n },\n })\n }, [onErrorSnackbar])\n\n return {children}\n}\n","import { createGlobalStyle } from 'styled-components'\n\n// noinspection CssInvalidPropertyValue\nconst GlobalCss = createGlobalStyle`\n button {\n font: inherit;\n }\n\n html {\n height: -webkit-fill-available;\n }\n\n body {\n min-height: 100vh;\n min-width: 320px;\n min-height: -webkit-fill-available;\n display: flex;\n background: ${({ theme }) => theme.palette.background.default};\n color: ${({ theme }) => theme.palette.text.primary};\n }\n\n #root {\n width: 100%;\n display: flex;\n flex: 1;\n }\n\n b {\n font-weight: 600;\n }\n\n a {\n color: inherit;\n text-decoration: none;\n }\n //.react-horizontal-scrolling-menu--scroll-container {\n // overflow: hidden;\n //}\n`\n\nexport default GlobalCss\n","import { createGlobalStyle } from 'styled-components'\n\nconst ResetCss = createGlobalStyle`\n *,\n *::before,\n *::after {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n }\n\n html {\n line-height: 1.4;\n height: 100%;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n -moz-osx-font-smoothing: grayscale;\n touch-action: manipulation;\n }\n\n body {\n margin: 0;\n min-height: 100%;\n width: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n font-feature-settings: 'kern';\n }\n\n main {\n display: block;\n }\n hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n pre,\n code,\n kbd,\n samp {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n b,\n strong {\n font-weight: bold;\n }\n small {\n font-size: 80%;\n }\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n sub {\n bottom: -0.25em;\n }\n sup {\n top: -0.5em;\n }\n img {\n border-style: none;\n }\n button,\n input,\n optgroup,\n select,\n textarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n button,\n input {\n overflow: visible;\n }\n button,\n select {\n text-transform: none;\n }\n button::-moz-focus-inner,\n [type='button']::-moz-focus-inner,\n [type='reset']::-moz-focus-inner,\n [type='submit']::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n progress {\n vertical-align: baseline;\n }\n textarea {\n overflow: auto;\n }\n [type='checkbox'],\n [type='radio'] {\n box-sizing: border-box;\n padding: 0;\n }\n [type='number']::-webkit-inner-spin-button,\n [type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n input[type='number'] {\n -moz-appearance: textfield;\n }\n [type='search'] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n [type='search']::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n details {\n display: block;\n }\n summary {\n display: list-item;\n }\n template {\n display: none;\n }\n [hidden] {\n display: none !important;\n }\n body,\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre {\n margin: 0;\n }\n button {\n background: transparent;\n padding: 0;\n }\n fieldset {\n margin: 0;\n padding: 0;\n }\n ol,\n ul {\n margin: 0;\n padding: 0;\n }\n textarea {\n resize: vertical;\n }\n button,\n [role='button'] {\n cursor: pointer;\n }\n button::-moz-focus-inner {\n border: 0 !important;\n }\n table {\n border-collapse: collapse;\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n button,\n input,\n optgroup,\n select,\n textarea {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n vertical-align: middle;\n }\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n [data-js-focus-visible] :focus:not([data-focus-visible-added]) {\n outline: none;\n box-shadow: none;\n }\n select::-ms-expand {\n display: none;\n }\n`\n\nexport default ResetCss\n","const palette = {\n mode: 'light',\n background: {\n paper: '#F2F2F0',\n default: '#e5e6e1',\n },\n common: {\n black: '#000',\n white: '#fff',\n },\n primary: {\n main: '#23252E',\n dark: '#282828',\n contrastText: '#fff',\n },\n secondary: {\n main: '#e5e6e1',\n dark: '#282828',\n contrastText: '#23252E',\n },\n info: {\n main: '#5AB9FE',\n },\n success: {\n main: '#0C0A0A',\n dark: '#232020',\n contrastText: '#FFFFFF',\n },\n warning: {\n light: '#FFE58F',\n main: '#FAAD14',\n },\n error: {\n main: '#EE786C',\n dark: '#bc4538',\n contrastText: '#fff',\n },\n bankIdViolet: {\n main: '#39134C',\n dark: '#2a0140',\n contrastText: '#fff',\n },\n orange: {\n main: '#F7931A',\n contrastText: '#fff',\n },\n\n text: {\n primary: '#23252E',\n secondary: '#7A7A7A',\n },\n\n textInverted: '#FFFFFF',\n textBlueish: '#324A57',\n\n greyDefault: '#9FA2B4',\n\n border: 'rgba(211, 211, 211, 0.3)',\n borderLight: '#D4D5D2',\n placeholder: '#C4C4C4',\n bgLight: '#FFFFFF',\n\n grey: {\n 900: '#262626', // grey 9, texts\n 800: '#595959', // grey 8, texts\n 700: '#9FA2B4', // gray 7, placeholders\n 600: '#BFBFBF', // grey 6, light texts\n 300: '#DFE0EB', // border gray\n 200: '#EAEFF4', // border color\n 100: '#F7F8FC', // BG\n },\n}\n\nexport default palette\n","import { Components } from '@mui/material/styles'\n\nimport { fontSizes } from './typography'\nimport palette from './palette'\nimport { radii } from './shapings'\n\nconst components: Components = {\n MuiTooltip: {\n defaultProps: {\n arrow: true,\n placement: 'top' as any,\n enterDelay: 150,\n leaveDelay: 100,\n },\n styleOverrides: {\n arrow: {\n color: '#1F2128',\n },\n tooltip: {\n backgroundColor: '#1F2128',\n },\n tooltipPlacementTop: {\n marginBottom: '1em',\n },\n },\n },\n MuiBreadcrumbs: {\n defaultProps: { separator: '|' },\n styleOverrides: {\n root: {\n fontSize: fontSizes.extraSmall,\n fontWeight: 500,\n color: 'inherit',\n textTransform: 'uppercase' as any,\n },\n separator: {\n color: palette.text.secondary,\n },\n li: {},\n },\n },\n MuiTextField: {\n defaultProps: { variant: 'outlined' as any, size: 'medium' as any },\n styleOverrides: {},\n },\n MuiCheckbox: {\n defaultProps: { color: 'primary' as any },\n styleOverrides: {},\n },\n MuiButton: {\n defaultProps: {\n color: 'primary' as any,\n variant: 'contained' as any,\n },\n styleOverrides: {\n root: {\n fontSize: fontSizes.default,\n borderRadius: radii.default,\n fontWeight: 500,\n textTransform: 'none' as any,\n lineHeight: 1.25,\n },\n contained: {\n boxShadow: 'none',\n },\n sizeMedium: {\n minHeight: 40,\n },\n },\n },\n MuiSkeleton: {\n defaultProps: { animation: 'wave' as any },\n styleOverrides: {},\n },\n MuiAlert: {\n styleOverrides: {\n standardError: {\n color: palette.error.dark,\n '& $icon': {\n color: palette.error.dark,\n },\n },\n root: {\n lineHeight: 1.2,\n fontSize: fontSizes.default,\n alignItems: 'center',\n },\n message: {\n padding: '0.25em 0',\n },\n icon: {\n padding: '0',\n },\n },\n },\n\n MuiMenuItem: {\n styleOverrides: {\n root: {\n lineHeight: 1.25,\n fontSize: fontSizes.small,\n minHeight: 36,\n },\n },\n },\n MuiListItemIcon: {\n styleOverrides: {\n root: {\n minWidth: 'auto',\n marginRight: 10,\n },\n },\n },\n MuiSvgIcon: {\n defaultProps: {\n fontSize: 'inherit',\n },\n styleOverrides: {\n fontSizeInherit: {\n fontSize: '1.4em',\n },\n fontSizeSmall: {\n fontSize: '1.25rem',\n },\n },\n },\n MuiIconButton: {\n defaultProps: {\n size: 'medium',\n color: 'inherit',\n },\n styleOverrides: {\n sizeSmall: {\n fontSize: '1.1rem',\n },\n sizeMedium: {\n fontSize: '1.2rem',\n },\n sizeLarge: {\n fontSize: '1.3rem',\n },\n },\n },\n\n MuiOutlinedInput: {\n styleOverrides: {\n root: {\n background: palette.bgLight,\n },\n sizeSmall: {\n borderRadius: radii.small,\n },\n adornedEnd: {\n paddingRight: 0,\n },\n },\n },\n MuiTab: {\n styleOverrides: {\n root: {\n // textTransform: 'none' as any,\n },\n textColorPrimary: {\n '&.Mui-selected': {\n color: palette.text.primary,\n },\n },\n },\n },\n\n MuiFormHelperText: {\n styleOverrides: {\n root: {\n margin: '0.5rem 0 0',\n lineHeight: 1.2,\n fontSize: fontSizes.extraSmall,\n },\n },\n },\n\n MuiTableCell: {\n styleOverrides: {\n head: {\n fontSize: fontSizes.small,\n color: palette.text.secondary,\n height: 44,\n whiteSpace: 'nowrap',\n },\n body: {\n height: 56,\n fontSize: fontSizes.small,\n '@media (max-width: 768px)': {\n fontSize: fontSizes.extraSmall,\n },\n },\n root: {\n borderColor: palette.border,\n padding: '0.5em',\n lineHeight: 1.2,\n '&:first-child': {\n paddingLeft: '1rem',\n },\n '&:last-child': {\n paddingRight: '1rem',\n width: '1%',\n },\n },\n },\n },\n}\n\nexport default components\n","import { createTheme, PaletteOptions } from '@mui/material/styles'\n\nimport palette from './palette'\nimport typography, { fontSizes, fontFamilies } from './typography'\nimport breakpoints from './breakpoints'\nimport components from './components'\nimport { transitions } from './animations'\nimport { radii, spacing } from './shapings'\n\nconst theme = createTheme({\n palette: palette as PaletteOptions,\n fontSizes,\n fontFamilies,\n typography,\n radii,\n spacing,\n space: spacing,\n shape: {\n borderRadius: radii.default,\n },\n transitions,\n breakpoints,\n components,\n})\n\nexport type MyThemeType = typeof theme\nexport default theme\n","import { TransitionsOptions } from '@mui/material/styles'\n\nexport const transitions: TransitionsOptions = {\n duration: {\n shortest: 100,\n shorter: 150,\n short: 200,\n standard: 250,\n complex: 350,\n },\n}\n","import { ThemeProvider as StyledThemeProvider } from 'styled-components'\nimport { StyledEngineProvider, ThemeProvider as MuiThemeProvider } from '@mui/material/styles'\nimport CssBaseline from '@mui/material/CssBaseline'\n\nimport { WithChild } from 'utils'\nimport GlobalCss from 'styles/globalStyles/GlobalCss'\nimport ResetCss from 'styles/globalStyles/ResetCss'\nimport theme from 'styles/theme'\n\ntype StyleProviderProps = {} & WithChild\n\nexport default function StylesProvider({ children }: StyleProviderProps) {\n return (\n \n \n \n \n \n \n {children}\n \n \n \n )\n}\n","import { ReactText } from 'react'\nimport { SnackbarProvider as NotistackProvider, useSnackbar } from 'notistack'\nimport CloseRoundedIcon from '@mui/icons-material/CloseRounded'\nimport IconButton from '@mui/material/IconButton'\n\nimport { WithChild } from 'utils'\n\nconst CloseButton = ({ id }: { id: ReactText }) => {\n const { closeSnackbar } = useSnackbar()\n return (\n closeSnackbar(id)}>\n \n \n )\n}\n\nconst SnackbarProvider = ({ children }: WithChild) => (\n }\n >\n {children}\n \n)\n\nexport default SnackbarProvider\n","import { AdapterMoment } from '@mui/x-date-pickers/AdapterMoment'\nimport { LocalizationProvider } from '@mui/x-date-pickers'\nimport CircularProgress from '@mui/material/CircularProgress'\nimport { Suspense } from 'react'\nimport { BrowserRouter as Router, Route } from 'react-router-dom'\nimport { QueryParamProvider } from 'use-query-params'\nimport { ReactQueryDevtools } from 'react-query/devtools'\n\nimport { I18nProvider } from 'contexts/I18nContext'\nimport { ReactQueryProvider } from 'providers/ReactQueryProvider'\nimport StylesProvider from 'providers/StylesProvider'\nimport SnackbarProvider from 'providers/SnackbarProvider'\n\nimport { AppProviderProps } from './index'\n\nconst AppProvider = ({ children }: AppProviderProps) => {\n const fallback = (\n
\n \n
\n )\n return (\n \n \n \n \n \n \n \n \n <>\n \n {children}\n \n \n \n \n \n \n \n \n \n )\n}\n\nexport default AppProvider\n","import { MDXProvider } from '@mdx-js/react'\n\nimport { mdComponentsConfig } from 'components/ui/Markdown'\n\nimport MdxWrapper from './components/MdxWrapper'\n\nconst MdxProvider = ({ children }: { children: JSX.Element }) => {\n return (\n \n {children}\n \n )\n}\n\nexport default MdxProvider\n","import { memo } from 'react'\n\nimport { appConfig } from 'config/app'\n\nimport { CookieYesProps } from '.'\n\nfunction CookieYes({ cbid }: CookieYesProps): JSX.Element {\n if (!cbid || appConfig.appEnv !== 'production') return <>\n if (typeof window === 'undefined') {\n return <>\n }\n if (!cbid || !document) {\n return <>\n }\n\n if (cbid.length !== 24) {\n console.warn(\n `The cookie bot domain group id is ${cbid.length} characters, instead it should be 36 characters!`,\n ) // eslint-disable-line no-console\n }\n\n const script = document.createElement('script')\n script.setAttribute('id', 'cookieyes')\n script.setAttribute('src', `https://cdn-cookieyes.com/client_data/${cbid}/script.js`)\n script.setAttribute('data-blockingmode', 'auto')\n script.setAttribute('type', 'text/javascript')\n script.setAttribute('strategy', 'beforeInteractive')\n const head = document.querySelector('html > head')\n\n if (head) {\n head.insertBefore(script, head.firstChild)\n }\n\n return <>\n}\n\nexport default memo(CookieYes)\n","import { useEffect } from 'react'\nimport { withRouter, RouteComponentProps } from 'react-router-dom'\n\nfunction ScrollToTop({ history }: RouteComponentProps) {\n useEffect(() => {\n const unListen = history.listen(() => {\n window.scrollTo({\n top: 0,\n left: 0,\n behavior: 'smooth',\n })\n })\n return () => {\n unListen()\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n\n return null\n}\n\nexport default withRouter(ScrollToTop)\n","export function fontFace(name: string, src: string, fontWeight = 400, fontStyle = 'normal') {\n return `\n @font-face{\n font-family: \"${name}\";\n src: url(\"${src}\");\n font-style: ${fontStyle};\n font-weight: ${fontWeight};\n font-display: auto;\n }\n `\n}\n","import { createGlobalStyle } from 'styled-components'\n\nimport FontLight from 'styles/fonts/Manrope/static/Manrope-Light.ttf'\nimport FontRegular from 'styles/fonts/Manrope/static/Manrope-Regular.ttf'\nimport FontMedium from 'styles/fonts/Manrope/static/Manrope-Medium.ttf'\nimport FontBold from 'styles/fonts/Manrope/static/Manrope-Bold.ttf'\nimport BebasNeueRegular from 'styles/fonts/BebasNeue/BebasNeue-Regular.ttf'\n\nimport { fontFace } from './utils/fontFace'\n\nconst FontsCss = createGlobalStyle`\n ${fontFace('Inter', FontLight, 300)};\n ${fontFace('Inter', FontRegular, 400)};\n ${fontFace('Inter', FontMedium, 500)};\n ${fontFace('Inter', FontBold, 700)};\n ${fontFace('BebasNeue', BebasNeueRegular, 400)};\n`\n\nexport default FontsCss\n","import { Switch, Route as ReactRoute } from 'react-router-dom'\n\nimport { useAppDocMetaData } from 'hooks'\nimport { appRoutes, authRoutes, docsRoutes, profileRoutes } from 'routes'\nimport ProtectedRoute from 'routes/components/ProtectedRoute'\nimport PublicRoute from 'routes/components/PublicRoute'\nimport { buildTime, version } from 'utils/appMeta'\n\nconst App = () => {\n useAppDocMetaData({ version, buildTime })\n\n return (\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n )\n}\n\nexport default App\n","import preval from 'preval.macro'\n\nimport packageJson from '../../package.json'\n\nexport const buildTime = preval`module.exports = new Date().getTime();`\nexport const version = packageJson.version\n","import { appConfig } from 'config/app'\n\nimport { createStore } from './createStore'\nimport { dataGridReducers } from './dataGridReducers'\n\nconst { store, persistor } = createStore(\n {\n ...dataGridReducers,\n },\n {\n key: 'root',\n devTools: appConfig.appEnv === 'development',\n version: 1,\n blacklist: [],\n },\n)\n\nexport type RootState = ReturnType\nexport type AppDispatch = typeof store.dispatch\n\nexport { store, persistor }\n","import {\n FLUSH,\n PAUSE,\n PERSIST,\n persistReducer,\n persistStore,\n PURGE,\n REGISTER,\n REHYDRATE,\n} from 'redux-persist'\nimport { ReducersMapObject } from 'redux'\nimport storage from 'redux-persist/lib/storage'\nimport { combineReducers, configureStore } from '@reduxjs/toolkit'\nimport { ConfigureStoreOptions } from '@reduxjs/toolkit/src/configureStore'\nimport { PersistConfig } from 'redux-persist/es/types'\n\nexport function createStore(\n reducers: ReducersMapObject,\n { devTools, ...config }: Omit, 'storage'> & { devTools?: boolean },\n) {\n const persistConfig = {\n storage,\n ...config,\n }\n\n const appReducer = combineReducers({\n ...reducers,\n })\n\n const rootReducer = (state: S | undefined, action: any) => {\n if (action.type === 'auth/logoutUser') {\n return appReducer(undefined, action)\n }\n\n return appReducer(state, action)\n }\n\n const storeConfig: ConfigureStoreOptions = {\n reducer: persistReducer(persistConfig, rootReducer),\n devTools,\n middleware: getDefaultMiddleware =>\n getDefaultMiddleware({\n serializableCheck: {\n ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER],\n },\n }),\n }\n\n const store = configureStore(storeConfig)\n const persistor = persistStore(store)\n\n return { store, persistor }\n}\n","import { useCallback } from 'react'\nimport { useHistory } from 'react-router-dom'\nimport { Provider } from 'react-redux'\nimport TagManager from 'react-gtm-module'\nimport { Helmet, HelmetProvider } from 'react-helmet-async'\nimport { PersistGate } from 'redux-persist/integration/react'\n\nimport AppProvider from 'providers/AppProvider'\nimport MdxProvider from 'providers/MdxProvider'\nimport CookieYes from 'components/ui/CookieYes'\nimport ScrollToTop from 'components/ui/ScrollToTop/ScrollToTop'\nimport { AppApiProvider, AuthProvider } from 'api'\nimport { i18nInitialize } from 'contexts/I18nContext'\nimport { WithChild } from 'utils'\nimport FontsCss from 'styles/FontsCss'\nimport App from 'containers/App'\nimport { store, persistor } from 'redux/store'\nimport { appConfig } from 'config/app'\nimport { authRoutes } from 'routes'\n\ni18nInitialize('main').then()\n\nconst AppAuthProvider = ({ children }: WithChild) => {\n const history = useHistory()\n\n const onLogout = useCallback(() => {\n persistor.purge().then(() => {\n history.push(authRoutes.views.login.path)\n })\n }, [history])\n\n return (\n \n {children}\n \n )\n}\n\nconst tagManagerArgs = {\n gtmId: 'G-QV2NRE8YME',\n}\n\nif (appConfig.appEnv === 'production') {\n TagManager.initialize(tagManagerArgs)\n}\n\nexport default function Root({ helmetContext }: any) {\n return (\n \n \n \n \n \n \n \n \n \n Gymprovement - The world's best hiit workouts at home\n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n","import autoBind from 'auto-bind'\n\nimport { ActionResult } from 'api/domain/app'\nimport { TokenPair, TokenType } from 'api/domain/auth'\nimport { tokenToString } from 'api/utils/tokenUtils'\nimport { AppApiBase } from 'api/core/AppApiBase'\n\nexport class AuthApi {\n constructor(protected api: AppApiBase) {\n autoBind(this)\n }\n\n register(body: { email: string; first_name: string; last_name: string }) {\n return this.api.post('/auth/register', body)\n }\n\n loginRequest(body: { email: string }) {\n return this.api.post('/auth/login', body)\n }\n\n loginWithOtp(body: { email: string; otp: string }) {\n return this.api.post('/auth/otp', body)\n }\n\n loginWithToken(token: string) {\n return this.api.post('/auth/otp_link', {\n otp: token,\n })\n }\n\n refresh(refreshToken: TokenType) {\n return this.api.post('/auth/refresh', undefined, {\n headers: {\n Authorization: tokenToString(refreshToken),\n },\n skipAuthRefresh: true,\n })\n }\n}\n","import autoBind from 'auto-bind'\n\nimport { User, UserAddress } from 'api/domain/user'\nimport { ActionResult, Optional, CountriesParams } from 'api/domain/app'\nimport { AppApiBase } from 'api/core/AppApiBase'\n\nexport type SetUserBasicInfo = {\n first_name: string\n last_name: string\n username: Optional\n}\n\nexport class ProfileApi {\n constructor(protected api: AppApiBase) {\n autoBind(this)\n }\n\n async me() {\n const data = await this.api.get('/profile/')\n return data.avatar ? { ...data, avatar: `${data.avatar}?${new Date().getTime()}` } : data\n }\n\n setBasicInfo(body: SetUserBasicInfo) {\n return this.api.patch('/profile/', body)\n }\n\n async getCountries(params?: CountriesParams) {\n const data = await this.api.get<{ countries: { [key: string]: string } }>('/info/countries', {\n ...params,\n })\n\n return data\n }\n\n updateBillingInfo(body: UserAddress) {\n return this.api.patch('/profile/', body)\n }\n\n uploadAvatar(photo: Blob) {\n const config = {\n headers: { 'Content-Type': 'multipart/form-data' },\n }\n const formData = new FormData()\n formData.append('file', photo)\n return this.api.put('/profile/avatar', formData, config)\n }\n\n deleteAvatar() {\n return this.api.delete('/profile/avatar')\n }\n\n changeEmailInit() {\n return this.api.post('/profile/change_email')\n }\n\n changeEmailOtpOld(body: { email: string; otp: string }) {\n return this.api.post('/profile/change_email_otp_old', body)\n }\n\n changeEmailConfirm(body: { token: string }) {\n return this.api.post('/profile/change_email_token_new', body)\n }\n\n changeEmailOtpNew(body: { otp: string }) {\n return this.api.post('/profile/change_email_otp_new', body)\n }\n}\n","import autoBind from 'auto-bind'\n\nimport { ActionResult, PaginatedResponse, TableParams } from 'api/domain/app'\nimport { Category, ImageDetailInfo, ImageInfo, PurchasedInfo, Tag } from 'api/domain/images'\nimport { AppApiBase } from 'api/core/AppApiBase'\n\nexport class ImagesApi {\n constructor(protected api: AppApiBase) {\n // @ts-ignore\n this.api.axiosClient.defaults.paramsSerializer = (params: any) => {\n const p = new URLSearchParams()\n Object.keys(params).map(key => {\n if (Array.isArray(params[key]) && params[key].length > 0) {\n params[key].map((i: any) => i !== undefined && p.append(key, i))\n } else {\n params[key] !== undefined && p.append(key, params[key])\n }\n return null\n })\n\n return p\n }\n\n autoBind(this)\n }\n\n fetchImages(params?: TableParams) {\n return this.api.get>('/p/images/', { ...params })\n }\n\n fetchPrivateImages(params?: TableParams) {\n return this.api.get>('/images/', { ...params })\n }\n\n getTags(params?: TableParams) {\n return this.api.get>('/p/images/tags', { ...params })\n }\n\n getCategories(params?: TableParams) {\n return this.api.get>('/p/images/categories', { ...params })\n }\n\n getImageById(id: ImageInfo['id']) {\n return this.api.get(`/p/images/${id}`)\n }\n\n getPrivateImageById(id: ImageInfo['id']) {\n return this.api.get(`/images/${id}`)\n }\n\n purchaseImageById(id: ImageInfo['id']) {\n return this.api.get(`/images/${id}/purchase`)\n }\n\n getPurchasedImages(params?: TableParams) {\n return this.api.get>(`/images/`, {\n ...params,\n is_purchased: true,\n })\n }\n\n downloadImageById(id: ImageInfo['id']) {\n return this.api.get(`/images/${id}/download`)\n }\n\n addImageToFavourite(id: ImageInfo['id']) {\n return this.api.post(`/images/favorites/${id}`)\n }\n\n removeImageFromFavourite(id: ImageInfo['id']) {\n return this.api.delete(`/images/favorites/${id}`)\n }\n\n getFavouritesImages(params?: TableParams) {\n return this.api.get>(`/images/`, {\n ...params,\n is_favorite: true,\n })\n }\n}\n","import autoBind from 'auto-bind'\n\nimport { ActionResult, PaginatedResponse, TableParams } from 'api/domain/app'\nimport { VideoDetailInfo, VideoInfo, PurchasedInfo } from 'api/domain/videos'\nimport { AppApiBase } from 'api/core/AppApiBase'\n\nexport class VideosApi {\n constructor(protected api: AppApiBase) {\n // @ts-ignore\n this.api.axiosClient.defaults.paramsSerializer = (params: any) => {\n const p = new URLSearchParams()\n Object.keys(params).map(key => {\n if (Array.isArray(params[key]) && params[key].length > 0) {\n params[key].map((i: any) => i !== undefined && p.append(key, i))\n } else {\n params[key] !== undefined && p.append(key, params[key])\n }\n return null\n })\n\n return p\n }\n\n autoBind(this)\n }\n\n fetchVideos(params?: TableParams) {\n return this.api.get>('/videos/', { ...params })\n // return this.api.get>('/p/videos/', { ...params })\n }\n\n fetchPrivateVideos(params?: TableParams) {\n return this.api.get>('/videos/', { ...params })\n }\n\n getVideoById(id: VideoInfo['id']) {\n return this.api\n .get>('/videos/', { ids: id })\n .then(data => data?.data?.[0])\n }\n\n getPrivateVideoById(id: VideoInfo['id']) {\n return this.api\n .get>('/videos/', { ids: id })\n .then(data => data?.data?.[0])\n }\n\n purchaseVideoById(id: VideoInfo['id']) {\n return this.api.post(`/videos/${id}/purchase`)\n }\n\n getPurchasedVideos(params?: TableParams) {\n return this.api.get>(`/videos/`, {\n ...params,\n is_purchased: true,\n })\n }\n\n downloadVideoById(id: VideoInfo['id']) {\n return this.api.get(`/images/${id}/download`)\n }\n}\n","import autoBind from 'auto-bind'\n\nimport { AppApiBase } from 'api/core/AppApiBase'\nimport { UserTransaction } from 'api/domain/transactions'\nimport { Currency } from 'api/domain'\nimport { paymentHeaders } from 'utils'\n\nexport type BalanceInfo = {\n balance: number\n}\n\nexport type MakePurchase = {\n source_currency: Currency\n dst_amount?: number\n src_amount?: number\n promo_code?: string\n}\n\nexport class CreditsApi {\n constructor(protected api: AppApiBase) {\n autoBind(this)\n }\n\n getBalance() {\n return this.api.get('/credits/balance')\n }\n\n makePurchase(body: MakePurchase): Promise {\n return this.api.post(`/credits/purchase`, body, { headers: paymentHeaders() })\n }\n}\n","import autoBind from 'auto-bind'\n\nimport { AppApiBase } from 'api/core/AppApiBase'\nimport {\n PaymentInfo,\n TransferInfo,\n TransferTransaction,\n UserTransaction,\n} from 'api/domain/transactions'\nimport { NewCardSchema, CardsList, PaySchema, Card } from 'api/domain/cards'\nimport { ActionResult, PaginatedResponse, TableParams } from 'api/domain/app'\nimport { PurchaseData } from 'api/domain/images'\nimport { paymentHeaders } from 'utils'\n\nexport class UserTransactionApi {\n constructor(protected api: AppApiBase) {\n autoBind(this)\n }\n\n async transferTransaction(data: TransferTransaction) {\n return this.api.post(`/transaction/transfer`, data)\n }\n\n async redirectConfirm(id: UserTransaction['uuid']) {\n return this.api.post(`/transaction/${id}/redirect_confirm`)\n }\n\n async getTransactionsHistory(params?: TableParams) {\n return this.api.get>(`/transaction/history`, params)\n }\n\n async downloadPdfReceipt(uuid: UserTransaction['uuid']) {\n return this.api.get(\n `/transaction/${uuid}/pdf_receipt`,\n { transaction_id: uuid },\n { responseType: 'blob' },\n )\n }\n\n async downloadPdfInvoice(uuid: PurchaseData['id']) {\n return this.api.get(\n `/transaction/${uuid}/pdf_invoice`,\n { purchase_id: uuid },\n { responseType: 'blob' },\n )\n }\n\n async getTransaction(uuid: UserTransaction['uuid']) {\n return this.api.get(`/transaction/${uuid}`)\n }\n\n async cancelTransaction(uuid: UserTransaction['uuid']) {\n return this.api.delete(`/transaction/${uuid}`)\n }\n\n async getPaymentInfo(uuid: UserTransaction['uuid']) {\n return this.api.get(\n `/transaction/${uuid}/payment`,\n {},\n { timeout: 70 * 1000, headers: paymentHeaders() },\n )\n }\n\n async getCardsList(id: UserTransaction['uuid']): Promise {\n return this.api.get(`/transaction/${id}/cards`)\n }\n\n async addNewCard(id: UserTransaction['uuid'], data: NewCardSchema): Promise {\n const newData = {\n ...data,\n transaction_id: id,\n exp_year: data?.exp_year?.length === 2 ? `20${data?.exp_year}` : data.exp_year,\n }\n return this.api.post(`/transaction/${id}/cards`, newData)\n }\n\n async removeCard(id: UserTransaction['uuid'], cardId: Card['id']): Promise {\n return this.api.delete(`/transaction/${id}/cards/${cardId}`)\n }\n\n async payWithCard(id: UserTransaction['uuid'], data: PaySchema): Promise {\n return this.api.post(`/transaction/${id}/pay`, data, {\n timeout: 70 * 1000,\n headers: paymentHeaders(),\n })\n }\n}\n","import { ImageInfo } from 'api/domain/images'\nimport { VideoInfo } from 'api/domain/videos'\nimport { UserTransaction } from 'api'\n\nexport const cacheKeys = {\n myRole: 'myRole',\n myProfile: 'myProfile',\n legalInfo: 'legalInfo',\n imageDetail: (id: ImageInfo['id'], isAuth: boolean) => ['imageDetail', { id, isAuth }],\n videoDetail: (id: VideoInfo['id'], isAuth: boolean) => ['imageDetail', { id, isAuth }],\n transactionInfo: (uuid: UserTransaction['uuid']) => ['transactionInfo', { uuid }],\n}\n","import autoBind from 'auto-bind'\nimport axios, { AxiosInstance } from 'axios'\nimport { AxiosAuthRefreshRequestConfig } from 'axios-auth-refresh'\nimport qs from 'qs'\n\nexport type ApiBaseProps = {\n headers?: Record\n} & AxiosAuthRefreshRequestConfig\n\nexport type RequestOptions = {\n fullResponse?: boolean\n} & AxiosAuthRefreshRequestConfig\n\n// This is a base API class. It has all needed methods to send request to an api server and proceeds the errors.\n// You may create a service which extends or DI (dependency injection) this class.\nexport class ApiBase {\n public readonly axiosClient: AxiosInstance\n\n constructor({ headers, timeout = 10000, ...rest }: ApiBaseProps) {\n this.axiosClient = axios.create({\n headers: {\n Accept: 'application/json',\n 'content-type': 'application/json',\n ...headers,\n },\n timeout,\n paramsSerializer: params => qs.stringify(params),\n responseType: 'json',\n ...rest,\n })\n\n autoBind(this)\n }\n\n async request({ fullResponse, ...options }: RequestOptions): Promise {\n return this.axiosClient.request(options).then(res => res.data)\n }\n\n async get(url: string, params?: object | string, options?: RequestOptions) {\n return this.request({ url, method: 'get', params, ...options })\n }\n\n async post(url: string, body?: object, options?: RequestOptions) {\n return this.request({ url, method: 'post', data: body, ...options })\n }\n\n async put(url: string, data?: object, options?: RequestOptions) {\n return this.request({ url, method: 'put', data, ...options })\n }\n\n async patch(url: string, data?: object, options?: RequestOptions) {\n return this.request({ url, method: 'patch', data, ...options })\n }\n\n async delete(url: string, params?: object | string, options?: RequestOptions) {\n return this.request({ url, method: 'delete', data: params, ...options })\n }\n}\n","type ConstructorProps = {\n message: string\n statusCode?: number\n type?: string\n details?: TDetails\n}\n\nexport class ApiErrorBase extends Error {\n public readonly message: string\n public readonly type?: string\n public readonly statusCode?: number\n public readonly details?: TDetails\n\n constructor({ message, type, statusCode, details }: ConstructorProps) {\n super(message)\n this.name = 'ApiError'\n this.type = type\n this.message = message\n this.statusCode = statusCode\n this.details = details\n }\n\n toString() {\n // let msg = this.message\n // if (this.statusCode && !this.message?.includes(this.statusCode.toString())) {\n // msg += ` (status: ${this.statusCode})`\n // }\n return this.message?.toString() || 'Unhandled API error'\n }\n}\n","import { AxiosError } from 'axios'\n\nimport { ApiErrorBase } from 'api/core/ApiErrorBase'\nimport { ValidationException } from 'api/errors/ValidationException'\nimport { ApiException } from 'api/errors/ApiException'\n\nasync function checkBLobData(error: any): Promise {\n if (\n error.request?.responseType === 'blob' &&\n error.response &&\n error.response.data instanceof Blob &&\n error.response.data.type &&\n error.response.data.type.toLowerCase().indexOf('json') !== -1\n ) {\n const responseObj = await error.response.data.text()\n return JSON.parse(responseObj)\n }\n return error.response?.data\n}\n\nexport async function extractApiError(axiosError: AxiosError): Promise {\n return checkBLobData(axiosError).then(data => {\n if (axiosError.response) {\n const { status } = axiosError.response\n\n if (data.detail) {\n return new ValidationException(data, axiosError.response)\n }\n if (data.errors) {\n return new ApiException(data, axiosError.response)\n }\n return new ApiErrorBase({\n message: axiosError.message,\n statusCode: status,\n details: data,\n })\n }\n\n if (axiosError.message) {\n return new ApiErrorBase({\n message: axiosError.message,\n statusCode: axiosError.code ? +axiosError.code : undefined,\n })\n }\n\n return new ApiErrorBase({\n message: 'Unhandled error happened',\n })\n })\n}\n","import autoBind from 'auto-bind'\n\nimport { ApiBase, RequestOptions } from 'api/core/ApiBase'\nimport { extractApiError } from 'api/errors/extractApiError'\n\nexport type AppPlatform = 'app' | 'dash' | 'pay'\n\nexport type AppApiBaseProps = {\n baseURL: string\n brand: string\n platform: AppPlatform\n}\n\nexport class AppApiBase extends ApiBase {\n constructor({ baseURL, brand, platform }: AppApiBaseProps) {\n super({\n baseURL,\n headers: {\n 'x-brand': brand,\n platform,\n },\n })\n autoBind(this)\n }\n\n async request(options: RequestOptions): Promise {\n return super.request(options).catch(async err => {\n throw await extractApiError(err)\n })\n }\n}\n","export type CurrencyInfo = {\n apiName: Currency\n fullName: string\n name: string\n decimals: number\n maxValue: number\n}\n\nexport const currenciesArr = ['btc', 'eur', 'nok', 'sek', 'dkk', 'usd', 'cad'] as const\n\nexport type Currency = typeof currenciesArr[number]\n\nconst fiatDefault = {\n decimals: 2,\n maxValue: 999999,\n}\n\nexport const currenciesInfo: Record = {\n btc: {\n name: 'BTC',\n apiName: 'btc',\n fullName: 'Bitcoin',\n decimals: 8,\n maxValue: 50,\n },\n eur: {\n name: 'EUR',\n apiName: 'eur',\n fullName: 'Euro',\n ...fiatDefault,\n },\n nok: {\n name: 'NOK',\n apiName: 'nok',\n fullName: 'Norwegian Krone',\n ...fiatDefault,\n },\n sek: {\n name: 'SEK',\n apiName: 'sek',\n fullName: 'Sweden Krone',\n ...fiatDefault,\n },\n dkk: {\n name: 'DKK',\n apiName: 'dkk',\n fullName: 'Denmark Krone',\n ...fiatDefault,\n },\n usd: {\n name: 'USD',\n apiName: 'usd',\n fullName: 'USA Dollar',\n ...fiatDefault,\n },\n cad: {\n name: 'CAD',\n apiName: 'cad',\n fullName: 'Canadian Dollar',\n ...fiatDefault,\n },\n} as const\n","import { Currency } from 'api/domain/currency'\n\nimport { Optional } from '../app'\n\nimport { PaymentProvider } from './paymentProvider'\nimport { TransactionBase } from './baseTransaction'\n\nexport type IntegrationType = 'server' | 'hosted'\nexport type PaymentSource = 'user' | 'merchant'\n\nexport enum B2CTransactionType {\n purchase = 1,\n sale = 2,\n transfer = 3,\n}\n\nexport const b2cTypesNaming: Record = {\n [B2CTransactionType.purchase]: 'Purchase',\n [B2CTransactionType.sale]: 'Sale',\n [B2CTransactionType.transfer]: 'Transfer',\n}\n\n/**\n * B2C transaction with all fields, used in admin endpoints\n */\nexport interface B2CTransactionRaw extends TransactionBase {\n type: B2CTransactionType\n provider_id: Optional\n provider: Optional\n b2b_tx_id: Optional\n b2b_tx_uuid: Optional\n b2c_fee_id: number\n\n source_amount: number\n source_currency: Currency\n destination_amount: number\n destination_currency: Currency\n\n fee: number\n spread_fee: number\n exchange_rate: Optional\n\n recipient_user_id: number\n sender_user_id: number\n}\n","import { TransactionStatus } from './transactionStatus'\n\nexport enum PaymentProvider {\n powercash = 1,\n unlimit = 2,\n emerchantpay = 4,\n noovei = 5,\n}\n\nexport type KeyInfo = {\n public_key: string\n}\n\nexport type NextAction = {\n type:\n | 'request_redirect'\n | 'redirect_link'\n | 'iframe_link'\n | 'wait_and_poll'\n | 'create_payment'\n | 'custom_fingerprint_1'\n data: {\n url: string\n method: string\n headers: Record\n payload: string\n }\n created_at: string\n}\n\nexport type PaymentInfo = {\n next_action: NextAction\n payment_status: TransactionStatus\n}\n\nexport type InitPaymentRequest = {}\n\nexport type FingerPrintIdRequest = {\n uuid: string\n device_fingerprint: string\n}\n\nexport const paymentProviderNaming: Record = {\n [PaymentProvider.powercash]: 'Powercash',\n [PaymentProvider.unlimit]: 'Unlimit',\n [PaymentProvider.emerchantpay]: 'Emerchantpay',\n [PaymentProvider.noovei]: 'Noovei',\n}\n","import { AxiosResponse } from 'axios'\n\nimport { ApiExceptionJSON } from 'api/domain/app'\nimport { ApiErrorBase } from 'api/core/ApiErrorBase'\n\nexport class ApiException extends ApiErrorBase {\n constructor({ errors }: ApiExceptionJSON, { status }: AxiosResponse) {\n const error = errors[0]\n\n if (error) {\n super({\n message: error.detail,\n type: error.status,\n statusCode: status,\n })\n } else {\n super({\n message: 'Unhandled API error',\n statusCode: status,\n })\n }\n }\n}\n","import { AxiosResponse } from 'axios'\n\nimport { ApiErrorBase } from 'api/core/ApiErrorBase'\nimport { ValidationExceptionJSON } from 'api/domain/app'\n\nexport class ValidationException extends ApiErrorBase {\n constructor({ detail }: ValidationExceptionJSON | { detail: any }, { status }: AxiosResponse) {\n const error = Array.isArray(detail) ? detail[0] : detail\n if (typeof error === 'string') {\n super({\n message: error,\n statusCode: status,\n })\n } else if (typeof error === 'object') {\n super({\n message: error.msg,\n type: error.type,\n statusCode: status,\n })\n } else {\n super({\n message: 'Unhandled API error',\n statusCode: status,\n })\n }\n }\n}\n","import { useQuery, QueryFunction, QueryKey, UseQueryOptions } from 'react-query'\n\nimport { ApiErrorBase } from 'api/core/ApiErrorBase'\n\nimport { useOnApiError } from './useOnApiError'\n\nexport type QueryOptions<\n TQueryFnData = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = Omit, 'queryKey' | 'queryFn'>\n\n/**\n * Override default query onError functions to catch the unauthorized errors and refresh the session\n */\nexport function useApiQuery<\n TQueryFnData = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n queryKey: TQueryKey,\n queryFn: QueryFunction,\n options?: QueryOptions,\n) {\n return useQuery(queryKey, queryFn, {\n ...options,\n onError: useOnApiError(options?.onError),\n })\n}\n","import { useCallback } from 'react'\n\nimport { useOnErrorSnackbar } from 'hooks'\nimport { ApiErrorBase } from 'api/core/ApiErrorBase'\n\nexport function useOnApiError(onError?: Function) {\n const onErrorSnackbar = useOnErrorSnackbar()\n return useCallback(\n (apiError: ApiErrorBase, ...args: any) => {\n onError?.(apiError, ...args)\n return onErrorSnackbar(\n apiError,\n apiError.statusCode ? `http status: ${apiError.statusCode}` : undefined,\n )\n },\n [onError, onErrorSnackbar],\n )\n}\n","import { useCallback } from 'react'\nimport set from 'lodash/set'\nimport { QueryKey, useQueryClient } from 'react-query'\n\nexport function useUpdateQuery(cacheKey: QueryKey) {\n const queryClient = useQueryClient()\n return useCallback(\n (data: TData, updatePath?: string) =>\n queryClient.setQueryData(cacheKey, (oldUser: any) =>\n updatePath ? set(oldUser, updatePath, data) : data,\n ),\n [cacheKey, queryClient],\n )\n}\n","import { useMutation, UseMutationOptions, MutationFunction } from 'react-query'\n\nimport { ApiErrorBase } from 'api/core/ApiErrorBase'\n\nimport { useOnApiError } from './useOnApiError'\n\n/**\n * Override default mutation onError functions to catch the unauthorized errors and refresh the session\n */\nexport function useApiMutation(\n mutationFn: MutationFunction,\n options?: Omit, 'mutationFn'>,\n) {\n return useMutation(mutationFn, {\n ...options,\n onError: useOnApiError(options?.onError),\n })\n}\n","import { QueryFunction, QueryKey } from 'react-query'\n\nimport { useAuth } from 'api/providers'\n\nimport { useApiQuery, QueryOptions } from './useApiQuery'\n\n/**\n * Supplement useApiQuery with \"enabled: isReady\":\n * Used to prevent api calls when authorization is not complete.\n */\nexport function useApiReadyQuery<\n TQueryFnData = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n queryKey: TQueryKey,\n queryFn: QueryFunction,\n options?: QueryOptions,\n) {\n const { isReady } = useAuth()\n return useApiQuery(queryKey, queryFn, {\n ...options,\n enabled: isReady,\n })\n}\n","import { useApiReadyQuery } from 'api/hooks/helpers/useApiReadyQuery'\nimport { QueryOptions } from 'api/hooks/helpers/useApiQuery'\nimport { cacheKeys } from 'api/cacheKeys'\nimport { User } from 'api/domain/user'\nimport { useAppApi } from 'api/providers/AppApiProvider'\nimport { ProfileApi } from 'api/APIs/ProfileApi'\nimport { useUpdateQuery } from 'api/hooks/helpers/useUpdateQuery'\n\nexport function useMyProfile(options?: QueryOptions) {\n const profileApi = useAppApi(ProfileApi)\n\n const updateUser = useUpdateQuery(cacheKeys.myProfile)\n const query = useApiReadyQuery(cacheKeys.myProfile, () => profileApi.me(), {\n ...options,\n })\n\n return { updateUser, ...query }\n}\n","import { QueryOptions, useAppApi, useApiQuery, VideosApi, useMyProfile, useUpdateQuery } from 'api'\nimport { VideoDetailInfo, VideoInfo } from 'api/domain/videos'\nimport { cacheKeys } from 'api/cacheKeys'\n\nexport function useVideoDetail(id: VideoInfo['id'], options?: QueryOptions) {\n const myProfile = useMyProfile()\n const videosApi = useAppApi(VideosApi)\n const method = myProfile.data ? 'getPrivateVideoById' : 'getVideoById'\n\n const updateDetailVideo = useUpdateQuery(cacheKeys.videoDetail(id, !!myProfile.data))\n\n const query = useApiQuery(\n cacheKeys.videoDetail(id, !!myProfile.data),\n () => videosApi[method](id),\n {\n refetchOnMount: true,\n ...options,\n },\n )\n\n return { updateDetailVideo, ...query }\n}\n","import { useEffect } from 'react'\nimport { UseMutationOptions } from 'react-query'\n\nimport { TokenPair } from 'api/domain/auth'\nimport { useApiMutation, useAuth, useAppApi } from 'api'\nimport { AuthApi } from 'api/APIs'\n\nexport function useAutologin({\n token,\n onSuccess,\n onError,\n ...options\n}: { token: string | null | undefined } & UseMutationOptions) {\n const { login } = useAuth()\n const authApi = useAppApi(AuthApi)\n\n const { mutate, ...rest } = useApiMutation(\n () => {\n if (!token) throw new Error('Token is not provided')\n return authApi.loginWithToken(token)\n },\n {\n ...options,\n onSuccess: (pair, ...args) => {\n login(pair)\n onSuccess?.(pair, ...args)\n },\n onError: (...args) => onError?.(...args),\n },\n )\n\n useEffect(() => {\n mutate()\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n\n return {\n mutate,\n ...rest,\n }\n}\n","import { createContext, useMemo } from 'react'\n\nimport { useContextWithCheck } from 'hooks'\nimport { AppApiBase } from 'api/core/AppApiBase'\n\nimport { AppApiContextProps, AppApiProviderProps } from './index'\n\nconst AppApiContext = createContext(undefined)\n\nexport const AppApiProvider = ({\n children,\n baseURL,\n platform,\n brand,\n}: AppApiProviderProps): JSX.Element => {\n const apiInstance = useMemo(\n () =>\n new AppApiBase({\n baseURL,\n brand,\n platform,\n }),\n [baseURL, brand, platform],\n )\n\n return (\n \n {children}\n \n )\n}\n\nexport const useAppApiContext = () => useContextWithCheck(AppApiContext)\n\n/**\n * Creates the instance of provided ApiService using props from context\n */\nexport function useAppApi(ApiService: new (api: AppApiBase) => T): T {\n const { apiInstance } = useContextWithCheck(AppApiContext)\n return useMemo(() => new ApiService(apiInstance), [ApiService, apiInstance])\n}\n","import { createContext, useCallback, useEffect, useState } from 'react'\nimport { useQueryClient } from 'react-query'\nimport createAuthRefreshInterceptor from 'axios-auth-refresh'\nimport { Maybe } from 'yup/lib/types'\n\nimport {\n selectAccessToken,\n selectRefreshToken,\n setTokenPair,\n clearTokens,\n logoutUser,\n} from 'api/reduxSlices/auth'\nimport { useContextWithCheck } from 'hooks'\nimport { AuthApi } from 'api/APIs/AuthApi'\nimport { TokenPair, TokenType } from 'api/domain/auth'\nimport { tokenToString } from 'api/utils'\nimport { useAppApiContext } from 'api/providers/AppApiProvider'\n\nimport { AuthProviderProps, AuthContextProps } from './index'\n\nconst AuthContext = createContext(undefined)\n\n/**\n * AuthProvider is used as a supplement to the AppApi context.\n * It provides methods to make login, logout and to refresh the session (which is called initially on mount to make autologin).\n */\nexport const AuthProvider = ({ children, onLogout }: AuthProviderProps): JSX.Element => {\n const queryClient = useQueryClient()\n const { apiInstance } = useAppApiContext()\n\n const [isReady, setIsReady] = useState(false)\n\n const [isLoading, setIsLoading] = useState(true)\n const checkToStart = (tkn: Maybe) => {\n const ready = !!tkn\n setIsReady(ready)\n }\n\n /**\n * Login method\n */\n const login = useCallback(async (newTokens: TokenPair) => {\n await setTokenPair(newTokens)\n checkToStart(newTokens.access_token)\n }, [])\n\n /**\n * Logout method.\n * Resets the access and refresh tokens, clears react-query cache.\n */\n const logout = useCallback(async () => {\n onLogout?.()\n clearTokens()\n setIsReady(false)\n logoutUser()\n queryClient.clear()\n }, [onLogout, queryClient])\n\n /**\n * Refresh session method\n */\n const refreshSession = useCallback(() => {\n const refreshToken = selectRefreshToken()\n\n if (!refreshToken) {\n return Promise.reject('Refresh token has expired')\n }\n return new AuthApi(apiInstance).refresh(refreshToken).then(newTokens => {\n setTokenPair(newTokens)\n checkToStart(newTokens.access_token)\n return newTokens\n })\n }, [apiInstance])\n\n /**\n * Add authorization token to each request\n */\n useEffect(() => {\n apiInstance.axiosClient.interceptors.request.use(request => {\n const accessToken = selectAccessToken()\n if (accessToken) {\n // @ts-ignore\n request.headers = {\n ...request.headers,\n Authorization:\n request.url === '/auth/refresh'\n ? request.headers?.Authorization || tokenToString(accessToken)\n : tokenToString(accessToken),\n }\n }\n return request\n })\n }, [apiInstance])\n\n /**\n * Setup axios-auth-refresh\n */\n useEffect(() => {\n createAuthRefreshInterceptor(\n apiInstance.axiosClient,\n failedRequest => {\n return refreshSession()\n .then(({ access_token }) => {\n if (failedRequest) {\n failedRequest.response.config.headers['Authorization'] = tokenToString(access_token)\n }\n })\n .catch(error => {\n clearTokens()\n setIsReady(false)\n console.error('%o', error)\n })\n },\n {\n statusCodes: [401],\n // pauseInstanceWhileRefreshing: true,\n // shouldRefresh: error => error?.response?.data?.error_code === 89,\n },\n )\n }, [apiInstance, refreshSession])\n\n useEffect(() => {\n const tkn = selectAccessToken()\n try {\n checkToStart(tkn)\n } finally {\n setIsLoading(false)\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n\n /**\n * Make autologin with refresh token on mount\n */\n // useEffect(() => {\n // refreshSession()\n // .catch()\n // .finally(() => setIsLoading(false))\n // eslint-disable-next-line react-hooks/exhaustive-deps\n // }, [])\n\n return (\n \n {children}\n \n )\n}\n\n/**\n * Hook to access AuthContext\n */\nexport const useAuth = () => useContextWithCheck(AuthContext)\n","import { Maybe } from 'yup/lib/types'\n\nimport { TokenType, TokenPair } from 'api/domain/auth'\n\nconst ACCESS_TOKEN_KEY = 'accessToken'\nconst REFRESH_TOKEN_KEY = 'refreshToken'\n\nexport const selectAccessToken = (): Maybe => {\n let token = null\n try {\n const parsedToken = window.localStorage.getItem(ACCESS_TOKEN_KEY) || ''\n token = JSON.parse(parsedToken)\n // eslint-disable-next-line no-empty\n } catch (e) {}\n return token\n}\nexport const selectRefreshToken = (): Maybe => {\n let token = null\n try {\n const parsedToken = window.localStorage.getItem(REFRESH_TOKEN_KEY) || ''\n token = JSON.parse(parsedToken)\n // eslint-disable-next-line no-empty\n } catch (e) {}\n return token\n}\n\nexport const setAccessToken = (token: TokenType) => {\n window.localStorage.setItem(ACCESS_TOKEN_KEY, JSON.stringify(token))\n}\nexport const setTokenPair = (tokens: TokenPair) => {\n window.localStorage.setItem(ACCESS_TOKEN_KEY, JSON.stringify(tokens?.access_token))\n window.localStorage.setItem(REFRESH_TOKEN_KEY, JSON.stringify(tokens?.refresh_token))\n}\n\nexport const clearTokens = () => {\n window.localStorage.setItem(ACCESS_TOKEN_KEY, '')\n window.localStorage.setItem(REFRESH_TOKEN_KEY, '')\n}\nexport const logoutUser = () => {\n console.log('logoutUser')\n}\n// export const logoutUser = createAction(`${AUTH_KEY_NAME}/logoutUser`)\n","import { Maybe } from 'yup/lib/types'\n\nimport { TokenType } from 'api/domain/auth'\n\nexport const tokenToString = (token: Maybe): string =>\n token ? `${token.token_type} ${token.token}` : ''\n\nexport const isTokenExpired = (expire: string) => new Date(expire).getTime() < new Date().getTime()\n","import { Helmet } from 'react-helmet-async'\n\nimport { SeoProps } from './index'\n\n/**\n * og: - Facebook Meta Tags\n * twitter: Twitter Meta Tags\n * itemProp - Google / Search Engine Tags\n *\n * if you are adding new tag - keep in mind to add 'key' or 'name' unique attribute\n */\nfunction Seo({\n title,\n description,\n keywords,\n preview,\n children,\n type = 'website',\n}: SeoProps): JSX.Element {\n const previewSrc = preview ?? '/preview.jpg'\n return (\n \n {title != null && {title}}\n {title != null && }\n {title != null && }\n {title != null && }\n\n {description != null && }\n {description != null && (\n \n )}\n {description != null && }\n {description != null && (\n \n )}\n\n {previewSrc != null && }\n {previewSrc != null && }\n {previewSrc != null && }\n\n {keywords != null && }\n\n \n \n \n \n )\n}\n\nexport default Seo\n","import { fontSizes } from 'styles/theme/typography'\nimport { radii } from 'styles/theme/shapings'\n\nexport type ButtonSize = 'small' | 'def'\n\ntype ButtonSizeProps = {\n minHeight: number // rem\n maxHeight: number // rem\n fontSize: string | number\n borderRadius: string | number\n}\n\nexport const btnSizes: Record = {\n small: {\n minHeight: 2.25,\n maxHeight: 2.5,\n fontSize: fontSizes.default,\n borderRadius: radii.default,\n },\n def: {\n minHeight: 2.5,\n maxHeight: 3.5,\n fontSize: fontSizes.default,\n borderRadius: radii.default,\n },\n}\n","import styled, { css } from 'styled-components'\nimport { color, space, typography, layout } from 'styled-system'\nimport ButtonBase from '@mui/material/ButtonBase'\nimport { darken } from '@mui/material/styles'\n\nimport { responsiveProperty } from 'styles/utils'\n\nimport { ButtonSize, btnSizes } from './Button.sizes'\nimport { ButtonColor, btnColors } from './Button.variants'\n\nexport const buttonCss = css<{ $size: ButtonSize; $color: ButtonColor; $isLoading: boolean }>`\n appearance: none;\n position: relative;\n padding: 0.5em 2em;\n font-weight: 500;\n line-height: 1.25;\n cursor: ${({ $isLoading }) => ($isLoading ? 'progress' : 'pointer')};\n outline: none;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n text-decoration: none;\n text-transform: uppercase;\n transition-duration: ${({ theme }) => theme.transitions.duration.shorter}ms;\n\n box-shadow: none;\n fill: currentColor;\n border: none;\n width: fit-content;\n\n &:hover {\n text-decoration: none;\n box-shadow: 0 1px 4px -1px rgb(0 0 0 / 20%), 0px 2px 3px 0px rgb(0 0 0 / 7%),\n 0px 1px 3px 0px rgb(0 0 0 / 12%);\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.6;\n transform: none;\n filter: none;\n pointer-events: none;\n }\n\n ${({ $size }) => {\n const { maxHeight, minHeight, ...otherProps } = btnSizes[$size]\n return {\n ...responsiveProperty({\n max: maxHeight,\n min: minHeight,\n cssProperty: 'height',\n unit: 'rem',\n }),\n ...otherProps,\n }\n }};\n\n ${({ $color, theme }) => {\n const { color, background, hoverBg, border } = btnColors(theme)[$color]\n\n return {\n border: border ? `2px solid ${border}` : '',\n color,\n background,\n '&:hover': {\n background: hoverBg ?? darken(background, 0.2),\n },\n }\n }};\n\n .btn-icon-start {\n margin-right: 0.75em;\n }\n\n .btn-icon-end {\n margin-left: 0.75em;\n }\n`\n\nexport const ButtonStyled = styled(ButtonBase)`\n ${buttonCss};\n ${typography};\n ${color};\n ${space};\n ${layout};\n`\n","import { Theme } from '@mui/material/styles'\n\nexport type ButtonColor = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'transparent'\n\ntype ButtonStyleProps = {\n background: string\n color: string\n hoverBg?: string\n border?: string\n}\n\nexport const btnColors = ({ palette }: Theme): Record => ({\n primary: {\n background: palette.success.main,\n color: palette.success.contrastText,\n hoverBg: palette.success.dark,\n },\n transparent: {\n background: 'transparent',\n color: palette.common.white,\n hoverBg: 'transparent',\n border: palette.common.white,\n },\n secondary: {\n background: palette.secondary.main,\n color: palette.secondary.contrastText,\n hoverBg: '#f1ebeb',\n border: palette.primary.main,\n },\n success: {\n background: palette.primary.main,\n color: palette.primary.contrastText,\n hoverBg: palette.primary.dark,\n },\n warning: {\n background: palette.warning.main,\n color: palette.warning.contrastText,\n hoverBg: palette.warning.dark,\n },\n error: {\n background: palette.error.main,\n color: palette.error.contrastText,\n hoverBg: palette.error.dark,\n },\n})\n","import styled from 'styled-components'\n\nexport const Wrapper = styled.div<{ $show: boolean }>`\n opacity: ${({ $show }) => ($show ? 1 : 0)};\n transition-duration: inherit;\n display: inherit;\n justify-content: inherit;\n align-items: inherit;\n flex-direction: inherit;\n`\n","import { memo, isValidElement, cloneElement } from 'react'\nimport CircularProgress from '@mui/material/CircularProgress'\nimport Fade from '@mui/material/Fade'\n\nimport { AbsoluteCenter } from 'components/ui/Shared'\n\nimport { Wrapper } from './ButtonContent.styles'\n\nimport { ButtonContentProps } from './index'\n\nfunction ButtonContent({\n isLoading,\n children,\n text,\n iconStart,\n iconEnd,\n}: ButtonContentProps): JSX.Element {\n return (\n <>\n \n \n \n \n \n \n {isValidElement(iconStart) &&\n cloneElement(iconStart, { ...iconStart.props, className: 'btn-icon-start' })}\n {text ?? children}\n {isValidElement(iconEnd) &&\n cloneElement(iconEnd, { ...iconEnd.props, className: 'btn-icon-end' })}\n \n \n )\n}\n\nexport default memo(ButtonContent)\n","import { Link } from 'react-router-dom'\nimport React, { forwardRef, memo } from 'react'\n\nimport { ButtonStyled } from './Button.styles'\nimport ButtonContent from './ButtonContent'\n\nimport { ButtonProps } from './index'\n\nconst Button = forwardRef(\n (\n {\n size = 'def',\n color = 'primary',\n isLoading = false,\n disabled,\n href,\n\n children,\n text,\n iconStart,\n iconEnd,\n ...rest\n },\n ref,\n ) => {\n return (\n \n \n {children}\n \n \n )\n },\n)\n\nexport default memo(Button)\n","import styled from 'styled-components'\nimport { alpha } from '@mui/material/styles'\nimport { margin } from 'styled-system'\n\nexport const Container = styled.div<{ $color: string; $background?: string }>(\n ({ theme, $color, $background, ...rest }) => ({\n display: 'flex',\n alignItems: 'center',\n minHeight: '78px',\n padding: theme.spacing(1.25, 1.5),\n border: `1px solid ${theme.palette.border}`,\n background: $background ? $background : alpha($color, 0.5),\n color: 'inherit',\n // color: theme.palette.common.white,\n fontSize: theme.fontSizes.default,\n borderRadius: theme.radii.default,\n ...margin({ theme, ...rest }),\n }),\n)\n\nexport const Content = styled.div(() => ({\n paddingLeft: 10,\n flex: 1,\n}))\n\nexport const Title = styled.div`\n font-weight: 500;\n display: flex;\n gap: 10px;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n`\n\nexport const SmallText = styled.div(({ theme }) => ({\n fontSize: theme.fontSizes.small,\n margin: '0.5em 0 0',\n opacity: 0.9,\n}))\n\nexport const IconWrapper = styled.div<{ $color: string }>(({ $color }) => ({\n color: $color,\n}))\n","import { Theme, useTheme } from '@mui/material/styles'\nimport SvgIcon from '@mui/material/SvgIcon'\nimport HighlightOffRoundedIcon from '@mui/icons-material/HighlightOffRounded'\nimport CheckCircleRoundedIcon from '@mui/icons-material/CheckCircleRounded'\nimport WarningRoundedIcon from '@mui/icons-material/WarningRounded'\nimport InfoRoundedIcon from '@mui/icons-material/InfoRounded'\nimport CloseRoundedIcon from '@mui/icons-material/CloseRounded'\nimport DoneRoundedIcon from '@mui/icons-material/DoneRounded'\nimport ErrorOutlineRoundedIcon from '@mui/icons-material/ErrorOutlineRounded'\n\nimport { InfoMessageNature } from '.'\n\ntype StyleProps = {\n color: string\n background?: string\n Icon: typeof SvgIcon\n IconMin: typeof SvgIcon\n}\n\nconst getInfoMessageStyles = (theme: Theme): Record => ({\n info: {\n color: theme.palette.info.main,\n background: '#fff',\n Icon: InfoRoundedIcon,\n IconMin: InfoRoundedIcon,\n },\n error: {\n color: theme.palette.error.main,\n Icon: HighlightOffRoundedIcon,\n IconMin: CloseRoundedIcon,\n },\n warning: {\n color: theme.palette.warning.main,\n Icon: WarningRoundedIcon,\n IconMin: ErrorOutlineRoundedIcon,\n },\n success: {\n color: theme.palette.success.main,\n Icon: CheckCircleRoundedIcon,\n IconMin: DoneRoundedIcon,\n },\n})\n\nconst useInfoMessageStyle = (nature: InfoMessageNature): StyleProps => {\n const stylesMap = getInfoMessageStyles(useTheme())\n return stylesMap[nature] || stylesMap.info\n}\n\nexport default useInfoMessageStyle\n","import { Container, Content, Title, SmallText, IconWrapper } from './InfoMessage.styles'\nimport useInfoMessageStyle from './useInfoMessageStyle'\n\nimport { InfoMessageProps } from '.'\n\nfunction InfoMessage({\n title,\n rightNode,\n text,\n children,\n nature = 'info',\n ...rest\n}: InfoMessageProps): JSX.Element {\n const { color, background, Icon } = useInfoMessageStyle(nature)\n const inner = children || text\n return (\n \n \n \n \n \n \n <span>{title}</span> {rightNode}\n \n {inner && {inner}}\n \n \n )\n}\n\nexport default InfoMessage\n","import styled, { css } from 'styled-components'\nimport { Link as LinkRouter } from 'react-router-dom'\n\nimport { TitleMd, TitleSm, TitleXs, TitleBase } from 'components/ui/Typography'\nimport { responsiveFontSize } from 'styles/utils'\n\nexport const LinkComponent = styled(LinkRouter)`\n color: ${({ theme }) => theme.palette.primary.main};\n text-decoration: none;\n font-weight: 400;\n &:hover {\n color: ${({ theme }) => theme.palette.primary.dark};\n text-decoration: underline;\n }\n`\n\nexport const linkCss = css`\n text-decoration: underline;\n transition-duration: 100ms;\n &:hover {\n text-decoration: underline;\n color: ${({ theme }) => theme.palette.primary.main};\n }\n`\n\nexport const contentWidth = '1164px'\n\nexport const MarkdownContent = styled.div`\n ${({ theme }) => responsiveFontSize(theme.fontSizes.medium)};\n max-width: ${contentWidth};\n margin: 0 auto;\n\n a {\n ${linkCss};\n }\n`\n\nexport const Paragraph = styled.p`\n margin: 1.25em 0;\n max-width: ${contentWidth};\n`\n\nexport const H1 = styled(TitleBase).attrs({ asComp: 'h1' })`\n margin: 1em 0 1rem;\n ${responsiveFontSize('3.5rem')};\n`\n\nexport const H2 = styled(TitleMd).attrs({ asComp: 'h2' })`\n margin: 2em 0 0.5em;\n padding-bottom: 0.5em;\n border-bottom: 1px solid rgba(48, 48, 48, 0.7);\n`\n\nexport const H3 = styled(TitleMd).attrs({ asComp: 'h3' })`\n margin: 2em 0 1em;\n`\n\nexport const H4 = styled(TitleSm).attrs({ asComp: 'h4' })`\n margin: 2em 0 1em;\n`\n\nexport const H5 = styled(TitleXs).attrs({ asComp: 'h5' })`\n margin: 2em 0 1em;\n`\n\nexport const H6 = styled(TitleXs).attrs({ asComp: 'h6' })`\n margin: 1.5em 0 1em;\n`\n\nexport const UnorderedList = styled.ul`\n list-style: none;\n padding-inline-start: 1.5em;\n margin: 1em 0;\n max-width: ${contentWidth};\n\n & > li {\n width: 100%;\n margin-bottom: 0.75rem;\n\n p {\n display: inline;\n margin: 0;\n }\n\n &:before {\n content: '\\\\2022';\n color: ${({ theme }) => theme.palette.primary.main};\n font-weight: bold;\n display: inline-block;\n width: 1.5em;\n //margin-left: -1.5em;\n }\n }\n`\n\nexport const OrderedList = styled.ol`\n list-style: none;\n counter-reset: li;\n padding-inline-start: 1.5em;\n margin: 1em 0;\n max-width: ${contentWidth};\n\n & > li {\n width: 100%;\n counter-increment: li;\n margin-bottom: 0.75rem;\n\n &::before {\n content: counter(li) '.';\n color: ${({ theme }) => theme.palette.primary.main};\n font-weight: bold;\n display: inline-block;\n width: 1.5em;\n margin-left: -1.5em;\n }\n }\n`\n\nexport const Blockquote = styled.blockquote`\n ${({ theme }) => responsiveFontSize(theme.fontSizes.medium)};\n display: block;\n font-weight: 500;\n padding: 2em 0 0 1em;\n position: relative;\n margin: 3em 0;\n\n &:before {\n content: '';\n position: absolute;\n top: 0;\n left: 1em;\n height: 4px;\n width: 130px;\n background: linear-gradient(260deg, #4eac60 0%, #324a57 100%);\n border-radius: 10rem;\n }\n\n p {\n margin: 0;\n }\n`\n\nexport const Link = styled(LinkComponent).attrs({ target: '_blank' })``\n\nexport const Image = styled.img.attrs({ lazy: true })`\n width: 100%;\n max-height: 700px;\n object-fit: contain;\n\n margin: 2rem 0;\n cursor: zoom-in;\n & > * {\n transition-duration: 200ms;\n }\n\n &:hover {\n & > * {\n transform: scale(1.02);\n }\n }\n`\n","import {\n H1,\n H2,\n H3,\n H4,\n H5,\n H6,\n Paragraph,\n UnorderedList,\n OrderedList,\n Link,\n Blockquote,\n Image,\n} from './Markdown.styles'\n\nexport * from './Markdown.styles'\n\nexport const mdComponentsConfig = {\n h1: H1,\n h2: H2,\n h3: H3,\n h4: H4,\n h5: H5,\n h6: H6,\n p: Paragraph,\n ul: UnorderedList,\n ol: OrderedList,\n a: Link,\n blockquote: Blockquote,\n img: Image,\n}\n","import styled from 'styled-components'\nimport { flexbox, space, FlexboxProps, SpaceProps } from 'styled-system'\n\nimport { WithChild } from 'utils'\n\nexport const CenterDiv = styled.div`\n display: flex;\n width: 100%;\n justify-content: center;\n align-items: center;\n`\n\nexport const FlexDiv = styled.div`\n display: flex;\n ${flexbox};\n ${space};\n`\n\nexport const AbsoluteCenter = styled.div`\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n`\n","import styled from 'styled-components'\nimport { typography, color, space, layout, flexbox } from 'styled-system'\n\nimport { responsiveFontSize } from 'styles/utils'\n\nexport const TextStyled = styled.div<{ $responsiveSize: string | undefined }>`\n ${typography};\n ${color};\n ${space};\n ${layout};\n ${flexbox};\n ${({ $responsiveSize }) => ($responsiveSize ? responsiveFontSize($responsiveSize) : undefined)};\n`\n","import { forwardRef, memo, useMemo } from 'react'\nimport { useTheme } from '@mui/material/styles'\n\nimport { FontSize } from 'styles/theme/typography'\n\nimport { TextStyled } from './TextBase.styles'\n\nimport { TextBaseProps } from './index'\n\nconst TextBase = forwardRef(\n ({ text, asComp, children, fontSizeResponsive, ...rest }, ref) => {\n const theme = useTheme()\n const responsiveSize = useMemo(() => {\n if (fontSizeResponsive) {\n const remSize = theme.fontSizes[fontSizeResponsive as FontSize]\n return remSize ?? fontSizeResponsive\n }\n return undefined\n }, [fontSizeResponsive, theme])\n return (\n \n {text ? {text} : children}\n \n )\n },\n)\n\nexport default memo(TextBase)\n","import styled from 'styled-components'\nimport { typography, color, space, layout, flexbox } from 'styled-system'\n\nimport TextBase, { TextBaseProps } from 'components/ui/Typography/TextBase'\n\nexport const TextSm = styled(TextBase).attrs({ fontSizeResponsive: 'small' })``\nexport const TextDef = styled(TextBase).attrs({ fontSizeResponsive: 'default' })``\nexport const TextMd = styled(TextBase).attrs({ fontSizeResponsive: 'medium' })``\nexport const TextLg = styled(TextBase).attrs({ fontSizeResponsive: 'large' })``\n\nexport const TitleBase = styled(TextBase)`\n font-weight: 400;\n font-family: 'BebasNeue', serif;\n line-height: 1.1;\n letter-spacing: -0.01em;\n ${typography};\n ${color};\n ${space};\n ${layout};\n ${flexbox};\n`\n\nexport const TitleXs = styled(TitleBase).attrs({ fontSizeResponsive: 'small' })``\nexport const TitleSm = styled(TitleBase).attrs({ fontSizeResponsive: 'large' })``\nexport const Title2rem = styled(TitleBase).attrs({ fontSizeResponsive: 'title2rem' })``\nexport const TitleDef = styled(TitleBase).attrs({ fontSizeResponsive: 'title' })``\nexport const TitleMd = styled(TitleBase).attrs({ fontSizeResponsive: 'medium' })``\nexport const TitleLg = styled(TitleBase).attrs({\n fontSizeResponsive: 'titleLarge',\n})``\n\nexport const TitleMax = styled(TitleBase).attrs({\n fontSizeResponsive: 'titleMax',\n})``\n","type Env = 'development' | 'production' | 'staging'\n\nexport const appConfig = {\n brand: process.env.REACT_APP_X_BRAND || 'gymprovement',\n apiBaseUrl: process.env.REACT_APP_API_URL || 'https://api-dev.gymprovement.com/api/v1',\n appEnv: (process.env.REACT_APP_ENV || process.env.NODE_ENV || 'production') as Env,\n pciProxyMerchantId: process.env.REACT_APP_PCI_PROXY_MERCHANT_ID || '000',\n}\n\nexport default appConfig\n","import { appConfig } from './app'\n\nconst main = window.origin\nconst url = new URL(window.origin)\n\nexport const urlsConfig = {\n landing: main,\n termsAndConditions: main + '/docs/terms-of-use',\n privacyPolicy: main + '/docs/privacy-policy',\n cookiePolicy: main + '/docs/cookie-policy',\n buy:\n process.env.REACT_APP_PAY_URL ||\n `${url.protocol}//pay${appConfig.appEnv === 'development' ? '-' : '.'}${url.host}`,\n}\n","// import pickBy from 'lodash/pickBy'\n\nexport function saveFile(file: Blob | string, filename?: string) {\n let url = file\n if (typeof file !== 'string') {\n url = window.URL.createObjectURL(new Blob([file]))\n }\n const link = document.createElement('a')\n if (typeof url === 'string') {\n link.href = url\n }\n if (filename) {\n link.setAttribute('download', filename)\n }\n document.body.appendChild(link)\n link.click()\n}\n\nexport function hasOwnPropertyCall(obj: Object, key: string) {\n if (!obj) return false\n return Object.prototype.hasOwnProperty.call(obj, key)\n}\n\nexport function getByKey(\n obj: Record,\n key: string | null | undefined,\n defaultValue: any = null,\n) {\n if (key == null || !hasOwnPropertyCall(obj, key)) return defaultValue\n return obj[key]\n}\n\nexport function elementPosition(elem: HTMLElement) {\n if (!elem) return null\n const rect = elem.getBoundingClientRect()\n const scrollLeft = window.pageXOffset || document.documentElement.scrollLeft\n const scrollTop = window.pageYOffset || document.documentElement.scrollTop\n return { top: rect.top + scrollTop, left: rect.left + scrollLeft }\n}\n\nexport function elementPositionById(id: string) {\n const elem = document.getElementById(id)\n if (!elem) return null\n return elementPosition(elem)\n}\n\nexport function getAbsoluteUrl(path: string) {\n return `${window.location.origin}${path}`\n}\n\nexport function autoImplement(defaults?: Partial) {\n return class {\n constructor() {\n Object.assign(this, defaults || {})\n }\n } as new () => T\n}\n\nexport function openPopupWindow({\n url = 'about:blank',\n windowParent,\n target,\n width,\n height,\n}: {\n width: number\n height: number\n url?: string\n target?: string\n windowParent?: Window\n}): Window | null {\n const win = windowParent ?? window\n let x = 0\n let y = 0\n if (win.top) {\n y = win.top.outerHeight / 2 + win.top.screenY - height / 2\n x = win.top.outerWidth / 2 + win.top.screenX - width / 2\n }\n return win.open(\n url,\n target,\n `toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=${width}, height=${height}, top=${y}, left=${x}`,\n )\n}\n\n// export const removeUndefinedProps = (originalObject: T): Partial =>\n// pickBy(originalObject, v => v !== undefined)\n\nexport const joinStrings = (arr: (string | number | undefined | null)[], separator = ' ') =>\n arr.filter(str => str && str?.toString().length > 0).join(separator)\n","import { useCallback, useState } from 'react'\n\nexport function useModalState({ initialOpen = false } = {}) {\n const [open, setOpen] = useState(initialOpen)\n\n const onOpen = useCallback(() => {\n setOpen(true)\n }, [])\n\n const onClose = useCallback(() => {\n setOpen(false)\n }, [])\n\n const onToggle = useCallback((isOpen?: boolean) => {\n setOpen(prevState => (isOpen != null ? isOpen : !prevState))\n }, [])\n\n return { onOpen, onClose, open, onToggle }\n}\n","import { Context, useContext } from 'react'\n\nexport function useContextWithCheck(ClassContext: Context): T {\n const context = useContext(ClassContext)\n if (!context) {\n throw new Error('useContext must be used within the ')\n }\n return context\n}\n","import { useEffect } from 'react'\n\nimport { formatDate } from 'utils/formatters'\n\n/**\n * Appends app meta data (version and build time) to the document head\n */\nexport const useAppDocMetaData = ({ version, buildTime }: { version: string; buildTime: any }) => {\n useEffect(() => {\n document.head.prepend(document.createComment(`App version: ${version}`))\n document.head.prepend(document.createComment(`Build time: ${formatDate(buildTime)}`))\n }, [buildTime, version])\n}\n","import autoBind from 'auto-bind'\n\nimport {\n FingerPrintIdRequest,\n InitPaymentRequest,\n KeyInfo,\n PaymentInfo,\n PayTransaction,\n} from 'api/domain/transactions'\nimport { AppApiBase } from 'api/core/AppApiBase'\nimport { paymentHeaders } from 'utils'\nimport { LegalInfo } from 'api/domain/app'\n\nexport class PublicApi {\n constructor(protected api: AppApiBase) {\n autoBind(this)\n }\n\n async getTransaction(id: PayTransaction['id']) {\n return this.api.get(`/p/${id}`)\n }\n\n async cancelTransaction(id: PayTransaction['id']): Promise {\n return this.api.delete(`/p/${id}`)\n }\n\n async getPaymentInfo(id: PayTransaction['id'], data?: InitPaymentRequest) {\n return this.api.get(`/p/${id}/payment`, data, { headers: paymentHeaders() })\n }\n\n async getPublicKey() {\n return this.api.get('/p/key')\n }\n\n async saveFingerPrint(id: PayTransaction['uuid'], data: FingerPrintIdRequest) {\n return this.api.post(`/p/${id}/custom_fingerprint`, data, {\n timeout: 70 * 1000,\n headers: paymentHeaders(),\n })\n }\n\n async legalInfo() {\n return this.api.get('/info/legal_info')\n }\n}\n","export const supportConfig = {\n email: 'support@gymprovement.com',\n name: 'Gymprovement',\n emailContent: 'content@gymprovement.com',\n emailCareer: 'careers@gymprovement.com',\n website: 'https://gymprovement.com',\n phone: '+37259018826',\n registrationNumber: '306001343',\n companyName: 'Skinsstar UAB',\n}\n\nexport default supportConfig\n","import { QueryOptions, useApiQuery } from 'api/hooks/helpers/useApiQuery'\nimport { cacheKeys } from 'api/cacheKeys'\nimport { LegalInfo, SupportConfig } from 'api/domain/app'\nimport { useAppApi } from 'api/providers/AppApiProvider'\nimport { PublicApi } from 'api/APIs/PublicApi'\nimport { supportConfig } from 'config/support'\n\nexport function useLegalInfo(options?: QueryOptions) {\n const publicApi = useAppApi(PublicApi)\n\n const query = useApiQuery(\n cacheKeys.legalInfo,\n () => publicApi.legalInfo(),\n {\n ...options,\n select: data => ({\n emailContent: supportConfig.emailContent,\n emailCareer: supportConfig.emailCareer,\n emailPrivacy: '',\n emailLegal: '',\n companyName: data?.company_name,\n name: data?.descriptor,\n descriptor: data?.descriptor,\n supportEmail: data?.support_email,\n website: `https://${data?.url}`,\n phone: data?.phone,\n registrationNumber: data?.registration_number,\n addressInfo: {\n zip: data?.address_info.zip,\n country: data?.address_info.country,\n city: data?.address_info.city,\n region: data?.address_info.region,\n address: data?.address_info.address,\n },\n }),\n },\n )\n\n return { ...query, data: query.data ?? ({} as SupportConfig) }\n}\n","import { useCallback } from 'react'\nimport { useSnackbar } from 'notistack'\n\nimport { hasOwnPropertyCall } from 'helpers'\n\nexport const useOnErrorSnackbar = () => {\n const { enqueueSnackbar } = useSnackbar()\n return useCallback(\n (err: any, secondaryText?: string) => {\n if (!err || hasOwnPropertyCall(err, 'silent')) return\n const message = !secondaryText ? (\n err.toString()\n ) : (\n
\n
{err.toString()}
\n
{secondaryText}
\n
\n )\n enqueueSnackbar(message, {\n key: err.toString(),\n variant: 'error',\n preventDuplicate: true,\n })\n },\n [enqueueSnackbar],\n )\n}\n","import { useTranslationNS } from './useTranslationNS'\n\nexport const useTranslation = () => useTranslationNS('main')\n","import {\n Namespace,\n useTranslation,\n UseTranslationOptions,\n UseTranslationResponse,\n} from 'react-i18next'\nimport { useCallback } from 'react'\n\nexport const useTranslationNS = (\n ns: N | Readonly,\n options?: UseTranslationOptions,\n): UseTranslationResponse => {\n const { t, ...rest } = useTranslation(ns, options)\n\n const tWithNs = useCallback(\n // @ts-ignore\n (key, options) =>\n t(key, {\n ns,\n ...(typeof options === 'object' && options),\n }),\n [ns, t],\n )\n\n return {\n ...rest,\n t: tWithNs,\n }\n}\n","import { useCallback, useEffect } from 'react'\n\nimport { urlsConfig } from 'config/urls'\n\nimport { WindowEventMessage } from './types'\n\ntype ListenOptions = {\n onMessage: (payload: TPayload) => void\n eventSource: string\n eventName: string\n sameOrigin?: boolean\n}\n\nexport function useListenMessage({\n onMessage,\n eventSource,\n eventName,\n sameOrigin = false,\n}: ListenOptions) {\n const listenMessage = useCallback(\n async (event: MessageEvent>) => {\n if (\n event.data?.source === eventSource &&\n event.data?.event === eventName &&\n (!sameOrigin || event.origin === window.origin || event.origin === urlsConfig.buy)\n ) {\n onMessage(event.data.payload)\n }\n },\n [eventName, eventSource, onMessage, sameOrigin],\n )\n\n useEffect(() => {\n window.addEventListener('message', listenMessage)\n return () => {\n window.removeEventListener('message', listenMessage)\n }\n }, [listenMessage])\n}\n","export type WindowEventMessage = {\n source: string\n event: string\n payload: T\n}\n\nexport enum PostMessageType {\n popup,\n iframe,\n}\n","import { useCallback, useEffect, useState } from 'react'\n\nimport { PostMessageType, WindowEventMessage } from './types'\n\nexport function usePostMessage(\n type: PostMessageType,\n msgOnMount?: WindowEventMessage,\n targetOrigin = window.origin,\n) {\n const [isLoading, setIsLoading] = useState(!!msgOnMount)\n const [isError, setIsError] = useState(false)\n\n const postMessage = useCallback(\n (msg: WindowEventMessage) => {\n setIsLoading(true)\n\n if (type === PostMessageType.iframe) {\n if (window.location !== window.parent.location) {\n window.parent.postMessage(msg, targetOrigin)\n } else {\n setIsError(true)\n }\n }\n\n if (type === PostMessageType.popup) {\n if (window.opener) {\n window.opener.postMessage(msg, targetOrigin)\n window.opener.focus()\n window.close()\n } else {\n setIsError(true)\n }\n }\n\n setIsLoading(false)\n },\n [type, targetOrigin],\n )\n\n useEffect(() => {\n if (msgOnMount) {\n postMessage(msgOnMount)\n }\n }, [msgOnMount, postMessage])\n\n return { isError, isLoading, postMessage }\n}\n","import { memo } from 'react'\n\nimport { WithChild } from 'utils'\nimport { MarkdownContent } from 'components/ui/Markdown/Markdown.styles'\n\nconst MdxWrapper = ({ children, ...rest }: WithChild): JSX.Element => (\n {children}\n)\n\nexport default memo(MdxWrapper)\n","import { FilterState, FilterItem } from './index'\n\nexport const findItemIndex = (items: FilterItem[], item: Pick) => {\n const byId = items.findIndex(x => x.id === item.id)\n if (byId >= 0) {\n return byId\n }\n const byField = items.findIndex(x => x.field === item.field)\n return byField >= 0 ? byField : undefined\n}\n\nexport const findFilterIndex = (state: FilterState) => (item: Pick) => {\n findItemIndex(state.filterItems, item)\n}\n","import { createReducer } from '@reduxjs/toolkit'\n\nimport { CreateReducer } from 'redux/utils'\n\nimport { changeFilterItems, deleteFilter, updateFilter } from './filter.actions'\nimport { findFilterIndex } from './filter.utils'\n\nimport type { FilterState } from '.'\n\nexport const filterDefaultState: FilterState = {\n filterItems: [],\n}\n\nexport const filterReducer: CreateReducer = (sliceName, initialState) =>\n createReducer(\n {\n ...filterDefaultState,\n ...initialState,\n },\n builder => {\n builder\n .addCase(changeFilterItems(sliceName), (state, { payload }) => {\n state.filterItems = payload\n })\n .addCase(updateFilter(sliceName), (state, { payload }) => {\n const index = findFilterIndex(state)(payload)\n if (index === undefined) return\n state.filterItems[index] = {\n ...state.filterItems[index],\n ...payload,\n }\n })\n .addCase(deleteFilter(sliceName), (state, { payload }) => {\n const index = findFilterIndex(state)(payload)\n if (index === undefined) return\n state.filterItems.splice(index, 1)\n })\n },\n )\n","import { createAction } from '@reduxjs/toolkit'\n\nimport type { FilterItem } from '.'\n\nexport const changeFilterItems = (sliceName: string) =>\n createAction(`${sliceName}/changeFilterItems`)\n\nexport const addNewFilter = (sliceName: string) =>\n createAction<\n {\n field: string\n } & Partial\n >(`${sliceName}/addNewFilter`)\n\nexport const updateFilter = (sliceName: string) =>\n createAction(`${sliceName}/updateFilter`)\n\nexport const deleteFilter = (sliceName: string) =>\n createAction(`${sliceName}/deleteFilter`)\n","import { combineReducers } from '@reduxjs/toolkit'\n\nimport type { CreateReducer } from 'redux/utils'\nimport { paginationReducer } from 'redux/pagination'\nimport { sortingReducer } from 'redux/sorting'\nimport { filterReducer } from 'redux/filter'\n\nexport const gridPaginationName = (sliceName: string) => `${sliceName}/pagination`\nexport const gridSortingName = (sliceName: string) => `${sliceName}/sorting`\nexport const gridFilterName = (sliceName: string) => `${sliceName}/filter`\n\nexport const dataGridReducer: CreateReducer = sliceName => {\n return combineReducers({\n pagination: paginationReducer(gridPaginationName(sliceName)),\n sorting: sortingReducer(gridSortingName(sliceName)),\n filter: filterReducer(gridFilterName(sliceName)),\n })\n}\n","import { Reducer, Slice } from '@reduxjs/toolkit'\n\nexport type CreateReducer = (\n sliceName: string,\n initialState?: Partial,\n) => Reducer\n\nexport const reduceSlices = (slices: Slice[]) =>\n slices.reduce(\n (res, slice) => ({\n ...res,\n [slice.name]: slice.reducer,\n }),\n {},\n )\n\nexport const createReducers = (reducer: CreateReducer, names: string[]) =>\n names.reduce(\n (acc, name) => ({\n ...acc,\n [name]: reducer(name),\n }),\n {},\n )\n","import { createReducers } from 'redux/utils'\nimport { dataGridReducer } from 'redux/dataGrid'\n\nexport const IMAGES_LIST = 'imagesList'\nexport const DOWNLOADED_LIST = 'downloadedList'\nexport const FAVOURITES_LIST = 'favouritesList'\nexport const TRANSFERS_LIST = 'transfersList'\nexport const INVOICES_LIST = 'invoicesList'\nexport const TAGS_LIST = 'tagsList'\nexport const CATEGORIES_LIST = 'categoriesList'\nexport const SAME_SERIES = 'sameSeriesList'\nexport const SIMILAR_LIST = 'similarList'\nexport const BEST_LIST = 'bestList'\n\nexport const dataGridReducers = createReducers(dataGridReducer, [\n IMAGES_LIST,\n TAGS_LIST,\n CATEGORIES_LIST,\n SAME_SERIES,\n SIMILAR_LIST,\n BEST_LIST,\n DOWNLOADED_LIST,\n FAVOURITES_LIST,\n INVOICES_LIST,\n TRANSFERS_LIST,\n])\n","import { createAction } from '@reduxjs/toolkit'\n\nexport const changePage = (sliceName: string) => createAction(`${sliceName}/changePage`)\nexport const changeLimit = (sliceName: string) => createAction(`${sliceName}/changeLimit`)\n","import { createReducer } from '@reduxjs/toolkit'\n\nimport { CreateReducer } from 'redux/utils'\n\nimport { changeLimit, changePage } from './pagination.actions'\n\nimport type { PaginationState } from '.'\n\nexport const paginateDefaultState: PaginationState = {\n page: 0,\n limit: 10,\n limitOptions: [10, 25, 50],\n}\n\nexport const paginationReducer: CreateReducer = (sliceName, initialState) =>\n createReducer(\n {\n ...paginateDefaultState,\n ...initialState,\n },\n builder => {\n builder\n .addCase(changePage(sliceName), (state, { payload }) => {\n state.page = payload\n })\n .addCase(changeLimit(sliceName), (state, { payload }) => {\n state.page = 0\n state.limit = payload\n })\n },\n )\n","import { createAction } from '@reduxjs/toolkit'\n\nimport type { SortItem } from './index'\n\nexport const changeSortModel = (sliceName: string) =>\n createAction(`${sliceName}/changeSortModel`)\n","import { createReducer } from '@reduxjs/toolkit'\n\nimport { CreateReducer } from 'redux/utils'\n\nimport { changeSortModel } from './sorting.actions'\n\nimport type { SortingState } from '.'\n\nexport const sortDefaultState: SortingState = {\n sortModel: { field: '', direction: 'asc' },\n}\n\nexport const sortingReducer: CreateReducer = (sliceName, initialState) =>\n createReducer(\n {\n ...sortDefaultState,\n ...initialState,\n },\n builder => {\n builder.addCase(changeSortModel(sliceName), (state, { payload }) => {\n state.sortModel = payload\n })\n },\n )\n","import { memo, ReactNode } from 'react'\nimport { Route } from 'react-router-dom'\n\nimport InfoMessage from 'components/ui/InfoMessage'\nimport { useTranslation } from 'hooks'\n\nconst ErrorView = ({ title, text }: { title?: string; text?: ReactNode }): JSX.Element => {\n const { t } = useTranslation()\n return (\n \n
\n \n
\n
\n )\n}\n\nexport default memo(ErrorView)\n","import PublicRoute from 'routes/components/PublicRoute'\nimport { useAuth, useMyProfile } from 'api'\nimport { authRoutes } from 'routes'\n\nimport { ProtectedRouteProps } from '../index'\n\nimport ErrorView from './ErrorView'\nimport RedirectWithMsg from './RedirectWithMsg'\n\nconst ProfileRequired = ({\n authorized,\n verified,\n ...routeProps\n}: ProtectedRouteProps): JSX.Element => {\n const { isReady } = useAuth()\n const myProfile = useMyProfile()\n\n if (!isReady) {\n return \n }\n\n // profile load failure\n if (myProfile.error != null || myProfile.data == null) {\n return \n }\n\n // const { user_status } = myProfile.data\n //\n // if (verified && user_status !== 'verified') {\n // return \n // }\n\n return \n}\n\nexport default ProfileRequired\n","import { memo } from 'react'\nimport { Redirect } from 'react-router-dom'\n\nimport PublicRoute from 'routes/components/PublicRoute'\nimport { useAuth, useMyProfile } from 'api'\nimport { appRoutes } from 'routes'\nimport Button from 'components/ui/Button'\nimport { useLegalInfo } from 'hooks/queries/useLegalInfo'\n\nimport ProfileRequired from './components/ProfileRequired'\nimport LoadingView from './components/LoadingView'\nimport ErrorView from './components/ErrorView'\n\nimport { ProtectedRouteProps } from '.'\n\nconst ProtectedRoute = ({ nonAuthorized, policies, ...rest }: ProtectedRouteProps) => {\n const { isReady, isLoading, logout } = useAuth()\n const myProfile = useMyProfile()\n const legalInfo = useLegalInfo()\n\n if (myProfile.isLoading || isLoading || legalInfo.isLoading) {\n return (\n
\n \n
\n )\n }\n\n if (isReady && myProfile.error?.type === '0003') {\n return (\n \n Log out\n \n }\n />\n )\n }\n\n if (isReady && (myProfile.error != null || myProfile.data == null)) {\n return \n }\n\n if (legalInfo.error != null || legalInfo.data == null) {\n return \n }\n\n if (nonAuthorized && isReady) {\n return \n }\n\n const { authorized, verified, ...routeProps } = rest\n\n if (authorized || verified) {\n return \n }\n\n return \n}\n\nexport default memo(ProtectedRoute)\n","import CircularProgress from '@mui/material/CircularProgress'\nimport { memo } from 'react'\nimport { Route } from 'react-router-dom'\n\nconst LoadingView = (): JSX.Element => (\n \n \n \n)\n\nexport default memo(LoadingView)\n","import { useSnackbar } from 'notistack'\nimport { useEffect } from 'react'\nimport { Redirect, Route } from 'react-router-dom'\n\nimport { useTranslation } from 'hooks'\n\nconst RedirectWithMsg = ({ errorMsg, to }: { errorMsg?: string; to: string }): JSX.Element => {\n const { t } = useTranslation()\n const { enqueueSnackbar } = useSnackbar()\n\n useEffect(() => {\n if (errorMsg) enqueueSnackbar(errorMsg, { variant: 'warning' })\n }, [enqueueSnackbar, errorMsg, t])\n\n return (\n \n \n \n )\n}\n\nexport default RedirectWithMsg\n","import { memo } from 'react'\nimport { Route as ReactRoute } from 'react-router-dom'\n\nimport Seo from 'components/layout/Seo'\nimport { useLegalInfo } from 'hooks/queries/useLegalInfo'\n\nimport LoadingView from '../ProtectedRoute/components/LoadingView'\n\nimport { PublicRouteProps } from '.'\n\nconst PublicRoute = ({ meta, ...rest }: PublicRouteProps) => {\n const { component: Component, ...routeProps } = rest\n const legalInfo = useLegalInfo()\n\n if (legalInfo.isLoading) {\n return (\n
\n \n
\n )\n }\n\n return (\n (\n <>\n \n {/*\n // @ts-ignore*/}\n \n \n )}\n />\n )\n}\n\nexport default memo(PublicRoute)\n","import { ComponentType, lazy, memo, Suspense } from 'react'\n// import ProgressBar from 'react-topbar-progress-indicator'\n\nconst ProgressBar = () => <>\n// import palette from 'styles/theme/palette'\n\n// ProgressBar.config({\n// barColors: {\n// 0: palette.primary.main,\n// 1: palette.secondary.main,\n// },\n// shadowBlur: 2,\n// })\n\nexport default function lazyLoad(\n importFunc: () => Promise<{ default: ComponentType }>,\n { fallback = null } = {},\n) {\n const LazyComponent = lazy(() =>\n importFunc().catch(() => {\n console.error('LazyLoading failed; Reloading the app to fetch the newest index.html version')\n window.location.reload()\n return {\n default: ProgressBar,\n }\n }),\n )\n return memo((props: TProps) => (\n }>\n {/*@ts-ignore*/}\n \n \n ))\n}\n","import { lazyLoad } from 'components/ui/LazyLoad'\n\n// RouteType\nexport const authRoutes = {\n path: '/auth',\n component: lazyLoad(() => import('views/Auth')),\n\n views: {\n login: {\n path: '/auth/login',\n exact: true,\n component: lazyLoad(() => import('views/Auth/Login')),\n },\n register: {\n path: '/auth/register',\n exact: true,\n component: lazyLoad(() => import('views/Auth/Signup')),\n },\n autoLogin: {\n path: '/auth/autologin',\n exact: true,\n component: lazyLoad(() => import('views/Auth/AutoLogin')),\n },\n changeEmailConfirm: {\n path: '/auth/change-email-confirm',\n exact: true,\n component: lazyLoad(() => import('views/Auth/ChangeEmailConfirm')),\n },\n },\n} as const\n","import { memo, useEffect } from 'react'\nimport CircularProgress from '@mui/material/CircularProgress'\nimport { useHistory } from 'react-router'\n\nimport { usePostMessage, PostMessageType } from 'hooks'\nimport { CenterDiv } from 'components/ui/Shared'\nimport InfoMessage from 'components/ui/InfoMessage'\nimport { useTranslation } from 'hooks/useTranslation'\nimport { useAuth } from 'api'\n\nimport { PAYMENT_EVENT_NAME, PAYMENT_EVENT_SOURCE } from './PaymentRedirect.config'\n\nimport { PaymentRedirectProps } from '.'\n\nconst inIframe = () => {\n try {\n return window.self !== window.top\n } catch (e) {\n return true\n }\n}\n\nconst isSameDomain = () => {\n try {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n window.parent.document\n return true\n } catch (e) {\n return false\n }\n}\n\nfunction PaymentRedirect({ transactionPageUrl, ...rest }: PaymentRedirectProps): JSX.Element {\n const { t } = useTranslation()\n const { isLoading: isLoadingAuth } = useAuth()\n\n const history = useHistory()\n\n const { isError, isLoading } = usePostMessage(\n PostMessageType.iframe,\n inIframe()\n ? {\n source: PAYMENT_EVENT_SOURCE,\n event: PAYMENT_EVENT_NAME,\n payload: undefined,\n }\n : undefined,\n )\n\n useEffect(() => {\n // the redirect page is not inside iframe, make redirect to the transaction page\n if (inIframe()) {\n if (isSameDomain()) {\n if (window.location === window.parent.location) {\n history.replace(transactionPageUrl)\n }\n } else {\n history.replace(transactionPageUrl)\n }\n } else {\n // hook to test locally\n // const [domain, path] = transactionPageUrl.split('/buy/')\n if (!isLoadingAuth) {\n // if (domain && domain !== 'http://localhost:3000') {\n // window.location.href = `http://localhost:3000/r/${path}`\n // return\n // }\n\n history.replace(transactionPageUrl)\n }\n }\n return\n }, [history, transactionPageUrl, isLoadingAuth])\n\n return (\n \n {isLoadingAuth || isLoading ? (\n \n ) : isError ? (\n \n ) : (\n \n )}\n \n )\n}\n\nexport default memo(PaymentRedirect)\n","export const PAYMENT_EVENT_SOURCE = 'payment_iframe'\nexport const PAYMENT_EVENT_NAME = 'on_payment_finished'\n\nexport const PAYMENT_REDIRECT_PAGE_PATH = '/r/:uuid'\n","import { generatePath, useParams } from 'react-router-dom'\n\nimport PaymentRedirectView from 'components/ui/PaymentRedirect'\nimport { appRoutes } from 'routes'\n\nconst PaymentRedirect = () => {\n const { uuid } = useParams<{ uuid: string }>()\n return (\n \n )\n}\n\nexport default PaymentRedirect\n","import { useEffect } from 'react'\nimport { useParams, useHistory } from 'react-router-dom'\n\nimport { appRoutes, authRoutes } from 'routes'\nimport InfoMessage from 'components/ui/InfoMessage'\nimport { CenterDiv } from 'components/ui/Shared'\nimport { useTranslation } from 'hooks/useTranslation'\n\nconst IframeRedirect = () => {\n const { t } = useTranslation()\n const history = useHistory()\n const { action } = useParams<{ action: string }>()\n\n useEffect(() => {\n if (action === 'auth') {\n window.parent.location.href = authRoutes.views.login.path\n }\n if (!action || action === 'back') {\n window.parent.location.href = appRoutes.main.path\n }\n }, [history, action])\n\n return (\n \n \n \n )\n}\n\nexport default IframeRedirect\n","import { lazyLoad } from 'components/ui/LazyLoad'\nimport { PAYMENT_REDIRECT_PAGE_PATH } from 'components/ui/PaymentRedirect'\nimport PaymentRedirect from 'views/PaymentRedirect'\nimport IframeRedirect from 'views/IframeRedirect'\n\nexport const appRoutes = {\n main: {\n path: '/',\n component: lazyLoad(() => import('views/Main')),\n meta: {\n title: \"Gymprovement - The world's best hiit workouts at home\",\n description: '',\n },\n },\n contacts: {\n path: '/contacts',\n component: lazyLoad(() => import('views/Contacts')),\n meta: {\n title: 'Contact Us - Gymprovement',\n description: '',\n },\n },\n about: {\n path: '/about',\n component: lazyLoad(() => import('views/About')),\n meta: {\n title: 'About - Gymprovement',\n description: 'Learn more about Gymprovement.',\n },\n },\n careers: {\n path: '/careers',\n component: lazyLoad(() => import('views/ComingSoon')),\n meta: {\n title: 'Careers - Gymprovement',\n description: '',\n },\n },\n careersDetail: {\n path: '/careers/:id(designer|frontend|backend|seo)',\n component: lazyLoad(() => import('views/ComingSoon')),\n meta: {\n title: 'Careers - Gymprovement',\n description: '',\n },\n },\n contributors: {\n path: '/content-contributors',\n component: lazyLoad(() => import('views/ComingSoon')),\n meta: {\n title: 'Content Contributors - Gymprovement',\n description: '',\n },\n },\n catalog: {\n path: '/programs',\n component: lazyLoad(() => import('views/Catalog')),\n },\n catalogDetailPhoto: {\n path: '/programs/:id',\n component: lazyLoad(() => import('views/DetailPhoto')),\n },\n buy: {\n path: '/buy',\n component: lazyLoad(() => import('views/Buy')),\n },\n pricing: {\n path: '/buy/pricing',\n component: lazyLoad(() => import('views/Pricing')),\n },\n buyProceed: {\n path: '/buy/:uuid',\n exact: true,\n component: lazyLoad(() => import('views/BuyProceed')),\n },\n buyBillingInfo: {\n path: '/buy/billing-info',\n exact: true,\n component: lazyLoad(() => import('views/BuyBillingInfo')),\n },\n paymentRedirect: {\n path: PAYMENT_REDIRECT_PAGE_PATH,\n exact: true,\n component: PaymentRedirect,\n },\n b2cRedirect: {\n path: '/b-back',\n exact: true,\n component: IframeRedirect,\n },\n} as const\n","import { lazyLoad } from 'components/ui/LazyLoad'\n\n// RouteType\nexport const profileRoutes = {\n profile: {\n path: '/profile',\n component: lazyLoad(() => import('views/profile/Profile')),\n views: {\n dashboard: {\n path: '/profile/dashboard',\n exact: true,\n component: lazyLoad(() => import('views/profile/Dashboard')),\n },\n account: {\n path: '/profile/account',\n exact: true,\n component: lazyLoad(() => import('views/profile/Account')),\n },\n downloads: {\n path: '/profile/downloads',\n exact: true,\n component: lazyLoad(() => import('views/profile/Downloads')),\n },\n favourites: {\n path: '/profile/favourites',\n exact: true,\n component: lazyLoad(() => import('views/profile/Favourites')),\n },\n invoices: {\n path: '/profile/invoices',\n exact: true,\n component: lazyLoad(() => import('views/profile/Invoices')),\n },\n transfers: {\n path: '/profile/transfers',\n exact: true,\n component: lazyLoad(() => import('views/profile/Transfers')),\n },\n following: {\n path: '/profile/following',\n exact: true,\n component: lazyLoad(() => import('views/Empty')),\n },\n collections: {\n path: '/profile/collections',\n exact: true,\n component: lazyLoad(() => import('views/Empty')),\n },\n devices: {\n path: '/profile/devices',\n exact: true,\n component: lazyLoad(() => import('views/Empty')),\n },\n subscription: {\n path: '/profile/subscription',\n exact: true,\n component: lazyLoad(() => import('views/profile/Subscription')),\n },\n },\n },\n} as const\n","import { lazyLoad } from 'components/ui/LazyLoad'\n\nexport const docsRoutes = {\n docs: {\n path: '/docs',\n component: lazyLoad(() => import('views/docs/Main')),\n\n views: {\n imprint: {\n path: '/docs/legal-notice',\n component: lazyLoad(() => import('views/docs/Imprint/Imprint')),\n meta: {\n title: 'Legal Notice - Gymprovement',\n description: 'Legal Notice of Skinsstar UAB, the operator of gymprovement.com.',\n },\n },\n privacyPolicy: {\n path: '/docs/privacy-policy',\n component: lazyLoad(() => import('views/docs/PrivacyPolicy')),\n meta: {\n title: 'Privacy Policy - Gymprovement',\n description: 'Privacy Policy of Skinsstar UAB, the operator of gymprovement.com.',\n },\n },\n termsOfUse: {\n path: '/docs/terms-of-use',\n component: lazyLoad(() => import('views/docs/TermsOfUse')),\n meta: {\n title: 'Terms of Use - Gymprovement',\n description: 'Terms of Use of Skinsstar UAB, the operator of gymprovement.com.',\n },\n },\n },\n },\n} as const\n","const unit = 'px'\n\nconst values = {\n mobileS: 320,\n mobileM: 375,\n mobileL: 425,\n tabletS: 600,\n tablet: 768,\n tabletL: 992,\n laptop: 1024,\n laptopS: 1199,\n laptopM: 1280,\n laptopL: 1440,\n desktop: 2560,\n collapseAppBar: 800,\n\n // for grid\n lg: 1280,\n md: 960,\n sm: 600,\n xl: 1920,\n xs: 0,\n} as const\n\nexport type BreakpointKey = keyof typeof values\n\nexport const getBreakpointValue = (key: BreakpointKey | number) =>\n typeof key === 'number' ? key : values[key as keyof typeof values] ?? key\n\nconst breakpoints = {\n unit,\n values,\n get down() {\n return (key: BreakpointKey | number) => {\n const valueInPx = `${getBreakpointValue(key) - 0.5}${unit}`\n return `@media (max-width:${valueInPx})`\n }\n },\n get up() {\n return (key: BreakpointKey | number) => {\n const valueInPx = `${getBreakpointValue(key)}${unit}`\n return `@media (min-width:${valueInPx})`\n }\n },\n}\n\nexport type MyBreakpointValuesType = Record\nexport default breakpoints\n","export const spacing = 10\n\nexport const radii = {\n small: 4,\n default: 6,\n medium: 8,\n large: 12,\n}\n","export const fontSizes = {\n superSmall: '0.625rem', // 10px\n extraSmall: '0.75rem', // 12px\n small: '0.875rem', // 14px\n default: '1rem', // 16px\n medium: '1.25rem', // 20px\n large: '1.5rem', // 24px\n title2rem: '2rem', // 28px\n titleSmall: '1.75rem', // 28px\n title: '2.25rem', // 36px\n titleLarge: '4rem', //64px\n titleMax: '8rem', //128px\n}\n\nexport type FontSize = keyof typeof fontSizes\n\nexport const fontFamilies = {\n default: 'Inter, sans-serif',\n title: 'BebasNeue, sans-serif',\n}\n\nexport type FontFamily = keyof typeof fontFamilies\n\nconst typography = {\n fontSize: 16,\n fontSizes,\n fontFamily: fontFamilies.default,\n fontFamilies,\n h1: {\n fontWeight: 700,\n fontSize: fontSizes.titleLarge,\n },\n h2: {\n fontWeight: 700,\n fontSize: fontSizes.title2rem,\n },\n h3: {\n fontWeight: 600,\n fontSize: fontSizes.large,\n },\n h4: {\n fontWeight: 400,\n fontSize: fontSizes.large,\n },\n h5: {\n fontWeight: 600,\n fontSize: fontSizes.medium,\n },\n h6: {\n fontWeight: 400,\n fontSize: fontSizes.medium,\n },\n body1: {\n fontSize: fontSizes.default,\n },\n subtitle1: {\n fontWeight: 600,\n fontSize: fontSizes.default,\n },\n subtitle2: {\n fontWeight: 400,\n fontSize: fontSizes.small,\n },\n subtitle3: {\n fontWeight: 400,\n fontSize: fontSizes.extraSmall,\n },\n smallCaption: {\n fontWeight: 500,\n fontSize: fontSizes.superSmall,\n },\n}\n\nexport default typography\n","import { css } from 'styled-components'\nimport { darken } from '@mui/material/styles'\n\nexport const gradientOutline = ({ width = '1px' }: { width?: string } = {}) => css`\n position: absolute;\n inset: 0;\n z-index: 1;\n border-radius: inherit;\n pointer-events: none;\n padding: ${width};\n\n background: radial-gradient(ellipse 60% 90% at 55% 55%, #c0f3c8 25%, rgba(103, 194, 229, 0.2));\n background-size: auto;\n mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);\n -webkit-mask-composite: destination-out;\n mask-composite: exclude;\n`\n\nexport const resetButton = () => css`\n appearance: none;\n outline: none;\n background: none;\n border: none;\n border-radius: 0;\n padding: 0;\n margin: 0;\n font-weight: inherit;\n color: inherit;\n cursor: pointer;\n transition-duration: 150ms;\n width: max-content;\n`\n\ntype UnderlineVariant = 'none' | 'hover' | 'always'\n\nexport const resetButtonAsLink = ({\n color = 'inherit',\n underline = 'hover',\n darkenCoef = 0.2,\n}: { color?: string; underline?: UnderlineVariant; darkenCoef?: number } = {}) => css`\n ${resetButton()};\n color: ${color};\n text-decoration: ${underline === 'always' ? 'underline' : 'none'};\n\n &:hover {\n color: ${darken(color, darkenCoef)};\n text-decoration: ${underline !== 'none' ? 'underline' : 'none'};\n }\n`\n","import { BreakpointKey, getBreakpointValue } from 'styles/theme/breakpoints'\n\n/**\n * generate a responsive version of a given CSS property\n * @example\n * responsiveProperty({\n * cssProperty: 'fontSize',\n * min: 15,\n * max: 20,\n * unit: 'px',\n * breakpoints: [300, 600],\n * })\n *\n * // this returns\n *\n * {\n * fontSize: '15px',\n * '@media (min-width:300px)': {\n * fontSize: '17.5px',\n * },\n * '@media (min-width:600px)': {\n * fontSize: '20px',\n * },\n * }\n */\nexport function responsiveProperty({\n cssProperty,\n min,\n max,\n unit = 'rem',\n breakpoints = [600, 960, 1280],\n}: {\n cssProperty: string\n min: number\n max: number\n unit?: string\n breakpoints?: number[]\n}) {\n const factor = (max - min) / breakpoints[breakpoints.length - 1]\n\n return breakpoints.reduce(\n (acc, breakpoint) => {\n const value = min + factor * breakpoint\n return {\n ...acc,\n [`@media (min-width:${breakpoint}px)`]: {\n [cssProperty]: `${Math.round(value * 1000) / 1000}${unit}`,\n },\n }\n },\n {\n [cssProperty]: `${min}${unit}`,\n } as any,\n )\n}\n\nexport function responsiveFontSize(\n remFontSize: string | number,\n {\n factor = 3,\n breakpoints = ['mobileL', 'tabletS', 'tablet', 'tabletL', 'laptopM'] as BreakpointKey[],\n unit = 'rem',\n } = {},\n) {\n const maxFontSize = typeof remFontSize !== 'number' ? parseFloat(remFontSize) : remFontSize\n const minFontSize = 1 + (maxFontSize - 1) / factor\n return responsiveProperty({\n max: maxFontSize,\n min: minFontSize,\n cssProperty: 'fontSize',\n breakpoints: breakpoints.map(getBreakpointValue),\n unit,\n })\n}\n","export const waitMs = (timeoutMs: number) => new Promise(resolve => setTimeout(resolve, timeoutMs))\n\nexport const paymentHeaders = () => {\n const x = new Date()\n const currentTimeZoneOffsetInMinutes = x.getTimezoneOffset() || 0\n\n return {\n 'x-fp-timezone': currentTimeZoneOffsetInMinutes.toString(),\n 'x-fp-color-depth': window.screen.colorDepth.toString(),\n 'x-fp-screen-height': window.screen.width.toString(),\n 'x-fp-screen-width': window.screen.height.toString(),\n 'x-fp-window-width': document.body.clientWidth.toString(),\n 'x-fp-window-height': document.body.clientHeight.toString(),\n 'x-fp-java-enabled': (navigator?.javaEnabled() || false).toString(),\n 'x-fp-timezone-name': Intl.DateTimeFormat().resolvedOptions().timeZone,\n }\n}\n\nexport const randomIntFromInterval = (min: number, max: number) => {\n // min and max included\n return Math.floor(Math.random() * (max - min + 1) + min)\n}\n"],"names":["languages","I18nContext","createContext","I18nProvider","children","i18n","useTranslation","changeLanguage","useCallback","lang","moment","useEffect","language","Provider","value","defaultLanguage","ReactQueryProvider","onErrorSnackbar","useOnErrorSnackbar","queryClient","useMemo","onError","QueryClient","defaultOptions","queries","refetchOnWindowFocus","refetchOnMount","retry","err","mutations","QueryClientProvider","client","createGlobalStyle","theme","palette","background","default","text","primary","mode","paper","common","black","white","main","dark","contrastText","secondary","info","success","warning","light","error","bankIdViolet","orange","textInverted","textBlueish","greyDefault","border","borderLight","placeholder","bgLight","grey","MuiTooltip","defaultProps","arrow","placement","enterDelay","leaveDelay","styleOverrides","color","tooltip","backgroundColor","tooltipPlacementTop","marginBottom","MuiBreadcrumbs","separator","root","fontSize","fontSizes","fontWeight","textTransform","li","MuiTextField","variant","size","MuiCheckbox","MuiButton","borderRadius","radii","lineHeight","contained","boxShadow","sizeMedium","minHeight","MuiSkeleton","animation","MuiAlert","standardError","alignItems","message","padding","icon","MuiMenuItem","MuiListItemIcon","minWidth","marginRight","MuiSvgIcon","fontSizeInherit","fontSizeSmall","MuiIconButton","sizeSmall","sizeLarge","MuiOutlinedInput","adornedEnd","paddingRight","MuiTab","textColorPrimary","MuiFormHelperText","margin","MuiTableCell","head","height","whiteSpace","body","borderColor","paddingLeft","width","createTheme","fontFamilies","typography","spacing","space","shape","transitions","duration","shortest","shorter","short","standard","complex","breakpoints","components","StylesProvider","StyledEngineProvider","injectFirst","MuiThemeProvider","StyledThemeProvider","GlobalCss","ResetCss","CssBaseline","CloseButton","id","closeSnackbar","useSnackbar","IconButton","onClick","CloseRoundedIcon","NotistackProvider","maxSnack","preventDuplicate","dense","action","key","fallback","style","alignSelf","textAlign","CircularProgress","Suspense","LocalizationProvider","dateAdapter","AdapterMoment","Router","SnackbarProvider","QueryParamProvider","ReactRouterRoute","Route","ReactQueryDevtools","initialIsOpen","MDXProvider","__spreadProps","mdComponentsConfig","wrapper","MdxWrapper","CookieYes","cbid","appConfig","window","document","length","console","warn","script","createElement","setAttribute","querySelector","insertBefore","firstChild","memo","withRouter","history","unListen","listen","scrollTo","top","left","behavior","fontFace","name","src","fontStyle","FontLight","FontRegular","FontMedium","FontBold","BebasNeueRegular","useAppDocMetaData","version","buildTime","Switch","ProtectedRoute","__spreadValues","appRoutes","ReactRoute","exact","PublicRoute","docsRoutes","nonAuthorized","authRoutes","authorized","component","profileRoutes","appNS","reducers","_a","devTools","config","__objRest","_b","persistConfig","storage","appReducer","combineReducers","storeConfig","reducer","persistReducer","state","type","middleware","getDefaultMiddleware","serializableCheck","ignoredActions","FLUSH","REHYDRATE","PAUSE","PERSIST","PURGE","REGISTER","store","configureStore","persistor","persistStore","createStore","dataGridReducers","blacklist","use","I18nextBrowserLanguageDetector","Backend","initReactI18next","init","fallbackLng","supportedLngs","keySeparator","nsSeparator","ns","defaultNS","load","nonExplicitSupportedLngs","returnEmptyString","returnNull","backend","loadPath","addPath","parseMissingKeyHandler","splitKey","split","react","useSuspense","defaultTransParent","hashTransKey","defaultValue","log","i18nextOptions","then","AppAuthProvider","useHistory","onLogout","purge","push","AuthProvider","Root","helmetContext","HelmetProvider","context","AppProvider","MdxProvider","PersistGate","loading","AppApiProvider","platform","brand","baseURL","FontsCss","Helmet","content","ScrollToTop","App","TagManager","gtmId","AuthApi","api","autoBind","this","post","token","otp","refreshToken","headers","Authorization","tokenToString","skipAuthRefresh","ProfileApi","get","data","avatar","Date","getTime","patch","params","photo","formData","FormData","append","put","delete","ImagesApi","axiosClient","defaults","paramsSerializer","p","URLSearchParams","Object","keys","map","Array","isArray","i","is_purchased","is_favorite","VideosApi","ids","CreditsApi","paymentHeaders","UserTransactionApi","uuid","transaction_id","responseType","purchase_id","timeout","exp_year","newData","cardId","cacheKeys","myRole","myProfile","legalInfo","imageDetail","isAuth","videoDetail","transactionInfo","ApiBase","rest","axios","Accept","qs","_c","_d","fullResponse","options","request","res","url","method","ApiErrorBase","statusCode","details","toString","Error","checkBLobData","response","Blob","toLowerCase","indexOf","responseObj","JSON","parse","extractApiError","axiosError","status","detail","ValidationException","errors","ApiException","code","AppApiBase","__superGet","call","catch","__async","fiatDefault","decimals","maxValue","apiName","fullName","B2CTransactionType","b2cTypesNaming","paymentProviderNaming","msg","useApiQuery","queryKey","queryFn","useQuery","useOnApiError","apiError","args","useUpdateQuery","cacheKey","useQueryClient","updatePath","setQueryData","oldUser","set","useApiMutation","mutationFn","useMutation","useApiReadyQuery","isReady","useAuth","enabled","useMyProfile","profileApi","useAppApi","updateUser","query","me","useVideoDetail","videosApi","updateDetailVideo","useAutologin","onSuccess","login","authApi","loginWithToken","pair","mutate","AppApiContext","apiInstance","useAppApiContext","useContextWithCheck","ApiService","AuthContext","useState","setIsReady","isLoading","setIsLoading","checkToStart","tkn","newTokens","setTokenPair","access_token","logout","clearTokens","logoutUser","clear","refreshSession","selectRefreshToken","refresh","Promise","reject","interceptors","accessToken","selectAccessToken","createAuthRefreshInterceptor","failedRequest","statusCodes","ACCESS_TOKEN_KEY","REFRESH_TOKEN_KEY","parsedToken","localStorage","getItem","e","tokens","setItem","stringify","refresh_token","token_type","title","description","keywords","preview","previewSrc","property","itemProp","btnSizes","small","maxHeight","def","buttonCss","css","$isLoading","$size","otherProps","responsiveProperty","max","min","cssProperty","unit","$color","hoverBg","transparent","btnColors","darken","ButtonStyled","styled","ButtonBase","layout","Wrapper","$show","ButtonContent","iconStart","iconEnd","Fade","in","unmountOnExit","AbsoluteCenter","thickness","display","cloneElement","props","className","isValidElement","Button","forwardRef","ref","disabled","href","to","LinkComponent","Link","Container","$background","alpha","Content","flex","Title","SmallText","opacity","IconWrapper","nature","stylesMap","useTheme","Icon","InfoRoundedIcon","IconMin","HighlightOffRoundedIcon","WarningRoundedIcon","ErrorOutlineRoundedIcon","CheckCircleRoundedIcon","DoneRoundedIcon","rightNode","useInfoMessageStyle","inner","LinkRouter","linkCss","contentWidth","MarkdownContent","responsiveFontSize","medium","Paragraph","H1","TitleBase","attrs","asComp","H2","TitleMd","H3","H4","TitleSm","H5","TitleXs","H6","UnorderedList","OrderedList","Blockquote","target","Image","lazy","h1","h2","h3","h4","h5","h6","ul","ol","a","blockquote","img","CenterDiv","flexbox","TextStyled","$responsiveSize","TextBase","fontSizeResponsive","responsiveSize","remSize","as","TextSm","TextDef","TextMd","TextLg","Title2rem","TitleDef","TitleLg","TitleMax","process","REACT_APP_X_BRAND","apiBaseUrl","appEnv","pciProxyMerchantId","REACT_APP_PCI_PROXY_MERCHANT_ID","origin","URL","urlsConfig","landing","termsAndConditions","privacyPolicy","cookiePolicy","buy","REACT_APP_PAY_URL","protocol","host","saveFile","file","filename","createObjectURL","link","appendChild","click","hasOwnPropertyCall","obj","prototype","hasOwnProperty","useModalState","initialOpen","open","setOpen","onOpen","onClose","onToggle","isOpen","prevState","ClassContext","useContext","prepend","createComment","formatDate","PublicApi","supportConfig","email","emailContent","emailCareer","website","phone","registrationNumber","companyName","useLegalInfo","publicApi","select","emailPrivacy","emailLegal","company_name","descriptor","supportEmail","support_email","registration_number","addressInfo","zip","address_info","country","city","region","address","enqueueSnackbar","secondaryText","useTranslationNS","t","tWithNs","useListenMessage","onMessage","eventSource","eventName","sameOrigin","listenMessage","event","source","payload","addEventListener","removeEventListener","PostMessageType","usePostMessage","msgOnMount","targetOrigin","isError","setIsError","postMessage","iframe","location","parent","popup","opener","focus","close","findFilterIndex","item","items","byId","findIndex","x","byField","field","findItemIndex","filterItems","filterDefaultState","filterReducer","sliceName","initialState","createReducer","builder","addCase","createAction","changeFilterItems","updateFilter","index","deleteFilter","splice","gridPaginationName","gridSortingName","gridFilterName","dataGridReducer","pagination","paginationReducer","sorting","sortingReducer","filter","IMAGES_LIST","DOWNLOADED_LIST","FAVOURITES_LIST","TRANSFERS_LIST","INVOICES_LIST","SIMILAR_LIST","BEST_LIST","reduce","acc","changePage","changeLimit","paginateDefaultState","page","limit","limitOptions","changeSortModel","sortDefaultState","sortModel","direction","ErrorView","InfoMessage","routeProps","verified","RedirectWithMsg","policies","LoadingView","Redirect","ProfileRequired","errorMsg","meta","Component","render","Seo","ProgressBar","lazyLoad","importFunc","LazyComponent","reload","path","views","register","autoLogin","changeEmailConfirm","inIframe","self","PaymentRedirect","transactionPageUrl","isLoadingAuth","isSameDomain","replace","useParams","PaymentRedirectView","generatePath","buyProceed","contacts","about","careers","careersDetail","contributors","catalog","catalogDetailPhoto","pricing","buyBillingInfo","paymentRedirect","b2cRedirect","IframeRedirect","profile","dashboard","account","downloads","favourites","invoices","transfers","following","collections","devices","subscription","docs","imprint","termsOfUse","values","mobileS","mobileM","mobileL","tabletS","tablet","tabletL","laptop","laptopS","laptopM","laptopL","desktop","collapseAppBar","lg","md","sm","xl","xs","getBreakpointValue","down","valueInPx","up","large","superSmall","extraSmall","title2rem","titleSmall","titleLarge","titleMax","fontFamily","body1","subtitle1","subtitle2","subtitle3","smallCaption","gradientOutline","resetButton","resetButtonAsLink","underline","darkenCoef","factor","breakpoint","Math","round","remFontSize","maxFontSize","parseFloat","minFontSize","getTimezoneOffset","screen","colorDepth","clientWidth","clientHeight","navigator","javaEnabled","Intl","DateTimeFormat","resolvedOptions","timeZone"],"sourceRoot":""}