{"version":3,"file":"static/chunks/pages/user/affiliate-e571867bd205df14.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/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/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.js","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.js","webpack://_N_E/./src/pages/user/affiliate.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
\n\t\t\t
\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 handleChangeSection(el)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\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\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);\n\t\t\t\t})}\n\t\t\t
\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
\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 = (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 (\n\t\t\t\t\n\t\t\t\t\t\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 && }\n\t\t\t\t\t\n\t\t\t\t\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 = ({\n\tsections,\n\tdefaultTab,\n\tgetSectionContent,\n}) => {\n\tconst [activeId, setActiveId] = useState('');\n\tconst [activeTabData, setActiveTabData] =\n\t\tuseState(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

\n\t\t\t\t\t{trans({ label: panelName() })}\n\t\t\t\t

\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\n\t\t\t\t\t{panelName_}\n\t\t\t\t\t{content}\n\t\t\t\t\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\n\t\t\t{isMobile ? : }\n\t\t\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(\n\t\tisTrueOrZero(isContentInitVisible) ? isContentInitVisible : false,\n\t);\n\tconst ref = useRef(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\n\t\t\t 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 && }\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 { 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 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","\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","parseUrlJsonLd","uri","config","SAME_AS","Object","keys","socialConfig","key","AnyJsonLd","keyOverride","url","jslonld","mainEntityOfPage","type","dangerouslySetInnerHTML","__html","jsonToString","mapBreadcrumbToJsonLd","item","checkIsTransProps","simpleTrans","namespace","BreadcrumbDomainJsonLd","itemListElements","getBreadcrumb","locale","pathname","getPathLocalized","getBreadcrumbs","data","index","left","element","parentElement","isFunction","scrollTo","behavior","InputsInlineStyle","origin","media","maxWidthDesktop","maxWidthTablet","CampaignForm","obj","keyCode","submitCreateCampaign","updateValue","state","nameValidate","codeValidate","code","submitDisabled","submitCampaign","confirm","React","this","setSubmitDisabled","handleKeyboard","removeEventListener","prevProps","prevState","nameChanged","codeChanged","nameValidateChanged","codeValidateChanged","bool","validateSubmit","setState","length","onChange","handleNameChange","placeholder","StyledInputMessage","as","min","isDisabled","handleCodeChange","disabled","loadingId","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","TABLE_ID","refreshInterval","sortCallback","noResultsText","goToCreateCampaign","LOADING_IDS","Fragment","withdrawAvailableCommissions","classic","commision","filter","app","mobile","getBreadcrumbsAffiliate","pageEnhancer","AffiliateContainer","structuredData","__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","children","elem","Children","only","_this$props2","cloneElement","PureComponent","rangeCount","activeElement","ranges","getRangeAt","tagName","toUpperCase","blur","focus"],"mappings":";;oGAEA,IAAIA,EAAkB,EAAQ,OAE1BC,EAA4B,CAC9B,aAAc,OACd,YAAa,MACb,QAAW,QA2GbC,EAAOC,QAjGP,SAAcC,EAAMC,GAClB,IAAIC,EACFC,EACAC,EACAC,EACAC,EACAC,EACAC,GAAU,EACPP,IACHA,EAAU,IAEZC,EAAQD,EAAQC,QAAS,EACzB,IAkDE,GAjDAE,EAAmBR,IAEnBS,EAAQI,SAASC,cACjBJ,EAAYG,SAASE,gBAErBJ,EAAOE,SAASG,cAAc,SACzBC,YAAcb,EAEnBO,EAAKO,WAAa,OAElBP,EAAKQ,MAAMC,IAAM,QAEjBT,EAAKQ,MAAME,SAAW,QACtBV,EAAKQ,MAAMG,IAAM,EACjBX,EAAKQ,MAAMI,KAAO,mBAElBZ,EAAKQ,MAAMK,WAAa,MAExBb,EAAKQ,MAAMM,iBAAmB,OAC9Bd,EAAKQ,MAAMO,cAAgB,OAC3Bf,EAAKQ,MAAMQ,aAAe,OAC1BhB,EAAKQ,MAAMS,WAAa,OACxBjB,EAAKkB,iBAAiB,QAAQ,SAASC,GAErC,GADAA,EAAEC,kBACE1B,EAAQ2B,OAEV,GADAF,EAAEG,iBAC6B,qBAApBH,EAAEI,cAA+B,CAC1C5B,GAAS6B,Q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