{"version":3,"file":"static/chunks/16062-d4cc3b7edf89bc5e.js","sources":["webpack://_N_E/./src/LegacyApp/client/components/checkbox/checkbox.jsx","webpack://_N_E/./src/LegacyApp/client/components/checkbox/checkbox.style.js","webpack://_N_E/./src/LegacyApp/client/components/dropdown/dropdown.style.ts","webpack://_N_E/./src/LegacyApp/client/store/dropdown/thunks/dropdownGet.thunk.ts","webpack://_N_E/./src/LegacyApp/client/components/dropdown/dropdown.tsx","webpack://_N_E/./src/LegacyApp/client/store/dropdown/dropdown.actions.ts","webpack://_N_E/./src/LegacyApp/client/store/dropdown/methods/dropdownContentEqualityFn.ts","webpack://_N_E/./src/LegacyApp/client/store/dropdown/selectors/useDropdownActiveSelector.ts","webpack://_N_E/./src/LegacyApp/hooks/app/useTimeout.ts","webpack://_N_E/./src/LegacyApp/hooks/fetch/useGetDataArray.ts","webpack://_N_E/./src/common/components/TabNavigation/TabNavigation.context.ts","webpack://_N_E/./src/common/components/TabNavigation/useTabNavigation.ts","webpack://_N_E/./src/common/components/TabNavigation/index.tsx","webpack://_N_E/./src/common/components/contentLoaders/LoaderListWrapper.jsx","webpack://_N_E/./src/common/components/filterDropdown/FilterDropdown.tsx","webpack://_N_E/./src/common/hooks/useOnUnmount.ts","webpack://_N_E/./src/modules/slots/components/SlotsFilters.tsx","webpack://_N_E/./src/modules/slots/components/SlotsFiltersContainer.tsx","webpack://_N_E/./src/modules/slots/context/SlotsProvidersContext.ts","webpack://_N_E/./src/modules/slots/hooks/useFetchProviders.ts"],"sourceRoot":"","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { faCheck } from '@fortawesome/free-solid-svg-icons';\nimport { trans } from '../../modules/translation/translate';\nimport { enhanceComponent } from '../../wrappers/enhanceComponent';\nimport { AwesomeIcon } from '../../../../common/components/icons/AwesomeIcon';\nimport {\n\tCheckboxStyle,\n\tCheckboxWrapperStyle,\n\tStyledCheckboxBox,\n} from './checkbox.style';\n\nclass Checkbox extends React.PureComponent {\n\tstatic propTypes = {\n\t\tlabel: PropTypes.any,\n\t\tinitValue: PropTypes.any,\n\t\tonChange: PropTypes.func,\n\t\tupdate: PropTypes.bool,\n\t\tisError: PropTypes.any,\n\t\tdisabled: PropTypes.bool,\n\t\tclassName: PropTypes.string,\n\t\tonlyCheckboxClick: PropTypes.bool,\n\t\tcolor: PropTypes.bool,\n\t\thandleComponentError: PropTypes.func,\n\t};\n\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tvalue: props.initValue,\n\t\t};\n\t}\n\n\tcomponentDidMount() {\n\t\tif (this.props.initValue !== undefined) {\n\t\t\tthis.setState({\n\t\t\t\tvalue: this.props.initValue,\n\t\t\t});\n\t\t}\n\t}\n\n\tcomponentDidUpdate(prevProps, prevState) {\n\t\t// console.log('componentDidUpdate', this.props.label, {\n\t\t// \tcurrProp: this.props.initValue,\n\t\t// \tcurrState: this.state.value,\n\t\t// \tprevState: prevState.value,\n\t\t// \tprevProp: prevProps.initValue\n\t\t// });\n\t\tif (\n\t\t\tprevProps.initValue !== this.props.initValue &&\n\t\t\tprevState.value === this.state.value &&\n\t\t\tthis.props.initValue !== this.state.value &&\n\t\t\tthis.props.update &&\n\t\t\tthis.props.initValue !== undefined\n\t\t) {\n\t\t\tthis.setState({\n\t\t\t\tvalue: this.props.initValue,\n\t\t\t});\n\t\t}\n\t}\n\n\thandleCheckbox = (event) => {\n\t\t// console.log('handleToggle', event.target.localName, this.props, this.state);\n\t\tif (this.props.disabled || event.target.localName === 'a') {\n\t\t\treturn;\n\t\t}\n\t\tif (this.props.onChange) {\n\t\t\tthis.props.onChange(!this.state.value);\n\t\t}\n\t\tthis.setState({\n\t\t\tvalue: !this.state.value,\n\t\t});\n\t};\n\n\thandleCheckboxWrapper = (event) =>\n\t\t!this.props.onlyCheckboxClick && this.handleCheckbox(event);\n\n\thandleCheckboxInside = (event) =>\n\t\tthis.props.onlyCheckboxClick && this.handleCheckbox(event);\n\n\tonChange = () => {\n\t\tif (!this.props.onChange || this.props.disabled) {\n\t\t\tthis.setState({\n\t\t\t\tvalue: this.props.initValue,\n\t\t\t});\n\t\t}\n\t};\n\n\trender() {\n\t\tconst props_ = { ...this.props };\n\t\tdelete props_.isError;\n\t\tdelete props_.handleComponentError;\n\t\tdelete props_.componentName;\n\t\tdelete props_.initValue;\n\t\tdelete props_.update;\n\n\t\treturn (\n\t\t\t<CheckboxStyle\n\t\t\t\tclassName={this.props.className}\n\t\t\t\tonClick={this.handleCheckboxWrapper}\n\t\t\t>\n\t\t\t\t<CheckboxWrapperStyle onClick={this.handleCheckboxInside}>\n\t\t\t\t\t<StyledCheckboxBox\n\t\t\t\t\t\tisError={this.props.isError}\n\t\t\t\t\t\tisChecked={this.state.value}\n\t\t\t\t\t\tisColor={this.props.color}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.state.value && <AwesomeIcon icon={faCheck} />}\n\t\t\t\t\t</StyledCheckboxBox>\n\t\t\t\t\t<input\n\t\t\t\t\t\t{...props_}\n\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\tvalue={this.state.value}\n\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t/>\n\t\t\t\t</CheckboxWrapperStyle>\n\t\t\t\t{this.props.label && (\n\t\t\t\t\t<label className=\"text-style-sm-regular cursor-pointer\">\n\t\t\t\t\t\t{typeof this.props.label === 'string'\n\t\t\t\t\t\t\t? trans({ label: this.props.label })\n\t\t\t\t\t\t\t: this.props.label}\n\t\t\t\t\t</label>\n\t\t\t\t)}\n\t\t\t</CheckboxStyle>\n\t\t);\n\t}\n}\n\nCheckbox = enhanceComponent({\n\tCheckbox,\n});\n\nexport { Checkbox };\n","import styled, { css } from 'styled-components';\nimport { boxNoHeight } from '../../modules/style/defaults';\n\nexport const CheckboxStyle = styled.div.attrs(() => ({\n\tclassName: 'checkbox',\n}))`\n\t${boxNoHeight};\n\tcursor: pointer;\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\n\tlabel {\n\t\tposition: relative;\n\t\tmargin-bottom: 0 !important;\n\t}\n\n\t[type='checkbox'] {\n\t\tpointer-events: none;\n\t}\n`;\n\nconst getWrapper = (props) => {\n\tlet color = 'var(--color-dark-600)';\n\tif (props.isColor) {\n\t\tcolor = props.theme.colors.active;\n\t}\n\tif (props.isError) {\n\t\tcolor = props.theme.colors.negative;\n\t}\n\treturn css`\n\t\tbackground-color: ${color};\n\t\tborder: 1px solid var(--color-dark-400);\n\t`;\n};\n\nexport const CheckboxWrapperStyle = styled.div.attrs(() => ({\n\tclassName: 'checkbox__wrapper',\n}))`\n\tposition: relative;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-start;\n\tmargin-right: 20px;\n\n\t[type='checkbox'] {\n\t\topacity: 0;\n\t}\n`;\n\nexport const StyledCheckboxBox = styled.div`\n\tborder-radius: 4px;\n\tdisplay: block;\n\theight: 16px;\n\tposition: absolute;\n\twidth: 16px;\n\t${getWrapper}\n\n\tsvg {\n\t\theight: 75%;\n\t\tleft: 50%;\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\ttransform: translate(-50%, -50%);\n\n\t\tpath {\n\t\t\tfill: white;\n\t\t}\n\t}\n`;\n","import styled, { css } from 'styled-components';\nimport { DropdownProps } from '@legacyApp/client/components/dropdown/dropdown';\nimport classnames from 'classnames';\nimport { boxNoHeight } from '../../modules/style/defaults';\n\nconst getProps = (props: { localTheme: DropdownProps['localTheme'] }) => {\n\tif (!props.localTheme || !Object.keys(props.localTheme).length) {\n\t\treturn '';\n\t}\n\tif (props.localTheme && props.localTheme.default) {\n\t\treturn css`\n\t\t\t.button {\n\t\t\t\tfont-family: ${(props) => props.theme.text.fonts.Bold};\n\t\t\t\theight: unset;\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 7px 15px;\n\n\t\t\t\t&.icon-wrapper {\n\t\t\t\t\tpadding-right: 30px;\n\n\t\t\t\t\ti,\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tright: 10px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t`;\n\t}\n};\n\nexport const DropdownStyle = styled.div.attrs<{\n\tclassName: string;\n\tlocalTheme: DropdownProps['localTheme'];\n}>((props) => ({\n\tclassName: classnames('dropdown', props.className),\n}))<{\n\tclassName: string;\n\tlocalTheme: DropdownProps['localTheme'];\n}>`\n\t${boxNoHeight};\n\tposition: relative;\n\twidth: unset;\n\tpadding-bottom: 7px;\n\tmargin-bottom: -7px;\n\n\t* {\n\t\tcursor: pointer !important;\n\t}\n\n\t&[data-id*='when-name'] {\n\t\t* {\n\t\t\ttext-transform: capitalize;\n\t\t}\n\t}\n\n\t${(props) =>\n\t\tprops.localTheme?.error\n\t\t\t? css`\n\t\t\t\t\tbutton:first-of-type {\n\t\t\t\t\t\tborder: 1px solid red;\n\t\t\t\t\t}\n\t\t\t  `\n\t\t\t: null}\n\n\t${getProps}\n`;\n","import { AppThunk } from '@legacyApp/types/store/ThunkAction';\nimport { DropdownContentData } from '@legacyApp/client/store/dropdown/dropdown.reducer';\n\nexport const dropdownGetThunk = (id: string): AppThunk<DropdownContentData> => {\n\treturn (dispatch, getState) => {\n\t\tconst state = getState();\n\t\treturn state.dropdown.content[id];\n\t};\n};\n","import React, { FC, PropsWithChildren, useCallback, useEffect } from 'react';\nimport { Button } from '@ui/button';\nimport { DropdownArrow } from '@ui/dropdown/DropdownArrow';\nimport { InputStyleType } from '@uiTypes/InputStyleType';\nimport { ButtonStyleType } from '@uiTypes/ButtonStyleType';\nimport { dropdownGetThunk } from '@legacyApp/client/store/dropdown/thunks/dropdownGet.thunk';\nimport { useOnUnmount } from '@common/hooks/useOnUnmount';\nimport { useDispatchCallback } from '@legacyApp/hooks/store/useAppDispatch';\nimport { DropdownContentData } from '@legacyApp/client/store/dropdown/dropdown.reducer';\nimport { useDropdownActiveSelector } from '@legacyApp/client/store/dropdown/selectors/useDropdownActiveSelector';\nimport { dropdownContentEqualityFn } from '@legacyApp/client/store/dropdown/methods/dropdownContentEqualityFn';\nimport {\n\tdropdownAdd,\n\tdropdownDelete,\n\tdropdownToggle,\n} from '../../store/dropdown/dropdown.actions';\nimport { Trans } from '../../modules/translation/translate';\nimport { DropdownStyle } from './dropdown.style';\n\nexport interface DropdownProps extends DropdownContentData {\n\tactive?: string;\n\tid: string; // isRequired\n\thelp?: any;\n\tlocalTheme?: {\n\t\terror?: boolean;\n\t\tdefault?: boolean;\n\t};\n}\n\nexport const Dropdown: FC<PropsWithChildren<DropdownProps>> = (props) => {\n\tconst active = useDropdownActiveSelector(props.id);\n\tconst close = useDispatchCallback(dropdownDelete);\n\tconst add = useDispatchCallback(dropdownAdd);\n\tconst toggle = useDispatchCallback(dropdownToggle);\n\tconst get = useDispatchCallback(dropdownGetThunk);\n\n\tconst addContent = useCallback(() => {\n\t\tif (!props.items) {\n\t\t\treturn;\n\t\t}\n\t\tconst lastContent: DropdownContentData = get(props.id);\n\t\tconst content: DropdownContentData = {\n\t\t\tscrollElement: props.scrollElement,\n\t\t\titems: props.items,\n\t\t\ttitle: props.title,\n\t\t\tonClick: props.onClick,\n\t\t\twidth: props.width,\n\t\t\tclassName: props.className,\n\t\t\tcss: props.css,\n\t\t\ttrans: props.trans,\n\t\t\titemElement: props.itemElement,\n\t\t};\n\t\tif (lastContent && dropdownContentEqualityFn(content, lastContent)) {\n\t\t\treturn;\n\t\t}\n\t\tadd({\n\t\t\tid: props.id,\n\t\t\tcontent: content,\n\t\t});\n\t}, [add, get, props]);\n\n\tconst toggleList = () => {\n\t\tif (props.items) {\n\t\t\ttoggle({\n\t\t\t\tid: props.id,\n\t\t\t\tbool: !active,\n\t\t\t});\n\t\t}\n\t};\n\n\tuseOnUnmount(() => {\n\t\tif (props.items) {\n\t\t\tclose(props.id);\n\t\t}\n\t});\n\n\tuseEffect(() => {\n\t\taddContent();\n\t}, [addContent]);\n\n\treturn (\n\t\t<DropdownStyle\n\t\t\tlocalTheme={props.localTheme}\n\t\t\tdata-id={props.id}\n\t\t\tonClick={!props.children ? undefined : toggleList}\n\t\t\tclassName={props.className}\n\t\t>\n\t\t\t{props.children ? (\n\t\t\t\tprops.children\n\t\t\t) : (\n\t\t\t\t<Button\n\t\t\t\t\tonClick={toggleList}\n\t\t\t\t\tname=\"dropdown-active\"\n\t\t\t\t\tstyleType={ButtonStyleType.SECONDARY}\n\t\t\t\t\tborderType={InputStyleType.SQUARE}\n\t\t\t\t\tclassName=\"icon-wrapper\"\n\t\t\t\t\tlabel={\n\t\t\t\t\t\tprops.trans ? (\n\t\t\t\t\t\t\t<Trans\n\t\t\t\t\t\t\t\tlabel={props.active}\n\t\t\t\t\t\t\t\tnamespace={\n\t\t\t\t\t\t\t\t\ttypeof props.trans === 'boolean' ? undefined : props.trans\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\tprops.active\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t>\n\t\t\t\t\t{!!props.items && <DropdownArrow />}\n\t\t\t\t</Button>\n\t\t\t)}\n\t\t\t{props.help}\n\t\t</DropdownStyle>\n\t);\n};\n","import { DropdownContentData } from '@legacyApp/client/store/dropdown/dropdown.reducer';\nimport { actionSimple } from '../../modules/app/actionService';\nimport {\n\tDROPDOWN_ADD,\n\tDROPDOWN_DELETE,\n\tDROPDOWN_SET_ACTIVE,\n\tDROPDOWN_SET_CONTENT,\n\tDROPDOWN_TOGGLE,\n} from './dropdown.constants';\n\nexport const dropdownSetActive = actionSimple<{\n\tid: string;\n}>(DROPDOWN_SET_ACTIVE);\nexport const dropdownSetContent = actionSimple<{\n\tid: string;\n\tcontent: DropdownContentData;\n}>(DROPDOWN_SET_CONTENT);\nexport const dropdownDelete = actionSimple<string>(DROPDOWN_DELETE);\nexport const dropdownAdd = actionSimple<{\n\tid: string;\n\tcontent: DropdownContentData;\n}>(DROPDOWN_ADD);\nexport const dropdownToggle = actionSimple<{\n\tid: string;\n\tbool: boolean;\n}>(DROPDOWN_TOGGLE);\n","import { DropdownContentData } from '@legacyApp/client/store/dropdown/dropdown.reducer';\nimport transactionService from '@modules/transactions/transactionsService';\n\nexport const dropdownContentEqualityFn = (\n\ta: DropdownContentData,\n\tb: DropdownContentData,\n) => {\n\treturn !transactionService.isListDifferent(a?.items, b?.items, [\n\t\t'id',\n\t\t'name',\n\t\t'value',\n\t\t'disabled',\n\t\t'className',\n\t]);\n};\n","import { useAppSelector } from '@legacyApp/hooks/store/useAppSelector';\nimport { shallowEqual } from 'react-redux';\n\nexport const useDropdownActiveSelector = (id: string) =>\n\tuseAppSelector((state) => state.dropdown.active[id], shallowEqual);\n","import { useCallback, useRef } from 'react';\nimport { useOnMount } from '@common/hooks/useOnMount';\n\nexport const useTimeout = () => {\n\tconst timeoutHandler = useRef(null);\n\n\tconst _setTimeout = useCallback((callback, timeout) => {\n\t\tif (timeoutHandler.current) {\n\t\t\tclearTimeout(timeoutHandler.current);\n\t\t\ttimeoutHandler.current = null;\n\t\t}\n\t\tif (timeout) {\n\t\t\ttimeoutHandler.current = setTimeout(() => {\n\t\t\t\tcallback();\n\t\t\t}, timeout);\n\t\t}\n\t}, []);\n\n\tuseOnMount(() => () => {\n\t\tclearTimeout(timeoutHandler.current);\n\t});\n\n\treturn {\n\t\tsetTimeout: _setTimeout,\n\t};\n};\n","import { useCallback, useEffect, useMemo, useState } from 'react';\nimport { isFunction } from '@common/methods/isFunction';\nimport { usePrevious } from '../render/usePrevious';\n\nexport interface UseGetDataArrayOptions<T> {\n\tloaded?: boolean;\n\tdata?: T[];\n\tcount?: number;\n\tloading?: boolean;\n}\n\nexport type UseGetDataArrayCallback<T, Q = any> = (\n\tquery?: Q,\n\tprops?: any,\n) => Promise<{ data: T[]; count?: number }>;\n\nexport const useGetDataArray = <T = any, Q = any>(\n\tkey: string,\n\tcallback: UseGetDataArrayCallback<T, Q>,\n\toptions?: UseGetDataArrayOptions<T>,\n): {\n\tloaded?: boolean;\n\tdata?: T[];\n\tcount?: number;\n\tloading?: boolean;\n\tupdate?: () => Promise<void>;\n} => {\n\tconst defaults = useMemo(\n\t\t() => ({\n\t\t\tloaded: options?.loaded || false,\n\t\t\tdata: options?.data || [],\n\t\t\tcount: options?.count || 0,\n\t\t\tloading: options?.loading || false,\n\t\t}),\n\t\t[options?.loaded, options?.data, options?.count, options?.loading],\n\t);\n\n\tconst [loaded, setLoaded] = useState(defaults.loaded);\n\tconst [loading, setLoading] = useState(defaults.loading);\n\tconst [data, setData] = useState(defaults.data);\n\tconst [count, setCount] = useState(defaults.count);\n\n\tconst prevKey = usePrevious(key);\n\n\tconst update = useCallback(async () => {\n\t\tif (!isFunction(callback) || loading) {\n\t\t\treturn;\n\t\t}\n\t\tsetLoading(true);\n\t\tconst { data, count } = await callback().catch((error) => {\n\t\t\tconsole.error(error);\n\t\t\treturn defaults;\n\t\t});\n\t\tif (data === null) {\n\t\t\tsetLoading(false);\n\t\t\treturn;\n\t\t}\n\t\tsetData(data);\n\t\tif (count) {\n\t\t\tsetCount(count);\n\t\t}\n\t\tsetLoading(false);\n\t\tsetLoaded(true);\n\t}, [callback, defaults, loading]);\n\n\tuseEffect(() => {\n\t\tif (key !== prevKey || (!loaded && !loading)) {\n\t\t\tupdate();\n\t\t}\n\t}, [key, loaded, loading, prevKey, update]);\n\n\treturn {\n\t\tloaded,\n\t\tloading,\n\t\tdata: data?.length ? data : options?.data || [],\n\t\tcount: count || options?.count,\n\t\tupdate,\n\t};\n};\n","import { createContext } from 'react';\nimport { TabButtonProps } from '@ui/tab-button';\nimport { UseTabNavigationResult } from './useTabNavigation';\n\nexport const TabNavigationContext = createContext<{\n\tactiveId: TabButtonProps['id'];\n\tchangeTabById: UseTabNavigationResult['changeTabById'];\n}>({\n\tactiveId: null,\n\tchangeTabById: null,\n});\n","import { TabNavigationProps } from '@ui/tab-navigation';\nimport { FC, useCallback, useEffect, useState } from 'react';\nimport { TabButtonProps } from '@ui/tab-button';\nimport { useAppDispatch } from '@legacyApp/hooks/store/useAppDispatch';\nimport { updateUrlQuery } from '@legacyApp/client/store/app/app.actions';\nimport { QueryKeys, useRouterQueryKey } from '../../selectors/router.selectors';\nimport { useOnMount } from '../../hooks/useOnMount';\nimport { isFunction } from '../../methods/isFunction';\n\nexport interface UseTabNavigationProps {\n\ttabs: TabNavigationProps['tabs'];\n\tactiveTabId?: TabNavigationProps['activeTabId'];\n\tdefaultTabId?: TabNavigationProps['activeTabId'];\n\tqueryKey?: QueryKeys;\n\thandleUrlQuery?: boolean;\n\tonChange?: (tab: TabButtonProps) => void;\n}\n\nexport interface UseTabNavigationResult {\n\tactiveTabId: TabNavigationProps['activeTabId'];\n\tonTabClick: TabNavigationProps['onClick'];\n\tchangeTabById: (tabId: TabButtonProps['id']) => void;\n\tcontent: FC;\n}\n\nconst getTab = (tabs: TabNavigationProps['tabs'], tabId?: string) => {\n\tif (!tabId) {\n\t\treturn null;\n\t}\n\treturn tabs.find((tab) => tab.id === tabId);\n};\n\nconst getQueryKey = (queryKey: string) =>\n\tqueryKey === undefined ? QueryKeys.TAB : queryKey;\n\nexport const useTabNavigation = ({\n\ttabs,\n\tactiveTabId,\n\tdefaultTabId,\n\tqueryKey,\n\thandleUrlQuery,\n\tonChange,\n}: UseTabNavigationProps): UseTabNavigationResult => {\n\tconst [_queryKey, setQueryKey] = useState(getQueryKey(queryKey));\n\tconst dispatch = useAppDispatch();\n\tconst routerQueryTab = useRouterQueryKey(_queryKey);\n\tconst [activeTab, setActiveTab] = useState<TabButtonProps>(null);\n\n\tconst _setActiveTab = useCallback(\n\t\t(tab: TabButtonProps) => {\n\t\t\tif (tab?.id === activeTab?.id) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tsetActiveTab(tab);\n\t\t\tif (handleUrlQuery && _queryKey) {\n\t\t\t\tdispatch(updateUrlQuery({ [_queryKey]: tab.id }));\n\t\t\t}\n\t\t\tif (isFunction(onChange)) {\n\t\t\t\tonChange(tab);\n\t\t\t}\n\t\t},\n\t\t[_queryKey, activeTab?.id, dispatch, handleUrlQuery, onChange],\n\t);\n\n\tconst changeTabById = useCallback(\n\t\t(tabId: TabButtonProps['id']) => {\n\t\t\tif (tabId) {\n\t\t\t\tconst tab = getTab(tabs, tabId);\n\t\t\t\tif (tab && tab.id !== activeTab?.id) {\n\t\t\t\t\t_setActiveTab(tab);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t[_setActiveTab, activeTab?.id, tabs],\n\t);\n\n\tconst onTabClick: TabNavigationProps['onClick'] = useCallback(\n\t\t(event, { id }) => {\n\t\t\tchangeTabById(id);\n\t\t},\n\t\t[changeTabById],\n\t);\n\n\tuseOnMount(() => {\n\t\t_setActiveTab(\n\t\t\tgetTab(\n\t\t\t\ttabs,\n\t\t\t\tactiveTabId || tabs.map((tab) => tab.id).includes(routerQueryTab)\n\t\t\t\t\t? routerQueryTab\n\t\t\t\t\t: defaultTabId,\n\t\t\t) || null,\n\t\t);\n\t});\n\n\tuseEffect(() => {\n\t\tif (activeTabId && activeTabId !== activeTab?.id && !routerQueryTab) {\n\t\t\tconst tab = getTab(tabs, activeTabId);\n\t\t\tif (tab && tab.id !== activeTab?.id) {\n\t\t\t\t_setActiveTab(tab);\n\t\t\t}\n\t\t}\n\t}, [_setActiveTab, activeTab?.id, activeTabId, tabs, routerQueryTab]);\n\n\tuseEffect(() => {\n\t\tif (routerQueryTab && routerQueryTab !== activeTab?.id && !activeTabId) {\n\t\t\tconst tab = getTab(tabs, routerQueryTab);\n\t\t\tif (tab && tab.id !== activeTab?.id) {\n\t\t\t\t_setActiveTab(tab);\n\t\t\t}\n\t\t}\n\t}, [_setActiveTab, activeTab?.id, routerQueryTab, tabs, activeTabId]);\n\n\tuseEffect(() => {\n\t\tsetQueryKey(getQueryKey(queryKey));\n\t}, [queryKey]);\n\n\t// console.log('useTabNavigation', { activeTabId, routerQueryTab, defaultTabId, queryKey });\n\n\treturn {\n\t\tactiveTabId: activeTab?.id || null,\n\t\tonTabClick,\n\t\tchangeTabById,\n\t\tcontent: activeTab?.content || null,\n\t};\n};\n","import {\n\tTabNavigation as UITabNavigation,\n\tTabNavigationProps,\n} from '@ui/tab-navigation';\nimport { FC, PropsWithChildren } from 'react';\nimport { useTabNavigation, UseTabNavigationProps } from './useTabNavigation';\nimport { TabNavigationContext } from './TabNavigation.context';\n\ninterface TabNavigationProps_ {\n\ttabs: TabNavigationProps['tabs'];\n\tonClick?: TabNavigationProps['onClick'];\n\tactiveTabId?: TabNavigationProps['activeTabId'];\n\tdefaultTabId?: TabNavigationProps['activeTabId'];\n\tqueryKey?: UseTabNavigationProps['queryKey'];\n\thandleUrlQuery?: UseTabNavigationProps['handleUrlQuery'];\n\tonChange?: UseTabNavigationProps['onChange'];\n}\n\nexport const TabNavigation: FC<PropsWithChildren<TabNavigationProps_>> = ({\n\ttabs,\n\tonClick,\n\tactiveTabId,\n\tdefaultTabId,\n\tchildren,\n\tqueryKey,\n\thandleUrlQuery,\n\tonChange,\n}) => {\n\tconst {\n\t\tactiveTabId: activeTabId_,\n\t\tcontent: Content,\n\t\tonTabClick,\n\t\tchangeTabById,\n\t} = useTabNavigation({\n\t\ttabs,\n\t\tactiveTabId,\n\t\tdefaultTabId,\n\t\tqueryKey,\n\t\thandleUrlQuery,\n\t\tonChange,\n\t});\n\n\treturn (\n\t\t<TabNavigationContext.Provider\n\t\t\tvalue={{\n\t\t\t\tactiveId: activeTabId_,\n\t\t\t\tchangeTabById,\n\t\t\t}}\n\t\t>\n\t\t\t<UITabNavigation\n\t\t\t\ttabs={tabs}\n\t\t\t\tactiveTabId={activeTabId_}\n\t\t\t\tonClick={onClick || onTabClick}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</UITabNavigation>\n\t\t\t<div className=\"margin-top-48\">{Content ? <Content /> : null}</div>\n\t\t</TabNavigationContext.Provider>\n\t);\n};\n","import { Fragment } from 'react';\nimport PropTypes from 'prop-types';\nimport { sequenceArray } from '@legacyApp/client/modules/app/appService';\nimport { isFunction } from '../../methods/isFunction';\n\nconst LoaderListWrapper = ({\n\tlist,\n\tlistElement,\n\tloaderWrapper,\n\tloaded,\n\tpreloadLength,\n\tpreloadElement,\n\tlistElementCallback,\n\tnoDataElement,\n}) => {\n\t// console.log('LoaderListWrapper', {\n\t// \tlist,\n\t// \tlistElement,\n\t// \tloaderWrapper,\n\t// \tloaded,\n\t// \tpreloadLength,\n\t// \tpreloadElement,\n\t// \tlistElementCallback,\n\t// \tnoDataElement,\n\t// });\n\tif (list?.length) {\n\t\treturn listElement || list.map(listElementCallback);\n\t}\n\tif (!loaded && preloadLength && preloadElement) {\n\t\tconst Wrapper = loaderWrapper || Fragment;\n\t\treturn (\n\t\t\t<Wrapper>\n\t\t\t\t{sequenceArray(preloadLength).map((el, index) =>\n\t\t\t\t\tisFunction(preloadElement)\n\t\t\t\t\t\t? preloadElement(el, index)\n\t\t\t\t\t\t: preloadElement,\n\t\t\t\t)}\n\t\t\t</Wrapper>\n\t\t);\n\t}\n\tif (loaded && noDataElement) {\n\t\treturn noDataElement;\n\t}\n\treturn null;\n};\n\nLoaderListWrapper.propTypes = {\n\tlist: PropTypes.array,\n\tlistElement: PropTypes.node,\n\tloaderWrapper: PropTypes.any,\n\tloaded: PropTypes.bool,\n\tpreloadLength: PropTypes.number,\n\tpreloadElement: PropTypes.any,\n\tlistElementCallback: PropTypes.func,\n\tnoDataElement: PropTypes.any,\n};\n\nexport { LoaderListWrapper };\n","import React, { FC, PropsWithChildren } from 'react';\nimport { Button } from '@ui/button';\nimport { DropdownArrow } from '@ui/dropdown/DropdownArrow';\nimport {\n\tStyledFilterContainer,\n\tStyledFilterSelect,\n} from '@modules/slots/components/SlotsFilters';\n\nimport { Size } from '@uiTypes/Size';\nimport { ButtonStyleType } from '@uiTypes/ButtonStyleType';\nimport { Dropdown } from '@legacyApp/client/components/dropdown/dropdown';\n\nexport interface FilterDropdownElement {\n\tid: string;\n\tname?: string;\n\tvalue?: string | boolean | number;\n}\n\nexport interface FilterDropdownProps {\n\tonClick?: (item: FilterDropdownElement) => void;\n\tid: string;\n\tlistElement?: FC<FilterDropdownElement>;\n\tlist: Array<FilterDropdownElement>;\n}\n\nexport const FilterDropdown: FC<PropsWithChildren<FilterDropdownProps>> = ({\n\tonClick,\n\tid,\n\tchildren,\n\tlist,\n\tlistElement,\n}) => {\n\treturn (\n\t\t<StyledFilterContainer>\n\t\t\t<StyledFilterSelect>\n\t\t\t\t<Dropdown\n\t\t\t\t\tid={id}\n\t\t\t\t\tonClick={onClick}\n\t\t\t\t\tlocalTheme={{ default: true }}\n\t\t\t\t\titemElement={listElement}\n\t\t\t\t\titems={list}\n\t\t\t\t>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tlabel={children}\n\t\t\t\t\t\tsize={Size.MEDIUM}\n\t\t\t\t\t\tstyleType={ButtonStyleType.SECONDARY}\n\t\t\t\t\t\tname=\"dropdown-active\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<DropdownArrow />\n\t\t\t\t\t</Button>\n\t\t\t\t</Dropdown>\n\t\t\t</StyledFilterSelect>\n\t\t</StyledFilterContainer>\n\t);\n};\n","import { EffectCallback, useEffect } from 'react';\n\nexport const useOnUnmount = (callback: EffectCallback) => {\n\tuseEffect(() => {\n\t\treturn () => {\n\t\t\tcallback();\n\t\t};\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, []);\n};\n","import React, { FC, useCallback, useContext } from 'react';\nimport styled from 'styled-components';\n\nimport { useUserIsAdmin } from '@common/selectors/user.selectors';\nimport sortService, {\n\tDIRECTION,\n} from '@legacyApp/client/modules/app/sortService';\nimport {\n\tTrans,\n\tTransSlots,\n} from '@legacyApp/client/modules/translation/translate';\nimport { useFetchProviders } from '@modules/slots/hooks/useFetchProviders';\nimport { ProviderDTO } from '@modules/slots/store/slots.types';\nimport { useGetDataArray } from '@legacyApp/hooks/fetch/useGetDataArray';\n\nimport {\n\tFilterDropdown,\n\tFilterDropdownElement,\n} from '@common/components/filterDropdown/FilterDropdown';\nimport { Checkbox } from '@legacyApp/client/components/checkbox';\nimport { CSSClassNameButton } from '@ui/button';\nimport { DropdownArrowParentMixin } from '@ui/dropdown/DropdownArrow';\nimport {\n\tSlotsFiltersContext,\n\tSORT_OPTION,\n} from '@modules/slots/components/SlotsFiltersContainer';\n\ninterface SlotsFiltersProps {\n\tname: string;\n}\n\nexport type Option = {\n\tlabel: string;\n\tvalue: string;\n};\n\nexport const StyledFilterContainer = styled.div`\n\talign-items: center;\n\tdisplay: flex;\n\tmargin-left: 0.5rem;\n\t@media (max-width: ${(props) => props.theme.media.maxWidthTablet}) {\n\t\t:first-of-type {\n\t\t\tmargin-left: 0;\n\t\t}\n\t\tjustify-content: space-between;\n\t}\n\n\t@media (max-width: ${(props) => props.theme.media.maxWidthVerySmall}) {\n\t\t.${CSSClassNameButton} {\n\t\t\tpadding: 7px 10px;\n\t\t}\n\t}\n`;\n\nexport const StyledFilterSelect = styled.div`\n\t.${CSSClassNameButton} {\n\t\t${DropdownArrowParentMixin};\n\t}\n`;\n\nexport const SlotsFilters: FC<SlotsFiltersProps> = () => {\n\tconst { callback, options } = useFetchProviders();\n\n\tconst { filterProviders, filterSort, setFilterSort, setFilterProvider } =\n\t\tuseContext(SlotsFiltersContext);\n\n\tconst userIsAdmin = useUserIsAdmin();\n\n\tconst { data: providers } = useGetDataArray<ProviderDTO>(\n\t\t`providers-${userIsAdmin}`,\n\t\tcallback,\n\t\toptions,\n\t);\n\n\tconst _setFilterSort = useCallback(\n\t\t(item: FilterDropdownElement) => {\n\t\t\tsetFilterSort({\n\t\t\t\tvalue: item.id,\n\t\t\t\tlabel: item.name,\n\t\t\t});\n\t\t},\n\t\t[setFilterSort],\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t{filterProviders && (\n\t\t\t\t<FilterDropdown\n\t\t\t\t\tid={'slot-filter-providers'}\n\t\t\t\t\tlistElement={({ id, name, value }) => (\n\t\t\t\t\t\t<Checkbox\n\t\t\t\t\t\t\tinitValue={value}\n\t\t\t\t\t\t\tlabel={<span>{name}</span>}\n\t\t\t\t\t\t\tonChange={() => {\n\t\t\t\t\t\t\t\tsetFilterProvider(Number(id), !value);\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\tlist={providers\n\t\t\t\t\t\t.sort((a, b) => sortService.sort(DIRECTION.ASC, a.name, b.name))\n\t\t\t\t\t\t.map((provider) => ({\n\t\t\t\t\t\t\tid: String(provider.id),\n\t\t\t\t\t\t\tname: provider.name,\n\t\t\t\t\t\t\tvalue: filterProviders.includes(provider.id),\n\t\t\t\t\t\t}))}\n\t\t\t\t>\n\t\t\t\t\t{filterProviders.length > 0 ? (\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<TransSlots label={'Providers'} />\n\t\t\t\t\t\t\t{`: ${filterProviders.length}`}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<TransSlots label={'All Providers'} />\n\t\t\t\t\t)}\n\t\t\t\t</FilterDropdown>\n\t\t\t)}\n\n\t\t\t<FilterDropdown\n\t\t\t\tid={'slot-filter-sort-by'}\n\t\t\t\tonClick={_setFilterSort}\n\t\t\t\tlistElement={(item) => (\n\t\t\t\t\t<div className=\"text-capitalize\">\n\t\t\t\t\t\t<Trans label={item.name} />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\tlist={SORT_OPTION.map((item) => ({\n\t\t\t\t\tid: item.value,\n\t\t\t\t\tname: item.label,\n\t\t\t\t}))}\n\t\t\t>\n\t\t\t\t<Trans label={'Sort by'} />\n\t\t\t\t{': '}\n\t\t\t\t<Trans label={filterSort.label} />\n\t\t\t</FilterDropdown>\n\t\t</>\n\t);\n};\n","import React, {\n\tcreateContext,\n\tFC,\n\tPropsWithChildren,\n\tuseCallback,\n\tuseState,\n} from 'react';\n\nimport { DIRECTION } from '@legacyApp/client/modules/app/sortService';\nimport { filterArrayDuplicates } from '@legacyApp/client/modules/app/appService';\n\nimport { useForceUpdate } from '@legacyApp/hooks/app/useForceRerender';\nimport { Option } from './SlotsFilters';\n\nexport const SORT_OPTION: Option[] = [\n\t{ label: 'Popular', value: undefined },\n\t// { label: 'Featured', value: 'Featured' },\n\t{ label: 'A-Z', value: DIRECTION.ASC.toUpperCase() },\n\t{ label: 'Z-A', value: DIRECTION.DESC.toUpperCase() },\n];\n\nexport const SlotsFiltersContext = createContext<{\n\tfilterProviders: Array<number>;\n\tsetFilterProvider: (provider: number, add: boolean) => void;\n\tfilterSort: Option;\n\tsetFilterSort: (sort: Option) => void;\n}>({\n\tfilterProviders: [],\n\tsetFilterProvider: () => null,\n\tfilterSort: SORT_OPTION[0],\n\tsetFilterSort: () => null,\n});\n\nexport const SlotsFiltersContainer: FC<PropsWithChildren<any>> = ({\n\tchildren,\n}) => {\n\tconst [filterProviders, setFilterProviders] = useState<Array<number>>([]);\n\tconst [filterSort, setFilterSort] = useState<Option>(SORT_OPTION[0]);\n\n\tconst forceRerender = useForceUpdate();\n\n\tconst setFilterProviderHandler = useCallback(\n\t\t(provider, add) => {\n\t\t\tconst res = add\n\t\t\t\t? filterArrayDuplicates([...filterProviders, provider])\n\t\t\t\t: filterProviders.filter((item) => item !== provider);\n\t\t\tsetFilterProviders(res);\n\t\t\tforceRerender();\n\t\t},\n\t\t[filterProviders, forceRerender],\n\t);\n\n\treturn (\n\t\t<SlotsFiltersContext.Provider\n\t\t\tvalue={{\n\t\t\t\tfilterProviders,\n\t\t\t\tsetFilterProvider: setFilterProviderHandler,\n\t\t\t\tfilterSort,\n\t\t\t\tsetFilterSort: setFilterSort,\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</SlotsFiltersContext.Provider>\n\t);\n};\n","import { createContext } from 'react';\nimport { ProviderDTO } from '../store/slots.types';\n\nexport const SlotsProvidersContext = createContext<{\n\tproviders: {\n\t\tlist: ProviderDTO[];\n\t\tcount: number;\n\t};\n\tsetProviders: any;\n}>({\n\tproviders: {\n\t\tlist: [],\n\t\tcount: null,\n\t},\n\tsetProviders: (value) => value,\n});\n","import { useCallback, useContext } from 'react';\nimport { useFetchApiPromise } from '@legacyApp/hooks/fetch/useFetchApi';\nimport { UseGetDataArrayCallback } from '@legacyApp/hooks/fetch/useGetDataArray';\nimport { useUserIsAdmin, useUserName } from '@common/selectors/user.selectors';\nimport { ProviderDTO } from '../store/slots.types';\nimport { generateFetchSlotProvidersUrl } from '../services/Slots.service';\nimport { SlotsProvidersContext } from '../context/SlotsProvidersContext';\n\nexport const PROVIDER_ADMIN_ID_FROM = 1000;\nexport const USERS_ALLOWED_TO_SEE_ADMIN_PROVIDERS = ['fundist1', 'dymekk12'];\n\nexport const useFetchProviders = () => {\n\tconst fetchApi = useFetchApiPromise();\n\tconst contextProviders = useContext(SlotsProvidersContext);\n\tconst userIsAdmin = useUserIsAdmin();\n\tconst userName = useUserName();\n\n\tconst callback: UseGetDataArrayCallback<ProviderDTO> = useCallback(\n\t\tasync (take?: number) => {\n\t\t\tconst { list, count } = await fetchApi({\n\t\t\t\turl: generateFetchSlotProvidersUrl({\n\t\t\t\t\t...((userIsAdmin ||\n\t\t\t\t\t\tUSERS_ALLOWED_TO_SEE_ADMIN_PROVIDERS.indexOf(userName) > -1) && {\n\t\t\t\t\t\tisAdmin: true,\n\t\t\t\t\t}),\n\t\t\t\t\t...(take && { take }),\n\t\t\t\t}),\n\t\t\t\tfromState: true,\n\t\t\t\tdisableErrorHandler: true,\n\t\t\t})\n\t\t\t\t.then(\n\t\t\t\t\t(\n\t\t\t\t\t\tresult:\n\t\t\t\t\t\t\t| { list: ProviderDTO[]; count: number }\n\t\t\t\t\t\t\t| { data: ProviderDTO[] },\n\t\t\t\t\t) => {\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\ttypeof result === 'object' &&\n\t\t\t\t\t\t\t'data' in result &&\n\t\t\t\t\t\t\tresult?.data?.length\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\tlist: result.data,\n\t\t\t\t\t\t\t\tcount: result.data.length,\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\ttypeof result === 'object' &&\n\t\t\t\t\t\t\t'list' in result &&\n\t\t\t\t\t\t\tresult?.list?.length\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\tlist: result.list,\n\t\t\t\t\t\t\t\tcount: result?.count,\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn contextProviders?.providers;\n\t\t\t\t\t},\n\t\t\t\t)\n\t\t\t\t.catch((error) => {\n\t\t\t\t\tconsole.error(error);\n\t\t\t\t\treturn contextProviders?.providers;\n\t\t\t\t});\n\n\t\t\tif (contextProviders?.setProviders) {\n\t\t\t\tcontextProviders.setProviders(\n\t\t\t\t\t{ list, count } || contextProviders?.providers,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\tdata: list || contextProviders?.providers?.list,\n\t\t\t\tcount: count || contextProviders?.providers?.count,\n\t\t\t};\n\t\t},\n\t\t[contextProviders, fetchApi, userIsAdmin, userName],\n\t);\n\n\treturn {\n\t\tcallback,\n\t\toptions: {\n\t\t\tdata: contextProviders?.providers?.list,\n\t\t\tcount: contextProviders?.providers?.count,\n\t\t},\n\t};\n};\n"],"names":["Checkbox","props","event","disabled","target","localName","onChange","state","value","setState","onlyCheckboxClick","handleCheckbox","initValue","undefined","this","prevProps","prevState","update","props_","isError","handleComponentError","componentName","className","onClick","handleCheckboxWrapper","handleCheckboxInside","isChecked","isColor","color","icon","faCheck","type","label","trans","React","enhanceComponent","CheckboxStyle","styled","boxNoHeight","CheckboxWrapperStyle","StyledCheckboxBox","theme","colors","active","negative","css","DropdownStyle","classnames","localTheme","error","Object","keys","length","text","fonts","Bold","dropdownGetThunk","id","dispatch","getState","dropdown","content","Dropdown","useDropdownActiveSelector","close","useDispatchCallback","dropdownDelete","add","dropdownAdd","toggle","dropdownToggle","get","addContent","useCallback","items","lastContent","scrollElement","title","width","itemElement","dropdownContentEqualityFn","toggleList","bool","useOnUnmount","useEffect","children","name","styleType","ButtonStyleType","borderType","InputStyleType","namespace","DropdownArrow","help","actionSimple","DROPDOWN_SET_ACTIVE","DROPDOWN_SET_CONTENT","DROPDOWN_DELETE","DROPDOWN_ADD","DROPDOWN_TOGGLE","a","b","transactionService","useAppSelector","shallowEqual","useTimeout","timeoutHandler","useRef","_setTimeout","callback","timeout","current","clearTimeout","setTimeout","useOnMount","useGetDataArray","key","options","defaults","useMemo","loaded","data","count","loading","useState","setLoaded","setLoading","setData","setCount","prevKey","usePrevious","isFunction","console","TabNavigationContext","createContext","activeId","changeTabById","getTab","tabs","tabId","find","tab","getQueryKey","queryKey","QueryKeys","TabNavigation","activeTabId","defaultTabId","handleUrlQuery","_queryKey","setQueryKey","useAppDispatch","routerQueryTab","useRouterQueryKey","activeTab","setActiveTab","_setActiveTab","updateUrlQuery","onTabClick","map","includes","useTabNavigation","activeTabId_","Content","LoaderListWrapper","list","listElement","loaderWrapper","preloadLength","preloadElement","listElementCallback","noDataElement","Wrapper","Fragment","sequenceArray","el","index","FilterDropdown","default","size","Size","StyledFilterContainer","media","maxWidthTablet","maxWidthVerySmall","CSSClassNameButton","StyledFilterSelect","DropdownArrowParentMixin","SlotsFilters","useFetchProviders","useContext","SlotsFiltersContext","filterProviders","filterSort","setFilterSort","setFilterProvider","userIsAdmin","useUserIsAdmin","providers","_setFilterSort","item","Number","sort","sortService","DIRECTION","provider","String","SORT_OPTION","SlotsFiltersContainer","setFilterProviders","forceRerender","useForceUpdate","setFilterProviderHandler","res","filterArrayDuplicates","filter","Provider","SlotsProvidersContext","setProviders","PROVIDER_ADMIN_ID_FROM","USERS_ALLOWED_TO_SEE_ADMIN_PROVIDERS","fetchApi","useFetchApiPromise","contextProviders","userName","useUserName","take","url","generateFetchSlotProvidersUrl","indexOf","isAdmin","fromState","disableErrorHandler","then","result"],"mappings":";;uxCAYMA,EAAAA,SAAAA,I,uBAcL,WAAYC,GAAO,4B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