{"version":3,"file":"static/chunks/pages/user/affiliate-4dd45b9ee951f2e7.js","sources":["webpack://_N_E/./node_modules/copy-to-clipboard/index.js","webpack://_N_E/./src/LegacyApp/client/components/passwordForm/passwordForm.style.ts","webpack://_N_E/./src/LegacyApp/client/components/settingsLayout/SettingsLayout.context.ts","webpack://_N_E/./src/LegacyApp/client/components/settingsLayout/SettingsLayout.desktop.tsx","webpack://_N_E/./src/LegacyApp/client/components/settingsLayout/SettingsLayout.mobile.tsx","webpack://_N_E/./src/LegacyApp/client/components/settingsLayout/settingsLayout.tsx","webpack://_N_E/./src/LegacyApp/client/components/slideDownBox/slideDownBox.style.ts","webpack://_N_E/./src/LegacyApp/client/components/slideDownBox/slideDownBox.tsx","webpack://_N_E/./src/LegacyApp/client/components/transactionsTable/transactionsTable.tsx","webpack://_N_E/./src/LegacyApp/client/store/transactions/transactions.selectors.ts","webpack://_N_E/./src/common/components/layout/Table/tableWrapper.tsx","webpack://_N_E/./src/common/components/seo/AnyJsonLd.tsx","webpack://_N_E/./src/common/components/seo/BreadcrumbDomainJsonLd.tsx","webpack://_N_E/./src/common/methods/getBreadcrumbs.ts","webpack://_N_E/./src/common/methods/pageScrollTo.ts","webpack://_N_E/./src/modules/games/Game/store/gameAutobet/gameAutobet.actions.ts","webpack://_N_E/./src/modules/games/Game/store/gameAutobet/gameAutobet.selectors.ts","webpack://_N_E/./src/LegacyApp/client/modules/style/components/inputsInline.style.js","webpack://_N_E/./src/LegacyApp/client/components/affiliate/campaignForm/campaignForm.jsx","webpack://_N_E/./src/LegacyApp/client/components/affiliate/campaignForm/campaignForm.container.ts","webpack://_N_E/./src/LegacyApp/client/pages/affiliate.page/Affiliate.global.styled.ts","webpack://_N_E/./src/LegacyApp/client/pages/affiliate.page/affiliate.page.jsx","webpack://_N_E/./src/LegacyApp/client/pages/affiliate.page/affiliate.container.ts","webpack://_N_E/./src/pages/user/affiliate.tsx","webpack://_N_E/./src/ui/components/pagination/index.tsx","webpack://_N_E/?1e71","webpack://_N_E/./node_modules/react-copy-to-clipboard/lib/Component.js","webpack://_N_E/./node_modules/react-copy-to-clipboard/lib/index.js","webpack://_N_E/./node_modules/toggle-selection/index.js"],"sourceRoot":"","sourcesContent":["\"use strict\";\n\nvar deselectCurrent = require(\"toggle-selection\");\n\nvar clipboardToIE11Formatting = {\n \"text/plain\": \"Text\",\n \"text/html\": \"Url\",\n \"default\": \"Text\"\n}\n\nvar defaultMessage = \"Copy to clipboard: #{key}, Enter\";\n\nfunction format(message) {\n var copyKey = (/mac os x/i.test(navigator.userAgent) ? \"⌘\" : \"Ctrl\") + \"+C\";\n return message.replace(/#{\\s*key\\s*}/g, copyKey);\n}\n\nfunction copy(text, options) {\n var debug,\n message,\n reselectPrevious,\n range,\n selection,\n mark,\n success = false;\n if (!options) {\n options = {};\n }\n debug = options.debug || false;\n try {\n reselectPrevious = deselectCurrent();\n\n range = document.createRange();\n selection = document.getSelection();\n\n mark = document.createElement(\"span\");\n mark.textContent = text;\n // avoid screen readers from reading out loud the text\n mark.ariaHidden = \"true\"\n // reset user styles for span element\n mark.style.all = \"unset\";\n // prevents scrolling to the end of the page\n mark.style.position = \"fixed\";\n mark.style.top = 0;\n mark.style.clip = \"rect(0, 0, 0, 0)\";\n // used to preserve spaces and line breaks\n mark.style.whiteSpace = \"pre\";\n // do not inherit user-select (it may be `none`)\n mark.style.webkitUserSelect = \"text\";\n mark.style.MozUserSelect = \"text\";\n mark.style.msUserSelect = \"text\";\n mark.style.userSelect = \"text\";\n mark.addEventListener(\"copy\", function(e) {\n e.stopPropagation();\n if (options.format) {\n e.preventDefault();\n if (typeof e.clipboardData === \"undefined\") { // IE 11\n debug && console.warn(\"unable to use e.clipboardData\");\n debug && console.warn(\"trying IE specific stuff\");\n window.clipboardData.clearData();\n var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting[\"default\"]\n window.clipboardData.setData(format, text);\n } else { // all other browsers\n e.clipboardData.clearData();\n e.clipboardData.setData(options.format, text);\n }\n }\n if (options.onCopy) {\n e.preventDefault();\n options.onCopy(e.clipboardData);\n }\n });\n\n document.body.appendChild(mark);\n\n range.selectNodeContents(mark);\n selection.addRange(range);\n\n var successful = document.execCommand(\"copy\");\n if (!successful) {\n throw new Error(\"copy command was unsuccessful\");\n }\n success = true;\n } catch (err) {\n debug && console.error(\"unable to copy using execCommand: \", err);\n debug && console.warn(\"trying IE specific stuff\");\n try {\n window.clipboardData.setData(options.format || \"text\", text);\n options.onCopy && options.onCopy(window.clipboardData);\n success = true;\n } catch (err) {\n debug && console.error(\"unable to copy using clipboardData: \", err);\n debug && console.error(\"falling back to prompt\");\n message = format(\"message\" in options ? options.message : defaultMessage);\n window.prompt(message, text);\n }\n } finally {\n if (selection) {\n if (typeof selection.removeRange == \"function\") {\n selection.removeRange(range);\n } else {\n selection.removeAllRanges();\n }\n }\n\n if (mark) {\n document.body.removeChild(mark);\n }\n reselectPrevious();\n }\n\n return success;\n}\n\nmodule.exports = copy;\n","import styled from 'styled-components';\nimport classNames from 'classnames';\n\nexport const PasswordFormStyle = styled.div.attrs((props) => ({\n\tclassName: classNames('password-form', props.className),\n}))`\n\t.input-message {\n\t\tmin-width: 170px;\n\n\t\ti,\n\t\tsvg {\n\t\t\tmargin-right: 5px;\n\t\t}\n\t}\n\n\tbutton {\n\t\tmargin-left: 0;\n\t\tmargin-top: 10px;\n\t}\n`;\n","import { createContext } from 'react';\nimport { SettingsLayoutSection } from './settingsLayout';\n\nexport type SettingsLayoutContextGetSectionContent = (\n\tid: string,\n\tpanelName: () => string,\n\tisNarrow?: boolean,\n) => JSX.Element;\n\nexport const SettingsLayoutContext = createContext<{\n\tsections: SettingsLayoutSection[];\n\tactiveId: string;\n\tactiveTabData: SettingsLayoutSection;\n\thandleChangeSection: (section: SettingsLayoutSection) => void;\n\tgetSectionContent: SettingsLayoutContextGetSectionContent;\n}>({\n\tsections: [],\n\tactiveId: '',\n\tactiveTabData: null,\n\thandleChangeSection: null,\n\tgetSectionContent: null,\n});\n","import { FC, useContext } from 'react';\nimport { useUserIsLogged } from '@common/selectors/user.selectors';\nimport { trans } from '../../modules/translation/translate';\nimport { NotificationIcon } from '../notificationIcon/NotificationIcon';\nimport { SettingsLayoutContext } from './SettingsLayout.context';\n\nexport const SettingsLayoutDesktop: FC = () => {\n\tconst {\n\t\tsections,\n\t\tactiveId,\n\t\tactiveTabData,\n\t\tgetSectionContent,\n\t\thandleChangeSection,\n\t} = useContext(SettingsLayoutContext);\n\tconst isLogged = useUserIsLogged();\n\n\treturn (\n\t\t<div className=\"settings\">\n\t\t\t<div className=\"settings__menu\">\n\t\t\t\t{sections.map((el) => {\n\t\t\t\t\tif ((el.isActive && !el.isActive()) || (!isLogged && el.isLogged)) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tconst className =\n\t\t\t\t\t\tactiveId === el.id ? 'active settings__button' : 'settings__button';\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<span\n\t\t\t\t\t\t\tkey={el.id}\n\t\t\t\t\t\t\tclassName={`${className} ${el.id}`}\n\t\t\t\t\t\t\tonClick={() => handleChangeSection(el)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span className=\"relative\">\n\t\t\t\t\t\t\t\t{el.name && <>{trans({ label: el.name() })} </>}\n\t\t\t\t\t\t\t\t{el.nameComponent && <>{el.nameComponent()} </>}\n\t\t\t\t\t\t\t\t{!!el.notification && (\n\t\t\t\t\t\t\t\t\t<NotificationIcon notification={el.notification} />\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t</div>\n\t\t\t{activeId &&\n\t\t\t\tgetSectionContent(\n\t\t\t\t\tactiveId,\n\t\t\t\t\tactiveTabData?.panelTitle,\n\t\t\t\t\tactiveTabData?.isNarrow,\n\t\t\t\t)}\n\t\t</div>\n\t);\n};\n","import { FC, useCallback, useContext } from 'react';\nimport { useUserIsLogged } from '@common/selectors/user.selectors';\nimport { SlideDownBox } from '../slideDownBox/slideDownBox';\nimport { trans } from '../../modules/translation/translate';\nimport { NotificationIcon } from '../notificationIcon/NotificationIcon';\nimport { SettingsLayoutContext } from './SettingsLayout.context';\nimport { SettingsLayoutSection } from './settingsLayout';\n\nconst SlideDownBoxElement: FC<SettingsLayoutSection> = (section) => {\n\tconst {\n\t\tid,\n\t\tname,\n\t\tnameComponent,\n\t\tnotification,\n\t\tisActive,\n\t\tisLogged,\n\t\tisNarrow,\n\t} = section;\n\n\tconst { activeId, getSectionContent, handleChangeSection } = useContext(\n\t\tSettingsLayoutContext,\n\t);\n\n\tconst isLogged_ = useUserIsLogged();\n\n\tconst content = useCallback(\n\t\t() => getSectionContent(id, undefined, isNarrow),\n\t\t[getSectionContent, id, isNarrow],\n\t);\n\n\tconst callback = useCallback(\n\t\t(isVisible) => {\n\t\t\tif (isVisible) {\n\t\t\t\thandleChangeSection(section);\n\t\t\t}\n\t\t},\n\t\t[section, handleChangeSection],\n\t);\n\n\treturn (isActive && !isActive()) || (!isLogged_ && isLogged) ? null : (\n\t\t<SlideDownBox\n\t\t\tkey={id}\n\t\t\tname={`settings-${id}`}\n\t\t\tTitle={() => (\n\t\t\t\t<span\n\t\t\t\t\tclassName={`settings__button ${id} ${\n\t\t\t\t\t\tid === activeId ? 'active' : ''\n\t\t\t\t\t}`}\n\t\t\t\t>\n\t\t\t\t\t<span className=\"relative\">\n\t\t\t\t\t\t{name && <>{trans({ label: name() })} </>}\n\t\t\t\t\t\t{nameComponent && <>{nameComponent()} </>}\n\t\t\t\t\t\t{!!notification && <NotificationIcon notification={notification} />}\n\t\t\t\t\t</span>\n\t\t\t\t</span>\n\t\t\t)}\n\t\t\tContent={content}\n\t\t\tcallback={callback}\n\t\t\tisContentInitVisible={id === activeId}\n\t\t\tisContentVisible={id === activeId}\n\t\t/>\n\t);\n};\n\nexport const SettingsLayoutMobile: FC = () => {\n\tconst { sections } = useContext(SettingsLayoutContext);\n\treturn <>{sections.map(SlideDownBoxElement)}</>;\n};\n","import { FC, useCallback, useEffect, useState } from 'react';\nimport classnames from 'classnames';\nimport { useUserIsLogged } from '@common/selectors/user.selectors';\nimport {\n\tuseAppInitialized,\n\tuseAppMobile,\n} from '@common/selectors/app.selectors';\nimport { useRouterQueryTab } from '@common/selectors/router.selectors';\nimport { openModal } from '@modules/modals/store/modal.actions';\nimport { ModalIdType } from '@common/constants/modal/ids.modal.constants';\nimport { useAppDispatch } from '../../../hooks/store/useAppDispatch';\nimport { updateUrlQuery } from '../../store/app/app.actions';\nimport { trans } from '../../modules/translation/translate';\nimport { SettingsLayoutDesktop } from './SettingsLayout.desktop';\nimport { SettingsLayoutMobile } from './SettingsLayout.mobile';\nimport { SettingsLayoutContext } from './SettingsLayout.context';\n\nexport interface SettingsLayoutSection {\n\tid: string;\n\tname?: () => string;\n\tnameComponent?: any;\n\tnotification?: string;\n\tisActive?: () => boolean;\n\tisLogged?: boolean;\n\tisNarrow?: boolean;\n\tonClick?: ({ el }: { el: SettingsLayoutSection }) => void;\n\tmodal?: boolean;\n\tpanelTitle?: () => string;\n}\n\nexport interface SettingsLayoutProps {\n\tsections: SettingsLayoutSection[];\n\tdefaultTab?: string;\n\tgetSectionContent: any;\n}\n\nexport const SettingsLayout: FC<SettingsLayoutProps> = ({\n\tsections,\n\tdefaultTab,\n\tgetSectionContent,\n}) => {\n\tconst [activeId, setActiveId] = useState('');\n\tconst [activeTabData, setActiveTabData] =\n\t\tuseState<SettingsLayoutSection>(null);\n\n\tconst dispatch = useAppDispatch();\n\n\tconst isLogged = useUserIsLogged();\n\tconst isMobile = useAppMobile();\n\tconst routerQueryTab = useRouterQueryTab();\n\tconst isInitialized = useAppInitialized();\n\n\tconst checkActiveTab_ = useCallback(() => {\n\t\tif (!sections.some((section) => section.id === routerQueryTab)) {\n\t\t\tdispatch(updateUrlQuery({ tab: defaultTab || sections?.[0]?.id }));\n\t\t}\n\t}, [defaultTab, dispatch, routerQueryTab, sections]);\n\n\tconst getSectionContent_ = useCallback(\n\t\t(id: string, panelName: () => string, isNarrow?: boolean) => {\n\t\t\tconst panelName_ = panelName ? (\n\t\t\t\t<h3 className=\"text-style-xl-medium\">\n\t\t\t\t\t{trans({ label: panelName() })}\n\t\t\t\t</h3>\n\t\t\t) : null;\n\t\t\tconst content = getSectionContent(id);\n\t\t\tif (!content) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tkey={id}\n\t\t\t\t\tclassName={classnames(`settings__panel settings__panel--${id}`, {\n\t\t\t\t\t\t'settings__panel--narrow-padding': isNarrow,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{panelName_}\n\t\t\t\t\t{content}\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t\t[getSectionContent],\n\t);\n\n\tconst handleChangeSection_ = useCallback(\n\t\t(section: SettingsLayoutSection) => {\n\t\t\tif (section.onClick) {\n\t\t\t\treturn section.onClick({ el: section });\n\t\t\t}\n\t\t\tif (section.modal) {\n\t\t\t\tdispatch(openModal(section.id as ModalIdType, 'SettingsLayout'));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tdispatch(updateUrlQuery({ tab: section.id }));\n\t\t\treturn;\n\t\t},\n\t\t[dispatch],\n\t);\n\n\tconst getSectionData_ = useCallback(\n\t\t(id) => {\n\t\t\t// console.log('settingsLayout - getSectionData_', { sections, id });\n\t\t\treturn sections.find((section) => section.id === id);\n\t\t},\n\t\t[sections],\n\t);\n\n\tconst getSections_ = useCallback(() => {\n\t\tlet activeId_ = '';\n\t\tlet activeTabData_: SettingsLayoutSection = null;\n\t\tif (isInitialized) {\n\t\t\tactiveTabData_ = getSectionData_(routerQueryTab);\n\t\t\tactiveId_ = activeTabData_?.id;\n\t\t\tif (!activeTabData_ || (activeTabData_?.isLogged && !isLogged)) {\n\t\t\t\tactiveTabData_ = getSectionData_(defaultTab || sections?.[0]?.id);\n\t\t\t\tactiveId_ = activeTabData_?.id;\n\t\t\t\tupdateUrlQuery({ tab: activeId_ });\n\t\t\t}\n\t\t\t// console.log('settingsLayout - getSections', {\n\t\t\t// \tactiveTabData_,\n\t\t\t// \tactiveTabData,\n\t\t\t// \tactiveId_,\n\t\t\t// \tdefaultTab,\n\t\t\t// \trouterQueryTab,\n\t\t\t// \tsections,\n\t\t\t// });\n\t\t}\n\t\treturn {\n\t\t\tactiveId: activeId_,\n\t\t\tactiveTabData: activeTabData_,\n\t\t};\n\t}, [\n\t\tdefaultTab,\n\t\tgetSectionData_,\n\t\tisInitialized,\n\t\tisLogged,\n\t\trouterQueryTab,\n\t\tsections,\n\t]);\n\n\tuseEffect(() => {\n\t\tcheckActiveTab_();\n\t}, [checkActiveTab_, dispatch, isInitialized]);\n\n\tuseEffect(() => {\n\t\tconst { activeId: activeId_, activeTabData: activeTabData_ } =\n\t\t\tgetSections_();\n\t\tif (activeId !== activeId_) {\n\t\t\tsetActiveId(activeId_);\n\t\t\tsetActiveTabData(activeTabData_);\n\t\t}\n\t}, [activeId, getSections_]);\n\n\t// console.log('SettingsLayout', { sections, activeId, activeTabData });\n\n\treturn (\n\t\t<SettingsLayoutContext.Provider\n\t\t\tvalue={{\n\t\t\t\tsections,\n\t\t\t\tactiveId,\n\t\t\t\tactiveTabData,\n\t\t\t\thandleChangeSection: handleChangeSection_,\n\t\t\t\tgetSectionContent: getSectionContent_,\n\t\t\t}}\n\t\t>\n\t\t\t{isMobile ? <SettingsLayoutMobile /> : <SettingsLayoutDesktop />}\n\t\t</SettingsLayoutContext.Provider>\n\t);\n};\n","import styled, { css } from 'styled-components';\nimport classnames from 'classnames';\nimport { boxNoHeight } from '../../modules/style/defaults';\nimport { dashboard } from '../../modules/style/mixins/dashboard';\nimport { calcStyle } from '../../modules/style/methods/calcStyle';\n\nexport const SlideDownBoxStyle = styled.div.attrs((props) => ({\n\tclassName: classnames(props.className, 'slide-down__box'),\n}))<{\n\ttype?: string;\n\tnoDashboard?: boolean;\n}>`\n\t${boxNoHeight};\n\t${(props) =>\n\t\tprops.noDashboard\n\t\t\t? ''\n\t\t\t: dashboard(\n\t\t\t\t\t(padding) => css`\n\t\t\t\t\t\tmargin: 0 -${padding};\n\t\t\t\t\t\twidth: calc(100% + ${calcStyle({ a: padding, b: 2, mode: '*' })});\n\t\t\t\t\t`,\n\t\t\t )}\n\n\t&:last-of-type {\n\t\tmargin-bottom: -7px;\n\t}\n`;\n\nexport const SlideDownTitleStyle = styled.div.attrs((props) => ({\n\tclassName: classnames(props.className, 'slide-down__title'),\n}))<{\n\tisColor?: boolean;\n\tname: string;\n}>`\n\t${boxNoHeight};\n\tcursor: pointer;\n\tmargin-bottom: 0;\n\tmargin-top: 15px;\n\n\t&.icon-wrapper {\n\t\tpadding-right: 30px !important;\n\n\t\t[class*='icon'] {\n\t\t\tright: 13px;\n\t\t}\n\t}\n\n\t${(props) =>\n\t\tprops.isColor\n\t\t\t? `\n border-radius: ${props.theme.layout.borderRadius};\n background-color: ${props.theme.colors.inputButton};\n padding: 10px;\n `\n\t\t\t: ''}\n`;\n\nexport const SlideDownContentStyle = styled.div.attrs((props) => ({\n\tclassName: classnames(props.className, 'slide-down__content'),\n}))<{\n\tisActive: boolean;\n}>`\n\t${boxNoHeight};\n\tmax-height: ${(props) => (props.isActive ? '300vh' : '0')};\n\ttransition: ${(props) => (props.isActive ? '0.2s ease-in' : '0')};\n\toverflow: ${(props) => (props.isActive ? 'unset' : 'hidden')};\n\theight: auto;\n`;\n","import { FC, useCallback, useEffect, useRef, useState } from 'react';\nimport classnames from 'classnames';\nimport { useAppMobile } from '@common/selectors/app.selectors';\nimport { pageScrollTo } from '@common/methods/pageScrollTo';\nimport { isTrueOrZero } from '@common/methods/isTrueOrZero';\nimport { usePrevious } from '../../../hooks/render/usePrevious';\nimport {\n\tSlideDownBoxStyle,\n\tSlideDownContentStyle,\n\tSlideDownTitleStyle,\n} from './slideDownBox.style';\n\nexport const SlideDownBox: FC<{\n\tTitle?: FC<{ active: boolean }>;\n\tContent?: FC;\n\tisColor?: boolean;\n\ttitleClasses?: string;\n\tcontentClasses?: string;\n\tisContentInitVisible?: boolean;\n\tisContentVisible?: boolean;\n\tcallback?: (isVisible: boolean) => void;\n\tnoScrollTo?: boolean;\n\tboxClasses?: string;\n\tnoDashboard?: boolean;\n\tname: string;\n}> = ({\n\tTitle,\n\tContent,\n\tisColor,\n\ttitleClasses,\n\tcontentClasses,\n\tisContentInitVisible,\n\tisContentVisible,\n\tcallback,\n\tboxClasses,\n\tnoDashboard,\n\tname,\n\tnoScrollTo,\n}) => {\n\tconst [_isVisible, setIsVisible] = useState<boolean>(\n\t\tisTrueOrZero(isContentInitVisible) ? isContentInitVisible : false,\n\t);\n\tconst ref = useRef<HTMLDivElement>(null);\n\tconst timeoutRef = useRef(null);\n\tconst prevIsContentVisible = usePrevious(isContentVisible);\n\tconst isMobile = useAppMobile();\n\n\tconst handleClickTitle = useCallback(\n\t\t(event?: MouseEvent, isVisible?: boolean) => {\n\t\t\tif (isVisible === undefined) {\n\t\t\t\tisVisible = !_isVisible;\n\t\t\t}\n\t\t\tif (callback) {\n\t\t\t\tcallback(isVisible);\n\t\t\t}\n\t\t\tsetIsVisible(isVisible);\n\t\t\tif (isVisible && isMobile && ref?.current && !noScrollTo) {\n\t\t\t\tif (timeoutRef.current) {\n\t\t\t\t\tclearTimeout(timeoutRef.current);\n\t\t\t\t}\n\t\t\t\ttimeoutRef.current = setTimeout(() => {\n\t\t\t\t\tpageScrollTo({ top: ref?.current?.offsetTop - 50 });\n\t\t\t\t}, 300);\n\t\t\t}\n\t\t},\n\t\t[_isVisible, callback, isMobile, noScrollTo],\n\t);\n\n\tuseEffect(() => {\n\t\tif (isContentVisible !== prevIsContentVisible) {\n\t\t\thandleClickTitle(undefined, isContentVisible);\n\t\t}\n\t}, [isContentVisible, handleClickTitle, prevIsContentVisible]);\n\n\treturn (\n\t\t<SlideDownBoxStyle\n\t\t\tref={ref}\n\t\t\tclassName={boxClasses}\n\t\t\tnoDashboard={noDashboard}\n\t\t>\n\t\t\t<SlideDownTitleStyle\n\t\t\t\tname={`slide-down-title-${name}`}\n\t\t\t\tonClick={() => handleClickTitle()}\n\t\t\t\tisColor={isColor}\n\t\t\t\tclassName={classnames('icon-wrapper', titleClasses)}\n\t\t\t>\n\t\t\t\t{Title && <Title active={_isVisible} />}\n\t\t\t\t{Content && (\n\t\t\t\t\t<i\n\t\t\t\t\t\tclassName={classnames('icon__arrow-down', {\n\t\t\t\t\t\t\topened: _isVisible,\n\t\t\t\t\t\t})}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</SlideDownTitleStyle>\n\t\t\t{Content && (\n\t\t\t\t<SlideDownContentStyle isActive={_isVisible} className={contentClasses}>\n\t\t\t\t\t{(_isVisible || !process.browser) && <Content />}\n\t\t\t\t</SlideDownContentStyle>\n\t\t\t)}\n\t\t</SlideDownBoxStyle>\n\t);\n};\n","import React, { FC, useCallback, useEffect, useRef } from 'react';\nimport { Pagination, PaginationProps } from '@ui/pagination';\nimport { TableWrapper } from '@common/components/layout/Table/tableWrapper';\nimport { TABLE_ID, TableIdType } from '@modules/transactions/constants/TableId';\nimport { useAppMobile } from '@common/selectors/app.selectors';\nimport { useGameAutoBetPaused } from '@modules/games/Game/store/gameAutobet/gameAutobet.selectors';\nimport { LOADING_IDS } from '@common/constants/fetch/loading.ids';\nimport { TableWrapperProps } from '@common/components/layout/Table/types/TableWrapperProps';\nimport { autobetPause } from '@modules/games/Game/store/gameAutobet/gameAutobet.actions';\nimport { useOnMount } from '@common/hooks/useOnMount';\nimport { isFunction } from '@common/methods/isFunction';\nimport { useStateEffect } from '@common/hooks/useStateEffect';\nimport { useAppDispatch } from '../../../hooks/store/useAppDispatch';\nimport {\n\tuseTransactionsAnimation,\n\tuseTransactionsMeta,\n} from '../../store/transactions/transactions.selectors';\nimport transactionService from '../../../../modules/transactions/transactionsService';\nimport { usePrevious } from '../../../hooks/render/usePrevious';\nimport { TABLE_MOCKS } from '../../../mocks/tableMocks';\nimport {\n\tgetTransactionsThunk,\n\tGetTransactionsThunkProps,\n} from '../../store/transactions/thunks/getTransactions.thunk';\n\ntype GetData = (\n\tid: TableIdType,\n\tpage?: number,\n\tdisable?: boolean,\n\trefresh?: boolean,\n\tgetDataProps?: GetTransactionsThunkProps['props'],\n) => void;\n\nexport interface TransactionsTableProps {\n\tid: TableIdType;\n\tgetData?: GetData;\n\trefreshInterval?: number;\n\tloadingId?: LOADING_IDS;\n\tlimit?: number;\n\tgetDataProps?: Record<string, any>;\n\ttransactions?: TableWrapperProps['data'];\n\tsortCallback?: TableWrapperProps['sortCallback'];\n\tnoResultsText?: TableWrapperProps['noResultsText'];\n\tfilterCallback?: TableWrapperProps['sortCallback'];\n\tcolumns?: TableWrapperProps['columns'];\n\tclassic?: TableWrapperProps['classic'];\n\tdisableCompareKeysGeneration?: boolean;\n}\n\n// TODO:\n// - commented pagination\n\nconst useTableTransactions = (props: TransactionsTableProps) => {\n\tconst transactions_ = useTransactionsAnimation(props.id);\n\n\tconst getTransactions = useCallback(() => {\n\t\tconst transactions =\n\t\t\tprops.transactions ||\n\t\t\ttransactions_ ||\n\t\t\t(TABLE_MOCKS?.[props.id]?.length ? TABLE_MOCKS[props.id] : []);\n\n\t\tconst limited = props.limit\n\t\t\t? transactions?.slice(0, props.limit)\n\t\t\t: transactions;\n\n\t\treturn isFunction(props.filterCallback)\n\t\t\t? props.filterCallback(limited)\n\t\t\t: limited;\n\t}, [props, transactions_]);\n\n\treturn useStateEffect(getTransactions, (a, b) =>\n\t\ttransactionService.isListDifferent(\n\t\t\ta,\n\t\t\tb,\n\t\t\t!props.disableCompareKeysGeneration\n\t\t\t\t? transactionService.getRowCompareKeys(props.id, a)\n\t\t\t\t: null,\n\t\t),\n\t);\n};\n\nexport const TransactionsTable: FC<TransactionsTableProps> = (props) => {\n\tconst updateIntervalRef = useRef(null);\n\n\tconst isMobile = useAppMobile();\n\tconst autoBetPaused = useGameAutoBetPaused();\n\tconst meta = useTransactionsMeta(props.id);\n\tconst transactions = useTableTransactions(props);\n\tconst prevId = usePrevious(props.id);\n\tconst prevRefreshInterval = usePrevious(props.refreshInterval);\n\tconst prevGetDataProps = usePrevious(props.getDataProps);\n\n\tconst pagination = Number(meta?.last_page) > 1;\n\n\tconst dispatch = useAppDispatch();\n\n\tconst getData: GetData = useCallback(\n\t\t(id, page, disable, refresh) => {\n\t\t\tconsole.log('getData', id, page, disable, refresh, props);\n\t\t\tif (props.getData) {\n\t\t\t\treturn props.getData(id, page, disable, refresh, props.getDataProps);\n\t\t\t}\n\n\t\t\tif (!id) {\n\t\t\t\t// console.log('No ID of transactions data');\n\t\t\t\t// sentryError('No ID of transactions data', {\n\t\t\t\t// id,\n\t\t\t\t// page,\n\t\t\t\t// disable,\n\t\t\t\t// refresh,\n\t\t\t\t// });\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tdispatch(\n\t\t\t\tgetTransactionsThunk({\n\t\t\t\t\tid,\n\t\t\t\t\tpage,\n\t\t\t\t\tdisable,\n\t\t\t\t\trefresh,\n\t\t\t\t\tprops: props.getDataProps,\n\t\t\t\t}),\n\t\t\t);\n\t\t},\n\t\t[dispatch, props],\n\t);\n\n\tconst pauseAutobet = useCallback(\n\t\t(bool) => {\n\t\t\treturn dispatch(autobetPause(bool));\n\t\t},\n\t\t[dispatch],\n\t);\n\n\tconst isAutobetPaused = useCallback(() => {\n\t\treturn props.id === TABLE_ID.myBets && pagination;\n\t}, [pagination, props.id]);\n\n\tconst handlePauseAutobet = useCallback(() => {\n\t\tconst bool = isAutobetPaused();\n\t\tif (!!bool === !autoBetPaused) {\n\t\t\tpauseAutobet(bool);\n\t\t}\n\t}, [autoBetPaused, isAutobetPaused, pauseAutobet]);\n\n\tconst fetchData = useCallback(\n\t\t(id: TableIdType, page, lastId?: TableIdType, refresh?: boolean) => {\n\t\t\tgetData(id, page, false, refresh);\n\t\t\tif (!lastId) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tgetData(lastId, page, true, refresh);\n\t\t},\n\t\t[getData],\n\t);\n\n\tconst startUpdatesInterval = useCallback(\n\t\t(lastTableID?: TableIdType, refresh?: boolean) => {\n\t\t\t// console.log('startUpdateInterval', props.id, lastTableID, updateInterval, props.refreshInterval);\n\t\t\tfetchData(props.id, undefined, lastTableID, refresh);\n\t\t\tif (!props.refreshInterval || pagination) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// console.log('startUpdatesInterval', props.id, updateInterval);\n\t\t\tif (!updateIntervalRef.current) {\n\t\t\t\tupdateIntervalRef.current = setInterval(() => {\n\t\t\t\t\t// console.log('interval', props.id);\n\t\t\t\t\tfetchData(props.id, undefined, undefined, true);\n\t\t\t\t}, props.refreshInterval);\n\t\t\t}\n\t\t},\n\t\t[fetchData, props.id, pagination, props.refreshInterval],\n\t);\n\n\tconst clearUpdatesInterval = useCallback(() => {\n\t\t// console.log('clearUpdatesInterval', props.id, updateInterval);\n\t\tif (updateIntervalRef.current) {\n\t\t\tclearInterval(updateIntervalRef.current);\n\t\t\tupdateIntervalRef.current = undefined;\n\t\t}\n\t}, []);\n\n\tconst restartInterval = useCallback(\n\t\t(lastTableID?: TableIdType) => {\n\t\t\tclearUpdatesInterval();\n\t\t\tstartUpdatesInterval(lastTableID, true);\n\t\t},\n\t\t[clearUpdatesInterval, startUpdatesInterval],\n\t);\n\n\tconst onClickPage: PaginationProps['onClickPage'] = useCallback(\n\t\t(page) => {\n\t\t\tgetData(props.id, page);\n\t\t},\n\t\t[getData, props.id],\n\t);\n\n\tuseOnMount(() => {\n\t\thandlePauseAutobet();\n\t\tstartUpdatesInterval();\n\n\t\treturn () => {\n\t\t\tclearUpdatesInterval();\n\t\t\tgetData(props.id, undefined, true);\n\t\t\tpauseAutobet(false);\n\t\t};\n\t});\n\n\tuseEffect(() => {\n\t\tif (\n\t\t\tprevId !== props.id ||\n\t\t\ttransactionService.isDataDifferent(props.getDataProps, prevGetDataProps)\n\t\t) {\n\t\t\thandlePauseAutobet();\n\t\t\trestartInterval(prevId);\n\t\t}\n\t}, [\n\t\thandlePauseAutobet,\n\t\tprevGetDataProps,\n\t\tprevId,\n\t\tprops.getDataProps,\n\t\tprops.id,\n\t\trestartInterval,\n\t]);\n\n\tuseEffect(() => {\n\t\tif (prevRefreshInterval !== props.refreshInterval) {\n\t\t\trestartInterval();\n\t\t}\n\t}, [prevRefreshInterval, props.refreshInterval, restartInterval]);\n\n\tif (!props.id) {\n\t\treturn null;\n\t}\n\treturn (\n\t\t<TableWrapper\n\t\t\tdata={transactions}\n\t\t\tclassic={props.classic}\n\t\t\thighlightRow={true}\n\t\t\tid={props.id}\n\t\t\tsortCallback={props.sortCallback}\n\t\t\tnoResultsText={props.noResultsText || 'No transactions'}\n\t\t\tloadingId={props.loadingId}\n\t\t\tnoScroll={true}\n\t\t\tcolumns={props.columns}\n\t\t\tisMobile={isMobile}\n\t\t>\n\t\t\t<Pagination meta={meta} onClickPage={onClickPage} />\n\t\t</TableWrapper>\n\t);\n};\n","import { TableIdType } from '@modules/transactions/constants/TableId';\nimport { TransactionsResponseType } from '@modules/transactions/constants/TransactionsResponse.type';\nimport { GameType } from '@modules/games/Game/constants/availableGames';\nimport { useAppSelector } from '../../../hooks/store/useAppSelector';\nimport transactionService from '../../../../modules/transactions/transactionsService';\n\nexport const useTransactionsAnimation = <T = any>(id: TableIdType) => {\n\tlet dataStored = [];\n\tlet prev = false;\n\n\treturn useAppSelector<TransactionsResponseType<T>['data']>(\n\t\t(state) => {\n\t\t\tconst isAnimating = !!Object.keys(\n\t\t\t\tstate.game?.betsInAnimation?.[state.game.activeGame] ?? {},\n\t\t\t)?.length;\n\t\t\tconst data = state.transactions?.[id];\n\n\t\t\tif (isAnimating !== prev) {\n\t\t\t\tprev = isAnimating;\n\t\t\t}\n\n\t\t\tif (isAnimating !== prev || !dataStored?.length) {\n\t\t\t\tdataStored = data;\n\t\t\t}\n\n\t\t\treturn isAnimating ? dataStored : data;\n\t\t},\n\t\t(previous, next) =>\n\t\t\t!transactionService.isListDifferent(\n\t\t\t\tprevious,\n\t\t\t\tnext,\n\t\t\t\ttransactionService.getRowCompareKeys(id, previous),\n\t\t\t),\n\t);\n};\n\nexport const useTransactions = <T = any>(id: TableIdType, limit?: number) =>\n\tuseAppSelector<TransactionsResponseType<T>['data']>(\n\t\t(state) => {\n\t\t\tif (limit && state.transactions?.[id]?.length > limit) {\n\t\t\t\treturn state.transactions[id].slice(0, limit);\n\t\t\t}\n\t\t\treturn state.transactions?.[id];\n\t\t},\n\t\t(previous, next) =>\n\t\t\t!transactionService.isListDifferent(\n\t\t\t\tprevious,\n\t\t\t\tnext,\n\t\t\t\ttransactionService.getRowCompareKeys(id, previous),\n\t\t\t),\n\t);\n\nexport const useTransactionsPerGameActive = (id: TableIdType, game: GameType) =>\n\tuseAppSelector<boolean>((state) => !!state.transactions[id][game]?.length);\n\nexport const useTransactionsPerGame = <T = any>(\n\tid: TableIdType,\n\tgame: GameType,\n) =>\n\tuseAppSelector<TransactionsResponseType<T>['data']>(\n\t\t(state) => state.transactions[id][game],\n\t\t(previous, next) =>\n\t\t\t!transactionService.isListDifferent(\n\t\t\t\tprevious,\n\t\t\t\tnext,\n\t\t\t\ttransactionService.getRowCompareKeys(id, previous),\n\t\t\t),\n\t);\n\nexport const useTransactionsMeta = (id: TableIdType) =>\n\tuseAppSelector(\n\t\t(state) => state.transactions.meta[id],\n\t\t(previous, next) =>\n\t\t\ttransactionService.isDuplicate(previous, next, [\n\t\t\t\t'current_page',\n\t\t\t\t'total',\n\t\t\t\t'last_page',\n\t\t\t]),\n\t);\n","import React, { FC, PropsWithChildren, useCallback } from 'react';\nimport { columnsService } from '@modules/table/columnsService';\nimport { useStateEffect } from '@common/hooks/useStateEffect';\nimport transactionService from '../../../../modules/transactions/transactionsService';\nimport { TableWrapperProps } from './types/TableWrapperProps';\nimport { StyledTableWrapper } from './components/Table.styled';\nimport { Table } from './components/table';\n\nexport const TableWrapper: FC<PropsWithChildren<TableWrapperProps>> = ({\n\tchildren,\n\t...props\n}) => {\n\tconst getColumns = useCallback(() => {\n\t\treturn props.columns || columnsService.getColumns(props.id);\n\t}, [props.columns, props.id]);\n\tconst columns = useStateEffect(getColumns, (a, b) =>\n\t\ttransactionService.isListDifferent(a, b, ['id']),\n\t);\n\n\tconst getRowCompareKeys = useCallback(() => {\n\t\treturn (\n\t\t\tprops.rowCompareKeys ||\n\t\t\ttransactionService.getRowCompareKeys(props.id, props.data)\n\t\t);\n\t}, [props.data, props.id, props.rowCompareKeys]);\n\tconst rowCompareKeys = useStateEffect(getRowCompareKeys, (a, b) =>\n\t\ttransactionService.isListDifferent(a, b),\n\t);\n\n\tconst getTableCompareKeys = useCallback(() => {\n\t\treturn (\n\t\t\tprops.tableCompareKeys ||\n\t\t\ttransactionService.getTableCompareKeys(props.id, props.data)\n\t\t);\n\t}, [props.data, props.id, props.tableCompareKeys]);\n\tconst tableCompareKeys = useStateEffect(getTableCompareKeys, (a, b) =>\n\t\ttransactionService.isListDifferent(a, b),\n\t);\n\n\treturn (\n\t\t<StyledTableWrapper>\n\t\t\t<Table\n\t\t\t\t{...props}\n\t\t\t\tcolumns={columns}\n\t\t\t\ttableCompareKeys={tableCompareKeys}\n\t\t\t\trowCompareKeys={rowCompareKeys}\n\t\t\t/>\n\t\t\t{children}\n\t\t</StyledTableWrapper>\n\t);\n};\n","import { FC } from 'react';\nimport Head from 'next/head';\nimport { config } from '@legacyApp/client/config';\nimport { StructuredData } from '@legacyApp/types/default/StructuredData';\nimport { socialConfig } from '@server/config/social.config';\nimport { jsonToString } from '@common/methods/jsonToString';\n\ninterface Props extends StructuredData {\n\turl?: string;\n}\n\nexport interface AnyJsonLdProps {\n\tkeyOverride?: string;\n\tprops?: Props;\n}\n\nexport const parseUrlJsonLd = (uri?: string) =>\n\t`https://${config.domain}${uri ?? ''}`;\n\nexport const SAME_AS = Object.keys(socialConfig).map(\n\t(key) => socialConfig[key],\n);\n\nexport const AnyJsonLd: FC<AnyJsonLdProps> = ({ keyOverride, props }) => {\n\tconst url = parseUrlJsonLd(props.url);\n\tconst jslonld = {\n\t\t'@context': 'https://schema.org',\n\t\tname: config.appName,\n\t\turl,\n\t\tmainEntityOfPage: {\n\t\t\t'@type': 'WebPage',\n\t\t\t'@id': `${url}`,\n\t\t},\n\t\t...props,\n\t};\n\n\treturn (\n\t\t<Head>\n\t\t\t<script\n\t\t\t\ttype=\"application/ld+json\"\n\t\t\t\tdangerouslySetInnerHTML={{ __html: jsonToString(jslonld) }}\n\t\t\t\tkey={`jsonld-article${keyOverride ? `-${keyOverride}` : ''}`}\n\t\t\t/>\n\t\t</Head>\n\t);\n};\n","import { BreadcrumbJsonLd } from 'next-seo';\nimport { ItemListElements } from 'next-seo/lib/jsonld/breadcrumb';\nimport { FC } from 'react';\n\nimport { parseUrlJsonLd } from '@common/components/seo/AnyJsonLd';\nimport { simpleTrans } from '@legacyApp/client/modules/translation/translationService';\nimport { BreadcrumbData } from '@common/methods/getBreadcrumbs';\nimport { checkIsTransProps } from '@legacyApp/client/modules/translation/checkIsTransProps';\n\nconst mapBreadcrumbToJsonLd = (item: BreadcrumbData): BreadcrumbData => ({\n\t...item,\n\tname: checkIsTransProps(item.name)\n\t\t? simpleTrans(\n\t\t\t\titem.name.label as string,\n\t\t\t\titem.name?.options,\n\t\t\t\titem.name?.namespace,\n\t\t )\n\t\t: item.name,\n\titem: parseUrlJsonLd(item.item),\n});\n\nexport const BreadcrumbDomainJsonLd: FC<{\n\titemListElements: BreadcrumbData[];\n}> = ({ itemListElements }) => (\n\t<BreadcrumbJsonLd\n\t\tkeyOverride=\"breadcrumbs\"\n\t\titemListElements={\n\t\t\titemListElements.map(mapBreadcrumbToJsonLd) as ItemListElements[]\n\t\t}\n\t/>\n);\n","import { config } from '@legacyApp/client/config';\nimport { getPathLocalized } from '@common/methods/getPathLocalized/getPathLocalized';\nimport { TransProps } from '@legacyApp/client/modules/translation/translate';\n\nexport type BreadcrumbData = {\n\tlocale?: string;\n\tposition?: number;\n\tname?: string | TransProps;\n\tpathname?: string;\n\titem?: string;\n};\n\nexport const getBreadcrumb = ({\n\tlocale,\n\tposition = 1,\n\tname = config.appName,\n\tpathname = '/',\n}: BreadcrumbData) => ({\n\tposition,\n\tname,\n\titem: getPathLocalized({\n\t\tpathname,\n\t\tlocale,\n\t}),\n});\n\nexport const getBreadcrumbs = (locale: string, data: Array<BreadcrumbData>) => [\n\tgetBreadcrumb({ locale }),\n\t...data.map((el, index) =>\n\t\tgetBreadcrumb({\n\t\t\tlocale,\n\t\t\tposition: index + 2,\n\t\t\tname: el.name,\n\t\t\tpathname: el.pathname,\n\t\t}),\n\t),\n];\n","import { isFunction } from './isFunction';\nimport { isTrueOrZero } from './isTrueOrZero';\n\nexport interface PageScrollToProps {\n\ttop?: number;\n\tleft?: number;\n}\n\nexport const pageScrollTo = ({ top, left }: PageScrollToProps) => {\n\tconst element = document.body.parentElement;\n\n\tif (\n\t\telement &&\n\t\tisFunction(element.scrollTo) &&\n\t\t(isTrueOrZero(top) || isTrueOrZero(left))\n\t) {\n\t\telement.scrollTo({\n\t\t\tbehavior: 'smooth',\n\t\t\ttop: isTrueOrZero(top) ? top : 0,\n\t\t\tleft: isTrueOrZero(left) ? left : 0,\n\t\t});\n\t}\n};\n","import { actionSimple } from '@legacyApp/client/modules/app/actionService';\nimport { CurrencyType } from '@legacyApp/types/wallet/CurrencyType';\nimport { roundNumber } from '@common/methods/roundNumber/roundNumber';\nimport { LocalStorageKeys } from '@modules/localStorage/types/localStorageKeys.type';\nimport { GameType } from '../../constants/availableGames';\nimport { RollRule } from '../../types/RollRule';\nimport { AutoBetMode } from '../game/thunks/handleBet.thunk';\nimport {\n\tAUTOBET,\n\tAUTOBET_CLEAR,\n\tAUTOBET_PAUSE,\n\tAUTOBET_PLAY,\n\tAUTOBET_RESET_TO_DEFAULT,\n\tAUTOBET_ROLLING,\n\tAUTOBET_SET_ACTIVE,\n\tAUTOBET_SET_AUTO_STATS,\n\tAUTOBET_SET_CONFIG,\n\tAUTOBET_SET_CONFIG_EASY,\n\tAUTOBET_SET_CURRENCY,\n\tAUTOBET_SET_DEFAULTS,\n\tAUTOBET_SET_EDIT_MODAL,\n\tAUTOBET_SET_ID,\n\tAUTOBET_SET_MANUAL,\n\tAUTOBET_SET_MODE,\n\tAUTOBET_SET_PAUSE,\n\tAUTOBET_SET_PAUSE_DATA,\n\tAUTOBET_SET_ROLLS,\n\tAUTOBET_SET_ROLLS_COUNTER,\n\tAUTOBET_STOP,\n\tAUTOBET_STOPPED,\n\tAUTOBET_SUMMARY_CONNECTION_ERROR,\n\tAUTOBET_UPDATE_CONFIG_EASY,\n\tDELETE_AUTOBET_STRATEGY,\n\tDISABLE_CHECK_AUTOBET_STRATEGY,\n\tEDIT_AUTOBET_STRATEGY,\n\tGET_AUTOBET_STRATEGIES,\n\tSAVE_AUTOBET_STRATEGY,\n\tSET_ACTIVE_AUTOBET_STRATEGY,\n\tSET_AUTOBET_STRATEGIES,\n} from './gameAutobet.constants';\n\nexport const autobet = actionSimple(AUTOBET);\n\nexport const autobetPause = actionSimple(AUTOBET_PAUSE);\n\nexport const autobetSetPause = actionSimple(AUTOBET_SET_PAUSE);\n\nexport const autobetSetPauseData = actionSimple(AUTOBET_SET_PAUSE_DATA);\n\nexport const saveAutobetStrategy = (payload, setActive) => ({\n\ttype: SAVE_AUTOBET_STRATEGY,\n\tpayload,\n\tsetActive,\n});\n\nexport const editAutobetStrategy = actionSimple(EDIT_AUTOBET_STRATEGY);\n\nexport const setAutobetStrategies = actionSimple(SET_AUTOBET_STRATEGIES);\n\nexport const getAutobetStrategies = actionSimple(GET_AUTOBET_STRATEGIES);\n\nexport const deleteAutobetStrategy = actionSimple(DELETE_AUTOBET_STRATEGY);\n\nexport const setActiveAutobetStrategy = actionSimple(\n\tSET_ACTIVE_AUTOBET_STRATEGY,\n);\n\nexport const disableCheckAutobetStrategy = actionSimple(\n\tDISABLE_CHECK_AUTOBET_STRATEGY,\n);\n\nexport const getAutobetSessionLength = (game) => {\n\treturn (dispatch, getState) => {\n\t\tconst gameSession = getState().gameSession;\n\t\treturn roundNumber(\n\t\t\tparseFloat(gameSession.lostAuto[game]) +\n\t\t\t\tparseFloat(gameSession.wonAuto[game]),\n\t\t\t0,\n\t\t);\n\t};\n};\n\nexport const autobetSummaryConnectionError = (\n\tbet,\n\tdata = null,\n\tonlyAlert = false,\n) => ({\n\ttype: AUTOBET_SUMMARY_CONNECTION_ERROR,\n\tbet,\n\tdata,\n\tonlyAlert,\n});\n\nexport const autobetSetRolls = actionSimple(AUTOBET_SET_ROLLS);\n\nexport const autobetSetRollsCounter = actionSimple(AUTOBET_SET_ROLLS_COUNTER);\n\nexport const autobetSetActive = actionSimple<{\n\tgame: GameType;\n\tvalue: AutoBetMode | boolean;\n}>(AUTOBET_SET_ACTIVE);\n\nexport const autoBetRolling = actionSimple(AUTOBET_ROLLING);\n\nexport interface AutobetPlayProps {\n\tgame: GameType;\n\tcurrency: CurrencyType;\n\trule?: RollRule;\n\tstopped?: boolean;\n\tmanualConfirmed?: boolean;\n}\n\nexport const autobetPlay = actionSimple<AutobetPlayProps>(AUTOBET_PLAY);\n\nexport const autobetStop = actionSimple(AUTOBET_STOP);\n\nexport const autobetStopped = actionSimple(AUTOBET_STOPPED);\n\nexport const autobetClear = actionSimple(AUTOBET_CLEAR);\n\nexport const autobetSetMode = actionSimple(AUTOBET_SET_MODE, {\n\tlsKey: LocalStorageKeys.AUTOBET_MODE,\n});\n\nexport const autobetSetConfig = actionSimple(AUTOBET_SET_CONFIG);\n\nexport const autobetSetEditModal = actionSimple(AUTOBET_SET_EDIT_MODAL);\n\nexport const autobetSetConfigEasy = actionSimple(AUTOBET_SET_CONFIG_EASY);\n\nexport const autobetUpdateConfigEasy = actionSimple(AUTOBET_UPDATE_CONFIG_EASY);\n\nexport const autobetSetAutoStats = actionSimple(AUTOBET_SET_AUTO_STATS);\n\nexport const autobetSetId = (game, id) => ({\n\ttype: AUTOBET_SET_ID,\n\tgame,\n\tid,\n});\n\nexport const autobetSetCurrency = (game, payload) => ({\n\ttype: AUTOBET_SET_CURRENCY,\n\tgame,\n\tpayload,\n});\n\nexport const autobetSetManual = actionSimple(AUTOBET_SET_MANUAL);\n\nexport const autobetResetToDefault = actionSimple(AUTOBET_RESET_TO_DEFAULT);\nexport const autobetSetDefaults = actionSimple(AUTOBET_SET_DEFAULTS);\n","import { shallowEqual } from 'react-redux';\nimport { useAppSelector } from '@legacyApp/hooks/store/useAppSelector';\nimport { CurrencyType } from '@legacyApp/types/wallet/CurrencyType';\nimport transactionService from '../../../../transactions/transactionsService';\nimport { GameType } from '../../constants/availableGames';\nimport { GameStrategy } from '../../types/GameStrategy';\nimport { AutoBetMode } from '../game/thunks/handleBet.thunk';\n\nexport const useGameAutoBetIsRolling = (game: GameType) =>\n\tuseAppSelector<boolean>(\n\t\t(state) => state.gameAutobet?.autoBetRolling[game],\n\t\tshallowEqual,\n\t);\nexport const useGameAutoBetActive = (game: GameType) =>\n\tuseAppSelector<AutoBetMode | boolean>(\n\t\t(state) => state.gameAutobet?.active[game],\n\t\tshallowEqual,\n\t);\nexport const useGameAutoBetMode = () =>\n\tuseAppSelector<string>((state) => state.gameAutobet?.mode, shallowEqual);\n\nexport const useGameAutoBetCurrency = (game: GameType) =>\n\tuseAppSelector<CurrencyType>(\n\t\t(state) => state.gameAutobet?.currency[game],\n\t\tshallowEqual,\n\t);\n\nexport const useGameAutoBetStats = () =>\n\tuseAppSelector<boolean>(\n\t\t(state) => state.gameAutobet?.autoStats,\n\t\tshallowEqual,\n\t);\n\nexport const useGameAutoBetRollsCounter = (game: GameType) =>\n\tuseAppSelector<number>(\n\t\t(state) => state.gameAutobet?.rollsCounter[game],\n\t\tshallowEqual,\n\t);\n\nexport const useGameAutoBetConfigEasy = (game?: GameType) =>\n\tuseAppSelector(\n\t\t(state) => state.gameAutobet?.configEasy[game || state.game?.activeGame],\n\t\t(previous, next) => !transactionService.isDataDifferent(previous, next),\n\t);\n\nexport const useGameAutoBetPaused = () =>\n\tuseAppSelector<boolean>((state) => state.gameAutobet?.pause, shallowEqual);\n\nexport const useGameAutoBetStrategies = () =>\n\tuseAppSelector<GameStrategy[]>(\n\t\t(state) => state.gameAutobet?.strategies,\n\t\t(previous, next) => !transactionService.isListDifferent(previous, next),\n\t);\n\nexport const useGameAutoBetActiveStrategy = (game?: GameType) =>\n\tuseAppSelector<string>(\n\t\t(state) =>\n\t\t\tstate.gameAutobet?.activeStrategy[game || state.game?.activeGame],\n\t\t(previous, next) => !transactionService.isDataDifferent(previous, next),\n\t);\n","import styled, { css } from 'styled-components';\nimport { boxNoHeight } from '../defaults';\n\nexport const InputsInlineStyle = styled.div.attrs(() => ({\n\tclassName: 'inputs-inline',\n}))`\n\t${boxNoHeight}\n\n\t.input-wrapper:first-of-type {\n\t\tpadding-right: 10px;\n\t}\n\n\t${(props) =>\n\t\tprops.origin\n\t\t\t? css`\n\t\t\t\t\t.input-wrapper {\n\t\t\t\t\t\t&:first-of-type {\n\t\t\t\t\t\t\twidth: ${props.origin}px;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&:last-of-type {\n\t\t\t\t\t\t\twidth: calc(100% - ${props.origin}px);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t@media (max-width: ${(props) => props.theme.media.maxWidthDesktop}) {\n\t\t\t\t\t\t.input-wrapper {\n\t\t\t\t\t\t\t&:first-of-type {\n\t\t\t\t\t\t\t\twidth: ${props.origin - 20}px;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t&:last-of-type {\n\t\t\t\t\t\t\t\twidth: calc(100% - ${props.origin - 20}px);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t@media (max-width: ${(props) => props.theme.media.maxWidthTablet}) {\n\t\t\t\t\t\t.input-wrapper {\n\t\t\t\t\t\t\t&:first-of-type {\n\t\t\t\t\t\t\t\twidth: ${props.origin - 70}px;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t&:last-of-type {\n\t\t\t\t\t\t\t\twidth: calc(100% - ${props.origin - 70}px);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t `\n\t\t\t: ''}\n`;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport { trans } from '../../../modules/translation/translate';\nimport { InputWrapper } from '../../input/inputWrapper';\nimport { InputWrapperContainer } from '../../input/inputWrapper.container';\nimport { Button } from '../../button';\nimport { enhanceComponent } from '../../../wrappers/enhanceComponent';\nimport { PasswordFormStyle } from '../../passwordForm/passwordForm.style';\nimport { InputMessageStyles } from '../../input/styled/input.style';\nimport { InputsInlineStyle } from '../../../modules/style/components/inputsInline.style';\nimport { config } from '../../../config';\n\nclass CampaignForm extends React.PureComponent {\n\tstatic propTypes = {\n\t\tcode: PropTypes.string,\n\t\tname: PropTypes.string,\n\t\tisValid: PropTypes.bool,\n\t\tonlyForm: PropTypes.any,\n\t\terrorsList: PropTypes.array,\n\t\ttriggerValidate: PropTypes.any,\n\t\tsubmitCampaign: PropTypes.func,\n\t\tupdatePasswordValidate: PropTypes.func,\n\t\tvalidatePassword: PropTypes.func,\n\t\tupdateValue: PropTypes.func,\n\t\tonSubmit: PropTypes.func,\n\t};\n\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tnameValidate: true,\n\t\t\tcodeValidate: true,\n\t\t\tsubmitDisabled: true,\n\t\t\torigin: `https://${config.domain}?c=`,\n\t\t};\n\t\tthis.element = React.createRef();\n\t}\n\n\tcomponentDidMount() {\n\t\tthis.setSubmitDisabled();\n\t\tdocument.addEventListener('keyup', this.handleKeyboard);\n\t}\n\n\tcomponentWillUnmount() {\n\t\tthis.props.updateValue('name', '');\n\t\tthis.props.updateValue('code', '');\n\t\tdocument.removeEventListener('keyup', this.handleKeyboard);\n\t}\n\n\tcomponentDidUpdate(prevProps, prevState) {\n\t\tconst nameChanged = this.props.name !== prevProps.name;\n\t\tconst codeChanged = this.props.code !== prevProps.code;\n\t\tconst nameValidateChanged =\n\t\t\tthis.state.nameValidate !== prevState.nameValidate;\n\t\tconst codeValidateChanged =\n\t\t\tthis.state.codeValidate !== prevState.codeValidate;\n\n\t\tif (nameValidateChanged || codeValidateChanged) {\n\t\t\tthis.setSubmitDisabled();\n\t\t}\n\n\t\tif (nameChanged) {\n\t\t\tthis.nameValidate();\n\t\t}\n\n\t\tif (codeChanged) {\n\t\t\tthis.codeValidate();\n\t\t}\n\t}\n\n\thandleKeyboard = (obj) => {\n\t\tif (!this.element.current) {\n\t\t\treturn;\n\t\t}\n\n\t\t// handle Enter click\n\t\tif (obj.keyCode === 13) {\n\t\t\tthis.submitCreateCampaign();\n\t\t}\n\t};\n\n\tsetSubmitDisabled() {\n\t\tconst bool = !this.validateSubmit();\n\t\tif (bool !== this.state.submitDisabled) {\n\t\t\tthis.setState({\n\t\t\t\tsubmitDisabled: bool,\n\t\t\t});\n\t\t}\n\t}\n\n\tcodeValidate() {\n\t\tif (!this.props.code) {\n\t\t\treturn;\n\t\t}\n\t\tthis.setState({\n\t\t\tcodeValidate: this.props.code.length > 3,\n\t\t});\n\t}\n\n\tnameValidate() {\n\t\tif (!this.props.name) {\n\t\t\treturn;\n\t\t}\n\t\tthis.setState({\n\t\t\tnameValidate: this.props.name.length > 3,\n\t\t});\n\t}\n\n\thandleNameChange = (value) => {\n\t\tthis.props.updateValue('name', value);\n\t};\n\n\thandleCodeChange = (value) => {\n\t\tthis.props.updateValue('code', value);\n\t};\n\n\tvalidateSubmit = () => {\n\t\treturn (\n\t\t\tthis.state.nameValidate &&\n\t\t\tthis.state.codeValidate &&\n\t\t\tthis.props.code &&\n\t\t\tthis.props.name\n\t\t);\n\t};\n\n\tsubmitCreateCampaign = () => {\n\t\tif (!this.state.submitDisabled) {\n\t\t\tthis.props.submitCampaign({\n\t\t\t\tname: this.props.name,\n\t\t\t\tconfirm: this.props.code,\n\t\t\t});\n\t\t}\n\t};\n\n\trender() {\n\t\treturn (\n\t\t\t<PasswordFormStyle ref={this.element}>\n\t\t\t\t<InputWrapperContainer\n\t\t\t\t\tname={'campaign-name'}\n\t\t\t\t\tvalue={this.props.name}\n\t\t\t\t\tonChange={this.handleNameChange}\n\t\t\t\t\tplaceholder={'Campaign name'}\n\t\t\t\t>\n\t\t\t\t\t{!this.state.nameValidate && (\n\t\t\t\t\t\t<StyledInputMessage as={'span'} className=\"text-negative\">\n\t\t\t\t\t\t\t{trans({\n\t\t\t\t\t\t\t\tlabel: 'Campaign name must have at least {{min}} letters',\n\t\t\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\t\t\tmin: 4,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</StyledInputMessage>\n\t\t\t\t\t)}\n\t\t\t\t</InputWrapperContainer>\n\t\t\t\t<InputsInlineStyle origin={230}>\n\t\t\t\t\t<InputWrapper\n\t\t\t\t\t\tname={'campaign-origin'}\n\t\t\t\t\t\tvalue={this.state.origin}\n\t\t\t\t\t\tisDisabled={true}\n\t\t\t\t\t/>\n\t\t\t\t\t<InputWrapperContainer\n\t\t\t\t\t\tname={'campaign-id'}\n\t\t\t\t\t\tvalue={this.props.code}\n\t\t\t\t\t\tonChange={this.handleCodeChange}\n\t\t\t\t\t\tplaceholder={'Campaign identifier'}\n\t\t\t\t\t>\n\t\t\t\t\t\t{!this.state.codeValidate && (\n\t\t\t\t\t\t\t<StyledInputMessage as={'span'} className=\"text-negative\">\n\t\t\t\t\t\t\t\t{trans({\n\t\t\t\t\t\t\t\t\tlabel:\n\t\t\t\t\t\t\t\t\t\t'Campaign identifier must have at least {{min}} letters',\n\t\t\t\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\t\t\t\tmin: 4,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t</StyledInputMessage>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</InputWrapperContainer>\n\t\t\t\t</InputsInlineStyle>\n\t\t\t\t<Button\n\t\t\t\t\tname=\"create_campaign\"\n\t\t\t\t\tdisabled={this.state.submitDisabled}\n\t\t\t\t\tonClick={this.submitCreateCampaign}\n\t\t\t\t\tloadingId=\"createCampaign\"\n\t\t\t\t\tlocalTheme={{\n\t\t\t\t\t\ttype: 'positive',\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{trans({ label: 'Create campaign' })}\n\t\t\t\t</Button>\n\t\t\t</PasswordFormStyle>\n\t\t);\n\t}\n}\n\nconst StyledInputMessage = styled(InputMessageStyles)`\n\twhite-space: normal !important;\n`;\n\nCampaignForm = enhanceComponent({\n\tCampaignForm,\n});\n\nexport { CampaignForm };\n","import { connect } from 'react-redux';\nimport {\n\tupdateCampaignCode,\n\tupdateCampaignName,\n} from '../../../store/forms/forms.actions';\nimport { submitCampaign } from '../../../store/affiliate/affiliate.actions';\nimport { CampaignForm } from './campaignForm';\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tname: state.forms.campaign.name,\n\t\tcode: state.forms.campaign.code,\n\t};\n};\n\nconst mapDispatchToProps = (dispatch) => {\n\treturn {\n\t\tsubmitCampaign: () => dispatch(submitCampaign()),\n\t\tupdateValue: (key, value) => {\n\t\t\tif (key === 'name') {\n\t\t\t\tdispatch(updateCampaignName(value));\n\t\t\t}\n\t\t\tif (key === 'code') {\n\t\t\t\tdispatch(updateCampaignCode(value));\n\t\t\t}\n\t\t},\n\t};\n};\n\nconst CampaignFormContainer = connect(\n\tmapStateToProps,\n\tmapDispatchToProps,\n)(CampaignForm);\n\nexport { CampaignFormContainer };\n","import { createGlobalStyle } from 'styled-components';\nimport { ThemeType } from '../../modules/style/theme';\n\nexport const StyledAffiliateGlobal = createGlobalStyle<{ theme: ThemeType }>`\n\t.page-user_affiliate {\n\t\t.description-box {\n\t\t\tp {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t.table-affiliateCampaigns {\n\t\t.table__cell {\n\t\t\t.currency-logo {\n\t\t\t\tmargin-right: 5px;\n\t\t\t}\n\t\t}\n\n\t\t.table {\n\t\t\t&__column {\n\t\t\t\t&--name,\n\t\t\t\t&--published_at,\n\t\t\t\t&--global_commission_normalized {\n\t\t\t\t\tmin-width: 100px;\n\t\t\t\t\twidth: 33.33%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n`;\n","import React, { Fragment } from 'react';\nimport PropTypes from 'prop-types';\nimport { Button } from '@ui/button';\nimport { LinkTo } from '@common/components/default/LinkTo/LinkTo';\nimport { ROUTING_ID } from '@common/constants/routing/ids.routing.constants';\nimport { Redirect } from '@common/components/default/Redirect/Redirect';\nimport { TABLE_ID } from '@modules/transactions/constants/TableId';\nimport { LOADING_IDS } from '@common/constants/fetch/loading.ids';\nimport {\n\tcreateNamespaceTrans,\n\ttrans,\n} from '../../modules/translation/translate';\nimport routingService from '../../modules/app/routingService';\nimport sortService, { DIRECTION } from '../../modules/app/sortService';\nimport { config } from '../../config';\nimport { enhanceComponent } from '../../wrappers/enhanceComponent';\nimport { CampaignFormContainer } from '../../components/affiliate/campaignForm';\nimport { SettingsLayout } from '../../components/settingsLayout/settingsLayout';\nimport { TransactionsTable } from '../../components/transactionsTable/transactionsTable';\nimport { StyledMainDashboardV2 } from '../../modules/style/components/MainDashboard.styled';\nimport { DescriptionBoxStyle } from '../../modules/style/components/descriptionBox.style';\nimport { TransNamespace } from '../../modules/translation/TransNamespace';\nimport { StyledAffiliateGlobal } from './Affiliate.global.styled';\n\nconst AFFILATE_COMMISION = 5;\n\nexport const TransAffiliate = createNamespaceTrans(TransNamespace.AFFILIATE);\n\nclass AffiliatePage extends React.Component {\n\tstatic propTypes = {\n\t\tisMobile: PropTypes.bool.isRequired,\n\t\twithdrawAvailableCommissions: PropTypes.func,\n\t};\n\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tcommision: AFFILATE_COMMISION,\n\t\t\trefreshInterval: config.refreshAffiliateDataTimeout,\n\t\t\tsections: [\n\t\t\t\t{\n\t\t\t\t\tid: 'overview',\n\t\t\t\t\tname: () => 'Overview',\n\t\t\t\t\tisNarrow: true,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 'campaigns',\n\t\t\t\t\tname: () => 'Campaigns',\n\t\t\t\t\tisNarrow: true,\n\t\t\t\t\tisLogged: true,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 'funds',\n\t\t\t\t\tname: () => 'Funds',\n\t\t\t\t\tisNarrow: true,\n\t\t\t\t\tisLogged: true,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 'cashout_history',\n\t\t\t\t\tname: () => 'Claim history',\n\t\t\t\t\tisNarrow: true,\n\t\t\t\t\tisLogged: true,\n\t\t\t\t},\n\t\t\t],\n\t\t\tdefaultTab: 'overview',\n\t\t};\n\t}\n\n\tsort = (data) =>\n\t\tdata.sort((a, b) =>\n\t\t\tsortService.sort(\n\t\t\t\tDIRECTION.DESC,\n\t\t\t\ta.id,\n\t\t\t\tb.id,\n\t\t\t\ta.published_at,\n\t\t\t\tb.published_at,\n\t\t\t),\n\t\t);\n\n\tgoToCreateCampaign = () => {\n\t\treturn (\n\t\t\t<LinkTo\n\t\t\t\thref={routingService.to(\n\t\t\t\t\t`${ROUTING_ID.USER_AFFILIATE}?tab=create_campaign`,\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t<Button\n\t\t\t\t\tname=\"create-campaign\"\n\t\t\t\t\tclassName=\"margin-top box-no-height\"\n\t\t\t\t\tlabel={trans({ label: 'Create campaign' })}\n\t\t\t\t/>\n\t\t\t</LinkTo>\n\t\t);\n\t};\n\n\tgetSectionContent = (id) => {\n\t\tif (id === 'overview') {\n\t\t\treturn (\n\t\t\t\t<DescriptionBoxStyle $background={'transparent'}>\n\t\t\t\t\t<p className=\"text-bold text-active margin-bottom\">\n\t\t\t\t\t\t<TransAffiliate label=\"We are happy that you want to become a WOLFBET affiliate and spread the good word about our brand\" />\n\t\t\t\t\t\t!\n\t\t\t\t\t</p>\n\t\t\t\t\t<p className=\"text-disabled margin-bottom\">\n\t\t\t\t\t\t<TransAffiliate\n\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t'Our affiliate program is based on <1>revenue share</1> which is the most honest and profitable model for affiliate marketers'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcomponents={\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\tOur affiliate program is based on{' '}\n\t\t\t\t\t\t\t\t\t<span className=\"text-underline\">revenue share</span> which is\n\t\t\t\t\t\t\t\t\tthe most honest and profitable model for affiliate marketers\n\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t!\n\t\t\t\t\t</p>\n\t\t\t\t\t<Redirect\n\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\tclassName=\"active\"\n\t\t\t\t\t\thref={`https://partners.${config.domain}/register`}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tname={'register to partners panel'}\n\t\t\t\t\t\t\tclassName=\"no-margin margin-top margin-bottom\"\n\t\t\t\t\t\t\tlabel={<TransAffiliate label={'Register to Partners Panel'} />}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Redirect>\n\t\t\t\t\t<p className=\"text-disabled mt-0\">\n\t\t\t\t\t\t<TransAffiliate label={'and become an official affiliate'} />!\n\t\t\t\t\t</p>\n\t\t\t\t</DescriptionBoxStyle>\n\t\t\t);\n\t\t}\n\n\t\tif (id === 'campaigns') {\n\t\t\treturn (\n\t\t\t\t<TransactionsTable\n\t\t\t\t\tid={TABLE_ID.affiliateCampaigns}\n\t\t\t\t\trefreshInterval={this.state.refreshInterval}\n\t\t\t\t\tsortCallback={this.sort}\n\t\t\t\t\t// pagination={true}\n\t\t\t\t\tnoResultsText={this.goToCreateCampaign()}\n\t\t\t\t\tloadingId={LOADING_IDS.AFFILIATE_CAMPAIGNS}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\tif (id === 'create_campaign') {\n\t\t\treturn <CampaignFormContainer />;\n\t\t}\n\n\t\tif (id === 'funds') {\n\t\t\treturn (\n\t\t\t\t<Fragment>\n\t\t\t\t\t<TransactionsTable\n\t\t\t\t\t\tid={TABLE_ID.affiliateFunds}\n\t\t\t\t\t\trefreshInterval={this.state.refreshInterval}\n\t\t\t\t\t\tnoResultsText={'No data'}\n\t\t\t\t\t\tloadingId={LOADING_IDS.AFFILIATE_FUNDS}\n\t\t\t\t\t/>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tname=\"cashout-commissions\"\n\t\t\t\t\t\tonClick={this.props.withdrawAvailableCommissions}\n\t\t\t\t\t\tloadingId=\"withdrawAvailableCommissions\"\n\t\t\t\t\t\tlabel={<TransAffiliate label={'Claim available Commissions'} />}\n\t\t\t\t\t/>\n\t\t\t\t\t<p className=\"hint\">\n\t\t\t\t\t\t<TransAffiliate\n\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t'Transfers affiliate commission to your available balance.'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</p>\n\t\t\t\t</Fragment>\n\t\t\t);\n\t\t}\n\n\t\tif (id === 'analytics') {\n\t\t\treturn (\n\t\t\t\t<TransactionsTable\n\t\t\t\t\tid={TABLE_ID.affiliateAnalytics}\n\t\t\t\t\trefreshInterval={this.state.refreshInterval}\n\t\t\t\t\tsortCallback={this.sort}\n\t\t\t\t\tnoResultsText={this.goToCreateCampaign()}\n\t\t\t\t\tloadingId={LOADING_IDS.AFFILIATE_ANALYTICS}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\tif (id === 'cashout_history') {\n\t\t\treturn (\n\t\t\t\t<TransactionsTable\n\t\t\t\t\tclassic\n\t\t\t\t\tid={TABLE_ID.affiliateCashoutHistory}\n\t\t\t\t\tsortCallback={this.sort}\n\t\t\t\t\t// pagination={true}\n\t\t\t\t\tnoResultsText={'Empty history'}\n\t\t\t\t\tloadingId={LOADING_IDS.AFFILIATE_CASHOUT_HISTORY}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn false;\n\t};\n\n\trender() {\n\t\treturn (\n\t\t\t<StyledMainDashboardV2>\n\t\t\t\t<StyledAffiliateGlobal />\n\t\t\t\t<h1 className=\"page-title\">\n\t\t\t\t\t<TransAffiliate label={'Affiliate Program'} />\n\t\t\t\t</h1>\n\t\t\t\t<SettingsLayout\n\t\t\t\t\tgetSectionContent={this.getSectionContent}\n\t\t\t\t\tsections={this.state.sections.filter((el) => !el.disabled)}\n\t\t\t\t\tdefaultTab={this.state.defaultTab}\n\t\t\t\t/>\n\t\t\t</StyledMainDashboardV2>\n\t\t);\n\t}\n}\n\nAffiliatePage = enhanceComponent({\n\tAffiliatePage,\n});\n\nexport default AffiliatePage;\n","import { connect } from 'react-redux';\nimport { withdrawAvailableCommissions } from '../../store/affiliate/affiliate.actions';\nimport AffiliatePage from './affiliate.page';\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tisMobile: state.app.mobile,\n\t};\n};\n\nconst mapDispatchToProps = (dispatch) => {\n\treturn {\n\t\twithdrawAvailableCommissions: () =>\n\t\t\tdispatch(withdrawAvailableCommissions()),\n\t};\n};\n\nconst AffiliateContainer = connect(\n\tmapStateToProps,\n\tmapDispatchToProps,\n)(AffiliatePage);\n\nexport default AffiliateContainer;\n","import { pageEnhancer } from '@common/hoc/pageEnhancer';\nimport { handleGetStaticProps } from '@legacyApp/methods/router/handleGetStaticProps';\nimport { ROUTING_ID } from '@common/constants/routing/ids.routing.constants';\nimport { TransNamespace } from '@legacyApp/client/modules/translation/TransNamespace';\nimport { DEFAULT_NAMESPACE } from '@legacyApp/client/modules/translation/translate.constants';\nimport AffiliateContainer from '@legacyApp/client/pages/affiliate.page/affiliate.container';\nimport routingService from '@legacyApp/client/modules/app/routingService';\nimport { getBreadcrumbs } from '@common/methods/getBreadcrumbs';\nimport { BreadcrumbDomainJsonLd } from '@common/components/seo/BreadcrumbDomainJsonLd';\n\nconst id = ROUTING_ID.USER_AFFILIATE;\n\nconst getBreadcrumbsAffiliate = (locale) =>\n\tgetBreadcrumbs(locale, [\n\t\t{\n\t\t\tname: { label: 'Affiliate' },\n\t\t\tpathname: `/${routingService.getUri(ROUTING_ID.USER_AFFILIATE)}`,\n\t\t},\n\t]);\n\nexport async function getStaticProps(props) {\n\treturn await handleGetStaticProps(props, [\n\t\tDEFAULT_NAMESPACE,\n\t\tTransNamespace.AFFILIATE,\n\t]);\n}\n\nexport default pageEnhancer(AffiliateContainer, {\n\tid,\n\tstructuredData: (locale) => (\n\t\t<BreadcrumbDomainJsonLd\n\t\t\titemListElements={getBreadcrumbsAffiliate(locale)}\n\t\t/>\n\t),\n\tgetBreadcrumbs: getBreadcrumbsAffiliate,\n});\n","import React, { FC, useCallback } from 'react';\nimport { Button, ButtonProps } from '@ui/button';\nimport { trans } from '@legacyApp/client/modules/translation/translate';\nimport { TransactionsMetaType } from '@modules/transactions/constants/TransactionsResponse.type';\nimport { ButtonStyleType } from '@uiTypes/ButtonStyleType';\nimport { Size } from '@uiTypes/Size';\nimport { PaginationStyled } from './Pagination.styled';\n\nexport interface PaginationProps extends ButtonProps {\n\tonClickPage: (page: number) => void;\n\tmeta?: TransactionsMetaType;\n}\n\nexport const Pagination: FC<PaginationProps> = ({\n\tonClickPage,\n\tmeta,\n\tsize,\n}) => {\n\tconst { current_page, last_page } = meta || {};\n\n\tconst nextDisabled = current_page === last_page;\n\tconst prevDisabled = current_page === 1;\n\tconst paginationDisabled =\n\t\t!last_page || (typeof last_page === 'number' && last_page < 2);\n\n\tconst handleClick = useCallback(\n\t\t(page: number) => {\n\t\t\t// console.log(number, this.props);\n\t\t\tif (page === current_page) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tonClickPage(page);\n\t\t},\n\t\t[current_page, onClickPage],\n\t);\n\n\tconst nextPage = useCallback(() => {\n\t\tif (nextDisabled) {\n\t\t\treturn;\n\t\t}\n\t\thandleClick(current_page + 1);\n\t}, [current_page, handleClick, nextDisabled]);\n\n\tconst prevPage = useCallback(() => {\n\t\tif (prevDisabled) {\n\t\t\treturn;\n\t\t}\n\t\thandleClick(current_page - 1);\n\t}, [current_page, handleClick, prevDisabled]);\n\n\tif (paginationDisabled) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PaginationStyled>\n\t\t\t<Button\n\t\t\t\tname=\"pagination-prev\"\n\t\t\t\tdisabled={prevDisabled}\n\t\t\t\tonClick={prevPage}\n\t\t\t\tclassName=\"pagination__element\"\n\t\t\t\tlabel={trans({ label: 'Previous page' })}\n\t\t\t\tsize={size || Size.MEDIUM}\n\t\t\t/>\n\t\t\t<Button\n\t\t\t\tname=\"pagination-active\"\n\t\t\t\tstyleType={ButtonStyleType.CLEAR}\n\t\t\t\tlabel={current_page}\n\t\t\t\tsize={size || Size.MEDIUM}\n\t\t\t/>\n\t\t\t<Button\n\t\t\t\tname=\"pagination-next\"\n\t\t\t\tdisabled={nextDisabled}\n\t\t\t\tonClick={nextPage}\n\t\t\t\tlabel={trans({ label: 'Next page' })}\n\t\t\t\tclassName=\"pagination__element\"\n\t\t\t\tsize={size || Size.MEDIUM}\n\t\t\t/>\n\t\t</PaginationStyled>\n\t);\n};\n","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/user/affiliate\",\n function () {\n return require(\"private-next-pages/user/affiliate.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/user/affiliate\"])\n });\n }\n ","\"use strict\";\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.CopyToClipboard = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _copyToClipboard = _interopRequireDefault(require(\"copy-to-clipboard\"));\n\nvar _excluded = [\"text\", \"onCopy\", \"options\", \"children\"];\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar CopyToClipboard = /*#__PURE__*/function (_React$PureComponent) {\n _inherits(CopyToClipboard, _React$PureComponent);\n\n var _super = _createSuper(CopyToClipboard);\n\n function CopyToClipboard() {\n var _this;\n\n _classCallCheck(this, CopyToClipboard);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"onClick\", function (event) {\n var _this$props = _this.props,\n text = _this$props.text,\n onCopy = _this$props.onCopy,\n children = _this$props.children,\n options = _this$props.options;\n\n var elem = _react[\"default\"].Children.only(children);\n\n var result = (0, _copyToClipboard[\"default\"])(text, options);\n\n if (onCopy) {\n onCopy(text, result);\n } // Bypass onClick if it was present\n\n\n if (elem && elem.props && typeof elem.props.onClick === 'function') {\n elem.props.onClick(event);\n }\n });\n\n return _this;\n }\n\n _createClass(CopyToClipboard, [{\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n _text = _this$props2.text,\n _onCopy = _this$props2.onCopy,\n _options = _this$props2.options,\n children = _this$props2.children,\n props = _objectWithoutProperties(_this$props2, _excluded);\n\n var elem = _react[\"default\"].Children.only(children);\n\n return /*#__PURE__*/_react[\"default\"].cloneElement(elem, _objectSpread(_objectSpread({}, props), {}, {\n onClick: this.onClick\n }));\n }\n }]);\n\n return CopyToClipboard;\n}(_react[\"default\"].PureComponent);\n\nexports.CopyToClipboard = CopyToClipboard;\n\n_defineProperty(CopyToClipboard, \"defaultProps\", {\n onCopy: undefined,\n options: undefined\n});","\"use strict\";\n\nvar _require = require('./Component'),\n CopyToClipboard = _require.CopyToClipboard;\n\nCopyToClipboard.CopyToClipboard = CopyToClipboard;\nmodule.exports = CopyToClipboard;","\nmodule.exports = function () {\n var selection = document.getSelection();\n if (!selection.rangeCount) {\n return function () {};\n }\n var active = document.activeElement;\n\n var ranges = [];\n for (var i = 0; i < selection.rangeCount; i++) {\n ranges.push(selection.getRangeAt(i));\n }\n\n switch (active.tagName.toUpperCase()) { // .toUpperCase handles XHTML\n case 'INPUT':\n case 'TEXTAREA':\n active.blur();\n break;\n\n default:\n active = null;\n break;\n }\n\n selection.removeAllRanges();\n return function () {\n selection.type === 'Caret' &&\n selection.removeAllRanges();\n\n if (!selection.rangeCount) {\n ranges.forEach(function(range) {\n selection.addRange(range);\n });\n }\n\n active &&\n active.focus();\n };\n};\n"],"names":["deselectCurrent","clipboardToIE11Formatting","module","exports","text","options","debug","message","reselectPrevious","range","selection","mark","success","document","createRange","getSelection","createElement","textContent","ariaHidden","style","all","position","top","clip","whiteSpace","webkitUserSelect","MozUserSelect","msUserSelect","userSelect","addEventListener","e","stopPropagation","format","preventDefault","clipboardData","console","warn","window","clearData","setData","onCopy","body","appendChild","selectNodeContents","addRange","execCommand","Error","err","error","copyKey","test","navigator","userAgent","replace","prompt","removeRange","removeAllRanges","removeChild","PasswordFormStyle","styled","props","className","classNames","SettingsLayoutContext","createContext","sections","activeId","activeTabData","handleChangeSection","getSectionContent","SettingsLayoutDesktop","useContext","isLogged","useUserIsLogged","map","el","isActive","id","onClick","name","trans","label","nameComponent","notification","NotificationIcon","panelTitle","isNarrow","SlideDownBoxElement","section","isLogged_","content","useCallback","undefined","callback","isVisible","Title","Content","isContentInitVisible","isContentVisible","SettingsLayoutMobile","SettingsLayout","defaultTab","useState","setActiveId","setActiveTabData","dispatch","useAppDispatch","isMobile","useAppMobile","routerQueryTab","useRouterQueryTab","isInitialized","useAppInitialized","checkActiveTab_","some","updateUrlQuery","tab","getSectionContent_","panelName","panelName_","classnames","handleChangeSection_","modal","openModal","getSectionData_","find","getSections_","activeId_","activeTabData_","useEffect","Provider","value","SlideDownBoxStyle","boxNoHeight","noDashboard","dashboard","padding","css","calcStyle","a","b","mode","SlideDownTitleStyle","isColor","theme","layout","borderRadius","colors","inputButton","SlideDownContentStyle","SlideDownBox","titleClasses","contentClasses","boxClasses","noScrollTo","isTrueOrZero","_isVisible","setIsVisible","ref","useRef","timeoutRef","prevIsContentVisible","usePrevious","handleClickTitle","event","current","clearTimeout","setTimeout","pageScrollTo","offsetTop","active","opened","TransactionsTable","updateIntervalRef","autoBetPaused","useGameAutoBetPaused","meta","useTransactionsMeta","transactions","transactions_","useTransactionsAnimation","getTransactions","TABLE_MOCKS","length","limited","limit","slice","isFunction","filterCallback","useStateEffect","transactionService","disableCompareKeysGeneration","useTableTransactions","prevId","prevRefreshInterval","refreshInterval","prevGetDataProps","getDataProps","pagination","Number","last_page","getData","page","disable","refresh","getTransactionsThunk","pauseAutobet","bool","autobetPause","isAutobetPaused","TABLE_ID","handlePauseAutobet","fetchData","lastId","startUpdatesInterval","lastTableID","setInterval","clearUpdatesInterval","clearInterval","restartInterval","onClickPage","useOnMount","data","classic","highlightRow","sortCallback","noResultsText","loadingId","noScroll","columns","dataStored","prev","useAppSelector","state","isAnimating","Object","keys","game","betsInAnimation","activeGame","previous","next","useTransactionsPerGameActive","useTransactionsPerGame","TableWrapper","children","getColumns","columnsService","getRowCompareKeys","rowCompareKeys","getTableCompareKeys","tableCompareKeys","parseUrlJsonLd","uri","config","SAME_AS","socialConfig","key","AnyJsonLd","keyOverride","url","jslonld","mainEntityOfPage","type","dangerouslySetInnerHTML","__html","jsonToString","mapBreadcrumbToJsonLd","item","checkIsTransProps","simpleTrans","namespace","BreadcrumbDomainJsonLd","itemListElements","getBreadcrumb","locale","pathname","getPathLocalized","getBreadcrumbs","index","left","element","parentElement","scrollTo","behavior","autobet","actionSimple","AUTOBET","AUTOBET_PAUSE","autobetSetPause","AUTOBET_SET_PAUSE","autobetSetPauseData","AUTOBET_SET_PAUSE_DATA","saveAutobetStrategy","payload","setActive","SAVE_AUTOBET_STRATEGY","editAutobetStrategy","EDIT_AUTOBET_STRATEGY","setAutobetStrategies","SET_AUTOBET_STRATEGIES","getAutobetStrategies","GET_AUTOBET_STRATEGIES","deleteAutobetStrategy","DELETE_AUTOBET_STRATEGY","setActiveAutobetStrategy","SET_ACTIVE_AUTOBET_STRATEGY","disableCheckAutobetStrategy","DISABLE_CHECK_AUTOBET_STRATEGY","autobetSummaryConnectionError","bet","onlyAlert","AUTOBET_SUMMARY_CONNECTION_ERROR","autobetSetRolls","AUTOBET_SET_ROLLS","autobetSetRollsCounter","AUTOBET_SET_ROLLS_COUNTER","autobetSetActive","AUTOBET_SET_ACTIVE","autoBetRolling","AUTOBET_ROLLING","autobetPlay","AUTOBET_PLAY","autobetStop","AUTOBET_STOP","autobetStopped","AUTOBET_STOPPED","autobetClear","AUTOBET_CLEAR","autobetSetMode","AUTOBET_SET_MODE","lsKey","LocalStorageKeys","autobetSetConfig","AUTOBET_SET_CONFIG","autobetSetEditModal","AUTOBET_SET_EDIT_MODAL","autobetSetConfigEasy","AUTOBET_SET_CONFIG_EASY","autobetUpdateConfigEasy","AUTOBET_UPDATE_CONFIG_EASY","autobetSetAutoStats","AUTOBET_SET_AUTO_STATS","autobetSetId","AUTOBET_SET_ID","autobetSetCurrency","AUTOBET_SET_CURRENCY","autobetSetManual","AUTOBET_SET_MANUAL","autobetResetToDefault","AUTOBET_RESET_TO_DEFAULT","autobetSetDefaults","AUTOBET_SET_DEFAULTS","useGameAutoBetIsRolling","gameAutobet","shallowEqual","useGameAutoBetActive","useGameAutoBetMode","useGameAutoBetCurrency","currency","useGameAutoBetStats","autoStats","useGameAutoBetRollsCounter","rollsCounter","useGameAutoBetConfigEasy","configEasy","pause","useGameAutoBetStrategies","strategies","useGameAutoBetActiveStrategy","activeStrategy","InputsInlineStyle","origin","media","maxWidthDesktop","maxWidthTablet","CampaignForm","obj","keyCode","submitCreateCampaign","updateValue","nameValidate","codeValidate","code","submitDisabled","submitCampaign","confirm","React","this","setSubmitDisabled","handleKeyboard","removeEventListener","prevProps","prevState","nameChanged","codeChanged","nameValidateChanged","codeValidateChanged","validateSubmit","setState","onChange","handleNameChange","placeholder","StyledInputMessage","as","min","isDisabled","handleCodeChange","disabled","localTheme","InputMessageStyles","enhanceComponent","CampaignFormContainer","connect","forms","campaign","updateCampaignName","updateCampaignCode","StyledAffiliateGlobal","createGlobalStyle","TransAffiliate","createNamespaceTrans","TransNamespace","AffiliatePage","sort","sortService","DIRECTION","published_at","LinkTo","href","routingService","ROUTING_ID","$background","components","Redirect","target","rel","goToCreateCampaign","LOADING_IDS","Fragment","withdrawAvailableCommissions","commision","filter","app","mobile","getBreadcrumbsAffiliate","pageEnhancer","AffiliateContainer","structuredData","Pagination","size","current_page","nextDisabled","prevDisabled","paginationDisabled","handleClick","nextPage","prevPage","Size","styleType","ButtonStyleType","__NEXT_P","push","_typeof","Symbol","iterator","constructor","prototype","defineProperty","CopyToClipboard","_react","_interopRequireDefault","_copyToClipboard","_excluded","__esModule","ownKeys","object","enumerableOnly","getOwnPropertySymbols","symbols","sym","getOwnPropertyDescriptor","enumerable","apply","_objectSpread","i","arguments","source","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_objectWithoutProperties","excluded","sourceKeys","indexOf","_objectWithoutPropertiesLoose","sourceSymbolKeys","propertyIsEnumerable","call","_classCallCheck","instance","Constructor","TypeError","_defineProperties","descriptor","configurable","writable","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_createSuper","Derived","hasNativeReflectConstruct","Reflect","construct","sham","Proxy","Boolean","valueOf","_isNativeReflectConstruct","result","Super","_getPrototypeOf","NewTarget","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","getPrototypeOf","_React$PureComponent","subClass","superClass","create","_inherits","protoProps","staticProps","_super","_this","_len","args","Array","_key","concat","_this$props","elem","Children","only","_this$props2","cloneElement","PureComponent","rangeCount","activeElement","ranges","getRangeAt","tagName","toUpperCase","blur","focus"],"mappings":";;oGAEA,IAAIA,EAAkB,EAAQ,OAE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