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AAK,uBAOH,OANMA,EAAUwH,EAAMuiC,SACdjmB,SAAQ,SAACzY,GACXA,EAAEuM,WAAaxK,EAAO2J,QAAQa,WAChCvM,EAAI+B,EAAO2J,QAEf,IACAqa,EAAA,GAAWpxB,GAAO,GAEpB,QACE,OAAOwH,EAEb,C","sources":["webpack:///./store/payment/types.ts","webpack:///./components/event/eventInfoItem.tsx","webpack:///./containers/pages/referralPage/referralPage.tsx","webpack:///./containers/pages/events/eventDetailsPage/eventDetailsFooter.tsx","webpack:///./store/header/reducer.ts","webpack:///./containers/pages/checkout/checkoutPage.tsx","webpack:///./store/distribution/actions.ts","webpack:///./containers/pages/user/userTicketPurchasePage.tsx","webpack:///./components/book/schemaSectorSelector.tsx","webpack:///./components/event/datePicker/datePicker.tsx","webpack:///./containers/pages/widget/widgetComponents/ticketsInfo.tsx","webpack:///./store/region/reducers.ts","webpack:///./containers/pages/static/contactsPage.tsx","webpack:///./store/resultInformarion/types.ts","webpack:///./components/event/userEventItem.tsx","webpack:///./containers/pages/user/password/resetPasswordPage.tsx","webpack:///./components/event/sellEventButton.tsx","webpack:///./store/ticket/ProfileTicketStoreState.ts","webpack:///./components/UI/label.tsx","webpack:///./containers/pages/index.ts","webpack:///./store/book/types.ts","webpack:///./components/UI/page/index.ts","webpack:///./components/UI/index.ts","webpack:///./services/index.ts","webpack:///./components/event/eventCheckoutHeader/renderTicketsInfo.tsx","webpack:///./store/appSettings/actions.ts","webpack:///./components/UI/page/pageFooter.tsx","webpack:///./components/forms/purchaseForm.tsx","webpack:///./services/repositories/paymentsService.ts","webpack:///./services/repositories/index.ts","webpack:///./store/event/reducers.ts","webpack:///./containers/pages/events/eventDetailsPage/eventDetailsPage.tsx","webpack:///./components/book/placeSelector.tsx","webpack:///./components/event/datePicker/categoriesAccordion.tsx","webpack:///./containers/pages/widget/widgetComponents/widgetFooter.tsx","webpack:///./containers/pages/user/userTicketsPage.tsx","webpack:///./store/constants.ts","webpack:///./helpers/checkoutHelper.ts","webpack:///./components/testBanner.tsx","webpack:///./containers/pages/events/index.ts","webpack:///./components/event/categoryCarousel.tsx","webpack:///./components/event/horizontalCarousel.tsx","webpack:///./containers/pages/book/index.ts","webpack:///./containers/pages/user/index.ts","webpack:///./components/ticket/userTicketsList.tsx","webpack:///./store/book/reducers.ts","webpack:///./containers/pages/user/userEventsPage.tsx","webpack:///./store/event/eventDetails/EventDetailsVenueStoreState.ts","webpack:///./components/forms/freedomPayForm.tsx","webpack:///./containers/pages/user/password/index.ts","webpack:///./components/event/userEventsList.tsx","webpack:///./containers/pages/user/userPage.tsx","webpack:///./containers/pages/referralPage/ticket.tsx","webpack:///./components/forms/commonForm.tsx","webpack:///./services/routeService.ts","webpack:///./store/book/actions.ts","webpack:///./components/UI/message.tsx","webpack:///./containers/pages/checkout/index.ts","webpack:///./helpers/index.ts","webpack:///./containers/pages/static/index.ts","webpack:///./components/event/ModalBonusTicket.tsx","webpack:///./services/baseApiService.ts","webpack:///./store/region/actions.ts","webpack:///./containers/pages/user/userTicketDetailsComponents/userTicketDetailsComponents.tsx","webpack:///./components/UI/selector/selector.tsx","webpack:///./services/AnalyticService.ts","webpack:///./components/forms/passwordRecoveryForm.tsx","webpack:///./containers/pages/events/eventsPage.tsx","webpack:///./store/header/types.ts","webpack:///./store/location/reducers.ts","webpack:///./components/UI/selector/checkboxSelectorItem.tsx","webpack:///./components/event/datePicker/datepickerCarousel.tsx","webpack:///./components/UI/input.tsx","webpack:///./store/resultInformarion/actions.ts","webpack:///./store/resultInformarion/reducers.ts","webpack:///./components/event/categorizedEventCarousel.tsx","webpack:///./containers/pages/information/informationFailed.tsx","webpack:///./store/checkout/actions.ts","webpack:///./helpers/PanAndZoomImage/PanAndZoomImage.tsx","webpack:///./settings/contactInfo.ts","webpack:///./components/timer/timer.tsx","webpack:///./containers/pages/user/loginPage.tsx","webpack:///./containers/pages/events/eventCategoryPage.tsx","webpack:///./containers/pages/events/eventDetailsPage/descriptionCollapse.tsx","webpack:///./components/event/eventDetailsHeader.tsx","webpack:///./components/UI/copyButton.tsx","webpack:///./containers/pages/user/profilePage.tsx","webpack:///./components/UI/link.tsx","webpack:///./helpers/PanAndZoomImage/PanAndZoomImageStyles.tsx","webpack:///./components/event/eventCheckoutHeader/eventCheckoutHeader.tsx","webpack:///./store/menu/types.ts","webpack:///./store/distribution/reducers.ts","webpack:///./store/event/types.ts","webpack:///./components/event/searchInput.tsx","webpack:///./store/share/actions.tsx","webpack:///./components/UI/selector/selectorItem.tsx","webpack:///./store/appSettings/reducers.ts","webpack:///./store/ticket/types.ts","webpack:///./store/enums.ts","webpack:///./containers/pages/static/paymentsInfoPage.tsx","webpack:///./settings/appTheme.tsx","webpack:///./containers/pages/information/informationSuccess.tsx","webpack:///./configureStore.ts","webpack:///./services/validationService.ts","webpack:///./components/book/index.ts","webpack:///./containers/pages/user/emailConfirmPage.tsx","webpack:///./components/forms/editProfileForm.tsx","webpack:///./containers/app.tsx","webpack:///./store/location/actions.ts","webpack:///./components/event/popupLocation.tsx","webpack:///./components/timer/styles.tsx","webpack:///./components/event/events.tsx","webpack:///./components/UI/image.tsx","webpack:///./components/UI/selector/index.ts","webpack:///./store/user/actions.ts","webpack:///./components/user/userStatItem.tsx","webpack:///./store/header/actions.ts","webpack:///./components/event/index.ts","webpack:///./store/auth/reducers.ts","webpack:///./components/forms/registrationForm.tsx","webpack:///./store/regExpRules.ts","webpack:///./containers/pages/user/userTicketDetailsPage.tsx","webpack:///./services/repositories/shareService.tsx","webpack:///./services/repositories/widgetService.ts","webpack:///./containers/pages/widget/widgetBookResultPage.tsx","webpack:///./store/app/reducers.ts","webpack:///./containers/pages/events/dashboardPage.tsx","webpack:///./containers/spinner.tsx","webpack:///./containers/footer.tsx","webpack:///./store/animations.ts","webpack:///./containers/pages/user/registrationPage.tsx","webpack:///./services/apiService.ts","webpack:///./store/share/reduser.ts","webpack:///./containers/pages/widget/widgetComponents/ticketsCountSelector.tsx","webpack:///./containers/pages/book/pricesWrapper.tsx","webpack:///./components/user/userStats.tsx","webpack:///./containers/menu.tsx","webpack:///./components/forms/paymentForm.tsx","webpack:///./containers/pages/information/informationRoutes.tsx","webpack:///./services/thunkService.ts","webpack:///./store/index.ts","webpack:///./store/location/types.ts","webpack:///./store/auth/actions.ts","webpack:///./components/book/ticketSelector.tsx","webpack:///./components/forms/resetPasswordForm.tsx","webpack:///./components/user/avatar.tsx","webpack:///./services/repositories/publicContractService.ts","webpack:///./services/repositories/authService.ts","webpack:///./store/user/types.ts","webpack:///./store/auth/types.ts","webpack:///./settings/appSettings.ts","webpack:///./components/event/datePicker/renderDays.tsx","webpack:///./components/payment/paymentLogos.tsx","webpack:///./store/checkout/types.ts","webpack:///./components/UI/page/pageHeader.tsx","webpack:///./components/event/eventSellHeader.tsx","webpack:///./containers/pages/user/userTicketSellDetailsPage.tsx","webpack:///./components/UI/numberInput.tsx","webpack:///./components/UI/button.tsx","webpack:///./store/checkout/reducers.ts","webpack:///./store/appSettings/types.ts","webpack:///./components/forms/paymentFormStyles.ts","webpack:///./helpers/routesHelper.tsx","webpack:///./containers/pages/widget/widgetBookPage.tsx","webpack:///./services/repositories/accountService.ts","webpack:///./components/UI/page/page.tsx","webpack:///./i18n.js","webpack:///./services/repositories/ticketsService.ts","webpack:///./components/event/skeletonEventCarousel.tsx","webpack:///./components/UI/selector/checkboxSelector.tsx","webpack:///./store/event/actions.ts","webpack:///./components/forms/emailForm.tsx","webpack:///./containers/pages/share/shareLinkPage.tsx","webpack:///./index.tsx","webpack:///./containers/pages/widget/widgetComponents/widgetError.tsx","webpack:///./containers/pages/book/bookPage.tsx","webpack:///./containers/pages/widget/widgetComponents/widgetPrice.tsx","webpack:///./services/useUtils.ts","webpack:///./settings/paymentSettings.ts","webpack:///./containers/pages/share/sharePage.tsx","webpack:///./components/ticket/userTicketItem.tsx","webpack:///./components/payment/index.ts","webpack:///./services/utils.ts","webpack:///./helpers/customHooks.ts","webpack:///./store/menu/actions.ts","webpack:///./store/app/actions.ts","webpack:///./components/event/eventHeadline.tsx","webpack:///./components/ticket/index.ts","webpack:///./store/share/types.ts","webpack:///./helpers/userHelper.ts","webpack:///./store/ticket/ProfileTicketQuotaStoreState.ts","webpack:///./components/forms/stripeCheckoutForm.tsx","webpack:///./services/repositories/homeService.ts","webpack:///./components/UI/page/pageContent.tsx","webpack:///./components/alert/alertError.tsx","webpack:///./containers/pages/widget/widgetCheckoutPage.tsx","webpack:///./store/event/eventDetails/EventDetailsTicketQuotaStoreState.ts","webpack:///./components/event/eventCarousel.tsx","webpack:///./components/event/eventCheckoutHeader/renderPriceInfo.tsx","webpack:///./containers/pages/information/widgetInformationRoutes.tsx","webpack:///./store/region/types.ts","webpack:///./store/distribution/types.ts","webpack:///./services/repositories/eventsService.ts","webpack:///./components/forms/loginForm.tsx","webpack:///./components/user/index.ts","webpack:///./components/forms/index.ts","webpack:///./_prod.tsx","webpack:///./components/UI/page/pageTitle.tsx","webpack:///./containers/pages/book/bookResultPage.tsx","webpack:///./components/forms/checkoutForm.tsx","webpack:///./store/routes.ts","webpack:///./containers/pages/book/bookResultErrorPage.tsx","webpack:///./store/menu/reducers.ts","webpack:///./helpers/eventHelper.ts","webpack:///./containers/pages/user/password/passwordRecoveryPage.tsx","webpack:///./containers/pages/user/editProfilePage.tsx","webpack:///./containers/header.tsx","webpack:///./store/app/types.ts","webpack:///./store/event/eventDetails/EventDetailsStoreState.ts","webpack:///./store/user/reducers.ts"],"sourcesContent":["import dayjs from 'dayjs';\n\nimport { IDistributionInfo, DistributionInfo } from '../user/types';\nimport { IEventStoreState, EventStoreState } from '../event/types';\n\nexport interface IPaymentStoreState {\n method: string;\n methodDescription: string;\n comission: number;\n comissionDescription: string;\n useConvertion: boolean;\n convertionRate: number;\n convertionCurrency: string;\n}\n\nexport class PaymentStoreState implements IPaymentStoreState {\n method: string;\n methodDescription: string;\n comission: number;\n comissionDescription: string;\n useConvertion: boolean;\n convertionRate: number;\n convertionCurrency: string;\n\n constructor(dto?: any) {\n this.method = dto && dto.Method ? dto.Method : '';\n this.methodDescription = dto && dto.MethodDescription ? dto.MethodDescription : '';\n this.comission = dto && dto.Comission ? dto.Comission : 0;\n this.comissionDescription = dto && dto.ComissionDescription ? dto.ComissionDescription : '';\n\n this.useConvertion = dto && dto.UseConvertion ? dto.UseConvertion : '';\n this.convertionRate = dto && dto.ConvertionRate ? dto.ConvertionRate : '';\n this.convertionCurrency = dto && dto.ConvertionCurrency ? dto.ConvertionCurrency : '';\n }\n}\n\nexport interface IPaymentInitiateSectorRowInfo {\n rowSlug: string;\n rowSeatSlugs: string[];\n}\n\nexport class PaymentInitiateSectorRowInfo implements IPaymentInitiateSectorRowInfo {\n public rowSlug: string;\n public rowSeatSlugs: string[];\n\n constructor(dto?: any) {\n this.rowSlug = dto && dto.rowSlug ? dto.rowSlug : '';\n this.rowSeatSlugs = dto && dto.rowSeatSlugs ? dto.rowSeatSlugs : [];\n }\n}\n\nexport interface IPaymentInitiateSectorInfo {\n sectorSlug: string;\n quantity: number;\n sectorRows: IPaymentInitiateSectorRowInfo[];\n}\n\nexport class PaymentInitiateSectorInfo implements IPaymentInitiateSectorInfo {\n public sectorSlug: string;\n public quantity: number;\n public sectorRows: IPaymentInitiateSectorRowInfo[];\n\n constructor(dto?: any) {\n this.sectorSlug = dto && dto.sectorSlug ? dto.sectorSlug : '';\n this.quantity = dto && dto.quantity ? dto.quantity : 0;\n this.sectorRows = dto && dto.sectorRows ? dto.sectorRows.map((r: any) => new PaymentInitiateSectorRowInfo(r)) : [];\n }\n}\n\nexport interface IPaymentInitiateTicketInfo {\n quotaId: number;\n sector: IPaymentInitiateSectorInfo;\n}\n\nexport class PaymentInitiateTicketInfo implements IPaymentInitiateTicketInfo {\n quotaId: number;\n sector: IPaymentInitiateSectorInfo;\n\n constructor(dto?: any) {\n this.quotaId = dto && dto.quotaId ? dto.quotaId : 0;\n this.sector = dto && dto.sector ? new PaymentInitiateSectorInfo(dto.sector) : null;\n }\n}\n\nexport interface IPaymentDistributionResult extends IDistributionInfo {\n distributorFound?: boolean;\n}\n\nexport class PaymentDistributionResult extends DistributionInfo implements IPaymentDistributionResult {\n distributorFound?: boolean;\n\n constructor(dto?: any) {\n super(dto && dto.DistributorSlug ? dto.DistributorSlug : '');\n this.distributorFound = dto && dto.DistributorFound ? dto.DistributorFound : false;\n }\n}\n\nexport interface IPaymentInitiateInfo extends IDistributionInfo {\n eventSlug: string;\n paymentMethod: string;\n usePoints: boolean;\n tickets: Array;\n}\n\nexport class PaymentInitiateInfo extends DistributionInfo implements IPaymentInitiateInfo {\n eventSlug: string;\n paymentMethod: string;\n usePoints: boolean;\n token: string;\n tickets: Array;\n\n constructor(dto?: any) {\n super(dto && dto.distributorSlug ? dto.distributorSlug : '');\n this.eventSlug = dto && dto.eventSlug ? dto.eventSlug : '';\n this.paymentMethod = dto && dto.paymentMethod ? dto.paymentMethod : '';\n this.usePoints = dto && dto.usePoints ? dto.usePoints : false;\n this.tickets = dto && dto.tickets ? dto.tickets.map((item: any) => new PaymentInitiateTicketInfo(item)) : [];\n this.token = dto && dto.token ? dto.token : '';\n }\n}\n\nexport interface IPaymentInitiateTicketResult {\n title: string;\n currency: string;\n pricePerTicket: number;\n quantity: number;\n priceTotal: number;\n}\n\nexport class PaymentInitiateTicketResult implements IPaymentInitiateTicketResult {\n title: string;\n currency: string;\n pricePerTicket: number;\n quantity: number;\n priceTotal: number;\n\n constructor(dto?: any) {\n this.title = dto && dto.Title ? dto.Title : '';\n this.currency = dto && dto.Currency ? dto.Currency : '';\n this.pricePerTicket = dto && dto.PricePerTicket ? dto.PricePerTicket : 0;\n this.quantity = dto && dto.Quantity ? dto.Quantity : 0;\n this.priceTotal = dto && dto.PriceTotal ? dto.PriceTotal : 0;\n }\n}\n\nexport interface IPaymentInitiateResult extends IPaymentDistributionResult {\n event: IEventStoreState;\n tickets: Array;\n currency: string;\n priceSubtotal: number;\n priceComission: number;\n priceTotal: number;\n pricePayByCard: number;\n pricePayByPoints: number;\n}\n\nexport class PaymentInitiateResult extends PaymentDistributionResult implements IPaymentInitiateResult {\n event: IEventStoreState;\n tickets: Array;\n currency: string;\n priceSubtotal: number;\n priceComission: number;\n priceTotal: number;\n pricePayByCard: number;\n pricePayByPoints: number;\n\n constructor(dto?: any) {\n super(dto);\n this.event = dto && dto.Event ? new EventStoreState(dto.Event) : null;\n this.tickets = dto && dto.Tickets ? dto.Tickets.map((item: any) => new PaymentInitiateTicketResult(item)) : [];\n this.currency = dto && dto.Currency ? dto.Currency : '';\n this.priceSubtotal = dto && dto.PriceSubtotal ? dto.PriceSubtotal : 0;\n this.priceComission = dto && dto.PriceComission ? dto.PriceComission : 0;\n this.priceTotal = dto && dto.PriceTotal ? dto.PriceTotal : 0;\n this.pricePayByCard = dto && dto.PricePayByCard ? dto.PricePayByCard : 0;\n this.pricePayByPoints = dto && dto.PricePayByPoints ? dto.PricePayByPoints : 0;\n }\n}\n\nexport interface IPaymentProcessInfo extends IPaymentInitiateInfo {\n email: string;\n returnUrl: string;\n}\n\nexport class PaymentProcessInfo extends PaymentInitiateInfo implements IPaymentProcessInfo {\n email: string;\n returnUrl: string;\n returnErrorUrl: string;\n retailWebsite: string;\n\n constructor(dto?: any) {\n super(dto);\n\n this.email = dto && dto.email ? dto.email : '';\n this.returnUrl = dto && dto.returnUrl ? dto.returnUrl : '';\n this.returnErrorUrl = dto && dto.returnErrorUrl ? dto.returnErrorUrl : '';\n this.retailWebsite = dto && dto.retailWebsite ? dto.retailWebsite : '';\n this.token = dto && dto.token ? dto.token : '';\n }\n}\n\nexport interface IPaymentProcessResult extends IPaymentDistributionResult {\n referenceNumber: string;\n paymentProvider: string;\n paymentToken: string;\n stripeProvider: number;\n paymentRedirectUrl: string;\n paymentTimeoutAt: dayjs.Dayjs;\n}\n\nexport class PaymentProcessResult extends PaymentDistributionResult implements IPaymentProcessResult {\n referenceNumber: string;\n paymentProvider: string;\n paymentToken: string;\n stripeProvider: number;\n paymentRedirectUrl: string;\n paymentTimeoutAt: dayjs.Dayjs;\n\n constructor(dto?: any) {\n super(dto);\n this.referenceNumber = dto && dto.ReferenceNumber ? dto.ReferenceNumber : '';\n this.paymentProvider = dto && dto.PaymentProvider ? dto.PaymentProvider : '';\n this.paymentToken = dto && dto.PaymentToken ? dto.PaymentToken : '';\n this.stripeProvider = dto && dto.StripeProvider ? dto.StripeProvider : 0;\n this.paymentRedirectUrl = dto && dto.PaymentRedirectUrl ? dto.PaymentRedirectUrl : '';\n this.paymentTimeoutAt = dto && dto.PaymentTimeoutAt ? dayjs(dto.PaymentTimeoutAt) : dayjs();\n }\n}\n\nexport interface IPaymentCompleteInfo {\n referenceNumber: string;\n cancel: boolean;\n}\n\nexport class PaymentCompleteInfo implements IPaymentCompleteInfo {\n referenceNumber: string;\n cancel: boolean;\n\n constructor(dto?: any) {\n this.referenceNumber = dto && dto.ReferenceNumber ? dto.ReferenceNumber : '';\n this.cancel = dto && dto.Cancel ? dto.Cancel : '';\n }\n}\n\nexport interface IPaymentCompleteResult {\n userMessage: string;\n userMessageDetails: string;\n debugMessage: string;\n isCompleted: boolean;\n isSuccess: boolean;\n isProcessing: boolean;\n}\n\nexport class PaymentCompleteResult {\n userMessage: string;\n userMessageDetails: string;\n debugMessage: string;\n isCompleted: boolean;\n isSuccess: boolean;\n isProcessing: boolean;\n\n constructor(dto?: any) {\n this.userMessage = dto && dto.UserMessage ? dto.UserMessage : '';\n this.debugMessage = dto && dto.DebugMessage ? dto.DebugMessage : '';\n this.userMessageDetails = dto && dto.UserMessageDetails ? dto.UserMessageDetails : '';\n this.isCompleted = dto && dto.IsCompleted ? dto.IsCompleted : false;\n this.isSuccess = dto && dto.IsSuccess ? dto.IsSuccess : false;\n this.isProcessing = dto && dto.IsProcessing ? dto.IsProcessing : false;\n }\n}\n","import * as React from 'react';\nimport { FC } from 'react';\nimport styled from 'styled-components';\n\ninterface IEventInfoItemProps extends IContainerProps {\n title: string;\n subtitle?: string;\n}\n\ninterface IContainerProps {\n sm?: boolean;\n themed?: boolean;\n icon?: 'location' | 'purse' | 'person' | 'calendar';\n}\n\nconst EventInfoItem: FC = ({ icon, title, themed, subtitle, sm }) => {\n return (\n \n {title}\n {subtitle && {subtitle}}\n \n );\n};\n\nconst Container = styled.div`\n display: flex;\n flex-direction: column;\n padding-left: 35px;\n position: relative;\n\n &:after {\n content: ${(props) => props.icon && '\"\"'};\n background: ${(props) => props.icon && `url(${props.theme.img.icons[props.icon]}) no-repeat`};\n background-size: cover;\n width: ${(props) => (props.sm ? '14px' : '20px')};\n height: ${(props) => (props.sm ? '14px' : '20px')};\n position: absolute;\n margin-left: ${(props) => (props.sm ? '-25px' : '-35px')};\n filter: ${(props) => !props.themed && 'brightness(0) invert(1)'};\n top: ${(props) => (props.sm ? '0' : '-3px')};\n }\n`;\n\nconst Title = styled.span`\n font-size: 14px;\n margin-bottom: 5px;\n font-family: ${(props) => props.theme.fonts.boldFont};\n`;\n\nconst Subtitle = styled.span`\n font-size: 12px;\n text-align: justify;\n font-family: ${(props) => props.theme.fonts.lightFont};\n color: ${(props) => props.theme.colors.textSecond};\n`;\n\nexport default EventInfoItem;\n","import React, { useEffect, useLayoutEffect, useState } from 'react';\nimport styled from 'styled-components';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { createTheme, Dialog, Skeleton, ThemeProvider } from '@mui/material';\nimport { useHistory, useParams } from 'react-router';\nimport { Ticket } from './ticket';\nimport { IGlobalStoreState } from '../../../store';\nimport { IBookStoreState } from '../../../store/book/types';\nimport { getEventById } from '../../../store/event/actions';\nimport { clearBook, initBook } from '../../../store/book/actions';\nimport { AlertType, KeyErrors } from '../../../store/enums';\nimport { Page, PageHeader } from '../../../components/UI';\nimport { distributionInit } from '../../../store/distribution/actions';\nimport { setResultInfo } from '../../../store/resultInformarion/actions';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\nimport { Routes } from '../../../store/routes';\nimport { Poster } from '../../../components/event';\n\nconst dialogTheme = createTheme({\n components: {\n MuiDialog: {\n styleOverrides: {\n paper: ({ theme }) => ({\n borderRadius: '15px 16px',\n background: '#1C1C1C',\n width: '410px',\n padding: '13px 20px 16px 20px',\n filter: 'drop-shadow(0px 50px 80px rgba(0, 0, 0, 0.7))',\n [theme.breakpoints.down('sm')]: {\n width: '322px',\n padding: '13px 15px 16px 15px',\n },\n }),\n },\n },\n },\n});\n\nexport const ReferralPage = () => {\n const dispatch = useDispatch();\n const history = useHistory();\n\n const event = useSelector((state) => state.book);\n const book = useSelector((state) => state.book);\n const isRedirection = useSelector((state) => state.app.isRedirection);\n const isFinalized = useSelector((state) => state.app.isFinalized);\n\n const [isLoading, setIsLoading] = useState(true);\n\n const { eventSlug, sectorSlug, distributorSlug, rowSlug, tickets, token } = useParams<{\n eventSlug: string;\n sectorSlug: string;\n rowSlug: string;\n tickets: string;\n token: string;\n distributorSlug: string;\n }>();\n\n const { getResultStatusRoute } = useRoutesHelper();\n\n useLayoutEffect(() => {\n if (isRedirection || !isFinalized) {\n return;\n }\n dispatch(clearBook());\n }, []);\n\n useEffect(() => {\n if (distributorSlug) {\n dispatch(distributionInit(distributorSlug));\n }\n if (!eventSlug) {\n history.push(Routes.Main);\n return;\n }\n // @ts-ignore\n dispatch(getEventById(eventSlug, null, token)).then((event) => {\n if (!event || !event.slug) {\n dispatch(clearBook());\n dispatch(\n setResultInfo({\n type: AlertType.Error,\n key: KeyErrors.EventNotFound,\n title: 'Alert.SomethingWentWrong',\n message: 'Alert.CheckLinkNoEventFound',\n })\n );\n history.replace(getResultStatusRoute(AlertType.Error, KeyErrors.EventNotFound));\n return;\n }\n dispatch(initBook(event, sectorSlug, book.seats));\n });\n setIsLoading(false);\n }, [isFinalized]);\n\n useEffect(() => {\n const element = document.getElementById('root');\n element.style.filter = 'blur(2px)';\n\n return () => {\n element.removeAttribute('style');\n };\n }, []);\n\n const eventDetails = event?.event;\n\n return (\n \n
\n \n
\n \n \n {isLoading && }\n {!isLoading && }\n \n \n
\n );\n};\n\nconst Header = styled(PageHeader)`\n justify-content: flex-end;\n max-height: 60vh;\n`;\n","import { IEventDetailsStoreState } from '../../../../store/event/eventDetails/EventDetailsStoreState';\nimport { EventHelper } from '../../../../helpers';\nimport { isEmpty } from 'lodash';\nimport { Button, PageFooter } from '../../../../components/UI';\nimport * as React from 'react';\nimport { FC, memo, MouseEvent } from 'react';\nimport { startDistribute } from '../../../../store/event/actions';\nimport { Routes } from '../../../../store/routes';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { IGlobalStoreState } from '../../../../store';\nimport { IEventStoreState } from '../../../../store/event/types';\nimport { useTranslation } from 'react-i18next';\nimport { useHistory } from 'react-router';\nimport { useRoutesHelper } from '../../../../helpers/routesHelper';\n\ntype EventDetailsFooterType = {\n event: IEventDetailsStoreState;\n isInitializing: boolean;\n};\n\nexport const EventDetailsFooter: FC = memo(({ event, isInitializing }) => {\n const { t } = useTranslation();\n const history = useHistory();\n const dispatch = useDispatch();\n\n const { getBookRoute } = useRoutesHelper();\n\n const isAuthorized = useSelector((state) => state.app.isAuthorized);\n const userEvents = useSelector>((state) => state.userEvents);\n\n if (!event) {\n return null;\n }\n const isDomain = isEmpty(event.domains);\n\n const isDistributed = EventHelper.isEventDetailsDistributed(event, userEvents);\n const sellTicketButtonTitle = isDistributed ? t('Event.SellTicket') : t('Event.BecomeDistributor');\n const showDistributionButton = isAuthorized && !isInitializing && event.isDistributionAvailable;\n const isBookingEnabled = !event.notAvailableForPurchase;\n\n const getBookTicketsButtonTitle = () => {\n let bookTicketsButtonTitle = t('Event.BuyTicket');\n\n if (!isBookingEnabled) {\n bookTicketsButtonTitle = t(event.notAvailableForPurchaseReason);\n }\n if (isDomain) {\n bookTicketsButtonTitle = t('Event.TemporarilyUnavailable');\n }\n\n return bookTicketsButtonTitle;\n };\n\n const bookTicketsButtonTitle = getBookTicketsButtonTitle();\n\n const handleOnBookClick = (e: MouseEvent) => {\n if (e) {\n e.preventDefault();\n }\n history.push(getBookRoute(event.slug, null));\n };\n\n const handleOnDistributeClick = (e: MouseEvent, event: IEventDetailsStoreState) => {\n if (e) {\n e.preventDefault();\n }\n\n if (EventHelper.isEventDetailsDistributed(event, userEvents)) {\n history.push(getBookRoute(event.slug, null, null, null, null, true));\n return;\n }\n\n (async () => dispatch(startDistribute(event.slug)))().then(() => {\n history.push(Routes.UserEvents);\n });\n };\n\n return (\n \n \n {showDistributionButton && (\n \n )}\n \n );\n});\n","import { Reducer } from 'redux';\n\nimport { IHeaderStoreState, HeaderStoreState, HeaderActionTypes } from './types';\n\nconst headerReducer: Reducer = (\n state: IHeaderStoreState = new HeaderStoreState(),\n action,\n): IHeaderStoreState => {\n switch (action.type) {\n case HeaderActionTypes.HEADER_SHOW:\n return { ...state, showAdButton: true };\n case HeaderActionTypes.HEADER_HIDE:\n return { ...state, showAdButton: false };\n case HeaderActionTypes.PLAYER_SHOW:\n return { ...state, showPlayer: true };\n case HeaderActionTypes.PLAYER_HIDE:\n return { ...state, showPlayer: false };\n case HeaderActionTypes.CITYSELECTOR_SHOW:\n return { ...state, showCitySelector: true };\n case HeaderActionTypes.CITYSELECTOR_HIDE:\n return { ...state, showCitySelector: false };\n default:\n return state;\n }\n};\n\nexport default headerReducer;\n","import * as React from 'react';\nimport { connect } from 'react-redux';\nimport { withRouter } from 'react-router';\nimport styled from 'styled-components';\n\nimport { Page, PageContent, UserAgreementLink } from '../../../components/UI';\nimport { EventCheckoutHeader } from '../../../components/event';\nimport {\n EmailForm,\n IEmailForm,\n PaymentForm,\n IPaymentForm,\n CheckoutForm,\n FormInfo,\n FormError,\n} from '../../../components/forms';\nimport { Utils, AnalyticService } from '../../../services';\nimport { checkoutProcess, checkoutSetEmail, checkoutInit, checkCurrentCheckout } from '../../../store/checkout/actions';\nimport { CheckoutHelper, EventHelper } from '../../../helpers';\nimport { ICheckoutStoreState } from '../../../store/checkout/types';\nimport { IBookStoreState } from '../../../store/book/types';\nimport { IErrorStoreState } from '../../../store/app/types';\nimport { IUserStoreState } from '../../../store/user/types';\nimport { PaymentProcessResult } from '../../../store/payment/types';\nimport { IGlobalStoreState } from '../../../store';\nimport { IDistributionStoreState } from '../../../store/distribution/types';\nimport { BookStatus } from '../../../store/enums';\nimport { Translation, withTranslation } from 'react-i18next';\nimport RouteService from '../../../services/routeService';\nimport { StripeCheckoutForm } from '../../../components/forms/stripeCheckoutForm';\nimport { motion } from 'framer-motion';\nimport { FreedomPayForm } from '../../../components/forms/freedomPayForm';\n\ninterface ICheckoutPageProps {\n eventSlug: string;\n checkout: ICheckoutStoreState;\n isInitializing: boolean;\n sectorSlug: string;\n rowSlug: string;\n tickets: number;\n book: IBookStoreState;\n error: IErrorStoreState;\n user: IUserStoreState;\n isAuthorized: boolean;\n distribution: IDistributionStoreState;\n token: string;\n\n go: (url: string) => void;\n setEmail: (email: string) => void;\n checkoutProcess: (usePoints?: boolean) => Promise;\n checkoutInit: (usePoints?: boolean) => Promise;\n checkCheckout: () => Promise;\n t: (key: string) => string;\n}\n\ninterface ICheckoutPageState {\n errors?: any;\n redirectUrl?: string;\n}\n\nclass CheckoutPage extends React.PureComponent {\n private routeSrv = new RouteService();\n private checkoutSteps: number = 2;\n private analyticSrv = new AnalyticService();\n\n constructor(props: ICheckoutPageProps) {\n super(props);\n\n this.state = {\n errors: null,\n redirectUrl: null,\n };\n }\n\n componentWillMount() {\n this.init(this.props);\n }\n\n componentWillReceiveProps(nextProps: ICheckoutPageProps) {\n const isErrorChanged = !Utils.isEqual(this.props.error, nextProps.error);\n const isEmailChanged = this.props.checkout.email !== nextProps.checkout.email;\n const IsInProcess =\n CheckoutHelper.getIsProcessed(this.props.checkout) && CheckoutHelper.getIsInProcess(nextProps.checkout);\n const isAvailableForProcessing =\n isEmailChanged && CheckoutHelper.getIsAvailableForProcessing(nextProps.checkout) && !nextProps.isAuthorized;\n if (IsInProcess) this.init(nextProps);\n if (isErrorChanged) this.setState({ errors: { form: nextProps.error } });\n if (CheckoutHelper.isRedirectingMethod(nextProps.checkout)) {\n this.setState({ redirectUrl: nextProps.checkout.process.paymentRedirectUrl });\n } else if (isAvailableForProcessing) {\n this.handlePaymentFormSubmit(nextProps.checkout.usePoints);\n }\n }\n\n componentWillUpdate(nextProps: ICheckoutPageProps) {\n this.checkoutSteps = !!nextProps.user && !!nextProps.user.email ? 3 : 2;\n }\n\n render() {\n const checkoutModel = this.props.checkout;\n const isInitiated = CheckoutHelper.getIsInitiated(checkoutModel);\n if (!isInitiated || this.props.isInitializing || !checkoutModel) return null;\n\n const isEmailSet = CheckoutHelper.getIsEmailSet(checkoutModel);\n const isProcessed = CheckoutHelper.getIsProcessed(checkoutModel);\n const event = checkoutModel.init.event;\n\n return (\n \n {(t) => (\n \n \n {isInitiated && !isEmailSet && this.renderEmailForm(checkoutModel)}\n {isEmailSet && !isProcessed && this.renderUsePointsSelector(checkoutModel)}\n {isProcessed && this.renderPaymentForm(checkoutModel)}\n {this.renderFooter()}\n \n )}\n \n );\n }\n\n private renderFooter() {\n return (\n
\n
{this.renderError()}
\n
\n );\n }\n\n private renderEmailForm(checkoutModel: ICheckoutStoreState) {\n const distributionInfo = CheckoutHelper.getDistributionInfo(checkoutModel, this.props.distribution);\n const email = this.props.user ? this.props.user.email : checkoutModel.email;\n const title = this.props.isAuthorized\n ? this.props.t('Checkout.BookTicketsNoteAuthorized')\n : this.props.t('Checkout.BookTicketsNote');\n return (\n \n {(t) => (\n \n
\n {t('Checkout.Step')} 1 {t('Checkout.Of')} {this.checkoutSteps}\n
\n {title}\n this.handleEmailFormSubmit(formModel)}\n />\n \n \n \n \n
By paying, you agree to the terms and conditions
\n
\n
\n
\n
\n
\n )}\n
\n );\n }\n\n private renderUsePointsSelector(checkoutModel: ICheckoutStoreState) {\n const isRedirecting = !!this.state.redirectUrl;\n if (isRedirecting) window.location.href = this.state.redirectUrl;\n return (\n \n {(t) => (\n \n
\n {t('Checkout.Step')} 2 {t('Checkout.Of')} {this.checkoutSteps}\n
\n {t<string>('Checkout.PayByCard')}\n {!isRedirecting && this.props.isAuthorized && (\n this.handleUsePointsChange(usePoints)}\n onSubmit={(formModel: IPaymentForm) => {\n if (formModel) this.handlePaymentFormSubmit(formModel.usePoints);\n }}\n />\n )}\n
\n )}\n
\n );\n }\n\n private renderPaymentForm(checkoutModel: ICheckoutStoreState) {\n const step = this.props.isAuthorized && !!this.props.user && !!this.props.user.email ? 3 : 2;\n return (\n \n {(t) => (\n \n
\n {t('Checkout.Step')} {step} {t('Checkout.Of')} {this.checkoutSteps}\n
\n {t<string>('Checkout.PayByCard')}\n {this.renderCheckoutContent(checkoutModel)}\n
\n )}\n
\n );\n }\n\n private renderCheckoutContent(checkoutModel: ICheckoutStoreState) {\n const isRedirecting = !!this.state.redirectUrl;\n const needForm = CheckoutHelper.getIsNeedPaymentForm(checkoutModel);\n if (isRedirecting) window.location.href = this.state.redirectUrl;\n\n return (\n \n {(t) => (\n \n {!isRedirecting && needForm && checkoutModel.process.stripeProvider === 3 ? (\n \n ) : (\n \n )}\n {isRedirecting && (\n \n {t('Checkout.PaymentRedirectionMessage')}\n \n )}\n \n )}\n \n );\n }\n\n private renderError() {\n const stateErrors = this.state.errors;\n const errorMessage = stateErrors?.form?.message;\n return !!stateErrors && {errorMessage};\n }\n\n private handleEmailFormSubmit(formModel: IEmailForm) {\n if (formModel) {\n this.props.setEmail(formModel.email);\n this.analyticSrv.trackEvent('InitiateCheckout');\n }\n }\n\n private handlePaymentFormSubmit(usePoints: boolean) {\n this.props.checkoutProcess(usePoints);\n this.analyticSrv.trackEvent('PurchaseProcess');\n }\n\n private handleUsePointsChange(usePoints: boolean) {\n this.props.checkoutInit(usePoints);\n }\n\n private init(props: ICheckoutPageProps) {\n const book = props.book;\n const checkout = props.checkout;\n if (CheckoutHelper.getIsProcessed(checkout) && !CheckoutHelper.getIsCompleted(checkout)) {\n props.checkCheckout();\n return;\n }\n if (!book || !book.event) {\n props.go(this.routeSrv.getBookRoute(props.eventSlug, null, props.sectorSlug, props.rowSlug, props.tickets));\n return;\n } else if (book.event.notAvailableForPurchase) {\n props.go(this.routeSrv.getEventRoute(book.event.slug));\n return;\n } else {\n //ToDo: interfered with the correct operation of the route to the schemes\n // props.go(this.routeSrv.getCheckoutRouteFromBook(book));\n }\n if (!CheckoutHelper.getIsInitiated(checkout)) {\n props.go(this.routeSrv.getBookRouteFromBook(book));\n return;\n } else if (props.checkout.isRedoing) {\n return;\n } else if (CheckoutHelper.getIsAvailableForProcessing(checkout) && !this.props.isAuthorized) {\n this.handlePaymentFormSubmit(checkout.usePoints);\n } else if (CheckoutHelper.getIsInProcess(checkout)) {\n this.props.go(this.routeSrv.getBookResultRoute(BookStatus.InProcess));\n return;\n } else if (CheckoutHelper.getIsCompleted(checkout)) {\n this.props.go(this.routeSrv.getBookResultRoute(BookStatus.Success));\n return;\n }\n }\n}\n\nconst Header: any = styled.h2`\n font-size: 14px;\n margin: 0 0 10px 0;\n text-align: center;\n font-family: ${(props) => props.theme.fonts.boldFont};\n`;\n\nconst RedirectWrapper = styled.div`\n flex: 1;\n align-items: center;\n justify-content: center;\n`;\n\nconst RedirectTitle = styled(Header as any)``;\n\nconst Title = styled.h1`\n font-size: 14px;\n text-align: center;\n`;\n\nconst Warning = styled(FormInfo as any)`\n padding: 10px 0 0 0;\n`;\n\nconst ErrorWrapper = styled(FormError as any)`\n text-align: center;\n width: 100%;\n`;\n\nconst Footer = styled.footer``;\n\nconst mapStateToProps = (state: IGlobalStoreState, ownProps: any) => {\n return {\n eventSlug: ownProps.match && ownProps.match.params && ownProps.match.params.eventSlug,\n sectorSlug: ownProps.match && ownProps.match.params && ownProps.match.params.sectorSlug,\n rowSlug: ownProps.match && ownProps.match.params && ownProps.match.params.rowSlug,\n tickets: ownProps.match && ownProps.match.params && +ownProps.match.params.tickets,\n checkout: state.checkout,\n isInitializing: state.app.isInitializing,\n book: state.book,\n error: state.app.error,\n user: state.user,\n isAuthorized: state.app.isAuthorized,\n distribution: state.distribution,\n token: ownProps.match && ownProps.match.params && ownProps.match.params.token,\n };\n};\n\nconst mapDispatchToProps = (dispatch: any, ownProps: any) => ({\n go: ownProps.history.push,\n setEmail: (email: string) => dispatch(checkoutSetEmail(email)),\n checkoutProcess: (usePoints?: boolean) => dispatch(checkoutProcess(usePoints)),\n checkoutInit: (usePoints?: boolean) => dispatch(checkoutInit(usePoints, false)),\n checkCheckout: () => dispatch(checkCurrentCheckout()),\n});\n\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(withTranslation()(CheckoutPage)));\n\nconst AMenuBlock = styled(motion.section as any)``;\n\nconst MenuBlock = styled(AMenuBlock as any)`\n color: ${(props) => props.theme.colors.text};\n font-size: 14px;\n margin-bottom: ${(props: any) => !props.footer && '25px'};\n margin-top: 10px;\n flex: ${(props: any) => props.grow && 1};\n`;\n\nconst List = styled.ul`\n list-style: none;\n margin: 0;\n padding: 0;\n`;\n\nconst ListItem = styled.li`\n &:not(:last-child) {\n margin-bottom: 10px;\n }\n`;\n","import { action } from 'typesafe-actions';\nimport { Dispatch } from 'redux';\nimport dayjs from 'dayjs';\n\nimport { DistributionActionTypes, IDistributionStoreState, DistributionStoreState } from './types';\nimport Constants from '../constants';\nimport { IGlobalStoreState } from '..';\n\nconst init = (payload: IDistributionStoreState) => action(DistributionActionTypes.DISTRIBUTION_INIT, payload);\nconst clear = () => action(DistributionActionTypes.DISTRIBUTION_CLEAR);\n\nexport const distributionInit =\n (distributorSlug: string) =>\n (dispatch: Dispatch, getState: () => IGlobalStoreState): void => {\n const state = getState();\n const isDistributorSlugExisted = !!state.distribution && state.distribution.distributorSlug === distributorSlug;\n if (!distributorSlug || isDistributorSlugExisted) {\n return;\n }\n const expirationDate = dayjs().add(Constants.DistributionExpirationMins, 'm');\n const distribution = new DistributionStoreState(distributorSlug, expirationDate);\n dispatch(init(distribution));\n };\n\nexport const distributionClear =\n () =>\n (dispatch: Dispatch): void => {\n dispatch(clear());\n };\n","import * as React from 'react';\nimport { connect } from 'react-redux';\nimport { withRouter } from 'react-router-dom';\n\nimport { IGlobalStoreState } from '../../../store';\nimport { Page, PageContent } from '../../../components/UI';\nimport { AlertType, KeyErrors } from '../../../store/enums';\nimport { boughtTicket, getTicketById } from '../../../store/user/actions';\nimport { IErrorStoreState } from '../../../store/app/types';\nimport { EventHelper } from '../../../helpers';\nimport { EventSellHeader } from '../../../components/event/eventSellHeader';\nimport { PurchaseForm } from '../../../components/forms/purchaseForm';\nimport { withTranslation } from 'react-i18next';\nimport { IProfileTicketStoreState } from '../../../store/ticket/ProfileTicketStoreState';\nimport { setResultInfo } from '../../../store/resultInformarion/actions';\nimport { ResultInfoType } from '../../../store/resultInformarion/types';\nimport RouteService from '../../../services/routeService';\n\ninterface IUserTicketPurchasePageProps {\n masterTicketId: string;\n ticketId: string;\n isFinalized: boolean;\n isAuthorized: boolean;\n error: IErrorStoreState;\n\n getTicketById: (masterTicketId: string, ticketId?: string) => Promise;\n boughtTicket: (ticketId: string) => Promise;\n go: (url: string) => void;\n setResultInfo: (config: ResultInfoType) => void;\n t: (key: string) => string;\n}\n\ninterface IUserTicketPurchasePageState {\n ticket: IProfileTicketStoreState;\n errors: any;\n resendInSecs: number;\n}\n\nclass UserTicketPurchasePage extends React.Component {\n private routeSrv = new RouteService();\n\n constructor(props: IUserTicketPurchasePageProps) {\n super(props);\n\n this.state = {\n ticket: null,\n errors: null,\n resendInSecs: 0,\n };\n }\n\n componentWillMount() {\n if (this.props.isFinalized) {\n this.initTicket(this.props.masterTicketId, this.props.ticketId);\n }\n }\n\n componentWillReceiveProps(nextProps: IUserTicketPurchasePageProps) {\n /*const isFinalizedChanged = this.props.isFinalized !== nextProps.isFinalized && nextProps.isFinalized;\n const isIdChanged = this.props.masterTicketId !== nextProps.masterTicketId || this.props.ticketId !== nextProps.ticketId;\n const isErrorChanged = !Utils.isEqual(this.props.error, nextProps.error);\n if (isIdChanged || isFinalizedChanged) this.initTicket(nextProps.masterTicketId, nextProps.ticketId);\n if (!nextProps.isAuthorized) this.props.go(this.routeSrv.getProfileRoute());\n if (isErrorChanged) this.setState({ errors: { form: nextProps.error } });*/\n }\n\n render() {\n const ticket = this.state.ticket;\n if (!this.props.isFinalized || !ticket || !ticket.masterTicketId) {\n return null;\n }\n const event = ticket.event;\n return (\n \n \n {this.renderCheckoutContent()}\n \n );\n }\n\n private renderCheckoutContent() {\n return {};\n }\n\n private initTicket(masterTicketId: string, ticketId?: string) {\n if (!masterTicketId) {\n return;\n }\n this.props.boughtTicket(ticketId).then((ticket) => {\n if (!ticket || !ticket.masterTicketId) {\n this.props.setResultInfo({\n type: AlertType.Error,\n key: KeyErrors.TicketNotFound,\n title: 'Alert.WaitForTheServerToCompleteThePayment',\n });\n this.props.go(this.routeSrv.getResultStatusRoute(AlertType.Error, KeyErrors.TicketNotFound));\n return;\n }\n this.setState({ ticket });\n });\n }\n}\n\nconst mapStateToProps = (state: IGlobalStoreState, ownProps: any) => {\n return {\n masterTicketId: ownProps.match && ownProps.match.params && ownProps.match.params.masterTicketId,\n ticketId: ownProps.match && ownProps.match.params && ownProps.match.params.ticketId,\n isFinalized: state.app.isFinalized,\n error: state.app.error,\n isAuthorized: state.app.isAuthorized,\n };\n};\n\nconst mapDispatchToProps = (dispatch: any, ownProps: any) => ({\n getTicketById: (masterTicketId: string, ticketId?: string) => dispatch(getTicketById(masterTicketId, ticketId)),\n boughtTicket: (ticketId: string) => dispatch(boughtTicket(ticketId)),\n go: ownProps.history.replace,\n setResultInfo: (config: ResultInfoType) => dispatch(setResultInfo(config)),\n});\n\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(withTranslation()(UserTicketPurchasePage)));\n","import React, { FC, memo, useCallback, useEffect, useState } from 'react';\nimport { Skeleton } from '@mui/material';\nimport { makeStyles } from 'tss-react/mui';\nimport useApi from '../../services/apiService';\nimport PanAndZoomImage from '../../helpers/PanAndZoomImage/PanAndZoomImage';\nimport { AppTheme } from '../../settings/appTheme';\nimport { IVenueSectorStoreState } from '../../store/ticket/types';\nimport { ISchema, IVenueStoreState } from '../../store/event/types';\n\ntype StyleProps = {\n height: string;\n};\n\nconst useStyles = makeStyles()((theme, { height }) => ({\n skeletonWrapper: {\n display: 'flex',\n justifyContent: 'center',\n zIndex: 0,\n },\n placeSelectorWrapper: {\n display: 'flex',\n flexDirection: 'column',\n },\n title: {\n fontSize: '14px',\n margin: '0 0 20px 0',\n },\n schema: {\n textAlign: 'center',\n transition: 'height 0.5s ease-out',\n height,\n willChange: 'height',\n '& svg': {\n maxWidth: '100%',\n maxHeight: '100%',\n '& text': {\n fontFamily: `${AppTheme.fonts.boldFont} !important`,\n userSelect: 'none',\n },\n '$ .scene': {\n text: {\n fill: `${AppTheme.colors.accent}`,\n },\n },\n '&.disabled, .sector': {\n fill: '#313131',\n color: `${AppTheme.colors.bg}`,\n },\n '& .sector': {\n '& .sector-schema': {\n display: 'none',\n text: {\n fill: 'black',\n },\n },\n '&.available': {\n fill: 'rgb(102, 102, 102)',\n cursor: 'pointer',\n '&:hover': {\n fill: `${AppTheme.colors.accent}`,\n },\n },\n '&.selected': {\n cursor: 'unset',\n fill: `${AppTheme.colors.accent}`,\n '& .sector-schema': {\n display: 'block',\n },\n },\n },\n },\n },\n}));\n\nexport const SchemaSectorSelector: FC = memo(\n ({ venue, sectors, selectedSector, onChange }) => {\n const { eventsApi } = useApi();\n\n const [scheme, setScheme] = useState(null);\n const [selectedSectorSlug, setSelectedSectorSlug] = useState(selectedSector);\n const [isLoading, setIsLoading] = useState(true);\n\n const heightStyle = {\n height: selectedSectorSlug ? '30vh' : '50vh',\n };\n\n const { classes } = useStyles(heightStyle);\n\n const handleSectorClick = useCallback(\n (e: any) => {\n const sectorSlug = e.target.closest('.available').id;\n if (sectorSlug && sectors.some((q) => q.slug === sectorSlug) && onChange) {\n onChange(sectorSlug);\n setSelectedSectorSlug(sectorSlug);\n }\n },\n [onChange, sectors]\n );\n\n useEffect(() => {\n if (!venue) {\n return;\n }\n\n (async () => {\n const response = await eventsApi.getVenueSchema({\n venueSlug: venue.slug,\n schemaVersion: venue.schema.version,\n });\n setScheme(response);\n setIsLoading(false);\n })();\n }, [venue]);\n\n useEffect(() => {\n if (!sectors) {\n return;\n }\n for (const sector of sectors) {\n const sectorElement = document.getElementById(sector.slug);\n if (sectorElement) {\n sectorElement.classList.add('available');\n sectorElement.addEventListener('click', (e) => handleSectorClick(e));\n }\n }\n\n return () => {\n for (const sector of sectors) {\n const sectorElement = document.getElementById(sector.slug);\n if (sectorElement) {\n sectorElement.removeEventListener('click', handleSectorClick);\n }\n }\n };\n }, [selectedSector, scheme?.schema]);\n\n useEffect(() => {\n if (!sectors) {\n return;\n }\n for (const sector of sectors.filter((s) => !!s)) {\n const sectorElement = document.getElementById(sector.slug);\n if (sectorElement) {\n if (sector.slug === selectedSectorSlug) {\n sectorElement.classList.add('selected');\n } else {\n sectorElement.classList.remove('selected');\n }\n }\n }\n }, [selectedSectorSlug]);\n\n return (\n
\n {isLoading && (\n
\n \n
\n )}\n {!isLoading && (\n \n
\n \n )}\n
\n );\n }\n);\n\ntype SchemaSectorSelectorProps = {\n venue: IVenueStoreState;\n sectors: Array;\n selectedSector?: string;\n\n onChange?: (sectorSlug: string) => void;\n};\n","import {\n Box,\n ButtonBase,\n Chip,\n createTheme,\n Dialog,\n Grid,\n Skeleton,\n SxProps,\n Theme,\n ThemeProvider,\n Typography,\n} from '@mui/material';\nimport { makeStyles } from 'tss-react/mui';\nimport React, { FC, memo, useCallback, useEffect, useState } from 'react';\nimport { DesktopDatePicker, LocalizationProvider } from '@mui/x-date-pickers';\nimport LocationOnOutlinedIcon from '@mui/icons-material/LocationOnOutlined';\nimport { useTranslation } from 'react-i18next';\nimport ruLocale from 'date-fns/locale/ru';\nimport enLocale from 'date-fns/locale/en-US';\nimport { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';\nimport useApi from '../../../services/apiService';\nimport { RenderDays } from './renderDays';\nimport { CategoriesAccordion } from './categoriesAccordion';\nimport { IEventCategory } from '../../../store/event/types';\nimport { AppTheme } from '../../../settings/appTheme';\nimport { Pages } from '../../../store/enums';\nimport { useRouteService } from '../../../helpers/customHooks';\n\nconst darkTheme = createTheme({\n palette: {\n mode: 'dark',\n primary: {\n main: '#FFBF00',\n light: '#000',\n dark: '#000',\n contrastText: '#fff',\n },\n },\n});\n\nconst useStyles = makeStyles()((theme: Theme) => ({\n selectDateButton: {\n position: 'relative',\n height: '30px',\n minWidth: '110px',\n borderRadius: '20px',\n '&:hover, &$focusVisible': {\n zIndex: 1,\n '& $imageBackdrop': {\n opacity: 0.25,\n },\n },\n },\n selectDateImageBackdrop: {\n borderRadius: '24px',\n border: '1px solid rgb(107, 107, 107, 0.6)',\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n transition:\n 'background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms',\n '&:hover': {\n backgroundColor: 'rgba(255, 255, 255, 0.08)',\n },\n },\n selectDateImageButton: {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: '24px',\n },\n selectDateImageTitle: {\n borderRadius: '24px',\n position: 'relative',\n padding: `${theme.spacing(0)} ${theme.spacing(1.75)}`,\n fontSize: '12px',\n lineHeight: '12px',\n fontFamily: 'inherit',\n zIndex: -1,\n },\n box: {\n overflow: 'scroll',\n height: '90px',\n overflowY: 'hidden',\n '&::-webkit-scrollbar': {\n height: 8,\n },\n },\n gridList: {\n flexWrap: 'nowrap',\n // Promote the list into his own layer on Chrome. This cost memory but helps keeping high FPS.\n transform: 'translateZ(0)',\n margin: '0px',\n },\n skeletonItem: {\n borderRadius: '16px',\n width: '33px',\n height: '44px',\n marginRight: 5,\n },\n currentMonthDatePickerContainer: {\n display: 'flex',\n alignItems: 'center',\n minHeight: '30px',\n marginBottom: 20,\n position: 'relative',\n },\n skeletonContainer: {\n display: 'flex',\n flexDirection: 'column',\n },\n skeleton: {\n display: 'flex',\n marginTop: 15,\n },\n chipCity: {\n display: 'flex',\n marginLeft: 'auto',\n },\n avatarLocation: {\n color: '#FFF',\n height: '16px !important',\n width: '16px !important',\n },\n chipLocationInfo: {\n border: '1px solid rgb(107, 107, 107, 0.6)',\n borderRadius: 35,\n height: 30,\n width: 110,\n overflow: 'auto',\n textOverflow: 'ellipsis',\n fontSize: 12,\n color: 'white',\n lineHeight: '12px',\n fontFamily: AppTheme.fonts.regularFont,\n display: 'flex',\n justifyContent: 'space-around',\n '& .MuiChip-deleteIcon': {\n color: 'rgba(255, 255, 255, 0.26)',\n '&:hover': {\n color: 'rgba(255, 255, 255, 0.4)',\n },\n },\n },\n backdrop: {\n zIndex: 1,\n },\n}));\n\nconst popperSx: SxProps = {\n top: '50%!important',\n left: '50%!important',\n marginTop: '-129px',\n marginLeft: '-160px',\n width: '100%',\n height: '100%',\n '& .MuiPaper-root': {\n boxShadow:\n '0px 11px 15px -7px rgb(0 0 0 / 20%), 0px 24px 38px 3px rgb(0 0 0 / 14%), 0px 9px 46px 8px rgb(0 0 0 / 12%)',\n background: '#424242',\n color: 'white',\n position: 'absolute',\n transformOrigin: 'center',\n },\n '& .MuiPickersDay-root': {\n backgroundColor: '#424242',\n color: 'white',\n },\n '& .MuiTypography-root': {\n color: 'rgba(255, 255, 255, 0.5)',\n },\n '& .MuiSvgIcon-root': {\n color: 'white',\n },\n '& .MuiButtonBase-root.MuiPickersDay-root.Mui-selected': {\n backgroundColor: '#FFBF00',\n },\n '& .MuiButtonBase-root-MuiPickersDay-root:not(.Mui-selected)': {\n border: 'none',\n },\n};\n\nexport const DatePicker: FC = memo(\n ({ selectedDate, city, onDateChanged, handleDelete, categories, onCategoryChange }) => {\n const currentDay = new Date();\n const skeletonArray = Array.from(new Array(20));\n const { classes } = useStyles();\n\n const [dates, setDates] = useState([]);\n const [isLoading, setIsLoading] = useState(true);\n const [baseDate, setBaseDate] = useState(currentDay);\n const [open, setOpen] = useState(false);\n\n const { eventsApi } = useApi();\n const { i18n, t } = useTranslation();\n const { isActivePage } = useRouteService();\n\n const isCategoryPage = isActivePage(Pages.Categories);\n\n const localeMap = {\n en: enLocale,\n ru: ruLocale,\n };\n\n useEffect(() => {\n setIsLoading(true);\n\n (async () => {\n const dates = await eventsApi.getDatepickerDates(baseDate);\n setDates(dates);\n\n onDateChanged(baseDate);\n\n setIsLoading(false);\n })();\n }, [baseDate]);\n\n const handleClickOpen = () => {\n setOpen((open) => !open);\n };\n\n const handleClickClose = () => {\n setOpen(false);\n };\n\n const RenderInput = useCallback(\n () => (\n \n \n \n \n {t('Dashboard.ChooseDate')}\n \n \n \n ),\n []\n );\n\n const renderSkeleton = (\n
\n \n
\n {skeletonArray.map((item, idx) => (\n \n \n \n ))}\n
\n
\n );\n\n return (\n <>\n
\n \n \n (\n \n ),\n }}\n open={open}\n onChange={(date: Date | null) => {\n setBaseDate(date);\n onDateChanged(date);\n }}\n onClose={handleClickClose}\n PopperProps={{ sx: popperSx }}\n renderInput={(params) => }\n />\n \n \n\n {!isCategoryPage && }\n
\n {city && (\n }\n label={city}\n onDelete={handleDelete}\n variant={'outlined'}\n />\n )}\n
\n
\n \n \n {isLoading ? (\n renderSkeleton\n ) : (\n \n )}\n \n \n \n );\n }\n);\n\ntype DatePickerType = {\n onDateChanged: (date: Date) => void;\n city?: string;\n handleDelete?: () => void;\n selectedDate?: Date;\n categories?: IEventCategory[];\n onCategoryChange?: (genre: number) => void;\n};\n","import React, { FC, memo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport styled from 'styled-components';\nimport { Price, PriceTitle } from '../../book';\nimport { IEventStoreState, ISeatStoreState } from '../../../../store/event/types';\n\nexport const TicketsInfo: FC = memo(({ seats, event }) => {\n const { t } = useTranslation();\n\n if (!seats.length) return null;\n\n const defaultPaymentMethod = event.paymentMethods && event.paymentMethods.length > 0 ? event.paymentMethods[0] : null;\n\n let total = 0;\n let currency: string;\n\n seats.forEach((ticket) => {\n event.sectors.forEach((sector) => {\n const countTickets = sector.ticketQuotas.find((st) => st.id === ticket.quotaId);\n if (countTickets) {\n total += countTickets.price;\n currency = countTickets.currency;\n }\n });\n });\n\n if (defaultPaymentMethod.useConvertion) {\n total = Math.round(total * defaultPaymentMethod.convertionRate * 100) / 100;\n currency = defaultPaymentMethod.convertionCurrency;\n }\n return (\n <>\n \n {t('WidgetBook.SelectedTickets')}\n {seats.map((ticket) => {\n const sector = event.sectors.find((x) => x.slug === ticket.sectorSlug);\n const quota = sector.ticketQuotas.find((x) => x.id === ticket.quotaId);\n const title = `${t('WidgetBook.Sector')} ${ticket.sectorTitle}${\n ticket.rowSlug ? `, ${t('WidgetBook.Row')} ${ticket.rowSlug}` : ``\n }${ticket.seatSlug ? `, ${t('WidgetBook.Seat')} ${ticket.seatSlug}.` : ``}`;\n const price = `${quota.price} ${quota.currency}`;\n return (\n \n \n {title}\n \n \n {price}\n \n \n );\n })}\n
\n \n \n \n {t('WidgetBook.Total')}\n \n \n \n {total} {currency}\n \n \n \n
\n \n );\n});\n\nconst CostTitle = styled.span`\n font-size: 12px;\n font-family: ${(props) => props.theme.fonts.lighterFont};\n`;\n\nconst TotalPriceTitle = styled(PriceTitle as any)`\n font-size: 14px;\n font-family: ${(props) => props.theme.fonts.regularFont};\n`;\nconst TotalPrice = styled(Price as any)`\n font-size: 14px;\n font-family: ${(props) => props.theme.fonts.boldFont};\n`;\n\nconst Table: any = styled.table`\n border-top: 1px solid ${(props) => props.theme.colors.accent};\n table-layout: fixed;\n width: 55%;\n margin-left: auto;\n min-width: 330px;\n`;\nconst TableRow = styled.tr``;\nconst TableData = styled.td``;\n\ntype TicketsInfoPropsType = {\n seats: ISeatStoreState[];\n event: IEventStoreState;\n};\n","import { Reducer } from 'redux';\nimport dayjs from 'dayjs';\n\nimport { IRegionalInfoStoreState, RegionalInfoStoreState, RegionActionTypes } from './types';\nimport Constants from '../constants';\n\nconst appReducer: Reducer = (\n state: IRegionalInfoStoreState = new RegionalInfoStoreState(),\n action\n) => {\n switch (action.type) {\n case RegionActionTypes.REGION_SET:\n return {\n ...state,\n ...action.payload,\n lastCheckedAt: dayjs().add(Constants.RegionalInfoExpiresInHours, 'hour'),\n };\n default:\n return state;\n }\n};\n\nexport default appReducer;\n","import React, { FC } from 'react';\nimport styled from 'styled-components';\nimport { useTranslation } from 'react-i18next';\nimport { Page, PageHeader, PageTitle, PageContent, StyledLink, PageFooter } from '../../../components/UI';\nimport { PaymentLogos } from '../../../components/payment';\nimport { EventHelper } from '../../../helpers';\nimport { DomainSetting } from '../../../settings/appSettings';\nimport { contactLabel } from '../../../settings/contactInfo';\nimport { DomainType } from '../../../store/enums';\n\nexport const ContactsPage = () => {\n const { t } = useTranslation();\n const { getContactsByDomain } = EventHelper;\n\n const contacts: contactsType = getContactsByDomain();\n const isEuDomain = location.host.includes(DomainSetting.Eu);\n const isDomainKz = EventHelper.getDomainType(window.location.host) === DomainType.Kz;\n\n const contactsTitle = isDomainKz ? 'Контакты' : t('Contacts.Contacts');\n const emailTitle = isDomainKz ? 'Почта' : t('Contacts.ContactEmail');\n const NameOfLegalEntityTitle = isDomainKz ? 'Юридическое лицо' : t('Contacts.NameOfLegalEntity');\n const RegisteredAddressTitle = isDomainKz ? 'Юридический адрес:' : 'Registered address:';\n const RegistrationNumberTitle = isDomainKz ? 'Регистрационный номер' : t('Contacts.RegistrationNumber');\n const ScheduleTitle = isDomainKz ? 'Время работы' : t('Contacts.Schedule');\n\n return (\n \n
\n {contactsTitle}\n
\n \n
\n \n \n \n \n {contacts.employerIdentificationNumber && (\n \n )}\n \n
\n
\n
\n \n
\n
\n );\n};\n\ninterface IContactItemProps {\n label?: string;\n description: string;\n type?: 'phone' | 'email';\n note?: string;\n renderNote?: () => JSX.Element;\n}\n\ntype contactsType = {\n email: string;\n nameOfTheLegalEntity: string;\n registeredAddress: string;\n registrationNumber: string;\n employerIdentificationNumber: string;\n schedule: string;\n};\n\nconst ContactItem: FC = ({ type, note, renderNote, label, description }) => {\n let information;\n switch (type) {\n case 'phone':\n information = (\n \n {description}\n \n );\n break;\n case 'email':\n information = (\n \n {description}\n \n );\n break;\n default:\n information = {description};\n break;\n }\n return (\n \n {label && }\n

{information}

\n {note && {note}}\n {!note && !!renderNote && renderNote()}\n
\n );\n};\n\nconst Header = styled(PageHeader)`\n min-height: unset;\n height: unset;\n text-align: left;\n padding: 20px 25px 0 25px;\n align-items: start;\n`;\n\nconst Address = styled.address`\n margin: 0 0 20px 0;\n font-size: 14px;\n font-style: normal;\n line-height: 18px;\n`;\n\nconst ContactItemContainer = styled.section`\n margin-bottom: 20px;\n`;\n\nconst Label = styled.h3`\n font-size: 14px;\n margin: 0;\n color: ${(props) => props.theme.colors.textSecond};\n font-family: ${(props) => props.theme.fonts.lighterFont};\n`;\n\nconst P = styled.p`\n margin: 10px 0;\n`;\n\nconst Footer = styled(PageFooter as any)`\n padding: 0 25px 25px 25px;\n`;\n\nexport default ContactsPage;\n","import { AlertType, KeyErrors, KeySuccess } from '../enums';\n\nexport type ResultInfoButtonConfigType = {\n title: string;\n callback: () => void;\n};\n\nexport type ResultInfoType = {\n type: AlertType;\n key: KeySuccess | KeyErrors;\n title?: string;\n message?: string;\n buttons?: Array;\n};\n\nexport enum ResultInfoActionTypes {\n RESULT_INFO_SHOW = '@@resultInfo/SHOW',\n RESULT_INFO_CLEAR = '@@resultInfo/CLEAR',\n}\n","import * as React from 'react';\nimport { FC } from 'react';\nimport styled from 'styled-components';\nimport dayjs from 'dayjs';\n\nimport { useTranslation } from 'react-i18next';\nimport { IEventStoreState } from '../../store/event/types';\nimport Constants from '../../store/constants';\nimport { RLink } from '../UI';\nimport { PopUp } from '../../store/animations';\nimport { useRouteService } from '../../helpers/customHooks';\n\ninterface IUserEventItemProps {\n event: IEventStoreState;\n}\n\nexport const UserEventItem: FC = ({ event }) => {\n const { t } = useTranslation();\n const { getBookRoute } = useRouteService();\n\n const paymentMethod = event.paymentMethods && event.paymentMethods.length > 0 ? event.paymentMethods[0] : null;\n\n return (\n \n \n \n \n
\n {event.title}\n
\n \n {dayjs(event.date).format(Constants.DateFormat)}\n {event.venue && {`${event.venue.city}, ${event.venue.title}`}}\n {paymentMethod && (\n \n {t('MyEvents.YourCommission')} {paymentMethod.comission * 100}%\n \n )}\n \n
\n {t('MyEvents.Sell')}\n
\n
\n
\n \n );\n};\n\nconst Link = styled(RLink)`\n display: block;\n\n &:hover {\n filter: brightness(80%);\n }\n`;\n\n\nconst Container = styled('article')`\n display: flex;\n border-top: 1px solid ${(props) => props.theme.colors.text};\n border-bottom: 1px solid ${(props) => props.theme.colors.text};\n min-height: 150px;\n height: 35vw;\n max-height: 25vh;\n`;\n\nconst Poster: any = styled.div`\n flex: 1;\n width: 50%;\n background: url(${(props: any) => props.bg}) top no-repeat;\n background-size: cover;\n`;\n\nconst Content = styled.section`\n flex: 1;\n display: flex;\n flex-direction: column;\n width: 50%;\n border-left: 1px solid ${(props) => props.theme.colors.text};\n padding: 10px 15px;\n`;\n\nconst Header = styled.header``;\n\nconst Title = styled.h1`\n margin: 0;\n padding: 0;\n text-transform: uppercase;\n font-size: 18px;\n font-family: ${(props) => props.theme.fonts.bolderFont};\n`;\n\nconst InfoWrapper = styled.section`\n flex: 1;\n padding: 10px 0;\n`;\n\nconst InfoItem: any = styled.p`\n margin: 5px 0;\n font-size: 12px;\n`;\n\nconst Footer = styled.footer``;\n\nconst Action: any = styled.span`\n font-size: 12px;\n font-family: ${(props) => props.theme.fonts.boldFont};\n color: ${(props) => props.theme.colors.accent};\n text-transform: uppercase;\n opacity: ${(props: any) => (props.disabled ? 0.7 : 1)};\n`;\n","import React, { useEffect, useState } from 'react';\nimport { useHistory } from 'react-router';\nimport { useDispatch, useSelector } from 'react-redux';\nimport styled from 'styled-components';\nimport Helmet from 'react-helmet';\n\nimport { useTranslation } from 'react-i18next';\nimport { IGlobalStoreState } from '../../../../store';\nimport { PageContent } from '../../../../components/UI';\nimport { Utils } from '../../../../services';\nimport { IErrorStoreState } from '../../../../store/app/types';\nimport { ResetPasswordForm, ResetPasswordFormType } from '../../../../components/forms';\nimport { confirmResetPassword } from '../../../../store/user/actions';\nimport { AlertType, KeyErrors } from '../../../../store/enums';\nimport { setResultInfo } from '../../../../store/resultInformarion/actions';\nimport { useRoutesHelper } from '../../../../helpers/routesHelper';\nimport { useQuery } from '../../../../helpers/customHooks';\nimport { Routes } from '../../../../store/routes';\nimport { useUtils } from '../../../../services/useUtils';\n\nconst ResetPasswordPage = () => {\n const { getResultStatusRoute, getProfileRoute } = useRoutesHelper();\n const { t } = useTranslation();\n const { toPageTitle } = useUtils();\n\n const dispatch = useDispatch();\n const history = useHistory();\n const query = useQuery();\n\n const token = query.get('token');\n const encodedEmail = query.get('email');\n\n const isInitializing = useSelector((state) => state.app.isInitializing);\n const error = useSelector((state) => state.app.error);\n\n const [errors, setErrors] = useState(null);\n\n useEffect(() => {\n setErrors({ form: error });\n }, [error?.message, error?.details]);\n\n useEffect(() => {\n if (!token || !encodedEmail) {\n dispatch(\n setResultInfo({\n key: KeyErrors.EmailConfirmFailed,\n type: AlertType.Error,\n title: 'Alert.SomethingWentWrong',\n message: 'Alert.EmailVerificationLinkIsInvalidOrOutOfDate',\n buttons: [\n {\n title: 'PasswordRecovery.GoToMainPage',\n callback: () => history.replace(Routes.Main),\n },\n ],\n })\n );\n history.replace(getResultStatusRoute(AlertType.Error, KeyErrors.EmailConfirmFailed));\n }\n }, []);\n\n if (isInitializing) {\n return null;\n }\n\n const handleFormSubmit = (formModel: ResetPasswordFormType) => {\n if (formModel) {\n (async () => dispatch(confirmResetPassword(formModel.password, token, encodedEmail)))().then(() => {\n history.replace(getProfileRoute());\n });\n }\n };\n\n return (\n \n \n {toPageTitle(t('PasswordRecovery.PasswordRecovery'))}\n \n
{t('PasswordRecovery.PasswordRecovery')}
\n handleFormSubmit(formModel)}\n />\n
\n );\n};\n\nconst Header = styled.h1`\n font-family: ${(props) => props.theme.fonts.boldFont};\n font-size: 18px;\n text-transform: uppercase;\n text-align: center;\n`;\n\nexport default ResetPasswordPage;\n","import React, { useEffect, useState } from 'react';\nimport { ButtonBase, Theme, Typography } from '@mui/material';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { makeStyles } from 'tss-react/mui';\nimport { useTranslation } from 'react-i18next';\nimport { useHistory } from 'react-router';\nimport { IGlobalStoreState } from '../../store';\nimport { hidePlayer, showPlayer } from '../../store/header/actions';\nimport { ModalBonusTicket } from './ModalBonusTicket';\n\nconst useStyles = makeStyles()((theme: Theme, _params, classes) => ({\n button: {\n position: 'relative',\n height: '42px',\n '& .MuiTouchRipple-root': {\n borderRadius: '24px',\n },\n '&:hover': {\n zIndex: 1,\n [`& .${classes.imageBackdrop}`]: {\n opacity: 1,\n },\n [`& .${classes.imageTitle}`]: {\n opacity: 1,\n },\n },\n },\n imageBackdrop: {\n borderRadius: '24px',\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n backgroundColor: theme.palette.secondary.main,\n opacity: 0.5,\n transition: theme.transitions.create('opacity'),\n },\n imageButton: {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: '24px',\n },\n imageTitle: {\n borderRadius: '24px',\n position: 'relative',\n top: '1px',\n textTransform: 'uppercase',\n padding: `${theme.spacing(2)} ${theme.spacing(4)}`,\n opacity: 0.5,\n },\n}));\n\nconst BONUS_TICKET_POPUP_KEY = 'bonus_ticket_popup';\n\nexport const SellEventButton = () => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const isShowPlayer = useSelector((state) => state.header.showPlayer);\n const { classes } = useStyles(undefined);\n const history = useHistory();\n const [open, setOpen] = useState(false);\n\n const handleModalBtnClick = () => (isShowPlayer ? dispatch(hidePlayer()) : dispatch(showPlayer()));\n\n useEffect(() => {\n const params = new URLSearchParams(window.location.search);\n if (!params.has(BONUS_TICKET_POPUP_KEY)) return;\n\n setOpen(true);\n }, []);\n\n return (\n <>\n {\n history.replace(`?${BONUS_TICKET_POPUP_KEY}=true`);\n setOpen(true);\n }}\n className={classes.button}\n >\n \n \n \n GET A BONUS TICKET\n \n \n \n {\n history.replace('/');\n setOpen(false);\n }}\n />\n \n );\n};\n","import dayjs from 'dayjs';\nimport { IProfileTicketQuotaStoreState, ProfileTicketQuotaStoreState } from './ProfileTicketQuotaStoreState';\nimport { EventDetailsStoreState, IEventDetailsStoreState } from '../event/eventDetails/EventDetailsStoreState';\n\nexport interface IProfileTicketStoreState {\n masterTicketId: string;\n ticketId: string;\n status: string;\n issuedTo: string;\n saleUser: string;\n currency: string;\n price: number;\n issuedAt: dayjs.Dayjs;\n event: IEventDetailsStoreState;\n sentAt?: dayjs.Dayjs;\n ticketQuota?: IProfileTicketQuotaStoreState;\n rowTitle?: string;\n seatTitle?: string;\n seatId?: number;\n token: string;\n expiredPaymentTime: dayjs.Dayjs;\n percentageComission: number;\n comissionDescription: string;\n priceComission: number;\n}\n\nexport class ProfileTicketStoreState implements IProfileTicketStoreState {\n masterTicketId: string;\n ticketId: string;\n status: string;\n issuedTo: string;\n saleUser: string;\n currency: string;\n price: number;\n issuedAt: dayjs.Dayjs;\n event: IEventDetailsStoreState;\n sentAt?: dayjs.Dayjs;\n ticketQuota?: IProfileTicketQuotaStoreState;\n rowTitle?: string;\n seatTitle?: string;\n seatId?: number;\n token: string;\n expiredPaymentTime: dayjs.Dayjs;\n percentageComission: number;\n comissionDescription: string;\n priceComission: number;\n\n constructor(dto?: any) {\n this.masterTicketId = dto && dto.MasterTicketId ? dto.MasterTicketId : '';\n this.ticketId = dto && dto.TicketId ? dto.TicketId : '';\n this.status = dto && dto.Status ? dto.Status : '';\n this.issuedTo = dto && dto.IssuedTo ? dto.IssuedTo : '';\n this.currency = dto && dto.Currency ? dto.Currency : '';\n this.price = dto && dto.Price ? dto.Price : 0;\n this.issuedAt = dto && dto.IssuedAt ? dayjs(dto.IssuedAt) : dayjs();\n this.event = dto && dto.Event ? new EventDetailsStoreState(dto.Event) : null;\n this.sentAt = null;\n this.ticketQuota = dto && dto.TicketQuota ? new ProfileTicketQuotaStoreState(dto.TicketQuota) : null;\n this.rowTitle = dto && dto.RowTitle ? dto.RowTitle : '';\n this.seatTitle = dto && dto.SeatTitle ? dto.SeatTitle : '';\n this.seatId = dto && dto.SeatId ? dto.SeatId : 0;\n this.saleUser = dto && dto.SaleUser ? dto.SaleUser : '';\n this.token = dto && dto.Token ? dto.Token : '';\n this.expiredPaymentTime = dto && dto.ExpiredPaymentTime ? dayjs(dto.ExpiredPaymentTime) : dayjs();\n this.percentageComission = dto && dto.PercentageComission ? dto.PercentageComission : null;\n this.comissionDescription = dto && dto.ComissionDescription ? dto.ComissionDescription : '';\n this.priceComission = dto && dto.PriceComission ? dto.PriceComission : '';\n }\n}\n","import styled from 'styled-components';\n\nexport const Label = styled.label`\n margin-bottom: 0;\n font-size: 14px;\n`;\n\ninterface IRadioLabel {\n checked: boolean;\n disabled?: boolean;\n}\n\nexport const RadioLabel = styled(Label as any)`\n display: flex;\n align-items: center;\n position: relative;\n cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};\n user-select: none;\n padding: 20px 25px 20px 60px;\n width: 100%;\n background: #121212;\n border-bottom: 1px solid ${(props) => props.theme.colors.accent};\n opacity: ${(props) => props.disabled && 0.3};\n pointer-events: ${(props) => props.disabled && 'none'};\n\n > input {\n position: absolute;\n opacity: 0;\n cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};\n }\n\n &:before {\n content: '';\n position: absolute;\n width: 20px;\n height: 20px;\n border-radius: 50%;\n left: 25px;\n top: 17px;\n border: 1px solid ${(props) => props.theme.colors.accent};\n }\n\n &:after {\n content: '';\n position: absolute;\n display: ${(props) => (props.checked ? 'block' : 'none')};\n width: 12px;\n height: 12px;\n left: 30px;\n top: 22px;\n background-color: ${(props) => props.theme.colors.accent};\n border-radius: 50%;\n }\n\n &:hover {\n filter: ${(props) => !props.disabled && 'brightness(0.7)'};\n }\n\n &:active {\n filter: ${(props) => !props.disabled && 'brightness(0.5)'};\n }\n`;\n","export * from './events';\nexport * from './book';\nexport * from './checkout';\nexport * from './user';\nexport * from './static';\n","import { IEventStoreState, ISeatStoreState } from '../event/types';\n\nexport interface IBookStoreState {\n event: IEventStoreState;\n sectorSlug?: string;\n seats: ISeatStoreState[];\n token?: string;\n}\n\nexport class BookStoreState implements IBookStoreState {\n public event: IEventStoreState;\n public sectorSlug?: string;\n public seats: ISeatStoreState[];\n public token?: string;\n\n constructor() {\n this.event = null;\n this.sectorSlug = '';\n this.seats = [];\n this.token = '';\n }\n}\n\nexport const enum BookActionTypes {\n BOOK_INIT = '@@book/INIT',\n BOOK_CLEAR = '@@book/CLEAR',\n BOOK_SET_QUOTA = '@@book/SET_QUOTA',\n BOOK_SET_SECTOR = '@@book/SET_SECTOR',\n BOOK_SET_SECTOR_ROW = '@@book/SET_SECTOR_ROW',\n BOOK_SET_SECTOR_ROW_SEAT = '@@book/SET_SECTOR_ROW_SEATS',\n BOOK_SET_TICKETS_COUNT = '@@book/SET_TICKETS_COUNT',\n}\n","export * from './page';\nexport * from './pageFooter';\nexport * from './pageHeader';\nexport * from './pageContent';\nexport * from './pageTitle';\n","export * from './button';\nexport * from './numberInput';\nexport * from './page';\nexport * from './link';\nexport * from './input';\nexport * from './label';\nexport * from './image';\nexport * from './message';\nexport * from './selector';\n","export * from './thunkService';\nexport * from './baseApiService';\nexport * from './repositories';\nexport * from './utils';\nexport * from './validationService';\nexport * from './AnalyticService';\n","import * as React from 'react';\nimport { FC, memo } from 'react';\nimport { IPaymentInitiateTicketResult } from '../../../store/payment/types';\nimport Constants from '../../../store/constants';\nimport { ListItem } from './eventCheckoutHeader';\nimport EventInfoItem from '../eventInfoItem';\nimport { useUtils } from '../../../services/useUtils';\n\ntype RenderTicketsInfoPropsType = {\n tickets: Array;\n};\n\nexport const RenderTicketsInfo: FC = memo(({ tickets }) => {\n const { getTicketsPostfixByCount } = useUtils();\n if (!tickets.length) {\n return null;\n }\n return (\n \n {tickets.map((ticket, index) => {\n const title = `${ticket.quantity} ${getTicketsPostfixByCount(ticket.quantity)} ${Constants.BulletDelimiter} \n ${ticket.title}`;\n return ;\n })}\n \n );\n});\n","import { Dispatch } from 'redux';\nimport { action } from 'typesafe-actions';\nimport { IGlobalStoreState } from '..';\nimport { ThunkService } from '../../services';\n\nimport { AppActionTypes } from '../app/types';\nimport { AppSettingsActionTypes, IAppSettingsState } from './types';\n\nexport const init = () => action(AppActionTypes.APP_INIT);\nexport const finalize = () => action(AppActionTypes.APP_FINALIZE);\nexport const showSpinner = () => action(AppActionTypes.SPINNER_SHOW);\nexport const hideSpinner = () => action(AppActionTypes.SPINNER_HIDE);\n\nconst appSettingInit = (settings: IAppSettingsState) => action(AppSettingsActionTypes.APP_SETTINGS_INIT, settings);\n\nexport const initWidgetApp =\n (token: string) =>\n async (dispatch: Dispatch): Promise => {\n dispatch(init());\n try {\n dispatch(getSettings(token));\n dispatch(hideSplash());\n } catch (e) {\n } finally {\n await dispatch(finalize());\n }\n };\n\nexport const getSettings =\n (token: string) =>\n async (\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n ): Promise => {\n const appSettings = await thunkService.api.widget.getAppSettings(token);\n dispatch(appSettingInit(appSettings));\n return Promise.resolve(appSettings);\n };\n\nexport const hideSplash = () => (): void => {\n document.body.classList.remove('splash-show');\n};\n","import styled from 'styled-components';\n\n\nexport const PageFooter: any = styled('footer' as any)`\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 0 35px 25px 35px;\n\n > button,\n > a {\n &:not(:last-child) {\n margin-bottom: 10px;\n }\n }\n`;\n\nexport default PageFooter;\n","import * as React from 'react';\nimport styled from 'styled-components';\nimport paymentFormStyles from './paymentFormStyles';\nimport { BePaidLink, UserAgreementLink } from '../UI';\nimport { FormInfo } from './commonForm';\nimport { PaymentSettings } from '../../settings/paymentSettings';\nimport { AppTheme } from '../../settings/appTheme';\n\ndeclare let BeGateway: any;\n\ninterface IPurchaseFormProps {\n token: string;\n}\n\ninterface IPurchaseFormState {\n formLoaded: boolean;\n}\n\nexport class PurchaseForm extends React.Component {\n private _script: any;\n private _frame: any;\n private _DOM: any;\n\n constructor(props: IPurchaseFormProps) {\n super(props);\n\n this.state = {\n formLoaded: false,\n };\n }\n\n componentDidMount() {\n if (!this._script) {\n this._script = document.createElement('script');\n this._script.src = PaymentSettings.SCRIPT_URL;\n this._script.async = true;\n this._script.onload = () => this.buildForm();\n document.body.appendChild(this._script);\n }\n }\n\n componentWillUnmount() {\n document.body.removeChild(this._script);\n }\n\n render() {\n return (\n \n this.setRef(e)} />\n \n \n Нажимая на кнопку \"Оплатить\", вы принимаете условия{' '}\n \n \n \n Оплата обеспечивается \n \n \n \n \n );\n }\n\n private setRef(element: any) {\n if (!this._DOM) {\n this._DOM = element;\n }\n this._DOM.addEventListener('DOMSubtreeModified', (e) => {\n const iframe = document.getElementsByTagName('iframe')[0];\n if (!this._frame && iframe) {\n this._frame = iframe;\n this._frame.onload = (e) => {\n this.setState({ formLoaded: true });\n };\n }\n });\n }\n\n private buildForm() {\n const options = {\n type: 'inline',\n id: 'payment-form',\n url: `${PaymentSettings.BASE_API_URL}/checkout?token=${this.props.token}`,\n style: paymentFormStyles, // this.props.styles,\n size: { height: 260 },\n };\n\n const pf = new BeGateway(options);\n pf.buildForm();\n }\n}\n\nconst PaymentForm = styled.div`\n flex: 1;\n display: flex;\n flex-direction: column;\n\n & > #beGatewayForm {\n flex: 1;\n display: flex;\n flex-direction: column;\n\n iframe {\n width: 100% !important;\n height: auto !important;\n flex: 1;\n }\n }\n`;\n\nconst BepaidInfo = styled.div`\n font-size: 10px;\n text-align: center;\n`;\n\nconst NoteInfo = styled(FormInfo as any)`\n color: ${(props) => props.theme.colors.text};\n text-align: center;\n`;\n\nconst Notes = styled.div`\n margin-top: 20px;\n`;\n\nconst Logos = styled.div`\n display: block;\n margin: 0 auto;\n background: url(${AppTheme.img.payment.formLogos}) center no-repeat;\n background-size: contain;\n height: 40px;\n margin-top: 15px;\n`;\n\nexport default PurchaseForm;\n","import { BaseApiService } from '../baseApiService';\nimport {\n IPaymentInitiateResult,\n PaymentInitiateResult,\n IPaymentInitiateInfo,\n IPaymentProcessInfo,\n IPaymentProcessResult,\n PaymentProcessResult,\n IPaymentCompleteInfo,\n IPaymentCompleteResult,\n PaymentCompleteResult,\n} from '../../store/payment/types';\nimport EventHelper from '../../helpers/eventHelper';\n\nexport class PaymentsApiService extends BaseApiService {\n private static _instance: PaymentsApiService;\n\n constructor(config?: any) {\n if (typeof PaymentsApiService._instance === 'undefined') {\n super(config);\n PaymentsApiService._instance = this;\n }\n return PaymentsApiService._instance;\n }\n\n public async widgetInitiate(model: IPaymentInitiateInfo): Promise {\n const response = await this.post('/widgetInitiate', model);\n return new PaymentInitiateResult(response.data);\n }\n\n public async widgetProcess(model: IPaymentProcessInfo): Promise {\n const response = await this.post('/widgetProcess', model);\n return new PaymentProcessResult(response.data);\n }\n\n public async initiate(model: IPaymentInitiateInfo): Promise {\n const domain = window.location.hostname;\n const resultDomainType = EventHelper.getDomainType(domain);\n const response = await this.post(`/initiate?dtype=${resultDomainType}`, model);\n return new PaymentInitiateResult(response.data);\n }\n\n public async process(model: IPaymentProcessInfo): Promise {\n const domain = window.location.hostname;\n const resultDomainType = EventHelper.getDomainType(domain);\n const response = await this.post(`/process?dtype=${resultDomainType}`, model);\n return new PaymentProcessResult(response.data);\n }\n\n public async complete(model: IPaymentCompleteInfo): Promise {\n const domain = window.location.hostname;\n const resultDomainType = EventHelper.getDomainType(domain);\n const response = await this.post(`/complete?dtype=${resultDomainType}`, model);\n return new PaymentCompleteResult(response.data);\n }\n}\n","export * from './eventsService';\nexport * from './paymentsService';\nexport * from './accountService';\nexport * from './authService';\nexport * from './ticketsService';\nexport * from './homeService';\nexport * from './shareService';\nexport * from './widgetService';\nexport * from './publicContractService';\n","import { Reducer } from 'redux';\n\nimport { IEventStoreState, EventActionTypes } from './types';\n\nconst eventsReducer: Reducer> = (\n state: Array = new Array(),\n action\n) => {\n switch (action.type) {\n case EventActionTypes.EVENTS_INIT: {\n return [...action.payload];\n }\n default:\n return state;\n }\n};\n\nexport default eventsReducer;\n","import * as React from 'react';\nimport { FC, useEffect, useState } from 'react';\nimport dayjs from 'dayjs';\nimport { useDispatch, useSelector } from 'react-redux';\nimport styled from 'styled-components';\nimport { useTranslation } from 'react-i18next';\nimport { IGlobalStoreState } from '../../../../store';\nimport { getEventDetailsBySlug } from '../../../../store/event/actions';\nimport { Page, PageContent } from '../../../../components/UI';\nimport { EventDetailsHeader } from '../../../../components/event';\nimport { AnalyticService } from '../../../../services';\nimport { AlertType, KeyErrors } from '../../../../store/enums';\nimport { EventHelper } from '../../../../helpers';\nimport { hideAdButton, showAdButton } from '../../../../store/header/actions';\nimport { IEventDetailsStoreState } from '../../../../store/event/eventDetails/EventDetailsStoreState';\nimport EventInfoItem from '../../../../components/event/eventInfoItem';\nimport { useHistory, useParams } from 'react-router';\nimport { EventDetailsFooter } from './eventDetailsFooter';\nimport { DescriptionCollapse } from './descriptionCollapse';\nimport { setResultInfo } from '../../../../store/resultInformarion/actions';\nimport { useRoutesHelper } from '../../../../helpers/routesHelper';\n\nconst EventDetailsPage: FC = () => {\n const dispatch = useDispatch();\n const history = useHistory();\n const { t } = useTranslation();\n\n const analyticSrv = new AnalyticService();\n\n const [event, setEvent] = useState(null);\n const { eventSlug } = useParams<{ eventSlug: string }>();\n\n const isInitializing = useSelector((state) => state.app.isInitializing);\n\n const { getResultStatusRoute } = useRoutesHelper();\n\n useEffect(() => {\n dispatch(hideAdButton());\n\n if (!eventSlug) {\n return;\n }\n\n (async () => dispatch(getEventDetailsBySlug(eventSlug)))().then((event: any) => {\n if (!event || !event.slug) {\n dispatch(\n setResultInfo({\n type: AlertType.Error,\n key: KeyErrors.EventNotFound,\n title: 'Alert.SomethingWentWrong',\n message: 'Alert.CheckLinkNoEventFound',\n })\n );\n history.replace(getResultStatusRoute(AlertType.Error, KeyErrors.EventNotFound));\n return;\n }\n\n setEvent(event);\n });\n }, [eventSlug]);\n\n useEffect(() => {\n dispatch(showAdButton());\n analyticSrv.trackEvent('EventsDetails');\n }, []);\n\n const renderDateBlock = (date: dayjs.Dayjs) => {\n const day = dayjs(date).date();\n const month = dayjs(date).format('MMMM YYYY');\n const time = dayjs(date).format('LT');\n return (\n \n \n \n {day}\n \n \n \n {month}\n \n \n \n );\n };\n\n const renderPriceBlock = (event: IEventDetailsStoreState) => {\n const { minPrice, maxPrice, currency } = event;\n\n if (!minPrice && !maxPrice) {\n return null;\n }\n\n const priceTitle = minPrice !== maxPrice ? `${minPrice}–${maxPrice}` : minPrice;\n\n return (\n \n \n \n \n \n );\n };\n\n if (isInitializing || !event || !event.slug) {\n return null;\n }\n\n return (\n \n \n \n \n {renderDateBlock(event.date)}\n {event.venue && (\n \n \n \n \n \n )}\n {renderPriceBlock(event)}\n \n {event?.description && (\n \n )}\n \n \n \n );\n};\n\nconst EventInfoWrapper = styled(PageContent as any)`\n padding: 20px 35px;\n margin-top: 10px;\n`;\n\nconst List = styled.ul`\n list-style-type: none;\n margin: 0;\n padding: 0;\n`;\n\nconst ListItem = styled.li`\n position: relative;\n border-left: 1px solid ${(props) => props.theme.colors.text};\n padding-bottom: 25px;\n\n &:last-child {\n padding-bottom: 0;\n border-left-color: transparent;\n }\n`;\n\nconst ListItemWrapper = styled.div`\n top: -10px;\n position: relative;\n padding-left: 35px;\n\n &:before {\n content: '';\n position: absolute;\n width: 7px;\n height: 7px;\n background: ${(props) => props.theme.colors.accent};\n top: 6px;\n border-radius: 50%;\n left: -4px;\n }\n`;\n\nconst Title = styled.span`\n font-size: 14px;\n margin-bottom: 5px;\n`;\n\nconst Subtitle = styled.span`\n font-size: 12px;\n`;\n\nconst DateTimeItem = styled.time`\n display: flex;\n flex-direction: column;\n width: 180px;\n top: -10px;\n position: relative;\n padding-left: 35px;\n font-family: ${(props) => props.theme.fonts.boldFont};\n\n &:before {\n content: '';\n position: absolute;\n width: 7px;\n height: 7px;\n background: ${(props) => props.theme.colors.accent};\n top: 6px;\n border-radius: 50%;\n left: -4px;\n }\n`;\n\nconst DayTimeWrapper = styled.div`\n display: flex;\n align-items: flex-start;\n`;\n\nconst MonthYearWrapper = styled.div`\n text-align: right;\n margin-top: 15px;\n`;\n\nconst Day = styled.span`\n font-size: 64px;\n line-height: 40px;\n font-family: ${(props) => props.theme.fonts.bolderFont};\n`;\n\nconst Time = styled(Subtitle as any)`\n text-align: right;\n margin-left: 10px;\n padding-bottom: 8px;\n border-bottom: 2px solid ${(props) => props.theme.colors.text};\n flex: 1;\n`;\n\nconst Month = styled(Title as any)``;\n\nexport default EventDetailsPage;\n","import * as React from 'react';\nimport { makeStyles } from 'tss-react/mui';\nimport { Skeleton } from '@mui/material';\nimport { FC, memo, useCallback, useEffect, useState } from 'react';\nimport { ISeatStoreState, ISchema } from '../../store/event/types';\nimport useApi from '../../services/apiService';\nimport PanAndZoomImage from '../../helpers/PanAndZoomImage/PanAndZoomImage';\nimport { AppTheme } from '../../settings/appTheme';\nimport { IVenueSectorStoreState } from '../../store/ticket/types';\n\nconst useStyles = makeStyles()(() => ({\n placeSelectorWrapper: {\n display: 'inline-flex',\n flexDirection: 'column',\n height: 'calc(70vh - 185px)',\n },\n title: {\n position: 'relative',\n display: 'flex',\n justifyContent: 'center',\n '&::after': {\n content: '\"\"',\n width: '100%',\n display: 'block',\n background: '#fff',\n height: '1px',\n position: 'absolute',\n left: 0,\n top: '50%',\n zIndex: -1,\n },\n '&::before': {\n content: '\"\"',\n width: '100%',\n background: '#fff',\n position: 'absolute',\n height: '1px',\n right: 0,\n top: '50%',\n display: 'block',\n zIndex: -1,\n },\n },\n schema: {\n zIndex: 0,\n height: '100%',\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n '& svg': {\n maxWidth: '100%',\n maxHeight: '100%',\n objectFit: 'cover',\n '& text': {\n fontFamily: `${AppTheme.fonts.boldFont} !important`,\n userSelect: 'none',\n },\n '& .scene': {\n text: {\n fill: `${AppTheme.colors.accent}`,\n },\n },\n '& .disabled .seat': {\n fill: '#313131',\n color: `${AppTheme.colors.bg}`,\n borderColor: '2px green',\n cursor: 'pointer',\n },\n '& .seat': {\n '&.seat-schema': {\n display: 'none',\n text: {\n fill: 'black',\n },\n },\n '&.available': {\n fill: 'rgb(102, 102, 102)',\n cursor: 'pointer',\n },\n '&.selected': {\n cursor: 'pointer',\n fill: `${AppTheme.colors.accent}`,\n '&.seat-schema': {\n display: 'block',\n },\n },\n },\n },\n },\n skeletonWrapper: {\n display: 'flex',\n justifyContent: 'center',\n zIndex: 0,\n minHeight: 'calc(100% - 50px)',\n },\n titleText: {\n fontSize: '14px',\n background: '#1C1C1C',\n width: '300px',\n textAlign: 'center',\n },\n}));\n\nexport const PlaceSelector: FC = memo(\n ({ caption, selectedSeats, maxSelectCount, sector, onChange, venueSlug }) => {\n const [scheme, setScheme] = useState(null);\n const [isLoading, setIsLoading] = useState(true);\n const { classes } = useStyles();\n\n const { eventsApi } = useApi();\n useEffect(() => {\n (async () => {\n const response = await eventsApi.getSectorSchema({\n venueSlug,\n sectorSlug: sector.slug,\n schemaVersion: sector.schema.version,\n });\n setScheme(response);\n setIsLoading(false);\n })();\n }, [sector.schema.version, sector.slug, venueSlug]);\n\n const handleSeatClick = useCallback(\n (e: any) => {\n const arraySlugs = e.target.closest('.available').id.split('_');\n const [sectorSlug, rowSlug, seatSlug] = arraySlugs;\n\n const row = sector.rows.find((r) => r.slug === rowSlug);\n const seat = row && row.seats.find((s) => s.slug === seatSlug);\n const quotaId = seat && seat.quotaId;\n if (sectorSlug && rowSlug && seatSlug && onChange) {\n onChange(quotaId, sectorSlug, rowSlug, seatSlug);\n }\n },\n [sector.rows]\n );\n\n useEffect(() => {\n for (const row of sector.rows) {\n for (const seat of row.seats) {\n const seatName = `${sector.slug}_${row.slug}_${seat.slug}`;\n const seatElement = document.getElementById(seatName);\n if (seatElement) {\n seatElement.addEventListener('click', (e) => handleSeatClick(e));\n }\n }\n }\n return () => {\n for (const row of sector.rows) {\n for (const seat of row.seats) {\n const seatName = `${sector.slug}_${row.slug}_${seat.slug}`;\n const seatElement = document.getElementById(seatName);\n if (seatElement) {\n seatElement.removeEventListener('click', (e) => handleSeatClick(e));\n }\n }\n }\n };\n }, [handleSeatClick, sector.rows, sector.slug, scheme?.schema]);\n\n useEffect(() => {\n for (const row of sector.rows) {\n for (const seat of row.seats) {\n const seatName = `${sector.slug}_${row.slug}_${seat.slug}`;\n const seatElement = document.getElementById(seatName);\n if (seatElement) {\n const isSelected = selectedSeats.some(\n (s) => s.seatSlug === seat.slug && s.rowSlug === row.slug && s.sectorSlug === sector.slug\n );\n\n if (isSelected) {\n seatElement.classList.add('selected');\n seatElement.classList.add('available');\n } else {\n seatElement.classList.remove('selected');\n if (maxSelectCount > selectedSeats.length) {\n seatElement.classList.add('available');\n } else {\n seatElement.classList.remove('available');\n }\n }\n seatElement.classList.add('seat');\n }\n }\n }\n }, [maxSelectCount, selectedSeats, scheme?.schema]);\n\n return (\n
\n {caption && (\n

\n {caption}\n

\n )}\n {isLoading && (\n
\n \n
\n )}\n {!isLoading && (\n \n
\n \n )}\n
\n );\n }\n);\n\ntype PlaceSelectorProps = {\n caption?: string;\n sector: IVenueSectorStoreState;\n venueSlug?: string;\n selectedSeats: ISeatStoreState[];\n maxSelectCount: number;\n\n onChange?: (quotaId: number, sectorSlug: string, rowSlug: string, seatSlug: string) => void;\n};\n","import React, { FC, useState } from 'react';\nimport { Chip, ClickAwayListener, ListItemText, Paper, Theme } from '@mui/material';\nimport { makeStyles } from 'tss-react/mui';\nimport ExpandLessIcon from '@mui/icons-material/ExpandLess';\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore';\nimport { useTranslation } from 'react-i18next';\nimport { ListItemLink } from '../popupLocation';\nimport { IEventCategory } from '../../../store/event/types';\nimport { AppTheme } from '../../../settings/appTheme';\n\nconst useStyles = makeStyles()((theme: Theme) => ({\n containerGenresAccordion: {\n position: 'relative',\n marginLeft: 20,\n [theme.breakpoints.down(375)]: {\n marginLeft: 'auto',\n },\n },\n paperListGenres: {\n position: 'absolute',\n minWidth: '196px',\n background: '#FFF',\n zIndex: 1,\n right: 0,\n marginTop: 10,\n borderRadius: 12,\n display: 'flex',\n flexDirection: 'column',\n },\n listItemText: {\n '& span': {\n fontSize: 14,\n lineHeight: '14px',\n zIndex: 1,\n color: 'black',\n },\n },\n chipLocationInfo: {\n border: '1px solid rgb(107, 107, 107, 0.6)',\n borderRadius: 35,\n height: 30,\n width: 115,\n overflow: 'auto',\n textOverflow: 'ellipsis',\n fontSize: 12,\n color: 'white',\n lineHeight: '12px',\n fontFamily: AppTheme.fonts.regularFont,\n display: 'flex',\n justifyContent: 'space-around',\n '& span': {\n marginTop: 1,\n marginRight: '10%',\n },\n '& .MuiChip-deleteIcon': {\n color: 'rgba(255, 255, 255, 0.26)',\n '&:hover': {\n color: 'rgba(255, 255, 255, 0.4)',\n },\n },\n '&:hover': {\n backgroundColor: 'rgba(255, 255, 255, 0.08)',\n },\n },\n notFoundText: {\n fontSize: 14,\n lineHeight: '14px',\n zIndex: 1,\n color: 'black',\n padding: 10,\n cursor: 'default',\n userSelect: 'none',\n },\n}));\n\nexport const CategoriesAccordion: FC = ({ categories, onCategoryChange }) => {\n const { classes } = useStyles();\n\n const [open, setOpen] = useState(false);\n const [currentCategoryId, setCurrentCategoryId] = useState(null);\n\n const { t } = useTranslation();\n\n const handleOpenClick = () => setOpen((open) => !open);\n const handleAwayClick = () => setOpen(false);\n\n const handleCategoriesFiltered = (genre: number) => {\n onCategoryChange(genre);\n setCurrentCategoryId(genre);\n setOpen(false);\n };\n\n const genreTitle = () => {\n const category =\n categories.length && currentCategoryId && categories.find((category) => category.id === currentCategoryId);\n return categories.length && currentCategoryId ? t(`Dashboard.Categories.${category.slug}`) : t(`Dashboard.Genres`);\n };\n\n const handleDeleteGenre = () => {\n onCategoryChange(null);\n setCurrentCategoryId(null);\n setOpen(false);\n };\n\n return (\n \n
\n : }\n onClick={handleOpenClick}\n onDelete={currentCategoryId && handleDeleteGenre}\n />\n {open && (\n \n {categories.length ? (\n categories.map((category) => (\n handleCategoriesFiltered(category.id)}>\n (`Dashboard.Categories.${category.slug}`)}\n className={classes.listItemText}\n />\n \n ))\n ) : (\n
{t(`Dashboard.NothingFound`)}
\n )}\n
\n )}\n
\n
\n );\n};\n\ntype CategoriesAccordionType = {\n categories: IEventCategory[];\n onCategoryChange: (genre: number) => void;\n};\n","import React, { FC, memo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useDispatch } from 'react-redux';\nimport { useHistory } from 'react-router';\nimport styled from 'styled-components';\nimport { EventHelper } from '../../../../helpers';\nimport { TicketsInfo } from './ticketsInfo';\nimport { WidgetError } from './widgetError';\nimport { Button, PageFooter } from '../../../../components/UI';\nimport { IEventStoreState, ISeatStoreState } from '../../../../store/event/types';\nimport { IBookStoreState } from '../../../../store/book/types';\nimport { initBook } from '../../../../store/book/actions';\nimport { widgetCheckoutInit } from '../../../../store/checkout/actions';\nimport { useRoutesHelper } from '../../../../helpers/routesHelper';\n\ntype WidgetFooterPropsType = {\n event: IEventStoreState;\n sectorSlug: string;\n isLoading: boolean;\n seats: ISeatStoreState[];\n book: IBookStoreState;\n token: string;\n setIsCheckoutInitiating: (checkoutInitiating: boolean) => void;\n};\n\nexport const WidgetFooter: FC = memo(\n ({ event, token, setIsCheckoutInitiating, sectorSlug, book, isLoading, seats }) => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const history = useHistory();\n\n const { getWidgetCheckoutRouteFromBook } = useRoutesHelper();\n\n if (!event) {\n return null;\n }\n\n const sector = event && event.sectors && event.sectors.find((x) => x.slug === sectorSlug);\n\n const hasTickets = EventHelper.getHasTickets(event);\n const isSectorSelected = !!sectorSlug;\n const isSeatsSelected = isSectorSelected && seats && seats.length > 0;\n const isCheckoutEnabled = !isLoading && hasTickets && isSeatsSelected && !event.notAvailableForPurchase;\n let buttonTitle = t('WidgetBook.GoToPayment');\n if (!hasTickets) {\n buttonTitle = t('WidgetBook.TicketsAreNotAvailableForSale');\n } else if (!isSectorSelected) {\n buttonTitle = t('WidgetBook.ChooseSector');\n } else if (!isSeatsSelected && !sector.noSeats) {\n buttonTitle = t('WidgetBook.ChooseSeats');\n } else if (event.notAvailableForPurchase) {\n buttonTitle = event.notAvailableForPurchaseReason;\n }\n\n const handleCheckoutClick = (e: any) => {\n if (e) e.preventDefault();\n dispatch(initBook(event, sectorSlug, seats));\n try {\n checkoutInit();\n } catch (e) {\n console.log('checkoutInit', e);\n }\n };\n\n const checkoutInit = () => {\n (async () => dispatch(widgetCheckoutInit(token)))()\n .then(() => {\n setIsCheckoutInitiating(false);\n history.push(getWidgetCheckoutRouteFromBook(book, token));\n })\n .catch(() => {\n setIsCheckoutInitiating(false);\n });\n };\n\n return (\n
\n {!!sector && !sector.noSeats && }\n {}\n \n
\n );\n }\n);\n\nconst Footer = styled(PageFooter as any)`\n align-items: initial;\n padding: 0 25px 20px 25px;\n\n > button,\n > input {\n &:not(:last-child) {\n margin-bottom: 15px;\n }\n }\n`;\n","import React, { useCallback, useEffect } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport Helmet from 'react-helmet';\n\nimport { useHistory } from 'react-router';\nimport { useTranslation } from 'react-i18next';\nimport { IGlobalStoreState } from '../../../store';\nimport { Button, Message, MessageButtonsWrapper, PageContent } from '../../../components/UI';\nimport { IUserStoreState } from '../../../store/user/types';\nimport { Utils } from '../../../services';\nimport { cancelSellTicket } from '../../../store/user/actions';\nimport { UserTicketsList } from '../../../components/ticket';\nimport { IProfileTicketStoreState } from '../../../store/ticket/ProfileTicketStoreState';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\nimport { Routes } from '../../../store/routes';\n\nconst UserTicketsPage = () => {\n const history = useHistory();\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const { getProfileRoute } = useRoutesHelper();\n\n const isInitializing = useSelector((state) => state.app.isInitializing);\n const isAuthorized = useSelector((state) => state.app.isAuthorized);\n const isLoading = useSelector((state) => state.app.isLoading);\n const user = useSelector((state) => state.user);\n const tickets = useSelector((state) => state.userTickets);\n\n useEffect(() => {\n if (!isAuthorized || !user.phoneNumberConfirmed) {\n history.push(getProfileRoute());\n return;\n }\n }, [isAuthorized, user?.phoneNumberConfirmed]);\n\n const cancelTicket = useCallback(\n (ticketId: string): any => {\n dispatch(cancelSellTicket(ticketId));\n },\n [dispatch]\n );\n\n if (isInitializing || !user || isLoading) {\n return null;\n }\n\n return (\n \n \n {Utils.toPageTitle(t('Profile.MyTickets'))}\n \n {!!tickets.length && (\n history.push(url)} />\n )}\n {!tickets.length && (\n (\n \n \n \n )}\n />\n )}\n \n );\n};\n\nexport default UserTicketsPage;\n","export default class Constants {\n public static DefaultTicketsCount = 1;\n public static DistributionExpirationMins = 24 * 60;\n public static DateFormat = 'DD MMMM YYYY';\n public static ResendCodeInSecs = 30;\n public static BulletDelimiter = '\\u2022';\n public static RegionalInfoExpiresInHours = 24;\n public static MinPasswordLength = 6;\n public static ResendTicketInMins = 5;\n public static LeftMarginLogo = '12px';\n}\n","import dayjs from 'dayjs';\n\nimport { PaymentMethod, PaymentProvider } from '../store/enums';\nimport { ICheckoutStoreState } from '../store/checkout/types';\nimport { IUserStoreState } from '../store/user/types';\nimport UserHelper from './userHelper';\nimport { IDistributionStoreState } from '../store/distribution/types';\n\nexport class CheckoutHelper {\n public static getIsInitiated(checkout: ICheckoutStoreState): boolean {\n return !!checkout && !!checkout.init && !!checkout.init.event;\n }\n\n public static getIsEmailSet(checkout: ICheckoutStoreState): boolean {\n return this.getIsInitiated(checkout) && !!checkout.email;\n }\n\n public static getIsProcessed(checkout: ICheckoutStoreState): boolean {\n return this.getIsEmailSet(checkout) && !!checkout.process;\n }\n\n public static getIsCompleted(checkout: ICheckoutStoreState): boolean {\n return (\n this.getIsProcessed(checkout) &&\n !!checkout.complete &&\n !!checkout.complete.result &&\n checkout.complete.result.isCompleted\n );\n }\n\n public static getDistributionInfo(checkout: ICheckoutStoreState, distributionInfo: IDistributionStoreState): string {\n if (!this.getIsDistributionInfoValid(distributionInfo)) {\n return null;\n }\n const isValidDistributor = !checkout || (this.getIsInitiated(checkout) && checkout.init.distributorFound);\n return isValidDistributor ? 'Book.NameOfYourDistributor' : 'Book.DistributorNotFound';\n }\n\n public static getIsDistributionInfoValid(distribution: IDistributionStoreState): boolean {\n return !!distribution && !!distribution.distributorSlug && dayjs().isBefore(distribution.expirationDate);\n }\n\n public static isRedirectingMethod(checkout: ICheckoutStoreState): boolean {\n return (\n this.getIsProcessed(checkout) &&\n [PaymentProvider.YandexKassa, PaymentProvider.Fanaticka].includes(\n checkout.process.paymentProvider as PaymentProvider\n ) &&\n !!checkout.process.paymentRedirectUrl\n );\n }\n\n public static hasPaymentMethods(checkout: ICheckoutStoreState): boolean {\n return this.getIsInitiated(checkout) && checkout.init.event.paymentMethods.length > 0;\n }\n\n public static hasDifferentPaymentMethods(checkout: ICheckoutStoreState): boolean {\n return this.hasPaymentMethods(checkout) && checkout.init.event.paymentMethods.length > 1;\n }\n\n public static getIsNeedPaymentForm(checkout: ICheckoutStoreState): boolean {\n return (\n this.getIsProcessed(checkout) &&\n !this.hasDifferentPaymentMethods(checkout) &&\n [PaymentProvider.Stripe, PaymentProvider.Freedompay].includes(checkout.process.paymentProvider as PaymentProvider)\n );\n }\n\n public static getIsAvailableForProcessing(checkout: ICheckoutStoreState): boolean {\n return (\n this.getIsEmailSet(checkout) &&\n !this.getIsProcessed(checkout) &&\n checkout.paymentMethod === PaymentMethod.StripeBankCard\n );\n }\n\n public static getIsPointsUsed(checkout: ICheckoutStoreState): boolean {\n return this.getIsEmailSet(checkout) && checkout.usePoints;\n }\n\n public static getIsEnoughPoints(checkout: ICheckoutStoreState, user: IUserStoreState): boolean {\n if (!user || !this.getIsEmailSet(checkout)) {\n return false;\n }\n const currencyBalance = UserHelper.getBalanceByCurrency(user, checkout.init.currency);\n if (!currencyBalance) {\n return false;\n }\n\n const minPricePayByPoints = checkout.init.pricePayByPoints;\n return currencyBalance.amount >= minPricePayByPoints;\n }\n\n public static getIsInProcess(checkout: ICheckoutStoreState): boolean {\n return (\n this.getIsProcessed(checkout) &&\n !!checkout.complete &&\n !!checkout.complete.result &&\n checkout.complete.result.isProcessing\n );\n }\n}\n\nexport default CheckoutHelper;\n","import * as React from 'react';\nimport styled from 'styled-components';\nimport { useTranslation } from 'react-i18next';\nimport { ContactInfo } from '../settings/contactInfo';\n\nexport const TestBanner = () => {\n const { t } = useTranslation();\n return (\n \n \n \n

{t('ThisIsATestVersionOfTheSite')}

\n

{t('ClickToGoToBuyRealTickets')}

\n
\n
\n
\n );\n};\n\nconst Banner = styled.aside`\n background-color: ${(props) => props.theme.colors.accent};\n\n a {\n text-decoration: none;\n }\n`;\n\nconst Container = styled.div`\n padding: 15px 25px;\n\n p {\n text-align: center;\n font-size: 14px;\n color: ${(props) => props.theme.colors.text};\n margin: 0;\n text-transform: uppercase;\n }\n\n @media screen and (min-width: 576px) {\n p {\n font-size: 18px;\n }\n }\n`;\n","export * from './eventDetailsPage/eventDetailsPage';\nexport * from './eventsPage';\n","import { Box, Grid, Link, Typography, Skeleton } from '@mui/material';\nimport { makeStyles } from 'tss-react/mui';\nimport React, { FC, useEffect, useState } from 'react';\nimport { useHistory } from 'react-router';\nimport { AppTheme } from '../../settings/appTheme';\nimport RouteService from '../../services/routeService';\n\nconst useStyles = makeStyles()((_theme, _params, classes) => ({\n box: {\n overflow: 'scroll',\n overflowY: 'hidden',\n '&::-webkit-scrollbar': {\n height: `${AppTheme.scrollbarHeight}`,\n },\n },\n gridList: {\n flexWrap: 'nowrap',\n // Promote the list into his own layer on Chrome. This cost memory but helps keeping high FPS.\n transform: 'translateZ(0)',\n margin: '0px',\n },\n gridTile: {\n cursor: 'pointer',\n width: 157,\n height: 'min-content',\n marginRight: 10,\n marginBottom: 20,\n },\n gridTileImage: {\n height: '105px',\n width: '144px',\n objectFit: 'cover',\n borderRadius: '8px',\n boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.3)',\n },\n skeletonImage: {\n height: '105px',\n width: '144px',\n borderRadius: '10px',\n },\n skeletonText: {\n height: 20,\n marginTop: '10px',\n },\n titleText: {\n fontSize: 16,\n lineHeight: '16px',\n marginTop: 10,\n },\n gridImg: {\n position: 'relative',\n '&:hover': {\n [`& .${classes.gridTileImage}, .${classes.gradientImg}`]: {\n filter: 'brightness(60%)',\n },\n },\n },\n gradientImg: {\n position: 'absolute',\n width: '144px',\n height: '42px',\n left: '0px',\n bottom: '5px',\n background: 'linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%)',\n opacity: 0.7,\n borderRadius: '0px 0px 8px 8px',\n },\n linkStyle: {\n '&:hover': {\n textDecoration: 'none',\n color: 'rgb(178, 178, 178)',\n filter: 'brightness(60%)',\n },\n },\n}));\n\nexport const CategoryCarousel: FC = ({ load }) => {\n const history = useHistory();\n const [categories, setCategories] = useState([]);\n const [isLoading, setIsLoading] = useState(true);\n\n const { classes } = useStyles();\n const routeSrv = new RouteService();\n\n useEffect(() => {\n setIsLoading(true);\n\n const loadEvents = async () => {\n const result = await load();\n setCategories(result);\n setIsLoading(false);\n };\n loadEvents();\n }, []);\n\n return (\n \n \n {categories.length > 0 &&\n !isLoading &&\n categories.map((item) => (\n \n history.push(routeSrv.getEventCategoryRoute(item.key))}\n >\n \n \n
\n {item.title}\n
\n
\n \n \n {item.title}\n \n \n \n \n ))}\n\n {isLoading &&\n Array.from(new Array(6)).map((value, index) => (\n \n \n \n \n \n \n \n \n \n \n ))}\n \n \n );\n};\n\ntype CategoryCarouselType = {\n load: () => Promise;\n};\n\nexport type ItemCategoryCarouselType = {\n id: number;\n key: string;\n imageUrl: string;\n title: string;\n};\n","import React, { FC, useEffect, useState } from 'react';\nimport { Grid, Link, Skeleton, Theme, Typography } from '@mui/material';\nimport { makeStyles } from 'tss-react/mui';\nimport { useRouteService } from '../../helpers/customHooks';\nimport { useRoutesHelper } from '../../helpers/routesHelper';\n\nconst useStyles = makeStyles()((theme: Theme, _params, classes) => ({\n gridTile: {\n height: '223px',\n width: 230,\n cursor: 'pointer',\n [theme.breakpoints.down('md')]: {\n height: '265px',\n width: 330,\n },\n },\n gradientImg: {\n position: 'absolute',\n width: '100%',\n height: '42px',\n left: '0px',\n bottom: '5px',\n background: 'linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%)',\n opacity: 0.7,\n borderRadius: '0px 0px 8px 8px',\n },\n titleImage: {\n height: '175px',\n [theme.breakpoints.down('md')]: {\n height: '212px',\n },\n width: '100%',\n objectFit: 'cover',\n borderRadius: '8px',\n boxShadow: '0px 8px 15px rgba(0, 0, 0, 0.45)',\n },\n skeletonImage: {\n height: '223px',\n width: '100%',\n borderRadius: 8,\n },\n skeletonText: {\n height: 20,\n marginTop: '5px',\n },\n titleText: {\n marginTop: 12,\n fontSize: 16,\n lineHeight: '16px',\n marginBottom: 6,\n },\n subTitleText: {\n fontSize: 14,\n lineHeight: '14px',\n color: '#6B6B6B',\n },\n linkStyle: {\n '&:hover': {\n textDecoration: 'none',\n color: 'rgb(178, 178, 178)',\n filter: 'brightness(60%)',\n },\n },\n gridImage: {\n position: 'relative',\n '&:hover': {\n [`& .${classes.titleImage}, .${classes.gradientImg}`]: {\n filter: 'brightness(60%)',\n },\n },\n },\n}));\n\nexport const HorizontalCarousel: FC = ({ load, reloadDependencyValue }) => {\n const { getEventRoute } = useRouteService();\n const { handleEventLink } = useRoutesHelper();\n\n const [items, setItems] = useState([]);\n const [isLoading, setIsLoading] = useState(true);\n\n const { classes } = useStyles();\n\n useEffect(() => {\n setIsLoading(true);\n\n const loadEvents = async () => {\n const result = await load();\n setItems(result);\n setIsLoading(false);\n };\n loadEvents();\n }, [reloadDependencyValue]);\n\n return (\n \n {items.length > 0 &&\n !isLoading &&\n items.map((item) => (\n \n handleEventLink(item.domainTypes, getEventRoute(item.key))}\n className={classes.linkStyle}\n >\n \n \n {item.title}\n
\n \n \n {item.title}\n \n \n \n {item.subTitle}\n \n \n \n \n \n ))}\n\n {isLoading &&\n Array.from(new Array(6)).map((item, idx) => (\n \n \n \n \n \n \n \n \n \n \n \n \n \n ))}\n \n );\n};\n\ntype HorizontalCarouselType = {\n load: () => Promise;\n reloadDependencyValue?: any;\n};\n\ntype ItemHorizontalCarouselType = {\n key: string;\n imageUrl: string;\n title: string;\n subTitle: string;\n domainTypes: number[];\n};\n","export * from './bookPage';\nexport * from './bookResultPage';\nexport * from './pricesWrapper';\n","export * from './userPage';\nexport * from './registrationPage';\nexport * from './loginPage';\nexport * from './emailConfirmPage';\nexport * from './profilePage';\nexport * from './userEventsPage';\nexport * from './userTicketsPage';\nexport * from './userTicketDetailsPage';\nexport * from './password';\n","import React, { FC } from 'react';\nimport styled from 'styled-components';\n\nimport { AnimatePresence, motion } from 'framer-motion';\nimport UserTicketItem from './userTicketItem';\nimport { IProfileTicketStoreState } from '../../store/ticket/ProfileTicketStoreState';\nimport { PopUp } from '../../store/animations';\n\ninterface IUserTicketsListProps {\n tickets: Array;\n\n cancelSellTicket: (ticketId: string) => Promise;\n go: (url: string) => void;\n}\n\nexport const UserTicketsList: FC = ({ tickets, go, cancelSellTicket }) => (\n \n \n {tickets.map((ticket, index) => (\n \n cancelSellTicket(ticketId)}\n go={(url) => go(url)}\n />\n \n ))}\n \n \n);\n\nconst TicketsList = styled(motion.ul)`\n list-style: none;\n margin: 0;\n padding: 0;\n`;\n\nconst TicketsListItem = styled.li`\n margin-bottom: 10px;\n`;\n","import { Reducer } from 'redux';\n\nimport { IBookStoreState, BookStoreState, BookActionTypes } from './types';\n\nconst bookReducer: Reducer = (state: IBookStoreState = new BookStoreState(), action) => {\n switch (action.type) {\n case BookActionTypes.BOOK_INIT:\n return { ...action.payload } as IBookStoreState;\n case BookActionTypes.BOOK_SET_SECTOR:\n return { ...state, sectorSlug: action.payload, rowSlug: null, seatSlugs: [] } as IBookStoreState;\n case BookActionTypes.BOOK_SET_SECTOR_ROW:\n return { ...state, rowSlug: action.payload, seatSlugs: [] } as IBookStoreState;\n case BookActionTypes.BOOK_SET_SECTOR_ROW_SEAT: {\n let seatSlugs = state.seats || [];\n if (seatSlugs.some((s) => s === action.payload)) {\n seatSlugs = seatSlugs.filter((s) => s !== action.payload);\n } else {\n seatSlugs.push(action.payload);\n }\n return { ...state, seatSlugs } as IBookStoreState;\n }\n case BookActionTypes.BOOK_SET_TICKETS_COUNT:\n return { ...state, tickets: action.payload, seatSlugs: [] } as IBookStoreState;\n case BookActionTypes.BOOK_CLEAR:\n return new BookStoreState();\n case BookActionTypes.BOOK_SET_QUOTA:\n return { ...state, quotaId: action.payload } as IBookStoreState;\n default:\n return state;\n }\n};\n\nexport default bookReducer;\n","import * as React from 'react';\nimport { useEffect } from 'react';\nimport { useSelector } from 'react-redux';\nimport Helmet from 'react-helmet';\n\nimport { Translation, useTranslation } from 'react-i18next';\nimport { useHistory } from 'react-router';\nimport { IGlobalStoreState } from '../../../store';\nimport { Button, Message, MessageButtonsWrapper, PageContent } from '../../../components/UI';\nimport { IUserStoreState } from '../../../store/user/types';\nimport { Utils } from '../../../services';\nimport { IEventStoreState } from '../../../store/event/types';\nimport { UserEventsList } from '../../../components/event';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\n\nconst UserEventsPage = () => {\n const isInitializing = useSelector((state) => state.app.isInitializing);\n const isAuthorized = useSelector((state) => state.app.isAuthorized);\n const user = useSelector((state) => state.user);\n const events = useSelector>((state) => state.userEvents);\n\n const { getProfileRoute } = useRoutesHelper();\n const history = useHistory();\n const { t } = useTranslation();\n\n useEffect(() => {\n if (!isAuthorized || !user.phoneNumberConfirmed) {\n history.push(getProfileRoute());\n return;\n }\n }, [getProfileRoute, history, isAuthorized, user.phoneNumberConfirmed]);\n\n if (isInitializing || !user) {\n return null;\n }\n\n return (\n \n \n {Utils.toPageTitle(t('Profile.MyEvents'))}\n \n {!!events.length && }\n {!events.length && (\n (\n \n \n \n )}\n />\n )}\n \n );\n};\n\nexport default UserEventsPage;\n","export interface IEventDetailsVenueStoreState {\n title: string;\n slug: string;\n address: string;\n city: string;\n}\n\nexport class EventDetailsVenueStoreState implements IEventDetailsVenueStoreState {\n title: string;\n slug: string;\n address: string;\n city: string;\n\n constructor(dto?: any) {\n this.title = dto && dto.Title ? dto.Title : '';\n this.slug = dto && dto.Slug ? dto.Slug : '';\n this.address = dto && dto.Address ? dto.Address : '';\n this.city = dto && dto.City ? dto.City : '';\n }\n}\n","import React, { FC } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useSelector } from 'react-redux';\nimport { useHistory } from 'react-router';\nimport { Button } from '../UI';\nimport { useScript } from '../../helpers/customHooks';\nimport { IGlobalStoreState } from '../../store';\nimport RouteService from '../../services/routeService';\nimport { Pages } from '../../store/enums';\nimport { Routes } from '../../store/routes';\n\ndeclare const PayBox: any;\n\nexport const FreedomPayForm: FC = () => {\n const { t } = useTranslation();\n const { pricePayByCard, currency } = useSelector((state: IGlobalStoreState) => state.checkout.init);\n const { paymentTimeoutAt, referenceNumber } = useSelector((state: IGlobalStoreState) => state.checkout.process);\n const { email, process } = useSelector((state: IGlobalStoreState) => state.checkout);\n const { isLoading } = useSelector((state: IGlobalStoreState) => state.app);\n\n useScript(`https://cdn.freedompay.kz/widget/pbwidget.js?${new Date().getTime()}`);\n const routeSrv = new RouteService();\n const navigate = useHistory();\n\n const handlePayment = async () => {\n // @ts-ignore\n const isProd = window.ENVIRONMENT === 'production';\n const bookResultLinkTemplate = `${routeSrv.getBaseUrl()}/${Pages.Book}/result`;\n const data = {\n // @ts-ignore\n token: window.REACT_APP_FREEDOM_PAY_API_PUBLISHABLE_TOKEN,\n payment: {\n order: referenceNumber,\n amount: pricePayByCard.toString(),\n currency: 'KZT',\n description: 'Tickets',\n expires_at: paymentTimeoutAt.toISOString(),\n test: isProd ? 0 : 1, // 0 is prod mode, 1 is testing mode\n options: {\n callbacks: {\n result_url: bookResultLinkTemplate,\n success_url: bookResultLinkTemplate,\n },\n },\n user: {\n email,\n phone: '77777777777',\n },\n },\n successCallback() {\n navigate.replace(`${Routes.BookResult}?payment_intent=${process.referenceNumber}`);\n },\n errorCallback() {\n navigate.replace(`${Routes.BookResult}?payment_intent=0`);\n },\n };\n\n const widget = new PayBox(data);\n widget.create();\n };\n\n return (\n
\n \n
\n );\n};\n","export * from './passwordRecoveryPage';\nexport * from './resetPasswordPage';\n","import { AnimatePresence, motion } from 'framer-motion';\nimport React, { FC } from 'react';\nimport styled from 'styled-components';\n\nimport { IEventStoreState } from '../../store/event/types';\nimport { UserEventItem } from './userEventItem';\nimport { PopUp } from '../../store/animations';\n\ntype UserEventsListType = {\n events: Array;\n};\n\nexport const UserEventsList: FC = ({ events }) => (\n \n \n {events.map((event, index) => (\n \n \n \n ))}\n \n \n);\n\nconst EventsList = styled(motion.ul)`\n list-style: none;\n margin: 0;\n padding: 0;\n`;\n\nconst EventsListItem = styled.li`\n margin-bottom: 10px;\n`;\n","import * as React from 'react';\nimport { useCallback, useEffect, useLayoutEffect } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { useHistory, useLocation, useParams } from 'react-router';\nimport { Redirect, Route, Switch } from 'react-router-dom';\nimport styled from 'styled-components';\n\nimport { motion } from 'framer-motion';\nimport { Page } from '../../../components/UI';\nimport { Routes } from '../../../store/routes';\nimport RegistrationPage from './registrationPage';\nimport LoginPage from './loginPage';\nimport EmailConfirmPage from './emailConfirmPage';\nimport ProfilePage from './profilePage';\nimport EditProfilePage from './editProfilePage';\nimport UserEventsPage from './userEventsPage';\nimport UserTicketsPage from './userTicketsPage';\nimport PasswordRecoveryPage from './password/passwordRecoveryPage';\nimport ResetPasswordPage from './password/resetPasswordPage';\nimport { Pages } from '../../../store/enums';\nimport { getCurrentAccount, getUserEvents, getUserTickets } from '../../../store/user/actions';\nimport { AppTheme } from '../../../settings/appTheme';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\nimport { distributionInit } from '../../../store/distribution/actions';\n\nconst UserPage = () => {\n const { isActivePage } = useRoutesHelper();\n const dispatch = useDispatch();\n const location = useLocation();\n const history = useHistory();\n\n const { distributorSlug } = useParams<{ distributorSlug: string }>();\n\n useEffect(() => {\n if (!distributorSlug) {\n return;\n }\n\n dispatch(distributionInit(distributorSlug));\n history.push(`${Routes.Registration}`);\n }, []);\n\n const init = useCallback(() => {\n if (isActivePage(Pages.User, Pages.Profile)) {\n dispatch(getCurrentAccount());\n } else if (isActivePage(Pages.User, Pages.UserEvents)) {\n dispatch(getUserEvents());\n } else if (isActivePage(Pages.User, Pages.UserTickets)) {\n dispatch(getUserTickets());\n }\n }, [dispatch, isActivePage]);\n\n useEffect(() => {\n init();\n }, []);\n\n useLayoutEffect(() => {\n init();\n }, [location.pathname, init]);\n\n return (\n \n (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )}\n />\n \n );\n};\n\nconst RouteContainer = styled(motion.div)`\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 100%;\n`;\n\nexport default UserPage;\n","import React, { FC, memo } from 'react';\nimport dayjs from 'dayjs';\nimport styled from 'styled-components';\nimport { Skeleton } from '@mui/material';\nimport { useHistory } from 'react-router';\nimport { useTranslation } from 'react-i18next';\nimport { IBookStoreState } from '../../../store/book/types';\nimport Constants from '../../../store/constants';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\nimport { Button } from '../../../components/UI';\n\nexport const Ticket: FC<{ event: IBookStoreState }> = memo(({ event }) => {\n const history = useHistory();\n const { t } = useTranslation();\n const { getBookRoute } = useRoutesHelper();\n\n if (!event.event) {\n return ;\n }\n\n const date = `${dayjs(event.event.date).locale('en').format(Constants.DateFormat)}, ${dayjs(event.event.date).format(\n 'LT'\n )}`;\n const address = `${event.event.venue.country} ${event.event.venue.city}, ${event.event.venue.address}`;\n\n let min = 0;\n let max = 0;\n let currency = '';\n\n for (let i = 0; i < event.event.sectors.length; i++) {\n const { ticketQuotas } = event.event.sectors[i];\n for (let j = 0; j < ticketQuotas.length; j++) {\n currency = ticketQuotas[j].currency;\n if (ticketQuotas[j].price > max) {\n max = ticketQuotas[j].price;\n } else {\n min = ticketQuotas[j].price;\n }\n }\n }\n\n const price = min && min !== max ? `${min}-${max} ${currency}` : `${max} ${currency}`;\n\n const handleRouteClick = () => {\n history.push(getBookRoute(event.event.slug));\n };\n\n const WALLET_PATH = '../../../content/img/wallet.svg';\n const LOGO_PATH = '../../../content/img/logo.svg';\n const BARCODE_PATH = '../../../content/img/barcode.svg';\n\n return (\n \n
\n \n {t('Ticket.YourTicketIsReady')}\n {t('Ticket.NowChooseSeat')}\n
\n \n \n \n {event.event.artist.title}\n {date}\n {address}\n \n \n \n {price}\n \n \n \n \n \n \n \n \n
\n \n
\n
\n );\n});\n\nconst Container = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n`;\n\nconst Header = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding-bottom: 8px;\n`;\n\nconst Title = styled.div`\n text-transform: uppercase;\n font-style: normal;\n font-weight: 700;\n font-size: 21px;\n line-height: 24px;\n color: white;\n padding-top: 25px;\n @media (max-width: 600px) {\n font-size: 14px;\n line-height: 18px;\n padding-top: 15px;\n }\n`;\n\nconst SubTitle = styled.div`\n color: ${(props) => props.theme.colors.accent};\n font-style: normal;\n font-weight: 700;\n font-size: 19px;\n line-height: 20px;\n text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);\n @media (max-width: 600px) {\n font-size: 16px;\n line-height: 16px;\n }\n`;\n\nconst ImageLogo = styled.img`\n width: 210px;\n height: 42px;\n position: relative;\n left: 23px;\n @media (max-width: 600px) {\n width: 147px;\n height: 33px;\n left: ${Constants.LeftMarginLogo};\n }\n`;\n\nconst Footer = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n padding-top: 9px;\n @media (max-width: 600px) {\n padding-top: 2px;\n }\n`;\n\nconst TicketContent = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n`;\n\nconst ImageEvent = styled.img`\n width: 100%;\n height: 280px;\n object-fit: cover;\n border-radius: 16px 16px 0 0;\n @media (max-width: 600px) {\n height: 170px;\n }\n`;\n\nconst DescriptionTicket = styled(TicketContent)`\n position: relative;\n bottom: 14px;\n background: ${(props) => props.theme.colors.text};\n height: 100%;\n border-radius: 16px;\n`;\n\nconst DescriptionTitle = styled.div`\n font-family: ${(props) => props.theme.fonts.blackCapsFont};\n font-weight: 900;\n font-size: 31px;\n line-height: 26px;\n color: #1c1c1c;\n align-self: center;\n margin-top: 35px;\n margin-bottom: 25px;\n @media (max-width: 600px) {\n font-size: 24px;\n margin-top: 18px;\n margin-bottom: 10px;\n }\n`;\n\nconst DescriptionDate = styled.div`\n font-family: ${(props) => props.theme.fonts.boldFont};\n font-weight: 700;\n font-size: 18px;\n line-height: 22px;\n color: #1c1c1c;\n align-self: center;\n padding-bottom: 8px;\n @media (max-width: 600px) {\n font-size: 14px;\n line-height: 20px;\n }\n`;\n\nconst DescriptionAddress = styled.div`\n font-family: ${(props) => props.theme.fonts.boldCapsFont};\n font-weight: 700;\n font-size: 18px;\n line-height: 18px;\n color: #ffbf00;\n text-align: center;\n padding: 0 20px;\n @media (max-width: 600px) {\n font-size: 12px;\n line-height: 16px;\n }\n`;\n\nconst PriceContainer = styled.div`\n display: flex;\n flex-direction: column;\n padding: 8px;\n @media (max-width: 600px) {\n padding: 0;\n }\n`;\n\nconst PriceContent = styled.div`\n display: flex;\n justify-content: center;\n gap: 8px;\n`;\n\nconst ImageWallet = styled.img`\n width: 21px;\n height: 20px;\n @media (max-width: 600px) {\n width: 17px;\n height: 14px;\n }\n`;\n\nconst Price = styled.span`\n font-family: ${(props) => props.theme.fonts.boldFont};\n font-size: 19px;\n line-height: 20px;\n color: black;\n @media (max-width: 600px) {\n font-size: 14px;\n line-height: 16px;\n }\n`;\n\nconst ContainerBorder = styled.div`\n height: 36px;\n width: 100%;\n padding: 0 40px;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n justify-content: center;\n position: relative;\n\n @media (max-width: 600px) {\n height: 30px;\n }\n\n &:before {\n content: '';\n position: absolute;\n left: -20px;\n width: 40px;\n height: 100%;\n border-radius: 50%;\n background: #1c1c1c;\n @media (max-width: 600px) {\n width: 35px;\n }\n }\n\n &:after {\n content: '';\n position: absolute;\n right: -20px;\n width: 40px;\n height: 100%;\n border-radius: 50%;\n background: #1c1c1c;\n @media (max-width: 600px) {\n width: 35px;\n }\n }\n`;\n\nconst Border = styled.div`\n width: 100%;\n height: 1px;\n background-image: linear-gradient(87deg, black 50%, transparent 0%);\n background-size: 12px 1px;\n background-repeat: repeat-x;\n padding: 0 20px;\n`;\n\nconst Barcode = styled.img`\n margin: 5px auto;\n display: flex;\n width: 100%;\n height: 62px;\n padding: 0 40px 5px 40px;\n @media (max-width: 600px) {\n padding: 0 40px 10px 40px;\n margin: 0 auto;\n }\n`;\n","import styled from 'styled-components';\n\nimport { motion } from 'framer-motion';\nimport { Label } from '../UI';\n\nexport interface IBaseFormProps {\n submitTitle?: string;\n errors?: any;\n onSubmit?: (formModel: TFormModel) => void;\n}\n\ninterface IFieldWrapperProps {\n inline?: boolean;\n noted?: boolean;\n}\n\ninterface IFieldsetProps {\n fullWidth?: boolean;\n}\n\nexport const Fieldset = styled.fieldset`\n border: none;\n display: flex;\n flex-direction: column;\n margin: ${(props) => (props.fullWidth ? '0 -25px' : '0')};\n padding: 0;\n`;\n\nexport const FieldWrapper = styled(motion.div)`\n margin-bottom: ${(props) => (props.noted ? '0' : '15px')};\n display: flex;\n flex-direction: ${(props) => (props.inline ? 'row' : 'column')};\n\n > input:not([type='radio']),\n > div {\n flex: 1;\n\n &:not(:last-child) {\n margin-right: ${(props) => (props.inline ? '10px' : '0')};\n }\n }\n`;\n\nexport const FieldsetLabel = styled(Label)`\n margin-bottom: 10px;\n font-size: 12px;\n text-align: center;\n`;\n\nexport const FieldInfo = styled(motion.span)`\n color: ${(props) => props.theme.colors.accent};\n font-size: 10px;\n display: block;\n margin: 10px 21px;\n font-family: ${(props) => props.theme.fonts.lighterFont};\n`;\n\nexport const FieldError = styled(FieldInfo)<{ theme: { colors: { error: string } } }>`\n color: ${(props) => props.theme.colors.error};\n`;\n\nexport const FormError = styled(FieldError)`\n font-size: 12px;\n margin: 5px 0;\n padding: 10px 21px;\n`;\n\nexport const FormInfo = styled(FieldInfo)`\n font-size: 12px;\n line-height: 15px;\n margin: 5px 0;\n padding: 10px 21px;\n`;\n","import { AlertType, BookStatus, DomainType, Pages } from '../store/enums';\nimport { store } from '../index';\nimport { IBookStoreState } from '../store/book/types';\nimport { Routes } from '../store/routes';\nimport { DomainSetting } from '../settings/appSettings';\n\nclass RouteService {\n private static _instance: RouteService;\n\n constructor() {\n if (typeof RouteService._instance === 'undefined') {\n RouteService._instance = this;\n }\n return RouteService._instance;\n }\n\n public isActivePage(pageName: string, subPageName?: string, options?: Array): boolean {\n if (window.location && window.location.pathname) {\n const routeData = window.location.pathname.substr(1).split('/');\n if (routeData && routeData.length > 0) {\n const currentPageName = routeData[0];\n const currentSubPageName = routeData[1];\n\n const isCurrentPage = pageName.toLowerCase().replace('/', '') === currentPageName.toLowerCase();\n\n if (!!subPageName) {\n const isCurrentSubPage =\n !!currentSubPageName && subPageName.toLowerCase() === currentSubPageName.toLowerCase();\n\n if (!!options) {\n let isCurrentOptionsPage = true;\n options.forEach((o) => {\n const isExistOpt = routeData.indexOf(o) > -1;\n if (!isExistOpt) {\n isCurrentOptionsPage = false;\n }\n });\n return isCurrentPage && isCurrentSubPage && isCurrentOptionsPage;\n }\n return isCurrentPage && isCurrentSubPage;\n }\n return isCurrentPage;\n }\n }\n return false;\n }\n\n public getBaseUrl(): string {\n return location.origin || location.protocol + '//' + location.host;\n }\n\n public getLocation(domain?: string): string {\n let host = location.host;\n if (domain) {\n host = this.checkIsDev() ? `dev.${domain}` : domain;\n }\n return `${location.protocol}//${host}${location.pathname}${location.search}`;\n }\n\n public getRouteData(): Array {\n const routeData = window.location.pathname.split('/');\n return routeData.filter((routeSegment) => !!routeSegment);\n }\n\n public getwidgetToken(): string {\n const routeData = this.getRouteData();\n const page = routeData && routeData[0];\n let token = '';\n switch (page) {\n case Pages.Widget:\n token = routeData[2];\n break;\n default:\n token = '';\n break;\n }\n\n return token;\n }\n\n public getEventRoute(eventSlug: string): string {\n return `/${Pages.EventDetails}/${eventSlug}`;\n }\n\n public getBookRoute(\n eventSlug: string,\n quotaId?: string,\n sectorSlug?: string,\n rowSlug?: string,\n tickets?: number,\n sell: boolean = false\n ): string {\n const page = `/${sell ? Pages.Sell : Pages.Book}/${eventSlug}`;\n const quota = !!quotaId ? `/${quotaId}` : '';\n const sector = !!sectorSlug ? `/${sectorSlug}` : '';\n const sectorRow = !!sector && !!rowSlug ? `/${rowSlug}` : '';\n const ticketsCount = !!sector && !sectorRow && !!tickets ? `/${tickets}` : '';\n return page + sector + quota + sectorRow + ticketsCount;\n }\n\n public getBookRouteFromBook(book: IBookStoreState, sell: boolean = false): string {\n if (!book || !book.event) return null;\n return this.getBookRoute(book.event.slug, null, book.sectorSlug, null, null, sell);\n }\n\n public getCheckoutRoute(\n eventSlug: string,\n quotaId: number,\n sectorSlug?: string,\n rowSlug?: string,\n tickets?: number\n ): string {\n return this.getBookRoute(eventSlug, quotaId.toString(), sectorSlug, rowSlug, tickets) + `/${Pages.Checkout}`;\n }\n\n public getCheckoutRouteFromBook(book: IBookStoreState): string {\n return this.getBookRouteFromBook(book) + `/${Pages.Checkout}`;\n }\n\n public getWidgetRouteFromToken(token: string): string {\n if (!token) return null;\n return `/${Pages.Widget}/${Pages.Book}/${token}`;\n }\n\n public getBookResultRoute(status: BookStatus = null): string {\n return `/${Pages.Book}/${Pages.BookResult}/${status}`;\n }\n\n public getProfileRoute(): string {\n const state = store.getState();\n const isAuthorized = state.app.isAuthorized && state.user && state.user.email;\n if (isAuthorized && !state.user.phoneNumberConfirmed) return Routes.EditProfile;\n else if (isAuthorized) return Routes.Profile;\n else return Routes.Login;\n }\n\n public getUserTicketsRoute(): string {\n return `/${Pages.User}/${Pages.UserTickets}`;\n }\n\n public getUserTicketRoute(masterTicketId: string, ticketId: string): string {\n return this.getUserTicketsRoute() + `/${masterTicketId}/${ticketId}`;\n }\n\n public getUserTicketSellRoute(masterTicketId: string, ticketId: string): string {\n return this.getUserTicketsRoute() + `/sell/${masterTicketId}/${ticketId}`;\n }\n\n public getUserTicketPurchaseRoute(masterTicketId: string, ticketId: string): string {\n return this.getUserTicketsRoute() + `/Purchase/${masterTicketId}/${ticketId}`;\n }\n\n public getEmailConfirmationRedirectUrl() {\n return `${this.getBaseUrl()}/${Pages.User}/${Pages.EmailConfirm}`;\n }\n\n public getResetPasswordRedirectUrl() {\n return `${this.getBaseUrl()}/${Pages.User}/${Pages.ResetPassword}`;\n }\n\n private checkIsDev(): boolean {\n return location.host.includes('dev');\n }\n\n public getEventCategoryRoute(categorySlug: string): string {\n return `/${Pages.Categories}/${categorySlug}`;\n }\n\n public getEventsLocation(city: string) {\n return `?city=${city}`;\n }\n\n public getResultStatusRoute(status, key) {\n const isSuccess = status !== AlertType.Error;\n return `${isSuccess ? Routes.Success : Routes.Failed}/${key}`;\n }\n\n public getDomainType(domainName: string): number {\n const parseDomain = domainName.split('.');\n const domain = parseDomain[parseDomain.length - 1];\n\n switch (domain) {\n case DomainSetting.By:\n return DomainType.By;\n case DomainSetting.Ru:\n return DomainType.Ru;\n case DomainSetting.Co:\n return DomainType.Co;\n case DomainSetting.Info:\n return DomainType.Info;\n case DomainSetting.Live:\n return DomainType.Live;\n case DomainSetting.Me:\n return DomainType.Me;\n case DomainSetting.Eu:\n return DomainType.Eu;\n case DomainSetting.Com:\n return DomainType.Com;\n case DomainSetting.Kz:\n return DomainType.Kz\n default:\n return DomainType.None;\n }\n }\n}\n\nexport default RouteService;\n","import { Dispatch } from 'redux';\nimport { action } from 'typesafe-actions';\n\nimport { BookActionTypes, IBookStoreState, BookStoreState } from './types';\nimport { IEventStoreState, ISeatStoreState } from '../event/types';\n\nconst init = (payload: IBookStoreState) => action(BookActionTypes.BOOK_INIT, payload);\nexport const setQuota = (payload: number) => action(BookActionTypes.BOOK_SET_QUOTA, payload);\nexport const setSector = (payload: string) => action(BookActionTypes.BOOK_SET_SECTOR, payload);\nexport const setSectorRow = (payload: string) => action(BookActionTypes.BOOK_SET_SECTOR_ROW, payload);\nexport const setSectorRowSeat = (payload: string) => action(BookActionTypes.BOOK_SET_SECTOR_ROW_SEAT, payload);\nexport const setTicketsCount = (payload: number) => action(BookActionTypes.BOOK_SET_TICKETS_COUNT, payload);\nconst clear = () => action(BookActionTypes.BOOK_CLEAR);\n\nexport const initBook =\n (event: IEventStoreState, sectorSlug?: string, seats?: ISeatStoreState[], token?: string) =>\n (dispatch: Dispatch): Promise => {\n const book = new BookStoreState();\n book.event = event;\n book.sectorSlug = sectorSlug;\n book.seats = seats;\n book.token = token;\n dispatch(clear());\n dispatch(init(book));\n return Promise.resolve(book);\n };\n\nexport const clearBook =\n () =>\n (dispatch: Dispatch): void => {\n dispatch(clear());\n };\n","import React, { FC } from 'react';\nimport styled from 'styled-components';\n\nimport { PageContent } from './page';\n\ntype MessagePropsType = {\n title: string;\n description?: string;\n icon?: string;\n\n renderButtons?: () => JSX.Element;\n};\n\nexport const Message: FC = ({ title, renderButtons, icon, description }) => {\n return (\n \n {title}\n {description && {description}}\n {renderButtons && renderButtons()}\n \n );\n};\n\nconst Container = styled(PageContent)<{ icon: string }>`\n justify-content: center;\n\n &:before {\n content: ${(props) => (props.icon ? `url(${props.icon})` : 'none')};\n text-align: center;\n }\n`;\n\nconst Title = styled.h1`\n font-size: 16px;\n text-align: center;\n font-family: ${(props) => props.theme.fonts.boldFont};\n`;\n\nconst Description = styled(Title)<{ theme: { fonts: string } }>`\n margin-bottom: 30px;\n font-size: 14px;\n line-height: 18px;\n font-family: ${(props) => props.theme.fonts.regularFont};\n`;\n\nexport const MessageButtonsWrapper = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n\n > button {\n margin-top: 20px;\n }\n`;\n","export * from './checkoutPage';\n","export * from './eventHelper';\nexport * from './checkoutHelper';\nexport * from './userHelper';\n","export * from './contactsPage';\nexport * from './paymentsInfoPage';\n","import React, { FC } from 'react';\nimport { Dialog, DialogContent, DialogTitle } from '@mui/material';\nimport { makeStyles } from 'tss-react/mui';\nimport Button from '../UI/button';\n\nconst useStyles = makeStyles()(() => ({\n paper: {\n background: 'rgba(18, 17, 17, 1)',\n boxShadow: '4px -4px 8px rgba(0, 0, 0, 0.4), -4px 4px 8px rgba(0, 0, 0, 0.4)',\n borderRadius: '12px',\n color: '#fff',\n },\n content: {\n display: 'flex',\n flexDirection: 'column',\n gap: '20px',\n padding: '20px 55px',\n },\n button: {\n position: 'absolute',\n right: 0,\n top: '50%',\n transform: 'translate(-50%, -50%)',\n },\n}));\n\nexport const ModalBonusTicket: FC = ({ handleClose, open }) => {\n const { classes } = useStyles();\n\n const handleNavigateClick = () => {\n window.open('https://wa.me/37128294056');\n handleClose();\n };\n\n return (\n \n
\n Как получить бонусный билет?\n
\n\n \n
\n Стань распространителем на Fanaticka, помоги другим пользователям купить 10 билетов и ты сможешь получить\n бонусный билет. Так давно делают другие фанаты. Как? Наши пользователи-волонтеры с радостью подскажут в\n WhatsApp или службе поддержки😊\n
\n
\n \n
\n
\n \n );\n};\n\ntype ModalBonusTicketPropsType = {\n handleClose: () => void;\n open: boolean;\n};\n","import Axios, { AxiosInstance } from 'axios';\n\nimport { IGlobalStoreState } from '../store';\nimport { store } from '../index';\nimport { AlertType, KeyErrors, RequestType } from '../store/enums';\nimport { clearError, hideSpinner, setError } from '../store/app/actions';\nimport { ErrorStoreState } from '../store/app/types';\nimport { logout } from '../store/user/actions';\nimport { setResultInfo } from '../store/resultInformarion/actions';\n\nexport class BaseApiService {\n protected config: any;\n protected service: AxiosInstance;\n\n constructor(config?: any) {\n this.config = config || {};\n this.service = Axios.create({\n baseURL: config.baseURL || '',\n withCredentials: false,\n headers: {\n Authorization: '',\n },\n });\n }\n\n get(url: string, config?: any, requestType?: RequestType) {\n config = this.getProcessedConfig(config);\n return this.processRequest(this.service.get(url, config), requestType);\n }\n\n post(url: string, data?: any, config?: any, requestType?: RequestType) {\n data = data || {};\n config = this.getProcessedConfig(config);\n return this.processRequest(this.service.post(url, data, config), requestType);\n }\n\n put(url: string, data?: any, config?: any) {\n data = data || {};\n config = this.getProcessedConfig(config);\n return this.processRequest(this.service.put(url, data, config));\n }\n\n delete(url: string, config?: any) {\n config = this.getProcessedConfig(config);\n return this.processRequest(this.service.delete(url, config));\n }\n\n processRequest(request: Promise, requestType?: RequestType) {\n this.preProcessRequest(requestType);\n return request\n .then((response) => this.handleResponse(response))\n .catch((error) => this.handleError(error, requestType ?? RequestType.none));\n }\n\n preProcessRequest(requestType) {\n const { error } = store.getState().app;\n\n if (!error || error.requestType !== requestType) {\n return;\n }\n\n store.dispatch(clearError());\n }\n\n handleResponse(data: any) {\n return Promise.resolve(data);\n }\n\n handleError(error: any, requestType: RequestType) {\n if (!error.response || error.response.status === 500) {\n store.dispatch(hideSpinner());\n store.dispatch(\n setResultInfo({\n type: AlertType.Error,\n key: KeyErrors.ServerError,\n title: 'Alert.SomethingWentWrong',\n message: 'Alert.ServerError',\n })\n );\n } else if (error.response.status === 401) {\n store.dispatch(logout());\n } else {\n const errorModel = new ErrorStoreState(\n error.response.data.Message || error.response.data,\n error.response.data.MessageDetails,\n requestType,\n 'error'\n );\n store.dispatch(clearError());\n store.dispatch(setError(errorModel));\n }\n return Promise.reject(error);\n }\n\n private getProcessedConfig(config: any): any {\n const currentConfig = { ...this.config, ...config };\n currentConfig.headers = currentConfig.headers || {};\n currentConfig.headers = this.getAuthHeaders(currentConfig.headers);\n return currentConfig;\n }\n\n private getAuthHeaders(headers: any): any {\n const state = store.getState();\n const authorization = state.auth && state.auth.access_token ? `Bearer ${state.auth.access_token}` : '';\n return {\n ...headers,\n Authorization: authorization,\n };\n }\n}\n","import { Dispatch } from 'redux';\nimport { action } from 'typesafe-actions';\nimport dayjs from 'dayjs';\n\nimport { IRegionalInfoStoreState, RegionActionTypes } from './types';\nimport { ThunkService } from '../../services';\nimport { IGlobalStoreState } from '..';\n\nexport const setRegion = (payload: IRegionalInfoStoreState) => action(RegionActionTypes.REGION_SET, payload);\n\nexport const getRegion = (): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService,\n) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n const state = getState();\n const region = state.region;\n const isAfter = dayjs().isAfter(region.lastCheckedAt);\n if (!region || !region.lastCheckedAt || isAfter) {\n const response = await thunkService.api.home.getRegion();\n dispatch(setRegion(response));\n return Promise.resolve(response);\n }\n return Promise.resolve(region);\n };\n};\n","import React, { FC, memo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { motion } from 'framer-motion';\nimport styled from 'styled-components';\nimport { PopUp } from '../../../../store/animations';\nimport { IProfileTicketQuotaStoreState } from '../../../../store/ticket/ProfileTicketQuotaStoreState';\nimport { EmailForm, IEmailForm } from '../../../../components/forms';\nimport { Subtitle } from '../userTicketDetailsPage';\n\nexport const RenderForm: FC = memo(({ handleEmailFormSubmit, errors }) => {\n const { t } = useTranslation();\n\n return (\n \n \n handleEmailFormSubmit(formModel)}\n />\n \n );\n});\n\nexport const RenderIssuedInfo: FC<{ issuedTo: string }> = memo(({ issuedTo }) => {\n const { t } = useTranslation();\n return (\n \n {t('TicketDetails.TheTicketWasSentByEmail')}\n {issuedTo}\n \n );\n});\n\nexport const RenderTicketSector: FC = memo(({ ticketQuota, rowTitle, seatTitle }) => {\n const { t } = useTranslation();\n\n if (!ticketQuota) {\n return null;\n }\n\n let title = ticketQuota.sector ? ticketQuota.sector.title : ticketQuota.title;\n if (rowTitle) {\n title += ` ${t('TicketDetails.Row')} ${rowTitle}`;\n }\n if (seatTitle) {\n title += ` ${t('TicketDetails.Seat')} ${seatTitle}`;\n }\n return {title};\n});\n\nconst Label = styled.h3`\n font-size: 12px;\n margin: 0 0 15px 0;\n text-align: center;\n`;\n\nconst InfoWrapper = styled(motion.div)`\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n`;\n\nconst InfoItem = styled.p`\n font-size: 14px;\n text-align: center;\n margin: 0;\n padding: 0;\n line-height: 19px;\n`;\n\nconst FormWrapper = styled(motion.div)``;\n\ntype TicketSectorPropsType = {\n ticketQuota: IProfileTicketQuotaStoreState;\n rowTitle: string;\n seatTitle: string;\n};\n\ntype RenderFormPropsType = {\n handleEmailFormSubmit: (formModel: IEmailForm) => void;\n errors: {\n form: string;\n };\n};","import React, { FC } from 'react';\nimport styled from 'styled-components';\n\nimport { useTranslation } from 'react-i18next';\nimport { ISelectorItem, SelectorItem } from './selectorItem';\nimport { Label } from '../label';\n\ninterface ISelectorProps {\n title?: string;\n items: ISelectorItem[];\n}\n\nexport const Selector: FC = ({ items, title }) => {\n const { t } = useTranslation();\n if (!items || !items.length) {\n return null;\n }\n return (\n \n {title && {t(title)}}\n {items.map((item, index) => (\n \n ))}\n \n );\n};\n\nconst Container = styled.ul`\n margin: 0;\n padding: 0;\n list-style: none;\n`;\n\nconst Title = styled(Label as any)``;\n","import * as ReactGA from 'react-ga';\nimport TagManager from 'react-gtm-module';\nimport { AnalyticsSettings, AppSettings } from '../settings/appSettings';\n\nexport class AnalyticService {\n trackEvent(data: string, value?: any) {\n if (!AppSettings.IS_DEV) {\n ReactGA.event({\n category: 'main',\n action: data,\n label: 'no',\n });\n\n const ReactPixel = require('react-facebook-pixel').default;\n ReactPixel.track(data, value);\n }\n }\n\n trackPageView(data: string) {\n if (!AppSettings.IS_DEV) {\n ReactGA.pageview(data);\n }\n }\n\n initialize() {\n if (!AppSettings.IS_DEV) {\n ReactGA.initialize(AnalyticsSettings.GOOGLE_TRACKING_ID);\n const ReactPixel = require('react-facebook-pixel').default;\n ReactPixel.init('528267061237134', {}, { debug: false, autoConfig: true });\n ReactPixel.pageView();\n }\n TagManager.initialize({ gtmId: 'GTM-PC5SSP6' });\n }\n}\n","import React, { FC } from 'react';\nimport styled from 'styled-components';\nimport * as Yup from 'yup';\nimport { Field, Form, Formik } from 'formik';\n\nimport { useTranslation } from 'react-i18next';\nimport { AnimatePresence } from 'framer-motion';\nimport { Button, TextInput } from '../UI';\nimport { FieldError, Fieldset, FieldWrapper, FormError } from './commonForm';\nimport { PopUp } from '../../store/animations';\n\nexport type PasswordRecoveryFormType = {\n email: string;\n};\n\ntype PasswordRecoveryFormProps = {\n submitTitle: string;\n onSubmit: (LoginFormType) => void;\n errors: any;\n};\n\nexport const PasswordRecoveryForm: FC = ({ submitTitle, onSubmit, errors }) => {\n const { t } = useTranslation();\n\n const ValidationSchema = Yup.object().shape({\n email: Yup.string().required(t('PasswordRecovery.EmailRequired')).email(t('PasswordRecovery.EmailIncorrect')),\n });\n\n const initialValues = {\n email: '',\n };\n\n return (\n {\n if (onSubmit) {\n onSubmit(values);\n }\n }}\n >\n {({ isValid, handleChange, handleBlur, values }) => (\n \n \n \n {({ field, form }) => (\n \n \n \n {!!form.touched.email && !!form.errors && !!form.errors.email && (\n \n {form.errors.email}\n \n )}\n \n \n )}\n \n \n \n {!!errors && !!errors.form && (\n \n {t(errors.form.details) || t(errors.form.message)}\n \n )}\n \n \n \n )}\n \n );\n};\n\nconst StyledFieldset = styled(Fieldset)`\n flex: 1;\n`;\n\nconst StyledForm = styled(Form)`\n width: 100%;\n display: flex;\n flex-direction: column;\n`;\n","import i18next from 'i18next';\nimport React, { useEffect } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useTranslation } from \"react-i18next\";\nimport { Page } from '../../../components/UI';\nimport { GlobalStoreState, IGlobalStoreState } from '../../../store';\nimport { IEventStoreState } from '../../../store/event/types';\nimport { hideAdButton, hideCitySelector, showAdButton, showCitySelector } from '../../../store/header/actions';\nimport EventHeadline from '../../../components/event/eventHeadline';\nimport { EventHelper } from '../../../helpers';\nimport { AnalyticService } from '../../../services';\n\nexport const EventsPage = () => {\n const dispatch = useDispatch();\n const { t } = useTranslation();\n\n const events = useSelector((state) => state.events);\n const isInitializing = useSelector((state) => state.app.isInitializing);\n const userEvents = useSelector((state) => state.userEvents);\n\n const analyticSrv = new AnalyticService();\n\n useEffect(() => {\n analyticSrv.trackEvent('EventsList');\n dispatch(showAdButton());\n dispatch(showCitySelector());\n\n return () => {\n dispatch(hideAdButton());\n dispatch(hideCitySelector());\n };\n }, []);\n\n if (isInitializing || !events.length) {\n return null;\n }\n\n return (\n e.title)}\n >\n \n {events.slice(1).map((event, index) => (\n \n ))}\n \n );\n};\n","export interface IHeaderStoreState {\n showAdButton: boolean;\n showPlayer: boolean;\n showCitySelector: boolean;\n}\n\nexport class HeaderStoreState implements IHeaderStoreState {\n showAdButton: boolean;\n showPlayer: boolean;\n showCitySelector: boolean;\n\n constructor() {\n this.showAdButton = true;\n this.showPlayer = false;\n this.showCitySelector = false;\n }\n}\n\nexport enum HeaderActionTypes {\n HEADER_SHOW = '@@header/SHOW',\n HEADER_HIDE = '@@header/HIDE',\n PLAYER_SHOW = '@@header/PLAYER_SHOW',\n PLAYER_HIDE = '@@header/PLAYER_HIDE',\n CITYSELECTOR_SHOW = '@@header/CITYSELECTOR_SHOW',\n CITYSELECTOR_HIDE = '@@header/CITYSELECTOR_HIDE',\n}\n","import { Reducer } from 'redux';\nimport { ILocationStoreState, LocationActionTypes, LocationStoreState } from './types';\n\nconst locationReducer: Reducer = (state: LocationStoreState = null, action) => {\n switch (action.type) {\n case LocationActionTypes.INIT_LOCATION:\n return { ...state, location: action.payload } as LocationStoreState;\n default:\n return state;\n }\n};\n\nexport default locationReducer;\n","import * as React from 'react';\nimport styled from 'styled-components';\nimport { FC } from 'react';\n\nexport interface ICheckboxSelectorItem {\n title: string;\n value: string;\n note?: string;\n selected?: boolean;\n disabled?: boolean;\n\n onSelect?: (value: string) => void;\n}\n\nexport const CheckboxSelectorItem: FC = ({\n note,\n disabled,\n onSelect,\n selected,\n value,\n title,\n}) => {\n const handleItemClick = (e: any) => {\n if (!disabled && onSelect) {\n onSelect(value);\n }\n };\n return (\n \n handleItemClick(e)}>\n \n \n {title}\n \n {note && {note}}\n \n \n );\n};\n\nconst Checkbox = styled.input`\n margin-right: 10px;\n`;\n\nconst Container: any = styled.li`\n padding: 0 25px;\n margin: 0 -25px;\n opacity: ${(props: any) => props.disabled && 0.3};\n\n &:hover {\n background-color: ${(props: any) => !props.disabled && props.theme.colors.accent};\n\n > a > div > span {\n color: black;\n }\n }\n`;\n\nconst Wrapper = styled.div`\n padding: 10px 0;\n margin-bottom: -1px;\n display: flex;\n align-items: center;\n border-bottom: 1px solid ${(props) => props.theme.colors.accent};\n cursor: pointer;\n`;\n\nconst TitleWrapper = styled.div`\n flex: 1;\n display: flex;\n align-items: center;\n`;\n\nconst Title = styled.p`\n padding: 0;\n margin: 0;\n font-size: 14px;\n`;\n\nconst NoteWrapper = styled.div`\n display: flex;\n align-items: center;\n`;\n","import { Box, Grid, Link, Typography, Skeleton } from '@mui/material';\nimport { makeStyles } from 'tss-react/mui';\nimport React, { FC, useEffect, useState } from 'react';\nimport dayjs from 'dayjs';\nimport { useRouteService } from '../../../helpers/customHooks';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\nimport { AppTheme } from '../../../settings/appTheme';\nimport Constants from '../../../store/constants';\nimport { ItemEventCarouselType } from '../events';\n\nconst useStyles = makeStyles()((_theme, _params, classes) => ({\n box: {\n overflow: 'scroll',\n overflowY: 'hidden',\n '&::-webkit-scrollbar': {\n height: `${AppTheme.scrollbarHeight}`,\n },\n marginBottom: 50,\n },\n gridList: {\n flexWrap: 'nowrap',\n // Promote the list into his own layer on Chrome. This cost memory but helps keeping high FPS.\n transform: 'translateZ(0)',\n marginBottom: '7px',\n marginTop: '7px',\n },\n gridTile: {\n height: '88px',\n },\n gridContainer: {\n width: '266px',\n cursor: 'pointer',\n },\n gridTileImage: {\n height: '88px',\n width: '88px',\n objectFit: 'cover',\n borderRadius: '10px',\n boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.4)',\n },\n skeletonImage: {\n height: '88px',\n width: '88px',\n borderRadius: '10px',\n },\n skeletonText: {\n height: 20,\n marginTop: 2,\n marginLeft: 5,\n },\n textEvent: {\n fontSize: '14px',\n lineHeight: '14px',\n color: '#6B6B6B',\n },\n linkStyle: {\n '&:hover': {\n [`& .${classes.gridTileImage}, .${classes.gradientImg}, .${classes.titleEvent}`]: {\n filter: 'brightness(60%)',\n },\n },\n },\n gridImg: {\n position: 'relative',\n },\n gradientImg: {\n position: 'absolute',\n width: '88px',\n height: '32px',\n left: '0px',\n bottom: '5px',\n background: 'linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%)',\n opacity: 0.7,\n borderRadius: '0px 0px 8px 8px',\n },\n titleEvent: {\n fontSize: '16px',\n lineHeight: '16px',\n marginBottom: '12px',\n },\n linesContainer: {\n marginBottom: 29,\n },\n}));\n\nexport const DatepickerCarousel: FC = ({\n load,\n reloadDependencyValue,\n defaultRowsCount,\n}) => {\n const [rowsCount, setRowsCount] = useState(defaultRowsCount);\n const [events, setEvents] = useState([]);\n const [isLoading, setIsLoading] = useState(true);\n\n const { classes } = useStyles();\n\n const { getEventRoute } = useRouteService();\n const { handleEventLink } = useRoutesHelper();\n\n useEffect(() => {\n setIsLoading(true);\n\n const loadEvents = async () => {\n const result = await load();\n\n const resultEvent = [];\n const defaultColumnCount = 3;\n\n let internalRowCount = defaultRowsCount;\n\n if (result.length > defaultColumnCount) {\n while (result.length / internalRowCount < defaultColumnCount && internalRowCount > 2) {\n internalRowCount--;\n setRowsCount(internalRowCount);\n }\n }\n\n for (let row = 0; row < internalRowCount; row++) {\n const rows = [];\n for (let eventIndex = 0; eventIndex < result.length; eventIndex += internalRowCount) {\n const event = result[row + eventIndex];\n if (event) {\n rows.push(event);\n }\n }\n\n resultEvent.push(rows);\n }\n\n setEvents(resultEvent);\n setIsLoading(false);\n };\n loadEvents();\n }, [reloadDependencyValue]);\n\n const renderEvent = (item: ItemEventCarouselType) => (\n \n handleEventLink(item.domainTypes, getEventRoute(item.key))}\n >\n \n \n {item.title}\n
\n \n \n \n \n \n {item.title}\n \n \n \n \n {dayjs(item.date).format(Constants.DateFormat)}\n \n \n \n \n {item.city}\n \n \n \n \n \n \n \n );\n\n const renderSkeleton = (index: number) => (\n \n \n \n \n \n \n \n \n \n \n \n \n );\n\n const renderLine = (items: ItemEventCarouselType[]) => (\n \n {!isLoading && items.length > 0 && items.map((item) => renderEvent(item))}\n {isLoading && Array.from(new Array(rowsCount)).map((value, index) => renderSkeleton(index))}\n \n );\n\n return (\n \n \n {events?.map((item, index) => (\n \n {renderLine(item)}\n \n ))}\n \n \n );\n};\n\ntype DatepickerEventCarouselType = {\n reloadDependencyValue?: any;\n load: () => Promise;\n defaultRowsCount: number;\n};\n","import styled from 'styled-components';\n\ninterface IInputProps {\n error?: boolean;\n}\n\nexport const TextInput = styled.input`\n border: 1px solid ${(props) => (props.error ? props.theme.colors.error : props.theme.colors.text)};\n width: 100%;\n padding: 15px 40px 15px 20px;\n font-size: 12px;\n background: transparent;\n border-radius: 24px;\n outline: none;\n color: ${(props) => (props.error ? props.theme.colors.error : props.theme.colors.text)};\n transition: width 0.2s ease-in;\n\n &:focus {\n border-color: ${(props) => props.theme.colors.accent};\n }\n\n &::placeholder {\n color: ${(props) => props.theme.colors.text};\n opacity: 0.5;\n }\n\n &:read-only {\n opacity: 1;\n }\n`;\n\nexport const RadioButton = styled.input``;\n\ninterface IInputWrapperProps {\n valid?: boolean;\n}\n\nexport const InputWrapper = styled.div`\n display: flex;\n align-items: center;\n position: relative;\n\n &:after {\n content: ${(props) => (props.valid ? '\"\"' : '')};\n display: inline-block;\n width: 6px;\n height: 12px;\n border: solid ${(props) => props.theme.colors.accent};\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n position: absolute;\n right: 20px;\n bottom: 17px;\n }\n\n > input {\n color: ${(props) => (props.valid ? props.theme.colors.accent : props.theme.colors.text)};\n }\n`;\n\nexport default TextInput;\n","import { Dispatch } from 'redux';\nimport { action } from 'typesafe-actions';\nimport { ResultInfoActionTypes, ResultInfoType } from './types';\n\nexport const resultInfo = (payload: ResultInfoType) => action(ResultInfoActionTypes.RESULT_INFO_SHOW, payload);\nexport const clearInfo = () => action(ResultInfoActionTypes.RESULT_INFO_CLEAR);\n\nexport const setResultInfo = (config: ResultInfoType) => (dispatch: Dispatch) => {\n if (!config) {\n return;\n }\n dispatch(resultInfo(config));\n};\n","import { Reducer } from 'redux';\nimport { ResultInfoActionTypes, ResultInfoType } from './types';\n\nexport const resultInfoStoreState: ResultInfoType = {\n type: null,\n key: null,\n message: null,\n title: null,\n buttons: [],\n};\n\nconst resultInfoReducer: Reducer = (state = resultInfoStoreState, action): ResultInfoType => {\n switch (action.type) {\n case ResultInfoActionTypes.RESULT_INFO_SHOW: {\n return { ...action.payload };\n }\n case ResultInfoActionTypes.RESULT_INFO_CLEAR:\n return { ...state, type: null, key: null, message: null, title: null, buttons: [] };\n default:\n return state;\n }\n};\n\nexport default resultInfoReducer;\n","import { Grid, Link, Typography, Skeleton } from '@mui/material';\nimport { makeStyles } from 'tss-react/mui';\nimport React, { FC, memo, useCallback } from 'react';\nimport { useHistory } from 'react-router';\nimport { useTranslation } from 'react-i18next';\nimport { IEventCategory } from '../../store/event/types';\nimport { SkeletonEventCarousel } from './skeletonEventCarousel';\nimport useApi from '../../services/apiService';\nimport { Events } from './events';\nimport { useRouteService } from '../../helpers/customHooks';\n\nconst useStyles = makeStyles()(() => ({\n skeletonContainer: {\n marginLeft: '25px',\n marginRight: '25px',\n },\n skeletonTitle: {\n marginBottom: 20,\n },\n skeletonText: {\n height: 20,\n marginTop: '10px',\n },\n gridTitle: {\n fontSize: 14,\n lineHeight: '14px',\n textTransform: 'uppercase',\n display: 'inline-block',\n '&:hover': {\n textDecoration: 'none',\n cursor: 'pointer',\n },\n },\n}));\n\nexport const CategorizedEventCarousel: FC = memo(({ categories }) => {\n const history = useHistory();\n const { classes } = useStyles();\n const { eventsApi } = useApi();\n const routeSrv = useRouteService();\n const { t } = useTranslation();\n\n const loadCategorisedEvents = useCallback(async (categoryId: number) => {\n const result = await eventsApi.getEventsByCategories({ categoryId });\n return result.map((event) => ({\n key: event.slug,\n title: event.title,\n imageUrl: event.posterUrl,\n date: event.date,\n city: event.city,\n domainTypes: event.domainTypes,\n }));\n }, []);\n\n return (\n \n {!categories.length &&\n Array.from(new Array(3)).map((value, index) => (\n \n
\n \n
\n \n
\n ))}\n\n {categories.length &&\n categories\n .sort((a, b) => b.eventsCount - a.eventsCount)\n .map((category) => (\n \n
\n {!categories.length && (\n \n \n \n )}\n {categories.length && (\n \n {t(`Dashboard.Categories.${category.slug}`)}\n \n )}\n
\n loadCategorisedEvents(category.id)} />\n
\n ))}\n
\n );\n});\n\ntype CategorizedEventCarouselType = {\n categories: IEventCategory[];\n};\n","import * as React from 'react';\nimport { useEffect } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useHistory } from 'react-router';\nimport { useTranslation } from 'react-i18next';\nimport styled from 'styled-components';\nimport { IGlobalStoreState } from '../../../store';\nimport { Button, Message, MessageButtonsWrapper } from '../../../components/UI';\nimport { ResultInfoButtonConfigType, ResultInfoType } from '../../../store/resultInformarion/types';\nimport { AppTheme } from '../../../settings/appTheme';\nimport { KeyErrors } from '../../../store/enums';\nimport { clearInfo } from '../../../store/resultInformarion/actions';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\n\nexport const InformationFailed = () => {\n const dispatch = useDispatch();\n const { t } = useTranslation();\n const history = useHistory();\n\n const config = useSelector((state) => state.resultInfo);\n const { getBaseUrl } = useRoutesHelper();\n\n if (!config.key) {\n history.replace(getBaseUrl());\n }\n\n const { key, title, message, buttons } = config;\n\n const background = KeyErrors.EmailConfirmFailed === key ? AppTheme.img.backgrounds.bg2 : AppTheme.img.backgrounds.bg1;\n const icon = AppTheme.img.icons.error;\n\n const handleButtonClick = (e: any, button: ResultInfoButtonConfigType) => {\n if (button.callback) {\n button.callback();\n }\n };\n\n useEffect(() => {\n return () => {\n dispatch(clearInfo());\n };\n }, []);\n\n return (\n \n \n \n \n \n \n buttons &&\n !!buttons.length && (\n \n {buttons.map((btn, index) => (\n \n ))}\n \n )\n }\n />\n \n );\n};\n\nconst Dialog = styled.dialog<{ maxWidth: string; theme: { colors: { text: string } } }>`\n position: absolute;\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 100%;\n height: 100%;\n max-height: 100vh;\n z-index: 800;\n border: none;\n padding: 0;\n margin: 0;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n max-width: ${(props) => props.theme.maxWidth};\n color: ${(props) => props.theme.colors.text};\n`;\n\nconst AnimatedDialog = (props: any) => ;\n\nconst Background = styled.img`\n position: fixed;\n top: 0;\n bottom: 0;\n width: 100%;\n max-width: ${(props) => props.theme.maxWidth};\n height: 100%;\n object-fit: cover;\n object-position: center;\n`;\n","import { Dispatch } from 'redux';\nimport { action } from 'typesafe-actions';\nimport * as ReactGA from 'react-ga';\n\nimport { CheckoutActionTypes } from './types';\nimport * as PT from '../payment/types';\nimport { AlertType, DomainType, KeyErrors, Pages, PaymentMethod } from '../enums';\nimport { ThunkService } from '../../services';\nimport { IGlobalStoreState } from '..';\nimport { hideSpinner, showSpinner } from '../app/actions';\nimport { distributionClear } from '../distribution/actions';\nimport { getCurrentAccount } from '../user/actions';\nimport { CheckoutHelper } from '../../helpers';\nimport { ISeatStoreState } from '../event/types';\nimport { AppSettings } from '../../settings/appSettings';\nimport RouteService from '../../services/routeService';\nimport { setResultInfo } from '../resultInformarion/actions';\n\nconst paymentInit = (payload: PT.IPaymentInitiateInfo) => action(CheckoutActionTypes.CHECKOUT_INITIATE, payload);\nconst finishPaymentInit = (payload: PT.IPaymentInitiateResult) =>\n action(CheckoutActionTypes.CHECKOUT_INITIATED, payload);\nconst paymentProcess = (payload: PT.IPaymentProcessInfo) => action(CheckoutActionTypes.CHECKOUT_PROCESS, payload);\nconst finishPaymentProcess = (payload: PT.IPaymentProcessResult) =>\n action(CheckoutActionTypes.CHECKOUT_PROCESSED, payload);\nconst paymentComplete = (payload: PT.IPaymentCompleteInfo) =>\n action(CheckoutActionTypes.CHECKOUT_COMPLETE, { ...payload });\nconst finishPaymentComplete = (payload: PT.IPaymentCompleteResult) =>\n action(CheckoutActionTypes.CHECKOUT_COMPLETED, payload);\nconst clearPayment = () => action(CheckoutActionTypes.CHECKOUT_CLEAR);\nconst setEmail = (payload: string) => action(CheckoutActionTypes.CHECKOUT_SET_EMAIL, payload);\nconst redo = () => action(CheckoutActionTypes.CHECKOUT_REDO);\n\nexport const checkoutInit =\n (usePoints?: boolean, force = true) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService): Promise => {\n const state = getState();\n const { book } = state;\n const routeSrv = new RouteService();\n const paymentModel = new PT.PaymentInitiateInfo();\n paymentModel.eventSlug = book.event.slug;\n paymentModel.paymentMethod = PaymentMethod.StripeBankCard;\n paymentModel.token = book.token;\n\n const tickets = GetTickets(book.seats);\n paymentModel.tickets = tickets;\n if (usePoints) {\n paymentModel.usePoints = usePoints;\n }\n\n if (CheckoutHelper.getIsDistributionInfoValid(state.distribution)) {\n paymentModel.distributorSlug = state.distribution.distributorSlug;\n } else {\n dispatch(distributionClear());\n }\n\n await dispatch(getCurrentAccount());\n\n dispatch(showSpinner());\n let canInit = true;\n if (force) {\n const { checkout } = state;\n if (CheckoutHelper.getIsProcessed(checkout) && !CheckoutHelper.getIsCompleted(checkout)) {\n const paymentCompleteModel = new PT.PaymentCompleteInfo();\n paymentCompleteModel.referenceNumber = checkout.process.referenceNumber;\n paymentCompleteModel.cancel = true;\n\n dispatch(paymentComplete(paymentCompleteModel));\n try {\n const paymentResult = await thunkService.api.payments.complete(paymentCompleteModel);\n if (!AppSettings.IS_DEV && paymentResult.isCompleted && paymentResult.isSuccess) {\n ReactGA.event({\n category: 'Payment',\n action: 'Success',\n });\n }\n if (!paymentResult.isProcessing) {\n dispatch(clearPayment());\n } else {\n canInit = false;\n }\n dispatch(finishPaymentComplete(paymentResult));\n } finally {\n }\n } else {\n dispatch(clearPayment());\n }\n }\n\n if (canInit) {\n dispatch(paymentInit(paymentModel));\n try {\n const paymentResult = await thunkService.api.payments.initiate(paymentModel);\n paymentResult.event = book.event;\n dispatch(finishPaymentInit(paymentResult));\n } finally {\n dispatch(hideSpinner());\n }\n } else {\n dispatch(hideSpinner());\n }\n };\n\nexport const widgetCheckoutInit =\n (token: string) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService): Promise => {\n const state = getState();\n const { book } = state;\n const paymentModel = new PT.PaymentInitiateInfo();\n paymentModel.eventSlug = book.event.slug;\n paymentModel.paymentMethod = book.event.paymentMethods[0].method;\n const tickets = GetTickets(book.seats);\n paymentModel.tickets = tickets;\n paymentModel.token = token;\n\n dispatch(distributionClear());\n dispatch(getCurrentAccount());\n dispatch(showSpinner());\n\n const { checkout } = state;\n if (CheckoutHelper.getIsProcessed(checkout) && !CheckoutHelper.getIsCompleted(checkout)) {\n const paymentCompleteModel = new PT.PaymentCompleteInfo();\n paymentCompleteModel.referenceNumber = checkout.process.referenceNumber;\n paymentCompleteModel.cancel = true;\n\n dispatch(paymentComplete(paymentCompleteModel));\n\n const paymentResult = await thunkService.api.payments.complete(paymentCompleteModel);\n const isPaymentProcessing = paymentResult.isProcessing;\n if (!isPaymentProcessing) {\n dispatch(clearPayment());\n }\n dispatch(finishPaymentComplete(paymentResult));\n\n if (isPaymentProcessing) {\n dispatch(hideSpinner());\n return;\n }\n } else {\n dispatch(clearPayment());\n }\n\n dispatch(paymentInit(paymentModel));\n try {\n const paymentResult = await thunkService.api.payments.widgetInitiate(paymentModel);\n paymentResult.event = book.event;\n dispatch(finishPaymentInit(paymentResult));\n } finally {\n dispatch(hideSpinner());\n }\n };\n\nexport const widgetCheckoutProcess =\n (token: string) =>\n async (\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n ): Promise => {\n const routeSrv = new RouteService();\n const state = getState();\n const paymentModel = new PT.PaymentProcessInfo(state.checkout);\n\n paymentModel.token = token;\n paymentModel.paymentMethod = state.checkout.paymentMethod;\n paymentModel.returnUrl = `${routeSrv.getBaseUrl()}/${Pages.Widget}/${Pages.Book}/${token}/result`;\n paymentModel.returnErrorUrl = `${routeSrv.getBaseUrl()}/${Pages.Widget}/${Pages.Book}/${token}/result/${\n Pages.Failed\n }`;\n paymentModel.retailWebsite = routeSrv.getBaseUrl();\n\n dispatch(distributionClear());\n dispatch(showSpinner());\n dispatch(paymentProcess(paymentModel));\n try {\n const paymentResult = await thunkService.api.payments.widgetProcess(paymentModel);\n dispatch(finishPaymentProcess(paymentResult));\n return paymentResult;\n } catch (e) {\n const alertType = AlertType.Error;\n const alertKey = KeyErrors.PaymentFailed;\n const title = 'CheckoutWidget.Error';\n const message = e.response.data;\n\n dispatch(\n setResultInfo({\n type: alertType,\n key: alertKey,\n title,\n message,\n })\n );\n } finally {\n dispatch(hideSpinner());\n }\n };\n\nexport const checkoutSetEmail =\n (email: string) =>\n (dispatch: Dispatch): void => {\n dispatch(setEmail(email));\n };\n\nexport const checkoutProcess =\n (usePoints?: boolean) =>\n async (\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n ): Promise => {\n const routeSrv = new RouteService();\n const state = getState();\n const paymentModel = new PT.PaymentProcessInfo(state.checkout);\n const bookResultLinkTemplate = `${routeSrv.getBaseUrl()}/${Pages.Book}/result`;\n\n paymentModel.paymentMethod = PaymentMethod.StripeBankCard;\n paymentModel.returnUrl = `${bookResultLinkTemplate}`;\n paymentModel.returnErrorUrl = `${routeSrv.getBaseUrl()}/${Pages.Book}/result/${Pages.Failed}`;\n paymentModel.retailWebsite = routeSrv.getBaseUrl();\n if (usePoints) {\n paymentModel.usePoints = usePoints;\n }\n\n if (CheckoutHelper.getIsDistributionInfoValid(state.distribution)) {\n paymentModel.distributorSlug = state.distribution.distributorSlug;\n } else {\n dispatch(distributionClear());\n }\n\n dispatch(showSpinner());\n dispatch(paymentProcess(paymentModel));\n try {\n const paymentResult = await thunkService.api.payments.process(paymentModel);\n if (!AppSettings.IS_DEV) {\n ReactGA.event({\n category: 'Payment',\n action: 'Process',\n });\n }\n dispatch(finishPaymentProcess(paymentResult));\n return paymentResult;\n } catch (e) {\n // console.log(\"paymentProcess exception:\", e)\n } finally {\n dispatch(hideSpinner());\n }\n };\n\nexport const checkoutComplete =\n (refNumber: string, cancel: boolean, needSpinner = true) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService): Promise => {\n const { checkout } = getState();\n if (checkout.isChecking) {\n return null;\n }\n\n const paymentModel = new PT.PaymentCompleteInfo();\n paymentModel.referenceNumber = refNumber;\n paymentModel.cancel = cancel;\n\n if (needSpinner) {\n dispatch(showSpinner());\n }\n dispatch(paymentComplete(paymentModel));\n try {\n const paymentResult = await thunkService.api.payments.complete(paymentModel);\n if (!AppSettings.IS_DEV && paymentResult.isCompleted && paymentResult.isSuccess) {\n ReactGA.event({\n category: 'Payment',\n action: 'Success',\n });\n }\n if (!paymentResult.isProcessing && cancel) {\n dispatch(clearPayment());\n }\n dispatch(finishPaymentComplete(paymentResult));\n } finally {\n if (needSpinner) {\n dispatch(hideSpinner());\n }\n }\n };\n\nexport const checkoutClearPayment =\n (refNumber: string, needSpinner = true) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService): Promise => {\n const { checkout } = getState();\n if (checkout.isChecking) {\n return null;\n }\n\n const paymentModel = new PT.PaymentCompleteInfo();\n paymentModel.referenceNumber = refNumber;\n paymentModel.cancel = true;\n\n if (needSpinner) {\n dispatch(showSpinner());\n }\n dispatch(paymentComplete(paymentModel));\n try {\n const paymentResult = await thunkService.api.payments.complete(paymentModel);\n dispatch(clearPayment());\n dispatch(finishPaymentComplete(paymentResult));\n } finally {\n if (needSpinner) {\n dispatch(hideSpinner());\n }\n }\n };\n\nexport const checkoutClear =\n () =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState): Promise => {\n const state = getState();\n const { checkout } = state;\n if (CheckoutHelper.getIsProcessed(checkout) && !CheckoutHelper.getIsCompleted(checkout)) {\n await dispatch(checkoutComplete(checkout.process.referenceNumber, true, false));\n }\n };\n\nexport const redoCheckout =\n () =>\n async (dispatch: Dispatch): Promise => {\n dispatch(redo());\n };\n\nexport const checkCurrentCheckout =\n () =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState): Promise => {\n const state = getState();\n const { checkout } = state;\n if (CheckoutHelper.getIsProcessed(checkout) && !CheckoutHelper.getIsCompleted(checkout)) {\n await dispatch(checkoutComplete(checkout.process.referenceNumber, false, false));\n }\n };\n\nfunction GetTickets(seats: ISeatStoreState[]) {\n const map = new Map();\n // group by quotaID\n seats.forEach((item) => {\n const key = item.quotaId;\n const collection = map.get(key);\n if (!collection) {\n map.set(key, [item]);\n } else {\n collection.push(item);\n }\n });\n const tickets = [];\n map.forEach((value, key) => {\n const quotaId = key;\n const ticket = new PT.PaymentInitiateTicketInfo();\n ticket.quotaId = quotaId;\n ticket.sector = new PT.PaymentInitiateSectorInfo();\n ticket.sector.sectorRows = [];\n value\n .filter((r) => !!r && !!r.sectorSlug)\n .forEach((item) => {\n ticket.sector.sectorSlug = item.sectorSlug;\n if (!!item.rowSlug && !!item.seatSlug) {\n ticket.sector.sectorRows.push(\n new PT.PaymentInitiateSectorRowInfo({\n rowSlug: item.rowSlug,\n rowSeatSlugs: [item.seatSlug],\n })\n );\n ticket.sector.quantity = ticket.sector.sectorRows.reduce(\n (result, current) => (result += current.rowSeatSlugs.length),\n 0\n );\n } else {\n ticket.sector.quantity = seats.filter((s) => s.quotaId === quotaId).length;\n }\n });\n\n tickets.push(ticket);\n });\n return tickets;\n}\n","import React, { useEffect, useRef } from 'react';\nimport { useGesture } from '@use-gesture/react';\nimport { Button } from '@mui/material';\nimport { useSpring, animated, to } from '@react-spring/web';\nimport { useSelector } from 'react-redux';\nimport { IGlobalStoreState } from '../../store';\nimport { useStyles } from './PanAndZoomImageStyles';\n\nconst PanAndZoomImage = ({ children }) => {\n const { classes } = useStyles();\n const ref = useRef(null);\n\n const ZOOM_FACTOR = useSelector((state) => state.appSettings.bookSchemeZoomFactor);\n const MAX_ZOOM = useSelector((state) => state.appSettings.bookSchemeMaxZoom);\n const MIN_ZOOM = useSelector((state) => state.appSettings.bookSchemeMinZoom);\n\n useEffect(() => {\n const handler = (e) => e.preventDefault();\n document.addEventListener('gesturestart', handler);\n document.addEventListener('gesturechange', handler);\n document.addEventListener('gestureend', handler);\n\n return () => {\n document.removeEventListener('gesturestart', handler);\n document.removeEventListener('gesturechange', handler);\n document.removeEventListener('gestureend', handler);\n };\n }, []);\n\n const [style, api] = useSpring(() => ({\n x: 0,\n y: 0,\n scale: 1,\n config: {\n mass: 0,\n tension: 0,\n friction: 0,\n clamp: true,\n duration: 100,\n damping: 0,\n },\n }));\n\n const transform = to([style.x, style.y, style.scale], (x, y, scale) => `translate(${x}px, ${y}px) scale(${scale})`);\n\n useGesture(\n {\n onDrag: ({ pinching, cancel, offset: [x, y], ...rest }) => {\n if (pinching) return cancel();\n api.start({ x, y });\n },\n onPinch: ({ origin: [ox, oy], first, offset: [d], memo }) => {\n if (first) {\n const { width, height, x, y } = ref.current.getBoundingClientRect();\n const tx = ox - (x + width / 2);\n const ty = oy - (y + height / 2);\n memo = [style.x.get(), style.y.get(), tx, ty];\n }\n\n api.start({ scale: d });\n return memo;\n },\n },\n {\n target: ref,\n drag: {\n bounds: { top: -200, right: 200, bottom: 200, left: -200 },\n },\n pinch: {\n scaleBounds: { min: MIN_ZOOM, max: MAX_ZOOM },\n rubberband: true,\n pointer: { touch: true },\n },\n },\n );\n\n const handleInZoom = () => {\n if (style.scale.get() >= MAX_ZOOM) {\n return;\n }\n\n api.set({ scale: style.scale.get() + ZOOM_FACTOR });\n };\n\n const handleOutZoom = () => {\n if (style.scale.get() <= MIN_ZOOM) {\n return;\n }\n\n api.set({ scale: style.scale.get() - ZOOM_FACTOR });\n };\n\n return (\n
\n
\n
\n \n {children}\n \n
\n );\n};\n\nexport default PanAndZoomImage;\n","import { AppSettings } from './appSettings';\n\nexport class ContactInfo {\n public static OnlineCardPaymentFileUrl = `/content/documents/${AppSettings.APP_NAME}_Paid.pdf`;\n public static OnlineCardPaymentRuFileUrl = `/content/documents/${AppSettings.APP_NAME}_Paid_Ru.pdf`;\n public static PaymentDocumentsFileUrl = `/content/documents/${AppSettings.APP_NAME}_Documents.pdf`;\n public static PaymentDocumentsRuFileUrl = `/content/documents/${AppSettings.APP_NAME}_Documents_Ru.pdf`;\n public static PrivacyPolicyFileUrl = `content/documents/Fanaticka_Privacy_Policy.docx`;\n public static WebsiteUrl = 'https://fanaticka.live';\n}\n\nexport const contactLabel = {\n vatNumber: 'VАТ number:',\n employerIdentificationNumber: 'Employer Identification Number:',\n};\n\nexport const contacts = {\n live: {\n email: 'concerts@fanaticka.live',\n nameOfTheLegalEntity: 'FANATICKA, INC.',\n registeredAddress: '651 N Broad St, STE 206, Middletown, 19709, State of Delaware, USA.',\n registrationNumber: '7954586',\n employerIdentificationNumber: '85-2103078',\n schedule: '24/7',\n },\n kz: {\n email: 'support@fanaticka.live',\n nameOfTheLegalEntity: 'ТОО \"TICKETBAR(ТИКЕТБАР)\"',\n registeredAddress:\n 'Юридический Адрес: Казахстан, Алматы, улица Нусупбекова, дом 10\\n' +\n '\\n' +\n 'Фактический Адрес: Казахстан, город Алматы, улица Достык, дом 128, н.п. 180.\\n' +\n '\\n' +\n 'БИН (ИИН): 240340024719\\n' +\n '\\n' +\n 'Банк: АО \"Kaspi Bank\"\\n' +\n '\\n' +\n 'КБе: 17\\n' +\n '\\n' +\n 'БИК: CASPKZKA\\n' +\n '\\n' +\n 'ИИК: KZ20722S000035660659',\n registrationNumber: '240340024719',\n employerIdentificationNumber: 'CASPKZKA',\n schedule: '24/7',\n },\n eu: {\n email: 'concerts@fanaticka.live',\n nameOfTheLegalEntity: 'Fanaticka OÜ',\n registeredAddress: 'Ruunaoja tn 3--81, Tallinn, 11415',\n registrationNumber: '16344598',\n employerIdentificationNumber: 'EE102444470',\n schedule: '24/7',\n },\n by: {\n email: 'concerts@fanaticka.live',\n nameOfTheLegalEntity: 'ООО \"ФАНАТИКАКОМ\"',\n registeredAddress: 'Республика Беларусь, 220036, г. Минск, улица Карла Либкнехта, 66, помещение 21Б (офис 3)',\n registrationNumber: '193110762, 24.07.2018, Главное управление юстиции Мингорисполкома',\n schedule: 'Круглосуточно',\n },\n ru: {\n email: 'concerts@fanaticka.live',\n nameOfTheLegalEntity: 'ООО \"ФАНАТИКАРУ\"',\n registeredAddress: 'РФ, г. Москва УЛИЦА БИРЮЛЁВСКАЯ, ДОМ 24 КОРПУС 1 ПОМ 3 КОМ 2 ОФ 77',\n registrationNumber: '19.02.2020, Инспекция Федеральной налоговой службы №24 по г. Москве',\n schedule: 'Круглосуточно',\n },\n};\n","import React, { FC, memo, useEffect, useState } from 'react';\nimport dayjs from 'dayjs';\nimport { useStyles } from './styles';\n\ntype TimerProps = {\n endTime: dayjs.Dayjs;\n onStop?: () => void;\n onTick?: () => void;\n};\n\nconst Timer: FC = ({ endTime, onStop, onTick }) => {\n const { classes } = useStyles();\n let timer: any;\n const intervalMs = 1000;\n\n const [currentTime, setCurrentTime] = useState(dayjs());\n const [isStarted, setIsStarted] = useState(false);\n\n useEffect(() => {\n if (dayjs(endTime).isAfter(currentTime)) {\n start();\n }\n }, [isStarted]);\n\n useEffect(() => {\n onTick();\n }, [currentTime]);\n\n useEffect(() => {\n if (dayjs(currentTime).isAfter(endTime)) {\n onStop();\n }\n return () => stop();\n }, [isStarted]);\n\n const tick = () => {\n const currentTime = dayjs();\n if (dayjs(currentTime).isAfter(endTime)) {\n stop();\n setCurrentTime(currentTime);\n } else {\n setCurrentTime(currentTime);\n }\n };\n\n const start = () => {\n timer = setInterval(tick, intervalMs);\n setIsStarted(true);\n };\n\n const stop = () => {\n clearInterval(timer);\n setIsStarted(false);\n };\n\n const getLeftTimeString = (): string => {\n const diffSec = dayjs(endTime).diff(currentTime, 's');\n const min = Math.floor(diffSec / 60);\n const sec = diffSec - min * 60;\n return `${min < 10 ? '0' : ''}${min}:${sec < 10 ? '0' : ''}${sec}`;\n };\n\n return isStarted && {getLeftTimeString()};\n};\n\nexport default memo(Timer);\n","import React, { useCallback } from 'react';\nimport { useHistory } from 'react-router';\nimport { useDispatch, useSelector } from 'react-redux';\nimport styled from 'styled-components';\nimport Helmet from 'react-helmet';\n\nimport { useTranslation } from 'react-i18next';\nimport { AnimatePresence } from 'framer-motion';\nimport { IGlobalStoreState } from '../../../store';\nimport { PageContent, RLink } from '../../../components/UI';\nimport { LoginForm, LoginFormType } from '../../../components/forms';\nimport { login } from '../../../store/user/actions';\nimport { Routes } from '../../../store/routes';\nimport { Utils } from '../../../services';\nimport { checkoutClear } from '../../../store/checkout/actions';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\nimport { PopUp } from '../../../store/animations';\nimport { ModalWindow } from './socialNetworkLogin/modalWindow';\n\nexport const isMobile = window.matchMedia('only screen and (max-width: 479px)').matches;\n\nconst LoginPage = () => {\n const isAuthorized = useSelector((state) => state.app.isAuthorized);\n const isInitializing = useSelector((state) => state.app.isInitializing);\n\n const { getProfileRoute } = useRoutesHelper();\n\n const history = useHistory();\n const dispatch = useDispatch();\n const { t } = useTranslation();\n\n const handleFormSubmit = useCallback(\n (formModel: LoginFormType) => {\n if (formModel) {\n (async () => dispatch(login(formModel.email, formModel.password)))().then(() => {\n dispatch(checkoutClear());\n history.replace(getProfileRoute());\n });\n }\n },\n [dispatch, getProfileRoute, history]\n );\n\n if (isInitializing || isAuthorized) {\n return null;\n }\n\n return (\n \n \n \n {Utils.toPageTitle(t('Login.Login'))}\n \n
{t('Login.Login')}
\n handleFormSubmit(formModel)}\n />\n {t('Login.SignUp')}\n {/*{t('Login.Or')}*/}\n {/**/}\n
\n
\n );\n};\n\nconst Header = styled.h1`\n font-family: ${(props) => props.theme.fonts.boldFont};\n font-size: 18px;\n text-transform: uppercase;\n text-align: center;\n`;\n\nconst Link = styled(RLink)<{ theme: { fonts: { boldFont: string } } }>`\n margin-top: 15px;\n text-transform: uppercase;\n font-size: 14px;\n font-family: ${(props) => props.theme.fonts.boldFont};\n`;\n\nexport const Divider = styled.div<{ isMobile: boolean }>`\n position: relative;\n display: flex;\n justify-content: center;\n width: 100%;\n margin: 0 auto;\n padding: 30px 0;\n user-select: none;\n\n &:after {\n content: '';\n position: absolute;\n height: 0.5px;\n width: ${(props) => (props.isMobile ? '33%' : '35%')};\n display: block;\n left: 10%;\n background: #fff;\n top: 50%;\n }\n\n &:before {\n content: '';\n position: absolute;\n height: 0.5px;\n width: ${(props) => (props.isMobile ? '33%' : '35%')};\n display: block;\n right: 10%;\n background: #fff;\n top: 50%;\n }\n`;\n\nexport default LoginPage;\n","import { Grid, Skeleton, Theme } from '@mui/material';\nimport { makeStyles } from 'tss-react/mui';\nimport React, { useEffect, useState } from 'react';\nimport { useParams } from 'react-router';\nimport dayjs from 'dayjs';\nimport styled from 'styled-components';\nimport { useTranslation } from 'react-i18next';\nimport { SellEventButton } from '../../../components/event/sellEventButton';\nimport useApi from '../../../services/apiService';\nimport Constants from '../../../store/constants';\nimport { EventType } from '../../../store/event/types';\nimport { SearchInput } from '../../../components/event/searchInput';\nimport { DatePicker } from '../../../components/event/datePicker/datePicker';\nimport { HorizontalCarousel } from '../../../components/event/horizontalCarousel';\nimport { Events } from '../../../components/event/events';\n\nconst useStyles = makeStyles()((theme: Theme) => ({\n imageCardContent: {\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n background: 'linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.3) 51.04%, #000000 100%)',\n borderRadius: '0px',\n transition: theme.transitions.create('opacity'),\n objectPosition: '50% 20%',\n width: '100%',\n height: '465px',\n objectFit: 'cover',\n },\n skeletonCategoryImage: {\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n width: '100%',\n height: '465px',\n },\n skeletonTicketsFor: {\n height: '134px',\n },\n headingText: {\n textTransform: 'uppercase',\n fontSize: 14,\n lineHeight: '14px',\n cursor: 'default',\n },\n gridSearchInput: {\n paddingBottom: '150px',\n [theme.breakpoints.down('xs')]: {\n margin: '0px 16px',\n },\n },\n}));\n\nexport const EventCategoryPage = () => {\n const { categorySlug } = useParams();\n const [category, setCategory] = useState();\n const [selectedLocation, setSelectedLocation] = useState(null);\n const [selectedDate, setSelectedDate] = useState(new Date());\n const [isLoading, setIsLoading] = useState(true);\n\n const eventsCount = 10;\n\n const { eventsApi } = useApi();\n const { t } = useTranslation();\n\n const { classes } = useStyles();\n\n useEffect(() => {\n const loadCategory = async () => {\n const result = await eventsApi.getCategory({ categorySlug });\n setCategory(result);\n setIsLoading(false);\n };\n\n loadCategory();\n }, []);\n\n const loadEvents = async (\n eventType: EventType,\n search?: string | null,\n date?: Date | null,\n count?: number | null\n ) => {\n const result = await eventsApi.getEventsByType({\n eventType,\n search,\n date,\n categoryId: category.id,\n count,\n });\n return result.map((event) => ({\n key: event.slug,\n title: event.title,\n imageUrl: event.posterUrl,\n subTitle: `${dayjs(event.date).format(Constants.DateFormat)}, ${event.city}`,\n date: dayjs(event.date).format(Constants.DateFormat),\n city: event.city,\n domainTypes: event.domainTypes,\n }));\n };\n\n return (\n <>\n {isLoading && (\n <>\n \n \n \n \n \n \n \n \n \n )}\n\n {!isLoading && (\n <>\n \n {category.slug}\n \n \n \n \n

{t('Categories.TicketsTo')}

\n

{t(`Dashboard.Categories.${category.slug}`)}

\n
\n
\n\n \n
\n \n
\n
\n\n {false && (\n \n \n \n )}\n\n {selectedLocation?.value && (\n loadEvents(EventType.Near, selectedLocation.id)}\n />\n )}\n \n \n loadEvents(EventType.Popular)} title={t('Dashboard.PopularEvents')} />\n \n\n \n \n \n \n loadEvents(EventType.Date, null, selectedDate, eventsCount)}\n />\n \n \n \n \n )}\n \n );\n};\n\ntype EventCategoryUrlParams = {\n categorySlug: string;\n};\n\ntype CategoryType = {\n id: number;\n imageUrl: string;\n title: string;\n slug: string;\n};\n\ntype LocationType = {\n id: string;\n value: string;\n};\n\nconst TextContainer = styled.div`\n padding: 15px 25px;\n\n p {\n text-align: center;\n font-size: 40px;\n color: ${(props) => props.theme.colors.text};\n margin: 0;\n font-style: normal;\n font-weight: normal;\n line-height: 130%;\n /* or 18px */\n text-align: center;\n }\n\n @media screen and (min-width: 576px) {\n p {\n font-size: 40px;\n }\n }\n`;\n","import React, { FC, memo, useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport { useTranslation } from 'react-i18next';\n\nexport const DescriptionCollapse: FC = memo(({ title, subtitle }) => {\n const [isCollapse, setIsCollapse] = useState(false);\n const subtitleRef = useRef(null);\n const { t } = useTranslation();\n\n let heightSubtitle = `${subtitleRef?.current?.scrollHeight}px`;\n\n const handleCollapse = () => {\n setIsCollapse((collapse) => !collapse);\n };\n\n return (\n \n {title}\n {subtitle && (\n \n {subtitle}\n \n )}\n \n {isCollapse ? t('Event.Collapse') : t('Event.SeeMore')}\n \n \n );\n});\n\nconst Container = styled.div`\n display: flex;\n flex-direction: column;\n padding-left: 35px;\n position: relative;\n`;\n\nconst Subtitle = styled.span`\n font-size: 13px;\n line-height: 17px;\n font-family: ${(props) => props.theme.fonts.lightFont};\n color: ${(props) => props.theme.colors.textSecond};\n height: ${(props) => (props.isCollapse ? props.height : '50px')};\n transition: height 0.2s ease-out;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: ${(props) => (props.isCollapse ? 'none' : 3)};\n -webkit-box-orient: vertical;\n margin-bottom: 30px;\n`;\n\nconst Title = styled.span`\n font-size: 14px;\n margin-bottom: 5px;\n font-family: ${(props) => props.theme.fonts.boldFont};\n text-transform: uppercase;\n`;\n\nconst CollapseButton = styled.div<{ collapse: boolean }>`\n right: 0;\n font-size: 14px;\n line-height: 18px;\n font-family: ${(props) => props.theme.fonts.regularAltFont};\n color: ${(props) => props.theme.colors.text};\n bottom: 0;\n position: absolute;\n cursor: pointer;\n width: 80px;\n\n &:before {\n width: 7px;\n height: 1px;\n background: ${(props) => props.theme.colors.accent};\n right: 0;\n top: 8px;\n content: '';\n transform: ${(props) => (props.collapse ? 'rotate(-45deg)' : 'rotate(45deg)')};\n position: absolute;\n transition: transform 0.1s ease-out;\n border-radius: 20px;\n }\n\n &:after {\n width: 7px;\n height: 1px;\n background: ${(props) => props.theme.colors.accent};\n right: -4.5px;\n top: 8px;\n content: '';\n transform: ${(props) => (props.collapse ? 'rotate(45deg)' : 'rotate(-45deg)')};\n position: absolute;\n transition: transform 0.1s ease-out;\n border-radius: 20px;\n }\n`;\n\ntype EventInfoItemType = {\n title: string;\n subtitle?: string;\n};\n\ntype SubtitleType = {\n isCollapse: boolean;\n height: string;\n};\n","import * as React from 'react';\nimport { FC } from 'react';\nimport styled from 'styled-components';\nimport { PageHeader, Image } from '../UI';\nimport { IEventDetailsStoreState } from '../../store/event/eventDetails/EventDetailsStoreState';\n\ninterface IEventDetailsHeaderProps {\n event: IEventDetailsStoreState;\n diagonal?: boolean;\n noTitle?: boolean;\n stretch?: boolean;\n}\n\nexport const EventDetailsHeader: FC = ({ event, stretch, diagonal, noTitle }) => {\n if (!event) {\n return null;\n }\n let posterUrl = event.optionPosterUrl;\n if (posterUrl === '') {\n posterUrl = event.posterUrl;\n }\n return (\n
\n \n {!noTitle && (\n \n {event.title}\n {event.subtitle}\n \n )}\n
\n );\n};\n\nconst TitleWrapper = styled.div`\n z-index: 1;\n margin-bottom: 10vh;\n`;\n\nconst Title = styled.h1`\n font-size: 36px;\n font-family: ${(props) => props.theme.fonts.bolderFont};\n text-align: center;\n margin: 0 0 5px 0;\n`;\n\nconst Subtitle = styled.h2`\n font-size: 14px;\n margin: 0;\n text-align: center;\n`;\n\nexport const Poster = styled(Image)`\n position: absolute;\n object-position: 50% 20%;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n`;\n\nconst Header = styled(PageHeader)`\n justify-content: flex-end;\n`;\n","import * as React from 'react';\nimport styled from 'styled-components';\nimport { withTranslation } from 'react-i18next';\nimport Button from './button';\nimport { Utils } from '../../services';\n\ninterface ICopyButtonProps {\n value: string;\n title?: string;\n text?: string;\n t: (key: string) => string;\n}\n\ninterface ICopyButtonState {\n isCopied: boolean;\n}\n\nexport class CopyButton extends React.Component {\n private _inputDOM: any;\n private _copyDelayMs = 5 * 1000;\n\n constructor(props: ICopyButtonProps) {\n super(props);\n this.state = {\n isCopied: false,\n };\n }\n\n render() {\n const copied = this.state.isCopied;\n const btnText = copied ? this.props.t('Share.Copied') : this.props.text;\n return (\n <>\n (this._inputDOM = item)} tabIndex={-1} value={this.props.value} readOnly />\n this.copyToClipboard(e)}\n title={this.props.title}\n disabled={copied}\n >\n {btnText}\n \n \n );\n }\n\n private copyToClipboard(e: any) {\n if (e) {\n e.preventDefault();\n }\n if (this._inputDOM) {\n if (Utils.isIOs()) {\n const range = document.createRange();\n range.selectNodeContents(this._inputDOM);\n const selection = window.getSelection();\n selection.removeAllRanges();\n selection.addRange(range);\n this._inputDOM.setSelectionRange(0, 999999);\n } else {\n this._inputDOM.select();\n }\n document.execCommand('copy');\n this.setState({ isCopied: true }, () => {\n setTimeout(() => this.setState({ isCopied: false }), this._copyDelayMs);\n });\n }\n }\n}\n\nconst Text = styled.textarea`\n width: 0;\n height: 0;\n opacity: 0;\n flex: 0;\n`;\n\nexport default withTranslation()(CopyButton);\n","import * as React from 'react';\nimport { useEffect } from 'react';\nimport { connect, useSelector } from 'react-redux';\nimport styled from 'styled-components';\nimport Helmet from 'react-helmet';\n\nimport { Translation, useTranslation } from 'react-i18next';\nimport { useHistory } from 'react-router';\nimport { IGlobalStoreState } from '../../../store';\nimport { Button, PageContent } from '../../../components/UI';\nimport { IUserStoreState } from '../../../store/user/types';\nimport { Utils } from '../../../services';\nimport { UserStats } from '../../../components/user';\nimport { Routes } from '../../../store/routes';\nimport { getCurrentAccount } from '../../../store/user/actions';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\n\nconst ProfilePage = () => {\n const isInitializing = useSelector((state) => state.app.isInitializing);\n const isAuthorized = useSelector((state) => state.app.isAuthorized);\n const user = useSelector((state) => state.user);\n const isLoading = useSelector((state) => state.app.isLoading);\n\n const history = useHistory();\n const { t } = useTranslation();\n\n const { getProfileRoute } = useRoutesHelper();\n\n useEffect(() => {\n if (!isAuthorized || !user.phoneNumberConfirmed) {\n history.push(getProfileRoute());\n return;\n }\n }, [getProfileRoute, history, isAuthorized, user.phoneNumberConfirmed]);\n\n const handleEditBtnClick = (e, path: string) => {\n if (e) {\n e.preventDefault();\n }\n history.push(path);\n };\n\n if (isInitializing || !user || isLoading) {\n return null;\n }\n return (\n \n \n {Utils.toPageTitle(user.fullName || user.referralSlug)}\n \n \n \n {user.imageUrl && }\n {!user.imageUrl && {t('Profile.Avatar')}}\n \n handleEditBtnClick(e, Routes.EditProfile)}\n />\n \n \n {user.fullName}\n \n \n \n \n \n \n \n );\n};\n\nconst AvatarWrapper = styled.section`\n position: relative;\n`;\n\nconst UserInfo = styled.section`\n width: 80%;\n`;\n\nconst FullName = styled.h1`\n font-size: 18px;\n font-family: ${(props) => props.theme.fonts.boldFont};\n margin: 10px 0;\n text-align: center;\n`;\n\nconst ButtonsWrapper = styled.section`\n width: 100%;\n\n > a,\n > button {\n margin-top: 10px;\n }\n`;\n\nconst ProfileImage = styled.div`\n width: 130px;\n height: 130px;\n border: 1px solid ${(props) => props.theme.colors.text};\n align-self: center;\n border-radius: 50%;\n margin-bottom: 5px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 30px;\n`;\n\nconst ProfileImageTitle = styled.span`\n font-size: 12px;\n text-transform: uppercase;\n text-align: center;\n position: absolute;\n`;\n\nconst Avatar = styled.img`\n flex: 1;\n object-fit: contain;\n z-index: 1;\n max-width: 130px;\n max-height: 130px;\n`;\n\nexport default ProfilePage;\n","import React, { FC, memo, SyntheticEvent } from 'react';\nimport styled from 'styled-components';\nimport { Link } from 'react-router-dom';\nimport { useTranslation } from 'react-i18next';\nimport i18next from 'i18next';\nimport { useContractData } from '../../helpers/customHooks';\nimport { ContactInfo } from '../../settings/contactInfo';\nimport { PaymentSettings } from '../../settings/paymentSettings';\nimport { EventHelper } from '../../helpers';\nimport { DomainType } from '../../store/enums';\n\nconst isDomainRu = EventHelper.getDomainType(window.location.host) === DomainType.Ru;\nconst isDomainKz = EventHelper.getDomainType(window.location.host) === DomainType.Kz;\n\nexport const UserAgreementLink: FC = memo(({ children, onClick }) => {\n const { t } = useTranslation();\n const { bonusProgramItems, publicContractItems } = useContractData();\n\n return isDomainKz ? (\n \n {children}\n \n Политика Конфиденциальности\n \n \n ru\n \n \n \n \n Публичная Оферта\n \n \n ru\n \n \n \n \n Бонусная Программа\n \n \n ru\n \n \n \n \n ) : (\n \n {children}\n \n Privacy policy\n \n \n eng\n \n \n \n \n Concert Rules\n \n \n eng\n \n \n \n \n {t('Menu.PublicAgreement')}\n {publicContractItems?.map((item) => (\n \n \n {item.title}\n \n \n ))}\n \n \n {t('Menu.BonusProgram')}\n {bonusProgramItems?.map((item) => (\n \n \n {item.title}\n \n \n ))}\n \n \n );\n});\n\nexport const OnlineCardPaymentLink: FC = memo(({ title, onClick, primary }) => {\n const { t } = useTranslation();\n const path = isDomainRu ? ContactInfo.OnlineCardPaymentRuFileUrl : ContactInfo.OnlineCardPaymentFileUrl;\n\n return (\n onClick && onClick(e)}\n >\n {title || t('Menu.CardPayment')}\n \n );\n});\n\nexport const PaymentDocumentsLink: FC = memo(({ onClick, title, primary }) => {\n const { t } = useTranslation();\n const path = isDomainRu ? ContactInfo.PaymentDocumentsRuFileUrl : ContactInfo.PaymentDocumentsFileUrl;\n\n return (\n onClick && onClick(e)}\n >\n {title || t('Menu.ConfirmDocument')}\n \n );\n});\n\nexport const BePaidLink = () => (\n \n bePaid\n \n);\n\nexport const RLink = styled(Link as any)`\n text-decoration: none;\n color: ${(props) => (props.primary ? props.theme.colors.accent : props.theme.colors.text)};\n opacity: ${(props) => (props.disabled ? 0.7 : 1)};\n\n &:hover {\n text-decoration: none;\n color: ${(props) => props.theme.colors.textSecond};\n }\n`;\n\nexport const StyledLink = styled.a`\n text-decoration: none;\n color: ${(props) => (props.primary ? props.theme.colors.accent : props.theme.colors.text)};\n opacity: ${(props) => (props.disabled ? 0.7 : 1)};\n display: ${(props) => (props.display ? 'block' : 'inline-block')};\n\n &:hover {\n text-decoration: none;\n color: ${(props) => props.theme.colors.textSecond};\n }\n`;\n\nexport const StyledContractLink = styled.a`\n text-decoration: underline;\n color: #ffbf00;\n`;\n\nexport const StyledContractBody = styled.div`\n margin-left: 10px;\n`;\n\nexport const StyledContractHeader = styled.div`\n color: #ffbf00;\n`;\n\nexport const StyledContractContainer = styled.div`\n display: flex;\n justify-content: flex-start;\n cursor: default;\n`;\n\nconst Container = styled.div`\n display: flex;\n flex-direction: column;\n gap: 4px;\n`;\n\ntype FileLinkPropsType = {\n title?: string;\n onClick?: (e: SyntheticEvent) => void;\n children?: React.ReactNode;\n primary?: boolean;\n};\n\ninterface IStyledLinkProps {\n disabled?: boolean;\n hover?: boolean;\n active?: boolean;\n primary?: boolean;\n logged?: boolean;\n hostRef?: any;\n display?: string;\n}\n","import { makeStyles } from 'tss-react/mui';\nimport { Theme } from '@mui/material';\n\n// TODO jss-to-tss-react codemod: usages of this hook outside of this file will not be converted.\nexport const useStyles = makeStyles()((theme: Theme) => ({\n container: {\n height: '100%',\n touchAction: 'none',\n userSelect: 'none',\n WebkitUserSelect: 'none',\n MozUserSelect: 'none',\n WebkitUserDrag: 'none',\n },\n wrapperContainer: {\n overflow: 'hidden',\n height: 'inherit',\n position: 'relative',\n },\n buttonGroup: {\n position: 'absolute',\n display: 'flex',\n flexDirection: 'column',\n zIndex: 10,\n height: 200,\n right: 0,\n top: 0,\n },\n buttonOutZoom: {\n '&.MuiButton-root': {\n color: theme.palette.secondary.light,\n },\n background: theme.palette.primary.light,\n minWidth: 25,\n height: 19,\n border: '1px solid #4B4B4B',\n borderRadius: 3,\n marginBottom: 6,\n position: 'relative',\n '&:hover': {\n backgroundColor: theme.palette.primary.light,\n },\n '& .MuiTouchRipple-root': {\n display: 'flex',\n justifyContent: 'center',\n '&::after': {\n content: '\"\"',\n width: '8.86px',\n display: 'block',\n background: theme.palette.primary.main,\n height: '1px',\n position: 'absolute',\n top: '50%',\n },\n },\n },\n buttonInZoom: {\n '&.MuiButton-root': {\n color: theme.palette.secondary.light,\n },\n background: theme.palette.primary.light,\n minWidth: 25,\n height: 19,\n border: '1px solid #4B4B4B',\n borderRadius: 3,\n marginBottom: 6,\n position: 'relative',\n '&:hover': {\n backgroundColor: theme.palette.primary.light,\n },\n '& .MuiTouchRipple-root': {\n display: 'flex',\n justifyContent: 'center',\n '&::after': {\n content: '\"\"',\n width: '8.86px',\n display: 'block',\n background: theme.palette.primary.main,\n height: '1px',\n position: 'absolute',\n top: '50%',\n },\n '&::before': {\n content: '\"\"',\n width: '8.86px',\n display: 'block',\n background: theme.palette.primary.main,\n height: '1px',\n position: 'absolute',\n top: '50%',\n transform: 'rotate(90deg)',\n },\n },\n },\n}));\n","import * as React from 'react';\nimport { FC } from 'react';\nimport styled from 'styled-components';\nimport dayjs from 'dayjs';\nimport { Image, PageHeader } from '../../UI';\nimport { ICheckoutStoreState } from '../../../store/checkout/types';\nimport { RenderPriceInfo } from './renderPriceInfo';\nimport { RenderTicketsInfo } from './renderTicketsInfo';\nimport EventInfoItem from '../eventInfoItem';\n\ntype EventCheckoutHeaderProps = {\n checkoutModel: ICheckoutStoreState;\n isAuthorized: boolean;\n};\n\nexport const EventCheckoutHeader: FC = ({ checkoutModel, isAuthorized }) => {\n const { event } = checkoutModel.init;\n let posterUrl = event.optionPosterUrl;\n\n if (posterUrl === '') {\n posterUrl = event.posterUrl;\n }\n\n return (\n
\n \n \n {event.title}\n \n \n \n \n {event.venue && (\n \n \n \n )}\n {}\n {}\n \n \n
\n );\n};\n\nconst InfoWrapper = styled.div`\n z-index: 1;\n width: 100%;\n margin-bottom: 4vh;\n`;\n\nconst Title = styled.h1`\n font-size: 36px;\n margin: 0 0 20px 0;\n text-align: center;\n font-family: ${(props) => props.theme.fonts.bolderFont};\n`;\n\nconst Poster = styled(Image as any)`\n position: absolute;\n object-position: 50% 20%;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n`;\n\nconst List = styled.ul`\n list-style-type: none;\n padding: 0;\n margin: 0;\n padding-left: 50px;\n`;\n\nexport const ListItem = styled.li`\n &:not(:last-child) {\n margin-bottom: 15px;\n }\n`;\n\nconst Header = styled(PageHeader as any)`\n max-height: 60vh;\n`;\n","export interface IMenuStoreState {\n isShow: boolean;\n contracts: ContractInfo;\n}\n\nexport class MenuStoreState implements IMenuStoreState {\n isShow: boolean;\n contracts: ContractInfo;\n\n constructor(contractInfo: ContractInfo) {\n this.isShow = false;\n this.contracts = contractInfo;\n }\n}\n\nexport class ContractInfoContainer {\n language: string;\n fileUrl: string;\n\n constructor(language: string, fileUrl: string) {\n this.language = language;\n this.fileUrl = fileUrl;\n }\n}\n\nexport class ContractInfo {\n publicContracts: Array;\n bonusPrograms: Array;\n\n constructor(publicContracts: Array, bonusPrograms: Array) {\n this.bonusPrograms = bonusPrograms;\n this.publicContracts = publicContracts;\n }\n}\n\nexport enum MenuActionTypes {\n MENU_SHOW = '@@menu/SHOW',\n MENU_HIDE = '@@menu/HIDE',\n CONTRACTS_INIT = '@@menu/INITCONTRACT',\n}\n","import { Reducer } from 'redux';\n\nimport { IDistributionStoreState, DistributionStoreState, DistributionActionTypes } from './types';\n\nconst distributionReducer: Reducer = (\n state: IDistributionStoreState = new DistributionStoreState(),\n action\n) => {\n switch (action.type) {\n case DistributionActionTypes.DISTRIBUTION_INIT:\n return { ...state, ...action.payload };\n case DistributionActionTypes.DISTRIBUTION_CLEAR:\n return new DistributionStoreState();\n default:\n return state;\n }\n};\n\nexport default distributionReducer;\n","import dayjs from 'dayjs';\n\nimport { IVenueSectorStoreState, VenueSectorStoreState } from '../ticket/types';\nimport { IPaymentStoreState, PaymentStoreState } from '../payment/types';\n\nexport interface IEventCategory {\n id: number;\n slug: string;\n title: string;\n imageUrl: string;\n eventsCount: number;\n}\n\nexport class EventCategory implements IEventCategory {\n id: number;\n slug: string;\n title: string;\n imageUrl: string;\n eventsCount: number;\n\n constructor(dto: any) {\n this.id = dto && dto.Id ? dto.Id : 0;\n this.title = dto && dto.Title ? dto.Title : '';\n this.slug = dto && dto.Slug ? dto.Slug : '';\n this.imageUrl = dto && dto.ImageUrl ? dto.ImageUrl : '';\n this.eventsCount = dto && dto.EventsCount ? dto.EventsCount : 0;\n }\n}\n\nexport interface ICategorizedEvent {\n categoryName: string;\n events: IEventShortInformation[];\n}\n\nexport class CategorizedEvent implements ICategorizedEvent {\n categoryName: string;\n events: IEventShortInformation[];\n\n constructor(dto: any) {\n this.categoryName = dto && dto.CategoryName ? dto.CategoryName : '';\n this.events = dto && dto.Events ? dto.Events.map((item) => new EventShortInformation(item)) : [];\n }\n}\n\nexport interface IEventShortInformation {\n title: string;\n slug: string;\n posterUrl: string;\n date: Date;\n city: string;\n categoryId: number;\n domainTypes: number[];\n}\n\nexport class EventShortInformation implements IEventShortInformation {\n title: string;\n slug: string;\n posterUrl: string;\n date: Date;\n city: string;\n categoryId: number;\n domainTypes: number[];\n\n constructor(dto: any) {\n this.title = dto && dto.Title ? dto.Title : '';\n this.city = dto && dto.City ? dto.City : '';\n this.slug = dto && dto.Slug ? dto.Slug : '';\n this.posterUrl = dto && dto.PosterUrl ? dto.PosterUrl : '';\n this.date = dto && dto.EventDate ? dto.EventDate : null;\n this.categoryId = dto && dto.CategoryId ? dto.CategoryId : null;\n this.domainTypes = dto && dto.DomainTypes ? dto.DomainTypes : [];\n }\n}\n\nexport interface ILocationShortInformation {\n id: string;\n country: string;\n city: string;\n}\n\nexport class LocationShortInformation implements ILocationShortInformation {\n id: string;\n country: string;\n city: string;\n\n constructor(dto: any) {\n this.id = dto && dto.Id ? dto.Id : '';\n this.country = dto && dto.Country ? dto.Country : '';\n this.city = dto && dto.City ? dto.City : '';\n }\n}\n\nexport interface IEventStoreState {\n title: string;\n subtitle: string;\n slug: string;\n posterUrl: string;\n optionPosterUrl: string;\n date: dayjs.Dayjs;\n venue: IVenueStoreState;\n artist: IArtistStoreState;\n sectors: Array;\n paymentMethods: Array;\n distributorComission: IDistributorComissionStoreState;\n notAvailableForPurchase: boolean;\n notAvailableForPurchaseReason: string;\n maxPurchase: number;\n isDistributionAvailable: boolean;\n domainTypes: number[];\n}\n\nexport class EventStoreState implements IEventStoreState {\n title: string;\n subtitle: string;\n slug: string;\n posterUrl: string;\n optionPosterUrl: string;\n date: dayjs.Dayjs;\n venue: IVenueStoreState;\n artist: IArtistStoreState;\n sectors: Array;\n paymentMethods: Array;\n distributorComission: IDistributorComissionStoreState;\n notAvailableForPurchase: boolean;\n notAvailableForPurchaseReason: string;\n maxPurchase: number;\n isDistributionAvailable: boolean;\n domainTypes: number[];\n\n constructor(dto?: any) {\n this.title = dto && dto.Title ? dto.Title : '';\n this.subtitle = dto && dto.SubTitle ? dto.SubTitle : '';\n this.slug = dto && dto.Slug ? dto.Slug : '';\n this.posterUrl = dto && dto.PosterUrl ? dto.PosterUrl : '';\n this.optionPosterUrl = dto && dto.OptionPosterUrl ? dto.OptionPosterUrl : '';\n this.date = dto && dto.EventDate ? dayjs(dto.EventDate) : dayjs();\n this.venue = dto && dto.Venue ? new VenueStoreState(dto.Venue) : null;\n this.artist = dto && dto.Artist ? new ArtistStoreState(dto.Artist) : null;\n this.sectors = dto && dto.Sectors ? dto.Sectors.map((item) => new VenueSectorStoreState(item)) : [];\n this.paymentMethods =\n dto && dto.PaymentMethods ? dto.PaymentMethods.map((item) => new PaymentStoreState(item)) : [];\n this.distributorComission =\n dto && dto.DistributorComission ? new DistributorComissionStoreState(dto.DistributorComission) : null;\n this.notAvailableForPurchase = dto && dto.NotAvailableForPurchase ? dto.NotAvailableForPurchase : false;\n this.notAvailableForPurchaseReason =\n dto && dto.NotAvailableForPurchaseReason ? dto.NotAvailableForPurchaseReason : '';\n this.maxPurchase = dto && dto.MaxPurchase ? dto.MaxPurchase : 0;\n this.isDistributionAvailable = dto && dto.IsDistributionAvailable ? dto.IsDistributionAvailable : false;\n this.domainTypes = dto && dto.DomainTypes ? dto.DomainTypes : [];\n }\n}\n\nexport interface IVenueStoreState {\n title: string;\n slug: string;\n address: string;\n city: string;\n country: string;\n imageUrl: string;\n schema: ISchemaInformation;\n}\n\nexport class VenueStoreState implements IVenueStoreState {\n title: string;\n slug: string;\n address: string;\n city: string;\n country: string;\n imageUrl: string;\n schema: ISchemaInformation;\n\n constructor(dto?: any) {\n this.title = dto && dto.Title ? dto.Title : '';\n this.slug = dto && dto.Slug ? dto.Slug : '';\n this.address = dto && dto.Address ? dto.Address : '';\n this.city = dto && dto.City ? dto.City : '';\n this.country = dto && dto.Country ? dto.Country : '';\n this.imageUrl = dto && dto.ImageUrl ? dto.ImageUrl : '';\n this.schema = dto && dto.Schema ? new SchemaInformation(dto.Schema) : null;\n }\n}\n\nexport interface IArtistStoreState {\n title: string;\n slug: string;\n imageUrl: string;\n}\n\nexport class ArtistStoreState implements IArtistStoreState {\n title: string;\n slug: string;\n imageUrl: string;\n\n constructor(dto?: any) {\n this.title = dto && dto.Title ? dto.Title : '';\n this.slug = dto && dto.Slug ? dto.Slug : '';\n this.imageUrl = dto && dto.ImageUrl ? dto.ImageUrl : '';\n }\n}\n\nexport interface IDistributorComissionStoreState {\n currentComission: number;\n nextTicketComission: number;\n ticketsSold: number;\n}\n\nexport class DistributorComissionStoreState implements IDistributorComissionStoreState {\n currentComission: number;\n nextTicketComission: number;\n ticketsSold: number;\n\n constructor(dto?: any) {\n this.currentComission = dto && dto.CurrentComission ? dto.CurrentComission : 0;\n this.nextTicketComission = dto && dto.NextTicketComission ? dto.NextTicketComission : 0;\n this.ticketsSold = dto && dto.TicketsSold ? dto.TicketsSold : 0;\n }\n}\n\nexport interface ISeatStoreState {\n quotaId: number;\n sectorSlug: string;\n sectorTitle: string;\n rowSlug: string;\n seatSlug: string;\n}\n\nexport class SeatStoreState implements ISeatStoreState {\n quotaId: number;\n sectorSlug: string;\n sectorTitle: string;\n rowSlug: string;\n seatSlug: string;\n\n constructor(quotaId: number, sectorSlug: string, sectorTitle: string, row?: string, seat?: string) {\n this.quotaId = quotaId;\n this.sectorSlug = sectorSlug;\n this.sectorTitle = sectorTitle;\n this.rowSlug = row;\n this.seatSlug = seat;\n }\n}\n\nexport interface ISchema {\n id: number;\n schema: string;\n version: number;\n}\n\nexport class Schema implements ISchema {\n id: number;\n schema: string;\n version: number;\n\n constructor(dto: any) {\n this.id = dto && dto.Id ? dto.Id : null;\n this.schema = dto && dto.Schema ? dto.Schema : null;\n this.version = dto && dto.Version ? dto.Version : null;\n }\n}\n\nexport interface ISchemaInformation {\n id: number;\n version: number;\n}\n\nexport class SchemaInformation implements ISchemaInformation {\n id: number;\n version: number;\n\n constructor(dto: any) {\n this.id = dto && dto.Id ? dto.Id : null;\n this.version = dto && dto.Version ? dto.Version : null;\n }\n}\n\nexport const enum EventActionTypes {\n EVENTS_INIT = '@@events/INIT',\n}\n\nexport enum EventType {\n None = 0,\n Popular = 1,\n Tour = 2,\n Near = 4,\n Category = 8,\n Date = 16,\n}\n","import React, { FC, useCallback, useEffect, useState } from 'react';\nimport { makeStyles } from 'tss-react/mui';\nimport Paper from '@mui/material/Paper';\nimport InputBase from '@mui/material/InputBase';\nimport IconButton from '@mui/material/IconButton';\nimport SearchIcon from '@mui/icons-material/Search';\nimport LocationOnOutlinedIcon from '@mui/icons-material/LocationOnOutlined';\nimport Autocomplete from '@mui/material/Autocomplete';\nimport { Grid } from '@mui/material';\nimport { useTranslation } from 'react-i18next';\nimport { useHistory } from 'react-router';\nimport useApi from '../../services/apiService';\nimport { PopupLocation } from './popupLocation';\nimport { useRouteService } from '../../helpers/customHooks';\n\ntype StyleProps = {\n borderBottomLeftRadius: number;\n borderBottomRightRadius: number;\n boxShadow: string;\n backdropFilter: string;\n border: string;\n};\n\nconst useStyles = makeStyles({ name: 'SearchInput' })(\n (theme, { borderBottomRightRadius, borderBottomLeftRadius, backdropFilter, boxShadow, border }) => ({\n root: {\n display: 'flex',\n alignItems: 'center',\n height: '54px',\n borderRadius: 0,\n borderTopLeftRadius: 35,\n borderBottomLeftRadius,\n borderTopRightRadius: 35,\n borderBottomRightRadius,\n background: 'rgba(255, 255, 255, 0.1)',\n boxShadow,\n backdropFilter,\n position: 'relative',\n ':after': {\n position: 'absolute',\n content: \"''\",\n bottom: '0px',\n left: 0,\n right: 0,\n margin: '0 16px',\n border,\n },\n },\n input: {\n flex: 1,\n paddingLeft: 45,\n color: 'white',\n fontSize: '0.875rem',\n '& .MuiInputBase-input:focus': {\n '&::placeholder': {\n opacity: 0,\n },\n },\n },\n iconButton: {\n padding: 10,\n marginRight: 15,\n },\n divider: {\n height: 28,\n margin: 4,\n },\n locationPaper: {\n height: '54px',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n },\n gridLocation: {\n minWidth: 72,\n },\n autocompleteGridContainer: {\n display: 'flex',\n flexWrap: 'nowrap',\n },\n searchIcon: {\n color: '#FFBF00',\n },\n btnLocation: {\n padding: 10,\n height: 47,\n width: 47,\n },\n popper: {\n inset: '0px auto auto 0px !important',\n },\n paper: {\n color: 'white',\n borderRadius: 0,\n borderTopLeftRadius: 0,\n borderTopRightRadius: 0,\n borderBottomRightRadius: 35,\n borderBottomLeftRadius: 35,\n background: 'rgba(255, 255, 255, 0.1)',\n boxShadow: 'inset 0px -20px 19.4px rgb(194 194 194 / 10%), inset 0px 20px 0px rgb(255 255 255 / 0%)',\n backdropFilter: 'blur(19.4px)',\n },\n focused: {\n backgroundColor: 'inherit',\n },\n listbox: {\n padding: '8px 45px',\n },\n endAdornment: {\n display: 'none',\n },\n option: {\n paddingLeft: '0px !important',\n paddingRight: '0px !important',\n color: 'white',\n fontSize: '0.875rem',\n },\n noOptions: {\n padding: '14px 45px',\n color: 'white',\n fontSize: '0.875rem',\n },\n loading: {\n padding: '14px 45px',\n color: 'white',\n fontSize: '0.875rem',\n },\n })\n);\n\nexport type searchType = {\n id: string;\n value: string;\n};\n\nexport const SearchInput: FC = ({ city, setCity }) => {\n const routeSrv = useRouteService();\n\n const [open, setOpen] = useState(false);\n const [search, setSearch] = useState('');\n const [options, setOptions] = useState([]);\n const [loading, setLoading] = useState(false);\n const [openPopup, setOpenPopup] = useState(false);\n\n const { eventsApi } = useApi();\n const history = useHistory();\n const { t } = useTranslation();\n\n const handleSearchIconClick = () => {\n setOpen(false);\n };\n\n const handleAutocompleteOnClick = (event, value) => {\n const eventShortInformation = value as searchType;\n const link = routeSrv.getEventRoute(eventShortInformation.id);\n history.push(link);\n };\n\n useEffect(() => {\n if (!open) {\n setOptions([]);\n }\n }, [open]);\n\n useEffect(() => {\n if (search === '' || !search) {\n return undefined;\n }\n\n (async () => {\n setLoading(true);\n\n const events = await eventsApi.searchEvents(search);\n const opt = events.map((x) => ({\n id: x.slug,\n value: `${x.title}, ${x.city}`,\n }));\n setOptions(opt);\n\n setLoading(false);\n })();\n }, [search]);\n\n const handleClose = useCallback(() => {\n setOpenPopup(false);\n }, []);\n\n const styles = {\n borderBottomLeftRadius: open ? 0 : 35,\n borderBottomRightRadius: open ? 0 : 35,\n boxShadow: open\n ? 'inset 19.4px -19.4px 0px rgb(255 255 255 / 0%), inset 0px 20px 19.4px rgb(255 255 255 / 10%)'\n : 'inset 13.3px -13.3px 13.3px rgb(194 194 194 / 2%), inset -13.3px 13.3px 13.3px rgb(255 255 255 / 2%)',\n backdropFilter: open ? 'blur(19.4px)' : 'blur(1px)',\n border: open ? '0.5px solid #d8d8d84f' : 'none',\n };\n\n const { classes } = useStyles(styles);\n\n return (\n \n \n \n ('Dashboard.NothingFound')}\n loadingText={t('Dashboard.Loading')}\n onOpen={() => setOpen(true)}\n onClose={() => setOpen(false)}\n isOptionEqualToValue={(option, value) => option.id === value.id}\n getOptionLabel={(option) => option.value}\n onChange={handleAutocompleteOnClick}\n options={options}\n loading={loading}\n classes={{\n popper: classes.popper,\n endAdornment: classes.endAdornment,\n paper: classes.paper,\n focused: classes.focused,\n listbox: classes.listbox,\n option: classes.option,\n noOptions: classes.noOptions,\n loading: classes.loading,\n }}\n renderInput={(params) => {\n const { InputLabelProps, InputProps, ...rest } = params;\n return (\n
\n \n \n \n setSearch(event.target.value)}\n className={classes.input}\n placeholder={t('Search by Artist, Event or Venue ')}\n sx={{\n input: {\n '&::placeholder': {\n opacity: 1,\n },\n },\n }}\n />\n \n \n \n \n \n \n
\n );\n }}\n />\n
\n
\n );\n};\n\ntype SearchInputType = {\n city?: string;\n setCity?: (city: string) => void;\n};\n","import { Dispatch } from 'redux';\nimport { action } from 'typesafe-actions';\n\nimport { ThunkService } from '../../services';\nimport { IGlobalStoreState } from '..';\nimport { hideSpinner, showSpinner } from '../app/actions';\nimport { ITokenTicketQuotaStoreState } from '../ticket/types';\nimport { IShareStoreState, ShareActionTypes, ShareStoreState } from './types';\nimport { IEventStoreState } from '../event/types';\n\nconst init = (payload: IShareStoreState) => action(ShareActionTypes.SHARE_INIT, payload);\nexport const clear = () => action(ShareActionTypes.CLEAR_INIT);\n\nexport const initShare =\n (event: IEventStoreState) =>\n (dispatch: Dispatch): Promise => {\n const shareStore = new ShareStoreState();\n shareStore.event = event;\n\n dispatch(init(shareStore));\n return Promise.resolve(shareStore);\n };\n\nexport const getTicketShareToken =\n (\n eventSlug: string,\n sectorSlug: string,\n tickets: number\n ): ((dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => Promise) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n if (!eventSlug || !sectorSlug || tickets <= 0) {\n return;\n }\n try {\n dispatch(showSpinner());\n const response = await thunkService.api.share.getToken(eventSlug, sectorSlug, tickets);\n return Promise.resolve(response);\n } finally {\n dispatch(hideSpinner());\n }\n };\n\nexport const getTicketQuotaByShareToken =\n (\n token: string\n ): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n ) => Promise) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n if (!token) {\n return;\n }\n try {\n dispatch(showSpinner());\n const response = await thunkService.api.share.getTicketQuotaByToken(token);\n return Promise.resolve(response);\n } finally {\n dispatch(hideSpinner());\n }\n };\n","import React, { FC } from 'react';\nimport styled from 'styled-components';\nimport { RLink } from '..';\n\nexport interface ISelectorItem {\n to: string;\n title: string;\n subtitle?: string;\n note?: string;\n}\n\nexport const SelectorItem: FC = ({ title, note, to, subtitle }) => (\n \n \n \n {title}\n {subtitle && {subtitle}}\n \n \n {note && {note}}\n \n \n \n \n);\n\nconst Container = styled.li`\n padding: 0 25px;\n margin: 0 -25px;\n\n &:hover {\n background-color: ${(props) => props.theme.colors.accent};\n\n > a > div > span {\n color: black;\n }\n }\n`;\n\nconst Link = styled(RLink as any)`\n padding: 10px 0;\n margin-bottom: -1px;\n display: flex;\n align-items: center;\n border-bottom: 1px solid ${(props) => props.theme.colors.accent};\n\n &:hover {\n color: unset;\n }\n`;\n\nconst TitleWrapper = styled.div`\n flex: 1;\n`;\n\nconst Title = styled.p`\n padding: 0;\n margin: 0;\n font-size: 14px;\n`;\n\nconst Subtitle = styled.span`\n font-size: 12px;\n color: ${(props) => props.theme.colors.textSecond};\n`;\n\nconst NoteWrapper = styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst Arrow = styled.span`\n background: url(${(props) => props.theme.img.icons.back}) 0 no-repeat;\n width: 23px;\n height: 23px;\n border: none;\n display: inline-block;\n background-size: contain;\n transform: rotate(180deg);\n\n &:hover {\n cursor: pointer;\n }\n`;\n","import { Reducer } from 'redux';\n\nimport { IAppSettingsState, AppSettingsState, AppSettingsActionTypes } from './types';\n\nconst appSettingsReducer: Reducer = (state: IAppSettingsState = new AppSettingsState(), action) => {\n switch (action.type) {\n case AppSettingsActionTypes.APP_SETTINGS_INIT:\n return { ...action.payload } as IAppSettingsState;\n default:\n return state;\n }\n};\n\nexport default appSettingsReducer;\n","import dayjs from 'dayjs';\n\nimport { IEventStoreState, EventStoreState, ISchemaInformation, SchemaInformation } from '../event/types';\n\nexport interface IVenueSectorRowSeatStoreState {\n quotaId: number;\n slug: string;\n title: string;\n}\n\nexport class VenueSectorRowSeatStoreState implements IVenueSectorRowSeatStoreState {\n public quotaId: number;\n public slug: string;\n public title: string;\n\n constructor(dto?: any) {\n this.slug = dto && dto.Slug ? dto.Slug : '';\n this.title = dto && dto.Title ? dto.Title : '';\n this.quotaId = dto && dto.TicketQuotaId ? dto.TicketQuotaId : 0;\n }\n}\n\nexport interface IVenueSectorRowStoreState {\n slug: string;\n sectorSlug: string;\n title: string;\n seats: IVenueSectorRowSeatStoreState[];\n}\n\nexport class VenueSectorRowStoreState implements IVenueSectorRowStoreState {\n public slug: string;\n public sectorSlug: string;\n public title: string;\n public seats: IVenueSectorRowSeatStoreState[];\n\n constructor(dto?: any) {\n this.slug = dto && dto.Slug ? dto.Slug : '';\n this.sectorSlug = dto && dto.SectorSlug ? dto.SectorSlug : '';\n this.title = dto && dto.Title ? dto.Title : '';\n this.seats = dto && dto.Seats ? dto.Seats.map((s: any) => new VenueSectorRowSeatStoreState(s)) : [];\n }\n}\n\nexport interface IVenueSectorStoreState {\n slug: string;\n noSeats: boolean;\n title: string;\n rows: IVenueSectorRowStoreState[];\n ticketQuotas: Array;\n schema: ISchemaInformation;\n schemaUrl: string;\n}\n\nexport class VenueSectorStoreState implements IVenueSectorStoreState {\n public slug: string;\n public noSeats: boolean;\n public title: string;\n public rows: IVenueSectorRowStoreState[];\n public ticketQuotas: Array;\n public schema: ISchemaInformation;\n public schemaUrl: string;\n\n constructor(dto?: any) {\n this.slug = dto && dto.Slug ? dto.Slug : '';\n this.title = dto && dto.Title ? dto.Title : '';\n this.noSeats = dto && dto.NoSeats ? dto.NoSeats : false;\n this.rows = dto && dto.Rows ? dto.Rows.map((r: any) => new VenueSectorRowStoreState(r)) : [];\n this.ticketQuotas =\n dto && dto.TicketQuotas\n ? dto.TicketQuotas.map((item) => new BookTicketQuotaStoreState(item)).sort((a, b) => (a.slug > b.slug ? -1 : 1))\n : [];\n this.schema = dto && dto.Schema ? new SchemaInformation(dto.Schema) : null;\n this.schemaUrl = dto && dto.schemaUrl ? dto.schemaUrl : null;\n }\n}\n\nexport interface ITokenTicketQuotaStoreState {\n quotaId: number;\n left: number;\n sectorSlug: string;\n}\n\nexport class TokenTicketQuotaStoreState implements ITokenTicketQuotaStoreState {\n quotaId: number;\n left: number;\n sectorSlug: string;\n\n constructor(dto?: any) {\n this.quotaId = dto && dto.QuotaId ? dto.QuotaId : 0;\n this.left = dto && dto.Left ? dto.Left : 0;\n this.sectorSlug = dto && dto.SectorSlug ? dto.SectorSlug : '';\n }\n}\n\nexport interface IBookTicketQuotaStoreState {\n id: number;\n title: string;\n total: number;\n left: number;\n currency: string;\n price: number;\n sectorId: number;\n isPrivate?: boolean;\n isAvailableForDistribution?: boolean;\n}\n\nexport class BookTicketQuotaStoreState implements IBookTicketQuotaStoreState {\n id: number;\n title: string;\n total: number;\n left: number;\n currency: string;\n price: number;\n sectorId: number;\n isPrivate?: boolean;\n isAvailableForDistribution?: boolean;\n\n constructor(dto?: any) {\n this.title = dto && dto.Title ? dto.Title : '';\n this.id = dto && dto.Id ? dto.Id : 0;\n this.total = dto && dto.TicketsTotal ? dto.TicketsTotal : 0;\n this.left = dto && dto.TicketsLeft ? dto.TicketsLeft : 0;\n this.currency = dto && dto.Currency ? dto.Currency : '';\n this.price = dto && dto.PricePerTicket ? dto.PricePerTicket : 0;\n this.sectorId = dto && dto.SectorId ? dto.SectorId : 0;\n this.isPrivate = dto && dto.IsPrivate ? dto.IsPrivate : false;\n this.isAvailableForDistribution = dto && dto.IsAvailableForDistribution ? dto.IsAvailableForDistribution : null;\n }\n}\n\nexport interface ITicketStoreState {\n masterTicketId: string;\n ticketId: string;\n status: string;\n issuedTo: string;\n saleUser: string;\n currency: string;\n price: number;\n issuedAt: dayjs.Dayjs;\n event: IEventStoreState;\n sentAt?: dayjs.Dayjs;\n ticketQuota?: IBookTicketQuotaStoreState;\n rowTitle?: string;\n seatTitle?: string;\n seatId?: number;\n token: string;\n expiredPaymentTime: dayjs.Dayjs;\n percentageComission: number;\n comissionDescription: string;\n priceComission: number;\n}\n\nexport class TicketStoreState implements ITicketStoreState {\n masterTicketId: string;\n ticketId: string;\n status: string;\n issuedTo: string;\n saleUser: string;\n currency: string;\n price: number;\n issuedAt: dayjs.Dayjs;\n event: IEventStoreState;\n sentAt?: dayjs.Dayjs;\n ticketQuota?: IBookTicketQuotaStoreState;\n rowTitle?: string;\n seatTitle?: string;\n seatId?: number;\n token: string;\n expiredPaymentTime: dayjs.Dayjs;\n percentageComission: number;\n comissionDescription: string;\n priceComission: number;\n\n constructor(dto?: any) {\n this.masterTicketId = dto && dto.MasterTicketId ? dto.MasterTicketId : '';\n this.ticketId = dto && dto.TicketId ? dto.TicketId : '';\n this.status = dto && dto.Status ? dto.Status : '';\n this.issuedTo = dto && dto.IssuedTo ? dto.IssuedTo : '';\n this.currency = dto && dto.Currency ? dto.Currency : '';\n this.price = dto && dto.Price ? dto.Price : 0;\n this.issuedAt = dto && dto.IssuedAt ? dayjs(dto.IssuedAt) : dayjs();\n this.event = dto && dto.Event ? new EventStoreState(dto.Event) : null;\n this.sentAt = null;\n this.ticketQuota = dto && dto.TicketQuota ? new BookTicketQuotaStoreState(dto.TicketQuota) : null;\n this.rowTitle = dto && dto.RowTitle ? dto.RowTitle : '';\n this.seatTitle = dto && dto.SeatTitle ? dto.SeatTitle : '';\n this.seatId = dto && dto.SeatId ? dto.SeatId : 0;\n this.saleUser = dto && dto.SaleUser ? dto.SaleUser : '';\n this.token = dto && dto.Token ? dto.Token : '';\n this.expiredPaymentTime = dto && dto.ExpiredPaymentTime ? dayjs(dto.ExpiredPaymentTime) : dayjs();\n this.percentageComission = dto && dto.PercentageComission ? dto.PercentageComission : null;\n this.comissionDescription = dto && dto.ComissionDescription ? dto.ComissionDescription : '';\n this.priceComission = dto && dto.PriceComission ? dto.PriceComission : '';\n }\n}\n\nexport interface IIssueTicketInfo {\n ticketId: string;\n issueToMyself: boolean;\n issueToEmail: string;\n}\n\nexport class IssueTicketInfo implements IIssueTicketInfo {\n ticketId: string;\n issueToMyself: boolean;\n issueToEmail: string;\n\n constructor(ticketId: string, email: string, self = false) {\n this.ticketId = ticketId;\n this.issueToEmail = email;\n this.issueToMyself = self;\n }\n}\n\nexport interface ISellTicketInfo {\n ticketId: string;\n issueToEmail: string;\n price: number;\n returnUrl: string;\n}\n\nexport class SellTicketInfo implements ISellTicketInfo {\n ticketId: string;\n issueToEmail: string;\n price: number;\n returnUrl: string;\n\n constructor(ticketId: string, email: string, price: number) {\n this.ticketId = ticketId;\n this.issueToEmail = email;\n this.price = price;\n }\n}\n\nexport interface IBoughtTicketInfo {\n ticketId: string;\n returnUrl: string;\n}\n\nexport class BoughtTicketInfo implements IBoughtTicketInfo {\n ticketId: string;\n returnUrl: string;\n\n constructor(ticketId: string) {\n this.ticketId = ticketId;\n }\n}\n\nexport interface ISellCardTokenInfo {\n amount: number;\n currency: string;\n referenceNumber: string;\n customerEmail: string;\n}\n\nexport class SellCardTokenInfo implements ISellCardTokenInfo {\n amount: number;\n currency: string;\n referenceNumber: string;\n customerEmail: string;\n\n constructor(amount: number, currency: string, referenceNumber: string, customerEmail: string) {\n this.amount = amount;\n this.currency = currency;\n this.referenceNumber = referenceNumber;\n this.customerEmail = customerEmail;\n }\n}\n","export enum Pages {\n Main = '',\n EventDetails = 'event',\n Book = 'book',\n Checkout = 'checkout',\n BookResult = 'result',\n User = 'user',\n Login = 'login',\n Registration = 'registration',\n EmailConfirm = 'email-confirmation',\n Profile = 'profile',\n EditProfile = 'edit-profile',\n UserEvents = 'my-events',\n UserTickets = 'my-tickets',\n Sell = 'sell',\n PasswordRecovery = 'password-recovery',\n ResetPassword = 'password-reset',\n Contacts = 'contacts',\n PaymentsInfo = 'payments-info',\n Share = 'share',\n Widget = 'widget',\n Categories = 'categories',\n Referral = 'referral',\n Success = 'success',\n Failed = 'failed',\n}\n\nexport enum BookStatus {\n Success = 'success',\n Fail = 'fail',\n Decline = 'decline',\n Cancel = 'cancel',\n Timeout = 'timeout',\n InProcess = 'processing',\n}\n\nexport enum EmailConfirmStatus {\n Success = 'success',\n Failed = 'failed',\n}\n\nexport enum AlertType {\n Success = 'success',\n Info = 'info',\n Warning = 'warning',\n Error = 'error',\n None = 'none',\n}\n\nexport enum PaymentProvider {\n YandexKassa = 'YandexKassa',\n BePaid = 'BePaid',\n Fanaticka = 'Fanaticka',\n Stripe = 'Stripe',\n Freedompay = 'Freedompay',\n}\n\nexport enum PaymentMethod {\n BankCard = 'BankCard',\n StripeBankCard = 'StripeBankCard',\n FreedompayBankCard = 'FreedompayBankCard',\n Points = 'Points',\n}\n\nexport enum StripePaymentStatus {\n canceled = 'canceled',\n requires_action = 'requires_action',\n requires_confirmation = 'requires_confirmation',\n succeeded = 'succeeded',\n processing = 'processing',\n requires_payment_method = 'requires_payment_method',\n}\n\nexport enum KeySuccess {\n EmailSent = 'email-sent',\n EmailConfirmed = 'email-confirmed',\n PaymentSucceeded = 'payment-succeeded',\n PaymentInProcess = 'payment-in-process',\n}\n\nexport enum KeyErrors {\n EventNotFound = 'event-not-found',\n QuotaNotFound = 'quota-not-found',\n NotEnoughTickets = 'not-enough-tickets',\n NoTickets = 'no-tickets',\n ServerError = 'server-error',\n EmailConfirmFailed = 'email-confirm-failed',\n ResetPasswordFailed = 'reset-password-failed',\n PaymentFailed = 'payment-failed',\n PaymentTimeout = 'payment-timeout',\n TicketNotFound = 'ticket-not-found',\n}\n\nexport enum IssueStatus {\n Issued = 'Issued',\n Unissued = 'Unissued',\n}\n\nexport enum SellStatus {\n Sold = 'Sold',\n Sale = 'Sale',\n InitiatedSale = 'InitiatedSale',\n OfferedForPurchase = 'OfferedForPurchase',\n Bought = 'Bought',\n PaymentInProcess = 'PaymentInProcess',\n PaymentDeclined = 'PaymentDeclined',\n}\n\nexport enum DomainType {\n None = 0,\n By = 1,\n Ru = 2,\n Pl = 4,\n Co = 8,\n Info = 16,\n Live = 32,\n Me = 64,\n Eu = 128,\n Com = 256,\n Kz = 512,\n}\n\nexport enum Locale {\n en = 'en',\n ru = 'ru',\n}\n\nexport enum RequestType {\n none = 0,\n confirmPhone = 1,\n auth = 2,\n token = 3,\n signup = 4,\n userTickets,\n}\n","import React from 'react';\nimport styled from 'styled-components';\nimport { useTranslation } from 'react-i18next';\n\nimport {\n Page,\n PageContent,\n PageHeader,\n PageTitle,\n PaymentDocumentsLink,\n UserAgreementLink,\n} from '../../../components/UI';\nimport { PaymentLogos } from '../../../components/payment';\nimport { EventHelper } from '../../../helpers';\nimport { DomainType } from '../../../store/enums';\n\nexport const PaymentsInfoPage = () => {\n const { t } = useTranslation();\n const { getDomainType } = EventHelper;\n const isDomainKz = getDomainType(window.location.host) === DomainType.Kz;\n\n const PaymentMethodsTitle = isDomainKz ? 'Методы оплаты' : t('PaymentsInfo.PaymentMethods');\n const TicketPaymentMethodTitle = isDomainKz ? 'Способы оплаты билета' : t('PaymentsInfo.TicketPaymentMethod');\n\n return (\n \n
\n {PaymentMethodsTitle}\n
\n \n

{TicketPaymentMethodTitle}

\n {isDomainKz && (\n <>\n

Вы можете оплатить нужный Вам билет с помощью банковской карты.

\n

\n После нажатия кнопки «Оплатить» вы будете перенаправлены на специальную защищенную страницу оплаты\n процессинговой системы. На странице оплаты будут указаны номер заказа и сумма платежа. Для оплаты вам\n необходимо ввести данные вашей карты и подтвердить платеж, нажав кнопку «Оплатить». Если ваша карта\n поддерживает технологию 3-D Secure, вам будет предложено пройти стандартную одноминутную процедуру\n проверки держателя карты на сайте вашего банка (банка, выпустившего вашу карту).\n

\n

\n После успешной оплаты вы автоматически получите уведомление по электронной почте. Настоятельно рекомендуем\n вам сохранить платежные данные, это ваше подтверждение оплаты и может быть полезно в случае возникновения\n спорной ситуации\n

\n

Мы принимаем платежи следующими кредитными картами: Visa, Visa Electron, MasterCard, Maestro

\n \n )}\n {!isDomainKz && (\n <>\n

{t('PaymentsInfo.AfterPressingButton')}

\n

{t('PaymentsInfo.RedirectToPaymentPage')}

\n

{t('PaymentsInfo.ProofOfPayment')}

\n {/*

*/}\n {/* */}\n {/*

*/}\n

{t('PaymentsInfo.AcceptCreditCards')}

\n \n )}\n \n \n \n {isDomainKz && (\n <>\n

\n Безопасность вводимых данных обеспечивается использованием специальных протоколов SSL и гарантирующих\n безопасную передачу данных в сети\n

\n

\n После успешной оплаты, вы получите билеты по электронной почте, которую вы указали. Вам необходимо будет\n распечатать полученный билет со штрихкодом.\n

\n

Условия возврата следующие:

\n \n \n )}\n {!isDomainKz && (\n <>\n

\n {t('PaymentsInfo.BankCardPayments')}. {t('PaymentsInfo.SystemPaymentPage')}{' '}\n {t('PaymentsInfo.SafetyRequirements')}\n

\n

{t('PaymentsInfo.Refund')}

\n

\n {t('PaymentsInfo.ReturnConditions')} \n

\n \n )}\n
\n
\n );\n};\n\nconst Header = styled(PageHeader as any)`\n min-height: unset;\n height: unset;\n text-align: left;\n padding: 20px 25px 0 25px;\n align-items: start;\n`;\n\nconst H2 = styled.h2`\n font-size: 16px;\n`;\n\nconst P: any = styled.p`\n margin: 0 0 20px 0;\n font-size: 14px;\n`;\n\nconst LogosWrapper = styled.div`\n margin-bottom: 45px;\n`;\n","import { AppSettings } from './appSettings';\n\nexport const AppTheme = {\n colors: {\n accent: '#FFBF00',\n accentDimmed: '#FF9C01',\n accentDisabled: '#8D6D0D',\n error: '#FF003F',\n bg: '#1C1C1C',\n text: 'white',\n textSecond: '#B2B2B2',\n },\n maxWidth: '768px',\n fonts: {\n regularFont: `Intro, ${AppSettings.DEFAULT_FONTS}`,\n googleMediumFont: `Google-Medium-Sans, ${AppSettings.DEFAULT_FONTS}`,\n regularAltFont: `Intro-Regular-Alt, ${AppSettings.DEFAULT_FONTS}`,\n boldFont: `Intro-Bold, ${AppSettings.DEFAULT_FONTS}`,\n bolderFont: `Intro-Black, ${AppSettings.DEFAULT_FONTS}`,\n lightFont: `Intro-Light, ${AppSettings.DEFAULT_FONTS}`,\n lighterFont: `Intro-Book, ${AppSettings.DEFAULT_FONTS}`,\n blackCapsFont: `Intro-Black-Caps, ${AppSettings.DEFAULT_FONTS}`,\n boldCapsFont: `Intro-Bold-Caps, ${AppSettings.DEFAULT_FONTS}`,\n },\n img: {\n icons: {\n purse: `${AppSettings.IMAGES_PATH}/icPurse.svg`,\n location: `${AppSettings.IMAGES_PATH}/icLocation.svg`,\n back: `${AppSettings.IMAGES_PATH}/icBack.svg`,\n person: `${AppSettings.IMAGES_PATH}/icPerson.svg`,\n calendar: `${AppSettings.IMAGES_PATH}/icCalendar.svg`,\n rock: `${AppSettings.IMAGES_PATH}/icRock.svg`,\n error: `${AppSettings.IMAGES_PATH}/icError.svg`,\n mail: `${AppSettings.IMAGES_PATH}/icMail.svg`,\n profile: `${AppSettings.IMAGES_PATH}/icProfile.svg`,\n edit: `${AppSettings.IMAGES_PATH}/icEdit.svg`,\n star: `${AppSettings.IMAGES_PATH}/icStar.svg`,\n meet: `${AppSettings.IMAGES_PATH}/icMeet.svg`,\n ticket: `${AppSettings.IMAGES_PATH}/icTicket.svg`,\n soldTicket: `${AppSettings.IMAGES_PATH}/icSoldTicket.svg`,\n copy: `${AppSettings.IMAGES_PATH}/icCopy.svg`,\n plane: `${AppSettings.IMAGES_PATH}/icPlane.svg`,\n menu: `${AppSettings.IMAGES_PATH}/icMenu.svg`,\n close: `${AppSettings.IMAGES_PATH}/icClose.svg`,\n },\n logo: `${AppSettings.IMAGES_PATH}/logo.svg`,\n payment: {\n formLogos: `${AppSettings.IMAGES_PATH}/payment/paymentLogos.png`,\n logos: [\n { id: 'visa', url: `${AppSettings.IMAGES_PATH}/payment/visa`, title: 'VISA' },\n // { id: 'visaVerified', url: `${AppSettings.IMAGES_PATH}/payment/visaVerified`, title: 'Verified by VISA' },\n { id: 'masterCard', url: `${AppSettings.IMAGES_PATH}/payment/mc`, title: 'MasterCard' },\n {\n id: 'masterCardSecureCode',\n url: `${AppSettings.IMAGES_PATH}/payment/mcSecureCode`,\n title: 'MasterCard SecureCode',\n },\n // { id: 'belCard', url: `${AppSettings.IMAGES_PATH}/payment/belCard`, title: 'БЕЛКАРТ' },\n // { id: 'bePaid', url: `${AppSettings.IMAGES_PATH}/payment/bePaid`, title: 'bePaid', website: PaymentSettings.BEPAID_URL },\n // { id: 'mtbank', url: `${AppSettings.IMAGES_PATH}/payment/mtb`, title: 'МТБанк' },\n ],\n },\n backgrounds: {\n bg1: `${AppSettings.IMAGES_PATH}/bg`,\n bg2: `${AppSettings.IMAGES_PATH}/bg2`,\n },\n },\n scrollbarHeight: '8px',\n};\n","import * as React from 'react';\nimport { useEffect } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useTranslation } from 'react-i18next';\nimport styled from 'styled-components';\nimport { Typography } from '@mui/material';\nimport { IGlobalStoreState } from '../../../store';\nimport { Button, Message, MessageButtonsWrapper } from '../../../components/UI';\nimport { ResultInfoButtonConfigType, ResultInfoType } from '../../../store/resultInformarion/types';\nimport { AppTheme } from '../../../settings/appTheme';\nimport { KeySuccess } from '../../../store/enums';\nimport { clearInfo } from '../../../store/resultInformarion/actions';\nimport { DomainSetting } from '../../../settings/appSettings';\n\nexport const InformationSuccess = () => {\n const dispatch = useDispatch();\n const { t } = useTranslation();\n\n const config = useSelector((state) => state.resultInfo);\n\n useEffect(() => {\n return () => {\n dispatch(clearInfo());\n };\n }, [dispatch]);\n\n if (!config.key) {\n return null;\n }\n const { key, title, message, buttons } = config;\n\n const background = key?.includes('email') ? AppTheme.img.backgrounds.bg2 : AppTheme.img.backgrounds.bg1;\n\n const isEmailSentKey = key === KeySuccess.EmailSent;\n const icon = isEmailSentKey ? AppTheme.img.icons.mail : AppTheme.img.icons.rock;\n\n const handleButtonClick = (e: any, button: ResultInfoButtonConfigType) => {\n if (button.callback) {\n button.callback();\n }\n };\n const isEuDomain = location.host.includes(DomainSetting.Eu);\n const isPlDomain = location.host.includes(DomainSetting.Pl);\n const isKzDomain = location.host.includes(DomainSetting.Kz);\n\n return (\n \n \n \n \n \n \n buttons?.length && (\n \n {buttons.map((btn, index) => (\n \n ))}\n {key === KeySuccess.PaymentSucceeded && isPlDomain && (\n \n )}\n {key === KeySuccess.PaymentSucceeded && isKzDomain && (\n <>\n \n \n После оплаты билета на Бас-Тур обязательно напиши менеджеру, он добавит тебя в чат поездки.\n \n \n )}\n {key === KeySuccess.PaymentSucceeded && isEuDomain && (\n <>\n \n \n После оплаты билета на Бас-Тур обязательно напиши менеджеру, он добавит тебя в чат поездки.\n \n \n )}\n \n )\n }\n />\n \n );\n};\n\nconst Dialog = styled.dialog<{ maxWidth: string; theme: { colors: { text: string } } }>`\n position: absolute;\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 100%;\n height: 100%;\n max-height: 100vh;\n z-index: 800;\n border: none;\n padding: 0;\n margin: 0;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n max-width: ${(props) => props.theme.maxWidth};\n color: ${(props) => props.theme.colors.text};\n`;\n\nconst AnimatedDialog = (props: any) => ;\n\nconst Background = styled.img`\n position: fixed;\n top: 0;\n bottom: 0;\n width: 100%;\n max-width: ${(props) => props.theme.maxWidth};\n height: 100%;\n object-fit: cover;\n object-position: center;\n`;\n","import { applyMiddleware, compose, legacy_createStore as createStore } from 'redux';\nimport { createMigrate, MigrationManifest, PersistConfig, persistReducer, persistStore } from 'redux-persist';\nimport autoMergeLevel2 from 'redux-persist/es/stateReconciler/autoMergeLevel2';\nimport storage from 'redux-persist/es/storage';\nimport thunk from 'redux-thunk';\nimport { ThunkService } from './services';\nimport { IGlobalStoreState, rootReducer } from './store';\nimport { AppSettings } from './settings/appSettings';\n\nconst thunkService = new ThunkService({\n baseURL: `${AppSettings.BASE_API_URL}`,\n});\n\nconst enhancer = compose(applyMiddleware(thunk.withExtraArgument(thunkService)));\n\nconst migrations: MigrationManifest = {\n 0: (state: IGlobalStoreState) => ({ ...state }),\n 1: (state: IGlobalStoreState) => ({\n ...state,\n app: {\n ...state.app,\n isRedirection: false,\n },\n }),\n 2: (state: IGlobalStoreState) => ({\n ...state,\n user: {\n ...state.user,\n balances: [],\n },\n }),\n};\n\nconst persistConfig: PersistConfig = {\n key: 'fanaticka',\n storage,\n stateReconciler: autoMergeLevel2,\n version: 3,\n whitelist: ['app', 'auth', 'book', 'checkout', 'distribution', 'user', 'region', 'userTickets'],\n migrate: createMigrate(migrations, { debug: true }),\n};\n\nconst persistedReducer = persistReducer(persistConfig, rootReducer);\n\nexport default () => {\n const thunk = thunkService;\n const store = createStore(persistedReducer, enhancer);\n const persistor = persistStore(store);\n\n if (module.hot) {\n module.hot.accept(() => {\n store.replaceReducer(persistReducer(persistConfig, rootReducer));\n });\n }\n\n return { store, persistor, thunk };\n};\n","export class ValidationService {\n private static _instance: ValidationService;\n\n constructor() {\n if (typeof ValidationService._instance === 'undefined') {\n ValidationService._instance = this;\n }\n return ValidationService._instance;\n }\n\n public isRequired(value: string): boolean {\n return !!value;\n }\n\n public isEmail(value: string): boolean {\n const re =\n /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n return re.test(value);\n }\n\n public isConfirmed(firstValue: string, secondValue: string): boolean {\n return firstValue === secondValue;\n }\n}\n","export * from './ticketSelector';\nexport * from './placeSelector';\nexport * from './schemaSectorSelector';\n","import { useLayoutEffect } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { useHistory, useParams } from 'react-router';\nimport { AlertType, EmailConfirmStatus, KeyErrors, KeySuccess } from '../../../store/enums';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\nimport { setResultInfo } from '../../../store/resultInformarion/actions';\n\nconst EmailConfirmPage = () => {\n const dispatch = useDispatch();\n const { status } = useParams<{ status: string }>();\n const history = useHistory();\n const { getProfileRoute, getResultStatusRoute } = useRoutesHelper();\n\n useLayoutEffect(() => {\n if (status) {\n const isSuccess = status === EmailConfirmStatus.Success;\n const alertType = isSuccess ? AlertType.Success : AlertType.Error;\n const alertKey = isSuccess ? KeySuccess.EmailConfirmed : KeyErrors.EmailConfirmFailed;\n const message = isSuccess\n ? 'Alert.NowYouCanLogInUsingYourEmailAndPassword'\n : 'Alert.EmailVerificationLinkIsInvalidOrOutOfDate';\n const title = isSuccess ? 'Alert.EmailConfirmed' : 'Alert.SomethingWentWrong';\n\n dispatch(\n setResultInfo({\n type: alertType,\n key: alertKey,\n title,\n message,\n buttons: [\n {\n title: 'Registration.GoToLogin',\n callback: () => history.push(getProfileRoute()),\n },\n ],\n })\n );\n history.push(getResultStatusRoute(alertType, alertKey));\n }\n }, [dispatch, getProfileRoute, history, status]);\n\n return null;\n};\n\nexport default EmailConfirmPage;\n","import React, { FC, memo, useEffect, useState } from 'react';\nimport { Field, Form, Formik } from 'formik';\nimport styled from 'styled-components';\nimport dayjs from 'dayjs';\nimport * as Yup from 'yup';\nimport { isValidPhoneNumber } from 'react-phone-number-input';\nimport { useTranslation } from 'react-i18next';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport { IUserStoreState } from '../../store/user/types';\nimport { Utils } from '../../services';\nimport { FieldError, FieldInfo, Fieldset, FieldsetLabel, FieldWrapper, FormError } from './commonForm';\nimport { Button, InputWrapper, TextInput } from '../UI';\nimport CopyButton from '../UI/copyButton';\nimport { PopUp } from '../../store/animations';\nimport Constants from '../../store/constants';\nimport RegExpRules from '../../store/regExpRules';\nimport { IEditProfileForm } from '../../containers/pages/user/editProfilePage';\nimport UserHelper from '../../helpers/userHelper';\n\ntype EditProfileFormNewType = {\n user: IUserStoreState;\n errors: any;\n submitTitle: string;\n onSendCodeClick: (phone: string) => void;\n onSubmit: (formModel: IEditProfileForm) => void;\n};\n\nexport const EditProfileForm: FC = memo(\n ({ errors, user, submitTitle, onSendCodeClick, onSubmit }) => {\n const [resendCodeSecLeft, setResendCodeSecLeft] = useState(0);\n const { t } = useTranslation();\n\n let sendCodeTimer: any;\n const isPhoneConfirmed = user.phoneNumberConfirmed;\n const referralLink = UserHelper.generateReferralUrl(user);\n const isSendCodeBtnDisabled = resendCodeSecLeft > 0;\n const isCodeSent = !!user.phoneCodeSentAt;\n const phoneNumber = user.phoneNumber || '+';\n\n const codeSentMessage =\n isSendCodeBtnDisabled &&\n `${t(user.phoneCodeSentMessage, {\n phone: user.phoneNumber,\n seconds: resendCodeSecLeft,\n })}`;\n\n const phoneCodeValidate = (code: string, phone: string) =>\n (!user.phoneNumberConfirmed || phone !== user.phoneNumber) && !code && t('EditProfileForm.CodeIsRequired');\n\n const sendCodeValidate = (phoneNumber: string) => {\n const isCodeSent = !!user.phoneCodeSentAt;\n const isPhoneConfirmed = user.phoneNumberConfirmed;\n return (\n !isCodeSent &&\n (!isPhoneConfirmed || user.phoneNumber !== phoneNumber) &&\n t('EditProfileForm.YouMustSendCodeToConfirmThePhoneNumber')\n );\n };\n\n const renderFormErrors = (error?: string, phone?: string) => {\n const hasErrors = (!!errors && !!errors.form) || !!error;\n const outputError =\n hasErrors && ((!!errors && errors.form && (t(errors.form.details, { phone }) || errors.form.message)) || error);\n return (\n \n {hasErrors && (\n \n {t(outputError)}\n \n )}\n \n );\n };\n\n const formatPhone = (e: any) => {\n if (e) {\n e.preventDefault();\n }\n const { value } = e.target;\n if (!value || value[0] !== '+') {\n e.target.value = `+${value}`;\n }\n };\n\n const setSendCodeAvailabilityTimer = (user: IUserStoreState) => {\n const isCodeSendingAvailable = UserHelper.isPhoneCodeSendingAvailable(user);\n if (!isCodeSendingAvailable) {\n sendCodeTimer = setInterval(() => {\n const secLeft = user.phoneCodeSentAt.clone().add(Constants.ResendCodeInSecs, 's').diff(dayjs(), 's');\n setResendCodeSecLeft(secLeft);\n if (secLeft === 0) {\n clearInterval(sendCodeTimer);\n }\n }, 1000);\n }\n };\n\n useEffect(() => {\n const isCodeSendChanged = !dayjs(user.phoneCodeSentAt).isSame(dayjs(user.phoneCodeSentAt));\n if (isCodeSendChanged) {\n setSendCodeAvailabilityTimer(user);\n }\n }, [resendCodeSecLeft]);\n\n useEffect(() => {\n setSendCodeAvailabilityTimer(user);\n }, [user.phoneCodeSentAt]);\n\n useEffect(() => () => clearInterval(sendCodeTimer), []);\n\n const validationSchema = Yup.object().shape({\n email: Yup.string().required(t('EditProfileForm.EmailRequired')).email(t('EditProfileForm.EmailIncorrect')),\n fullName: Yup.string().required(t('EditProfileForm.FirstNameAndLastNameRequired')),\n phoneNumber: Yup.string()\n .required(t('EditProfileForm.PhoneRequired'))\n .test(\n 'singlePlus',\n t('EditProfileForm.PhoneCanContainOnlyOnePlusCharacterAtTheBeginning'),\n (phoneNumber) => (phoneNumber.match(/\\+/g) || [])?.length === 1\n )\n .matches(RegExpRules.Phone, t('EditProfileForm.ThePhoneCanOnlyContainNumbers'))\n .test(\n 'format',\n t('EditProfileForm.InvalidRegionFormat'),\n (phoneNumber) => !!phoneNumber && isValidPhoneNumber(phoneNumber)\n ),\n referralSlug: Yup.string()\n .required(t('EditProfileForm.ReferralNameRequired'))\n .matches(RegExpRules.ReferralSlug, t('EditProfileForm.TheNameCanOnlyContainLettersNumbers')),\n oldPassword: Yup.mixed().test(\n 'match',\n t('EditProfileForm.PasswordRequired'),\n (oldPassword, context) => !context.parent.newPassword || !!oldPassword\n ),\n newPassword: Yup.mixed()\n .test(\n 'match',\n t('EditProfileForm.PasswordRequired'),\n (newPassword, context) => !context.parent.oldPassword || !!newPassword\n )\n .test(\n 'minLength',\n `${t('EditProfileForm.PasswordMustBeAtLeast', { min: Constants.MinPasswordLength })}`,\n (newPassword) => !newPassword || newPassword.length >= Constants.MinPasswordLength\n ),\n newPasswordConfirm: Yup.mixed().test(\n 'match',\n t('EditProfileForm.PasswordsNotMatch'),\n (passwordConfirm, context) => passwordConfirm === context.parent.newPassword\n ),\n });\n\n return (\n {\n if (onSubmit) {\n onSubmit({\n ...values,\n phoneNumber: Utils.formatPhoneNumber(values.phoneNumber),\n });\n }\n }}\n validationSchema={validationSchema}\n >\n {({ isValid, handleChange, handleBlur, values }) => (\n \n \n \n {({ field, form }) => (\n \n \n {form.values.imageUrl && (\n \n )}\n {!form.values.imageUrl && (\n {t('EditProfileForm.Avatar')}\n )}\n \n \n )}\n \n \n {({ field, form }) => (\n \n \n \n {!!form.touched.fullName && !!form.errors && !!form.errors.fullName && (\n \n {form.errors.fullName}\n \n )}\n \n \n )}\n \n \n {({ field, form }) => (\n \n \n \n \n \n {!!form.touched.email && !!form.errors && !!form.errors.email && (\n \n {form.errors.email}\n \n )}\n \n \n )}\n \n \n \n \n {({ field, form }) => (\n <>\n \n \n formatPhone(e)}\n error={!!form.touched.phoneNumber && !!form.errors && !!form.errors.phoneNumber}\n />\n \n\n {(!isPhoneConfirmed || phoneNumber !== field.value) && (\n \n \n {\n if (onSendCodeClick) {\n onSendCodeClick(Utils.formatPhoneNumber(field.value));\n }\n }}\n >\n {t('EditProfileForm.SendCode')}\n \n \n \n )}\n \n {!!form.touched.phoneNumber && !!form.errors && !!form.errors.phoneNumber && (\n \n \n {t(form.errors.phoneNumber)}\n \n \n )}\n {isSendCodeBtnDisabled && (\n \n \n {codeSentMessage}\n \n \n )}\n \n )}\n \n phoneCodeValidate(phoneCode, values.phoneNumber)}\n >\n {({ field, form }) => (\n \n {isCodeSent && (!isPhoneConfirmed || user.phoneNumber !== values.phoneNumber) && (\n \n \n \n {!!form.touched.phoneCode && !!form.errors && !!form.errors.phoneCode && (\n \n {t(form.errors.phoneCode)}\n \n )}\n \n \n )}\n \n )}\n \n \n \n \n {({ field, form }) => (\n <>\n \n \n \n \n \n {!!form.touched.referralSlug && !!form.errors && !!form.errors.referralSlug && (\n \n {t('EditProfileForm.ReferralNameRequired')}\n \n )}\n \n \n )}\n \n \n {isPhoneConfirmed && (\n \n {t('EditProfileForm.ChangePassword')}\n \n {({ field, form }) => (\n \n \n \n {!!form.touched.oldPassword && !!form.errors && !!form.errors.oldPassword && (\n \n {t(form.errors.oldPassword)}\n \n )}\n \n \n )}\n \n \n {({ field, form }) => (\n \n \n \n {!!form.touched.newPassword && !!form.errors && !!form.errors.newPassword && (\n \n {t(form.errors.newPassword)}\n \n )}\n \n \n )}\n \n \n {({ field, form }) => (\n \n \n \n {!!form.touched.newPasswordConfirm && !!form.errors && !!form.errors.newPasswordConfirm && (\n \n {t(form.errors.newPasswordConfirm)}\n \n )}\n \n \n )}\n \n \n )}\n {renderFormErrors(!isValid && sendCodeValidate(values.phoneNumber), values.phoneNumber)}\n \n \n )}\n \n );\n }\n);\n\nconst StyledForm = styled(Form)`\n width: 100%;\n\n button[type='submit'] {\n margin-top: 25px;\n }\n`;\n\nconst StyledFieldset = styled(Fieldset)`\n /*margin-bottom: 20px;*/\n`;\n\nconst StyledFieldsetLabel = styled(FieldsetLabel)<{ theme: { colors: { accent: string } } }>`\n text-align: left;\n color: ${(props) => props.theme.colors.accent};\n`;\n\ninterface IProfileImageProps {\n noImage?: boolean;\n}\n\nconst ProfileImage = styled.div`\n width: 130px;\n height: 130px;\n border: ${(props) => (props.noImage ? `1px solid ${props.theme.colors.text}` : 'none')};\n align-self: center;\n border-radius: 50%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: ${(props) => (props.noImage ? 30 : 0)}px;\n`;\n\nconst ProfileImageTitle = styled.span`\n font-size: 12px;\n text-transform: uppercase;\n text-align: center;\n position: absolute;\n`;\n\nconst Avatar = styled.img`\n flex: 1;\n object-fit: contain;\n z-index: 1;\n max-width: 130px;\n max-height: 130px;\n`;\n\nconst CopyButtonFieldWrapper = styled(FieldWrapper)`\n > button {\n max-width: 150px;\n }\n`;\n\nconst StyledAContainer = styled(motion.div)`\n flex: 0 0 auto !important;\n`;\n","import React, { Suspense, useCallback, useEffect, useLayoutEffect } from 'react';\nimport { Redirect, Route, Switch } from 'react-router-dom';\nimport { useDispatch, useSelector } from 'react-redux';\nimport styled, { createGlobalStyle, ThemeProvider } from 'styled-components';\n\nimport { useHistory } from 'react-router';\nimport { createTheme, ThemeProvider as MuiThemeProvider } from '@mui/material/styles';\nimport { IntercomProvider } from 'react-use-intercom';\nimport { IGlobalStoreState } from '../store';\nimport {hideSpinner, initApp, redirectApp} from '../store/app/actions';\nimport { Routes } from '../store/routes';\n\nimport Spinner from './spinner';\nimport Menu from './menu';\nimport { EventsPage } from './pages/events/eventsPage';\nimport EventDetailsPage from './pages/events/eventDetailsPage/eventDetailsPage';\nimport BookPage from './pages/book/bookPage';\nimport CheckoutPage from './pages/checkout/checkoutPage';\nimport BookResultPage from './pages/book/bookResultPage';\nimport BookResultErrorPage from './pages/book/bookResultErrorPage';\nimport UserPage from './pages/user/userPage';\nimport UserTicketDetailsPage from './pages/user/userTicketDetailsPage';\nimport UserTicketSellDetailsPage from './pages/user/userTicketSellDetailsPage';\nimport UserTicketPurchasePage from './pages/user/userTicketPurchasePage';\nimport SharePage from './pages/share/sharePage';\nimport ShareLinkPage from './pages/share/shareLinkPage';\nimport WidgetBookPage from './pages/widget/widgetBookPage';\nimport WidgetCheckoutPage from './pages/widget/widgetCheckoutPage';\nimport WidgetBookResultPage from './pages/widget/widgetBookResultPage';\nimport { ContactsPage, PaymentsInfoPage } from './pages/static';\nimport { getRegion } from '../store/region/actions';\nimport { AnalyticService } from '../services';\nimport { AlertType, DomainType, KeyErrors, Pages } from '../store/enums';\nimport { IHeaderStoreState } from '../store/header/types';\nimport { initWidgetApp } from '../store/appSettings/actions';\nimport { DashboardPage } from './pages/events/dashboardPage';\nimport { EventCategoryPage } from './pages/events/eventCategoryPage';\nimport { initLocation } from '../store/location/actions';\nimport { AppTheme } from '../settings/appTheme';\nimport Header from './header';\nimport RouteService from '../services/routeService';\nimport { AppSettings, DomainSetting, IntercomSettings } from '../settings/appSettings';\nimport { ReferralPage } from './pages/referralPage/referralPage';\nimport { InformationRoutes } from './pages/information/informationRoutes';\nimport { useRoutesHelper } from '../helpers/routesHelper';\nimport { WidgetInformationRoutes } from './pages/information/widgetInformationRoutes';\nimport { AlertError } from '../components/alert/alertError';\nimport EventHelper from '../helpers/eventHelper';\n\nconst theme = createTheme({\n palette: {\n primary: {\n main: '#fff',\n light: '#1C1C1C',\n dark: '#000',\n contrastText: '#fff',\n },\n secondary: {\n main: '#FFBF00',\n light: '#4B4B4B',\n dark: '#ba2d65',\n contrastText: '#FFFFFF',\n },\n },\n typography: {\n fontFamily: [AppTheme.fonts.regularFont].join(','),\n },\n});\n\nconst App = () => {\n let unlistenHistory: () => void;\n const routeSrv = new RouteService();\n const analyticSrv = new AnalyticService();\n const dispatch = useDispatch();\n const history = useHistory();\n const { changeDomainTopLevel } = useRoutesHelper();\n\n const isMenuShow = useSelector((state) => state.menu.isShow);\n const isLoading = useSelector((state) => state.app.isLoading);\n const isRedirecting = useSelector((state) => state.app.isRedirection);\n const header = useSelector((state) => state.header);\n const useNewDashboard = useSelector((state) => state.appSettings.useNewDashboard);\n const isFinalized = useSelector((state) => state.app.isFinalized);\n const resultType = useSelector((state) => state.resultInfo.type);\n const resultKey = useSelector((state) => state.resultInfo.key);\n\n const isError = resultType === AlertType.Error;\n const isServerError = KeyErrors.ServerError === resultKey;\n\n const init = useCallback(() => {\n dispatch(hideSpinner());\n analyticSrv.initialize();\n dispatch(getRegion())\n // @ts-ignore\n .then((region) => {\n const isEuDomain = location.host.includes(DomainSetting.Eu)\n || location.host.includes(DomainSetting.Pl)\n || location.host.includes(DomainSetting.Kz);\n if (!isEuDomain) {\n const domain = changeDomainTopLevel(DomainSetting.Eu, location.hostname);\n dispatch(redirectApp(domain));\n }\n if (region.isDomainRequired) {\n const newLocation = routeSrv.getLocation(region.domainName);\n if (newLocation !== location.href) {\n dispatch(redirectApp(newLocation));\n return;\n }\n }\n dispatch(initLocation(region.city));\n\n const isWidgetPage = routeSrv.isActivePage(Pages.Widget);\n\n if (isWidgetPage) {\n const token = routeSrv.getwidgetToken();\n dispatch(initWidgetApp(token));\n } else {\n dispatch(initApp('*'));\n }\n unlistenHistory = history.listen(() => {\n analyticSrv.trackPageView(window.location.pathname + window.location.search);\n\n window.scrollTo(0, 0);\n });\n })\n .catch(() => {\n const splashError = document.getElementById('splashErrorId');\n splashError.hidden = false;\n });\n }, []);\n\n useLayoutEffect(() => {\n const domain = location.hostname;\n const domainType = EventHelper.getDomainType(domain);\n\n if (domainType === DomainType.Ru) {\n init();\n }\n }, [init]);\n\n const updateViewPortHeight = () => {\n const vh = window.innerHeight * 0.01;\n document.documentElement.style.setProperty('--vh', `${vh}px`);\n };\n\n useLayoutEffect(() => {\n init();\n }, [init]);\n\n useEffect(() => {\n document.addEventListener('touchstart', () => {}, false);\n window.addEventListener('resize', () => {\n updateViewPortHeight();\n });\n window.addEventListener('scroll', () => {\n updateViewPortHeight();\n });\n }, []);\n\n useEffect(\n () => () => {\n document.removeEventListener('touchstart', () => {});\n window.removeEventListener('resize', () => {\n updateViewPortHeight();\n });\n window.removeEventListener('scroll', () => {\n updateViewPortHeight();\n });\n unlistenHistory();\n },\n [unlistenHistory]\n );\n\n useEffect(() => {\n updateViewPortHeight();\n\n if (isMenuShow || isFinalized || isLoading || header) {\n !isFinalized || isLoading || header.showPlayer\n ? document.body.classList.add('no-scroll')\n : document.body.classList.remove('no-scroll');\n }\n }, [header.showPlayer, isFinalized, isLoading, isMenuShow]);\n\n const { getResultStatusRoute } = useRoutesHelper();\n\n useEffect(() => {\n if (isServerError) {\n history.replace(getResultStatusRoute(AlertType.Error, KeyErrors.ServerError));\n }\n }, [isServerError]);\n\n return (\n }>\n \n \n \n \n \n {!isRedirecting && (\n \n
\n \n \n \n \n {!useNewDashboard && }\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )}\n \n \n \n \n \n );\n};\n\ntype GlobalStylesType = {\n theme: {\n colors: {\n text: string;\n bg: string;\n };\n fonts: {\n regularFont: string;\n };\n };\n};\n\nconst GlobalStyles = createGlobalStyle`\n html {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n\n body {\n color: ${(props) => props.theme.colors.text};\n font-family: ${(props) => props.theme.fonts.regularFont};\n font-weight: normal;\n background-color: ${(props) => props.theme.colors.bg};\n\n &.no-scroll {\n overflow: hidden;\n }\n\n &.splash-show {\n .spinner {\n background-color: transparent;\n }\n }\n }\n\n * {\n box-sizing: border-box;\n font-weight: normal;\n }\n`;\n\nconst AppContainer = styled.div<{ noScroll: boolean }>`\n display: flex;\n flex-direction: column;\n align-items: center;\n background: ${(props) => props.theme.colors.bg};\n overflow-x: hidden;\n overflow-y: ${(props) => (props.noScroll ? 'hidden' : 'auto')};\n max-height: ${(props) => (props.noScroll ? '100vh' : 'unset')};\n`;\nconst Container = styled.div`\n min-height: calc(var(--vh, 1vh) * 100);\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: ${(props) => props.theme.maxWidth};\n width: 100%;\n box-shadow: 0 0 15px 2px black;\n background: ${(props) => props.theme.colors.bg};\n position: relative;\n`;\n\nexport default App;\n","import { action } from 'typesafe-actions';\nimport { LocationActionTypes } from './types';\n\nexport const initLocation = (payload: string) => action(LocationActionTypes.INIT_LOCATION, payload);\n","import React, { ChangeEvent, FC, memo, useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useHistory } from 'react-router';\nimport { useSelector } from 'react-redux';\nimport { makeStyles, withStyles } from 'tss-react/mui';\nimport Dialog from '@mui/material/Dialog';\nimport { DialogContent, DialogTitle as MuiDialogTitle, Grid, ListItem, ListItemText } from '@mui/material';\nimport IconButton from '@mui/material/IconButton';\nimport CloseIcon from '@mui/icons-material/Close';\nimport Typography from '@mui/material/Typography';\nimport Paper from '@mui/material/Paper';\nimport LocationOnOutlinedIcon from '@mui/icons-material/LocationOnOutlined';\nimport Divider from '@mui/material/Divider';\nimport InputBase from '@mui/material/InputBase';\nimport useApi from '../../services/apiService';\nimport { IGlobalStoreState } from '../../store';\nimport { ILocationStoreState } from '../../store/location/types';\nimport { Routes } from '../../store/routes';\nimport { useRouteService } from '../../helpers/customHooks';\n\nconst useStyles = makeStyles()((theme) => ({\n root: {\n padding: '2px 4px',\n display: 'flex',\n alignItems: 'center',\n height: '54px',\n borderTopRightRadius: 35,\n borderBottomRightRadius: 35,\n borderRadius: 0,\n },\n input: {\n marginLeft: theme.spacing(1),\n flex: 1,\n minWidth: '100%',\n },\n iconButton: {\n padding: 10,\n },\n locationPaper: {\n borderRadius: 0,\n },\n gridLocation: {\n minWidth: 50,\n },\n gridIconLocation: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'relative',\n right: -5,\n },\n itemCity: {\n width: '100%',\n height: 400,\n maxWidth: 300,\n backgroundColor: theme.palette.background.paper,\n },\n paperInput: {\n borderRadius: '40px',\n minHeight: 44,\n display: 'flex',\n alignItems: 'center',\n border: '1px solid #D8D8D8',\n overflow: 'hidden',\n },\n gridInput: {\n marginBottom: 19,\n padding: '0px 24px',\n [theme.breakpoints.down('sm')]: {\n padding: '0px 16px',\n },\n },\n dialogContent: {\n padding: 0,\n },\n listItemText: {\n '& span': {\n fontSize: 14,\n lineHeight: '14px',\n padding: '0px 24px',\n [theme.breakpoints.down('sm')]: {\n padding: '0px 16px',\n },\n },\n },\n dialog: {\n width: 528,\n height: 599,\n borderRadius: 12,\n },\n listLink: {\n padding: 0,\n height: 35,\n },\n locationIcon: {\n color: '1px solid #1C1C1C',\n position: 'absolute',\n top: 3,\n },\n}));\n\nconst styles = (theme): ReturnType => ({\n container: {\n margin: 0,\n maxWidth: 528,\n padding: '20px 10px 8px 24px',\n [theme.breakpoints.down('sm')]: {\n padding: '20px 10px 8px 16px',\n },\n display: 'flex',\n justifyContent: 'space-between',\n },\n closeButton: {\n color: theme.palette.grey[500],\n padding: 10,\n },\n titleText: {\n fontSize: 14,\n lineHeight: '14px',\n textTransform: 'uppercase',\n fontWeight: 'bold',\n alignSelf: 'center',\n },\n});\n\nexport interface DialogTitleProps {\n id: string;\n children: React.ReactNode;\n onClose: () => void;\n classes: Record;\n}\n\nconst DialogTitle = withStyles((props: DialogTitleProps) => {\n const { children, classes, onClose } = props;\n return (\n
\n {children}\n {onClose ? (\n \n \n \n ) : null}\n
\n );\n}, styles);\n\nexport const ListItemLink = (props) => ;\n\nexport const PopupLocation: FC = memo(({ open, handleClose, setCity }) => {\n const locationCity = useSelector((state) => state.location);\n const [search, setSearch] = useState('');\n const [cities, setCities] = useState([]);\n const [filteredCities, setFilteredCities] = useState(cities);\n\n const { eventsApi } = useApi();\n const routeSrv = useRouteService();\n const { classes } = useStyles();\n const history = useHistory();\n const { t } = useTranslation();\n\n const onChangeHandler = (e: ChangeEvent) => {\n setSearch(e.target.value);\n };\n\n useEffect(() => {\n (async () => {\n const locations = await eventsApi.getLocations();\n const cities = locations.map((x) => ({\n id: x.id,\n value: `${x.city}, ${x.country}`,\n }));\n setCities(cities);\n })();\n }, []);\n\n useEffect(() => {\n const filteredCities = cities.filter((item) =>\n Object.values(item.value).join('').toLowerCase().includes(search.toLowerCase())\n );\n setFilteredCities(filteredCities);\n }, [search]);\n\n const handleRouteCity = (city: string) => {\n const parseCity = city.split(',')[0].trim();\n setCity(parseCity);\n history.replace(routeSrv.getEventsLocation(parseCity));\n handleClose();\n };\n\n return (\n \n \n {t('Dashboard.ChooseCity')}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {search.length\n ? filteredCities.map((city) => (\n handleRouteCity(city.value)}\n className={classes.listLink}\n >\n \n \n ))\n : cities.map((city) => (\n handleRouteCity(city.value)}\n className={classes.listLink}\n >\n \n \n ))}\n \n \n \n
\n );\n});\n\ntype popupLocationType = {\n open: boolean;\n handleClose: () => void;\n setCity: (city: string) => void;\n};\n","import { makeStyles } from 'tss-react/mui';\n\n// TODO jss-to-tss-react codemod: usages of this hook outside of this file will not be converted.\nexport const useStyles = makeStyles()(() => ({\n container: {\n fontSize: '16px',\n display: 'inline-block',\n textAlign: 'right',\n },\n}));\n","import React, { FC, memo, useEffect, useState } from 'react';\nimport { Grid, Skeleton, Typography } from '@mui/material';\nimport { makeStyles } from 'tss-react/mui';\nimport { EventCarousel } from './eventCarousel';\nimport { useRouteService } from '../../helpers/customHooks';\n\nconst useStyles = makeStyles()(() => ({\n gridPopularEvents: {\n marginBottom: 50,\n },\n headingText: {\n textTransform: 'uppercase',\n fontSize: 14,\n lineHeight: '14px',\n cursor: 'default',\n },\n gridPopular: {\n marginTop: 50,\n },\n}));\n\nexport const Events: FC = memo(({ city, load, title, reloadDependencyValue }) => {\n const { classes } = useStyles();\n const routeSrv = useRouteService();\n\n const [isLoading, setIsLoading] = useState(true);\n const [events, setEvents] = useState([]);\n\n const eventsCount = 6;\n\n useEffect(() => {\n setIsLoading(true);\n\n (async () => {\n const result = await load();\n setEvents(result);\n setIsLoading(false);\n })();\n }, [reloadDependencyValue]);\n\n const getEventsByLocation = () => {\n const filteredEvents = events.filter((event) => event?.city === city);\n const sortedEvents = [\n ...events.filter((event) => event.city === city),\n ...events.filter((event) => event.city !== city),\n ];\n return filteredEvents.length >= eventsCount ? filteredEvents : sortedEvents;\n };\n const eventsLocation = city && getEventsByLocation();\n\n return (\n \n
\n {title && isLoading && (\n \n \n \n )}\n\n {!isLoading && (\n \n {city && eventsLocation?.length >= eventsCount ? `${title}, ${city}` : title}\n \n )}\n
\n routeSrv.getEventRoute(itemKey)}\n />\n
\n );\n});\n\ntype EventPropsType = {\n load: () => any;\n reloadDependencyValue?: any;\n title?: string;\n city?: string;\n};\nexport type ItemEventCarouselType = {\n key: string;\n city: string;\n imageUrl: string;\n title: string;\n date: Date;\n domainTypes: number[];\n};\n","import styled from 'styled-components';\n\ninterface IImageProps {\n overlay?: boolean;\n}\n\nexport const Image = styled.img`\n object-fit: cover;\n object-position: top;\n width: 100%;\n height: 100%;\n filter: ${(props) => (props.overlay ? 'brightness(50%)' : 'none')};\n transform: translateZ(0);\n`;\n","export * from './selector';\nexport * from './selectorItem';\nexport * from './checkboxSelector';\nexport * from './checkboxSelectorItem';","import { action } from 'typesafe-actions';\nimport { Dispatch } from 'redux';\nimport dayjs from 'dayjs';\n\nimport {\n IChangePasswordInfo,\n ISocialNetworkLogin,\n IUpdateUserStoreState,\n IUserStoreState,\n ResetPasswordConfirmInfo,\n UserActionTypes,\n UserRegistrationStoreState,\n} from './types';\nimport { ThunkService } from '../../services';\nimport { IGlobalStoreState } from '..';\nimport { AlertType, KeySuccess } from '../enums';\nimport { TokenRequestStoreState } from '../auth/types';\nimport * as AppActions from '../app/actions';\nimport { authorize, deauthorize } from '../auth/actions';\nimport { IActionResponseStoreState } from '../app/types';\nimport { IEventStoreState } from '../event/types';\nimport { BoughtTicketInfo, IssueTicketInfo, ITicketStoreState, SellTicketInfo } from '../ticket/types';\nimport { checkoutClear } from '../checkout/actions';\nimport { IProfileTicketStoreState } from '../ticket/ProfileTicketStoreState';\nimport { AuthSettings } from '../../settings/appSettings';\nimport RouteService from '../../services/routeService';\nimport { setResultInfo } from '../resultInformarion/actions';\nimport { distributionClear } from '../distribution/actions';\n\nconst init = (payload: IUserStoreState) => action(UserActionTypes.USER_INIT, payload);\nconst update = (payload: IUserStoreState) => action(UserActionTypes.USER_UPDATE, payload);\nconst clear = () => action(UserActionTypes.USER_CLEAR);\nconst initEvents = (payload: Array) => action(UserActionTypes.USER_EVENTS_INIT, payload);\nconst clearEvents = () => action(UserActionTypes.USER_EVENTS_CLEAR);\nconst initTickets = (payload: Array) => action(UserActionTypes.USER_TICKETS_INIT, payload);\nconst clearTickets = () => action(UserActionTypes.USER_TICKETS_CLEAR);\nconst sendPhoneCode = (payload: string) => action(UserActionTypes.USER_PHONE_CODE_SEND, payload);\nconst updateTicket = (payload: IProfileTicketStoreState) => action(UserActionTypes.USER_TICKETS_UPDATE, payload);\nconst phoneCurrentUpdate = (payload: string) => action(UserActionTypes.PHONE_CURRENT_UPDATE, payload);\n\nexport const registerUser = (\n email: string,\n password: string\n): ((dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n const routeSrv = new RouteService();\n const state = getState();\n const redirectUrl = routeSrv.getEmailConfirmationRedirectUrl();\n const model = new UserRegistrationStoreState(\n email,\n password,\n redirectUrl,\n true,\n state.distribution.distributorSlug\n );\n dispatch(AppActions.showSpinner());\n try {\n const actionResponse = await thunkService.api.account.registerAccount(model);\n if (actionResponse) {\n dispatch(\n setResultInfo({\n type: AlertType.Info,\n key: KeySuccess.EmailSent,\n title: actionResponse.message,\n message: actionResponse.details,\n })\n );\n }\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\n\nexport const login = (\n email: string,\n password: string\n): ((dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n const model = new TokenRequestStoreState();\n model.username = email;\n model.password = password;\n model.client_id = AuthSettings.CLIENT_ID;\n model.client_secret = AuthSettings.CLIENT_SECRET;\n model.grant_type = 'password';\n\n dispatch(AppActions.showSpinner());\n try {\n const token = await thunkService.api.auth.token(model);\n if (token) {\n dispatch(AppActions.authorize());\n dispatch(authorize(token));\n dispatch(distributionClear());\n await dispatch(getCurrentUser());\n }\n } catch {\n await dispatch(logout());\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\n\nexport const googleLogin =\n (model: ISocialNetworkLogin) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(AppActions.showSpinner());\n const token = await thunkService.api.googleAuth.googleToken(model);\n try {\n if (token) {\n dispatch(AppActions.authorize());\n dispatch(authorize(token));\n await dispatch(getCurrentUser());\n }\n } catch {\n await dispatch(logout());\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n\nexport const facebookLogin =\n (model: ISocialNetworkLogin) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(AppActions.showSpinner());\n const token = await thunkService.api.facebookAuth.facebookToken(model);\n try {\n if (token) {\n dispatch(AppActions.authorize());\n dispatch(authorize(token));\n await dispatch(getCurrentUser());\n }\n } catch {\n await dispatch(logout());\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n\nexport const logout = (): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n) => Promise) => {\n return async (dispatch: Dispatch) => {\n dispatch(clear());\n dispatch(clearEvents());\n dispatch(clearTickets());\n dispatch(AppActions.deauthorize());\n dispatch(deauthorize());\n dispatch(checkoutClear());\n };\n};\n\nexport const getCurrentAccount = (): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n const state = getState();\n if (!state.app.isAuthorized) {\n return Promise.resolve();\n }\n\n dispatch(AppActions.showSpinner());\n try {\n const user = await thunkService.api.account.getCurrentAccount();\n dispatch(init(user));\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\n\nexport const getCurrentUser = (): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState) => {\n const state = getState();\n if (!state.app.isAuthorized) {\n return Promise.resolve();\n }\n\n dispatch(AppActions.showSpinner());\n try {\n await dispatch(getCurrentAccount());\n await dispatch(getUserTickets());\n await dispatch(getUserEvents());\n } catch {\n dispatch(logout());\n return Promise.resolve();\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\n\nexport const updatePhone =\n (\n phone: string\n ): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n ) => Promise) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(AppActions.showSpinner());\n try {\n const response = await thunkService.api.account.updatePhone(phone);\n dispatch(sendPhoneCode(response.details || response.message));\n dispatch(phoneCurrentUpdate(phone));\n return response;\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n\nexport const confirmPhone = (\n code: string,\n phone: string\n): ((dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(AppActions.showSpinner());\n try {\n await thunkService.api.account.confirmPhone(code, phone);\n await dispatch(getCurrentUser());\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\n\nexport const updateUser = (\n model: IUpdateUserStoreState,\n passwordModel?: IChangePasswordInfo\n): ((dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(AppActions.showSpinner());\n try {\n if (passwordModel) {\n await thunkService.api.account.changePassword(passwordModel);\n }\n const user = await thunkService.api.account.updateCurrentAccount(model);\n dispatch(update(user));\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\n\nexport const getUserEvents = (): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(AppActions.showSpinner());\n try {\n const events = await thunkService.api.events.getUserEvents();\n dispatch(initEvents(events));\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\n\nexport const getUserTickets = (): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(AppActions.showSpinner());\n try {\n const tickets = await thunkService.api.tickets.getUserTickets();\n dispatch(initTickets(tickets));\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\n\nexport const getTicketById = (\n masterTicketId: string,\n ticketId?: string\n): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState) => {\n dispatch(AppActions.showSpinner());\n try {\n const state = getState();\n const ticket = state.userTickets.find((item: IProfileTicketStoreState) => {\n const isMasterId = item.masterTicketId === masterTicketId;\n const isTicketId = (!ticketId && !item.ticketId) || item.ticketId === ticketId;\n return isTicketId && isMasterId;\n });\n return Promise.resolve(ticket);\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\n\nexport const issueTicket = (\n ticketId: string,\n email: string\n): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(AppActions.showSpinner());\n try {\n const model = new IssueTicketInfo(ticketId, email, false);\n const ticket = await thunkService.api.tickets.issueTicket(model);\n await dispatch(getUserTickets());\n return ticket;\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\n\nexport const sellTicket = (\n ticketId: string,\n email: string,\n price: number\n): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(AppActions.showSpinner());\n try {\n const routeSrv = new RouteService();\n const model = new SellTicketInfo(ticketId, email, price);\n const resultLinkTemplate = `${routeSrv.getBaseUrl()}/user/my-tickets`;\n model.returnUrl = `${resultLinkTemplate}`;\n const ticket = await thunkService.api.tickets.sellTicket(model);\n await dispatch(getUserTickets());\n return ticket;\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\n\nexport const boughtTicket = (\n ticketId: string\n): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(AppActions.showSpinner());\n try {\n const routeSrv = new RouteService();\n const model = new BoughtTicketInfo(ticketId);\n const boughtResultLinkTemplate = `${routeSrv.getBaseUrl()}/user/my-tickets`;\n model.returnUrl = `${boughtResultLinkTemplate}`;\n const ticket = await thunkService.api.tickets.boughtTicket(model);\n await dispatch(getUserTickets());\n return ticket;\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\n\nexport const cancelSellTicket = (\n ticketId: string\n): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(AppActions.showSpinner());\n try {\n const ticket = await thunkService.api.tickets.cancelSellTicket(ticketId);\n await dispatch(getUserTickets());\n return ticket;\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\n\nexport const resendTicket = (\n ticketId: string\n): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(AppActions.showSpinner());\n const state = getState();\n try {\n await thunkService.api.tickets.resendTicket(ticketId);\n let ticket = state.userTickets.find((t) => t.ticketId === ticketId);\n ticket.sentAt = dayjs();\n dispatch(updateTicket(ticket));\n return ticket;\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\nexport const resetPassword = (\n email: string\n): ((dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n const routeSrv = new RouteService();\n const redirectUrl = routeSrv.getResetPasswordRedirectUrl();\n dispatch(AppActions.showSpinner());\n try {\n const actionResponse = await thunkService.api.account.resetPassword(email, redirectUrl);\n if (actionResponse) {\n dispatch(\n setResultInfo({\n type: AlertType.Info,\n key: KeySuccess.EmailSent,\n title: actionResponse.message,\n message: actionResponse.details,\n })\n );\n }\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\n\nexport const confirmResetPassword = (\n password: string,\n token: string,\n encodedEmail: string\n): ((dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => Promise) => {\n return async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n const model = new ResetPasswordConfirmInfo(encodedEmail, password, token);\n dispatch(AppActions.showSpinner());\n try {\n const token = await thunkService.api.account.confirmResetPassword(model);\n if (token) {\n dispatch(AppActions.authorize());\n dispatch(authorize(token));\n await dispatch(getCurrentUser());\n }\n } finally {\n dispatch(AppActions.hideSpinner());\n }\n };\n};\n","import * as React from 'react';\nimport styled from 'styled-components';\n\nimport { PopUp } from '../../store/animations';\n\ninterface IItemProps {\n icon: 'star' | 'ticket' | 'meet' | 'soldTicket';\n}\n\ninterface IUserStatItemProps extends IItemProps {\n title: string;\n count: number;\n}\n\nexport class UserStatItem extends React.PureComponent {\n constructor(props: IUserStatItemProps) {\n super(props);\n }\n\n render() {\n return (\n \n {this.props.title}\n {this.props.count}\n \n );\n }\n}\n\nconst ItemContainer = styled('li' as any)`\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n\n &:before {\n content: '';\n background: ${(props) => `url(${props.theme.img.icons[props.icon]}) center no-repeat`};\n display: block;\n width: 26px;\n height: 26px;\n background-size: contain;\n margin-bottom: 10px;\n }\n`;\n\nconst Title = styled.span`\n font-size: 12px;\n text-align: center;\n flex: 1;\n`;\n\nconst Count = styled.span`\n font-family: ${(props) => props.theme.fonts.boldFont};\n font-size: 18px;\n text-align: center;\n margin-top: 10px;\n`;\n","import { Dispatch } from 'redux';\nimport { action } from 'typesafe-actions';\n\nimport { HeaderActionTypes } from './types';\n\nexport const show = () => action(HeaderActionTypes.HEADER_SHOW);\nexport const hide = () => action(HeaderActionTypes.HEADER_HIDE);\nexport const playerShow = () => action(HeaderActionTypes.PLAYER_SHOW);\nexport const playerHide = () => action(HeaderActionTypes.PLAYER_HIDE);\nexport const citySelectorShow = () => action(HeaderActionTypes.CITYSELECTOR_SHOW);\nexport const citySelectorHide = () => action(HeaderActionTypes.CITYSELECTOR_HIDE);\n\nexport const showAdButton = () => async (dispatch: Dispatch) => {\n dispatch(show());\n};\n\nexport const hideAdButton = () => (dispatch: Dispatch) => {\n dispatch(hide());\n};\n\nexport const showPlayer = () => async (dispatch: Dispatch) => {\n dispatch(playerShow());\n};\n\nexport const hidePlayer = () => (dispatch: Dispatch) => {\n dispatch(playerHide());\n};\n\nexport const showCitySelector = () => async (dispatch: Dispatch) => {\n dispatch(citySelectorShow());\n};\n\nexport const hideCitySelector = () => (dispatch: Dispatch) => {\n dispatch(citySelectorHide());\n};\n","export * from './eventHeadline';\nexport * from './eventDetailsHeader';\nexport * from './eventCheckoutHeader/eventCheckoutHeader';\nexport * from './eventInfoItem';\nexport * from './userEventItem';\nexport * from './userEventsList';\n","import { Reducer } from 'redux';\n\nimport { IAuthStoreState, AuthActionTypes } from './types';\n\nconst authReducer: Reducer = (state: IAuthStoreState = null, action) => {\n switch (action.type) {\n case AuthActionTypes.AUTH_INIT:\n return { ...action.payload } as IAuthStoreState;\n case AuthActionTypes.AUTH_CLEAR:\n return null;\n default:\n return state;\n }\n};\n\nexport default authReducer;\n","import React, { FC } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport styled from 'styled-components';\nimport * as Yup from 'yup';\nimport { Field, Form, Formik } from 'formik';\n\nimport { AnimatePresence } from 'framer-motion';\nimport { Button, TextInput, UserAgreementLink } from '../UI';\nimport { FieldError, Fieldset, FieldWrapper, FormError, FormInfo } from './commonForm';\nimport Constants from '../../store/constants';\nimport { PopUp } from '../../store/animations';\n\nexport type RegistrationFormType = {\n email: string;\n password: string;\n passwordConfirm: string;\n distributorSlug?: string;\n isDistributor?: boolean;\n};\n\ntype RegistrationFormProps = {\n submitTitle: string;\n onSubmit: (RegistrationFormType) => void;\n errors: any;\n};\n\nexport const RegistrationForm: FC = ({ submitTitle, onSubmit, errors }) => {\n const { t } = useTranslation();\n\n const validationSchema = Yup.object().shape({\n email: Yup.string().required(t('Registration.EmailRequired')).email(t('Registration.EmailIncorrect')),\n password: Yup.string()\n .required(t('Registration.PasswordRequired'))\n .min(Constants.MinPasswordLength, t('Registration.MaxLengthOfPassword')),\n passwordConfirm: Yup.mixed().test(\n 'match',\n t('Registration.PasswordsNotMatch'),\n (passwordConfirm, context) => passwordConfirm === context.parent.password\n ),\n });\n\n const initialValues = {\n email: '',\n password: '',\n passwordConfirm: '',\n };\n\n return (\n {\n if (onSubmit) {\n onSubmit(values);\n }\n }}\n validationSchema={validationSchema}\n >\n {({ isValid, handleChange, handleBlur, values }) => (\n \n
\n \n {({ field, form }) => (\n \n \n \n {!!form.touched.email && !!form.errors && !!form.errors.email && (\n \n {t(form.errors.email)}\n \n )}\n \n \n )}\n \n \n {({ field, form }) => (\n \n \n \n {!!form.touched.password && !!form.errors && !!form.errors.password && (\n \n {t(form.errors.password, { min: Constants.MinPasswordLength })}\n \n )}\n \n \n )}\n \n \n {({ field, form }) => (\n \n \n \n {!!form.touched.passwordConfirm && !!form.errors && !!form.errors.passwordConfirm && (\n \n {t(form.errors.passwordConfirm)}\n \n )}\n \n \n )}\n \n
\n \n {t('Registration.RegistrationAgreements')}\n \n \n {!!errors && !!errors.form && (\n \n {t(errors.form.details, { email: values.email }) || t(errors.form.message)}\n \n )}\n \n \n {submitTitle}\n \n
\n )}\n \n );\n};\n\nconst StyledForm = styled(Form)`\n width: 100%;\n`;\n\nconst StyledButton = styled(Button)`\n margin-top: 20px;\n`;\n\nexport const Note = styled(FormInfo)<{ theme: { colors: { text: string } } }>`\n color: ${(props) => props.theme.colors.text};\n`;\n","export default class RegExpRules {\n public static Phone = /^\\+[0-9]*$/;\n public static ReferralSlug = /^[\\wа-яА-Я\\d\\-]+$/;\n}\n","import React, { useCallback, useEffect, useState } from 'react';\nimport { useHistory, useParams } from 'react-router';\nimport { useDispatch, useSelector } from 'react-redux';\nimport styled from 'styled-components';\n\nimport { useTranslation } from 'react-i18next';\nimport { AnimatePresence } from 'framer-motion';\nimport { IGlobalStoreState } from '../../../store';\nimport { Page, PageContent } from '../../../components/UI';\nimport { EventDetailsHeader } from '../../../components/event';\nimport { AlertType, KeyErrors } from '../../../store/enums';\nimport { getTicketById, issueTicket } from '../../../store/user/actions';\nimport { IEmailForm } from '../../../components/forms';\nimport { IErrorStoreState } from '../../../store/app/types';\nimport { EventHelper } from '../../../helpers';\nimport { IProfileTicketStoreState } from '../../../store/ticket/ProfileTicketStoreState';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\nimport { setResultInfo } from '../../../store/resultInformarion/actions';\nimport {\n RenderForm,\n RenderIssuedInfo,\n RenderTicketSector,\n} from './userTicketDetailsComponents/userTicketDetailsComponents';\n\nexport type UserTicketDetailsParamsType = {\n masterTicketId: string;\n ticketId: string;\n};\n\nconst UserTicketDetailsPage = () => {\n const dispatch = useDispatch();\n const { t } = useTranslation();\n const { getProfileRoute } = useRoutesHelper();\n const history = useHistory();\n\n const isFinalized = useSelector((state) => state.app.isFinalized);\n const error = useSelector((state) => state.app.error);\n const isAuthorized = useSelector((state) => state.app.isAuthorized);\n\n const [ticket, setTicket] = useState(null);\n const [errors, setErrors] = useState(null);\n\n const { masterTicketId, ticketId } = useParams();\n\n const initTicket = useCallback(\n (masterTicketId: string, ticketId?: string) => {\n if (!masterTicketId) {\n return;\n }\n (async () => dispatch(getTicketById(masterTicketId, ticketId)))().then((ticket: any) => {\n if (!ticket || !ticket.masterTicketId) {\n dispatch(\n setResultInfo({\n type: AlertType.Error,\n key: KeyErrors.TicketNotFound,\n title: 'Alert.WaitForTheServerToCompleteThePayment',\n buttons: [\n {\n title: 'Result.GoToMainPage',\n callback: () => history.push('/'),\n },\n ],\n })\n );\n return;\n }\n\n setTicket(ticket);\n });\n },\n [dispatch, history]\n );\n\n useEffect(() => {\n if (isFinalized) {\n initTicket(masterTicketId, ticketId);\n }\n }, [initTicket, isFinalized, masterTicketId, ticketId]);\n\n useEffect(() => {\n if (isFinalized || isAuthorized) {\n initTicket(masterTicketId, ticketId);\n }\n }, [isFinalized, isAuthorized, masterTicketId, ticketId]);\n\n useEffect(() => {\n if (!isAuthorized) {\n history.push(getProfileRoute());\n }\n }, [getProfileRoute, history, isAuthorized]);\n\n useEffect(() => {\n setErrors({ form: error });\n }, [error?.details, error?.message]);\n\n const handleEmailFormSubmit = useCallback(\n (formModel: IEmailForm) => {\n if (formModel) {\n (async () => dispatch(issueTicket(ticketId, formModel.email)))().then((ticket: any) => {\n setTicket(ticket);\n });\n }\n },\n [dispatch, ticketId]\n );\n\n if (!isFinalized || !ticket || !ticket.masterTicketId) {\n return null;\n }\n const { event, ticketQuota, seatTitle, rowTitle, issuedTo } = ticket;\n const isIssued = !!ticket.issuedTo;\n return (\n \n \n \n {event.title}\n {event.subtitle}\n {}\n \n {!isIssued && }\n {isIssued && }\n \n \n \n );\n};\n\nconst Content = styled(PageContent as any)`\n padding-top: 0;\n flex: 0;\n min-height: 250px;\n`;\n\nconst Title = styled.h1`\n font-size: 36px;\n font-family: ${(props) => props.theme.fonts.bolderFont};\n text-align: center;\n margin: 0 0 5px 0;\n position: relative;\n top: -20px;\n`;\n\nexport const Subtitle = styled.h2`\n font-size: 14px;\n margin: 0 0 15px 0;\n text-align: center;\n position: relative;\n top: -20px;\n`;\n\nexport default UserTicketDetailsPage;\n","import { BaseApiService } from '../baseApiService';\nimport { ITokenTicketQuotaStoreState, TokenTicketQuotaStoreState } from '../../store/ticket/types';\n\nexport class ShareApiService extends BaseApiService {\n private static _instance: ShareApiService;\n\n constructor(config?: any) {\n if (typeof ShareApiService._instance === 'undefined') {\n super(config);\n ShareApiService._instance = this;\n }\n return ShareApiService._instance;\n }\n\n public async getToken(eventSlug: string, sectorSlug: string, tickets: number): Promise {\n const response = await this.get(`/${eventSlug}/${sectorSlug}/${tickets}`);\n return response.data;\n }\n\n public async getTicketQuotaByToken(token: string): Promise {\n const response = await this.get(`/token/${token}`);\n return new TokenTicketQuotaStoreState(response.data);\n }\n}\n","import { BaseApiService } from '../baseApiService';\nimport { EventStoreState, IEventStoreState } from '../../store/event/types';\nimport { AppSettingsState, IAppSettingsState } from '../../store/appSettings/types';\nimport EventHelper from '../../helpers/eventHelper';\n\nexport class WidgetApiService extends BaseApiService {\n private static _instance: WidgetApiService;\n\n constructor(config?: any) {\n if (typeof WidgetApiService._instance === 'undefined') {\n super(config);\n WidgetApiService._instance = this;\n }\n return WidgetApiService._instance;\n }\n\n public async getWidgetEvent(token: string): Promise {\n const domain = window.location.hostname;\n const resultDomainType = EventHelper.getDomainType(domain);\n const response = await this.get(`book/details/${token}?dtype=${resultDomainType}`);\n return new EventStoreState(response.data);\n }\n\n public async getAppSettings(token: string): Promise {\n const response = await this.get(`app/settings/${token}`);\n return new AppSettingsState(response.data);\n }\n}\n","import { useCallback, useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useHistory, useParams } from 'react-router';\nimport { IGlobalStoreState } from '../../../store';\nimport { AlertType, BookStatus, KeyErrors, KeySuccess } from '../../../store/enums';\nimport { checkoutClear, checkoutComplete } from '../../../store/checkout/actions';\nimport { ICheckoutStoreState } from '../../../store/checkout/types';\nimport { CheckoutHelper } from '../../../helpers';\nimport { setResultInfo } from '../../../store/resultInformarion/actions';\nimport { useQuery } from '../../../helpers/customHooks';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\nimport { ResultInfoButtonConfigType } from '../../../store/resultInformarion/types';\n\nconst WidgetBookResultPage = () => {\n const dispatch = useDispatch();\n const history = useHistory();\n\n const checkout = useSelector((state) => state.checkout);\n const isAuthorized = useSelector((state) => state.app.isAuthorized);\n const userMessageDetails = useSelector(\n (state) => state.checkout?.complete?.result?.userMessageDetails\n );\n const userMessage = useSelector((state) => state.checkout?.complete?.result?.userMessage);\n const isCompleted = useSelector((state) => state.checkout?.complete?.result?.isCompleted);\n const isProcessing = useSelector(\n (state) => state.checkout?.complete?.result?.isProcessing\n );\n const isSuccess = useSelector((state) => state.checkout?.complete?.result?.isSuccess);\n\n const [isHandlingResult, setIsHandlingResult] = useState(false);\n const { type, token } = useParams();\n\n const query = useQuery();\n const refNumber = query.get('refnumber');\n\n const { getWidgetRouteFromToken, getWidgetResultStatusRoute } = useRoutesHelper();\n\n const handlePaymentCompletion = (checkout: ICheckoutStoreState) => {\n if (!checkout || !checkout.complete || !checkout.complete.result) {\n return;\n }\n const completeResult = checkout.complete.result;\n let alertType: AlertType;\n let alertKey: KeyErrors | KeySuccess;\n const title = completeResult.userMessage;\n let message = completeResult.userMessageDetails;\n let callbacks: Array = [];\n\n if (completeResult.isProcessing) {\n alertType = AlertType.Warning;\n alertKey = KeySuccess.PaymentInProcess;\n } else if (!completeResult.isCompleted) {\n alertType = AlertType.Warning;\n alertKey = KeyErrors.PaymentFailed;\n } else {\n alertType = completeResult.isSuccess ? AlertType.Success : AlertType.Error;\n alertKey = completeResult.isSuccess ? KeySuccess.PaymentSucceeded : KeyErrors.PaymentFailed;\n message = isAuthorized && completeResult.isSuccess ? 'WidgetBook.TicketsAvailabilityMessage' : message;\n dispatch(checkoutClear());\n }\n\n callbacks = [\n {\n title: 'WidgetBook.ToTheTicketSelectionPage',\n callback: () => history.push(getWidgetRouteFromToken(token)),\n },\n ];\n dispatch(\n setResultInfo({\n type: alertType,\n key: alertKey,\n title,\n message,\n buttons: callbacks,\n })\n );\n\n history.push(getWidgetResultStatusRoute(alertType, alertKey));\n };\n\n const handlePaymentResult = useCallback(\n (checkout) => {\n if (refNumber) {\n const cancel = type === BookStatus.Timeout;\n const final = (checkout: ICheckoutStoreState) => {\n setIsHandlingResult(false);\n handlePaymentCompletion(checkout);\n };\n if (CheckoutHelper.getIsCompleted(checkout)) {\n final(checkout);\n } else if (!isHandlingResult) {\n setIsHandlingResult(true);\n (async () => dispatch(checkoutComplete(refNumber, cancel)))()\n .then(() => {\n final(checkout);\n })\n .catch(() => {\n final(checkout);\n });\n }\n }\n },\n [isHandlingResult, type, refNumber]\n );\n\n useEffect(() => {\n if (type === BookStatus.Timeout) {\n dispatch(checkoutClear());\n handlePaymentResult(checkout);\n dispatch(\n setResultInfo({\n type: AlertType.Error,\n key: KeyErrors.PaymentTimeout,\n title: 'Alert.SomethingWentWrong',\n message: 'Alert.PaymentTimedOut',\n buttons: [\n {\n title: 'WidgetBook.ToTheTicketSelectionPage',\n callback: () => history.push(getWidgetRouteFromToken(token)),\n },\n ],\n })\n );\n const BEPAID_CLASS_NAME = 'bepaid-app';\n const bePaid = document.getElementsByClassName(BEPAID_CLASS_NAME)[0];\n bePaid.remove();\n\n history.replace(getWidgetResultStatusRoute(AlertType.Error, KeyErrors.PaymentTimeout));\n }\n }, []);\n\n useEffect(() => {\n handlePaymentResult(checkout);\n }, [userMessageDetails, isCompleted, isProcessing, isSuccess, userMessage]);\n\n return null;\n};\n\nexport default WidgetBookResultPage;\n\ntype ParamsType = {\n type: string;\n token: string;\n};\n","import { Reducer } from 'redux';\n\nimport { IAppStoreState, AppStoreState, AppActionTypes } from './types';\n\nconst appReducer: Reducer = (state: IAppStoreState = new AppStoreState(), action) => {\n switch (action.type) {\n case AppActionTypes.APP_INIT:\n return { ...state, isInitializing: false, isRedirection: false };\n case AppActionTypes.APP_FINALIZE:\n return { ...state, isFinalized: true };\n case AppActionTypes.SPINNER_SHOW:\n return { ...state, isLoading: true };\n case AppActionTypes.SPINNER_HIDE:\n return { ...state, isLoading: false };\n case AppActionTypes.APP_AUTHORIZE:\n return { ...state, isAuthorized: true };\n case AppActionTypes.APP_DEAUTHORIZE:\n return { ...state, isAuthorized: false };\n case AppActionTypes.ERROR_SET:\n return { ...state, error: action.payload };\n case AppActionTypes.ERROR_CLEAR:\n return { ...state, error: null };\n case AppActionTypes.APP_REDIRECTION:\n return { ...state, isRedirection: true };\n default:\n return state;\n }\n};\n\nexport default appReducer;\n","import React, { useCallback, useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Grid, Typography } from '@mui/material';\nimport styled from 'styled-components';\nimport { makeStyles } from 'tss-react/mui';\nimport { useTranslation } from 'react-i18next';\nimport { useHistory } from 'react-router';\nimport { IGlobalStoreState } from '../../../store';\nimport { EventType, IEventCategory } from '../../../store/event/types';\nimport { hideAdButton, hideCitySelector, showCitySelector } from '../../../store/header/actions';\nimport { AnalyticService } from '../../../services';\nimport { SellEventButton } from '../../../components/event/sellEventButton';\nimport { CategoryCarousel } from '../../../components/event/categoryCarousel';\nimport { CategorizedEventCarousel } from '../../../components/event/categorizedEventCarousel';\nimport useApi from '../../../services/apiService';\nimport { SearchInput } from '../../../components/event/searchInput';\nimport { DatePicker } from '../../../components/event/datePicker/datePicker';\nimport { DatepickerCarousel } from '../../../components/event/datePicker/datepickerCarousel';\nimport { Footer } from '../../footer';\nimport { Events } from '../../../components/event/events';\nimport { useQuery } from '../../../helpers/customHooks';\nimport { Routes } from '../../../store/routes';\n\nconst useStyles = makeStyles()(() => ({\n gridCategories: {\n marginBottom: 43,\n },\n containerPlayer: {\n position: 'absolute',\n width: '100%',\n height: '470px',\n top: 0,\n zIndex: -1,\n },\n gradientPlayer: {\n position: 'absolute',\n zIndex: 10,\n background: 'linear-gradient(#000000 0%, rgba(0, 0, 0, 0.4) 23.03%, rgba(28, 28, 28, 0.3) 81.88%, #1C1C1C 100%)',\n minWidth: '100%',\n minHeight: '100%',\n },\n contentPage: {\n marginTop: '134px',\n zIndex: 1,\n padding: 16,\n },\n headingText: {\n textTransform: 'uppercase',\n fontSize: 14,\n lineHeight: '14px',\n cursor: 'default',\n },\n searchInput: {\n paddingTop: '50px',\n paddingBottom: '170px',\n position: 'relative',\n },\n videoPlayer: {\n height: 'inherit',\n objectFit: 'cover',\n width: '100%',\n zIndex: 0,\n },\n contentPlayer: {\n position: 'relative',\n height: '100%',\n width: '100%',\n },\n}));\n\nexport const DashboardPage = () => {\n const dispatch = useDispatch();\n const analyticSrv = new AnalyticService();\n const query = useQuery();\n const { t } = useTranslation();\n\n const cityQuery = query\n .get('city')\n ?.trim()\n .replace(/[0-9,%]/, ' ');\n\n const showDatepicker = useSelector((state) => state.appSettings.showDashboardDatepicker);\n const showPopularEvents = useSelector(\n (state) => state.appSettings.showDashboardPopularEvents\n );\n const showCategories = useSelector((state) => state.appSettings.showDashboardCategories);\n const showPopularTours = useSelector(\n (state) => state.appSettings.showDashboardPopularTours\n );\n const showDashboardEventsByCategories = useSelector(\n (state) => state.appSettings.showDashboardEventsByCategories\n );\n const dashboardCarouselColumnEventCount = useSelector(\n (state) => state.appSettings.dashboardCarouselColumnEventCount\n );\n const dashboardCarouselEventCount = useSelector(\n (state) => state.appSettings.dashboardCarouselEventCount\n );\n\n const [categories, setCategories] = useState([]);\n const [selectedDate, setSelectedDate] = useState(new Date());\n const [hidePopularTours, setHideDashboardPopularTours] = useState(false);\n const [city, setCity] = useState(cityQuery || '');\n const [selectedCategoryId, setSelectedCategoryId] = useState(null);\n\n const { eventsApi } = useApi();\n const { classes } = useStyles();\n const history = useHistory();\n\n useEffect(() => {\n analyticSrv.trackEvent('EventsList');\n dispatch(hideAdButton());\n dispatch(showCitySelector());\n\n return () => {\n dispatch(hideAdButton());\n dispatch(hideCitySelector());\n };\n }, []);\n\n useEffect(() => {\n (async () => {\n const result = await eventsApi.getEventsCategories();\n setCategories(result);\n })();\n }, []);\n\n const loadEvents = useCallback(\n async (\n eventType: EventType,\n search?: string | null,\n date?: Date | null,\n count?: number | null,\n city?: string | null,\n categoryId?: number | null\n ) => {\n const result = await eventsApi.getEventsByType({\n eventType,\n search,\n date,\n count,\n city,\n categoryId,\n });\n return result.map((event) => ({\n key: event.slug,\n title: event.title,\n imageUrl: event.posterUrl,\n date: event.date,\n city: event.city,\n categoryId,\n domainTypes: event.domainTypes,\n }));\n },\n []\n );\n\n const loadEventsByType = async (eventType) => {\n const events = await loadEvents(eventType);\n\n if (events.length <= 1) {\n setHideDashboardPopularTours(true);\n }\n\n return events;\n };\n\n const loadEventCategories = async () => {\n const result = await eventsApi.getEventsCategories();\n return result.map((category) => ({\n id: category.id,\n key: category.slug,\n title: category.title,\n imageUrl: category.imageUrl,\n }));\n };\n\n const handleDelete = useCallback(() => {\n setCity(null);\n history.replace(Routes.Main);\n }, []);\n\n return (\n \n
\n
\n
\n \n
\n
\n {false && (\n \n \n

{t('Dashboard.SloganFirstPart')}

\n

{t('Dashboard.SloganSecondPart')}

\n
\n
\n )}\n\n \n \n
\n \n
\n
\n\n {showPopularEvents && (\n loadEventsByType(EventType.Popular)}\n title={t('Dashboard.PopularEvents')}\n />\n )}\n\n {showDashboardEventsByCategories && !city && (\n \n
\n \n категории\n \n
\n loadEventCategories()} />\n
\n )}\n {showDatepicker && (\n \n \n \n )}\n\n {showDatepicker && (\n \n \n loadEvents(EventType.Date, city, selectedDate, dashboardCarouselEventCount, null, selectedCategoryId)\n }\n defaultRowsCount={dashboardCarouselColumnEventCount}\n />\n \n )}\n\n {showPopularTours && !hidePopularTours && (\n ('Dashboard.PopularTours')} load={() => loadEventsByType(EventType.Tour)} />\n )}\n\n {showCategories && }\n
\n \n );\n};\n\nconst TextContainer = styled.div`\n padding: 15px 25px;\n\n p {\n text-align: center;\n font-size: 14px;\n color: ${(props) => props.theme.colors.text};\n margin: 0;\n font-style: normal;\n font-weight: normal;\n line-height: 130%;\n /* or 18px */\n }\n\n @media screen and (min-width: 576px) {\n p {\n font-size: 18px;\n }\n }\n`;\n","import * as React from 'react';\nimport { connect } from 'react-redux';\nimport BeatLoader from 'react-spinners/BeatLoader';\nimport styled from 'styled-components';\nimport { IGlobalStoreState } from '../store';\nimport { AppTheme } from '../settings/appTheme';\nimport { FC } from 'react';\n\ninterface ISpinnerProps {\n isLoading: boolean;\n}\n\nconst Container = styled.div`\n height: calc(var(--vh, 1vh) * 100);\n max-height: 100vh;\n position: fixed;\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n background: rgba(0, 0, 0, 0.7);\n z-index: 999;\n`;\nconst override = {\n paddingTop: '90px',\n transform: 'translateX(calc(50% - 21px))',\n};\n\nexport const Spinner: FC = ({ isLoading }) => {\n if (!isLoading) {\n return null;\n }\n return (\n \n \n \n );\n};\n\nconst mapStateToProps = (state: IGlobalStoreState, ownProps: any) => ({\n isLoading: state.app.isLoading,\n});\n\nexport default connect(mapStateToProps)(Spinner);\n","import { Grid } from '@mui/material';\nimport React from 'react';\nimport { makeStyles } from 'tss-react/mui';\nimport { AppTheme } from '../settings/appTheme';\n\nconst useStyles = makeStyles()(() => ({\n copyright: {\n marginTop: 5,\n '&:nth-of-type(n+1)': {\n fontSize: 14,\n lineHeight: '14px',\n color: '#6B6B6B',\n },\n },\n footer: {\n position: 'relative',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n },\n copyrightCompany: {\n fontSize: 14,\n lineHeight: '14px',\n },\n logo: {\n width: 104,\n height: 24,\n },\n logoFooter: {\n marginLeft: 15,\n },\n}));\n\nexport const Footer = () => {\n const { classes } = useStyles();\n return (\n \n \n {AppTheme.img.logo}\n \n \n \n {`2019-${new Date().getFullYear()} `}\n Fanaticka\n \n \n );\n};\n","export const PopUp = {\n exit: { y: 0, opacity: 1 },\n enter: {\n y: 30,\n opacity: 0,\n transition: { duration: 0.1 },\n },\n};\n","import React, { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport styled from 'styled-components';\nimport Helmet from 'react-helmet';\n\nimport { useTranslation } from 'react-i18next';\nimport { useHistory } from 'react-router';\nimport { AnimatePresence } from 'framer-motion';\nimport { IGlobalStoreState } from '../../../store';\nimport { PageContent } from '../../../components/UI';\nimport { RegistrationForm, RegistrationFormType } from '../../../components/forms';\nimport { registerUser } from '../../../store/user/actions';\nimport { IErrorStoreState } from '../../../store/app/types';\nimport { Utils } from '../../../services';\nimport { PopUp } from '../../../store/animations';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\nimport { AlertType, KeySuccess } from '../../../store/enums';\nimport { ModalWindow } from './socialNetworkLogin/modalWindow';\nimport { Divider, isMobile } from './loginPage';\nimport { IDistributionStoreState } from '../../../store/distribution/types';\n\nconst RegistrationPage = () => {\n const isInitializing = useSelector((state) => state.app.isInitializing);\n const error = useSelector((state) => state.app.error);\n const isAuthorized = useSelector((state) => state.app.isAuthorized);\n const distributor = useSelector((state) => state.distribution);\n\n const dispatch = useDispatch();\n const [errors, setErrors] = useState(null);\n const { t } = useTranslation();\n const history = useHistory();\n const { getResultStatusRoute } = useRoutesHelper();\n\n useEffect(() => {\n if (isAuthorized) {\n history.replace('/');\n }\n }, []);\n\n useEffect(() => {\n setErrors({ form: error });\n }, [error?.message, error?.details]);\n\n if (isInitializing) {\n return null;\n }\n\n const handleFormSubmit = (formModel: RegistrationFormType) => {\n if (formModel) {\n if (distributor?.distributorSlug) {\n formModel.distributorSlug = distributor.distributorSlug;\n formModel.isDistributor = true;\n }\n\n (async () => dispatch(registerUser(formModel.email, formModel.password)))().then(() => {\n history.replace(getResultStatusRoute(AlertType.Info, KeySuccess.EmailSent));\n });\n }\n };\n\n return (\n \n \n \n {Utils.toPageTitle(t('Registration.Registration'))}\n \n
{t('Registration.Registration')}
\n handleFormSubmit(formModel)}\n errors={errors}\n />\n {/*{t('Login.Or')}*/}\n {/**/}\n
\n
\n );\n};\nconst Header = styled.h1`\n font-family: ${(props) => props.theme.fonts.boldFont};\n font-size: 18px;\n text-transform: uppercase;\n text-align: center;\n`;\n\nexport default RegistrationPage;\n","import { GetSectorSchemaParams, GetVenueSchemaParams, ThunkService } from '.';\nimport { GetCategoryParams, GetEventByCategoriesParams, GetEventByTypeParams } from './repositories';\nimport { AppSettings } from '../settings/appSettings';\n\nexport default function useApi() {\n const thunkService = new ThunkService({ baseURL: `${AppSettings.BASE_API_URL}` });\n\n const eventsApi = getEventsAPI(thunkService);\n return {\n eventsApi,\n };\n}\n\nexport function getEventsAPI(thunkService: ThunkService) {\n return {\n getEventsCategories: () => thunkService.api.events.getEventsCategories(),\n getCategory: (params: GetCategoryParams) => thunkService.api.events.getCategory(params),\n getEventsByType: (params: GetEventByTypeParams) => thunkService.api.events.getEventsByType(params),\n getEventsByCategories: (params: GetEventByCategoriesParams) =>\n thunkService.api.events.getEventsByCategories(params),\n searchEvents: async (search: string) => thunkService.api.events.searchEvents(search),\n searchLocations: async (search: string) => thunkService.api.events.searchLocations(search),\n getLocations: async () => thunkService.api.events.getLocations(),\n getDatepickerDates: (date: Date) => thunkService.api.events.getDatepickerDates(date),\n getSectorSchema: (date: GetSectorSchemaParams) => thunkService.api.events.getSectorSchema(date),\n getVenueSchema: (date: GetVenueSchemaParams) => thunkService.api.events.getVenueSchema(date),\n };\n}\n","import { Reducer } from 'redux';\n\nimport { IShareStoreState, ShareStoreState, ShareActionTypes } from './types';\n\nconst shareReducer: Reducer = (state: IShareStoreState = new ShareStoreState(), action) => {\n switch (action.type) {\n case ShareActionTypes.SHARE_INIT:\n return { ...action.payload } as IShareStoreState;\n case ShareActionTypes.CLEAR_INIT:\n return new ShareStoreState() as IShareStoreState;\n default:\n return state;\n }\n};\n\nexport default shareReducer;\n","import React, { FC, memo } from 'react';\nimport styled from 'styled-components';\nimport { useTranslation } from 'react-i18next';\nimport { IEventStoreState, ISeatStoreState } from '../../../../store/event/types';\nimport { IVenueSectorStoreState } from '../../../../store/ticket/types';\nimport { TicketCountSelector } from '../../../../components/book';\nimport { WidgetPrices } from './widgetPrice';\n\nexport const TicketsCountSelector: FC = memo(\n ({ handleTicketsCount, event, sector, seats, quotaId }) => {\n const { t } = useTranslation();\n\n if (!event || !sector || !sector.ticketQuotas) {\n return null;\n }\n\n const quota = sector.ticketQuotas.find((q) => q.id === quotaId);\n if (!quota) {\n return null;\n }\n\n const tickets = seats.filter((s) => s.quotaId === quotaId);\n const maxPurchase = quota.left < event.maxPurchase ? quota.left : event.maxPurchase;\n\n return (\n \n {sector.noSeats && (\n <>\n {t('WidgetBook.TicketCount')}\n \n s.quotaId !== quotaId).length}\n sector={sector}\n tickets={tickets.length}\n handleTicketsCount={handleTicketsCount}\n />\n \n \n )}\n {!sector.noSeats && {t('WidgetBook.TicketsPrice')}}\n {}\n \n );\n }\n);\n\nconst TicketsPriceWrapper = styled.div`\n padding-top: 30px;\n`;\n\nconst Title = styled.h1`\n font-size: 14px;\n margin: 0 0 15px 0;\n`;\n\nconst TicketSelectorsWrapper = styled.section`\n margin-bottom: 30px;\n`;\n\ntype TicketsCountSelectorPropsType = {\n event: IEventStoreState;\n sector: IVenueSectorStoreState;\n quotaId: number;\n seats: ISeatStoreState[];\n handleTicketsCount: (count: number) => void;\n};\n","import React, { FC } from 'react';\nimport styled from 'styled-components';\nimport { useTranslation } from 'react-i18next';\n\nexport const BookTotalPrices: FC = ({\n ticketPrice,\n totalPrice,\n border,\n sectorTitle,\n currency,\n}) => {\n const { t } = useTranslation();\n\n return (\n \n \n {!sectorTitle && !!ticketPrice && (\n \n {t('Book.TicketPrice')}\n \n {ticketPrice} {currency}\n \n \n )}\n {!!sectorTitle && !!ticketPrice && (\n \n {sectorTitle}\n \n {ticketPrice} {currency}\n \n \n )}\n \n \n {t('Book.Total')}\n \n {totalPrice} {currency}\n \n \n \n );\n};\n\nconst PricesWrapper: any = styled.section`\n border-top: ${(props: any) => props.border && `1px solid ${props.theme.colors.accent}`};\n padding-top: ${(props: any) => props.border && '15px'};\n`;\n\nconst PriceList = styled.ul`\n list-style: none;\n margin: 0;\n padding: 0;\n`;\n\nconst PriceItemWrapper = styled.li`\n display: flex;\n align-items: baseline;\n margin-bottom: 5px;\n color: ${(props) => props.theme.colors.textSecond};\n font-family: ${(props) => props.theme.fonts.lighterFont};\n`;\n\nconst TotalPriceWrapper = styled(PriceItemWrapper as any)`\n margin-top: 15px;\n color: ${(props) => props.theme.colors.text};\n`;\n\nexport const PriceTitle = styled.label`\n font-size: 12px;\n`;\n\nexport const Price = styled(PriceTitle as any)`\n flex: 1;\n text-align: right;\n`;\n\nconst TotalPriceTitle = styled(PriceTitle as any)`\n font-size: 14px;\n font-family: ${(props) => props.theme.fonts.regularFont};\n`;\n\nconst TotalPrice = styled(Price as any)`\n font-size: 14px;\n font-family: ${(props) => props.theme.fonts.boldFont};\n`;\n\ntype BookTotalPricesPropsType = {\n ticketPrice?: number;\n totalPrice: number;\n currency: string;\n sectorTitle?: string;\n border?: boolean;\n};\n","import * as React from 'react';\nimport styled from 'styled-components';\n\nimport { Translation } from 'react-i18next';\nimport { IUserStatsStoreState, IUserBalanceStoreState } from '../../store/user/types';\nimport { UserStatItem } from './userStatItem';\nimport { Utils } from '../../services';\n\ninterface IUserStatsProps {\n stats: IUserStatsStoreState;\n}\n\nexport class UserStats extends React.PureComponent {\n constructor(props: IUserStatsProps) {\n super(props);\n }\n\n render() {\n const stats = this.props.stats;\n return (\n <>\n \n {(t) => (\n \n \n \n \n )}\n \n {this.renderBalances(stats.balances)}\n \n );\n }\n\n private renderBalances(balances: Array) {\n if (!balances || !balances.length) {\n return {(t) => };\n }\n\n return (\n <>\n {balances.map((item, index) => (\n \n {(t) => (\n \n )}\n \n ))}\n \n );\n }\n}\n\n\nconst StatsList = styled('ul' as any)`\n display: flex;\n list-style: none;\n padding: 0;\n align-items: unset;\n margin: 25px 0;\n`;\n","import * as React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport styled from 'styled-components';\nimport { useTranslation } from 'react-i18next';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport { IGlobalStoreState } from '../store';\nimport { hideMenu } from '../store/menu/actions';\nimport { OnlineCardPaymentLink, PaymentDocumentsLink, RLink, UserAgreementLink } from '../components/UI';\nimport { Routes } from '../store/routes';\nimport { EventHelper } from '../helpers';\nimport { DomainType } from '../store/enums';\n\ntype MenuType = {\n isShow: boolean;\n hideMenu?: () => void;\n};\n\nconst Menu = () => {\n const dispatch = useDispatch();\n const { t } = useTranslation();\n const isShow = useSelector((state) => state.menu.isShow);\n const { getDomainType } = EventHelper;\n const isDomainKz = getDomainType(window.location.host) === DomainType.Kz;\n\n const handleLinkClick = () => {\n dispatch(hideMenu());\n };\n const containerVariants = {\n hidden: {\n x: '-100%',\n transition: { duration: 0.3 },\n },\n visible: {\n x: '0%',\n },\n close: {\n x: '-100%',\n transition: { duration: 0.3 },\n },\n };\n\n const contactsTitle = isDomainKz ? 'Контакты' : t('Menu.Contacts');\n const aboutUsTitle = isDomainKz ? 'О нас' : t('Menu.AboutUs');\n const paymentTitle = isDomainKz ? 'Оплата' : t('Menu.Payment');\n const paymentMethodsTitle = isDomainKz ? 'Методы оплаты' : t('Menu.PaymentMethods');\n\n return (\n \n {isShow && (\n \n \n \n {aboutUsTitle}\n \n \n \n {contactsTitle}\n \n \n \n \n \n {paymentTitle}\n \n \n \n {paymentMethodsTitle}\n \n \n {/* \n \n \n \n \n */}\n \n \n \n \n \n \n \n \n \n \n \n )}\n \n );\n};\n\nconst Container = styled(motion.aside)`\n position: fixed;\n width: 100%;\n height: 100%;\n max-height: 100vh;\n z-index: 800;\n padding: 0;\n margin: 0;\n top: 0;\n bottom: 0;\n max-width: ${(props) => props.theme.maxWidth};\n display: ${(props) => !props.isShow && 'none'};\n background-color: rgba(0, 0, 0, 0.2);\n`;\n\nconst Navigation = styled.nav`\n background-color: ${(props) => props.theme.colors.bg};\n max-width: calc(100% - 25px);\n padding: 130px 25px 25px;\n height: 100%;\n display: flex;\n flex-direction: column;\n`;\n\nconst AMenuBlock = styled(motion.section as any)``;\nconst MenuBlock = styled(AMenuBlock as any)`\n color: ${(props) => props.theme.colors.text};\n font-size: 14px;\n margin-bottom: ${(props: any) => !props.footer && '25px'};\n flex: ${(props: any) => props.grow && 1};\n`;\n\nconst Title = styled.h2`\n font-size: 14px;\n font-family: ${(props) => props.theme.fonts.lighterFont};\n line-height: 18px;\n margin: 0 0 15px 0;\n padding: 0;\n text-transform: uppercase;\n color: ${(props) => props.theme.colors.accent};\n`;\n\nconst List = styled.ul`\n list-style: none;\n margin: 0;\n padding: 0;\n`;\n\nconst ListItem = styled.li`\n &:not(:last-child) {\n margin-bottom: 10px;\n }\n`;\n\nexport default Menu;\n","import React, { ChangeEvent, FC } from 'react';\nimport styled from 'styled-components';\nimport { Field, Form, Formik } from 'formik';\nimport * as Yup from 'yup';\n\nimport { useTranslation } from 'react-i18next';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport { Button, RadioButton, RadioLabel } from '../UI';\nimport { FieldError, Fieldset, FieldWrapper, FormError, IBaseFormProps } from './commonForm';\nimport { PopUp } from '../../store/animations';\nimport { ICheckoutStoreState } from '../../store/checkout/types';\nimport { IUserStoreState } from '../../store/user/types';\nimport { CheckoutHelper } from '../../helpers';\nimport { Utils } from '../../services';\nimport { useUtils } from '../../services/useUtils';\nimport UserHelper from '../../helpers/userHelper';\n\nexport interface IPaymentForm {\n usePoints: boolean;\n}\n\ninterface IPaymentFormProps extends IBaseFormProps {\n checkoutModel: ICheckoutStoreState;\n user: IUserStoreState;\n\n onUsePointsChange?: (usePoints: boolean) => void;\n}\n\nexport const PaymentForm: FC = ({ checkoutModel, errors, onUsePointsChange, user, onSubmit }) => {\n const { t } = useTranslation();\n const { getEmojiFlagByCurrency } = useUtils();\n\n const ValidationSchema = Yup.object().shape({\n usePoints: Yup.boolean().required(),\n });\n const isEnoughPoints = CheckoutHelper.getIsEnoughPoints(checkoutModel, user);\n const { currency } = checkoutModel.init;\n const currencyBalance = UserHelper.getBalanceByCurrency(user, currency);\n const balanceDescription = `${t('Book.Available')} ${currencyBalance ? currencyBalance.amount : 0}\n ${t('Book.Points')} ${getEmojiFlagByCurrency(currency)}`;\n const pointsDescription = `${!isEnoughPoints ? `${t('Book.NotEnoughPoints')} ` : ''}${balanceDescription}`;\n\n const pointsUseChange = (e: ChangeEvent, usePoints: boolean) => {\n if (e) {\n e.preventDefault();\n }\n if (onUsePointsChange) {\n onUsePointsChange(usePoints);\n }\n };\n\n const getSubmitTitle = (): string => {\n const checkout = checkoutModel;\n const amount = Utils.round(checkout.init.pricePayByCard || checkout.init.priceTotal);\n const { currency } = checkout.init;\n return `${t('Checkout.ToPay')} ${amount} ${currency}`;\n };\n\n return (\n {\n if (onSubmit) {\n onSubmit(values);\n }\n }}\n >\n {({ isValid }) => (\n \n \n \n {({ field, form }) => (\n <>\n \n \n pointsUseChange(e, false)}\n />{' '}\n {t('Book.DontUsePoints')}\n \n \n \n \n pointsUseChange(e, true)}\n />{' '}\n {t('Book.UsePoints')}\n \n \n \n \n {pointsDescription}\n \n \n \n \n \n {!!form.touched.usePoints && !!form.errors && !!form.errors.usePoints && (\n \n {form.errors.usePoints}\n \n )}\n \n \n )}\n \n \n \n {!!errors && !!errors.form && (\n \n {errors.form.details || errors.form.message}\n \n )}\n \n {\n \n }\n \n )}\n \n );\n};\n\nconst StyledForm = styled(Form)`\n flex: 1;\n display: flex;\n flex-direction: column;\n`;\n\nconst StyledFieldset = styled(Fieldset)`\n flex: 1;\n margin-bottom: 20px;\n`;\n\nconst RadioWrapper = styled(FieldWrapper)`\n margin-bottom: 0;\n`;\n\nconst RadioDescription = styled(motion.div)`\n padding: 10px 25px;\n font-size: 10px;\n`;\n\nconst RadioDescriptionTitle: any = styled(motion.span)`\n color: ${(props: RadioDescriptionTitleType) => (props.error ? props.theme.colors.error : props.theme.colors.accent)};\n`;\n\ntype RadioDescriptionTitleType = {\n error: boolean;\n theme: {\n colors: {\n error: string;\n accent: string;\n };\n };\n};\n","import React from 'react';\nimport { Route, Switch } from 'react-router-dom';\nimport { InformationSuccess } from './informationSuccess';\nimport { Routes } from '../../../store/routes';\nimport { InformationFailed } from './informationFailed';\n\nexport const InformationRoutes = () => (\n (\n \n \n \n \n )}\n />\n);\n","import * as SrvM from '.';\nimport RouteService from './routeService';\n\nexport class Api {\n base: SrvM.BaseApiService;\n events: SrvM.EventsApiService;\n payments: SrvM.PaymentsApiService;\n account: SrvM.AccountApiService;\n auth: SrvM.AuthApiService;\n googleAuth: SrvM.AuthApiService;\n facebookAuth: SrvM.AuthApiService;\n tickets: SrvM.TicketsApiService;\n home: SrvM.HomeApiService;\n share: SrvM.ShareApiService;\n widget: SrvM.WidgetApiService;\n publicContract: SrvM.PublicContractApiService;\n\n constructor(config?: any) {\n this.base = new SrvM.BaseApiService(config);\n this.events = new SrvM.EventsApiService({ ...config, baseURL: `${config.baseURL}/events` });\n this.payments = new SrvM.PaymentsApiService({ ...config, baseURL: `${config.baseURL}/payments` });\n this.account = new SrvM.AccountApiService({ ...config, baseURL: `${config.baseURL}/accounts` });\n this.auth = new SrvM.AuthApiService({ ...config, baseURL: `${config.baseURL}/auth` });\n this.googleAuth = new SrvM.AuthApiService({ ...config, baseURL: `${config.baseURL}/auth` });\n this.facebookAuth = new SrvM.AuthApiService({ ...config, baseURL: `${config.baseURL}/auth` });\n this.tickets = new SrvM.TicketsApiService({ ...config, baseURL: `${config.baseURL}/tickets` });\n this.home = new SrvM.HomeApiService({ ...config, baseURL: `${config.baseURL}/home` });\n this.share = new SrvM.ShareApiService({ ...config, baseURL: `${config.baseURL}/share` });\n this.widget = new SrvM.WidgetApiService({ ...config, baseURL: `${config.baseURL}/widget` });\n this.publicContract = new SrvM.PublicContractApiService({\n ...config,\n baseURL: `${config.baseURL}/PublicContracts`,\n });\n }\n}\n\nexport class ThunkService {\n api: Api;\n routeService: RouteService;\n\n constructor(apiConfig?: any) {\n this.api = new Api(apiConfig);\n this.routeService = new RouteService();\n }\n}\n","import { Action, combineReducers, Dispatch, Reducer } from 'redux';\nimport { PersistedState } from 'redux-persist';\n\nimport appReducer from './app/reducers';\nimport eventsReducer from './event/reducers';\nimport bookReducer from './book/reducers';\nimport checkoutReducer from './checkout/reducers';\nimport distributionReducer from './distribution/reducers';\nimport authReducer from './auth/reducers';\nimport { userEventsReducer, userReducer, userTicketsReducer } from './user/reducers';\nimport { IMenuStoreState, MenuStoreState } from './menu/types';\nimport menuReducer from './menu/reducers';\nimport { AppStoreState, IAppStoreState } from './app/types';\nimport { IEventStoreState } from './event/types';\nimport { BookStoreState, IBookStoreState } from './book/types';\nimport { CheckoutStoreState, ICheckoutStoreState } from './checkout/types';\nimport { DistributionStoreState, IDistributionStoreState } from './distribution/types';\nimport { IAuthStoreState } from './auth/types';\nimport { IUserStoreState } from './user/types';\nimport { IRegionalInfoStoreState, RegionalInfoStoreState } from './region/types';\nimport regionReducer from './region/reducers';\nimport { HeaderStoreState, IHeaderStoreState } from './header/types';\nimport headerReducer from './header/reducer';\nimport { IShareStoreState, ShareStoreState } from './share/types';\nimport shareReducer from './share/reduser';\nimport { IProfileTicketStoreState } from './ticket/ProfileTicketStoreState';\nimport appSettingsReducer from './appSettings/reducers';\nimport { AppSettingsState, IAppSettingsState } from './appSettings/types';\nimport { ILocationStoreState, LocationStoreState } from './location/types';\nimport locationReducer from './location/reducers';\nimport resultInfoReducer, { resultInfoStoreState } from './resultInformarion/reducers';\nimport { ResultInfoType } from './resultInformarion/types';\n\nexport interface IGlobalStoreState extends PersistedState {\n app: IAppStoreState;\n events: Array;\n book: IBookStoreState;\n checkout: ICheckoutStoreState;\n distribution: IDistributionStoreState;\n auth: IAuthStoreState;\n user: IUserStoreState;\n userEvents: Array;\n userTickets: Array;\n menu: IMenuStoreState;\n region: IRegionalInfoStoreState;\n header: IHeaderStoreState;\n share: IShareStoreState;\n appSettings: IAppSettingsState;\n location: ILocationStoreState;\n resultInfo: ResultInfoType;\n}\n\nexport class GlobalStoreState implements IGlobalStoreState {\n app: IAppStoreState;\n events: Array;\n checkout: ICheckoutStoreState;\n book: IBookStoreState;\n distribution: IDistributionStoreState;\n auth: IAuthStoreState;\n user: IUserStoreState;\n userEvents: Array;\n userTickets: Array;\n menu: IMenuStoreState;\n region: IRegionalInfoStoreState;\n header: IHeaderStoreState;\n share: IShareStoreState;\n appSettings: IAppSettingsState;\n location: ILocationStoreState;\n resultInfo: ResultInfoType;\n\n constructor() {\n this.app = new AppStoreState();\n this.events = new Array();\n this.checkout = new CheckoutStoreState();\n this.book = new BookStoreState();\n this.distribution = new DistributionStoreState();\n this.auth = null;\n this.user = null;\n this.userEvents = [];\n this.userTickets = [];\n this.menu = new MenuStoreState(null);\n this.region = new RegionalInfoStoreState();\n this.header = new HeaderStoreState();\n this.share = new ShareStoreState();\n this.appSettings = new AppSettingsState();\n this.location = new LocationStoreState();\n this.resultInfo = resultInfoStoreState;\n }\n}\n\nexport const rootReducer: Reducer = combineReducers({\n app: appReducer,\n events: eventsReducer,\n checkout: checkoutReducer,\n book: bookReducer,\n distribution: distributionReducer,\n auth: authReducer,\n user: userReducer,\n userEvents: userEventsReducer,\n userTickets: userTicketsReducer,\n menu: menuReducer,\n region: regionReducer,\n header: headerReducer,\n share: shareReducer,\n appSettings: appSettingsReducer,\n location: locationReducer,\n resultInfo: resultInfoReducer,\n});\n\nexport interface ConnectedReduxProps {\n dispatch: Dispatch;\n}\n","export interface ILocationStoreState {\n location: string;\n}\n\nexport class LocationStoreState implements ILocationStoreState {\n location: string;\n\n constructor(dto?: any) {\n this.location = dto && dto.location ? dto.location : '';\n }\n}\n\nexport const enum LocationActionTypes {\n INIT_LOCATION = '@@location/INIT_LOCATION',\n}\n","import { action } from 'typesafe-actions';\nimport { Dispatch } from 'redux';\n\nimport { IAuthStoreState, AuthActionTypes } from './types';\n\nconst init = (payload: IAuthStoreState) => action(AuthActionTypes.AUTH_INIT, payload);\nconst clear = () => action(AuthActionTypes.AUTH_CLEAR);\n\nexport const authorize =\n (token: IAuthStoreState) =>\n (dispatch: Dispatch): void => {\n dispatch(init(token));\n };\n\nexport const deauthorize =\n () =>\n (dispatch: Dispatch): void => {\n dispatch(clear());\n };\n","import React, { FC } from 'react';\nimport styled from 'styled-components';\n\nimport { IVenueSectorStoreState } from '../../store/ticket/types';\nimport { Label } from '../UI';\nimport { Utils } from '../../services';\nimport NumberInput from '../UI/numberInput';\n\ntype TicketCountSelectorPropsType = {\n sector: IVenueSectorStoreState;\n tickets: number;\n max: number;\n\n handleTicketsCount?: (count: number) => void;\n};\n\nexport const TicketCountSelector: FC = ({ handleTicketsCount, tickets, max, sector }) => {\n if (!sector) {\n return null;\n }\n\n return (\n \n \n {sector.title}\n \n \n \n );\n};\n\nconst TicketWrapper = styled.section`\n margin-bottom: 15px;\n`;\n\nconst TicketSelectorWrapper = styled.section`\n display: flex;\n font-size: 12px;\n align-items: center;\n margin-bottom: 10px;\n`;\n\nconst Title = styled(Label)`\n flex: 1;\n font-size: 12px;\n`;\n","import React, { FC } from 'react';\nimport styled from 'styled-components';\nimport * as Yup from 'yup';\nimport { setLocale } from 'yup';\nimport { Field, Form, Formik } from 'formik';\nimport i18next from 'i18next';\nimport { useTranslation } from 'react-i18next';\nimport { AnimatePresence } from 'framer-motion';\nimport { Button, TextInput } from '../UI';\nimport { FieldError, Fieldset, FieldWrapper, FormError } from './commonForm';\nimport Constants from '../../store/constants';\nimport { PopUp } from '../../store/animations';\n\nexport type ResetPasswordFormType = {\n password: string;\n passwordConfirm: string;\n};\n\ntype ResetPasswordProps = {\n submitTitle: string;\n onSubmit: (ResetPasswordFormType) => void;\n errors: any;\n};\n\nexport const ResetPasswordForm: FC = ({ submitTitle, onSubmit, errors }) => {\n const { t } = useTranslation();\n\n setLocale({\n string: {\n min: ({ min }) => t('ResetPassword.MaxLengthOfPassword', { min }),\n },\n });\n\n const ValidationSchema = Yup.object().shape({\n password: Yup.string().required(t('ResetPassword.PasswordRequired')).min(Constants.MinPasswordLength),\n passwordConfirm: Yup.mixed().test(\n 'match',\n t('ResetPassword.PasswordsNotMatch'),\n (passwordConfirm, context) => passwordConfirm === context.parent.password\n ),\n });\n\n const initialValues = {\n password: '',\n passwordConfirm: '',\n };\n\n return (\n {\n if (onSubmit) {\n onSubmit(values);\n }\n }}\n validationSchema={ValidationSchema}\n >\n {({ isValid, handleChange, handleBlur, values }) => (\n \n
\n \n {({ field, form }) => (\n \n \n \n {!!form.touched.password && !!form.errors && !!form.errors.password && (\n \n {form.errors.password}\n \n )}\n \n \n )}\n \n \n {({ field, form }) => (\n \n \n \n {!!form.touched.passwordConfirm && !!form.errors && !!form.errors.passwordConfirm && (\n \n {t(form.errors.passwordConfirm, { min: Constants.MinPasswordLength })}\n \n )}\n \n \n )}\n \n
\n \n {!!errors && !!errors.form && (\n \n {t(errors.form.details) || t(errors.form.message)}\n \n )}\n \n \n {submitTitle}\n \n
\n )}\n \n );\n};\n\nconst StyledForm = styled(Form)`\n width: 100%;\n`;\n\nconst StyledButton = styled(Button)`\n margin-top: 20px;\n`;\n","import styled from 'styled-components';\n\nexport const Avatar = styled.img`\n width: 130px;\n height: 130px;\n`;\n","import { BaseApiService } from '../baseApiService';\nimport { ContractInfo, ContractInfoContainer, IMenuStoreState, MenuStoreState } from '../../store/menu/types';\nimport { EventHelper } from '../../helpers';\n\nexport class PublicContractApiService extends BaseApiService {\n private static _instance: PublicContractApiService;\n\n constructor(config?: any) {\n if (typeof PublicContractApiService._instance === 'undefined') {\n super(config);\n PublicContractApiService._instance = this;\n }\n return PublicContractApiService._instance;\n }\n\n public async getUserAgreements(): Promise {\n const domain = window.location.hostname;\n const resultDomainType = EventHelper.getDomainType(domain);\n const response = await this.get(`?dtype=${resultDomainType}`);\n\n const bonusPrograms = response.data['BonusProgram']\n ? (\n response.data['BonusProgram'].map((t) => new ContractInfoContainer(t.Language, t.FileUrl))\n )\n : ([] as ContractInfoContainer[]);\n const publicContracts = response.data['PublicContract']\n ? (\n response.data['PublicContract'].map((t) => new ContractInfoContainer(t.Language, t.FileUrl))\n )\n : ([] as ContractInfoContainer[]);\n\n const result = new ContractInfo(publicContracts, bonusPrograms);\n\n const menuState = new MenuStoreState(result);\n\n return menuState;\n }\n}\n","import { BaseApiService } from '../baseApiService';\nimport { AuthStoreState, IAuthStoreState, ITokenRequestStoreState } from '../../store/auth/types';\nimport { RequestType } from '../../store/enums';\n\nexport class AuthApiService extends BaseApiService {\n private static _instance: AuthApiService;\n\n constructor(config?: any) {\n if (typeof AuthApiService._instance === 'undefined') {\n super(config);\n AuthApiService._instance = this;\n }\n return AuthApiService._instance;\n }\n\n public async token(model: ITokenRequestStoreState): Promise {\n const response = await this.post('/token', model, null, RequestType.token);\n return new AuthStoreState(response.data);\n }\n\n public async googleToken(model: { access_token: string; client_id: string }) {\n const response = await this.post('/googleToken', model, null, RequestType.token);\n return new AuthStoreState(response.data);\n }\n\n public async facebookToken(model: { access_token: string; client_id: string }) {\n const response = await this.post('/facebookToken', model, null, RequestType.token);\n return new AuthStoreState(response.data);\n }\n}\n","import dayjs from 'dayjs';\n\nexport interface ISocialNetworkLogin {\n access_token: string;\n client_id: string;\n}\n\nexport interface IDistributionInfo {\n distributorSlug?: string;\n}\n\nexport class DistributionInfo implements IDistributionInfo {\n distributorSlug?: string;\n\n constructor(distributorSlug?: string) {\n this.distributorSlug = distributorSlug || null;\n }\n}\n\nexport interface IUserRegistrationStoreState extends IDistributionInfo {\n email: string;\n password: string;\n isDistributor?: boolean;\n}\n\nexport class UserRegistrationStoreState extends DistributionInfo implements IUserRegistrationStoreState {\n email: string;\n password: string;\n returnUrl: string;\n isDistributor?: boolean;\n\n constructor(email: string, password: string, returnUrl: string, isDistributor = true, distributorSlug?: string) {\n super(distributorSlug);\n this.email = email;\n this.password = password;\n this.returnUrl = returnUrl;\n this.isDistributor = isDistributor;\n }\n}\n\nexport interface IUserBalanceStoreState {\n amount: number;\n currency: string;\n}\n\nexport class UserBalanceStoreState {\n amount: number;\n currency: string;\n\n constructor(dto?: any) {\n this.amount = dto && dto.Amount ? dto.Amount : 0;\n this.currency = dto && dto.Currency ? dto.Currency : '';\n }\n}\n\nexport interface IUserStatsStoreState {\n events: number;\n ticketsSold: number;\n ticketsPurchased: number;\n balances: Array;\n}\n\nexport class UserStatsStoreState implements IUserStatsStoreState {\n events: number;\n ticketsSold: number;\n ticketsPurchased: number;\n balances: Array;\n\n constructor(dto?: any) {\n this.events = dto && dto.Events ? dto.Events : 0;\n this.ticketsSold = dto && dto.TicketsSold ? dto.TicketsSold : 0;\n this.ticketsPurchased = dto && dto.TicketsPurchased ? dto.TicketsPurchased : 0;\n this.balances = dto && dto.Balances ? dto.Balances.map((item) => new UserBalanceStoreState(item)) : [];\n }\n}\n\nexport interface IUpdateUserStoreState {\n fullName: string;\n referralSlug: string;\n}\n\nexport class UpdateUserStoreState implements IUpdateUserStoreState {\n fullName: string;\n referralSlug: string;\n\n constructor(fullName: string, referralSlug: string) {\n this.fullName = fullName;\n this.referralSlug = referralSlug;\n }\n}\n\nexport interface IUserStoreState {\n email: string;\n emailConfirmed: boolean;\n phoneNumber: string;\n phoneNumberConfirmed: boolean;\n imageUrl: string;\n fullName: string;\n referralSlug: string;\n referredBySlug: string;\n stats: IUserStatsStoreState;\n phoneCodeSentAt?: dayjs.Dayjs;\n phoneCodeSentMessage?: string;\n}\n\nexport class UserStoreState implements IUserStoreState {\n email: string;\n emailConfirmed: boolean;\n phoneNumber: string;\n phoneNumberConfirmed: boolean;\n fullName: string;\n referralSlug: string;\n referredBySlug: string;\n imageUrl: string;\n stats: IUserStatsStoreState;\n phoneCodeSentAt?: dayjs.Dayjs;\n phoneCodeSentMessage?: string;\n\n constructor(dto?: any) {\n this.email = dto && dto.Email ? dto.Email : '';\n this.emailConfirmed = dto && dto.EmailConfirmed ? dto.EmailConfirmed : false;\n this.phoneNumber = dto && dto.PhoneNumber ? dto.PhoneNumber : '';\n this.phoneNumberConfirmed = dto && dto.PhoneNumberConfirmed ? dto.PhoneNumberConfirmed : false;\n this.fullName = dto && dto.FullName ? dto.FullName : '';\n this.referralSlug = dto && dto.ReferralSlug ? dto.ReferralSlug : '';\n this.referredBySlug = dto && dto.ReferredBySlug ? dto.ReferredBySlug : '';\n this.imageUrl = dto && dto.ImageUrl ? dto.ImageUrl : '';\n this.stats = dto && dto.Stats ? new UserStatsStoreState(dto.Stats) : null;\n this.phoneCodeSentAt = null;\n this.phoneCodeSentMessage = null;\n }\n}\n\nexport interface IResetPasswordConfirmInfo {\n email: string;\n newPassword: string;\n token: string;\n}\n\nexport class ResetPasswordConfirmInfo {\n email: string;\n newPassword: string;\n token: string;\n\n constructor(email: string, password: string, token: string) {\n this.email = email;\n this.newPassword = password;\n this.token = token;\n }\n}\n\nexport interface IChangePasswordInfo {\n currentPassword: string;\n newPassword: string;\n}\n\nexport class ChangePasswordInfo implements IChangePasswordInfo {\n currentPassword: string;\n newPassword: string;\n\n constructor(currentPassword: string, newPassword: string) {\n this.currentPassword = currentPassword;\n this.newPassword = newPassword;\n }\n}\n\nexport const enum UserActionTypes {\n USER_INIT = '@@user/INIT',\n USER_UPDATE = '@@user/UPDATE',\n USER_CLEAR = '@@user/CLEAR',\n USER_PHONE_CODE_SEND = '@@user/PHONE_CODE_SEND',\n USER_TOKEN = '@@user/USER_TOKEN',\n USER_EVENTS_INIT = '@@userEvents/INIT',\n USER_EVENTS_CLEAR = '@@userEvents/CLEAR',\n USER_TICKETS_INIT = '@@userTickets/INIT',\n USER_TICKETS_CLEAR = '@@userTickets/CLEAR',\n USER_TICKETS_UPDATE = '@@userTickets/UPDATE',\n PHONE_CURRENT_UPDATE = '@@user/PHONE_CURRENT_UPDATE',\n}\n","export interface ITokenRequestStoreState {\n username: string;\n password: string;\n grant_type: string;\n client_id: string;\n client_secret: string;\n refresh_token?: string;\n}\n\nexport class TokenRequestStoreState implements ITokenRequestStoreState {\n username: string;\n password: string;\n grant_type: string;\n client_id: string;\n client_secret: string;\n refresh_token?: string;\n}\n\nexport interface IAuthStoreState {\n access_token: string;\n token_type: string;\n refresh_token: string;\n client_id: string;\n issued: string;\n expires: string;\n expires_in: number;\n}\n\nexport class AuthStoreState implements IAuthStoreState {\n access_token: string;\n token_type: string;\n refresh_token: string;\n client_id: string;\n issued: string;\n expires: string;\n expires_in: number;\n\n constructor(dto?: any) {\n this.access_token = dto && dto.access_token ? dto.access_token : '';\n this.token_type = dto && dto.token_type ? dto.token_type : '';\n this.refresh_token = dto && dto.refresh_token ? dto.refresh_token : '';\n this.client_id = dto && dto.client_id ? dto.client_id : '';\n this.issued = dto && dto.issued ? dto.issued : '';\n this.expires = dto && dto.expires ? dto.expires : '';\n this.expires_in = dto && dto.expires_in ? dto.expires_in : '';\n }\n}\n\nexport const enum AuthActionTypes {\n AUTH_INIT = '@@auth/INIT',\n AUTH_CLEAR = '@@auth/CLEAR',\n}\n","let customWindow: any = window;\n\nexport class AppSettings {\n public static APP_NAME = 'Fanaticka';\n public static BASE_API_URL: string = customWindow.API_URL;\n public static IMAGES_PATH = '/content/img';\n public static DEFAULT_FONTS =\n '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji';\n public static LOCALHOST = 'localhost';\n //:ToDo get rid of this approach\n public static IS_DEV: boolean = customWindow.ENVIRONMENT === 'development' || customWindow.ENVIRONMENT === 'stage';\n}\n\nexport class AuthSettings {\n public static CLIENT_ID = 'fanaticka_web';\n public static CLIENT_SECRET = '0fa8b57c0e144b1786907b4977fbb2a1';\n public static GOOGLE_CLIENT_ID = '5471521824-plpatvdr32fctgob0bsiso9s2udagvvk.apps.googleusercontent.com';\n public static GOOGLE_SDK = 'https://accounts.google.com/gsi/client';\n public static FACEBOOK_APP_ID = '3434193566817012';\n public static FACEBOOK_SDK = 'https://connect.facebook.net/en_US/sdk.js';\n}\n\nexport class IntercomSettings {\n public static APP_ID = 'uaod29y5';\n}\n\nexport class AnalyticsSettings {\n public static GOOGLE_TRACKING_ID = 'UA-128487417-1';\n public static APP_INSIGHTS_ID: string = customWindow.APP_INSIGHTS_ID;\n}\n\nexport class DomainSetting {\n public static By = 'by';\n public static Ru = 'ru';\n public static Pl = 'pl';\n public static Co = 'co';\n public static Info = 'info';\n public static Live = 'live';\n public static Me = 'me';\n public static Eu = 'eu';\n public static Com = 'com';\n public static Kz = 'kz';\n}\n\nexport class LanguageSetting {\n public static Ru = 'ru';\n public static En = 'en';\n}\n\nexport class StripeSettings {\n public static STRIPE_KEY: string = customWindow.STRIPE_KEY;\n public static STRIPE_TM_KEY: string = customWindow.STRIPE_TM_KEY;\n}\n","import React, { FC, memo } from 'react';\nimport { enGB, ru } from 'date-fns/locale';\nimport {\n addDays,\n addMonths,\n differenceInCalendarMonths,\n format,\n isSameDay,\n lastDayOfMonth,\n startOfMonth,\n} from 'date-fns';\nimport { makeStyles } from 'tss-react/mui';\nimport { useTranslation } from 'react-i18next';\nimport { LanguageSetting } from '../../../settings/appSettings';\n\ntype RenderDaysType = {\n dates: Date[];\n selectedDate: Date;\n onDateChanged: (day: Date) => void;\n};\n\nconst useStyles = makeStyles()(() => ({\n selectedStyle: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n cursor: 'pointer',\n width: '33px',\n height: '44px',\n borderRadius: '16px',\n backgroundColor: '#FFBF00',\n justifyContent: 'center',\n },\n dateDayItem: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n cursor: 'pointer',\n margin: '0 0 0 0px',\n width: '33px',\n height: '39px',\n flexShrink: 1,\n justifyContent: 'center',\n },\n dayLabel: {\n fontSize: '12px',\n margin: '6px 0 0 0',\n color: 'gray',\n },\n dateLabel: {\n fontSize: '17px',\n lineHeight: '17px',\n position: 'relative',\n top: 5,\n },\n monthYearLabel: {\n alignSelf: 'flex-start',\n zIndex: 3,\n fontSize: '15px',\n fontWeight: 'bold',\n position: 'sticky',\n top: 0,\n left: 0,\n width: 'max-content',\n margin: '0 14px 12px 0',\n textTransform: 'capitalize',\n },\n monthContainer: {\n display: 'flex',\n flexDirection: 'column',\n },\n daysContainer: {\n display: 'flex',\n zIndex: 1,\n },\n\n dateListScrollable: {\n display: 'flex',\n margin: '2px 0 2px 0px',\n WebkitOverflowScrolling: 'touch',\n '&::-webkit-scrollbar': {\n WebkitAppearance: 'none',\n display: 'none',\n },\n },\n}));\n\nexport const RenderDays: FC = memo(({ dates, selectedDate, onDateChanged }) => {\n const { classes } = useStyles();\n const { i18n } = useTranslation();\n\n const dayFormat = 'iiiiii';\n const dateFormat = 'd';\n const monthFormat = 'LLLL';\n\n const formatOption = i18n.language === LanguageSetting.Ru ? { locale: ru } : { locale: enGB };\n const startDate = new Date();\n const lastDate = addDays(startDate, dates.length);\n\n const months = [];\n let days = [];\n\n const isSelectDay = (month, day) => isSameDay(addDays(month, day), selectedDate);\n\n const onDateClick = (day) => {\n onDateChanged(day);\n };\n\n for (let month = 0; month <= differenceInCalendarMonths(lastDate, startDate); month++) {\n const start = month === 0 ? Number(format(startDate, dateFormat)) - 1 : 0;\n const startMonth = startOfMonth(addMonths(startDate, month));\n const end =\n month === differenceInCalendarMonths(lastDate, startDate)\n ? Number(format(lastDate, dateFormat))\n : Number(format(lastDayOfMonth(startMonth), dateFormat));\n for (let day = start; day < end; day++) {\n days.push(\n onDateClick(addDays(startMonth, day))}\n >\n
{format(addDays(startMonth, day), dateFormat)}
\n
\n {format(addDays(startMonth, day), dayFormat, formatOption)}\n
\n
\n );\n }\n months.push(\n
\n {format(startMonth, monthFormat, formatOption)}\n
{days}
\n
\n );\n days = [];\n }\n return (\n
\n {months}\n
\n );\n});\n","import * as React from 'react';\nimport styled from 'styled-components';\nimport { Image } from '../UI';\nimport { AppTheme } from '../../settings/appTheme';\n\nexport const PaymentLogos = () => (\n \n {AppTheme.img.payment.logos.map((logo, index) => (\n \n ))}\n \n);\n\ninterface IPaymentLogoProps {\n logoUrl: string;\n title?: string;\n websiteUrl?: string;\n}\n\nexport const PaymentLogo = (props: IPaymentLogoProps) => {\n const { logoUrl, websiteUrl, title } = props;\n const img = (\n \n \n {`Логотип\n \n );\n return websiteUrl ? (\n \n {img}\n \n ) : (\n img\n );\n};\n\nconst LogosWrapper = styled.section`\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: center;\n background: ${(props) => props.theme.colors.text};\n margin: 0 -25px -25px -25px;\n padding: 10px 25px;\n justify-content: space-around;\n`;\n\nconst Picture = styled.picture`\n margin: 10px;\n\n img {\n max-width: 35vw;\n }\n`;\n\nexport default PaymentLogos;\n","import * as PT from '../payment/types';\n\nexport interface ICheckoutCompleteStoreState {\n result: PT.IPaymentCompleteResult;\n}\n\nexport interface ICheckoutStoreState extends PT.IPaymentProcessInfo {\n init: PT.IPaymentInitiateResult;\n process: PT.IPaymentProcessResult;\n complete: ICheckoutCompleteStoreState;\n isRedoing?: boolean;\n isChecking?: boolean;\n}\n\nexport class CheckoutStoreState extends PT.PaymentProcessInfo implements ICheckoutStoreState {\n init: PT.IPaymentInitiateResult;\n process: PT.IPaymentProcessResult;\n complete: ICheckoutCompleteStoreState;\n isRedoing?: boolean;\n isChecking?: boolean;\n\n constructor() {\n super();\n this.init = null;\n this.process = null;\n this.complete = null;\n this.isRedoing = false;\n this.isChecking = false;\n }\n}\n\nexport const enum CheckoutActionTypes {\n CHECKOUT_INITIATE = '@@checkout/INITIATE',\n CHECKOUT_INITIATED = '@@checkout/INITIATED',\n CHECKOUT_PROCESS = '@@checkout/PROCESS',\n CHECKOUT_PROCESSED = '@@checkout/PROCESSED',\n CHECKOUT_COMPLETE = '@@checkout/COMPLETE',\n CHECKOUT_COMPLETED = '@@checkout/COMPLETED',\n CHECKOUT_CLEAR = '@@checkout/CLEAR',\n CHECKOUT_SET_EMAIL = '@@checkout/SET_EMAIL',\n CHECKOUT_REDO = '@@checkout/REDO',\n}\n","import styled from 'styled-components';\n\ninterface IPageHeaderProps {\n diagonal?: boolean;\n stretch?: boolean;\n}\n\nexport const PageHeader = styled('header')`\n padding: 20px 35px;\n display: flex;\n flex-direction: column;\n min-height: 300px;\n max-height: ${(props) => !props.stretch && '50vh'};\n height: ${(props) => !props.stretch && '110vw'};\n align-items: center;\n justify-content: flex-end;\n position: relative;\n\n &:after {\n content: ${(props) => (props.diagonal ? '\"\"' : 'none')};\n position: absolute;\n border-bottom: 110px solid ${(props) => props.theme.colors.bg};\n border-left: ${(props) => props.theme.maxWidth} solid transparent;\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n flex: ${(props) => props.stretch && 1};\n`;\n","import * as React from 'react';\nimport styled from 'styled-components';\nimport dayjs from 'dayjs';\n\nimport i18next from 'i18next';\nimport { Image, PageHeader } from '../UI';\nimport { IProfileTicketStoreState } from '../../store/ticket/ProfileTicketStoreState';\nimport EventInfoItem from './eventInfoItem';\n\ninterface IEventSellHeaderProps {\n ticket: IProfileTicketStoreState;\n}\n\nexport class EventSellHeader extends React.PureComponent {\n constructor(props: IEventSellHeaderProps) {\n super(props);\n }\n\n render() {\n const event = this.props.ticket.event;\n return (\n
\n \n \n {event.title}\n \n \n \n \n {event.venue && (\n \n \n \n )}\n {this.renderTicketsInfo(this.props.ticket)}\n {this.renderPriceInfo(this.props.ticket)}\n \n \n
\n );\n }\n\n private renderTicketsInfo(ticket: IProfileTicketStoreState) {\n if (!ticket || !ticket.ticketQuota) {\n return null;\n }\n const quota = ticket.ticketQuota;\n let title = !!quota.sector ? quota.sector.title : quota.title;\n if (ticket.rowTitle) {\n title += ` ${i18next.t('SellHeader.Row')} ${ticket.rowTitle}`;\n }\n if (ticket.seatTitle) {\n title += ` ${i18next.t('SellHeader.Seat')} ${ticket.seatTitle}`;\n }\n return (\n \n \n \n );\n }\n\n private renderPriceInfo(ticket: IProfileTicketStoreState) {\n if (!ticket || !ticket.ticketQuota) {\n return null;\n }\n\n const commission = ticket.priceComission;\n const comissionDescription = ticket.comissionDescription;\n const percentageComission = ticket.percentageComission;\n const currency = ticket.currency;\n let subtitle =\n commission > 0\n ? `${commission} ${currency} (${comissionDescription} ${percentageComission * 100}% ${i18next.t(\n 'SellHeader.PaidByBuyer'\n )})`\n : '';//i18next.t('SellHeader.NoCommission');\n\n let title = `${ticket.price} ${currency}`;\n return (\n \n \n \n );\n }\n}\n\nconst InfoWrapper = styled.div`\n z-index: 1;\n width: 100%;\n margin-bottom: 4vh;\n`;\n\nconst Title = styled.h1`\n font-size: 36px;\n margin: 0 0 20px 0;\n text-align: center;\n font-family: ${(props) => props.theme.fonts.bolderFont};\n`;\n\nconst Poster = styled(Image as any)`\n position: absolute;\n object-position: 50% 20%;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n`;\n\nconst List = styled.ul`\n list-style-type: none;\n padding: 0;\n margin: 0;\n padding-left: 50px;\n`;\n\nconst ListItem = styled.li`\n &:not(:last-child) {\n margin-bottom: 15px;\n }\n`;\n\nconst Header = styled(PageHeader as any)`\n max-height: 60vh;\n`;\n\nexport default EventSellHeader;\n","import * as React from 'react';\nimport { connect } from 'react-redux';\nimport { withRouter } from 'react-router-dom';\nimport styled from 'styled-components';\n\nimport { AnimatePresence, motion } from 'framer-motion';\nimport { withTranslation } from 'react-i18next';\nimport { IGlobalStoreState } from '../../../store';\nimport { Page, PageContent } from '../../../components/UI';\nimport { AlertType, KeyErrors, SellStatus } from '../../../store/enums';\nimport { getTicketById, sellTicket } from '../../../store/user/actions';\nimport { EmailForm, IEmailForm, PurchaseForm } from '../../../components/forms';\nimport { PopUp } from '../../../store/animations';\nimport { IErrorStoreState } from '../../../store/app/types';\nimport { Utils } from '../../../services';\nimport { EventHelper } from '../../../helpers';\nimport { EventSellHeader } from '../../../components/event/eventSellHeader';\nimport { IProfileTicketStoreState } from '../../../store/ticket/ProfileTicketStoreState';\nimport RouteService from '../../../services/routeService';\nimport { setResultInfo } from '../../../store/resultInformarion/actions';\nimport { ResultInfoType } from '../../../store/resultInformarion/types';\n\ninterface IUserTicketSellDetailsPageProps {\n masterTicketId: string;\n ticketId: string;\n isFinalized: boolean;\n isAuthorized: boolean;\n error: IErrorStoreState;\n\n getTicketById: (masterTicketId: string, ticketId?: string) => Promise;\n sellTicket: (ticketId: string, email: string, price: number) => Promise;\n go: (url: string) => void;\n setResultInfo: (config: ResultInfoType) => void;\n t: (key: string) => string;\n}\n\ninterface IUserTicketSellDetailsPageState {\n ticket: IProfileTicketStoreState;\n errors: any;\n resendInSecs: number;\n email: string;\n}\n\nclass UserTicketSellDetailsPage extends React.Component<\n IUserTicketSellDetailsPageProps,\n IUserTicketSellDetailsPageState\n> {\n private routeSrv = new RouteService();\n\n constructor(props: IUserTicketSellDetailsPageProps) {\n super(props);\n\n this.state = {\n ticket: null,\n errors: null,\n resendInSecs: 0,\n email: null,\n };\n }\n\n componentWillMount() {\n if (this.props.isFinalized) {\n this.initTicket(this.props.masterTicketId, this.props.ticketId);\n }\n }\n\n componentWillReceiveProps(nextProps: IUserTicketSellDetailsPageProps) {\n const isFinalizedChanged = this.props.isFinalized !== nextProps.isFinalized && nextProps.isFinalized;\n const isIdChanged =\n this.props.masterTicketId !== nextProps.masterTicketId || this.props.ticketId !== nextProps.ticketId;\n const isErrorChanged = !Utils.isEqual(this.props.error, nextProps.error);\n if (isIdChanged || isFinalizedChanged) {\n this.initTicket(nextProps.masterTicketId, nextProps.ticketId);\n }\n if (!nextProps.isAuthorized) {\n this.props.go(this.routeSrv.getProfileRoute());\n }\n if (isErrorChanged) {\n this.setState({ errors: { form: nextProps.error } });\n }\n }\n\n render() {\n const ticket = this.state.ticket;\n if (!this.props.isFinalized || !ticket || !ticket.masterTicketId) {\n return null;\n }\n const event = ticket.event;\n const isSale = ticket.status === SellStatus.InitiatedSale;\n const isGetToken = isSale && !!ticket.token;\n return (\n \n {!isGetToken && (\n \n \n \n <>{!this.state.email && this.renderEmailForm()}\n \n \n )}\n {isGetToken && (\n \n \n {this.renderCheckoutContent()}\n \n )}\n \n );\n }\n\n private renderCheckoutContent() {\n return {};\n }\n\n private renderEmailForm() {\n return (\n \n \n \n this.handleEmailFormSubmit(formModel)}\n />\n \n \n );\n }\n\n private initTicket(masterTicketId: string, ticketId?: string) {\n if (!masterTicketId) {\n return;\n }\n this.props.getTicketById(masterTicketId, ticketId).then((ticket) => {\n if (!ticket || !ticket.masterTicketId) {\n this.props.setResultInfo({\n type: AlertType.Error,\n key: KeyErrors.TicketNotFound,\n title: 'Alert.WaitForTheServerToCompleteThePayment',\n });\n this.props.go(this.routeSrv.getResultStatusRoute(AlertType.Error, KeyErrors.TicketNotFound));\n return;\n }\n this.setState({ ticket });\n });\n }\n\n private handleEmailFormSubmit(formModel: IEmailForm) {\n if (formModel) {\n this.props.sellTicket(this.props.ticketId, formModel.email, this.state.ticket.price).then((ticket) => {\n this.setState({ ticket });\n this.props.go(this.routeSrv.getUserTicketSellRoute(ticket.masterTicketId, ticket.ticketId));\n });\n }\n }\n}\n\nconst Content = styled(PageContent as any)`\n padding-top: 0;\n flex: 0;\n min-height: 250px;\n`;\n\nconst Label = styled.h3`\n font-size: 12px;\n margin: 0 0 15px 0;\n text-align: center;\n`;\n\nconst FormWrapper = styled(motion.div)`\n margin-top: 60px;\n`;\n\nconst mapStateToProps = (state: IGlobalStoreState, ownProps: any) => {\n return {\n masterTicketId: ownProps.match && ownProps.match.params && ownProps.match.params.masterTicketId,\n ticketId: ownProps.match && ownProps.match.params && ownProps.match.params.ticketId,\n isFinalized: state.app.isFinalized,\n error: state.app.error,\n isAuthorized: state.app.isAuthorized,\n };\n};\n\nconst mapDispatchToProps = (dispatch: any, ownProps: any) => ({\n getTicketById: (masterTicketId: string, ticketId?: string) => dispatch(getTicketById(masterTicketId, ticketId)),\n sellTicket: (ticketId: string, email: string, price: number) => dispatch(sellTicket(ticketId, email, price)),\n go: ownProps.history.replace,\n setResultInfo: (config: ResultInfoType) => dispatch(setResultInfo(config)),\n});\n\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(withTranslation()(UserTicketSellDetailsPage)));\n","import * as React from 'react';\nimport { FC, useLayoutEffect, useState } from 'react';\nimport styled from 'styled-components';\nimport { useTranslation } from 'react-i18next';\nimport { Button } from './button';\n\ntype NumberInputPropsType = {\n value: number;\n max?: number;\n min?: number;\n postfix?: string;\n\n handleTicketsCount?: (value: number) => void;\n};\n\nconst NumberInput: FC = ({ value, max, min, postfix, handleTicketsCount }) => {\n const [count, setCount] = useState(value);\n const { t } = useTranslation();\n\n const handleDownClick = (e: any) => {\n if (e) {\n e.preventDefault();\n }\n setCount((count) => count - 1);\n };\n\n useLayoutEffect(() => {\n handleTicketsCount(count);\n }, [count]);\n\n const handleUpClick = (e: any) => {\n if (e) {\n e.preventDefault();\n }\n\n setCount((count) => count + 1);\n };\n\n const displayValue = postfix ? `${count} ${t(postfix)}` : count;\n const isMax = max === count;\n const isMin = min === count;\n\n return (\n \n \n {displayValue}\n \n \n );\n};\n\nconst InputWrapper = styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst DisplayValue = styled.label`\n margin: 0;\n padding: 0 10px;\n font-size: 12px;\n font-family: ${(props) => props.theme.fonts.boldFont};\n`;\n\nexport default NumberInput;\n","import * as React from 'react';\nimport styled from 'styled-components';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport { PopUp } from '../../store/animations';\n\ninterface IButtonProps extends React.ButtonHTMLAttributes {\n round?: boolean;\n outline?: boolean;\n copy?: boolean;\n small?: boolean;\n edit?: boolean;\n advertising?: boolean;\n width?: string;\n}\n\ninterface IButtonState {\n active?: boolean;\n hover?: boolean;\n isTouched?: boolean;\n}\n\nexport class Button extends React.Component {\n private mouseUpTimer: any;\n private touchEndTimer: any;\n\n constructor(props: IButtonProps) {\n super(props);\n this.state = {\n active: false,\n hover: false,\n isTouched: false,\n };\n }\n\n componentWillUnmount() {\n clearTimeout(this.mouseUpTimer);\n clearTimeout(this.touchEndTimer);\n }\n\n render() {\n return (\n \n {\n if (this.props.onClick) {\n this.props.onClick(e);\n }\n }}\n onMouseEnter={(e) => this.handleMouseEnter(e)}\n onMouseLeave={(e) => this.handleMouseLeave(e)}\n onMouseDown={(e) => this.handleMouseDown(e)}\n onMouseUp={(e) => this.handleMouseUp(e)}\n onTouchStart={(e) => this.handleTouchStart(e)}\n onTouchEnd={(e) => this.handleTouchEnd(e)}\n >\n {this.props.children}\n \n \n );\n }\n\n private handleMouseEnter(e: any) {\n if (this.props.disabled || this.state.isTouched) {\n return;\n }\n if (e) {\n e.preventDefault();\n }\n this.setState({ hover: true });\n }\n\n private handleMouseLeave(e: any) {\n if (this.props.disabled || this.state.isTouched) {\n return;\n }\n if (e) {\n e.preventDefault();\n }\n this.setState({ hover: false, active: false });\n }\n\n private handleMouseDown(e: any) {\n if (this.props.disabled) {\n return;\n }\n if (e) {\n e.preventDefault();\n }\n this.setState({ active: true });\n }\n\n private handleMouseUp(e: any) {\n if (this.props.disabled) {\n return;\n }\n if (e) {\n e.preventDefault();\n }\n this.mouseUpTimer = setTimeout(() => {\n this.setState({ active: false });\n }, 200);\n }\n\n private handleTouchStart(e: any) {\n if (this.props.disabled) {\n return;\n }\n this.setState({ active: true, hover: false });\n }\n\n private handleTouchEnd(e: any) {\n if (this.props.disabled) {\n return;\n }\n this.touchEndTimer = setTimeout(() => {\n this.setState({ active: false, hover: false, isTouched: true });\n }, 200);\n }\n}\n\nconst StyledButton = styled(motion.button as any)`\n display: inline-block;\n color: ${(props) => {\n let result = props.theme.colors.text;\n if ((props.active || props.hover) && !props.disabled) {\n result = props.theme.colors.text;\n } else if (props.outline) {\n result = props.disabled ? props.theme.colors.accentDisabled : props.theme.colors.accent;\n } else if (props.disabled) {\n result = props.theme.colors.textSecond;\n }\n return `${result} !important`;\n }};\n background-color: ${(props) => {\n let result = props.edit ? props.theme.colors.bg : props.theme.colors.accent;\n if (props.active && !props.disabled && !props.advertising) {\n result = props.theme.colors.accentDimmed;\n } else if (props.hover && !props.disabled) {\n result = '#D4A108';\n } else if (props.outline) {\n result = 'transparent';\n } else if (props.disabled) {\n result = props.theme.colors.accentDisabled;\n } else if (props.advertising) {\n result = props.theme.colors.accent;\n }\n return `${result} !important`;\n }};\n cursor: ${(props) => {\n if (props.disabled) {\n return 'not-allowed';\n } else {\n return 'pointer';\n }\n }};\n transition: background-color 0.2s ease-in;\n transition: color 0.2s ease-in;\n transition: width 0.2s ease-in;\n text-transform: uppercase;\n text-align: center;\n font-size: 14px;\n font-family: ${(props) => (props.round ? props.theme.fonts.fontLighter : props.theme.fonts.boldFont)};\n line-height: 15px;\n position: ${(props) => props.edit && 'absolute'};\n padding: ${(props) => (props.copy || props.small || props.edit ? '0' : props.advertising ? '11px' : '15px')};\n right: ${(props) => props.edit && 0};\n bottom: ${(props) => props.edit && 0};\n width: ${(props) => {\n if (props.copy) {\n return '45px';\n } else if (props.small) {\n return '24px';\n } else if (props.edit) {\n return '35px';\n } else if (props.advertising) {\n return '210px';\n } else {\n return props.width || '100%';\n }\n }};\n height: ${(props) => {\n if (props.copy) {\n return '45px';\n } else if (props.small) {\n return '24px';\n } else if (props.edit) {\n return '35px';\n } else if (props.advertising) {\n return '36px';\n } else {\n return 'unset';\n }\n }};\n border-radius: ${(props) => (props.round ? '50%' : '24px')};\n border: ${(props) => {\n if (props.outline) {\n return `1px solid ${props.disabled ? props.theme.colors.accentDisabled : props.theme.colors.accent}`;\n } else if (props.edit) {\n return `1px solid ${props.theme.colors.text}`;\n } else if (props.advertising) {\n return `1px solid ${props.theme.colors.accent}`;\n } else {\n return 'none';\n }\n }};\n outline: none;\n z-index: ${(props) => props.edit && 1};\n\n &:before {\n content: ${(props) => (props.copy || props.edit) && '\"\"'};\n background: url(${(props) => (props.copy ? props.theme.img.icons.copy : props.theme.img.icons.edit)}) center\n no-repeat;\n width: ${(props) => (props.copy ? '25px' : '20px')};\n height: ${(props) => (props.copy ? '25px' : '20px')};\n display: inline-block;\n background-size: contain;\n filter: ${(props) => props.edit && (props.active || props.hover) && 'brightness(0)'};\n }\n`;\n\nexport default Button;\n","import { Reducer } from 'redux';\n\nimport { ICheckoutStoreState, CheckoutStoreState, CheckoutActionTypes } from './types';\n\nconst checkoutReducer: Reducer = (\n state: ICheckoutStoreState = new CheckoutStoreState(),\n action\n) => {\n switch (action.type) {\n case CheckoutActionTypes.CHECKOUT_INITIATE:\n return { ...state, ...action.payload, process: null, complete: null, isRedoing: false };\n case CheckoutActionTypes.CHECKOUT_INITIATED:\n return { ...state, init: action.payload, process: null, complete: null, isRedoing: false };\n case CheckoutActionTypes.CHECKOUT_PROCESS:\n return { ...state, ...action.payload, complete: null, isRedoing: false };\n case CheckoutActionTypes.CHECKOUT_PROCESSED:\n return { ...state, process: action.payload, complete: null, isRedoing: false };\n case CheckoutActionTypes.CHECKOUT_COMPLETE:\n return {\n ...state,\n complete: { ...state.complete, ...action.payload, isRedoing: false },\n isChecking: true,\n };\n case CheckoutActionTypes.CHECKOUT_COMPLETED:\n return {\n ...state,\n complete: { ...state.complete, result: action.payload, isRedoing: false },\n isChecking: false,\n };\n case CheckoutActionTypes.CHECKOUT_CLEAR:\n return new CheckoutStoreState();\n case CheckoutActionTypes.CHECKOUT_SET_EMAIL:\n return { ...state, email: action.payload };\n case CheckoutActionTypes.CHECKOUT_REDO:\n return { ...state, isRedoing: true };\n default:\n return state;\n }\n};\n\nexport default checkoutReducer;\n","export interface IAppSettingsState {\n showLogo: boolean;\n useNewDashboard: boolean;\n showIntercom: boolean;\n showDashboardDatepicker: boolean;\n showDashboardPopularEvents: boolean;\n showDashboardCategories: boolean;\n showDashboardPopularTours: boolean;\n showDashboardEventsByCategories: boolean;\n dashboardCarouselColumnEventCount: number;\n dashboardCarouselEventCount: number;\n bookSchemeZoomFactor: number;\n bookSchemeMaxZoom: number;\n bookSchemeMinZoom: number;\n}\n\nexport class AppSettingsState implements IAppSettingsState {\n showLogo: boolean;\n useNewDashboard: boolean;\n showIntercom: boolean;\n showDashboardDatepicker: boolean;\n showDashboardPopularEvents: boolean;\n showDashboardCategories: boolean;\n showDashboardPopularTours: boolean;\n showDashboardEventsByCategories: boolean;\n dashboardCarouselColumnEventCount: number;\n dashboardCarouselEventCount: number;\n bookSchemeZoomFactor: number;\n bookSchemeMaxZoom: number;\n bookSchemeMinZoom: number;\n\n constructor(dto?: any) {\n this.showLogo = dto && dto.ShowLogo ? dto.ShowLogo : false;\n this.useNewDashboard = dto && dto.UseNewDashboard ? dto.UseNewDashboard : false;\n this.showIntercom = dto && dto.ShowIntercom ? dto.ShowIntercom : false;\n this.showDashboardDatepicker = dto && dto.ShowDashboardDatepicker ? dto.ShowDashboardDatepicker : false;\n this.showDashboardPopularEvents = dto && dto.ShowDashboardPopularEvents ? dto.ShowDashboardPopularEvents : false;\n this.showDashboardCategories = dto && dto.ShowDashboardCategories ? dto.ShowDashboardCategories : false;\n this.showDashboardPopularTours = dto && dto.ShowDashboardPopularTours ? dto.ShowDashboardPopularTours : false;\n this.showDashboardEventsByCategories =\n dto && dto.ShowDashboardEventsByCategories ? dto.ShowDashboardEventsByCategories : false;\n this.dashboardCarouselColumnEventCount =\n dto && dto.DashboardCarouselColumnEventCount ? dto.DashboardCarouselColumnEventCount : 0;\n this.dashboardCarouselEventCount = dto && dto.DashboardCarouselEventCount ? dto.DashboardCarouselEventCount : 0;\n this.bookSchemeZoomFactor = dto && dto.BookSchemeZoomFactor ? dto.BookSchemeZoomFactor : 0.1;\n this.bookSchemeMaxZoom = dto && dto.BookSchemeMaxZoom ? dto.BookSchemeMaxZoom : 3;\n this.bookSchemeMinZoom = dto && dto.BookSchemeMinZoom ? dto.BookSchemeMinZoom : 0.5;\n }\n}\n\nexport const enum AppSettingsActionTypes {\n APP_SETTINGS_INIT = '@@app/INIT',\n}\n","import { AppTheme } from '../../settings/appTheme';\nimport RouteService from '../../services/routeService';\n\nconst routeSrv = new RouteService();\nconst baseUrl = routeSrv.getBaseUrl().replace('.by', '.live');\n\nexport default `\n@font-face {\n font-family: Intro;\n src: url(${baseUrl}/content/fonts/Intro-Regular.otf);\n}\n@font-face {\n font-family: Intro-Book;\n src: url(${baseUrl}/content/fonts/Intro-Book.otf);\n font-weight: normal;\n}\n@font-face {\n font-family: Intro-Bold;\n src: url(${baseUrl}/content/fonts/Intro-Bold.otf);\n font-weight: normal;\n}\n@font-face {\n font-family: Intro-Black;\n src: url(${baseUrl}/content/fonts/Intro-Black.otf);\n font-weight: normal;\n}\n@font-face {\n font-family: Intro-Light;\n src: url(${baseUrl}/content/fonts/Intro-Light.otf);\n font-weight: normal;\n}\nbody#iframe .payment-page,\nbody#iframe .payment-methods {\n background: ${AppTheme.colors.bg};\n font-family: ${AppTheme.fonts.regularFont};\n}\nbody#iframe .content,\nbody#iframe .payment-page .payment-method {\n margin: 0;\n}\nbody#iframe .payment-methods {\n border: none;\n}\nbody#iframe .content #request .submit-button,\nbody#iframe .content .credit-card {\n padding: 0;\n}\nbody#iframe .content .credit-card {\n margin-bottom: 85px;\n}\nbody#iframe .content .credit-card .credit-card-icon,\nbody#iframe .content .credit-card .card-holder-icon,\nbody#iframe .content .credit-card .exp-date label,\nbody#iframe .content .credit-card .verification-value label,\nbody#iframe .test-payment,\nbody#iframe #logos-container #logos * {\n display: none;\n}\nbody#iframe .content .credit-card .input input {\n font-family: ${AppTheme.fonts.regularFont};\n color: ${AppTheme.colors.text};\n font-size: 12px;\n}\nbody#iframe .content .credit-card .input input::placeholder {\n opacity: 0.5;\n font-size: 12px;\n}\nbody#iframe .content .credit-card .input input.error {\n color: ${AppTheme.colors.error};\n border-color: ${AppTheme.colors.error};\n font-size: 12px;\n}\nbody#iframe .content .credit-card .input input {\n padding: 15px 20px;\n margin-left: 0px;\n border: 1px solid ${AppTheme.colors.text};\n border-radius: 24px;\n margin-bottom: 15px;\n background: transparent;\n}\nbody#iframe .content .credit-card .input input:focus {\n border-color: ${AppTheme.colors.accent};\n color: ${AppTheme.colors.text};\n}\nbody#iframe .content .credit-card .exp-date,\nbody#iframe .content .credit-card .verification-value {\n width: 50%;\n}\nbody#iframe .content .credit-card .exp-date input,\nbody#iframe .content .credit-card .verification-value input {\n width: calc(100% - 5px);\n}\nbody#iframe .content #request .submit-button .pure-button {\n background: none;\n}\nbody#iframe .content #request .submit-button input[type=submit] {\n padding: 15px;\n text-transform: uppercase;\n font-size: 14px;\n background: ${AppTheme.colors.accent};\n color: ${AppTheme.colors.text};\n border-radius: 24px;\n font-family: ${AppTheme.fonts.boldFont};\n cursor: pointer;\n}\nbody#iframe .content #request .submit-button input[type=submit]:disabled {\n background: ${AppTheme.colors.accentDisabled};\n color: ${AppTheme.colors.textSecond};\n cursor: not-allowed;\n}\nbody#iframe .content #request .submit-button input[type=submit]:enabled:hover {\n background: #D4A108;\n}\nbody#iframe .content #request .submit-button input[type=submit]:enabled:focus {\n opacity: 1;\n}\nbody#iframe .content #request .submit-button input[type=submit]:enabled:active {\n background-color: ${AppTheme.colors.accentDimmed};\n opacity: 1;\n}\nbody#iframe .credentials {\n display: none;\n}\nbody#iframe .credentials img {\n filter: invert(1);\n}\nbody#iframe #logos-container {\n display: none;\n}\nbody#iframe #logos-container #logos {\n display: block;\n margin: 0 auto;\n background: url(${routeSrv.getBaseUrl()}${AppTheme.img.payment.formLogos}) center no-repeat;\n background-size: contain;\n height: 40px;\n margin-top: 15px;\n}\n`;\n","import { useCallback } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { useHistory } from 'react-router';\nimport { isEmpty } from 'lodash';\nimport EventHelper from './eventHelper';\nimport { AppSettings } from '../settings/appSettings';\nimport { IBookStoreState } from '../store/book/types';\nimport { AlertType, BookStatus, Pages } from '../store/enums';\nimport { store } from '../index';\nimport { Routes } from '../store/routes';\nimport { IUserStoreState } from '../store/user/types';\n\nexport const useRoutesHelper = () => {\n const dispatch = useDispatch();\n const history = useHistory();\n\n const changeDomainTopLevel = (domainTopLevel: string, hostName: string): string => {\n const parseHostName = hostName.split('.');\n const hostDomainToplevel = parseHostName[parseHostName.length - 1];\n return `${location.protocol}//${hostName.replace(hostDomainToplevel, domainTopLevel)}`;\n };\n\n const handleEventLink = (eventDomainTypes, callback) => {\n const domain = location.host;\n\n if (domain.includes(AppSettings.LOCALHOST)) {\n history.push(callback);\n return;\n }\n\n const { getDomainType, getDomainTopLevel } = EventHelper;\n const sortEventDomainTypes = eventDomainTypes.sort((a, b) => a - b);\n\n const domainType = getDomainType(domain);\n const isDomainExist = sortEventDomainTypes.includes(domainType);\n\n if (isDomainExist || isEmpty(eventDomainTypes)) {\n history.push(callback);\n return;\n }\n\n const [firstDomain] = eventDomainTypes;\n const domainName = getDomainTopLevel(firstDomain);\n const changedDomain = changeDomainTopLevel(domainName, domain);\n open(`${changedDomain}${callback}`);\n };\n\n const backRoute = () => {\n const isEventDetailsPage = isActivePage(Pages.EventDetails);\n if (history.length === 1 && isEventDetailsPage) {\n location.replace(location.origin);\n return;\n }\n history.goBack();\n };\n\n const getBookRoute = useCallback(\n (\n eventSlug: string,\n quotaId?: string,\n sectorSlug?: string,\n rowSlug?: string,\n tickets?: number,\n sell = false\n ): string => {\n const page = `/${sell ? Pages.Sell : Pages.Book}/${eventSlug}`;\n const quota = !!quotaId ? `/${quotaId}` : '';\n const sector = !!sectorSlug ? `/${sectorSlug}` : '';\n const sectorRow = !!sector && !!rowSlug ? `/${rowSlug}` : '';\n const ticketsCount = !!sector && !sectorRow && !!tickets ? `/${tickets}` : '';\n return page + sector + quota + sectorRow + ticketsCount;\n },\n []\n );\n\n const getBookRouteFromBook = (book: IBookStoreState, sell = false): string => {\n if (!book || !book.event) {\n return null;\n }\n return getBookRoute(book.event.slug, null, book.sectorSlug, null, null, sell);\n };\n\n const getCheckoutRouteFromBook = (book: IBookStoreState): string => `${getBookRouteFromBook(book)}/${Pages.Checkout}`;\n\n const getBookResultRoute = (status: BookStatus = null): string => `/${Pages.Book}/${Pages.BookResult}/${status}`;\n\n const getRouteData = (): string[] => {\n const routeData = window.location.pathname.split('/');\n return routeData.filter((routeSegment) => !!routeSegment);\n };\n\n const getWidgetToken = (): string => {\n const routeData = getRouteData();\n const [widget, , slug] = routeData;\n let token = '';\n switch (widget) {\n case Pages.Widget:\n token = slug;\n break;\n default:\n token = '';\n break;\n }\n return token;\n };\n\n const getWidgetBookResultRoute = (status: BookStatus = null, token: string): string => {\n return `/${Pages.Widget}/${Pages.Book}/${token}/${Pages.BookResult}/${status}`;\n };\n\n const isActivePage = useCallback((pageName: string, subPageName?: string, options?: Array): boolean => {\n if (window.location && window.location.pathname) {\n const routeData = window.location.pathname.substr(1).split('/');\n if (routeData.length) {\n const [currentPageName, currentSubPageName] = routeData;\n\n const isCurrentPage = pageName.toLowerCase().replace('/', '') === currentPageName.toLowerCase();\n\n if (!!subPageName) {\n const isCurrentSubPage =\n !!currentSubPageName && subPageName.toLowerCase() === currentSubPageName.toLowerCase();\n\n if (!!options) {\n let isCurrentOptionsPage = true;\n options.forEach((o) => {\n const isExistOpt = routeData.indexOf(o) > -1;\n if (!isExistOpt) {\n isCurrentOptionsPage = false;\n }\n });\n return isCurrentPage && isCurrentSubPage && isCurrentOptionsPage;\n }\n return isCurrentPage && isCurrentSubPage;\n }\n return isCurrentPage;\n }\n }\n return false;\n }, []);\n\n const getProfileRoute = useCallback((): string => {\n const state = store.getState();\n const isAuthorized = state.app.isAuthorized && state.user && state.user.email;\n\n if (isAuthorized && !state.user.phoneNumberConfirmed) {\n return Routes.EditProfile;\n } else if (isAuthorized) {\n return Routes.Profile;\n } else {\n return Routes.Login;\n }\n }, []);\n\n const getEventRoute = useCallback((eventSlug: string): string => {\n return `/${Pages.EventDetails}/${eventSlug}`;\n }, []);\n\n const getBaseUrl = (): string => location.origin || `${location.protocol}//${location.host}`;\n\n const getHostReferralUrl = (eventDomainTypes) => {\n const domain = location.host;\n\n const { getDomainType, getDomainTopLevel } = EventHelper;\n const domainType = getDomainType(domain);\n\n const isDomainExist = eventDomainTypes.includes(domainType);\n\n if (domain.includes(AppSettings.LOCALHOST) || isDomainExist || isEmpty(eventDomainTypes)) {\n return getBaseUrl();\n }\n\n const [firstDomain] = eventDomainTypes;\n const domainName = getDomainTopLevel(firstDomain);\n return changeDomainTopLevel(domainName, domain);\n };\n\n const generateReferralUrl = (\n user: IUserStoreState,\n domainTypes: number[],\n eventSlug?: string,\n sectorSlug?: string,\n rowSlug?: string,\n tickets?: number\n ): string =>\n `${getHostReferralUrl(domainTypes)}/${Pages.Referral}/${user.referralSlug}${eventSlug ? `/${eventSlug}` : ''}${\n !!eventSlug && !!sectorSlug ? `/${sectorSlug}` : ''\n }${!!eventSlug && !!sectorSlug && !!rowSlug ? `/${rowSlug}` : ''}${\n !!eventSlug && !!sectorSlug && !rowSlug && !!tickets ? `/${tickets}` : ''\n }`;\n\n const getResultStatusRoute = useCallback((status, key) => {\n const isSuccess = status !== AlertType.Error;\n\n return `${isSuccess ? Routes.Success : Routes.Failed}/${key}`;\n }, []);\n\n const getWidgetResultStatusRoute = useCallback((status, key) => {\n const isSuccess = status !== AlertType.Error;\n\n return `/${Pages.Widget}/${isSuccess ? Pages.Success : Pages.Failed}/${key}`;\n }, []);\n\n const getWidgetCheckoutRouteFromBook = (book: IBookStoreState, token: string): string => {\n if (!book || !book.event) return null;\n return `/${Pages.Widget}/${Pages.Book}/${token}/${Pages.Checkout}`;\n };\n\n const getWidgetRouteFromToken = (token: string): string => {\n if (!token) return null;\n return `/${Pages.Widget}/${Pages.Book}/${token}`;\n };\n\n const getUserTicketsRoute = useCallback(() => `/${Pages.User}/${Pages.UserTickets}`, []);\n\n const getUserTicketPurchaseRoute = useCallback((masterTicketId: string, ticketId: string): string => {\n return `${getUserTicketsRoute()}/purchase/${masterTicketId}/${ticketId}`;\n }, []);\n\n const getUserTicketRoute = useCallback((masterTicketId: string, ticketId: string): string => {\n return `${getUserTicketsRoute()}/${masterTicketId}/${ticketId}`;\n }, []);\n\n const getUserTicketSellRoute = useCallback((masterTicketId: string, ticketId: string): string => {\n return `${getUserTicketsRoute()}/sell/${masterTicketId}/${ticketId}`;\n }, []);\n\n return {\n handleEventLink,\n changeDomainTopLevel,\n backRoute,\n getCheckoutRouteFromBook,\n getBookResultRoute,\n getWidgetToken,\n getWidgetBookResultRoute,\n isActivePage,\n getProfileRoute,\n getBookRoute,\n getEventRoute,\n getBaseUrl,\n generateReferralUrl,\n getResultStatusRoute,\n getWidgetCheckoutRouteFromBook,\n getWidgetRouteFromToken,\n getWidgetResultStatusRoute,\n getUserTicketRoute,\n getUserTicketSellRoute,\n getUserTicketPurchaseRoute,\n getUserTicketsRoute,\n };\n};\n","import React, { useCallback, useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useHistory, useParams } from 'react-router';\n\nimport { IGlobalStoreState } from '../../../store';\nimport { IEventStoreState, ISeatStoreState, SeatStoreState } from '../../../store/event/types';\nimport { IVenueSectorStoreState } from '../../../store/ticket/types';\nimport { getWidgetEvent } from '../../../store/event/actions';\nimport { Page, PageContent } from '../../../components/UI';\nimport { PlaceSelector, SchemaSectorSelector } from '../../../components/book';\nimport { clearBook, initBook } from '../../../store/book/actions';\nimport { EventHelper } from '../../../helpers';\nimport { IBookStoreState } from '../../../store/book/types';\nimport { AlertType, KeyErrors } from '../../../store/enums';\nimport { hideAdButton } from '../../../store/header/actions';\nimport { useTranslation } from 'react-i18next';\nimport { setResultInfo } from '../../../store/resultInformarion/actions';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\nimport { TicketsCountSelector } from './widgetComponents/ticketsCountSelector';\nimport { WidgetFooter } from './widgetComponents/widgetFooter';\n\nconst WidgetBookPage = () => {\n const dispatch = useDispatch();\n const { t } = useTranslation();\n const history = useHistory();\n\n const event = useSelector((state) => state.book.event);\n const isLoading = useSelector((state) => state.app.isLoading);\n const book = useSelector((state) => state.book);\n const isRedirection = useSelector((state) => state.app.isRedirection);\n\n const [isCheckoutInitiating, setIsCheckoutInitiating] = useState(false);\n const [seats, setSeats] = useState([]);\n const [sectorSlug, setSectorSlug] = useState(null);\n const [quotaId, setQuotaId] = useState(null);\n const [showSeatsSelector, setShowSeatsSelector] = useState(false);\n\n const { getResultStatusRoute } = useRoutesHelper();\n const { token } = useParams<{ token: string }>();\n\n useEffect(() => {\n initEvent(token);\n dispatch(hideAdButton);\n }, []);\n\n const handleTicketsCount = useCallback(\n (count: number) => {\n let filteredSeatsByQuotaId = seats.filter((s) => s.quotaId !== quotaId);\n for (let index = 0; index < count; index++) {\n const sector = event.sectors.find((x) => x.slug === sectorSlug);\n filteredSeatsByQuotaId = [...filteredSeatsByQuotaId, new SeatStoreState(quotaId, sectorSlug, sector.title)];\n }\n setSeats(filteredSeatsByQuotaId);\n },\n [seats, event?.slug]\n );\n\n const renderPlaceSelector = (event: IEventStoreState, sector: IVenueSectorStoreState) => {\n if (!event || !sector) return null;\n return (\n \n handlePlaceSelect(quotaId, sectorSlug, rowSlug, seatSlug)\n }\n />\n );\n };\n\n const handleSchemaSectorSelect = (sectorSlug: string) => {\n setSectorSlug(sectorSlug);\n setShowSeatsSelector(false);\n const sector = event && event.sectors && event.sectors.find((x) => x.slug === sectorSlug);\n const quota = sector && sector.ticketQuotas[0];\n if (quota !== null) {\n setQuotaId(quota.id);\n }\n setShowSeatsSelector(true);\n };\n\n const handlePlaceSelect = (quotaId: number, sectorSlug: string, rowSlug: string, seatSlug: string) => {\n if (seats.some((s) => s.sectorSlug === sectorSlug && s.rowSlug === rowSlug && s.seatSlug === seatSlug)) {\n const seatsFiltered = seats.filter(\n (s) => s.sectorSlug !== sectorSlug || s.rowSlug !== rowSlug || s.seatSlug !== seatSlug\n );\n setSeats(seatsFiltered);\n return;\n }\n const sector = event.sectors.find((x) => x.slug === sectorSlug);\n book.event.maxPurchase > seats.length\n ? setSeats([...seats, new SeatStoreState(quotaId, sectorSlug, sector.title, rowSlug, seatSlug)])\n : seats;\n return;\n };\n\n const initEvent = useCallback(\n (token: string) => {\n (async () => dispatch(getWidgetEvent(token)))().then((event: any) => {\n if (!event || !event.slug) {\n dispatch(clearBook());\n dispatch(\n setResultInfo({\n type: AlertType.Error,\n key: KeyErrors.EventNotFound,\n title: 'Alert.SomethingWentWrong',\n message: 'Alert.CheckLinkNoEventFound',\n })\n );\n history.replace(getResultStatusRoute(AlertType.Error, KeyErrors.EventNotFound));\n return;\n }\n dispatch(clearBook());\n dispatch(initBook(event));\n });\n },\n [token]\n );\n\n if (isRedirection || isLoading || !event || isCheckoutInitiating) return null;\n\n const sector = event && event.sectors && event.sectors.find((x) => x.slug === sectorSlug);\n const isInteractiveSchema = !!sector && !!sector.schema;\n\n let posterUrl = event.optionPosterUrl;\n if (posterUrl === '') {\n posterUrl = event.posterUrl;\n }\n\n return (\n \n \n {\n handleSchemaSectorSelect(sectorSlug)}\n />\n }\n {isInteractiveSchema && showSeatsSelector && renderPlaceSelector(event, sector)}\n {!isInteractiveSchema && (\n \n )}\n \n \n \n );\n};\n\nexport default WidgetBookPage;\n","import { BaseApiService } from '../baseApiService';\nimport {\n IChangePasswordInfo,\n IResetPasswordConfirmInfo,\n IUpdateUserStoreState,\n IUserRegistrationStoreState,\n IUserStoreState,\n UserStoreState,\n} from '../../store/user/types';\nimport { ActionResponseStoreState, IActionResponseStoreState } from '../../store/app/types';\nimport { AuthStoreState, IAuthStoreState } from '../../store/auth/types';\nimport { RequestType } from '../../store/enums';\n\nexport class AccountApiService extends BaseApiService {\n private static _instance: AccountApiService;\n\n constructor(config?: any) {\n if (typeof AccountApiService._instance === 'undefined') {\n super(config);\n AccountApiService._instance = this;\n }\n return AccountApiService._instance;\n }\n\n public async registerAccount(model: IUserRegistrationStoreState): Promise {\n const response = await this.post('/signup', model, RequestType.signup);\n return new ActionResponseStoreState(response.data);\n }\n\n public async getCurrentAccount(): Promise {\n const response = await this.get('/me');\n return new UserStoreState(response.data);\n }\n\n public async updatePhone(phoneNumber: string): Promise {\n const response = await this.post('/phone', { phoneNumber });\n return new ActionResponseStoreState(response.data);\n }\n\n public async confirmPhone(code: string, phoneNumber: string): Promise {\n const response = await this.post('/confirmphone', { code, phoneNumber }, null, RequestType.confirmPhone);\n return Promise.resolve();\n }\n\n public async updateCurrentAccount(model: IUpdateUserStoreState): Promise {\n const response = await this.post('/me', model);\n return new UserStoreState(response.data);\n }\n\n public async resetPassword(email: string, returnUrl: string): Promise {\n const response = await this.post('/resetpassword', { email, returnUrl });\n return new ActionResponseStoreState(response.data);\n }\n\n public async confirmResetPassword(model: IResetPasswordConfirmInfo): Promise {\n const response = await this.post('/confirmresetpassword', model);\n return new AuthStoreState(response.data);\n }\n\n public async changePassword(model: IChangePasswordInfo): Promise {\n const response = await this.post('/changepassword', model);\n return new ActionResponseStoreState(response.data);\n }\n}\n","import React, { FC } from 'react';\nimport styled from 'styled-components';\nimport { Helmet } from 'react-helmet';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport { PopUp } from '../../../store/animations';\nimport { useUtils } from '../../../services/useUtils';\n\ntype PagePropsType = {\n bg?: any;\n fullsize?: boolean;\n isForm?: boolean;\n title?: string;\n description?: string;\n keywords?: Array;\n imageUrl?: string;\n children: React.ReactNode;\n};\n\nexport const Page: FC = ({ isForm, description, keywords, title, children, bg, imageUrl, fullsize }) => {\n const { toPageTitle, toMetaKeywords } = useUtils();\n\n const renderMeta = () => (\n \n {toPageTitle(title)}\n \n {description && }\n {description && }\n {keywords && }\n {imageUrl && }\n \n );\n\n return (\n \n \n {renderMeta()}\n {bg && (\n \n \n \n \n )}\n {isForm && {children}}\n {!isForm && children}\n \n \n );\n};\n\nconst Container = styled(motion.main)`\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 100%;\n padding-top: ${(props) => props.fullsize && '60px'};\n position: relative;\n`;\n\nconst AnimatedContainer = (props) => (\n \n);\n\nconst AnimatedForm = ({ hostRef, children }: any) =>
{children}
;\n\nconst Form = styled.form`\n display: flex;\n flex-direction: column;\n flex: 1;\n`;\n\nconst Background = styled.img`\n position: fixed;\n top: 0;\n bottom: 0;\n width: 100%;\n max-width: ${(props) => props.theme.maxWidth};\n height: 100%;\n object-fit: cover;\n object-position: center;\n`;\n","import i18n from 'i18next';\nimport LanguageDetector from 'i18next-browser-languagedetector';\nimport { initReactI18next } from 'react-i18next';\nimport Backend from 'i18next-http-backend';\nimport { AppSettings } from './settings/appSettings';\nimport dayjs from 'dayjs';\nimport { EventHelper } from './helpers/eventHelper';\nimport { DomainType } from './store/enums';\n\ni18n\n .use(Backend)\n .use(LanguageDetector)\n .use(initReactI18next)\n .init(\n {\n fallbackLng: 'en',\n preload: ['en', 'ru'],\n ns: ['translation'],\n defaultNS: 'translation',\n supportedLngs: ['en', 'ru'],\n debug: AppSettings.IS_DEV,\n backend: {\n loadPath: `${AppSettings.BASE_API_URL}/share/locales/{{lng}}/{{ns}}.json`,\n },\n react: {\n wait: true,\n useSuspense: true,\n },\n },\n (err) => {\n if (err && AppSettings.IS_DEV) {\n return console.error(err);\n }\n }\n );\n\nconst isDomainRu = EventHelper.getDomainType(window.location.host) === DomainType.Ru;\n if(isDomainRu){\n i18n.changeLanguage('ru');\n dayjs.locale('ru')\n } else {\n i18n.changeLanguage('en');\n dayjs.locale('en')\n }\n\nexport default i18n;\n","import { BaseApiService } from '../baseApiService';\nimport {\n IBoughtTicketInfo,\n IIssueTicketInfo,\n ISellTicketInfo,\n ITicketStoreState,\n TicketStoreState,\n} from '../../store/ticket/types';\nimport { IProfileTicketStoreState, ProfileTicketStoreState } from '../../store/ticket/ProfileTicketStoreState';\nimport { RequestType } from '../../store/enums';\n\nexport class TicketsApiService extends BaseApiService {\n private static _instance: TicketsApiService;\n\n constructor(config?: any) {\n if (typeof TicketsApiService._instance === 'undefined') {\n super(config);\n TicketsApiService._instance = this;\n }\n return TicketsApiService._instance;\n }\n\n public async issueTicket(model: IIssueTicketInfo): Promise {\n const response = await this.post(`/issue`, model);\n return new TicketStoreState(response.data);\n }\n\n public async sellTicket(model: ISellTicketInfo): Promise {\n const response = await this.post(`/sell`, model);\n return new TicketStoreState(response.data);\n }\n\n public async boughtTicket(model: IBoughtTicketInfo): Promise {\n const response = await this.post(`/buy`, model);\n return new TicketStoreState(response.data);\n }\n\n public async cancelSellTicket(ticketId: string): Promise {\n const response = await this.post(`/cancelSell/${ticketId}`);\n return new ProfileTicketStoreState(response.data);\n }\n\n public async resendTicket(ticketId: string): Promise {\n // await this.post('/resend', { ticketId });\n }\n\n public async getUserTickets(): Promise> {\n const response = await this.get('/my', {}, RequestType.userTickets);\n return response.data && response.data.Tickets\n ? response.data.Tickets.map((item) => new ProfileTicketStoreState(item))\n : [];\n }\n}\n","import React, { FC } from 'react';\nimport { Box, Grid, Skeleton } from '@mui/material';\nimport { makeStyles } from 'tss-react/mui';\n\nconst useStyles = makeStyles()(() => ({\n box: {\n overflow: 'scroll',\n height: '280px',\n },\n gridList: {\n flexWrap: 'nowrap',\n // Promote the list into his own layer on Chrome. This cost memory but helps keeping high FPS.\n transform: 'translateZ(0)',\n },\n gridTile: {\n height: '100%',\n },\n skeletonImage: {\n height: '170px',\n width: '240px',\n borderRadius: '10px',\n },\n skeletonText: {\n height: 20,\n marginTop: '10px',\n },\n}));\n\nexport const SkeletonEventCarousel: FC = ({ skeletonCount }) => {\n const { classes } = useStyles();\n\n return (\n \n \n {Array.from(new Array(skeletonCount)).map((value, index) => (\n \n \n \n \n \n \n \n \n \n \n \n \n \n ))}\n \n \n );\n};\n\ntype SkeletonEventCarouselType = {\n skeletonCount: number;\n};\n","import * as React from 'react';\nimport styled from 'styled-components';\n\nimport { ICheckboxSelectorItem, CheckboxSelectorItem } from './checkboxSelectorItem';\nimport { Label } from '../label';\n\ninterface ICheckboxSelectorProps {\n title?: string;\n subtitle?: string;\n items: ICheckboxSelectorItem[];\n\n onSelect?: (value: string) => void;\n}\n\nexport const CheckboxSelector = (props: ICheckboxSelectorProps) => {\n if (!props.items || !props.items.length) {\n return null;\n }\n\n const handleSelect = (value: string) => {\n if (props.onSelect) {\n props.onSelect(value);\n }\n };\n\n return (\n \n {props.title && {props.title}}\n {props.subtitle && {props.subtitle}}\n {props.items.map((item, index) => (\n handleSelect(value)} />\n ))}\n \n );\n};\n\nconst Container = styled.ul`\n margin: 0;\n padding: 0;\n list-style: none;\n`;\n\nconst Title = styled(Label as any)``;\n\nconst Subtitle = styled(Title as any)`\n display: block;\n`;\n","import { action } from 'typesafe-actions';\nimport { Dispatch } from 'redux';\n\nimport { IEventStoreState, EventActionTypes } from './types';\nimport { ThunkService } from '../../services';\nimport { IGlobalStoreState } from '..';\nimport { showSpinner, hideSpinner } from '../app/actions';\nimport { IEventDetailsStoreState } from './eventDetails/EventDetailsStoreState';\n\nconst initEvents = (events: Array) => action(EventActionTypes.EVENTS_INIT, events);\n\nexport const getEvents =\n (city: string) =>\n async (\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n ): Promise> => {\n dispatch(showSpinner());\n const events = await thunkService.api.events.getEvents(city);\n dispatch(initEvents(events));\n dispatch(hideSpinner());\n return Promise.resolve(events);\n };\n\nexport const getWidgetEvent =\n (\n token: string\n ): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n ) => Promise) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(showSpinner());\n const event = await thunkService.api.widget.getWidgetEvent(token);\n dispatch(hideSpinner());\n return Promise.resolve(event);\n };\n\nexport const getEventById =\n (\n slug: string,\n distributorSlug?: string,\n token?: string\n ): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n ) => Promise) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n const state = getState();\n if (state.distribution) {\n distributorSlug = state.distribution.distributorSlug || distributorSlug;\n }\n if (state.book.token) {\n token = state.book.token || token;\n }\n dispatch(showSpinner());\n const event = await thunkService.api.events.getEventById(slug, distributorSlug, token);\n dispatch(hideSpinner());\n return Promise.resolve(event);\n };\n\nexport const getSellEventDetails =\n (\n slug: string\n ): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n ) => Promise) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(showSpinner());\n const event = await thunkService.api.events.getSellEventDetails(slug);\n dispatch(hideSpinner());\n return Promise.resolve(event);\n };\n\nexport const getEventDetailsBySlug =\n (\n slug: string,\n distributorSlug?: string,\n token?: string\n ): ((\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n ) => Promise) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n const state = getState();\n if (state.distribution) {\n distributorSlug = state.distribution.distributorSlug || distributorSlug;\n }\n if (state.book.token) {\n token = state.book.token || token;\n }\n dispatch(showSpinner());\n const event = await thunkService.api.events.getEventDetailsBySlug(slug, distributorSlug, token);\n dispatch(hideSpinner());\n return Promise.resolve(event);\n };\n\nexport const startDistribute =\n (\n slug: string\n ): ((dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => Promise) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(showSpinner());\n await thunkService.api.events.startDistribute(slug);\n dispatch(hideSpinner());\n return Promise.resolve();\n };\n\nexport const stopDistribute =\n (\n slug: string\n ): ((dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => Promise) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState, thunkService: ThunkService) => {\n dispatch(showSpinner());\n await thunkService.api.events.stopDistribute(slug);\n dispatch(hideSpinner());\n return Promise.resolve();\n };\n","import React, { FC } from 'react';\nimport styled from 'styled-components';\nimport * as Yup from 'yup';\nimport { Field, Form, Formik } from 'formik';\n\nimport { useTranslation } from 'react-i18next';\nimport { AnimatePresence } from 'framer-motion';\nimport { Button, TextInput } from '../UI';\nimport { FieldError, Fieldset, FieldWrapper, FormError, FormInfo, IBaseFormProps } from './commonForm';\nimport { PopUp } from '../../store/animations';\n\nexport interface IEmailForm {\n email: string;\n emailConfirm: string;\n}\n\ninterface IEmailFormProps extends IBaseFormProps {\n email?: string;\n warning?: string;\n emailPlaceholder?: string;\n emailConfirmPlaceholder?: string;\n}\n\nexport const EmailForm: FC = ({\n email,\n emailPlaceholder,\n emailConfirmPlaceholder,\n warning,\n errors,\n onSubmit,\n submitTitle,\n}) => {\n const { t } = useTranslation();\n\n const validationSchema = Yup.object().shape({\n email: Yup.string().required(t('EmailForm.EmailRequired')).email(t('EmailForm.EmailIncorrect')),\n emailConfirm: Yup.mixed().test(\n 'match',\n t('EmailForm.EmailsDoNotMatch'),\n (emailConfirm, context) => emailConfirm === context.parent.email\n ),\n });\n\n return (\n {\n if (onSubmit) {\n onSubmit(values);\n }\n }}\n >\n {({ isValid, handleChange, handleBlur, values, isSubmitting }) => (\n \n \n \n {({ field, form }) => (\n \n \n \n \n {!!form.touched.email && !!form.errors && !!form.errors.email && (\n \n {form.errors.email}\n \n )}\n \n \n \n )}\n \n \n {({ field, form }) => (\n \n \n {\n if (e) {\n e.preventDefault();\n e.stopPropagation();\n }\n }}\n error={!!form.touched.emailConfirm && !!form.errors && !!form.errors.emailConfirm}\n />\n \n {!!form.touched.emailConfirm && !!form.errors && !!form.errors.emailConfirm && (\n \n {form.errors.emailConfirm}\n \n )}\n \n \n \n )}\n \n \n \n {!!errors && !!errors.form && (\n \n {t(errors.form.details) || t(errors.form.message)}\n \n )}\n {warning && {warning}}\n \n \n \n )}\n \n );\n};\n\nconst StyledFieldset = styled(Fieldset)`\n flex: 1;\n`;\n\nconst StyledForm = styled(Form)`\n width: 100%;\n flex: 1;\n display: flex;\n flex-direction: column;\n`;\n","import React, { FC, useEffect } from 'react';\nimport styled from 'styled-components';\nimport { useHistory } from 'react-router';\nimport { useTranslation } from 'react-i18next';\nimport { Page, PageContent, PageFooter, TextInput } from '../../../components/UI';\nimport { IUserStoreState } from '../../../store/user/types';\nimport CopyButton from '../../../components/UI/copyButton';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\nimport UserHelper from '../../../helpers/userHelper';\n\ninterface IShareLinkPageProps {\n user: IUserStoreState;\n token: string;\n isRedirection: boolean;\n isLoading: boolean;\n eventSlug: string;\n}\n\nconst ShareLinkPage: FC = ({ user, eventSlug, isLoading, token, isRedirection }) => {\n const { getProfileRoute } = useRoutesHelper();\n const history = useHistory();\n const { t } = useTranslation();\n\n useEffect(() => {\n if (!user) {\n history.push(getProfileRoute());\n return;\n }\n }, [user]);\n\n if (isRedirection || isLoading || !token) {\n return null;\n }\n\n const renderFooter = () => {\n const referralLink = UserHelper.generateReferralUrlByToken(user, eventSlug, token);\n return (\n
\n \n \n
\n );\n };\n\n return (\n \n \n {t<string>('Share.EventLink')}\n \n {renderFooter()}\n \n );\n};\n\nconst Footer = styled(PageFooter as any)`\n padding: 0 25px 20px 25px;\n\n > button,\n > input {\n &:not(:last-child) {\n margin-bottom: 15px;\n }\n }\n`;\n\nconst Title = styled.h1`\n font-size: 14px;\n margin: 0 0 15px 0;\n`;\n\nconst ReferralLinkInput = styled(TextInput as any)`\n color: ${(props) => props.theme.colors.accent};\n padding: 15px 20px;\n\n &::placeholder {\n color: ${(props) => props.theme.colors.accent};\n opacity: 1;\n }\n\n &:focus {\n border-color: ${(props) => props.theme.colors.text};\n }\n`;\n\nexport default ShareLinkPage;\n","import 'normalize.css';\n\nimport * as React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { Provider } from 'react-redux';\nimport { Router } from 'react-router-dom';\nimport { PersistGate } from 'redux-persist/integration/react';\nimport dayjs from 'dayjs';\nimport 'dayjs/locale/ru';\nimport LocalizedFormat from 'dayjs/plugin/localizedFormat';\nimport { createBrowserHistory } from 'history';\nimport { I18nextProvider } from 'react-i18next';\nimport ruLocale from 'date-fns/locale/ru';\nimport { LocalizationProvider } from '@mui/x-date-pickers';\nimport { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';\nimport { CacheProvider } from '@emotion/react';\nimport createCache from '@emotion/cache';\nimport { ApplicationInsights } from '@microsoft/applicationinsights-web';\nimport i18n from './i18n';\nimport configureStore from './configureStore';\nimport { AnalyticsSettings } from './settings/appSettings';\nimport App from './containers/app';\n\n//dayjs.locale((window.navigator.language === 'ru-RU' || window.navigator.language === 'ru') ? 'ru' : 'en');\ndayjs.extend(LocalizedFormat);\n\nconst browserHistory = createBrowserHistory();\n\nif (AnalyticsSettings.APP_INSIGHTS_ID) {\n const appInsights = new ApplicationInsights({\n config: {\n instrumentationKey: AnalyticsSettings.APP_INSIGHTS_ID,\n },\n });\n appInsights.loadAppInsights();\n appInsights.trackPageView();\n}\n\nexport const muiCache = createCache({\n key: 'mui',\n prepend: true,\n});\n\nconst configuredStore = configureStore();\nexport const store = configuredStore.store;\nexport const thunk = configuredStore.thunk;\nconst persistor = configuredStore.persistor;\nconst root = createRoot(document.getElementById('root'));\nroot.render(\n \n \n \n \n \n \n \n \n \n \n \n \n \n);\n","import React, { FC, memo, useEffect, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { useTranslation } from 'react-i18next';\nimport styled from 'styled-components';\nimport { AnimatePresence } from 'framer-motion';\nimport { IErrorStoreState } from '../../../../store/app/types';\nimport { IEventStoreState, ISeatStoreState } from '../../../../store/event/types';\nimport { IBookStoreState } from '../../../../store/book/types';\nimport { FormError } from '../../../../components/forms';\nimport { PopUp } from '../../../../store/animations';\nimport { IGlobalStoreState } from '../../../../store';\n\nexport const WidgetError: FC = memo(({ seats, event, book }) => {\n const { t } = useTranslation();\n\n const error = useSelector((state) => state.app.error);\n const [errors, setErrors] = useState(null);\n\n useEffect(() => {\n setErrors(error);\n }, [error?.details, error?.message]);\n\n useEffect(() => {\n const { maxPurchase } = event;\n const seatsCount = seats.length;\n\n if (seatsCount >= maxPurchase) {\n setErrors({ message: t('WidgetBook.YouHaveReachedYourEventTicketPurchaseLimit') });\n return;\n }\n setErrors(null);\n }, [event?.maxPurchase, seats?.length, setErrors, t]);\n\n if (!event || !seats || !book) {\n return null;\n }\n\n if (!errors) {\n return null;\n }\n const { message, details } = errors;\n\n return (\n errors && (\n \n \n {message || details}\n \n \n )\n );\n});\n\nconst ErrorWrapper = styled(FormError as any)`\n width: 100%;\n`;\n\ntype ErrorPropsType = {\n event: IEventStoreState;\n seats: ISeatStoreState[];\n book: IBookStoreState;\n};\n","import * as React from 'react';\nimport { connect } from 'react-redux';\nimport styled from 'styled-components';\nimport { withRouter } from 'react-router';\n\nimport { IGlobalStoreState } from '../../../store';\nimport { IEventStoreState, ISeatStoreState, SeatStoreState } from '../../../store/event/types';\nimport { ITokenTicketQuotaStoreState, IVenueSectorStoreState } from '../../../store/ticket/types';\nimport { getEventById } from '../../../store/event/actions';\nimport { Button, ISelectorItem, Page, PageContent, PageFooter, Selector } from '../../../components/UI';\nimport { PlaceSelector, SchemaSectorSelector, TicketCountSelector } from '../../../components/book';\nimport { checkoutInit } from '../../../store/checkout/actions';\nimport { AnalyticService, Utils } from '../../../services';\nimport {\n clearBook,\n initBook,\n setQuota,\n setSector,\n setSectorRow,\n setSectorRowSeat,\n setTicketsCount,\n} from '../../../store/book/actions';\nimport { CheckoutHelper, EventHelper } from '../../../helpers';\nimport { IBookStoreState } from '../../../store/book/types';\nimport { distributionInit } from '../../../store/distribution/actions';\nimport { AlertType, KeyErrors } from '../../../store/enums';\nimport { showSpinner } from '../../../store/app/actions';\nimport { IUserStoreState } from '../../../store/user/types';\nimport { IErrorStoreState } from '../../../store/app/types';\nimport { FormError, FormInfo } from '../../../components/forms';\nimport { IDistributionStoreState } from '../../../store/distribution/types';\nimport { getTicketQuotaByShareToken } from '../../../store/share/actions';\nimport { BookTotalPrices } from '.';\nimport { hideAdButton } from '../../../store/header/actions';\nimport { withTranslation } from 'react-i18next';\nimport RouteService from '../../../services/routeService';\nimport { setResultInfo } from '../../../store/resultInformarion/actions';\nimport { ResultInfoType } from '../../../store/resultInformarion/types';\n\ninterface IBookPageProps {\n quotaId: number;\n eventSlug: string;\n sectorSlug: string;\n distributorSlug?: string;\n event: IEventStoreState;\n isLoading: boolean;\n book: IBookStoreState;\n user: IUserStoreState;\n error: IErrorStoreState;\n isRedirection: boolean;\n isFinalized: boolean;\n distribution: IDistributionStoreState;\n token: string;\n\n getEventById: (id: string, distributorSlug?: string, token?: string) => Promise;\n initBook: (\n event: IEventStoreState,\n sectorSlug?: string,\n seats?: ISeatStoreState[],\n token?: string\n ) => Promise;\n clearBook: () => void;\n checkoutInit: () => Promise;\n distributionInit: (distributorSlug: string) => void;\n go: (url: string) => void;\n replace: (url: string) => void;\n showAlert: (config: ResultInfoType) => void;\n showSpinner: () => void;\n setQuota: (id: number) => void;\n setSector: (slug: string) => void;\n setRow: (slug: string) => void;\n setSeat: (slug: string) => void;\n setTickets: (count: number) => void;\n getTicketQuotaByToken: (token: string) => Promise;\n hideAdButton: () => void;\n t: (text: string, options?: {}) => string;\n}\n\ninterface IBookPageState {\n isCheckoutInitiating: boolean;\n errors?: any;\n seats: ISeatStoreState[];\n showSeatsSelector?: boolean;\n}\n\nclass BookPage extends React.Component {\n private routeSrv = new RouteService();\n private analyticSrv = new AnalyticService()\n constructor(props: IBookPageProps) {\n super(props);\n\n this.state = {\n isCheckoutInitiating: false,\n errors: null,\n seats: []\n };\n }\n\n public componentWillMount() {\n this.initEvent(this.props);\n }\n\n componentDidMount() {\n this.forceUpdate();\n this.props.hideAdButton();\n this.analyticSrv.trackEvent(\"TicketsDetails\");\n }\n\n public componentWillReceiveProps(nextProps: IBookPageProps) {\n const isSlugChanged = this.props.eventSlug !== nextProps.eventSlug;\n const isSectorChanged = nextProps.sectorSlug !== this.props.sectorSlug;\n const isErrorChanged = !Utils.isEqual(this.props.error, nextProps.error);\n const isFinalizedChanged = nextProps.isFinalized !== this.props.isFinalized && nextProps.isFinalized;\n // if (isErrorChanged) this.setState({ ...this.state, errors: { form: nextProps.error } });\n // if (isSlugChanged || isFinalizedChanged) this.initEvent(nextProps);\n // if (isSectorChanged) this.props.setSector(nextProps.sectorSlug)\n }\n\n public render() {\n const event = this.props.event;\n if (this.props.isRedirection || this.props.isLoading || !event || this.state.isCheckoutInitiating || this.props.token)\n return null;\n\n const sector = event && event.sectors && event.sectors.find((x) => x.slug === this.props.sectorSlug);\n const isInteractiveSchema = !!sector && !!sector.schema;\n\n return (\n \n \n { this.handleSchemaSectorSelect(sectorSlug)}\n />}\n {isInteractiveSchema && this.state.showSeatsSelector && this.renderPlaceSelector(event, sector)}\n {!isInteractiveSchema && this.renderQuotaSelector(event, sector)}\n {!isInteractiveSchema && this.renderTicketsCountSelector(event, sector)}\n \n {this.renderFooter()}\n \n );\n }\n\n private renderTicketsInfo() {\n if (!this.state.seats.length) return null;\n const tickets = this.state.seats;\n const event = this.props.event;\n const defaultPaymentMethod = event.paymentMethods && event.paymentMethods.length > 0 ? event.paymentMethods[0] : null;\n let total = 0\n let currency: string;\n tickets.forEach(ticket => {\n event.sectors.forEach(sector => {\n const q = sector.ticketQuotas.find((st) => st.id == ticket.quotaId);\n if (q) {\n total += q.price;\n currency = q.currency\n }\n });\n });\n\n if (!!defaultPaymentMethod.useConvertion) {\n total = Math.round(total * defaultPaymentMethod.convertionRate * 100) / 100;\n currency = defaultPaymentMethod.convertionCurrency;\n }\n return (\n <>\n \n {this.props.t('Book.SelectedTickets')}\n {this.state.seats.map((ticket) => {\n const sector = this.props.event.sectors.find((x) => x.slug == ticket.sectorSlug);\n const quota = sector.ticketQuotas.find((x) => x.id == ticket.quotaId);\n const title = `${this.props.t('Book.Sector')} ${ticket.sectorTitle}${ticket.rowSlug ? `, ${this.props.t('Book.Row')} ${ticket.rowSlug}` : ``}${ticket.seatSlug ? `, ${this.props.t('Book.Seat')} ${ticket.seatSlug}.` : ``}`;\n const price = `${quota.price} ${quota.currency}`;\n return (\n \n \n {title}\n \n \n {price}\n \n \n );\n })}\n
\n \n \n \n {this.props.t(\"Book.Total\")}\n \n \n \n {total} {currency}\n \n \n \n
\n \n );\n }\n\n private renderQuotaSelector(event: IEventStoreState, sector: IVenueSectorStoreState) {\n if (!event || !sector || !sector.ticketQuotas || this.props.quotaId) return null;\n return ;\n }\n\n private getQuotaSelectorItems(event: IEventStoreState, sector: IVenueSectorStoreState): ISelectorItem[] {\n return (\n sector &&\n sector.ticketQuotas\n .map((q) => {\n const capacity = !sector.noSeats ? q.left : 0;\n return {\n to: this.routeSrv.getBookRoute(event.slug, q.id.toString(), sector.slug, null, null),\n title: q.title,\n subtitle: capacity > 0 ? `${capacity} ${Utils.getTicketsPostfixByCount(capacity)}` : null,\n } as ISelectorItem;\n })\n );\n }\n\n private renderTicketsCountSelector(\n event: IEventStoreState,\n sector: IVenueSectorStoreState\n ) {\n if (!event || !sector || !sector.ticketQuotas || !this.props.quotaId) return null;\n const quota = sector.ticketQuotas.find((q) => q.id == this.props.quotaId);\n if (!quota) return null;\n let tickets = this.state.seats.filter((s) => s.quotaId == this.props.quotaId);\n let maxPurchase = quota.left < this.props.event.maxPurchase ? quota.left : this.props.event.maxPurchase;\n return (\n \n {sector.noSeats && (\n <>\n {this.props.t(\"Book.TicketCount\")}\n \n s.quotaId != this.props.quotaId).length}\n sector={sector}\n tickets={tickets.length}\n handleTicketsCount={(count) => this.handleTicketsCount(count)}\n />\n \n \n )}\n {!sector.noSeats && {this.props.t(\"Book.TicketsPrice\")}}\n {this.renderPrices(event, sector)}\n \n );\n }\n\n private renderDistributionInfo() {\n const distributionInfo = CheckoutHelper.getDistributionInfo(null, this.props.distribution);\n if (!distributionInfo) return null;\n return {this.props.t(distributionInfo, {distributor: this.props.distribution.distributorSlug})}\n }\n\n private handleTicketsCount(count: number) {\n this.setState(state => {\n let seats = state.seats.filter((s) => s.quotaId != this.props.quotaId)\n for (let index = 0; index < count; index++) {\n const sector = this.props.event.sectors.find((x) => x.slug == this.props.sectorSlug);\n seats = seats.concat(new SeatStoreState(this.props.quotaId, this.props.sectorSlug, sector.title))\n }\n return { seats };\n });\n }\n\n private renderPrices(\n event: IEventStoreState,\n sector: IVenueSectorStoreState\n ) {\n if (!event || !sector || !sector.ticketQuotas || !this.props.quotaId) return null;\n const quota = sector.ticketQuotas.find((q) => q.id == this.props.quotaId);\n if (!quota) return null;\n let tickets = this.state.seats.filter((s) => s.quotaId == this.props.quotaId);\n\n const defaultPaymentMethod = event.paymentMethods && event.paymentMethods.length > 0 ? event.paymentMethods[0] : null;\n const ticketPrice = quota.price;\n const ticketsCount = tickets.length;\n let total = ticketPrice * ticketsCount;\n let currency = quota.currency;\n let sectorTitle = '';\n\n if (!!defaultPaymentMethod.useConvertion) {\n total = Math.round(total * defaultPaymentMethod.convertionRate * 100) / 100;\n currency = defaultPaymentMethod.convertionCurrency;\n }\n\n if (!sector.noSeats && !!this.state.seats && !!this.state.seats.length) sectorTitle = `${ticketsCount} x ${sector.title}`;\n return ;\n }\n\n\n\n private renderPlaceSelector(event: IEventStoreState, sector: IVenueSectorStoreState) {\n const caption = `${this.props.t(\"Book.RowNumbering\")}`;\n if (!event || !sector) return null;\n return this.handlePlaceSelect(quotaId, sectorSlug, rowSlug, seatSlug)}\n />;\n }\n\n private renderFooter() {\n const event = this.props.event;\n const sector = event && event?.sectors && event?.sectors.find((x) => x?.slug === this.props?.sectorSlug);\n if (!event) return null;\n\n const hasTickets = EventHelper.getHasTickets(event);\n const isSectorSelected = !!this.props.sectorSlug;\n const isSeatsSelected = isSectorSelected && this.state.seats && this.state.seats.length > 0;\n const isCheckoutEnabled = !this.props.isLoading && hasTickets && isSeatsSelected && !event.notAvailableForPurchase;\n let buttonTitle = this.props.t(\"Book.GoToPayment\");\n if (!hasTickets) buttonTitle = this.props.t(\"Book.TicketsAreNotAvailableForSale\");\n else if (!isSectorSelected) buttonTitle = this.props.t(\"Book.ChooseSector\");\n else if (!isSeatsSelected && !sector?.noSeats) buttonTitle = this.props.t(\"Book.ChooseSeats\");\n else if (event.notAvailableForPurchase) buttonTitle = event.notAvailableForPurchaseReason;\n return (\n
\n { !!sector && !sector?.noSeats && this.renderTicketsInfo()}\n
{this.renderError(sector)}
\n {this.renderDistributionInfo()}\n \n
\n );\n }\n\n private renderError(sector: IVenueSectorStoreState) {\n let error = null;\n if (!this.props.event || !this.state.seats || !this.props.book) return null;\n const maxPurchase = this.props.event.maxPurchase;\n const seatsCount = this.state.seats.length;\n const stateErrors = this.state.errors;\n if (seatsCount >= maxPurchase) error = this.props.t(\"Book.YouHaveReachedYourEventTicketPurchaseLimit\");\n else if (stateErrors && stateErrors.form) error = stateErrors.form.details || stateErrors.form.message;\n return !!error && {error};\n }\n\n private initEvent(props: IBookPageProps) {\n if (props.isRedirection || !props.isFinalized) return;\n if (props.distributorSlug) this.props.distributionInit(props.distributorSlug);\n if (!props.eventSlug) {\n this.props.go('/');\n return;\n }\n\n this.props.getEventById(props.eventSlug, null, props.token)\n .then((event) => {\n if (!event || !event.slug) {\n this.props.clearBook();\n this.props.showAlert({\n type: AlertType.Error,\n key: KeyErrors.EventNotFound,\n title: 'Alert.SomethingWentWrong',\n message: 'Alert.CheckLinkNoEventFound',\n });\n this.props.replace(this.routeSrv.getResultStatusRoute(AlertType.Error, KeyErrors.EventNotFound));\n return;\n }\n\n if (props.token) {\n this.props.getTicketQuotaByToken(props.token).then((q) => {\n if (q.left === 0) {\n this.props.clearBook();\n this.props.showAlert({\n type: AlertType.Error,\n key: KeyErrors.QuotaNotFound,\n title: 'Alert.SomethingWentWrong',\n message: 'Alert.CheckLinkNoLocationFound',\n });\n this.props.replace(this.routeSrv.getResultStatusRoute(AlertType.Error, KeyErrors.QuotaNotFound));\n return;\n }\n this.props.clearBook();\n if (event.notAvailableForPurchase) {\n this.props.go(this.routeSrv.getEventRoute(event.slug));\n return;\n }\n\n const sector = event.sectors.find((x) => x.slug == q.sectorSlug);\n if (!sector) {\n this.props.go(this.routeSrv.getBookRoute(event.slug, null, null, null, null));\n return;\n }\n\n if (!EventHelper.hasSectorTickets(sector)) {\n this.props.showAlert({\n type: AlertType.Error,\n key: KeyErrors.NoTickets,\n title: 'Alert.SomethingWentWrong',\n message: 'Alert.NoTicketsForCurrentEvent',\n buttons: [\n {\n title: this.props.t('Result.GoToMainPage'),\n callback: () =>\n this.props.replace(\n this.routeSrv.getBookRoute(event.slug, null, sector.slug, null, null)\n ),\n },\n ],\n });\n this.props.replace(this.routeSrv.getResultStatusRoute(AlertType.Error, KeyErrors.NoTickets));\n return;\n }\n\n this.setState(state => {\n let seats = state.seats.filter((s) => s.quotaId != q.quotaId)\n for (let index = 0; index < q.left; index++) {\n seats = seats.concat(new SeatStoreState(q.quotaId, q.sectorSlug, sector.title))\n }\n return { seats };\n });\n\n this.props.initBook(event, q.sectorSlug, this.state.seats, this.props.token);\n this.checkoutInit();\n });\n return;\n }\n\n this.props.clearBook();\n if (event.notAvailableForPurchase) {\n this.props.go(this.routeSrv.getEventRoute(event.slug));\n return;\n }\n\n if (!this.props.sectorSlug) {\n this.props.initBook(event, this.props.sectorSlug, this.props.book.seats);\n return;\n }\n\n if (!this.props.event || !this.props.event.sectors) {\n this.props.initBook(event, this.props.sectorSlug, this.props.book.seats);\n return;\n }\n const sector = event.sectors.find((x) => x.slug == this.props.sectorSlug);\n if (!EventHelper.hasSectorTickets(sector)) {\n this.props.showAlert({\n type: AlertType.Error,\n key: KeyErrors.NoTickets,\n title: 'Alert.SomethingWentWrong',\n message: 'Alert.NoTicketsForCurrentEvent',\n buttons: [\n {\n title: this.props.t('Result.GoToMainPage'),\n callback: () =>\n this.props.replace(\n this.routeSrv.getBookRoute(event.slug, null, sector.slug, null, null)\n ),\n },\n ],\n });\n this.props.replace(this.routeSrv.getResultStatusRoute(AlertType.Error, KeyErrors.NoTickets));\n return;\n }\n\n this.props.initBook(event, this.props.sectorSlug, this.props.book.seats);\n });\n }\n\n private handleCheckoutClick(e: any) {\n if (e) e.preventDefault();\n this.props.initBook(this.props.event, this.props.sectorSlug, this.state.seats);\n this.checkoutInit();\n }\n\n private handleSchemaSectorSelect(sectorSlug: string) {\n this.setState({ ...this.state, showSeatsSelector: false });\n this.props.go(this.routeSrv.getBookRoute(this.props.eventSlug, null, sectorSlug));\n this.setState({ ...this.state, showSeatsSelector: true });\n }\n\n private handlePlaceSelect(quotaId: number, sectorSlug: string, rowSlug: string, seatSlug: string) {\n this.setState(state => {\n if (state.seats.some((s) => s.sectorSlug === sectorSlug && s.rowSlug === rowSlug && s.seatSlug === seatSlug)) {\n const seats = state.seats.filter((s) => s.sectorSlug !== sectorSlug || s.rowSlug !== rowSlug || s.seatSlug !== seatSlug)\n return { seats };\n }\n const sector = this.props.event.sectors.find((x) => x.slug == this.props.sectorSlug);\n const seats = this.props.book.event.maxPurchase > state.seats.length ?\n state.seats.concat(new SeatStoreState(quotaId, sectorSlug, sector.title, rowSlug, seatSlug)) :\n state.seats;\n return { seats };\n });\n }\n\n private checkoutInit() {\n this.props\n .checkoutInit()\n .then(() => {\n this.setState({ ...this.state, isCheckoutInitiating: false }, () => {\n this.props.go(this.routeSrv.getCheckoutRouteFromBook(this.props.book));\n });\n this.analyticSrv.trackEvent(\"AddToCart\")\n })\n .catch(() => {\n this.setState({ ...this.state, isCheckoutInitiating: false });\n });\n }\n}\n\nconst Container = styled.div`\n display: flex;\n flex-direction: column;\n &:after {\n background-size: cover;\n width: '14px';\n height: '14px';\n position: absolute;\n margin-left: '-25px';\n top: '0';\n }\n`;\n\nconst CostTitle = styled.span`\n font-size: 12px;\n font-family: ${(props) => props.theme.fonts.lighterFont};\n`;\n\nconst Footer = styled(PageFooter as any)`\n align-items: initial\n padding: 0 25px 20px 25px;\n > button,\n > input {\n &:not(:last-child) {\n margin-bottom: 15px;\n }\n }\n`;\n\nconst TicketsPriceWrapper = styled.div`\n padding-top: 30px;\n`;\n\nconst Title = styled.h1`\n font-size: 14px;\n margin: 0 0 15px 0;\n`;\n\nconst TicketSelectorsWrapper = styled.section`\n margin-bottom: 30px;\n`;\n\nconst ErrorWrapper = styled(FormError as any)`\n width: 100%;\n`;\n\nconst Warning = styled(FormInfo as any)`\n padding: 10px 0 0 0;\n`;\n\nconst ListItem = styled.li`\n font-size: 14px;\n font-family: ${(props) => props.theme.fonts.lighterFont};\n &:not(:last-child) {\n margin-bottom: 15px;\n }\n`;\n\nconst Table: any = styled.table`\nborder-top: 1px solid ${(props) => props.theme.colors.accent};\ntable-layout: fixed;\nwidth: 55%;\nmargin-left: auto;\nmin-width: 330px;\n`;\nconst TableRow = styled.tr`\n`;\nconst TableData = styled.td`\n`;\n\nconst PriceTitle = styled.label`\n font-size: 12px;\n`;\n\nconst Price = styled(PriceTitle as any)`\n flex: 1;\n text-align: right;\n`;\nconst TotalPriceTitle = styled(PriceTitle as any)`\n font-size: 14px;\n font-family: ${(props) => props.theme.fonts.regularFont};\n`;\nconst TotalPrice = styled(Price as any)`\n font-size: 14px;\n font-family: ${(props) => props.theme.fonts.boldFont};\n`;\nconst mapStateToProps = (state: IGlobalStoreState, ownProps: any) => {\n const rowSlug = ownProps.match && ownProps.match.params && ownProps.match.params.rowSlug;\n return {\n eventSlug: ownProps.match && ownProps.match.params && ownProps.match.params.eventSlug,\n sectorSlug: ownProps.match && ownProps.match.params && ownProps.match.params.sectorSlug,\n rowSlug,\n tickets: ownProps.match && ownProps.match.params && (+ownProps.match.params.tickets || +rowSlug),\n distributorSlug: ownProps.match && ownProps.match.params && ownProps.match.params.distributorSlug,\n event: state.book.event,\n isLoading: state.app.isLoading,\n book: state.book,\n user: state.user,\n error: state.app.error,\n isRedirection: state.app.isRedirection,\n isFinalized: state.app.isFinalized,\n distribution: state.distribution,\n token: ownProps.match && ownProps.match.params && ownProps.match.params.token,\n quotaId: ownProps.match && ownProps.match.params && ownProps.match.params.quotaId,\n };\n};\n\nconst mapDispatchToProps = (dispatch: any, ownProps: any) => ({\n getEventById: (id: string, distributorSlug?: string, token?: string) => dispatch(getEventById(id, distributorSlug, token)),\n initBook: (event: IEventStoreState, sectorSlug?: string, seats?: ISeatStoreState[], token?: string) =>\n dispatch(initBook(event, sectorSlug, seats, token)),\n clearBook: () => dispatch(clearBook()),\n checkoutInit: () => dispatch(checkoutInit()),\n distributionInit: (distributorSlug: string) => dispatch(distributionInit(distributorSlug)),\n go: ownProps.history.push,\n replace: ownProps.history.replace,\n showAlert: (config: ResultInfoType) => dispatch(setResultInfo(config)),\n showSpinner: () => dispatch(showSpinner()),\n setQuota: (id: number) => dispatch(setQuota(id)),\n setSector: (slug: string) => dispatch(setSector(slug)),\n setRow: (slug: string) => dispatch(setSectorRow(slug)),\n setSeat: (slug: string) => dispatch(setSectorRowSeat(slug)),\n setTickets: (count: number) => dispatch(setTicketsCount(count)),\n getTicketQuotaByToken: (token: string) => dispatch(getTicketQuotaByShareToken(token)),\n hideAdButton: () => dispatch(hideAdButton()),\n});\n\nexport default withRouter(\n connect(\n mapStateToProps,\n mapDispatchToProps,\n )(withTranslation()(BookPage)),\n);\n","import React, { FC } from 'react';\nimport { IEventStoreState } from '../../../../store/event/types';\nimport { IVenueSectorStoreState } from '../../../../store/ticket/types';\nimport { BookTotalPrices } from '../../book';\n\ntype RenderPricesPropsType = {\n event: IEventStoreState;\n sector: IVenueSectorStoreState;\n quotaId: number;\n seats: any;\n};\n\nexport const WidgetPrices: FC = ({ event, sector, seats, quotaId }) => {\n if (!event || !sector || !sector.ticketQuotas || !quotaId) {\n return null;\n }\n const quota = sector.ticketQuotas.find((q) => q.id === quotaId);\n\n if (!quota) {\n return null;\n }\n\n const tickets = seats.filter((s) => s.quotaId === quotaId);\n\n const defaultPaymentMethod = event.paymentMethods && event.paymentMethods.length > 0 ? event.paymentMethods[0] : null;\n const ticketPrice = quota.price;\n const ticketsCount = tickets.length;\n let total = ticketPrice * ticketsCount;\n let { currency } = quota;\n let sectorTitle = '';\n\n if (defaultPaymentMethod.useConvertion) {\n total = Math.round(total * defaultPaymentMethod.convertionRate * 100) / 100;\n currency = defaultPaymentMethod.convertionCurrency;\n }\n\n if (!sector.noSeats && !!seats && !!seats.length) {\n sectorTitle = `${ticketsCount} x ${sector.title}`;\n }\n\n return (\n \n );\n};\n","import { useTranslation } from 'react-i18next';\nimport { AppSettings } from '../settings/appSettings';\n\nexport const useUtils = () => {\n const { t } = useTranslation();\n\n const getTicketsPostfixByCount = (count: number): string => {\n switch (count) {\n case 1:\n return t('Book.Ticket');\n case 2:\n case 3:\n case 4:\n return t('Book.MultipleTicketsBeforeFive');\n default:\n return t('Book.Tickets');\n }\n };\n\n const getEmojiFlagByCurrency = (currency: string): string => {\n let result = '';\n switch (currency) {\n case 'BYN':\n result = 'Br';\n break;\n case 'RUB':\n result = '₽';\n break;\n case 'EUR':\n result = '€';\n break;\n case 'UAH':\n result = '₴';\n break;\n case 'USD':\n result = '$';\n break;\n default:\n result = '';\n break;\n }\n return result;\n };\n\n const toPageTitle = (source: string): string =>\n source && source.trim() ? `${source.trim()} | ${AppSettings.APP_NAME}` : AppSettings.APP_NAME;\n\n const toMetaKeywords = (keywords: Array): string => keywords.join(',');\n\n return {\n getTicketsPostfixByCount,\n getEmojiFlagByCurrency,\n toPageTitle,\n toMetaKeywords,\n };\n};\n","export class PaymentSettings {\n public static SCRIPT_URL = 'https://js.begateway.com/begateway-1.2.6.min.js';\n public static BASE_API_URL = 'https://checkout.bepaid.by/v2';\n public static BEPAID_URL = 'https://bepaid.by';\n}\n","import * as React from 'react';\nimport { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport styled from 'styled-components';\nimport { useHistory, useParams } from 'react-router';\n\nimport { IGlobalStoreState } from '../../../store';\nimport { IEventStoreState } from '../../../store/event/types';\nimport { getSellEventDetails } from '../../../store/event/actions';\nimport { Button, Page, PageContent, PageFooter, TextInput } from '../../../components/UI';\nimport { SchemaSectorSelector, TicketCountSelector } from '../../../components/book';\nimport { AlertType, KeyErrors, Pages } from '../../../store/enums';\nimport { clear, getTicketShareToken, initShare } from '../../../store/share/actions';\nimport { IUserStoreState } from '../../../store/user/types';\nimport { IErrorStoreState } from '../../../store/app/types';\nimport { FormError } from '../../../components/forms';\nimport CopyButton from '../../../components/UI/copyButton';\nimport { useTranslation } from 'react-i18next';\nimport { IBookTicketQuotaStoreState } from '../../../store/ticket/types';\nimport { BookTotalPrices } from '..';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\nimport { PopUp } from '../../../store/animations';\nimport { AnimatePresence } from 'framer-motion';\nimport { setResultInfo } from '../../../store/resultInformarion/actions';\n\nconst SharePage = () => {\n const dispatch = useDispatch();\n const history = useHistory();\n const { t } = useTranslation();\n\n const { getProfileRoute, getBookRoute, getEventRoute, generateReferralUrl, getResultStatusRoute } = useRoutesHelper();\n\n const event = useSelector((state) => state.share.event);\n const isLoading = useSelector((state) => state.app.isLoading);\n const user = useSelector((state) => state.user);\n const error = useSelector((state) => state.app.error);\n const isRedirection = useSelector((state) => state.app.isRedirection);\n const isFinalized = useSelector((state) => state.app.isFinalized);\n\n const [errors, setErrors] = useState(null);\n const { eventSlug, sectorSlug, rowSlug, tickets } = useParams<{\n eventSlug: string;\n sectorSlug: string;\n rowSlug: string;\n tickets: string;\n }>();\n\n let ticketsOrRow = +tickets || +rowSlug;\n if (isNaN(ticketsOrRow)) {\n ticketsOrRow = 0;\n }\n\n const initEvent = (eventSlug, sectorSlug) => {\n if (isRedirection || !isFinalized) {\n return;\n }\n if (!eventSlug) {\n history.push('/');\n return;\n }\n\n // @ts-ignore\n dispatch(getSellEventDetails(eventSlug)).then((event) => {\n if (!event || !event.slug) {\n dispatch(\n setResultInfo({\n type: AlertType.Error,\n key: KeyErrors.EventNotFound,\n title: 'Alert.SomethingWentWrong',\n message: 'Alert.CheckLinkNoEventFound',\n })\n );\n history.replace(getResultStatusRoute(AlertType.Error, KeyErrors.EventNotFound));\n return;\n } else if (!event.isDistributionAvailable) {\n history.push(getEventRoute(event.slug));\n return;\n }\n if (!sectorSlug) {\n dispatch(initShare(event));\n return;\n }\n dispatch(initShare(event));\n });\n };\n\n useEffect(() => {\n initEvent(eventSlug, sectorSlug);\n }, []);\n\n useEffect(() => {\n if (errors) {\n setErrors({ form: error });\n }\n if (!user) {\n history.push(getProfileRoute());\n return;\n }\n }, [error?.details, error?.message, user]);\n\n useEffect(() => {\n return () => {\n dispatch(clear());\n };\n }, []);\n\n if (isRedirection || isLoading || !event) {\n return null;\n }\n\n const renderFooter = () => {\n const sector = event.sectors.find((x) => x.slug === sectorSlug);\n if (!event || !sector) return null;\n\n let isPrivateQuota = sectorSlug && event ? sector.ticketQuotas.find((q) => q.isPrivate) : null;\n return isPrivateQuota ? renderPrivateSellControls() : renderSellControls();\n };\n\n const renderSellControls = () => {\n const { domainTypes } = event;\n const referralLink = generateReferralUrl(user, domainTypes, eventSlug, sectorSlug, rowSlug, ticketsOrRow);\n\n return (\n <>\n \n \n \n );\n };\n\n const renderTicketsCountSelector = (event: IEventStoreState) => {\n const sector = event.sectors.find((x) => x.slug == sectorSlug);\n if (!sector) {\n return null;\n }\n const quota = sector.ticketQuotas.find((x) => x.isPrivate);\n\n if (!quota) {\n return null;\n }\n\n return (\n \n {t<string>('Share.TicketCount')}\n \n handleTicketsCount(count)}\n />\n \n {renderPrices(event, quota)}\n \n );\n };\n\n const renderPrices = (event: IEventStoreState, quota: IBookTicketQuotaStoreState) => {\n const defaultPaymentMethod =\n event.paymentMethods && event.paymentMethods.length > 0 ? event.paymentMethods[0] : null;\n const ticketPrice = quota.price;\n const ticketsCount = ticketsOrRow;\n let total = ticketPrice * ticketsCount;\n let currency = quota.currency;\n if (!!defaultPaymentMethod.useConvertion) {\n total = Math.round(total * defaultPaymentMethod.convertionRate * 100) / 100;\n currency = defaultPaymentMethod.convertionCurrency;\n }\n return ;\n };\n\n const handleTicketsCount = (count: number) => {\n history.push(getBookRoute(eventSlug, null, sectorSlug, null, count, true));\n };\n\n const renderPrivateSellControls = () => {\n return (\n
\n {renderError()}\n \n
\n );\n };\n const renderError = () => {\n let error = null;\n\n if (errors && errors.form) {\n error = errors.form.details || errors.form.message;\n }\n return (\n !!error && (\n \n {error}\n \n )\n );\n };\n\n const handleSchemaSectorSelect = (sectorSlug: string) => {\n history.push(getBookRoute(eventSlug, null, sectorSlug, null, null, true));\n };\n\n const handleGetLinkClick = (e: any) => {\n if (e) {\n e.preventDefault();\n }\n const token = dispatch(getTicketShareToken(eventSlug, sectorSlug, ticketsOrRow));\n try {\n history.push(`/${Pages.Share}/${eventSlug}/${token}`);\n } catch (e) {\n dispatch(\n setResultInfo({\n type: AlertType.Error,\n key: KeyErrors.QuotaNotFound,\n title: 'Alert.SomethingWentWrong',\n message: 'Alert.CheckLinkNoLocationFound',\n })\n );\n history.replace(getResultStatusRoute(AlertType.Error, KeyErrors.QuotaNotFound));\n }\n };\n\n return (\n \n \n handleSchemaSectorSelect(sectorSlug)}\n />\n {renderTicketsCountSelector(event)}\n \n {renderFooter()}\n \n );\n};\n\nconst TicketsPriceWrapper = styled.div`\n padding-top: 30px;\n`;\n\nconst TicketSelectorsWrapper = styled.section`\n margin-bottom: 30px;\n`;\n\nconst Title = styled.h1`\n font-size: 14px;\n margin: 0 0 15px 0;\n`;\n\nconst ReferralLinkInput = styled(TextInput as any)`\n color: ${(props) => props.theme.colors.accent};\n padding: 15px 20px;\n\n &::placeholder {\n color: ${(props) => props.theme.colors.accent};\n opacity: 1;\n }\n\n &:focus {\n border-color: ${(props) => props.theme.colors.text};\n }\n`;\n\nconst Footer = styled(PageFooter as any)`\n padding: 0 25px 20px 25px;\n\n > button,\n > input {\n &:not(:last-child) {\n margin-bottom: 15px;\n }\n }\n`;\n\nconst ErrorWrapper = styled(FormError as any)`\n width: 100%;\n`;\n\nexport default SharePage;\n","import React, { FC } from 'react';\nimport styled from 'styled-components';\nimport dayjs from 'dayjs';\n\nimport { useTranslation } from 'react-i18next';\nimport Constants from '../../store/constants';\nimport { RLink } from '../UI';\nimport { SellStatus } from '../../store/enums';\nimport Timer from '../timer/timer';\nimport { IProfileTicketStoreState } from '../../store/ticket/ProfileTicketStoreState';\nimport { useRoutesHelper } from '../../helpers/routesHelper';\n\nconst UserTicketItem: FC = ({ ticket, go, cancelSellTicket }) => {\n const { t } = useTranslation();\n const { getUserTicketRoute, getUserTicketSellRoute, getUserTicketPurchaseRoute, getUserTicketsRoute } =\n useRoutesHelper();\n\n const { event } = ticket;\n const isSale = ticket.status === SellStatus.Sale || ticket.status === SellStatus.InitiatedSale;\n const isSold = ticket.status === SellStatus.Sold;\n const isOffered = ticket.status === SellStatus.OfferedForPurchase;\n const paymentInProcess = ticket.status === SellStatus.PaymentInProcess;\n const paymentDeclined = ticket.status === SellStatus.PaymentDeclined;\n\n const renderIssueFooter = (ticket: IProfileTicketStoreState) => {\n const isIssued = !!ticket.issuedTo;\n const issueTitle = !isIssued ? t('MyTickets.GetTicket') : t('MyTickets.TicketIssued');\n const sellTitle = t('MyTickets.SellTicket');\n const ticketRoute = getUserTicketRoute(ticket.masterTicketId, ticket.ticketId);\n const ticketSellRoute = getUserTicketSellRoute(ticket.masterTicketId, ticket.ticketId);\n const isBought = ticket.status === SellStatus.Bought;\n return (\n
\n {isBought && (\n \n {t('MyTickets.TicketPurchasedFrom')} {ticket.saleUser}\n \n )}\n \n {issueTitle}\n \n {false && !isIssued && (\n \n {sellTitle}\n \n )}\n
\n );\n };\n\n const renderSaleFooter = (ticket: IProfileTicketStoreState) => {\n const title = t('MyTickets.CancelSell');\n const ticketRoute = '';\n return (\n
\n \n {t('MyTickets.PaymentExpectedFrom')} {ticket.saleUser}\n \n handleCancelSell(e)}>\n {title} \n \n
\n );\n };\n\n const renderPaymentInProcessInfo = () => (\n
\n {t('MyTickets.PaymentProcessing')}\n
\n );\n\n const renderPaymentDeclinedInfo = () => (\n
\n {t('MyTickets.PaymentErrorOccurredContactSupportTeam')}\n
\n );\n\n const renderSoldInfo = (ticket: IProfileTicketStoreState) => (\n
\n \n {t('MyTickets.TicketSoldToUser')} {ticket.saleUser}\n \n
\n );\n\n const renderOfferFooter = (ticket: IProfileTicketStoreState) => {\n const title = t('MyTickets.PayTicket');\n const ticketRoute = getUserTicketPurchaseRoute(ticket.masterTicketId, ticket.ticketId);\n\n const date = new Date();\n const offsetInHours = date.getTimezoneOffset() / 60;\n const endTime =\n ticket.expiredPaymentTime > dayjs()\n ? ticket.expiredPaymentTime\n : dayjs(ticket.expiredPaymentTime).add(-offsetInHours, 'hour');\n\n return (\n
\n \n \n {title} \n \n {ticket.saleUser}\n
\n );\n };\n\n const handleCancelSell = (e: any) => {\n cancelSellTicket(ticket.ticketId).then((ticket) => {\n //ToDo: add in the future\n // this.setState({ ...this.state, ticket });\n go(getUserTicketsRoute());\n });\n };\n\n const renderTicketSector = (ticket: IProfileTicketStoreState) => {\n if (!ticket || !ticket.ticketQuota) {\n return null;\n }\n const quota = ticket.ticketQuota;\n let title = quota?.sector?.title ?? quota.title;\n if (ticket.rowTitle) {\n title += ` ${t('MyTickets.Row')} ${ticket.rowTitle}`;\n }\n if (ticket.seatTitle) {\n title += ` ${t('MyTickets.Seat')} ${ticket.seatTitle}`;\n }\n return {title};\n };\n\n return (\n \n \n
\n {event.title}\n
\n \n {dayjs(event.date).format(`${Constants.DateFormat}, LT`)}\n {event.venue && {`${event.venue.city}, ${event.venue.title}`}}\n {renderTicketSector(ticket)}\n \n {!isSale && !isSold && !isOffered && !paymentInProcess && !paymentDeclined && renderIssueFooter(ticket)}\n {false && isSale && renderSaleFooter(ticket)}\n {false && isOffered && renderOfferFooter(ticket)}\n {false && isSold && renderSoldInfo(ticket)}\n {false && paymentInProcess && renderPaymentInProcessInfo()}\n {false && paymentDeclined && renderPaymentDeclinedInfo()}\n
\n \n
\n );\n};\n\nconst Link = styled(RLink)`\n display: block;\n\n &:hover {\n filter: brightness(80%);\n }\n`;\n\nconst Container = styled('article')<{ theme: { colors: string } }>`\n display: flex;\n border-top: 1px solid ${(props) => props.theme.colors.text};\n border-bottom: 1px solid ${(props) => props.theme.colors.text};\n min-height: 210px;\n height: 35vw;\n max-height: 25vh;\n`;\n\nconst Poster = styled.div<{ bg: string; theme: { colors: string } }>`\n flex: 1;\n width: 50%;\n background: url(${(props) => props.bg}) top no-repeat;\n background-size: cover;\n mask-position: 0 0;\n mask-size: auto;\n mask-image: radial-gradient(\n circle at calc(100% + 12px) 50%,\n transparent 42px,\n ${(props) => props.theme.colors.text} 43px\n );\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n background: white;\n width: 100%;\n height: 100%;\n clip-path: circle(44px at calc(100% + 12px));\n }\n`;\n\nconst Content = styled.section`\n flex: 1;\n display: flex;\n flex-direction: column;\n width: 50%;\n border-right: 1px dashed ${(props) => props.theme.colors.text};\n padding: 10px 20px;\n`;\n\nconst Header = styled.header``;\n\nconst Title = styled.h1`\n margin: 0;\n padding: 0;\n text-transform: uppercase;\n font-size: 18px;\n font-family: ${(props) => props.theme.fonts.bolderFont};\n`;\n\nconst InfoWrapper = styled.section`\n flex: 1;\n padding: 10px 0;\n`;\n\nconst InfoItem = styled.p`\n margin: 5px 0;\n font-size: 12px;\n`;\n\nconst Footer = styled.footer``;\n\nconst Action = styled.span<{ theme: { fonts: string; colors: string }; disabled: boolean }>`\n font-size: 12px;\n font-family: ${(props) => props.theme.fonts.boldFont};\n color: ${(props) => props.theme.colors.accent};\n text-transform: uppercase;\n opacity: ${(props: any) => (props.disabled ? 0.7 : 1)};\n`;\n\nexport default UserTicketItem;\n\ntype UserTicketItemPropsType = {\n ticket: IProfileTicketStoreState;\n\n cancelSellTicket: (ticketId: string) => Promise;\n go: (url: string) => void;\n};\n","export * from './paymentLogos';\n","import { AppSettings } from '../settings/appSettings';\n\nexport class Utils {\n private static _instance: Utils;\n\n constructor() {\n if (typeof Utils._instance === 'undefined') {\n Utils._instance = this;\n }\n return Utils._instance;\n }\n\n public static getTicketsPostfixByCount(count: number): string {\n switch (count) {\n case 1:\n return 'Book.Ticket';\n case 2:\n case 3:\n case 4:\n return 'Book.MultipleTicketsBeforeFive';\n default:\n return 'Book.Tickets';\n }\n }\n\n public static isIOs(): boolean {\n return /iPad|iPhone|iPod/.test(navigator.userAgent);\n }\n\n public static parseQueryString(query: string): any {\n const params = query.replace('?', '').split('&');\n let result: any = {};\n for (const p in params) {\n const field = Utils.replaceAt(params[p], params[p].indexOf('='), ' ').split(' ');\n result[field[0]] = field[1];\n }\n return result;\n }\n\n public static toPageTitle(source: string): string {\n return source && source.trim() ? `${source.trim()} | ${AppSettings.APP_NAME}` : AppSettings.APP_NAME;\n }\n\n public static toMetaKeywords(keywords: Array): string {\n return keywords.join(',');\n }\n\n public static formatPhoneNumber(phone: string): string {\n return phone.replace(/[-| |)|(]/g, '');\n }\n\n public static getEmojiFlagByCurrency(currency: string): string {\n let result = '';\n switch (currency) {\n case 'BYN':\n result = 'Br';\n break;\n case 'RUB':\n result = '₽';\n break;\n case 'EUR':\n result = '€';\n break;\n case 'UAH':\n result = '₴';\n break;\n case 'USD':\n result = '$';\n break;\n default:\n result = '';\n break;\n }\n return result;\n }\n\n public static round(value: number, fraction = 2): number {\n const c = Math.pow(10, fraction);\n return Math.round(value * c) / c;\n }\n\n public static isEqual(x: any, y: any): boolean {\n if (x === y) {\n return true;\n }\n // if both x and y are null or undefined and exactly the same\n if (!(x instanceof Object) || !(y instanceof Object)) {\n return false;\n }\n // if they are not strictly equal, they both need to be Objects\n if (x.constructor !== y.constructor) {\n return false;\n }\n // they must have the exact same prototype chain, the closest we can do is\n // test there constructor.\n for (let p in x) {\n if (!x.hasOwnProperty(p)) {\n continue;\n }\n // other properties were tested using x.constructor === y.constructor\n if (!y.hasOwnProperty(p)) {\n return false;\n }\n // allows to compare x[ p ] and y[ p ] when set to undefined\n if (x[p] === y[p]) {\n continue;\n }\n // if they have the same strict value or identity then they are equal\n if (typeof x[p] !== 'object') {\n return false;\n }\n // Numbers, Strings, Functions, Booleans must be strictly equal\n if (!Utils.isEqual(x[p], y[p])) {\n return false;\n }\n // Objects and Arrays must be tested recursively\n }\n for (let p in y) {\n if (y.hasOwnProperty(p) && !x.hasOwnProperty(p)) {\n return false;\n }\n // allows x[ p ] to be set to undefined\n }\n return true;\n }\n\n // private methods\n\n private static numberToDigitsArray(value: number): number[] {\n return value\n .toString()\n .split('')\n .map((item) => +item);\n }\n\n private static replaceAt(source: string, index: number, replace: string): string {\n return source.substring(0, index) + replace + source.substring(index + 1);\n }\n}\n","import { useLocation } from 'react-router';\nimport { useEffect, useMemo } from 'react';\nimport { useSelector } from 'react-redux';\nimport { GlobalStoreState } from '../store';\nimport { IMenuStoreState } from '../store/menu/types';\nimport RouteService from '../services/routeService';\n\nexport const useQuery = () => {\n const { search } = useLocation();\n return useMemo(() => new URLSearchParams(search), [search]);\n};\n\nexport const useRouteService = () => new RouteService();\n\nexport const useContractData = () => {\n const menuStorage = useSelector((state) => state.menu).contracts;\n\n const bonusProgramItems = menuStorage?.bonusPrograms?.map((bonusProgram) => ({\n path: bonusProgram.fileUrl,\n title: bonusProgram.language,\n }));\n const publicContractItems = menuStorage?.publicContracts?.map((publicContract) => ({\n path: publicContract.fileUrl,\n title: publicContract.language,\n }));\n\n return { bonusProgramItems, publicContractItems };\n};\n\nexport const useScript = (url: string, callback?: () => void) => {\n useEffect(() => {\n const script = document.createElement('script');\n\n script.defer = true;\n script.async = true;\n script.src = url;\n script.onload = callback ?? null;\n\n document.head.appendChild(script);\n\n return () => {\n document.head.removeChild(script);\n };\n }, [url, callback]);\n};\n","import { Dispatch } from 'redux';\nimport { action } from 'typesafe-actions';\nimport { ThunkService } from '../../services';\n\nimport { ContractInfo, IMenuStoreState, MenuActionTypes } from './types';\nimport { IGlobalStoreState } from '../index';\n\nexport const show = () => action(MenuActionTypes.MENU_SHOW);\nexport const hide = () => action(MenuActionTypes.MENU_HIDE);\nexport const initContract = (contractInfo: ContractInfo) => action(MenuActionTypes.CONTRACTS_INIT, contractInfo);\n\nexport const showMenu = () => async (dispatch: Dispatch) => {\n dispatch(show());\n};\n\nexport const hideMenu = () => (dispatch: Dispatch) => {\n dispatch(hide());\n};\n\nexport const getContracts =\n () =>\n async (\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService,\n ): Promise => {\n const menuStore = await thunkService.api.publicContract.getUserAgreements();\n dispatch(initContract(menuStore.contracts));\n return Promise.resolve(menuStore);\n };\n","import { Dispatch } from 'redux';\nimport { action } from 'typesafe-actions';\n\nimport { AppActionTypes, IErrorStoreState } from './types';\nimport { getEvents } from '../event/actions';\nimport { getCurrentUser } from '../user/actions';\nimport { IGlobalStoreState } from '..';\nimport { ThunkService } from '../../services';\nimport { AppSettingsActionTypes, IAppSettingsState } from '../appSettings/types';\nimport { getContracts } from '../menu/actions';\n\nexport const init = () => action(AppActionTypes.APP_INIT);\nexport const finalize = () => action(AppActionTypes.APP_FINALIZE);\nexport const showSpinner = () => action(AppActionTypes.SPINNER_SHOW);\nexport const hideSpinner = () => action(AppActionTypes.SPINNER_HIDE);\nexport const authorize = () => action(AppActionTypes.APP_AUTHORIZE);\nexport const deauthorize = () => action(AppActionTypes.APP_DEAUTHORIZE);\nexport const setError = (payload: IErrorStoreState) => action(AppActionTypes.ERROR_SET, payload);\nexport const clearError = () => action(AppActionTypes.ERROR_CLEAR);\nexport const redirect = () => action(AppActionTypes.APP_REDIRECTION);\n\nconst appSettingInit = (settings: IAppSettingsState) => action(AppSettingsActionTypes.APP_SETTINGS_INIT, settings);\n\nexport const initApp =\n (city: string) =>\n async (dispatch: Dispatch, getState: () => IGlobalStoreState): Promise => {\n dispatch(init());\n try {\n await dispatch(await getSettings());\n if (!getState().appSettings.useNewDashboard) {\n await dispatch(getEvents(city));\n }\n await dispatch(getCurrentUser());\n await dispatch(await getContracts());\n dispatch(hideSplash());\n } finally {\n await dispatch(finalize());\n }\n };\n\nexport const getSettings =\n () =>\n async (\n dispatch: Dispatch,\n getState: () => IGlobalStoreState,\n thunkService: ThunkService\n ): Promise => {\n const appSettings = await thunkService.api.home.getAppSettings();\n dispatch(appSettingInit(appSettings));\n return appSettings;\n };\n\nexport const hideSplash = () => (): void => {\n document.body.classList.remove('splash-show');\n};\n\nexport const redirectApp =\n (url: string) =>\n async (dispatch: Dispatch): Promise => {\n await dispatch(redirect());\n location.replace(url);\n return Promise.resolve();\n };\n","import * as React from 'react';\nimport dayjs from 'dayjs';\nimport styled from 'styled-components';\nimport { useTranslation } from 'react-i18next';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport { IEventStoreState } from '../../store/event/types';\nimport { Image, RLink } from '../UI';\nimport Constants from '../../store/constants';\nimport RouteService from '../../services/routeService';\nimport { PopUp } from '../../store/animations';\n\ninterface IEventHeadlineProps {\n event: IEventStoreState;\n isMain?: boolean;\n isDistributed?: boolean;\n}\n\nconst routeSrv = new RouteService();\n\nconst EventHeadline = (props: IEventHeadlineProps) => {\n const { t } = useTranslation();\n const { event, isMain, isDistributed } = props;\n let linkTitle = event.title;\n\n if (isDistributed) {\n linkTitle += t('EventPage.DistributingMarkTitle');\n }\n\n return (\n \n \n \n \n \n \n {event.title}\n \n \n {dayjs(event.date).locale('en').format(Constants.DateFormat)}\n \n \n {event.venue.city}, {event.venue.country}\n \n \n \n \n \n );\n};\n\nconst Link = styled(RLink)`\n display: block;\n\n &:hover {\n filter: brightness(80%);\n }\n`;\n\nconst EventContainer = styled(motion.div)<{ main: boolean }>`\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n height: ${(props) => (props.main ? '100vw' : '50vw')};\n min-height: ${(props) => (props.main ? '410px' : '264px')};\n max-height: ${(props) => (props.main ? '560px' : '364px')};\n position: relative;\n`;\n\nconst HeaderContainer = styled.header<{ main: boolean }>`\n display: flex;\n flex-direction: column;\n align-items: ${(props) => (props.main ? 'center' : 'flex-start')};\n padding: ${(props) => (props.main ? '47px' : '37px')} 25px;\n z-index: 1;\n position: absolute;\n width: 100%;\n bottom: 0;\n left: 0;\n right: 0;\n`;\n\nconst Title = styled.h1<{ main: boolean; isDistributed: boolean }>`\n font-family: ${(props) => props.theme.fonts.bolderFont};\n font-size: ${(props) => (props.main ? '42px' : '28px')};\n line-height: ${(props) => (props.main ? '52px' : '34px')};\n margin: 0 0 1px 0;\n order: ${(props) => (props.main ? 2 : 1)};\n text-align: ${(props) => (props.main ? 'center' : 'left')};\n\n &:after {\n content: ${(props) => props.isDistributed && '\"\"'};\n position: relative;\n width: ${(props) => (props.main ? '38px' : '25px')};\n height: ${(props) => (props.main ? '38px' : '25px')};\n display: inline-block;\n margin-left: 8px;\n background: url(${(props) => props.theme.img.icons.plane}) center center no-repeat;\n background-size: contain;\n }\n`;\n\nconst SubTitle = styled.h2<{ main: boolean }>`\n font-size: ${(props) => (props.main ? '24px' : '18px')};\n line-height: ${(props) => (props.main ? '29px' : '22px')};\n margin: 0 0 1px 0;\n text-align: ${(props) => (props.main ? 'center' : 'left')};\n`;\n\nconst Date = styled.time<{ main: boolean }>`\n font-size: ${(props) => (props.main ? '24px' : '18px')};\n line-height: ${(props) => (props.main ? '29px' : '22px')};\n margin: 0 0 1px 0;\n text-align: ${(props) => (props.main ? 'center' : 'left')};\n order: ${(props) => (props.main ? 1 : 2)};\n`;\n\nconst City = styled(SubTitle)`\n order: 3;\n color: ${(props) => props.theme.colors.accent};\n`;\n\nconst Poster = styled(Image)`\n object-position: 50% 20%;\n`;\n\nexport default EventHeadline;\n","export * from './userTicketItem';\nexport * from './userTicketsList';\n","import { IEventStoreState } from '../event/types';\n\nexport interface IShareStoreState {\n event: IEventStoreState;\n}\n\nexport class ShareStoreState implements IShareStoreState {\n public event: IEventStoreState;\n\n constructor() {\n this.event = null;\n }\n}\n\nexport enum ShareActionTypes {\n SHARE_INIT = '@@share/INIT',\n CLEAR_INIT = '@@share/CLEAR_INIT',\n}\n","import dayjs from 'dayjs';\nimport { IUserStoreState, IUserBalanceStoreState } from '../store/user/types';\nimport Constants from '../store/constants';\nimport { DomainSetting, LanguageSetting } from '../settings/appSettings';\nimport RouteService from '../services/routeService';\n\nconst routeSrv = new RouteService();\n\nclass UserHelper {\n public static generateReferralUrl(\n user: IUserStoreState,\n eventSlug?: string,\n sectorSlug?: string,\n rowSlug?: string,\n tickets?: number,\n host = true\n ): string {\n return (\n !!user &&\n `${host ? routeSrv.getBaseUrl() : ''}/r/${user.referralSlug}` +\n (!!eventSlug ? `/${eventSlug}` : '') +\n (!!eventSlug && !!sectorSlug ? `/${sectorSlug}` : '') +\n (!!eventSlug && !!sectorSlug && !!rowSlug ? `/${rowSlug}` : '') +\n (!!eventSlug && !!sectorSlug && !rowSlug && !!tickets ? `/${tickets}` : '') +\n '/'\n );\n }\n\n public static generateReferralUrlByToken(\n user: IUserStoreState,\n eventSlug: string,\n token: string,\n host = true\n ): string {\n return !!token && `${host ? routeSrv.getBaseUrl() : ''}/tr/${user.referralSlug}/${eventSlug}/${token}`;\n }\n\n public static isPhoneCodeSendingAvailable(user: IUserStoreState): boolean {\n return (\n !!user &&\n (!user.phoneCodeSentAt ||\n dayjs(user.phoneCodeSentAt).clone().add(Constants.ResendCodeInSecs, 's').isBefore(dayjs()))\n );\n }\n\n public static getProfileIconEmblem(user: IUserStoreState): string {\n if (!user) return '';\n const name = user.fullName || user.referralSlug;\n return name ? name[0] : '';\n }\n\n public static getBalanceByCurrency(user: IUserStoreState, currency: string): IUserBalanceStoreState {\n return !!user && !!currency && user.stats.balances.find((b) => b.currency === currency);\n }\n\n public static checkoutLanguage(): string {\n const domain = window.location.host;\n const parseDomain = domain.split('.');\n const topLevelDomain = parseDomain[parseDomain.length - 1];\n\n if (topLevelDomain !== DomainSetting.Eu) {\n return LanguageSetting.Ru;\n }\n\n const { language } = window.navigator;\n return language.includes(LanguageSetting.Ru) ? LanguageSetting.Ru : LanguageSetting.En;\n }\n}\n\nexport default UserHelper;\n","import { IVenueSectorStoreState, VenueSectorStoreState } from './types';\n\nexport interface IProfileTicketQuotaStoreState {\n id: number;\n title: string;\n total: number;\n left: number;\n currency: string;\n price: number;\n isPrivate?: boolean;\n isAvailableForDistribution?: boolean;\n sector: IVenueSectorStoreState;\n}\n\nexport class ProfileTicketQuotaStoreState implements IProfileTicketQuotaStoreState {\n id: number;\n title: string;\n total: number;\n left: number;\n currency: string;\n price: number;\n isPrivate?: boolean;\n isAvailableForDistribution?: boolean;\n sector: IVenueSectorStoreState;\n\n constructor(dto?: any) {\n this.title = dto && dto.Title ? dto.Title : '';\n this.id = dto && dto.Id ? dto.Id : 0;\n this.total = dto && dto.TicketsTotal ? dto.TicketsTotal : 0;\n this.left = dto && dto.TicketsLeft ? dto.TicketsLeft : 0;\n this.currency = dto && dto.Currency ? dto.Currency : '';\n this.price = dto && dto.PricePerTicket ? dto.PricePerTicket : 0;\n this.sector = dto && dto.Sector ? new VenueSectorStoreState(dto.Sector) : null;\n this.isPrivate = dto && dto.IsPrivate ? dto.IsPrivate : null;\n this.isAvailableForDistribution = dto && dto.IsAvailableForDistribution ? dto.IsAvailableForDistribution : null;\n }\n}\n","import React, { FC } from 'react';\nimport { loadStripe, StripeElementsOptions } from '@stripe/stripe-js';\nimport { Elements } from '@stripe/react-stripe-js';\nimport { CheckoutForm } from './checkoutForm';\nimport { StripeSettings } from '../../settings/appSettings';\n\nconst stripeKeys: { [key: number]: string } = {\n 0: StripeSettings.STRIPE_KEY,\n 1: StripeSettings.STRIPE_KEY,\n 2: StripeSettings.STRIPE_TM_KEY,\n};\n\nconst getStripePromise = (provider: number) => {\n const stripeKey = stripeKeys[provider];\n console.log('stripeKey', stripeKey);\n\n if (!stripeKey) {\n throw new Error(`No Stripe key found for provider ${provider}`);\n }\n return loadStripe(stripeKey);\n};\n\nexport const StripeCheckoutForm: FC = ({ paymentToken, provider }) => {\n console.log('provider', provider);\n const stripePromise = getStripePromise(provider);\n\n const options: StripeElementsOptions = {\n locale: 'en-GB',\n clientSecret: paymentToken,\n loader: 'always',\n appearance: {\n ...{ theme: 'night', variables: { borderRadius: '24px' } },\n },\n };\n\n return (\n \n \n \n );\n};\n\ntype ContentPropsType = {\n paymentToken: string;\n provider: number;\n};\n","import { BaseApiService } from '../baseApiService';\nimport { RegionalInfoStoreState, IRegionalInfoStoreState } from '../../store/region/types';\nimport { AppSettingsState, IAppSettingsState } from '../../store/appSettings/types';\n\nexport class HomeApiService extends BaseApiService {\n private static _instance: HomeApiService;\n\n constructor(config?: any) {\n if (typeof HomeApiService._instance === 'undefined') {\n super(config);\n HomeApiService._instance = this;\n }\n return HomeApiService._instance;\n }\n\n public async getRegion(): Promise {\n const response = await this.get('/regionalInfo');\n return new RegionalInfoStoreState(response.data);\n }\n\n public async getAppSettings(): Promise {\n const response = await this.get(`appsettings`);\n return new AppSettingsState(response.data);\n }\n}\n","import { motion } from 'framer-motion';\nimport styled from 'styled-components';\n\ninterface IPageContentProps {\n center?: boolean;\n noPadding?: boolean;\n roundCorners?: boolean;\n}\n\nexport const PageContent = styled(motion.section)`\n border-radius: ${(props) => props.roundCorners && '26px 26px 0 0'};\n background-color: ${(props) => props.roundCorners && props.theme.colors.bg};\n top: ${(props) => props.roundCorners && '-26px'};\n position: relative;\n padding: ${(props) => (props.noPadding ? '0' : `20px 25px ${props.roundCorners ? '0' : '25px'} 25px`)};\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: ${(props) => props.center && 'center'};\n justify-content: ${(props) => props.center && 'center'};\n z-index: 1;\n`;\n\nexport default PageContent;\n","import React, { FC, useEffect, useState } from 'react';\nimport { Alert, Slide } from '@mui/material';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { AlertColor } from '@mui/material/Alert/Alert';\nimport IconButton from '@mui/material/IconButton';\nimport { useTranslation } from 'react-i18next';\nimport CloseIcon from '@mui/icons-material/Close';\nimport { clearError } from '../../store/app/actions';\nimport { IGlobalStoreState } from '../../store';\n\nexport const AlertError: FC = () => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const [close, setClose] = useState(true);\n\n const message = useSelector((state) => state.app.error?.message);\n const type = useSelector((state) => state.app.error?.type);\n\n const closeHandle = () => {\n setClose(false);\n dispatch(clearError());\n };\n\n useEffect(() => {\n if (!message) {\n return;\n }\n\n scrollTo({ top: 0, behavior: 'smooth' });\n const timeout = setTimeout(() => {\n setClose(false);\n dispatch(clearError());\n }, 5000);\n\n return () => {\n clearTimeout(timeout);\n setClose(true);\n };\n }, [dispatch, message]);\n\n if (!message) {\n return null;\n }\n\n return (\n \n \n \n \n }\n sx={{ position: 'absolute', top: 0, right: 0, margin: '10px', borderRadius: '50px', zIndex: 999 }}\n >\n {t(message)}\n \n \n );\n};\n","import * as React from 'react';\nimport { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useParams } from 'react-router';\nimport styled from 'styled-components';\n\nimport { useTranslation } from 'react-i18next';\nimport { Page, PageContent } from '../../../components/UI';\nimport { EventCheckoutHeader } from '../../../components/event';\nimport { EmailForm, IEmailForm } from '../../../components/forms';\nimport { checkCurrentCheckout, checkoutSetEmail, widgetCheckoutProcess } from '../../../store/checkout/actions';\nimport { CheckoutHelper, EventHelper } from '../../../helpers';\nimport { ICheckoutStoreState } from '../../../store/checkout/types';\nimport { IErrorStoreState } from '../../../store/app/types';\nimport { IGlobalStoreState } from '../../../store';\nimport { StripeCheckoutForm } from '../../../components/forms/stripeCheckoutForm';\n\nconst WidgetCheckoutPage = () => {\n const dispatch = useDispatch();\n const { t } = useTranslation();\n const checkoutSteps = 2;\n\n const [errors, setErrors] = useState(null);\n const [redirectUrl, setRedirectUrl] = useState(null);\n const { token } = useParams<{ token: string }>();\n\n const checkout = useSelector((state) => state.checkout);\n const isInitializing = useSelector((state) => state.app.isInitializing);\n const error = useSelector((state) => state.app.error);\n const isAuthorized = useSelector((state) => state.app.isAuthorized);\n\n useEffect(() => {\n init(checkout);\n }, []);\n\n useEffect(() => {\n setErrors({ form: error });\n }, [error?.details, error?.message]);\n\n useEffect(() => {\n const isAvailableForProcessing = CheckoutHelper.getIsAvailableForProcessing(checkout) && !isAuthorized;\n if (isAvailableForProcessing) {\n handlePaymentFormSubmit(token);\n }\n }, [checkout?.email, isAuthorized, token]);\n\n useEffect(() => {\n const IsInProcess = CheckoutHelper.getIsProcessed(checkout) && CheckoutHelper.getIsInProcess(checkout);\n if (IsInProcess) {\n init(checkout);\n }\n }, [checkout?.process, checkout?.complete?.result?.isProcessing]);\n\n useEffect(() => {\n if (CheckoutHelper.isRedirectingMethod(checkout)) {\n setRedirectUrl(checkout.process.paymentRedirectUrl);\n }\n }, [checkout?.process, checkout?.process?.paymentRedirectUrl, checkout?.process?.paymentProvider]);\n\n const renderEmailForm = (checkoutModel: ICheckoutStoreState) => {\n const { email } = checkoutModel;\n const title = isAuthorized ? t('CheckoutWidget.BookTicketsNoteAuthorized') : t('CheckoutWidget.BookTicketsNote');\n return (\n \n
\n {t('CheckoutWidget.Step')} 1 {t('CheckoutWidget.Of')} {checkoutSteps}\n
\n {title}\n handleEmailFormSubmit(formModel)}\n />\n
\n );\n };\n\n const renderPaymentForm = (checkoutModel: ICheckoutStoreState) => {\n const step = 2;\n return (\n \n
\n {t('CheckoutWidget.Step')} {step} {t('CheckoutWidget.Of')} {checkoutSteps}\n
\n {t('CheckoutWidget.PayByCard')}\n {renderCheckoutContent(checkoutModel)}\n
\n );\n };\n\n const renderCheckoutContent = (checkoutModel: ICheckoutStoreState) => {\n const isRedirecting = !!redirectUrl;\n const needForm = CheckoutHelper.getIsNeedPaymentForm(checkoutModel);\n if (isRedirecting) {\n window.location.href = redirectUrl;\n }\n return (\n <>\n {!isRedirecting && needForm && (\n \n )}\n {isRedirecting && (\n \n {t('CheckoutWidget.PaymentRedirectionMessage')}\n \n )}\n \n );\n };\n\n const handleEmailFormSubmit = (formModel: IEmailForm) => {\n if (formModel) {\n dispatch(checkoutSetEmail(formModel.email));\n }\n };\n\n const handlePaymentFormSubmit = (token: string) => {\n dispatch(widgetCheckoutProcess(token));\n };\n\n const init = (checkout: ICheckoutStoreState) => {\n if (CheckoutHelper.getIsProcessed(checkout) && !CheckoutHelper.getIsCompleted(checkout)) {\n dispatch(checkCurrentCheckout());\n return;\n }\n };\n\n const checkoutModel = checkout;\n const isInitiated = CheckoutHelper.getIsInitiated(checkoutModel);\n if (!isInitiated || isInitializing || !checkoutModel) {\n return null;\n }\n\n const isEmailSet = CheckoutHelper.getIsEmailSet(checkoutModel);\n const isProcessed = CheckoutHelper.getIsProcessed(checkoutModel);\n const { event } = checkoutModel.init;\n\n let posterUrl = event.optionPosterUrl;\n if (posterUrl === '') {\n posterUrl = event.posterUrl;\n }\n\n return (\n \n \n {isInitiated && !isEmailSet && renderEmailForm(checkoutModel)}\n {isProcessed && renderPaymentForm(checkoutModel)}\n \n );\n};\n\nconst Header: any = styled.h2`\n font-size: 14px;\n margin: 0 0 10px 0;\n text-align: center;\n font-family: ${(props) => props.theme.fonts.boldFont};\n`;\n\nconst RedirectWrapper = styled.div`\n flex: 1;\n align-items: center;\n justify-content: center;\n`;\n\nconst RedirectTitle = styled(Header as any)``;\n\nconst Title = styled.h1`\n font-size: 14px;\n text-align: center;\n`;\n\nexport default WidgetCheckoutPage;\n","export interface IEventDetailsTicketQuotaStoreState {\n left: number;\n currency: string;\n price: number;\n isPrivate?: boolean;\n isAvailableForDistribution?: boolean;\n}\n\nexport class EventDetailsTicketQuotaStoreState implements IEventDetailsTicketQuotaStoreState {\n left: number;\n currency: string;\n price: number;\n isPrivate?: boolean;\n isAvailableForDistribution?: boolean;\n\n constructor(dto?: any) {\n this.left = dto && dto.TicketsLeft ? dto.TicketsLeft : 0;\n this.currency = dto && dto.Currency ? dto.Currency : '';\n this.price = dto && dto.PricePerTicket ? dto.PricePerTicket : 0;\n this.isPrivate = dto && dto.IsPrivate ? dto.IsPrivate : null;\n this.isAvailableForDistribution = dto && dto.IsAvailableForDistribution ? dto.IsAvailableForDistribution : null;\n }\n}\n","import { Box, Grid, Link, Typography } from '@mui/material';\nimport { makeStyles } from 'tss-react/mui';\nimport React, { FC, memo } from 'react';\nimport dayjs from 'dayjs';\nimport { SkeletonEventCarousel } from './skeletonEventCarousel';\nimport { ItemEventCarouselType } from './events';\nimport { useRoutesHelper } from '../../helpers/routesHelper';\nimport { AppTheme } from '../../settings/appTheme';\nimport Constants from '../../store/constants';\n\nconst useStyles = makeStyles()((_theme, _params, classes) => ({\n box: {\n overflow: 'scroll',\n overflowY: 'hidden',\n marginTop: 20,\n height: '250px',\n '&::-webkit-scrollbar': {\n height: `${AppTheme.scrollbarHeight}`,\n },\n },\n gridList: {\n flexWrap: 'nowrap',\n // Promote the list into his own layer on Chrome. This cost memory but helps keeping high FPS.\n transform: 'translateZ(0)',\n width: '100%',\n marginBottom: 20,\n },\n gridTile: {\n height: '175px',\n cursor: 'pointer',\n margin: '0px 24px 12px 0px',\n width: '240px',\n },\n gridTileImage: {\n height: '170px',\n width: '240px',\n objectFit: 'cover',\n borderRadius: '8px',\n boxShadow: '0px 8px 15px rgb(0 0 0 / 45%)',\n },\n gradientImg: {\n position: 'absolute',\n width: '240px',\n height: '70px',\n left: '0px',\n top: '100px',\n background: 'linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%)',\n opacity: 0.7,\n borderRadius: '0px 0px 8px 8px',\n },\n subTitleText: {\n color: '#6B6B6B',\n },\n gridText: {\n marginTop: 10,\n marginBottom: 6,\n },\n linkStyle: {\n '&:hover': {\n color: 'rgb(178, 178, 178)',\n filter: 'brightness(60%)',\n },\n },\n gridImg: {\n position: 'relative',\n '&:hover': {\n [`& .${classes.gridTileImage}, .${classes.gradientImg}`]: {\n filter: 'brightness(60%)',\n },\n },\n },\n titleText: {\n fontSize: 16,\n lineHeight: '16px',\n },\n}));\n\nexport const EventCarousel: FC = memo(({ events, isLoading, getItemLink }) => {\n const { classes } = useStyles();\n const { handleEventLink } = useRoutesHelper();\n\n return (\n \n \n {isLoading && }\n\n {events?.length > 0 &&\n !isLoading &&\n events.map((item: ItemEventCarouselType) => (\n \n handleEventLink(item.domainTypes, getItemLink(item.key))}\n className={classes.linkStyle}\n >\n \n \n {item.title}\n
\n \n \n {item.title}\n \n \n \n {`${dayjs(item.date).format(Constants.DateFormat)}, ${item.city}`}\n \n \n \n \n \n ))}\n \n \n );\n});\n\ntype EventCarouselType = {\n events: ItemEventCarouselType[];\n getItemLink: (itemKey: string) => string;\n reloadDependencyValue?: any;\n isLoading: boolean;\n};\n","import * as React from 'react';\nimport { FC, memo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { ICheckoutStoreState } from '../../../store/checkout/types';\nimport { CheckoutHelper } from '../../../helpers';\nimport { Utils } from '../../../services';\nimport Constants from '../../../store/constants';\nimport { ListItem } from './eventCheckoutHeader';\nimport EventInfoItem from '../eventInfoItem';\n\ntype RenderPriceInfoPropsType = {\n checkoutModel: ICheckoutStoreState;\n isAuthorized: boolean;\n};\n\nexport const RenderPriceInfo: FC = memo(({ checkoutModel, isAuthorized }) => {\n const { t } = useTranslation();\n\n if (!CheckoutHelper.getIsInitiated(checkoutModel)) {\n return null;\n }\n\n const paymentInfo = checkoutModel.init;\n const paymentMethod = paymentInfo.event.paymentMethods.find((m) => m.method === checkoutModel.paymentMethod);\n if (!paymentMethod) {\n return null;\n }\n\n const commission = paymentInfo.priceComission;\n const { currency } = paymentInfo;\n\n const pricePayByPointsTitle = `${paymentInfo.pricePayByPoints} ${t('Checkout.PointsCurrency')} \n ${Utils.getEmojiFlagByCurrency(currency)}`;\n let title = `${paymentInfo.priceTotal} ${currency}`;\n\n if (isAuthorized) {\n title += ` ${Constants.BulletDelimiter} ${pricePayByPointsTitle}`;\n }\n\n let subtitle =\n commission > 0\n ? `${commission} ${currency} (${t('Checkout.BankCommission')} ${(paymentMethod.comission * 100).toFixed(2)}%)`\n : '';//t('Checkout.NoCommission');\n\n if (checkoutModel.usePoints) {\n title = `${paymentInfo.priceTotal} ${currency} = ${paymentInfo.pricePayByCard} ${currency} + ${pricePayByPointsTitle}`;\n subtitle =\n commission > 0\n ? `${commission} ${currency} ${t('Checkout.CommissionIncluded')}`\n : t('Checkout.CommissionIncluded');\n }\n return (\n \n \n \n );\n});\n","import React from 'react';\nimport { Route, Switch } from 'react-router-dom';\nimport { InformationSuccess } from './informationSuccess';\nimport { Routes } from '../../../store/routes';\nimport { InformationFailed } from './informationFailed';\n\nexport const WidgetInformationRoutes = () => (\n (\n \n \n \n \n )}\n />\n);\n","import dayjs from 'dayjs';\n\nexport interface IRegionalInfoStoreState {\n countryCode: string;\n domainName: string;\n isDomainRequired: boolean;\n lastCheckedAt?: dayjs.Dayjs;\n city: string;\n}\n\nexport class RegionalInfoStoreState implements IRegionalInfoStoreState {\n countryCode: string;\n domainName: string;\n isDomainRequired: boolean;\n lastCheckedAt?: dayjs.Dayjs;\n city: string;\n\n constructor(dto?: any) {\n this.countryCode = dto && dto.CountryCode ? dto.CountryCode : '';\n this.domainName = dto && dto.DomainName ? dto.DomainName : '';\n this.isDomainRequired = dto && dto.IsDomainRequired ? dto.IsDomainRequired : false;\n this.city = dto && dto.City ? dto.City : '';\n }\n}\n\nexport const enum RegionActionTypes {\n REGION_SET = '@region/SET',\n}\n","import dayjs from 'dayjs';\n\nimport { IDistributionInfo, DistributionInfo } from '../user/types';\n\nexport interface IDistributionStoreState extends IDistributionInfo {\n expirationDate?: dayjs.Dayjs;\n}\n\nexport class DistributionStoreState extends DistributionInfo implements IDistributionStoreState {\n expirationDate?: dayjs.Dayjs;\n\n constructor(distributionSlug?: string, expirationDate?: dayjs.Dayjs) {\n super(distributionSlug);\n this.expirationDate = expirationDate || null;\n }\n}\n\nexport const enum DistributionActionTypes {\n DISTRIBUTION_INIT = '@@distribution/INIT',\n DISTRIBUTION_CLEAR = '@@distribution/CLEAR',\n}\n","import dayjs from 'dayjs';\nimport { BaseApiService } from '../baseApiService';\nimport {\n EventCategory,\n EventShortInformation,\n EventStoreState,\n EventType,\n IEventCategory,\n IEventShortInformation,\n IEventStoreState,\n ILocationShortInformation,\n ISchema,\n LocationShortInformation,\n Schema,\n} from '../../store/event/types';\nimport { EventDetailsStoreState, IEventDetailsStoreState } from '../../store/event/eventDetails/EventDetailsStoreState';\nimport EventHelper from '../../helpers/eventHelper';\n\nexport type GetEventByTypeParams = {\n eventType: EventType;\n search?: string | null;\n date?: Date | null;\n categoryId?: number | null;\n count?: number | null;\n city?: string | null;\n};\n\nexport type GetEventByCategoriesParams = { categoryId: number };\nexport type GetCategoryParams = { categorySlug: string };\nexport type GetSectorSchemaParams = { venueSlug: string; sectorSlug: string; schemaVersion: number };\nexport type GetVenueSchemaParams = { venueSlug: string; schemaVersion: number };\n\nexport class EventsApiService extends BaseApiService {\n private static _instance: EventsApiService;\n\n constructor(config?: any) {\n if (typeof EventsApiService._instance === 'undefined') {\n super(config);\n EventsApiService._instance = this;\n }\n return EventsApiService._instance;\n }\n\n public async getDatepickerDates(date: Date): Promise> {\n const responce = await this.get(`/calendar/dates?baseDate=${dayjs(date).format('YYYY-MM-DDTHH:mm:ss')}`);\n return responce.data ? responce.data.map((item: string | number | Date) => new Date(item)) : [];\n }\n\n public async getEventsCategories(): Promise> {\n const domain = window.location.hostname;\n const resultDomainType = EventHelper.getDomainType(domain);\n const response = await this.get(`/categories?dtype=${resultDomainType}`);\n return response.data ? response.data.map((item) => new EventCategory(item)) : [];\n }\n\n public async getCategory(eventParams: GetCategoryParams): Promise {\n const response = await this.get(`/categories/${eventParams.categorySlug}`);\n return new EventCategory(response.data);\n }\n\n public async getSectorSchema(eventParams: GetSectorSchemaParams): Promise {\n const response = await this.get(\n `/venue/${eventParams.venueSlug}/sector/${eventParams.sectorSlug}/schema?version=${eventParams.schemaVersion}`\n );\n return new Schema(response.data);\n }\n\n public async getVenueSchema(eventParams: GetVenueSchemaParams): Promise {\n const response = await this.get(`/venue/${eventParams.venueSlug}/schema?version=${eventParams.schemaVersion}`);\n return new Schema(response.data);\n }\n\n public async getEventsByType(eventParams: GetEventByTypeParams): Promise> {\n const domain = window.location.hostname;\n const resultDomainType = EventHelper.getDomainType(domain);\n\n let params = `?eventType=${eventParams.eventType}&dtype=${resultDomainType}`;\n\n if (eventParams.search) {\n params += `&search=${eventParams.search}`;\n }\n\n if (eventParams.date) {\n params += `&date=${dayjs(eventParams.date).format('YYYY-MM-DDTHH:mm:ss')}`;\n }\n\n if (eventParams.categoryId) {\n params += `&categoryId=${eventParams.categoryId}`;\n }\n\n if (eventParams.city) {\n params += `&city=${eventParams.city}`;\n }\n\n if (eventParams.count) {\n params += `&count=${eventParams.count}`;\n }\n\n const response = await this.get(params);\n return response.data ? response.data.map((item) => new EventShortInformation(item)) : [];\n }\n\n public async getEventsByCategories(eventParams: GetEventByCategoriesParams): Promise> {\n const domain = window.location.hostname;\n const resultDomainType = EventHelper.getDomainType(domain);\n const params = `?categoryId=${eventParams.categoryId}&eventType=${EventType.Category}&dtype=${resultDomainType}`;\n const response = await this.get(params);\n return response.data ? response.data.map((item) => new EventShortInformation(item)) : [];\n }\n\n public async searchEvents(search: string): Promise> {\n const response = await this.get(`/search?name=${search}&count=6`);\n return response.data ? response.data.map((item: any) => new EventShortInformation(item)) : [];\n }\n\n public async searchLocations(search: string): Promise> {\n const response = await this.get(`locations/search?query=${search}&count=6`);\n return response.data ? response.data.map((item: any) => new LocationShortInformation(item)) : [];\n }\n\n public async getLocations(): Promise> {\n const response = await this.get(`locations`);\n return response.data ? response.data.map((item: any) => new LocationShortInformation(item)) : [];\n }\n\n public async getEvents(city: string): Promise> {\n const domain = window.location.hostname;\n const resultDomainType = EventHelper.getDomainType(domain);\n const response = await this.get(`list?dtype=${resultDomainType}`);\n return response.data ? response.data.map((item: any) => new EventStoreState(item)) : [];\n }\n\n public async getEventById(id: string, distributorSlug?: string, token?: string): Promise {\n const domain = window.location.hostname;\n const resultDomainType = EventHelper.getDomainType(domain);\n const response = await this.get(\n `book/details/${id}${distributorSlug ? `/${distributorSlug}` : ''}${\n token ? `/${token}` : ''\n }?dtype=${resultDomainType}`\n );\n return new EventStoreState(response.data);\n }\n\n public async getSellEventDetails(slug: string): Promise {\n const response = await this.get(`sell/details/${slug}`);\n return new EventStoreState(response.data);\n }\n\n public async getEventDetailsBySlug(\n id: string,\n distributorSlug?: string,\n token?: string\n ): Promise {\n const domain = window.location.hostname;\n const resultDomainType = EventHelper.getDomainType(domain);\n const response = await this.get(\n `details/${id}${distributorSlug ? `/${distributorSlug}` : ''}${\n token ? `/${token}` : ''\n }?dtype=${resultDomainType}`\n );\n return new EventDetailsStoreState(response.data);\n }\n\n public async getUserEvents(): Promise> {\n const domain = window.location.hostname;\n const resultDomainType = EventHelper.getDomainType(domain);\n\n const response = await this.get(`/my?dtype=${resultDomainType}`);\n return response.data && response.data.Events ? response.data.Events.map((item) => new EventStoreState(item)) : [];\n }\n\n public async startDistribute(id: string): Promise {\n const response = await this.post(`/my/${id}`);\n return Promise.resolve();\n }\n\n public async stopDistribute(id: string): Promise {\n const response = await this.delete(`/my/${id}`);\n return Promise.resolve();\n }\n}\n","import React, { FC } from 'react';\nimport styled from 'styled-components';\nimport * as Yup from 'yup';\n\nimport { Field, Form, Formik } from 'formik';\nimport { useTranslation } from 'react-i18next';\nimport { Button, RLink, TextInput } from '../UI';\nimport { FieldError, Fieldset, FieldWrapper, FormError } from './commonForm';\nimport { Routes } from '../../store/routes';\nimport { AnimatePresence } from 'framer-motion';\nimport { PopUp } from '../../store/animations';\n\nexport type LoginFormType = {\n email: string;\n password: string;\n};\ntype LoginFormProps = {\n submitTitle: string;\n onSubmit: (LoginFormType) => void;\n};\n\nexport const LoginForm: FC = ({ submitTitle, onSubmit }) => {\n const { t } = useTranslation();\n\n const ValidationSchema = Yup.object().shape({\n email: Yup.string().required(t('Login.EmailRequired')).email(t('Registration.EmailIncorrect')),\n password: Yup.string().required(t('Login.PasswordRequired')),\n });\n\n const initialValues = {\n email: '',\n password: '',\n };\n\n return (\n {\n if (onSubmit) {\n onSubmit(values);\n }\n }}\n validationSchema={ValidationSchema}\n >\n {({ isValid, handleChange, handleBlur, values }) => (\n \n
\n \n {({ field, form }) => (\n \n \n \n {!!form.touched.email && !!form.errors && !!form.errors.email && (\n \n {form.errors.email}\n \n )}\n \n \n )}\n \n \n {({ field, form }) => (\n \n \n \n {!!form.touched.password && !!form.errors && !!form.errors.password && (\n \n {form.errors.password}\n \n )}\n \n \n )}\n \n \n {t('Login.ForgotYourPassword')}\n \n
\n \n {submitTitle}\n \n
\n )}\n \n );\n};\n\nconst StyledForm = styled(Form)`\n width: 100%;\n`;\n\nconst StyledButton = styled(Button)`\n margin-top: 20px;\n`;\n\nconst ForgotPassLink = styled(RLink)`\n font-size: 12px;\n margin-bottom: 15px;\n`;\n","export * from './avatar';\nexport * from './userStats';\nexport * from './userStatItem';\n","export * from './commonForm';\nexport * from './emailForm';\nexport * from './checkoutForm';\nexport * from './purchaseForm';\nexport * from './registrationForm';\nexport * from './loginForm';\nexport * from './editProfileForm';\nexport * from './paymentForm';\nexport * from './passwordRecoveryForm';\nexport * from './resetPasswordForm';\n","let customWindow: any = window;\ncustomWindow.ENVIRONMENT = 'production';\ncustomWindow.API_URL = 'https://fanaticka-api.azurewebsites.net/api/v1';\ncustomWindow.APP_INSIGHTS_ID = '903b769b-906d-4730-bb7f-0619f82d1d2d';\ncustomWindow.STRIPE_KEY = 'pk_live_51OaDN2CYZVeiCZqGVvON9PP5nkBUd3rpYPqKuu0fFJzZ4tTnGHLyFrdEvHcRNjT5lYHrLllvTNFUfs3QyfExiSBS00HF8oIIA1';\ncustomWindow.STRIPE_TM_KEY = 'pk_live_51QKdiQ2KBdqRLOne270frU1R0Jy3Q3pnCQcwMMyw8bYCtPp062WiRdAj3y7Xe88eeFc9MpmSjsMDTivvYjZeEp7k00aqJ7gTAd';\ncustomWindow.REACT_APP_FREEDOM_PAY_API_PUBLISHABLE_TOKEN = 'sVcF5FC3Q2YRhaDNlrPtOeMDeuQUeNmg'\n\nimport './index.tsx';\n","import styled from 'styled-components';\n\nexport const PageTitle = styled.h1`\n margin: 0;\n padding: 0;\n font-size: 14px;\n font-family: ${(props) => props.theme.fonts.lighterFont};\n color: ${(props) => props.theme.colors.accent};\n text-transform: uppercase;\n text-align: left;\n`;\n\nexport default PageTitle;\n","import * as React from 'react';\nimport { connect } from 'react-redux';\nimport { withRouter } from 'react-router';\nimport * as qs from 'query-string';\n\nimport { IGlobalStoreState } from '../../../store';\nimport { Utils, AnalyticService } from '../../../services';\nimport { BookStatus, AlertType, KeyErrors, KeySuccess, StripePaymentStatus } from '../../../store/enums';\nimport { checkoutComplete, checkoutClear, redoCheckout } from '../../../store/checkout/actions';\nimport { ICheckoutStoreState } from '../../../store/checkout/types';\nimport { IErrorStoreState } from '../../../store/app/types';\nimport { PaymentCompleteResult } from '../../../store/payment/types';\nimport { CheckoutHelper } from '../../../helpers';\nimport { withTranslation } from 'react-i18next';\nimport RouteService from '../../../services/routeService';\nimport { setResultInfo } from '../../../store/resultInformarion/actions';\nimport { ResultInfoButtonConfigType, ResultInfoType } from '../../../store/resultInformarion/types';\nimport { distributionClear, distributionInit } from '../../../store/distribution/actions';\n\ninterface IBookResultPageProps {\n type: BookStatus;\n paymentIntentId: string;\n redirectStatus: string;\n checkout: ICheckoutStoreState;\n isLoading: boolean;\n error: IErrorStoreState;\n isAuthorized: boolean;\n\n go: (url: string) => void;\n replace: (url: string) => void;\n checkoutComplete: (refNumber: string, cancel: boolean) => Promise;\n checkoutClear: () => Promise;\n showAlert: (config: ResultInfoType) => void;\n hideAlert: () => void;\n checkoutRedo: () => Promise;\n t: (text: string) => string;\n distributorClear: () => void;\n}\n\ninterface IBookResultPageState {\n isHandlingResult: boolean;\n}\n\nclass BookResultPage extends React.PureComponent {\n private routeSrv = new RouteService();\n private analyticSrv = new AnalyticService();\n\n constructor(props: IBookResultPageProps) {\n super(props);\n\n this.state = {\n isHandlingResult: false,\n };\n }\n\n componentWillMount() {\n this.handlePaymentResult(this.props, this.state);\n }\n\n componentDidMount() {\n if (this.props.type === BookStatus.Timeout) {\n this.props.checkoutClear();\n this.handlePaymentResult(this.props, this.state);\n this.props.showAlert({\n type: AlertType.Error,\n key: KeyErrors.PaymentTimeout,\n title: 'Alert.PaymentTimedOut',\n buttons: [\n {\n title: 'Result.GoToMainPage',\n callback: () => this.props.go('/'),\n },\n ],\n });\n this.props.replace(this.routeSrv.getResultStatusRoute(AlertType.Error, KeyErrors.PaymentTimeout));\n }\n }\n\n componentWillReceiveProps(nextProps: IBookResultPageProps) {\n const isCheckoutChanged = !Utils.isEqual(this.props.checkout, nextProps.checkout);\n const isTypeChanged = this.props.redirectStatus !== nextProps.redirectStatus;\n const isRefNumberChanged = this.props.paymentIntentId !== nextProps.paymentIntentId;\n if (isCheckoutChanged || isTypeChanged || isRefNumberChanged) {\n this.handlePaymentResult(nextProps, this.state);\n }\n }\n\n render() {\n return null;\n }\n\n private handlePaymentResult(props: IBookResultPageProps, state: IBookResultPageState) {\n if (props.paymentIntentId) {\n const cancel = props.redirectStatus === StripePaymentStatus.canceled;\n const final = (checkout: ICheckoutStoreState) => {\n this.setState({ ...state, isHandlingResult: false }, () => {\n this.handlePaymentCompletion(checkout);\n });\n };\n\n if (CheckoutHelper.getIsCompleted(props.checkout)) {\n final(props.checkout);\n } else if (!state.isHandlingResult) {\n this.setState({ ...state, isHandlingResult: true }, () => {\n props\n .checkoutComplete(this.props.checkout.process.referenceNumber, cancel)\n .then(() => {\n final(props.checkout);\n })\n .catch(() => {\n final(props.checkout);\n });\n });\n } else {\n this.handlePaymentCompletion(props.checkout);\n }\n }\n }\n\n private handlePaymentCompletion(checkout: ICheckoutStoreState) {\n if (!checkout || !checkout.complete || !checkout.complete.result) return;\n const completeResult = checkout.complete.result;\n let alertType: AlertType;\n let alertKey: KeySuccess | KeyErrors;\n let title = completeResult.userMessage;\n let message = completeResult.userMessageDetails;\n let callbacks: Array = [];\n\n if (completeResult.isProcessing) {\n alertType = AlertType.Warning;\n alertKey = KeySuccess.PaymentInProcess;\n (title = 'Alert.WaitForTheServerToCompleteThePayment'),\n (callbacks = [\n {\n title: 'Result.GoToMainPage',\n callback: () => this.props.go('/'),\n },\n ]);\n this.props.replace(this.routeSrv.getResultStatusRoute(AlertType.Warning, KeySuccess.PaymentInProcess));\n } else if (!completeResult.isCompleted) {\n alertType = AlertType.Warning;\n alertKey = KeyErrors.PaymentFailed;\n callbacks = [\n {\n title: 'Result.TryAgain',\n callback: async () => {\n await this.props.checkoutRedo();\n this.props.go(this.routeSrv.getCheckoutRoute(checkout.eventSlug, null));\n },\n },\n {\n title: 'Result.Cancel',\n callback: () => this.props.checkoutComplete(this.props.paymentIntentId, true),\n },\n ];\n this.props.replace(this.routeSrv.getResultStatusRoute(AlertType.Warning, KeyErrors.PaymentFailed));\n } else {\n alertType = completeResult.isSuccess ? AlertType.Success : AlertType.Error;\n alertKey = completeResult.isSuccess ? KeySuccess.PaymentSucceeded : KeyErrors.PaymentFailed;\n message = this.props.isAuthorized && completeResult.isSuccess ? 'Result.TicketsAvailabilityMessage' : message;\n callbacks = [\n {\n title: 'Result.GoToMainPage',\n callback: () => this.props.go('/'),\n },\n ];\n\n if (completeResult.isSuccess && this.props.isAuthorized) {\n callbacks.push({\n title: 'Result.MyTickets',\n callback: () => this.props.go(this.routeSrv.getUserTicketsRoute()),\n });\n }\n\n if (completeResult.isSuccess) {\n this.analyticSrv.trackEvent('Purchase', {\n value: checkout.init.priceTotal,\n currency: checkout.init.currency,\n });\n }\n this.props.distributorClear();\n this.props.checkoutClear();\n this.props.replace(this.routeSrv.getResultStatusRoute(alertType, alertKey));\n }\n\n this.props.showAlert({\n type: alertType,\n key: alertKey,\n title: title,\n message: message,\n buttons: callbacks,\n });\n }\n}\n\nconst mapStateToProps = (state: IGlobalStoreState, ownProps: any) => {\n const queryParams: any = qs.parse(ownProps.location && ownProps.location.search);\n return {\n paymentIntentId: queryParams.payment_intent,\n redirectStatus: queryParams.redirect_status,\n checkout: state.checkout,\n isLoading: state.app.isLoading,\n error: state.app.error,\n isAuthorized: state.app.isAuthorized,\n };\n};\n\nconst mapDispatchToProps = (dispatch: any, ownProps: any) => ({\n go: ownProps.history.push,\n replace: ownProps.history.replace,\n checkoutComplete: (refNumber: string, cancel: boolean) => dispatch(checkoutComplete(refNumber, cancel, true)),\n checkoutClear: () => dispatch(checkoutClear()),\n showAlert: (config: ResultInfoType) => dispatch(setResultInfo(config)),\n checkoutRedo: () => dispatch(redoCheckout()),\n distributorClear: () => dispatch(distributionClear()),\n});\n\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(withTranslation()(BookResultPage)));\n","import React, { useState } from 'react';\nimport { PaymentElement, useElements, useStripe } from '@stripe/react-stripe-js';\nimport styled from 'styled-components';\nimport { AppTheme } from '../../settings/appTheme';\nimport { Button } from '../UI';\nimport RouteService from '../../services/routeService';\nimport { Routes } from '../../store/routes';\nimport { setError } from '../../store/app/actions';\nimport { useDispatch } from 'react-redux';\n\nexport const CheckoutForm: React.FC = () => {\n const stripe = useStripe();\n const elements = useElements();\n const dispatch = useDispatch();\n\n const [isLoading, setIsLoading] = useState(false);\n\n const routeSrv = new RouteService();\n\n const handleSubmit = async (e: any) => {\n e.preventDefault();\n\n if (!stripe || !elements) {\n // Stripe.js has not yet loaded.\n // Make sure to disable form submission until Stripe.js has loaded.\n return;\n }\n\n setIsLoading(true);\n\n const { error } = await stripe.confirmPayment({\n elements,\n confirmParams: {\n return_url: `${routeSrv.getBaseUrl()}${Routes.StripeBookResult}`,\n },\n });\n\n // This point will only be reached if there is an immediate error when\n // confirming the paymentV1. Otherwise, your customer will be redirected to\n // your `return_url`. For some paymentV1 methods like iDEAL, your customer will\n // be redirected to an intermediate site first to authorize the paymentV1, then\n // redirected to the `return_url`.\n\n if (error.type) {\n dispatch(setError({ message: error.message, type: 'error' }));\n } else {\n dispatch(setError({ message: 'An unexpected error occurred.', type: 'error' }));\n }\n\n setIsLoading(false);\n };\n\n return (\n
\n \n
\n \n
\n \n \n \n \n );\n};\nconst Notes = styled.div`\n margin-top: 20px;\n`;\n\nconst Logos = styled.div`\n display: block;\n background: url(${AppTheme.img.payment.formLogos}) center no-repeat;\n background-size: contain;\n height: 40px;\n margin: 15px auto 0;\n`;\n","import { Pages } from './enums';\n\nexport class Routes {\n public static Main = '/';\n public static MainSortLocation = '/?city=city';\n public static NewDashboard = '/newDashboard';\n public static Category = `/${Pages.Categories}/:categorySlug`;\n public static Event = `/${Pages.EventDetails}/:eventSlug`;\n public static TokenReferral = '/tr/:distributorSlug/:eventSlug/:token';\n public static RegistrationReferral = '/r/:distributorSlug';\n public static Referral = `/${Pages.Referral}/:distributorSlug/:eventSlug?/:sectorSlug?/:rowSlug?/:tickets?`;\n public static Book = `/${Pages.Book}/:eventSlug/:sectorSlug?/:quotaId?/:rowSlug?/:tickets?`;\n public static Checkout = `${Routes.Book}/${Pages.Checkout}`;\n public static BookResult = `/book/payment/result`;\n public static BookResultError = `/${Pages.Book}/resulterror/`;\n public static User = `/${Pages.User}`;\n public static Registration = `${Routes.User}/${Pages.Registration}`;\n public static Login = `${Routes.User}/${Pages.Login}`;\n public static Profile = `${Routes.User}/${Pages.Profile}`;\n public static EditProfile = `${Routes.User}/${Pages.EditProfile}`;\n public static UserConfirmEmail = `${Routes.User}/${Pages.EmailConfirm}/:status/:token?`;\n public static UserEvents = `${Routes.User}/${Pages.UserEvents}`;\n public static UserTickets = `${Routes.User}/${Pages.UserTickets}`;\n public static UserTicketDetails = `${Routes.UserTickets}/:masterTicketId/:ticketId?`;\n public static UserTicketSellDetails = `${Routes.UserTickets}/sell/:masterTicketId/:ticketId?`;\n public static UserTicketPurchase = `${Routes.UserTickets}/purchase/:masterTicketId/:ticketId?`;\n public static Share = `/${Pages.Sell}/:eventSlug/:sectorSlug?/:rowSlug?/:tickets?`;\n public static ShareLink = `/${Pages.Share}/:eventSlug/:token`;\n public static PasswordRecovery = `${Routes.User}/${Pages.PasswordRecovery}`;\n public static ResetPassword = `${Routes.User}/${Pages.ResetPassword}`;\n public static Contacts = `/${Pages.Contacts}`;\n public static PaymentsInfo = `/${Pages.PaymentsInfo}`;\n public static WidgetBook = `/${Pages.Widget}/${Pages.Book}/:token`;\n public static WidgetCheckout = `/${Pages.Widget}/${Pages.Book}/:token/checkout`;\n public static WidgetBookResult = `/${Pages.Widget}/${Pages.Book}/:token/result/:type?`;\n public static Success = `/${Pages.Success}`;\n public static Failed = `/${Pages.Failed}`;\n public static InformationSuccess = `/${Pages.Success}/:keySuccess`;\n public static InformationError = `/${Pages.Failed}/:keyFailed`;\n public static WidgetInformationSuccess = `/${Pages.Widget}/${Pages.Success}/:keySuccess`;\n public static WidgetInformationFailed = `/${Pages.Widget}/${Pages.Failed}/:keyFailed`;\n public static StripeBookResult = `/book/payment/result`;\n}\n","import * as React from 'react';\nimport { connect } from 'react-redux';\nimport { withRouter } from 'react-router';\nimport * as qs from 'query-string';\n\nimport { IGlobalStoreState } from '../../../store';\nimport { Utils } from '../../../services';\nimport { AlertType, KeyErrors } from '../../../store/enums';\nimport { checkoutClear, checkoutClearPayment, redoCheckout } from '../../../store/checkout/actions';\nimport { ICheckoutStoreState } from '../../../store/checkout/types';\nimport { PaymentCompleteResult } from '../../../store/payment/types';\nimport { setResultInfo } from '../../../store/resultInformarion/actions';\nimport { ResultInfoType } from '../../../store/resultInformarion/types';\nimport RouteService from '../../../services/routeService';\n\ninterface IBookResultErrorPageProps {\n refnumber: string;\n status: string;\n checkout: ICheckoutStoreState;\n\n go: (url: string) => void;\n replace: (url: string) => void;\n checkoutClearPayment: (refNumber: string) => Promise;\n checkoutClear: () => Promise;\n showAlert: (config: ResultInfoType) => void;\n checkoutRedo: () => Promise;\n}\n\ninterface IBookResultErrorPageState {\n isHandlingResult: boolean;\n}\n\nclass BookResultErrorPage extends React.PureComponent {\n constructor(props: IBookResultErrorPageProps) {\n super(props);\n\n this.state = {\n isHandlingResult: false,\n };\n }\n\n componentWillReceiveProps(nextProps: IBookResultErrorPageProps) {\n //ToDo: many request\n const isCheckoutChanged = !Utils.isEqual(this.props.checkout, nextProps.checkout);\n const isTypeChanged = this.props.status !== nextProps.status;\n const isRefNumberChanged = this.props.refnumber !== nextProps.refnumber;\n if (isCheckoutChanged || isTypeChanged || isRefNumberChanged) {\n this.handlePaymentResult(nextProps);\n }\n }\n\n componentWillMount() {\n this.handlePaymentResult(this.props);\n }\n\n componentDidMount() {\n this.handlePaymentResult(this.props);\n }\n\n render() {\n return null;\n }\n\n private handlePaymentResult(props: IBookResultErrorPageProps) {\n const routeSrv = new RouteService();\n\n if (props.refnumber) {\n this.props.checkoutClearPayment(this.props.refnumber);\n this.props.showAlert({\n type: AlertType.Warning,\n key: KeyErrors.PaymentFailed,\n title: 'Result.PaymentErrorHasOccurred',\n message: 'Result.PleaseTryAgainLater',\n buttons: [\n {\n title: 'Result.GoToMainPage',\n callback: () => this.props.go('/'),\n },\n ],\n });\n this.props.replace(routeSrv.getResultStatusRoute(AlertType.Warning, KeyErrors.PaymentFailed));\n }\n }\n}\n\nconst mapStateToProps = (state: IGlobalStoreState, ownProps: any) => {\n const queryParams: any = qs.parse(ownProps.location && ownProps.location.search);\n return {\n refnumber: queryParams.refnumber,\n status: queryParams.status,\n checkout: state.checkout,\n };\n};\n\nconst mapDispatchToProps = (dispatch: any, ownProps: any) => ({\n go: ownProps.history.push,\n replace: ownProps.history.replace,\n checkoutClearPayment: (refNumber: string) => dispatch(checkoutClearPayment(refNumber, true)),\n checkoutClear: () => dispatch(checkoutClear()),\n showAlert: (config: ResultInfoType) => dispatch(setResultInfo(config)),\n checkoutRedo: () => dispatch(redoCheckout()),\n});\n\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(BookResultErrorPage));\n","import { Reducer } from 'redux';\n\nimport { IMenuStoreState, MenuStoreState, MenuActionTypes } from './types';\n\nconst menuReducer: Reducer = (\n state: IMenuStoreState = new MenuStoreState(null),\n action\n): IMenuStoreState => {\n switch (action.type) {\n case MenuActionTypes.MENU_SHOW:\n return { ...state, isShow: true };\n case MenuActionTypes.MENU_HIDE:\n return { ...state, isShow: false };\n case MenuActionTypes.CONTRACTS_INIT:\n return { ...state, contracts: action.payload };\n default:\n return state;\n }\n};\n\nexport default menuReducer;\n","import dayjs from 'dayjs';\nimport { IEventStoreState } from '../store/event/types';\nimport { IBookTicketQuotaStoreState, IVenueSectorStoreState } from '../store/ticket/types';\nimport Constants from '../store/constants';\nimport { IEventDetailsStoreState } from '../store/event/eventDetails/EventDetailsStoreState';\nimport { DomainType } from '../store/enums';\nimport { DomainSetting } from '../settings/appSettings';\nimport { contacts } from '../settings/contactInfo';\n\nexport class EventHelper {\n public static getHasTickets(event: IEventStoreState): boolean {\n return (\n this.getHasQuotas(event) &&\n event.sectors.some((s) => s.ticketQuotas.reduce((sum, current) => (sum += current.left), 0) > 0)\n );\n }\n\n public static getHasSingleQuota(event: IEventStoreState): boolean {\n return this.getHasQuotas(event) && event.sectors.length === 1 && event.sectors[0].ticketQuotas.length === 1;\n }\n\n public static hasSectorTickets(sector: IVenueSectorStoreState): boolean {\n return sector && sector.ticketQuotas && sector.ticketQuotas.some((tq) => tq.left > 0);\n }\n\n public static getQuotaHasTickets(quota: IBookTicketQuotaStoreState): boolean {\n return !!quota && quota.left > 0;\n }\n\n public static isEventDistributed(event: IEventStoreState, userEvents?: Array): boolean {\n return !!event && userEvents.some((e) => e.slug === event.slug);\n }\n\n public static isEventDetailsDistributed(\n event: IEventDetailsStoreState,\n userEvents?: Array\n ): boolean {\n return !!event && userEvents.some((e) => e.slug === event.slug);\n }\n\n public static getEventDetailsMetaDescription(event: IEventDetailsStoreState): string {\n if (!event) {\n return null;\n }\n const title = `${event.title} - ${event.subtitle}`;\n const date = `${dayjs(event.date).format(Constants.DateFormat)}`;\n const place = event.venue ? `${event.venue.title}, ${event.venue.city}` : '';\n return `${title} ${Constants.BulletDelimiter} ${date} ${place && `${Constants.BulletDelimiter} ${place}`}`;\n }\n\n public static getMetaDescription(event: IEventStoreState): string {\n if (!event) {\n return null;\n }\n const title = `${event.title} - ${event.subtitle}`;\n const date = `${dayjs(event.date).format(Constants.DateFormat)}`;\n const place = event.venue ? `${event.venue.title}, ${event.venue.city}` : '';\n return `${title} ${Constants.BulletDelimiter} ${date} ${place && `${Constants.BulletDelimiter} ${place}`}`;\n }\n\n public static getHasQuotas(event: IEventStoreState): boolean {\n return !!event && !!event.sectors && !!event.sectors.some((s) => s.ticketQuotas.length);\n }\n\n public static getDomainType(domainName: string): number {\n const parseDomain = domainName.split('.');\n const domain = parseDomain[parseDomain.length - 1];\n\n switch (domain) {\n case DomainSetting.By:\n return DomainType.By;\n case DomainSetting.Kz:\n return DomainType.Kz;\n case DomainSetting.Ru:\n return DomainType.Ru;\n case DomainSetting.Pl:\n return DomainType.Pl;\n case DomainSetting.Co:\n return DomainType.Co;\n case DomainSetting.Info:\n return DomainType.Info;\n case DomainSetting.Live:\n return DomainType.Live;\n case DomainSetting.Me:\n return DomainType.Me;\n case DomainSetting.Eu:\n return DomainType.Eu;\n case DomainSetting.Com:\n return DomainType.Com;\n default:\n return DomainType.None;\n }\n }\n\n public static getDomainTopLevel = (domainType) => {\n switch (domainType) {\n case DomainType.By:\n return DomainSetting.By;\n case DomainType.Ru:\n return DomainSetting.Ru;\n case DomainType.Pl:\n return DomainSetting.Pl;\n case DomainType.Co:\n return DomainSetting.Co;\n case DomainType.Info:\n return DomainSetting.Info;\n case DomainType.Live:\n return DomainSetting.Live;\n case DomainType.Me:\n return DomainSetting.Me;\n case DomainType.Eu:\n return DomainSetting.Eu;\n case DomainType.Com:\n return DomainSetting.Com;\n case DomainType.Kz:\n return DomainSetting.Kz;\n default:\n return DomainSetting.By;\n }\n };\n public static getContactsByDomain = () => {\n const domainName = location.host;\n const parseDomain = domainName.split('.');\n const domain = parseDomain[parseDomain.length - 1];\n\n return contacts[domain] ?? contacts.live;\n };\n}\n\nexport default EventHelper;\n","import React, { useEffect, useState } from 'react';\nimport { useHistory } from 'react-router';\nimport { useDispatch, useSelector } from 'react-redux';\nimport styled from 'styled-components';\nimport Helmet from 'react-helmet';\n\nimport { useTranslation } from 'react-i18next';\nimport { AnimatePresence } from 'framer-motion';\nimport { IGlobalStoreState } from '../../../../store';\nimport { PageContent } from '../../../../components/UI';\nimport { IErrorStoreState } from '../../../../store/app/types';\nimport { PasswordRecoveryForm, PasswordRecoveryFormType } from '../../../../components/forms';\nimport { resetPassword } from '../../../../store/user/actions';\nimport { PopUp } from '../../../../store/animations';\nimport { AlertType, KeySuccess } from '../../../../store/enums';\nimport { useRoutesHelper } from '../../../../helpers/routesHelper';\nimport { useUtils } from '../../../../services/useUtils';\n\nconst PasswordRecoveryPage = () => {\n const { getResultStatusRoute } = useRoutesHelper();\n const { toPageTitle } = useUtils();\n const { t } = useTranslation();\n\n const dispatch = useDispatch();\n const history = useHistory();\n\n const isInitializing = useSelector((state) => state.app.isInitializing);\n const error = useSelector((state) => state.app.error);\n\n const [errors, setErrors] = useState(null);\n\n useEffect(() => {\n setErrors({ form: error });\n }, [error?.message, error?.details]);\n\n if (isInitializing) {\n return null;\n }\n\n const handleFormSubmit = (formModel: PasswordRecoveryFormType) => {\n if (formModel) {\n (async () => dispatch(resetPassword(formModel.email)))().then(() => {\n history.replace(getResultStatusRoute(AlertType.Info, KeySuccess.EmailSent));\n });\n }\n };\n\n return (\n \n \n \n {toPageTitle(t('PasswordRecovery.PasswordRecovery'))}\n \n
{t('PasswordRecovery.PasswordRecovery')}
\n handleFormSubmit(formModel)}\n errors={errors}\n />\n
\n
\n );\n};\n\nconst Header = styled.h1`\n font-family: ${(props) => props.theme.fonts.boldFont};\n font-size: 18px;\n text-transform: uppercase;\n text-align: center;\n`;\n\nexport default PasswordRecoveryPage;\n","import React, { FC, useCallback, useEffect, useLayoutEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport styled from 'styled-components';\nimport Helmet from 'react-helmet';\nimport { useHistory } from 'react-router';\nimport { useTranslation } from 'react-i18next';\nimport { AnimatePresence } from 'framer-motion';\nimport { IGlobalStoreState } from '../../../store';\nimport { PageContent } from '../../../components/UI';\nimport { ChangePasswordInfo, IUserStoreState, UpdateUserStoreState } from '../../../store/user/types';\nimport { EditProfileForm } from '../../../components/forms';\nimport { confirmPhone, updatePhone, updateUser } from '../../../store/user/actions';\nimport { Utils } from '../../../services';\nimport { IErrorStoreState } from '../../../store/app/types';\nimport { useRoutesHelper } from '../../../helpers/routesHelper';\nimport { PopUp } from '../../../store/animations';\n\nexport type IEditProfileForm = {\n phoneCode: string;\n oldPassword: string;\n newPassword: string;\n newPasswordConfirm: string;\n phoneNumber: string;\n fullName: string;\n referralSlug: string;\n imageUrl: string;\n email: string;\n emailConfirmed: boolean;\n phoneNumberConfirmed: boolean;\n};\n\nconst EditProfilePage: FC = () => {\n const { getProfileRoute } = useRoutesHelper();\n const history = useHistory();\n const { t } = useTranslation();\n const dispatch = useDispatch();\n\n const isAuthorized = useSelector((state) => state.app.isAuthorized);\n const user = useSelector((state) => state.user);\n const error = useSelector((state) => state.app.error);\n\n const [errors, setErrors] = useState(null);\n\n useLayoutEffect(() => {\n if (!isAuthorized) {\n history.replace(getProfileRoute());\n return;\n }\n }, []);\n\n useEffect(() => {\n setErrors({ form: error });\n }, [error?.message, error?.details]);\n\n const handleSendCodeClick = useCallback((phone: string) => {\n if (!phone) {\n return;\n }\n dispatch(updatePhone(phone));\n setErrors({ phone: null });\n }, []);\n\n const handleFormSubmit = useCallback(\n async (formModel: IEditProfileForm) => {\n if (!formModel) {\n return;\n }\n\n const updateUserModel = new UpdateUserStoreState(formModel.fullName, formModel.referralSlug);\n const updatePasswordModel =\n !!formModel.oldPassword && !!formModel.newPassword\n ? new ChangePasswordInfo(formModel.oldPassword, formModel.newPassword)\n : null;\n const isPhoneConfirmed = user.phoneNumberConfirmed;\n const isPhoneChanged = formModel.phoneNumber !== user.phoneNumber;\n const isFullNameChanged = formModel.fullName !== user.fullName;\n const isReferralSlugChanged = formModel.referralSlug !== user.referralSlug;\n\n if (isFullNameChanged || isReferralSlugChanged || updatePasswordModel) {\n await dispatch(updateUser(updateUserModel, updatePasswordModel));\n }\n\n if ((!isPhoneConfirmed || isPhoneChanged) && formModel.phoneCode) {\n await dispatch(confirmPhone(formModel.phoneCode, formModel.phoneNumber));\n }\n\n history.push(getProfileRoute());\n },\n [\n dispatch,\n getProfileRoute,\n history,\n user?.fullName,\n user?.phoneNumber,\n user?.phoneNumberConfirmed,\n user?.referralSlug,\n ]\n );\n\n return (\n \n \n \n {Utils.toPageTitle(t('EditProfileForm.EditingProfile'))}\n \n
{t('EditProfileForm.Editing')}
\n {isAuthorized && (\n handleSendCodeClick(phone)}\n onSubmit={(formModel: IEditProfileForm) => handleFormSubmit(formModel)}\n />\n )}\n
\n
\n );\n};\n\nconst Header = styled.h1`\n font-family: ${(props) => props.theme.fonts.boldFont};\n font-size: 18px;\n text-transform: uppercase;\n text-align: center;\n`;\n\nexport default EditProfilePage;\n","import React, { FC, useCallback, useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport styled from 'styled-components';\nimport dayjs from 'dayjs';\nimport YoutubePlayer from 'react-youtube-player';\nimport i18next from 'i18next';\nimport { useHistory, useLocation } from 'react-router';\nimport { useTranslation } from 'react-i18next';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport { IGlobalStoreState } from '../store';\nimport { Button, RLink } from '../components/UI';\nimport Timer from '../components/timer/timer';\nimport { BookStatus, DomainType, Locale, Pages } from '../store/enums';\nimport { checkCurrentCheckout, checkoutClear, checkoutComplete } from '../store/checkout/actions';\nimport { IBookStoreState } from '../store/book/types';\nimport { logout } from '../store/user/actions';\nimport { PopUp } from '../store/animations';\nimport { hideMenu, showMenu } from '../store/menu/actions';\nimport { IUserStoreState } from '../store/user/types';\nimport { CheckoutHelper, EventHelper } from '../helpers';\nimport { ICheckoutStoreState } from '../store/checkout/types';\nimport { TestBanner } from '../components/testBanner';\nimport { IHeaderStoreState } from '../store/header/types';\nimport { hidePlayer, showPlayer } from '../store/header/actions';\nimport { IAppSettingsState } from '../store/appSettings/types';\nimport { AppSettings } from '../settings/appSettings';\nimport { AppTheme } from '../settings/appTheme';\nimport { useRoutesHelper } from '../helpers/routesHelper';\nimport UserHelper from '../helpers/userHelper';\n\nconst Header: FC = () => {\n let timer: ReturnType;\n const dispatch = useDispatch();\n const history = useHistory();\n const { t } = useTranslation();\n\n const checkout = useSelector((state) => state.checkout);\n const header = useSelector((state) => state.header);\n const book = useSelector((state) => state.book);\n const isMenuShow = useSelector((state) => state.menu.isShow);\n const isAuthorized = useSelector((state) => state.app.isAuthorized);\n const appSettings = useSelector((state) => state.appSettings);\n const user = useSelector((state) => state.user);\n\n const [opacity, setOpacity] = useState(0);\n const [checkoutCheckAt, setCheckoutCheckAt] = useState(null);\n const topOffset = 0;\n const domain = window.location.host;\n const location = useLocation();\n const milliSeconds = 1000;\n\n const {\n backRoute,\n getCheckoutRouteFromBook,\n getBookResultRoute,\n getWidgetToken,\n getWidgetBookResultRoute,\n isActivePage,\n getProfileRoute,\n } = useRoutesHelper();\n\n const token = getWidgetToken();\n const isMainPage = isActivePage('/');\n const isInformationFailedResultPage = isActivePage(Pages.Failed);\n const isInformationSuccessResultPage = isActivePage(Pages.Success);\n const isNotInformationResultPage = !isInformationFailedResultPage && !isInformationSuccessResultPage;\n const isBookPage = isActivePage(Pages.Book) || isActivePage(Pages.Sell);\n const isSharePage = isActivePage(Pages.Share);\n const isBookResultPage = isActivePage(Pages.Book, Pages.BookResult);\n const isCheckoutPage = book && book.event && isActivePage(Pages.Book, book.event.slug, [Pages.Checkout]);\n const isProfilePage = isActivePage(Pages.User, Pages.Profile);\n const isEditProfilePage = isActivePage(Pages.User, Pages.EditProfile);\n const isUserEventsPage = isActivePage(Pages.User, Pages.UserEvents);\n const isUserTicketsPage = isActivePage(Pages.User, Pages.UserTickets);\n const isContactsPage = isActivePage(Pages.Contacts);\n const isPaymentsInfoPage = isActivePage(Pages.PaymentsInfo);\n const isReferralPage = isActivePage(Pages.Referral);\n const isWidgetPage = isActivePage(Pages.Widget);\n const isWidgetInformationFailedResultPage = isActivePage(Pages.Widget, Pages.Failed);\n const isWidgetInformationSuccessResultPage = isActivePage(Pages.Widget, Pages.Success);\n const isWidgetCheckoutPage = book && book.event && isActivePage(Pages.Widget, Pages.Book, [token, Pages.Checkout]);\n const showBackBtn =\n isWidgetCheckoutPage || (!isWidgetPage && !isMainPage && isNotInformationResultPage && !isReferralPage);\n const isStaticPage = isContactsPage || isPaymentsInfoPage;\n const showMenuBtn = isMainPage;\n const showProfileBtn =\n !isProfilePage && !isEditProfilePage && !isMenuShow && isNotInformationResultPage && !isReferralPage;\n const showLogoutBtn = isAuthorized && (isProfilePage || isEditProfilePage);\n const showLogo = isWidgetPage ?\n appSettings.showLogo :\n (!isMainPage || appSettings.showLogo) && !isUserEventsPage && !isUserTicketsPage;\n const showAd = isMainPage && !appSettings.useNewDashboard;\n const isTransparent =\n (!isStaticPage && !isBookPage && !isSharePage && !isWidgetPage) ||\n isBookResultPage ||\n isWidgetCheckoutPage ||\n isCheckoutPage ||\n isInformationSuccessResultPage ||\n isInformationFailedResultPage ||\n isWidgetInformationSuccessResultPage ||\n isWidgetInformationFailedResultPage;\n\n const isTimer =\n CheckoutHelper.getIsInProcess(checkout) ||\n (!CheckoutHelper.getIsCompleted(checkout) && CheckoutHelper.getIsProcessed(checkout));\n const timeoutAt = checkout.process && checkout.process.paymentTimeoutAt;\n\n const isDomainEu = EventHelper.getDomainType(domain) === DomainType.Eu;\n\n const handleScroll = useCallback(\n (e) => {\n if (e && e.target && e.target.scrollingElement) {\n const { scrollTop } = e.target.scrollingElement;\n\n const currentOpacity = scrollTop <= 60 ? scrollTop / 150 : 0.4;\n const bannerSize = AppSettings.IS_DEV ? 70 + 66 : 66;\n const currentTopOffset = scrollTop <= bannerSize * 2 ? -scrollTop / 2 : -bannerSize;\n\n if (opacity !== currentOpacity || (header.showAdButton && topOffset !== currentTopOffset)) {\n setOpacity(currentOpacity);\n } else {\n setOpacity(0);\n }\n }\n },\n [header.showAdButton]\n );\n\n useEffect(() => {\n window.addEventListener('scroll', (e) => handleScroll(e));\n return () => window.removeEventListener('scroll', (e) => handleScroll(e));\n }, [handleScroll]);\n\n useEffect(() => {\n if (CheckoutHelper.getIsInProcess(checkout) && CheckoutHelper.getIsCompleted(checkout)) {\n history.push(getBookResultRoute(BookStatus.Success));\n }\n }, [checkout, getBookResultRoute, history]);\n\n useEffect(() => {\n if (CheckoutHelper.getIsProcessed(checkout) && !CheckoutHelper.getIsCompleted(checkout)) {\n timer = setTimeout(() => {\n dispatch(checkCurrentCheckout());\n setCheckoutCheckAt(dayjs());\n }, milliSeconds);\n }\n return () => clearTimeout(timer);\n }, []);\n\n useEffect(() => {\n if (isTransparent) {\n setOpacity(0);\n } else {\n setOpacity(opacity);\n }\n }, [isTransparent, location]);\n\n useEffect(() => {\n const scrollTop = window.scrollY;\n const opacity = scrollTop <= 60 ? scrollTop / 150 : 0.4;\n\n if (isMenuShow) {\n setOpacity(0);\n } else {\n setOpacity(opacity);\n }\n }, [isMenuShow]);\n\n const handleModalBtnClick = () => {\n if (header.showPlayer) {\n dispatch(hidePlayer());\n } else {\n dispatch(showPlayer());\n }\n };\n\n const handleBackgroundClick = () => {\n dispatch(hidePlayer());\n };\n\n const handleMenuBtnClick = () => {\n if (isMenuShow) {\n dispatch(hideMenu());\n } else {\n dispatch(showMenu());\n }\n };\n\n const handleLogoutClick = () => {\n if (isAuthorized) {\n dispatch(logout());\n history.replace('/');\n }\n };\n\n const handleChangeLanguageClick = () => {\n if (i18next.language === Locale.ru) {\n i18next.changeLanguage(Locale.en);\n dayjs.locale(Locale.en);\n } else if (i18next.language === Locale.en) {\n i18next.changeLanguage(Locale.ru);\n dayjs.locale(Locale.ru);\n }\n localStorage.setItem('language', i18next.language);\n };\n\n const handleTimerClick = () => {\n if (CheckoutHelper.getIsProcessed(checkout)) {\n dispatch(checkoutComplete(checkout.process.referenceNumber, false, false));\n history.push(getCheckoutRouteFromBook(book));\n }\n };\n\n const handleStopTimer = useCallback(() => {\n dispatch(checkoutClear());\n if (isWidgetPage) {\n const token = getWidgetToken();\n history.push(getWidgetBookResultRoute(BookStatus.Timeout, token));\n } else {\n history.push(getBookResultRoute(BookStatus.Timeout));\n }\n }, []);\n\n const handleTickTimer = useCallback(() => {\n if (CheckoutHelper.getIsInProcess(checkout)) {\n const addSeconds = checkoutCheckAt?.clone().add(10, 's');\n const canCheck = !checkoutCheckAt || addSeconds.isSame(dayjs()) || addSeconds.isBefore(dayjs());\n if (canCheck) {\n dispatch(checkoutComplete(checkout.process.referenceNumber, false, false));\n setCheckoutCheckAt(dayjs());\n }\n }\n }, [checkout]);\n\n const handleGoToMainPage = () => {\n if (isMenuShow) {\n dispatch(hideMenu());\n return;\n }\n history.push('/');\n };\n\n return (\n \n {false && AppSettings.IS_DEV && }\n \n {showAd && (\n \n \n \n \n \n )}\n \n \n \n
\n {showBackBtn && (\n ({ ...location })} title={t('Header.Back')} onClick={backRoute} />\n )}\n {showMenuBtn && (\n \n )}\n
\n
\n \n \n {showLogo && (\n \n {!isWidgetPage && (\n \n \n \n )}\n {isWidgetPage && }\n \n )}\n {isUserEventsPage && !isUserTicketsPage && !showLogo && (\n \n {t('Profile.MyEvents')}\n \n )}\n {!isUserEventsPage && isUserTicketsPage && !showLogo && (\n \n {t('Profile.MyTickets')}\n \n )}\n \n \n \n {isTimer && !isMenuShow && (\n \n \n \n )}\n {showProfileBtn && !isWidgetPage && (\n \n {UserHelper.getProfileIconEmblem(user)}\n \n )}\n {showLogoutBtn && (\n \n {t('Profile.Logout')}\n \n )}\n \n
\n {header.showPlayer && (\n <>\n \n \n \n \n \n )}\n
\n );\n};\n\nconst Container = styled.div`\n display: flex;\n align-items: center;\n justify-content: flex-start;\n`;\n\nconst Background = styled.div`\n background-color: rgba(0, 0, 0, 0.95);\n z-index: 910;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n position: fixed;\n`;\nconst Modal = styled.div`\n height: 364px;\n width: 100%;\n z-index: 1000;\n position: relative;\n`;\nconst Advertising = styled.aside`\n padding: 15px 25px;\n margin-left: auto;\n margin-right: auto;\n`;\n\nconst Navigation = styled.nav<{ transparent: boolean; opacity: number; topOffset: number; delayOpacity: boolean }>`\n background-color: ${(props) => (props.transparent ? `rgba(0,0,0,${props.opacity})` : props.theme.colors.bg)};\n width: 100%;\n max-width: ${(props) => props.theme.maxWidth};\n position: ${(props) => (props.transparent ? 'fixed' : 'relative')};\n z-index: 900;\n top: ${(props) => `${props.topOffset}px`};\n transition: ${(props) => props.delayOpacity && 'background-color ease-in 0.2s 0.3s'};\n`;\n\nconst LinksList = styled(motion.ul)`\n align-items: center;\n padding: 15px 25px;\n margin: 0;\n list-style: none;\n display: flex;\n`;\n\nconst ListItem = styled.li<{ right?: boolean; left?: boolean; center?: boolean }>`\n display: flex;\n flex: 1;\n text-align: ${(props) => (props.right ? 'right' : props.left ? 'left' : 'center')};\n justify-content: ${(props) => (props.right ? 'flex-end' : props.left ? 'flex-start' : 'center')};\n align-items: center;\n min-height: 30px;\n`;\n\nconst Link = styled(RLink)`\n display: flex;\n align-items: center;\n`;\n\nconst LogoContainer = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 901;\n`;\n\nconst ALogoContainer = (props) => ;\n\nconst Logo = styled.img`\n height: 40px;\n`;\n\nconst Title = styled(motion.h1)`\n font-size: 18px;\n font-family: ${(props) => props.theme.fonts.boldFont};\n position: absolute;\n margin: 0;\n padding: 0;\n`;\n\nconst ATitle = (props) => ;\n\nconst BackBtn = styled(RLink)`\n background: url(${(props) => props.theme.img.icons.back}) 0 no-repeat;\n width: 27px;\n height: 27px;\n border: none;\n display: inline-block;\n background-size: contain;\n z-index: 901;\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nconst ABackBtn = (props) => <BackBtn ref={props.hostRef} {...props} />;\n\nconst ProfileBtn = styled(RLink)<{ logged: boolean }>`\n background: ${(props) => (!props.logged ? `url(${props.theme.img.icons.profile}) 0 no-repeat` : 'unset')};\n width: 24px;\n height: 24px;\n border: ${(props) => (props.logged ? `1px solid ${props.theme.colors.text}` : 'none')};\n border-radius: ${(props) => props.logged && '50%'};\n padding: ${(props) => props.logged && '4px'};\n font-size: 14px;\n font-family: ${(props) => props.theme.fonts.lighterFont};\n text-align: center;\n text-transform: uppercase;\n display: inline-block;\n background-size: contain;\n margin-left: 10px;\n\n &:hover {\n cursor: pointer;\n border-color: ${(props) => props.theme.colors.textSecond};\n }\n`;\n\nconst AProfileBtn = (props) => <ProfileBtn ref={props.hostRef} {...props} />;\n\nconst LogoutBtn = styled(RLink)`\n margin-left: 10px;\n`;\n\nconst ALogoutBtn = (props: any) => <LogoutBtn ref={props.hostRef} {...props} />;\n\nconst MenuBtn = styled('button')<{ opened: boolean }>`\n background: url(${(props: any) => (props.opened ? props.theme.img.icons.close : props.theme.img.icons.menu)})\n no-repeat;\n width: 24px;\n height: 24px;\n border: none;\n display: inline-block;\n background-size: contain;\n outline: none;\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nconst TimerBtn = styled('button')`\n display: flex;\n align-items: center;\n text-decoration: none;\n color: ${(props) => props.theme.colors.text};\n background: none;\n border: none;\n cursor: pointer;\n outline: none;\n\n &:hover {\n text-decoration: none;\n color: ${(props) => props.theme.colors.textSecond};\n }\n`;\n\nexport default Header;\n","import { AlertColor } from '@mui/material/Alert/Alert';\nimport { RequestType } from '../enums';\n\nexport interface IErrorStoreState {\n message: string;\n details?: string;\n requestType?: RequestType;\n type?: AlertColor;\n}\n\nexport class ErrorStoreState implements IErrorStoreState {\n message: string;\n details?: string;\n requestType?: RequestType;\n type?: AlertColor;\n\n constructor(message: string, details?: string, requestType?: RequestType, type?: AlertColor) {\n this.message = message;\n this.details = details;\n this.requestType = requestType;\n this.type = type;\n }\n}\n\nexport interface IAppStoreState {\n isInitializing: boolean;\n isFinalized: boolean;\n isAuthorized: boolean;\n isLoading: boolean;\n error: IErrorStoreState;\n isRedirection: boolean;\n}\n\nexport class AppStoreState implements IAppStoreState {\n isInitializing: boolean;\n isFinalized: boolean;\n isAuthorized: boolean;\n isLoading: boolean;\n error: IErrorStoreState;\n isRedirection: boolean;\n\n constructor() {\n this.isInitializing = true;\n this.isFinalized = false;\n this.isAuthorized = false;\n this.isLoading = false;\n this.error = null;\n this.isRedirection = false;\n }\n}\n\nexport interface IActionResponseStoreState {\n message: string;\n details: string;\n}\n\nexport class ActionResponseStoreState implements IActionResponseStoreState {\n message: string;\n details: string;\n\n constructor(dto?: any) {\n this.message = dto && dto.Message ? dto.Message : '';\n this.details = dto && dto.MessageDetails ? dto.MessageDetails : '';\n }\n}\n\nexport const enum AppActionTypes {\n APP_INIT = '@@app/INIT',\n APP_FINALIZE = '@@app/FINALIZE',\n SPINNER_SHOW = '@@spinner/SHOW',\n SPINNER_HIDE = '@@spinner/HIDE',\n APP_AUTHORIZE = '@@app/AUTHORIZE',\n APP_DEAUTHORIZE = '@@app/DEAUTHORIZE',\n SPLASH_HIDE = '@@splash/HIDE',\n ERROR_SET = '@@error/SET',\n ERROR_CLEAR = '@error/CLEAR',\n APP_REDIRECTION = '@app/REDIRECTION',\n}\n","import dayjs from 'dayjs';\nimport { IEventDetailsVenueStoreState, EventDetailsVenueStoreState } from './EventDetailsVenueStoreState';\nimport {\n IEventDetailsTicketQuotaStoreState,\n EventDetailsTicketQuotaStoreState,\n} from './EventDetailsTicketQuotaStoreState';\n\nexport interface IEventDetailsStoreState {\n title: string;\n subtitle: string;\n slug: string;\n posterUrl: string;\n optionPosterUrl: string;\n date: dayjs.Dayjs;\n venue: IEventDetailsVenueStoreState;\n notAvailableForPurchase: boolean;\n notAvailableForPurchaseReason: string;\n ticketQuotas: Array<IEventDetailsTicketQuotaStoreState>;\n isDistributionAvailable: boolean;\n minPrice: number;\n maxPrice: number;\n currency: string;\n description: string;\n domains: Array<number>;\n}\n\nexport class EventDetailsStoreState implements IEventDetailsStoreState {\n title: string;\n subtitle: string;\n slug: string;\n posterUrl: string;\n optionPosterUrl: string;\n date: dayjs.Dayjs;\n venue: IEventDetailsVenueStoreState;\n notAvailableForPurchase: boolean;\n notAvailableForPurchaseReason: string;\n ticketQuotas: Array<IEventDetailsTicketQuotaStoreState>;\n isDistributionAvailable: boolean;\n minPrice: number;\n maxPrice: number;\n currency: string;\n description: string;\n domains: Array<number>;\n\n constructor(dto?: any) {\n this.title = dto && dto.Title ? dto.Title : '';\n this.subtitle = dto && dto.SubTitle ? dto.SubTitle : '';\n this.slug = dto && dto.Slug ? dto.Slug : '';\n this.posterUrl = dto && dto.PosterUrl ? dto.PosterUrl : '';\n this.optionPosterUrl = dto && dto.OptionPosterUrl ? dto.OptionPosterUrl : '';\n this.date = dto && dto.EventDate ? dayjs(dto.EventDate) : dayjs();\n this.venue = dto && dto.Venue ? new EventDetailsVenueStoreState(dto.Venue) : null;\n this.notAvailableForPurchase = dto && dto.NotAvailableForPurchase ? dto.NotAvailableForPurchase : false;\n this.notAvailableForPurchaseReason =\n dto && dto.NotAvailableForPurchaseReason ? dto.NotAvailableForPurchaseReason : '';\n this.ticketQuotas =\n dto && dto.TicketQuotas\n ? dto.TicketQuotas.map((item) => new EventDetailsTicketQuotaStoreState(item)).sort((a, b) =>\n a.slug > b.slug ? -1 : 1\n )\n : [];\n this.isDistributionAvailable = dto && dto.IsDistributionAvailable ? dto.IsDistributionAvailable : false;\n this.currency = dto && dto.Currency ? dto.Currency : '';\n this.description = dto && dto.Description ? dto.Description : '';\n this.minPrice = dto && dto.MinPrice ? dto.MinPrice : 0;\n this.maxPrice = dto && dto.MaxPrice ? dto.MaxPrice : 0;\n this.domains = dto && dto.Domains ? dto.Domains : [];\n }\n}\n","import { Reducer } from 'redux';\nimport dayjs from 'dayjs';\n\nimport { IUserStoreState, UserActionTypes } from './types';\nimport { IEventStoreState } from '../event/types';\nimport { IProfileTicketStoreState } from '../ticket/ProfileTicketStoreState';\n\nexport const userReducer: Reducer<IUserStoreState> = (state: IUserStoreState = null, action) => {\n switch (action.type) {\n case UserActionTypes.USER_INIT: {\n return action.payload;\n }\n case UserActionTypes.USER_UPDATE: {\n return <IUserStoreState>{ ...state, ...action.payload };\n }\n case UserActionTypes.USER_CLEAR: {\n return null;\n }\n case UserActionTypes.USER_PHONE_CODE_SEND: {\n return <IUserStoreState>{ ...state, phoneCodeSentAt: dayjs(), phoneCodeSentMessage: action.payload };\n }\n case UserActionTypes.PHONE_CURRENT_UPDATE: {\n return <IUserStoreState>{ ...state, phoneNumber: action.payload, phoneNumberConfirmed: false };\n }\n default:\n return state;\n }\n};\n\nexport const userEventsReducer: Reducer<Array<IEventStoreState>> = (state: Array<IEventStoreState> = [], action) => {\n switch (action.type) {\n case UserActionTypes.USER_EVENTS_INIT: {\n return [...action.payload];\n }\n case UserActionTypes.USER_EVENTS_CLEAR: {\n return [];\n }\n default:\n return state;\n }\n};\n\nexport const userTicketsReducer: Reducer<Array<IProfileTicketStoreState>> = (\n state: Array<IProfileTicketStoreState> = [],\n action\n) => {\n switch (action.type) {\n case UserActionTypes.USER_TICKETS_INIT: {\n const tickets = action.payload.filter((t: IProfileTicketStoreState) => !t.ticketId);\n for (const newTicket of action.payload.filter((t: IProfileTicketStoreState) => !!t.ticketId)) {\n let ticketToAdd = state.find((t: IProfileTicketStoreState) => t.ticketId === newTicket.ticketId);\n if (ticketToAdd) {\n ticketToAdd = { ...ticketToAdd, ...newTicket };\n } else {\n ticketToAdd = newTicket;\n }\n tickets.push(ticketToAdd);\n }\n return [...tickets];\n }\n case UserActionTypes.USER_TICKETS_CLEAR: {\n return [];\n }\n case UserActionTypes.USER_TICKETS_UPDATE: {\n const tickets = state.slice();\n tickets.forEach((t) => {\n if (t.ticketId === action.payload.ticketId) {\n t = action.payload;\n }\n });\n return [...tickets];\n }\n default:\n return state;\n }\n};\n"],"names":["dayjs_1","__importDefault","require","types_1","types_2","PaymentStoreState","dto","this","method","Method","methodDescription","MethodDescription","comission","Comission","comissionDescription","ComissionDescription","useConvertion","UseConvertion","convertionRate","ConvertionRate","convertionCurrency","ConvertionCurrency","exports","PaymentInitiateSectorRowInfo","rowSlug","rowSeatSlugs","PaymentInitiateSectorInfo","sectorSlug","quantity","sectorRows","map","r","PaymentInitiateTicketInfo","quotaId","sector","PaymentDistributionResult","_super","_this","call","DistributorSlug","distributorFound","DistributorFound","__extends","DistributionInfo","PaymentInitiateInfo","distributorSlug","eventSlug","paymentMethod","usePoints","tickets","item","token","PaymentInitiateTicketResult","title","Title","currency","Currency","pricePerTicket","PricePerTicket","Quantity","priceTotal","PriceTotal","PaymentInitiateResult","event","Event","EventStoreState","Tickets","priceSubtotal","PriceSubtotal","priceComission","PriceComission","pricePayByCard","PricePayByCard","pricePayByPoints","PricePayByPoints","PaymentProcessInfo","email","returnUrl","returnErrorUrl","retailWebsite","PaymentProcessResult","referenceNumber","ReferenceNumber","paymentProvider","PaymentProvider","paymentToken","PaymentToken","stripeProvider","StripeProvider","paymentRedirectUrl","PaymentRedirectUrl","paymentTimeoutAt","PaymentTimeoutAt","PaymentCompleteInfo","cancel","Cancel","PaymentCompleteResult","userMessage","UserMessage","debugMessage","DebugMessage","userMessageDetails","UserMessageDetails","isCompleted","IsCompleted","isSuccess","IsSuccess","isProcessing","IsProcessing","React","__importStar","styled_components_1","Container","div","templateObject_1","__makeTemplateObject","props","icon","concat","theme","img","icons","sm","themed","span","templateObject_2","fonts","boldFont","Subtitle","templateObject_3","lightFont","colors","textSecond","_a","subtitle","createElement","react_1","react_redux_1","material_1","react_router_1","ticket_1","actions_1","actions_2","enums_1","UI_1","actions_3","actions_4","routesHelper_1","routes_1","event_1","dialogTheme","createTheme","components","MuiDialog","styleOverrides","paper","_b","borderRadius","background","width","padding","filter","breakpoints","down","dispatch","useDispatch","history","useHistory","useSelector","state","book","isRedirection","app","isFinalized","useState","isLoading","setIsLoading","useParams","getResultStatusRoute","useRoutesHelper","useLayoutEffect","clearBook","useEffect","distributionInit","getEventById","then","slug","setResultInfo","type","AlertType","Error","key","KeyErrors","EventNotFound","message","replace","initBook","seats","push","Routes","Main","element","document","getElementById","style","removeAttribute","eventDetails","Page","Header","diagonal","stretch","Poster","src","posterUrl","alt","ThemeProvider","Dialog","open","scroll","Skeleton","animation","variant","height","Ticket","PageHeader","helpers_1","lodash_1","react_i18next_1","memo","isInitializing","t","useTranslation","getBookRoute","isAuthorized","userEvents","isDomain","isEmpty","domains","isDistributed","EventHelper","isEventDetailsDistributed","sellTicketButtonTitle","showDistributionButton","isDistributionAvailable","isBookingEnabled","notAvailableForPurchase","bookTicketsButtonTitle","notAvailableForPurchaseReason","getBookTicketsButtonTitle","PageFooter","Button","disabled","onClick","e","preventDefault","handleOnBookClick","__awaiter","__generator","startDistribute","UserEvents","handleOnDistributeClick","action","HeaderStoreState","HeaderActionTypes","HEADER_SHOW","__assign","showAdButton","HEADER_HIDE","PLAYER_SHOW","showPlayer","PLAYER_HIDE","CITYSELECTOR_SHOW","showCitySelector","CITYSELECTOR_HIDE","forms_1","services_1","routeService_1","stripeCheckoutForm_1","framer_motion_1","freedomPayForm_1","CheckoutPage","routeSrv","checkoutSteps","analyticSrv","AnalyticService","errors","redirectUrl","prototype","componentWillMount","init","componentWillReceiveProps","nextProps","isErrorChanged","Utils","isEqual","error","isEmailChanged","checkout","IsInProcess","CheckoutHelper","getIsProcessed","getIsInProcess","isAvailableForProcessing","getIsAvailableForProcessing","setState","form","isRedirectingMethod","process","handlePaymentFormSubmit","componentWillUpdate","user","render","checkoutModel","isInitiated","getIsInitiated","isEmailSet","getIsEmailSet","isProcessed","Translation","description","getMetaDescription","keywords","venue","imageUrl","EventCheckoutHeader","renderEmailForm","renderUsePointsSelector","renderPaymentForm","renderFooter","Footer","renderError","distributionInfo","getDistributionInfo","distribution","PageContent","roundCorners","EmailForm","emailPlaceholder","emailConfirmPlaceholder","warning","distributor","submitTitle","onSubmit","formModel","handleEmailFormSubmit","MenuBlock","footer","List","ListItem","UserAgreementLink","isRedirecting","window","location","href","PaymentForm","onUsePointsChange","handleUsePointsChange","step","renderCheckoutContent","needForm","getIsNeedPaymentForm","Fragment","FreedomPayForm","StripeCheckoutForm","provider","RedirectWrapper","RedirectTitle","stateErrors","errorMessage","ErrorWrapper","setEmail","trackEvent","checkoutProcess","checkoutInit","getIsCompleted","go","getEventRoute","isRedoing","getBookResultRoute","BookStatus","InProcess","Success","getBookRouteFromBook","checkCheckout","PureComponent","h2","h1","templateObject_4","FormInfo","templateObject_5","FormError","templateObject_6","templateObject_7","withRouter","connect","ownProps","match","params","checkoutSetEmail","checkCurrentCheckout","withTranslation","AMenuBlock","motion","section","templateObject_8","templateObject_9","text","grow","ul","templateObject_10","li","templateObject_11","typesafe_actions_1","constants_1","getState","isDistributorSlugExisted","payload","expirationDate","add","DistributionExpirationMins","DistributionStoreState","react_router_dom_1","eventSellHeader_1","purchaseForm_1","UserTicketPurchasePage","ticket","resendInSecs","initTicket","masterTicketId","ticketId","getEventDetailsMetaDescription","EventSellHeader","PurchaseForm","boughtTicket","TicketNotFound","Component","getTicketById","config","mui_1","apiService_1","PanAndZoomImage_1","appTheme_1","useStyles","makeStyles","skeletonWrapper","display","justifyContent","zIndex","placeSelectorWrapper","flexDirection","fontSize","margin","schema","textAlign","transition","willChange","maxWidth","maxHeight","fontFamily","AppTheme","userSelect","fill","accent","color","bg","cursor","sectors","selectedSector","onChange","eventsApi","scheme","setScheme","_c","selectedSectorSlug","setSelectedSectorSlug","_d","classes","handleSectorClick","useCallback","target","closest","id","some","q","getVenueSchema","venueSlug","schemaVersion","version","response","sent","_i","sectors_1","length","sectorElement","classList","addEventListener","sectors_2","removeEventListener","s","remove","className","dangerouslySetInnerHTML","__html","x_date_pickers_1","LocationOnOutlined_1","ru_1","en_US_1","AdapterDateFns_1","renderDays_1","categoriesAccordion_1","customHooks_1","darkTheme","palette","mode","primary","main","light","dark","contrastText","selectDateButton","position","minWidth","opacity","selectDateImageBackdrop","border","left","right","top","bottom","backgroundColor","selectDateImageButton","alignItems","selectDateImageTitle","spacing","lineHeight","box","overflow","overflowY","gridList","flexWrap","transform","skeletonItem","marginRight","currentMonthDatePickerContainer","minHeight","marginBottom","skeletonContainer","skeleton","marginTop","chipCity","marginLeft","avatarLocation","chipLocationInfo","textOverflow","regularFont","backdrop","popperSx","boxShadow","transformOrigin","selectedDate","city","onDateChanged","handleDelete","categories","onCategoryChange","currentDay","Date","skeletonArray","Array","from","dates","setDates","baseDate","setBaseDate","_e","setOpen","_f","i18n","isCategoryPage","isActivePage","useRouteService","Pages","Categories","localeMap","en","ru","getDatepickerDates","handleClickOpen","handleClickClose","RenderInput","ButtonBase","focusRipple","Typography","component","renderSkeleton","idx","Grid","LocalizationProvider","dateAdapter","AdapterDateFns","adapterLocale","language","DesktopDatePicker","value","ActionBar","disableEnforceFocus","date","onClose","PopperProps","sx","renderInput","CategoriesAccordion","Chip","avatar","label","onDelete","Box","container","RenderDays","book_1","defaultPaymentMethod","paymentMethods","total","forEach","countTickets","ticketQuotas","find","st","price","Math","round","Table","quota","x","sectorTitle","seatSlug","TableRow","TableData","CostTitle","TotalPriceTitle","TotalPrice","lighterFont","PriceTitle","Price","table","tr","td","RegionalInfoStoreState","lastCheckedAt","RegionalInfoExpiresInHours","payment_1","appSettings_1","contactInfo_1","contacts","getContactsByDomain","isEuDomain","host","includes","DomainSetting","Eu","isDomainKz","getDomainType","DomainType","Kz","contactsTitle","emailTitle","NameOfLegalEntityTitle","RegisteredAddressTitle","RegistrationNumberTitle","ScheduleTitle","PageTitle","Address","ContactItem","nameOfTheLegalEntity","registeredAddress","registrationNumber","employerIdentificationNumber","contactLabel","vatNumber","schedule","PaymentLogos","information","note","renderNote","StyledLink","ContactItemContainer","Label","P","address","h3","p","ContactsPage","ResultInfoActionTypes","Link","to","Content","InfoWrapper","InfoItem","format","DateFormat","Action","RLink","header","bolderFont","react_helmet_1","useUtils_1","getProfileRoute","toPageTitle","useUtils","query","useQuery","get","encodedEmail","setErrors","details","EmailConfirmFailed","buttons","callback","center","ResetPasswordForm","confirmResetPassword","password","handleFormSubmit","ModalBonusTicket_1","_params","button","imageBackdrop","imageTitle","secondary","transitions","create","imageButton","textTransform","BONUS_TICKET_POPUP_KEY","undefined","URLSearchParams","search","has","noWrap","ModalBonusTicket","handleClose","ProfileTicketQuotaStoreState_1","EventDetailsStoreState_1","ProfileTicketStoreState","MasterTicketId","TicketId","status","Status","issuedTo","IssuedTo","issuedAt","IssuedAt","EventDetailsStoreState","sentAt","ticketQuota","TicketQuota","ProfileTicketQuotaStoreState","rowTitle","RowTitle","seatTitle","SeatTitle","seatId","SeatId","saleUser","SaleUser","Token","expiredPaymentTime","ExpiredPaymentTime","percentageComission","PercentageComission","checked","__exportStar","BookStoreState","eventCheckoutHeader_1","eventInfoItem_1","getTicketsPostfixByCount","index","BulletDelimiter","getSettings","hideSplash","finalize","thunkService","api","widget","getAppSettings","appSettings","settings","Promise","resolve","body","paymentFormStyles_1","commonForm_1","paymentSettings_1","formLoaded","componentDidMount","_script","PaymentSettings","SCRIPT_URL","async","onload","buildForm","appendChild","componentWillUnmount","removeChild","ref","setRef","Notes","NoteInfo","BepaidInfo","BePaidLink","Logos","_DOM","iframe","getElementsByTagName","_frame","options","url","BASE_API_URL","size","BeGateway","payment","formLogos","baseApiService_1","eventHelper_1","PaymentsApiService","_instance","widgetInitiate","model","post","data","widgetProcess","initiate","domain","hostname","resultDomainType","complete","BaseApiService","__spreadArray","eventDetailsFooter_1","descriptionCollapse_1","EventInfoWrapper","ListItemWrapper","DateTimeItem","time","DayTimeWrapper","MonthYearWrapper","Day","Time","Month","templateObject_12","setEvent","hideAdButton","getEventDetailsBySlug","day","month","EventDetailsHeader","dateTime","minPrice","maxPrice","priceTitle","renderPriceBlock","DescriptionCollapse","EventDetailsFooter","content","objectFit","borderColor","titleText","caption","selectedSeats","maxSelectCount","getSectorSchema","handleSeatClick","arraySlugs","split","row","rows","seat","seatName","seatElement","ExpandLess_1","ExpandMore_1","popupLocation_1","containerGenresAccordion","paperListGenres","listItemText","notFoundText","category","currentCategoryId","setCurrentCategoryId","ClickAwayListener","onClickAway","Paper","ListItemLink","genre","ListItemText","ticketsInfo_1","widgetError_1","setIsCheckoutInitiating","getWidgetCheckoutRouteFromBook","hasTickets","getHasTickets","isSectorSelected","isSeatsSelected","isCheckoutEnabled","buttonTitle","noSeats","widgetCheckoutInit","TicketsInfo","WidgetError","console","log","handleCheckoutClick","userTickets","phoneNumberConfirmed","cancelTicket","cancelSellTicket","noPadding","UserTicketsList","Message","renderButtons","MessageButtonsWrapper","Constants","DefaultTicketsCount","ResendCodeInSecs","MinPasswordLength","ResendTicketInMins","LeftMarginLogo","userHelper_1","result","getIsDistributionInfoValid","isBefore","YandexKassa","Fanaticka","hasPaymentMethods","hasDifferentPaymentMethods","Stripe","Freedompay","PaymentMethod","StripeBankCard","getIsPointsUsed","getIsEnoughPoints","currencyBalance","getBalanceByCurrency","minPricePayByPoints","amount","Banner","ContactInfo","WebsiteUrl","aside","_theme","scrollbarHeight","gridTile","gridTileImage","skeletonImage","skeletonText","gridImg","gradientImg","linkStyle","textDecoration","load","setCategories","getEventCategoryRoute","direction","lg","xs","md","xl","titleImage","subTitleText","gridImage","reloadDependencyValue","handleEventLink","items","setItems","domainTypes","subTitle","userTicketItem_1","animations_1","AnimatePresence","TicketsList","variants","PopUp","initial","animate","TicketsListItem","seatSlugs","events","UserEventsList","EventDetailsVenueStoreState","Slug","City","useScript","getTime","navigate","isProd","ENVIRONMENT","bookResultLinkTemplate","getBaseUrl","Book","REACT_APP_FREEDOM_PAY_API_PUBLISHABLE_TOKEN","order","toString","expires_at","toISOString","test","callbacks","result_url","success_url","phone","successCallback","BookResult","errorCallback","PayBox","userEventItem_1","EventsList","EventsListItem","UserEventItem","registrationPage_1","loginPage_1","emailConfirmPage_1","profilePage_1","editProfilePage_1","userEventsPage_1","userTicketsPage_1","passwordRecoveryPage_1","resetPasswordPage_1","RouteContainer","useLocation","Registration","User","Profile","getCurrentAccount","getUserEvents","UserTickets","getUserTickets","pathname","backgrounds","bg2","fullsize","Route","Switch","exact","path","Login","EditProfile","UserConfirmEmail","PasswordRecovery","ResetPassword","Redirect","locale","country","min","max","i","j","ImageLogo","SubTitle","TicketContent","ImageEvent","DescriptionTicket","DescriptionTitle","artist","DescriptionDate","DescriptionAddress","PriceContainer","PriceContent","ImageWallet","ContainerBorder","Border","Barcode","blackCapsFont","boldCapsFont","templateObject_13","templateObject_14","templateObject_15","templateObject_16","templateObject_17","templateObject_18","templateObject_19","fieldset","fullWidth","noted","inline","FieldInfo","FieldError","index_1","RouteService","pageName","subPageName","routeData_1","substr","currentPageName","currentSubPageName","isCurrentPage","toLowerCase","isCurrentSubPage","isCurrentOptionsPage_1","o","indexOf","origin","protocol","getLocation","checkIsDev","getRouteData","routeSegment","getwidgetToken","routeData","Widget","EventDetails","sell","page","Sell","sectorRow","getCheckoutRoute","Checkout","getCheckoutRouteFromBook","getWidgetRouteFromToken","store","getUserTicketsRoute","getUserTicketRoute","getUserTicketSellRoute","getUserTicketPurchaseRoute","getEmailConfirmationRedirectUrl","EmailConfirm","getResetPasswordRedirectUrl","categorySlug","getEventsLocation","Failed","domainName","parseDomain","By","Ru","Co","Info","Live","Me","Com","None","clear","page_1","Description","button_1","gap","DialogTitle","align","DialogContent","axios_1","service","baseURL","withCredentials","headers","Authorization","requestType","getProcessedConfig","processRequest","put","request","preProcessRequest","handleResponse","handleError","RequestType","none","clearError","logout","errorModel","ErrorStoreState","MessageDetails","setError","hideSpinner","ServerError","reject","currentConfig","getAuthHeaders","authorization","auth","access_token","region","isAfter","home","getRegion","setRegion","userTicketDetailsPage_1","FormWrapper","selectorItem_1","label_1","SelectorItem","ReactGA","react_gtm_module_1","AppSettings","IS_DEV","track","trackPageView","pageview","initialize","AnalyticsSettings","GOOGLE_TRACKING_ID","ReactPixel","debug","autoConfig","pageView","gtmId","Yup","formik_1","ValidationSchema","object","shape","string","required","Formik","initialValues","validationSchema","values","isValid","handleChange","handleBlur","StyledForm","autoComplete","StyledFieldset","Field","name","field","FieldWrapper","touched","TextInput","placeholder","onBlur","Fieldset","Form","eventHeadline_1","hideCitySelector","isMain","isEventDistributed","slice","onSelect","selected","Wrapper","TitleWrapper","Checkbox","readOnly","NoteWrapper","input","gridContainer","textEvent","titleEvent","linesContainer","defaultRowsCount","rowsCount","setRowsCount","setEvents","resultEvent","internalRowCount","eventIndex","renderLine","underline","renderEvent","valid","RESULT_INFO_SHOW","RESULT_INFO_CLEAR","resultInfo","resultInfoStoreState","skeletonEventCarousel_1","events_1","skeletonTitle","gridTitle","loadCategorisedEvents","categoryId","getEventsByCategories","SkeletonEventCarousel","skeletonCount","sort","a","b","eventsCount","Events","bg1","clearInfo","AnimatedDialog","alertKey","srcSet","Background","btn","dialog","hostRef","PT","paymentInit","finishPaymentInit","paymentProcess","finishPaymentProcess","paymentComplete","finishPaymentComplete","clearPayment","force","paymentModel","GetTickets","distributionClear","showSpinner","canInit","paymentCompleteModel","payments","paymentResult","isPaymentProcessing","alertType","PaymentFailed","e_1","refNumber","needSpinner","isChecking","checkoutComplete","Map","collection","set","reduce","current","react_2","web_1","PanAndZoomImageStyles_1","children","useRef","ZOOM_FACTOR","bookSchemeZoomFactor","MAX_ZOOM","bookSchemeMaxZoom","MIN_ZOOM","bookSchemeMinZoom","handler","useSpring","y","scale","mass","tension","friction","clamp","duration","damping","useGesture","onDrag","pinching","offset","__rest","start","onPinch","ox","oy","first","d","getBoundingClientRect","tx","ty","drag","bounds","pinch","scaleBounds","rubberband","pointer","touch","wrapperContainer","buttonGroup","buttonInZoom","buttonOutZoom","animated","OnlineCardPaymentFileUrl","APP_NAME","OnlineCardPaymentRuFileUrl","PaymentDocumentsFileUrl","PaymentDocumentsRuFileUrl","PrivacyPolicyFileUrl","live","kz","eu","by","styles_1","timer","endTime","onStop","onTick","currentTime","setCurrentTime","isStarted","setIsStarted","stop","diffSec","sec","tick","setInterval","clearInterval","diff","floor","matchMedia","matches","isMobile","login","checkoutClear","LoginForm","sellEventButton_1","searchInput_1","datePicker_1","horizontalCarousel_1","imageCardContent","objectPosition","skeletonCategoryImage","skeletonTicketsFor","headingText","gridSearchInput","paddingBottom","setCategory","selectedLocation","setSelectedDate","getCategory","loadEvents","eventType","count","getEventsByType","SellEventButton","TextContainer","SearchInput","EventType","Near","Popular","DatePicker","HorizontalCarousel","isCollapse","setIsCollapse","subtitleRef","heightSubtitle","scrollHeight","CollapseButton","collapse","regularAltFont","noTitle","optionPosterUrl","Image","CopyButton","_copyDelayMs","isCopied","copied","btnText","Text","_inputDOM","tabIndex","copy","copyToClipboard","isIOs","range","createRange","selectNodeContents","selection","getSelection","removeAllRanges","addRange","setSelectionRange","select","execCommand","setTimeout","textarea","user_1","AvatarWrapper","UserInfo","FullName","ButtonsWrapper","ProfileImage","ProfileImageTitle","Avatar","handleEditBtnClick","fullName","referralSlug","edit","UserStats","stats","i18next_1","isDomainRu","useContractData","bonusProgramItems","publicContractItems","StyledContractContainer","StyledContractHeader","StyledContractBody","StyledContractLink","BEPAID_URL","touchAction","WebkitUserSelect","MozUserSelect","WebkitUserDrag","renderPriceInfo_1","renderTicketsInfo_1","RenderTicketsInfo","RenderPriceInfo","MenuStoreState","contractInfo","isShow","contracts","ContractInfoContainer","fileUrl","ContractInfo","publicContracts","bonusPrograms","MenuActionTypes","EventCategory","Id","ImageUrl","EventsCount","CategorizedEvent","categoryName","CategoryName","EventShortInformation","PosterUrl","EventDate","CategoryId","DomainTypes","LocationShortInformation","Country","OptionPosterUrl","Venue","VenueStoreState","Artist","ArtistStoreState","Sectors","VenueSectorStoreState","PaymentMethods","distributorComission","DistributorComission","DistributorComissionStoreState","NotAvailableForPurchase","NotAvailableForPurchaseReason","maxPurchase","MaxPurchase","IsDistributionAvailable","Schema","SchemaInformation","currentComission","CurrentComission","nextTicketComission","NextTicketComission","ticketsSold","TicketsSold","SeatStoreState","Version","Paper_1","InputBase_1","IconButton_1","Search_1","Autocomplete_1","borderBottomRightRadius","borderBottomLeftRadius","backdropFilter","root","borderTopLeftRadius","borderTopRightRadius","flex","paddingLeft","iconButton","divider","locationPaper","gridLocation","autocompleteGridContainer","searchIcon","btnLocation","popper","inset","focused","listbox","endAdornment","option","paddingRight","noOptions","loading","setCity","setSearch","setOptions","setLoading","openPopup","setOpenPopup","handleSearchIconClick","searchEvents","opt","PopupLocation","noOptionsText","loadingText","onOpen","isOptionEqualToValue","getOptionLabel","eventShortInformation","link","InputLabelProps","InputProps","rest","ShareActionTypes","CLEAR_INIT","shareStore","ShareStoreState","SHARE_INIT","share","getToken","getTicketQuotaByToken","__1","Arrow","back","AppSettingsState","VenueSectorRowSeatStoreState","TicketQuotaId","VenueSectorRowStoreState","SectorSlug","Seats","NoSeats","Rows","TicketQuotas","BookTicketQuotaStoreState","schemaUrl","TokenTicketQuotaStoreState","QuotaId","Left","TicketsTotal","TicketsLeft","sectorId","SectorId","isPrivate","IsPrivate","isAvailableForDistribution","IsAvailableForDistribution","TicketStoreState","IssueTicketInfo","self","issueToEmail","issueToMyself","SellTicketInfo","BoughtTicketInfo","SellCardTokenInfo","customerEmail","EmailConfirmStatus","StripePaymentStatus","KeySuccess","IssueStatus","SellStatus","Locale","PaymentMethodsTitle","TicketPaymentMethodTitle","H2","LogosWrapper","accentDimmed","accentDisabled","DEFAULT_FONTS","googleMediumFont","purse","IMAGES_PATH","person","calendar","rock","mail","profile","star","meet","soldTicket","plane","menu","close","logo","logos","EmailSent","isPlDomain","Pl","isKzDomain","PaymentSucceeded","redux_1","redux_persist_1","autoMergeLevel2_1","storage_1","redux_thunk_1","store_1","ThunkService","enhancer","compose","applyMiddleware","withExtraArgument","migrations","balances","persistConfig","storage","stateReconciler","whitelist","migrate","createMigrate","persistedReducer","persistReducer","rootReducer","thunk","legacy_createStore","persistor","persistStore","ValidationService","isRequired","isEmail","isConfirmed","firstValue","secondValue","EmailConfirmed","react_phone_number_input_1","copyButton_1","regExpRules_1","sendCodeTimer","onSendCodeClick","resendCodeSecLeft","setResendCodeSecLeft","isPhoneConfirmed","referralLink","generateReferralUrl","isSendCodeBtnDisabled","isCodeSent","phoneCodeSentAt","phoneNumber","codeSentMessage","phoneCodeSentMessage","seconds","setSendCodeAvailabilityTimer","isPhoneCodeSendingAvailable","secLeft","clone","isSame","Phone","isValidPhoneNumber","ReferralSlug","oldPassword","mixed","context","parent","newPassword","newPasswordConfirm","passwordConfirm","phoneCode","formatPhoneNumber","hasErrors","outputError","InputWrapper","emailConfirmed","onKeyUp","formatPhone","StyledAContainer","validate","code","CopyButtonFieldWrapper","StyledFieldsetLabel","sendCodeValidate","FieldsetLabel","noImage","react_use_intercom_1","spinner_1","menu_1","eventsPage_1","eventDetailsPage_1","bookPage_1","checkoutPage_1","bookResultPage_1","bookResultErrorPage_1","userPage_1","userTicketSellDetailsPage_1","userTicketPurchasePage_1","sharePage_1","shareLinkPage_1","widgetBookPage_1","widgetCheckoutPage_1","widgetBookResultPage_1","static_1","dashboardPage_1","eventCategoryPage_1","header_1","referralPage_1","informationRoutes_1","widgetInformationRoutes_1","alertError_1","typography","join","GlobalStyles","createGlobalStyle","AppContainer","noScroll","unlistenHistory","changeDomainTopLevel","isMenuShow","useNewDashboard","resultType","resultKey","isError","isServerError","redirectApp","isDomainRequired","newLocation","initLocation","initWidgetApp","initApp","listen","scrollTo","hidden","updateViewPortHeight","vh","innerHeight","documentElement","setProperty","Suspense","fallback","IntercomProvider","appId","IntercomSettings","APP_ID","autoBoot","AlertError","DashboardPage","EventsPage","MainSortLocation","NewDashboard","RegistrationReferral","Category","EventCategoryPage","BookResultError","Referral","ReferralPage","TokenReferral","Share","ShareLink","UserTicketDetails","UserTicketSellDetails","UserTicketPurchase","Contacts","PaymentsInfo","PaymentsInfoPage","WidgetBookResult","WidgetBook","WidgetCheckout","InformationRoutes","WidgetInformationRoutes","Dialog_1","Close_1","Typography_1","Divider_1","gridIconLocation","itemCity","paperInput","gridInput","dialogContent","listLink","locationIcon","withStyles","closeButton","grey","fontWeight","alignSelf","locationCity","cities","setCities","filteredCities","setFilteredCities","getLocations","locations","Object","handleRouteCity","parseCity","trim","elevation","orientation","eventCarousel_1","gridPopularEvents","gridPopular","filteredEvents","sortedEvents","eventsLocation","EventCarousel","getItemLink","itemKey","overlay","AppActions","types_3","UserRegistrationStoreState","account","registerAccount","actionResponse","TokenRequestStoreState","username","client_id","AuthSettings","CLIENT_ID","client_secret","CLIENT_SECRET","grant_type","authorize","getCurrentUser","googleAuth","googleToken","facebookAuth","facebookToken","deauthorize","updatePhone","phoneCurrentUpdate","confirmPhone","passwordModel","changePassword","updateCurrentAccount","isMasterId","issueTicket","resultLinkTemplate","sellTicket","boughtResultLinkTemplate","resendTicket","resetPassword","ResetPasswordConfirmInfo","token_1","UserStatItem","ItemContainer","Count","show","hide","playerShow","playerHide","citySelectorShow","citySelectorHide","Note","StyledButton","RegExpRules","userTicketDetailsComponents_1","setTicket","isIssued","RenderTicketSector","RenderForm","RenderIssuedInfo","ShareApiService","WidgetApiService","getWidgetEvent","isHandlingResult","setIsHandlingResult","getWidgetResultStatusRoute","handlePaymentResult","cancel_1","Timeout","final_1","completeResult","Warning","PaymentInProcess","handlePaymentCompletion","PaymentTimeout","getElementsByClassName","AppStoreState","categoryCarousel_1","categorizedEventCarousel_1","datepickerCarousel_1","footer_1","gridCategories","containerPlayer","gradientPlayer","contentPage","searchInput","paddingTop","videoPlayer","contentPlayer","cityQuery","showDatepicker","showDashboardDatepicker","showPopularEvents","showDashboardPopularEvents","showCategories","showDashboardCategories","showPopularTours","showDashboardPopularTours","showDashboardEventsByCategories","dashboardCarouselColumnEventCount","dashboardCarouselEventCount","hidePopularTours","setHideDashboardPopularTours","selectedCategoryId","setSelectedCategoryId","getEventsCategories","loadEventsByType","preload","autoPlay","loop","muted","playsInline","CategoryCarousel","DatepickerCarousel","Tour","CategorizedEventCarousel","BeatLoader_1","override","cssOverride","Spinner","copyright","copyrightCompany","logoFooter","getFullYear","exit","enter","RegistrationForm","isDistributor","registerUser","_1","getEventsAPI","searchLocations","widgetPrice_1","handleTicketsCount","TicketsPriceWrapper","TicketSelectorsWrapper","TicketCountSelector","WidgetPrices","ticketPrice","totalPrice","PricesWrapper","PriceList","PriceItemWrapper","TotalPriceWrapper","userStatItem_1","StatsList","renderBalances","getEmojiFlagByCurrency","Navigation","nav","handleLinkClick","hideMenu","aboutUsTitle","paymentTitle","paymentMethodsTitle","visible","isEnoughPoints","balanceDescription","pointsDescription","pointsUseChange","isInitialValid","enableReinitialize","RadioWrapper","RadioLabel","RadioButton","RadioDescription","RadioDescriptionTitle","getSubmitTitle","informationSuccess_1","informationFailed_1","InformationSuccess","InformationError","InformationFailed","SrvM","Api","base","EventsApiService","AccountApiService","AuthApiService","TicketsApiService","HomeApiService","publicContract","PublicContractApiService","apiConfig","routeService","reducers_1","reducers_2","reducers_3","reducers_4","reducers_5","reducers_6","reducers_7","reducers_8","types_4","types_5","types_6","reducers_9","types_7","reducer_1","types_8","reduser_1","reducers_10","types_9","types_10","reducers_11","reducers_12","GlobalStoreState","CheckoutStoreState","LocationStoreState","combineReducers","userReducer","userEventsReducer","userTicketsReducer","numberInput_1","TicketWrapper","TicketSelectorWrapper","postfix","yup_1","setLocale","getUserAgreements","Language","FileUrl","AuthStoreState","UserBalanceStoreState","Amount","UserStatsStoreState","ticketsPurchased","TicketsPurchased","Balances","UpdateUserStoreState","UserStoreState","Email","PhoneNumber","PhoneNumberConfirmed","referredBySlug","ReferredBySlug","Stats","ChangePasswordInfo","currentPassword","token_type","refresh_token","issued","expires","expires_in","customWindow","API_URL","LOCALHOST","GOOGLE_CLIENT_ID","GOOGLE_SDK","FACEBOOK_APP_ID","FACEBOOK_SDK","APP_INSIGHTS_ID","LanguageSetting","En","StripeSettings","STRIPE_KEY","STRIPE_TM_KEY","locale_1","date_fns_1","selectedStyle","dateDayItem","flexShrink","dayLabel","dateLabel","monthYearLabel","monthContainer","daysContainer","dateListScrollable","WebkitOverflowScrolling","WebkitAppearance","dateFormat","formatOption","enGB","startDate","lastDate","addDays","months","days","isSelectDay","isSameDay","Number","startMonth","startOfMonth","addMonths","end","differenceInCalendarMonths","lastDayOfMonth","onDateClick","PaymentLogo","logoUrl","websiteUrl","Picture","rel","picture","renderTicketsInfo","renderPriceInfo","commission","UserTicketSellDetailsPage","isFinalizedChanged","isIdChanged","isGetToken","InitiatedSale","DisplayValue","setCount","displayValue","isMax","isMin","outline","small","handleDownClick","handleUpClick","active","hover","isTouched","clearTimeout","mouseUpTimer","touchEndTimer","advertising","onMouseEnter","handleMouseEnter","onMouseLeave","handleMouseLeave","onMouseDown","handleMouseDown","onMouseUp","handleMouseUp","onTouchStart","handleTouchStart","onTouchEnd","handleTouchEnd","fontLighter","showLogo","ShowLogo","UseNewDashboard","showIntercom","ShowIntercom","ShowDashboardDatepicker","ShowDashboardPopularEvents","ShowDashboardCategories","ShowDashboardPopularTours","ShowDashboardEventsByCategories","DashboardCarouselColumnEventCount","DashboardCarouselEventCount","BookSchemeZoomFactor","BookSchemeMaxZoom","BookSchemeMinZoom","baseUrl","domainTopLevel","hostName","parseHostName","hostDomainToplevel","eventDomainTypes","getDomainTopLevel","sortEventDomainTypes","domainType","changedDomain","backRoute","isEventDetailsPage","goBack","getWidgetToken","getWidgetBookResultRoute","isDomainExist","getHostReferralUrl","ticketsCountSelector_1","widgetFooter_1","isCheckoutInitiating","setSeats","setSectorSlug","setQuotaId","showSeatsSelector","setShowSeatsSelector","initEvent","filteredSeatsByQuotaId","sector_1","handlePlaceSelect","seatsFiltered","isInteractiveSchema","isForm","SchemaSectorSelector","handleSchemaSectorSelect","PlaceSelector","renderPlaceSelector","TicketsCountSelector","WidgetFooter","signup","ActionResponseStoreState","toMetaKeywords","AnimatedContainer","Helmet","AnimatedForm","noValidate","Backend","use","LanguageDetector","initReactI18next","fallbackLng","ns","defaultNS","supportedLngs","backend","loadPath","react","wait","useSuspense","err","dayjs","ProfileTicketStoreState_1","checkboxSelectorItem_1","CheckboxSelectorItem","handleSelect","getEvents","initEvents","getSellEventDetails","stopDistribute","emailConfirm","isSubmitting","onPaste","stopPropagation","ReferralLinkInput","generateReferralUrlByToken","client_1","localizedFormat_1","history_1","cache_1","applicationinsights_web_1","i18n_1","configureStore_1","app_1","extend","browserHistory","createBrowserHistory","appInsights","ApplicationInsights","instrumentationKey","loadAppInsights","prepend","configuredStore","createRoot","I18nextProvider","Provider","PersistGate","Router","CacheProvider","muiCache","actions_5","actions_6","actions_7","actions_8","BookPage","forceUpdate","renderQuotaSelector","renderTicketsCountSelector","Selector","getQuotaSelectorItems","capacity","renderPrices","renderDistributionInfo","ticketsCount","BookTotalPrices","seatsCount","showAlert","QuotaNotFound","hasSectorTickets","NoTickets","setQuota","setSector","setRow","setSectorRow","setSeat","setSectorRowSeat","setTickets","setTicketsCount","getTicketQuotaByShareToken","source","ticketsOrRow","isNaN","initShare","renderSellControls","renderPrivateSellControls","handleGetLinkClick","getTicketShareToken","isSale","Sale","isSold","Sold","isOffered","OfferedForPurchase","paymentInProcess","paymentDeclined","PaymentDeclined","renderTicketSector","issueTitle","ticketRoute","isBought","Bought","renderIssueFooter","navigator","userAgent","parseQueryString","replaceAt","fraction","c","pow","constructor","hasOwnProperty","_typeof","numberToDigitsArray","substring","useMemo","menuStorage","bonusProgram","script","defer","head","MENU_SHOW","MENU_HIDE","CONTRACTS_INIT","menuStore","initContract","apply","getContracts","redirect","EventContainer","HeaderContainer","linkTitle","UserHelper","getProfileIconEmblem","checkoutLanguage","Sector","stripe_js_1","react_stripe_js_1","checkoutForm_1","stripeKeys","stripePromise","stripeKey","loadStripe","getStripePromise","clientSecret","loader","appearance","variables","Elements","stripe","CheckoutForm","setClose","behavior","timeout","Slide","in","Alert","severity","setRedirectUrl","widgetCheckoutProcess","EventDetailsTicketQuotaStoreState","gridText","paymentInfo","m","pricePayByPointsTitle","toFixed","WidgetInformationSuccess","WidgetInformationFailed","countryCode","CountryCode","DomainName","IsDomainRequired","distributionSlug","responce","eventParams","ForgotPassLink","qs","BookResultPage","isCheckoutChanged","isTypeChanged","redirectStatus","isRefNumberChanged","paymentIntentId","canceled","distributorClear","checkoutRedo","queryParams","parse","payment_intent","redirect_status","redoCheckout","useStripe","elements","useElements","handleSubmit","confirmPayment","confirmParams","return_url","StripeBookResult","PaymentElement","layout","BookResultErrorPage","refnumber","checkoutClearPayment","getHasQuotas","sum","getHasSingleQuota","tq","getQuotaHasTickets","place","PasswordRecoveryForm","handleSendCodeClick","updateUserModel","updatePasswordModel","isPhoneChanged","isFullNameChanged","isReferralSlugChanged","updateUser","EditProfileForm","react_youtube_player_1","timer_1","Modal","Advertising","transparent","topOffset","delayOpacity","LinksList","LogoContainer","ALogoContainer","Logo","ATitle","BackBtn","ABackBtn","ProfileBtn","logged","AProfileBtn","LogoutBtn","ALogoutBtn","MenuBtn","opened","TimerBtn","setOpacity","checkoutCheckAt","setCheckoutCheckAt","isMainPage","isInformationFailedResultPage","isInformationSuccessResultPage","isNotInformationResultPage","isBookPage","isSharePage","isBookResultPage","isCheckoutPage","isProfilePage","isEditProfilePage","isUserEventsPage","isUserTicketsPage","isContactsPage","isPaymentsInfoPage","isReferralPage","isWidgetPage","isWidgetInformationFailedResultPage","isWidgetInformationSuccessResultPage","isWidgetCheckoutPage","showBackBtn","isStaticPage","showMenuBtn","showProfileBtn","showLogoutBtn","showAd","isTransparent","isTimer","timeoutAt","handleScroll","scrollingElement","scrollTop","currentOpacity","bannerSize","currentTopOffset","scrollY","handleStopTimer","handleTickTimer","addSeconds","hidePlayer","showMenu","videoId","playbackState","EventDetailsVenueStoreState_1","EventDetailsTicketQuotaStoreState_1","MinPrice","MaxPrice","Domains","newTicket","ticketToAdd"],"sourceRoot":""}