{"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\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t