{"version":3,"file":"static/chunks/90344-1c7e6ca9dcdf4b95.js","sources":["webpack://_N_E/./src/LegacyApp/client/components/tooltip/tooltip.jsx","webpack://_N_E/./src/common/methods/iteratePromiseChunks.ts","webpack://_N_E/./src/LegacyApp/hooks/wallet/useWalletSettings.ts","webpack://_N_E/./src/LegacyApp/hooks/window/useWindowSize.ts","webpack://_N_E/./src/LegacyApp/methods/array/removeArrayDuplicates.ts","webpack://_N_E/./src/common/components/auth/AuthActionButton.tsx","webpack://_N_E/./src/common/components/optionsList/OptionsList.tsx","webpack://_N_E/./src/common/components/timerCountDown/index.tsx","webpack://_N_E/./src/common/components/withdraw/Withdraw.global.styled.ts","webpack://_N_E/./src/common/icons/ui/arrow-left.tsx","webpack://_N_E/./src/common/icons/ui/edit-icon.tsx","webpack://_N_E/./src/common/icons/ui/more-icon.tsx","webpack://_N_E/./src/common/icons/ui/plus-icon.tsx","webpack://_N_E/./src/common/icons/ui/remove-icon.tsx","webpack://_N_E/./src/common/icons/user-menu/addressBook.tsx","webpack://_N_E/./src/common/icons/user-menu/depositIcon.tsx","webpack://_N_E/./src/common/icons/user-menu/vault.tsx","webpack://_N_E/./src/common/icons/user-menu/withdrawIcon.tsx","webpack://_N_E/./src/common/icons/wallet/add-wallet.tsx","webpack://_N_E/./src/common/icons/wallet/verify-2fa.tsx","webpack://_N_E/./src/common/icons/wallet/verify-email.tsx","webpack://_N_E/./src/common/selectors/twoFa.selectors.ts","webpack://_N_E/./src/modules/balance/components/BalancesDropdownSelector.tsx","webpack://_N_E/./src/modules/balance/context/Balance.context.ts","webpack://_N_E/./src/modules/balance/hooks/useSetCurrency.ts","webpack://_N_E/./src/modules/balance/styles/BalanceWrapper.styled.ts","webpack://_N_E/./src/modules/form/components/Form.tsx","webpack://_N_E/./src/modules/form/components/InputWrapperField.tsx","webpack://_N_E/./src/modules/form/components/SelectField.tsx","webpack://_N_E/./src/modules/form/context/FormApiErrorsContext.ts","webpack://_N_E/./src/modules/form/methods/validateFormValues.ts","webpack://_N_E/./src/modules/modals/components/ModalSubPage/ModalSubPage.context.ts","webpack://_N_E/./src/modules/modals/components/ModalSubPage/ModalSubPage.tsx","webpack://_N_E/./src/modules/modals/components/UI/ModalTitle.tsx","webpack://_N_E/./src/modules/modals/modal/mixins.ts","webpack://_N_E/./src/modules/wallet/methods/generatePayUrl.ts","webpack://_N_E/./src/modules/form/components/OptionWithIcon.tsx","webpack://_N_E/./src/modules/form/components/SingleValueWithIcon.tsx","webpack://_N_E/./src/modules/wallet/wallet/BuyCrypto/constants/FormFieldNames.tsx","webpack://_N_E/./src/modules/wallet/wallet/BuyCrypto/ProviderTile.tsx","webpack://_N_E/./src/modules/wallet/wallet/BuyCrypto/BuyCryptoOffers.tsx","webpack://_N_E/./src/modules/form/components/CheckboxField.tsx","webpack://_N_E/./src/modules/wallet/wallet/BuyCrypto/BuyCryptoTooltipContent.tsx","webpack://_N_E/./src/modules/form/components/SelectFieldWithSearchInside.tsx","webpack://_N_E/./src/modules/form/components/CustomMenuList.tsx","webpack://_N_E/./src/modules/form/components/CustomValueContainerWithIcon.tsx","webpack://_N_E/./src/modules/wallet/wallet/BuyCrypto/BuyCryptoForm.tsx","webpack://_N_E/./src/modules/wallet/components/VaultContent/VaultContent.tsx","webpack://_N_E/./src/modules/wallet/hooks/useProvidersCash.ts","webpack://_N_E/./src/modules/wallet/hooks/useDepositOfferCash.ts","webpack://_N_E/./src/modules/wallet/methods/getOrderRedirectUrl.ts","webpack://_N_E/./src/modules/wallet/wallet/BuyCrypto/constants/buyCryptoFormValidate.ts","webpack://_N_E/./src/modules/wallet/wallet/BuyCrypto/BuyCryptoStatus.tsx","webpack://_N_E/./src/modules/wallet/wallet/BuyCrypto/BuyCrypto.tsx","webpack://_N_E/./src/modules/wallet/hooks/useCurrenciesCash.ts","webpack://_N_E/./src/modules/wallet/components/DepositContent/DepositButton.tsx","webpack://_N_E/./src/modules/wallet/wallet/BuyCrypto/BuyCryptoIcons.tsx","webpack://_N_E/./src/modules/wallet/wallet/BuyCrypto/BuyCryptoTokens.tsx","webpack://_N_E/./src/modules/wallet/wallet/DepositSkins/DepositSkinsStatus.tsx","webpack://_N_E/./src/modules/wallet/methods/getDepositSkinsRedirectUrl.ts","webpack://_N_E/./src/modules/wallet/wallet/DepositSkins/DepositSkinsIcons.tsx","webpack://_N_E/./src/modules/wallet/wallet/DepositSkins/DepositSkins.tsx","webpack://_N_E/./src/modules/wallet/components/DepositContent/DepositContent.tsx","webpack://_N_E/./src/modules/wallet/wallet/WithdrawForm/WithdrawForm/WithdrawConfirmInfo.tsx","webpack://_N_E/./src/modules/wallet/components/WithdrawContent/WithdrawContent.tsx","webpack://_N_E/./src/common/selectors/vault.selectors.ts","webpack://_N_E/./src/LegacyApp/client/components/vaultHistoryTable/vaultHistoryTable.tsx","webpack://_N_E/./src/modules/wallet/components/VaultContent/VaultDropdowns.tsx","webpack://_N_E/./src/modules/wallet/hooks/useAddressBook.ts","webpack://_N_E/./src/modules/wallet/context/AddressBook.context.ts","webpack://_N_E/./src/modules/wallet/components/AddressBookContent/AddWalletButton.tsx","webpack://_N_E/./src/modules/wallet/components/AddressBookContent/AddressBookWallet.tsx","webpack://_N_E/./src/modules/wallet/components/AddressBookContent/AddressBookList.tsx","webpack://_N_E/./src/modules/wallet/components/AddressBookContent/AddressBookContent.tsx","webpack://_N_E/./src/common/hooks/useInput.ts","webpack://_N_E/./src/modules/wallet/components/AddressBookContent/AddressBookForm.tsx","webpack://_N_E/./src/modules/wallet/components/WalletTabs/WalletTabs.tsx","webpack://_N_E/./src/modules/wallet/components/AddressBookContent/AddressBook.tsx","webpack://_N_E/./src/modules/wallet/wallet/WalletSettingsWrapper/WalletSettingsWrapper.tsx","webpack://_N_E/./src/modules/wallet/wallet/WithdrawForm/WithdrawBlockedInfo/VerifyBox.tsx","webpack://_N_E/./src/common/components/timerCountDown/CircleTimerCountDown.tsx","webpack://_N_E/./src/modules/wallet/wallet/WithdrawForm/WithdrawBlockedInfo/WithdrawBlockedTimer.tsx","webpack://_N_E/./src/modules/wallet/wallet/WithdrawForm/WithdrawBlockedInfo/WithdrawBlockedInfo.tsx","webpack://_N_E/./src/modules/wallet/wallet/WithdrawForm/WithdrawForm/WithdrawForm.styled.ts","webpack://_N_E/./src/modules/balance/store/thunks/balance.thunk.js","webpack://_N_E/./src/modules/wallet/constants.ts","webpack://_N_E/./src/modules/wallet/wallet/WithdrawForm/WithdrawForm/WithdrawForm.tsx","webpack://_N_E/./src/modules/wallet/wallet/WithdrawForm/WithdrawForm/methods/verifyWithdrawAmount.ts","webpack://_N_E/./src/modules/wallet/wallet/WithdrawForm/WithdrawForm/methods/verifyPaymentId.ts","webpack://_N_E/./src/modules/wallet/wallet/WithdrawForm/WithdrawForm/methods/verifyWalletAddress.ts","webpack://_N_E/./src/LegacyApp/methods/currency/addresValidator/checkCurrencyAddressError.ts","webpack://_N_E/./src/ui/components/link/index.tsx","webpack://_N_E/./src/ui/components/tab-navigation/TabNavigation.styled.ts","webpack://_N_E/./src/ui/components/tab-navigation/index.tsx","webpack://_N_E/./src/LegacyApp/hooks/window/useIsElementScroll.ts","webpack://_N_E/./src/common/hooks/useInitScrollTo.ts","webpack://_N_E/./src/common/hooks/useMultiRef.ts","webpack://_N_E/./src/modules/wallet/wallet/BuyCrypto/BuyCrypto.module.scss","webpack://_N_E/./src/modules/wallet/wallet/BuyCrypto/ProviderTile.module.scss"],"sourceRoot":"","sourcesContent":["import 'tippy.js/dist/tippy.css';\n\nimport React, { Children } from 'react';\nimport PropTypes from 'prop-types';\nimport Tippy from '@tippyjs/react';\nimport { connect } from 'react-redux';\nimport ResizeObserver from 'resize-observer-polyfill';\nimport classnames from 'classnames';\n\nimport { isFunction } from '@common/methods/isFunction';\nimport { trans } from '@legacyApp/client/modules/translation/translate';\nimport { enhanceComponent } from '@legacyApp/client/wrappers/enhanceComponent';\n\nTippy.defaultProps = {\n\t...Tippy.defaultProps,\n\tarrow: true,\n};\n\nclass ChildrenWithInstance extends React.PureComponent {\n\tstatic propTypes = {\n\t\tchildren: PropTypes.any,\n\t\tinstance: PropTypes.any,\n\t};\n\n\trender() {\n\t\treturn Children.map(this.props.children, (child) => {\n\t\t\t// console.log({child, instance: this.props.instance});\n\t\t\treturn React.cloneElement(child, {\n\t\t\t\ttippyinstance: this.props.instance,\n\t\t\t\t...child.props,\n\t\t\t});\n\t\t});\n\t}\n}\n\nclass Tooltip extends React.PureComponent {\n\tstatic propTypes = {\n\t\tlocalTheme: PropTypes.any,\n\t\tcontent: PropTypes.any,\n\t\tisVisible: PropTypes.any,\n\t\tvisible: PropTypes.any,\n\t\tenabled: PropTypes.bool,\n\t\thideOnClick: PropTypes.any,\n\t\tchildren: PropTypes.any,\n\t\tpassInstance: PropTypes.bool,\n\t\thandleComponentError: PropTypes.func,\n\t\tmodal: PropTypes.any,\n\t\tonModal: PropTypes.bool,\n\t\tdispatch: PropTypes.func,\n\t\tmobile: PropTypes.bool,\n\t\tmobileEnable: PropTypes.bool,\n\t\tnamespace: PropTypes.string,\n\t\tchatVisible: PropTypes.bool,\n\t\tsideMenuVisible: PropTypes.bool,\n\t\tzIndex: PropTypes.number,\n\t\tclassName: PropTypes.string,\n\t\tcloseOnScrollElemClass: PropTypes.string,\n\t};\n\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tinstance: '',\n\t\t\tforceHide: false,\n\t\t};\n\t\tthis.modalResizeObserver =\n\t\t\tprocess.browser && ResizeObserver\n\t\t\t\t? new ResizeObserver(() => {\n\t\t\t\t\t\tthis.popperForceUpdate();\n\t\t\t\t })\n\t\t\t\t: null;\n\t\tthis.strategy = React.createRef();\n\t\tthis.element = React.createRef();\n\t}\n\n\tcomponentDidMount() {\n\t\tthis.setForceHide();\n\t\tthis.setOnModalResize();\n\t\tthis.closeOnScrollEventAdd();\n\t}\n\n\tcomponentWillUnmount() {\n\t\tconst modalElement = this.getModalElement();\n\t\tif (modalElement && isFunction(this.modalResizeObserver?.unobserve)) {\n\t\t\tthis.modalResizeObserver.unobserve(modalElement);\n\t\t}\n\n\t\tthis.closeOnScrollEventRemove();\n\t}\n\n\tsetInstance = (instance) => {\n\t\tthis.setState({\n\t\t\tinstance,\n\t\t});\n\t};\n\n\tcomponentDidUpdate(prevProps) {\n\t\tif (\n\t\t\tprevProps.modal !== this.props.modal ||\n\t\t\tprevProps.mobile !== this.props.mobile ||\n\t\t\tprevProps.chatVisible !== this.props.chatVisible ||\n\t\t\tprevProps.sideMenuVisible !== this.props.sideMenuVisible\n\t\t) {\n\t\t\tthis.popperForceUpdate();\n\t\t\tthis.setForceHide();\n\t\t}\n\n\t\tif (\n\t\t\tprevProps.content !== this.props.content ||\n\t\t\t!!prevProps.visible !== !!this.props.visible\n\t\t) {\n\t\t\tthis.setOnModalResize();\n\t\t}\n\t}\n\n\tisOnModal = () => {\n\t\treturn typeof this.props.onModal === 'boolean'\n\t\t\t? this.props.onModal\n\t\t\t: this.getModalElement();\n\t};\n\n\tgetModalElement = () => {\n\t\treturn this.element.current ? this.element.current.closest('.modal') : null;\n\t};\n\n\tpopperForceUpdate = () => {\n\t\tsetTimeout(() => {\n\t\t\tif (isFunction(this.state.instance?.popperInstance?.forceUpdate)) {\n\t\t\t\tthis.state.instance.popperInstance.forceUpdate();\n\t\t\t}\n\t\t}, 300);\n\t};\n\n\tsetOnModalResize = () => {\n\t\tconst modalElement = this.getModalElement();\n\t\tif (modalElement && isFunction(this.modalResizeObserver?.observe)) {\n\t\t\tthis.modalResizeObserver.observe(modalElement);\n\t\t}\n\t};\n\n\tsetForceHide = () => {\n\t\tconst onModal = this.isOnModal();\n\t\tthis.setState({\n\t\t\tforceHide:\n\t\t\t\t(this.props.modal && !onModal) ||\n\t\t\t\t(!onModal &&\n\t\t\t\t\tthis.props.mobile &&\n\t\t\t\t\t(this.props.chatVisible || this.props.sideMenuVisible)),\n\t\t});\n\t};\n\n\tonShown = () => {\n\t\tconst input = this.element?.current?.querySelector?.('input');\n\t\tif (!input) {\n\t\t\treturn;\n\t\t}\n\t\tconst isInputFocus = document.activeElement === input;\n\t\tif (!isInputFocus) {\n\t\t\tinput.focus();\n\t\t}\n\t};\n\n\tcloseOnScroll = () => {\n\t\tif (this.state.instance.state.isVisible) {\n\t\t\tthis.state.instance.hide();\n\t\t}\n\t};\n\n\tcloseOnScrollEventAdd = () => {\n\t\tif (!this.props.closeOnScrollElemClass) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst elem = document.querySelector(\n\t\t\t`.${this.props.closeOnScrollElemClass}`,\n\t\t);\n\n\t\telem?.addEventListener('scroll', this.closeOnScroll, false);\n\t};\n\n\tcloseOnScrollEventRemove = () => {\n\t\tif (!this.props.closeOnScrollElemClass) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst elem = document.querySelector(\n\t\t\t`.${this.props.closeOnScrollElemClass}`,\n\t\t);\n\n\t\telem?.removeEventListener('scroll', this.closeOnScroll, false);\n\t};\n\n\trender() {\n\t\tconst {\n\t\t\tchildren,\n\t\t\tpassInstance,\n\t\t\tlocalTheme,\n\t\t\tnamespace,\n\t\t\tclassName,\n\t\t\t...props\n\t\t} = this.props;\n\n\t\tdelete props.handleComponentError;\n\t\tdelete props.modal;\n\t\tdelete props.className;\n\t\tdelete props.dispatch;\n\t\tdelete props.onModal;\n\t\tdelete props.mobile;\n\t\tdelete props.mobileEnable;\n\t\tdelete props.chatVisible;\n\t\tdelete props.sideMenuVisible;\n\t\tdelete props.closeOnScrollElemClass;\n\n\t\tif (!children) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!props.content || typeof props.content === 'boolean') {\n\t\t\treturn children;\n\t\t}\n\n\t\tif (\n\t\t\t(props.content &&\n\t\t\t\ttypeof props.content === 'object' &&\n\t\t\t\t('message' in props.content || 'values' in props.content)) ||\n\t\t\tnamespace\n\t\t) {\n\t\t\tprops.content = trans({ label: props.content, namespace });\n\t\t}\n\n\t\tconst content = (\n\t\t\t