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ICHAG,EAAsB,SAACH,G,MAA6F,CAC7HJ,KAAMC,EAAAA,EAAAA,oBACNC,QAASE,ICDAP,EAAgB,SAACO,G,MAAmF,CAC7GJ,KAAMC,EAAAA,EAAAA,cACNC,QAASE,ICDAI,EAAqB,SAACJ,G,MAAgH,CAC/IJ,KAAMC,EAAAA,EAAAA,mBACNC,QAASE,M","sources":["webpack://_N_E/?5701","webpack://_N_E/./pages/_site/[city]/promo.tsx","webpack://_N_E/./src/features/specialOffersContainer/store/actions/setErrorMessage.ts","webpack://_N_E/./src/features/specialOffersContainer/store/actions/setIsLoadingOffers.ts","webpack://_N_E/./src/features/specialOffersContainer/store/actions/setIsPopupOpened.ts","webpack://_N_E/./src/features/specialOffersContainer/store/actions/setOffers.ts","webpack://_N_E/./src/features/specialOffersContainer/store/actions/setOfferTransaction.ts","webpack://_N_E/./src/features/specialOffersContainer/store/actions/setPopupState.ts","webpack://_N_E/./src/features/specialOffersContainer/store/actions/setSelectedOfferId.ts"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/_site/[city]/promo\",\n function () {\n return require(\"private-next-pages/_site/[city]/promo.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/_site/[city]/promo\"])\n });\n }\n ","import React from 'react';\nimport { useSelector } from 'react-redux';\nimport { NextPage } from 'next';\nimport dynamic from 'next/dynamic';\n\nimport { ICurrentCity } from '@r1-frontend/entities/City/models/ICurrentCity';\n\nimport WideContainer from '@r1-frontend/ui-react/components/layouts/wideContainer';\nimport { COLORS } from '@r1-frontend/ui-react/tokens/colors';\n\nimport Layout from '~/src/features/_layout';\nimport { setPopupState } from '~/src/features/specialOffersContainer/store/actions';\nimport { initialProps } from '~/src/helpers/basePageFunc';\nimport { selectCompanyName } from '~/src/store/selectors/city';\n\ninterface IProps {\n currentCity: ICurrentCity,\n}\n\nconst Promo = dynamic(() => import('~/src/features/promo'));\n\nconst PromoPage: NextPage = ({\n currentCity,\n}): JSX.Element => {\n const { cityIn, phone } = currentCity;\n const companyName = useSelector(selectCompanyName);\n const title = `Акции интернет-провайдера ${companyName} в ${cityIn}`;\n const description = [\n 'Воспользуйтесь специальными предложениями и акциями от ' + companyName + '.',\n 'Большой выбор акций для новых клиентов и действующих пользователей.',\n `Ищете выгоду? Звоните ${phone}`,\n ].join(' ');\n\n return (\n пропустить новые акции и скидки'}\n title={title}\n description={description}\n bgColor={COLORS.BgMain}\n >\n \n \n \n \n );\n};\n\nPromoPage.getInitialProps = async(ctx): Promise => {\n await initialProps(ctx, { isNeedAuthData: true });\n const { store } = ctx;\n const {\n city: { currentCity },\n } = store.getState();\n\n // todo- пересмотреть решение по https://ticket.ertelecom.ru/browse/WEB-37648\n store.dispatch(setPopupState('none'));\n\n return {\n currentCity,\n };\n};\n\nexport default PromoPage;\n","import { IAction } from '~/src/store';\n\nimport { ESpecOfferActionTypes } from './constants';\n\nexport const setErrorMessage = (message: string | null): IAction => ({\n type: ESpecOfferActionTypes.setErrorMessage,\n payload: message,\n});\n","import { IAction } from '~/src/store';\n\nimport { ESpecOfferActionTypes } from './constants';\n\nexport const setIsLoadingOffers = (state: boolean): IAction => ({\n type: ESpecOfferActionTypes.setIsLoading,\n payload: state,\n});\n","import { IAction } from '~/src/store';\n\nimport { ESpecOfferActionTypes } from './constants';\n\nexport const setIsPopupOpened = (state: boolean): IAction => ({\n type: ESpecOfferActionTypes.setIsPopupOpened,\n payload: state,\n});\n","import { TSpecOffer } from '~/src/features/specialOffersContainer/types';\nimport { IAction } from '~/src/store';\n\nimport { ESpecOfferActionTypes } from './constants';\n\nexport const setOffers = (state: TSpecOffer[]): IAction => ({\n type: ESpecOfferActionTypes.setOffers,\n payload: state,\n});\n","import { IAction } from '~/src/store';\n\nimport { ESpecOfferActionTypes } from './constants';\n\nexport const setOfferTransaction = (state: string | null): IAction => ({\n type: ESpecOfferActionTypes.setOfferTransaction,\n payload: state,\n});\n","import { TPopupState } from '~/src/features/specialOffersContainer/types';\nimport { IAction } from '~/src/store';\n\nimport { ESpecOfferActionTypes } from './constants';\n\nexport const setPopupState = (state: TPopupState): IAction => ({\n type: ESpecOfferActionTypes.setPopupState,\n payload: state,\n});\n","import { ISpecOffer } from '@r1-frontend/api-domru/spec-offer/v1/spec-offers';\n\nimport { IAction } from '~/src/store';\n\nimport { ESpecOfferActionTypes } from './constants';\n\nexport const setSelectedOfferId = (state: ISpecOffer['requestId']): IAction => ({\n type: ESpecOfferActionTypes.setSelectedOfferId,\n payload: state,\n});\n"],"names":["window","__NEXT_P","push","Promo","dynamic","PromoPage","currentCity","cityIn","phone","companyName","useSelector","selectCompanyName","title","description","join","Layout","withMenu","withChat","withFooter","withEmailWidget","emailWidgetText","bgColor","COLORS","WideContainer","getInitialProps","ctx","store","initialProps","isNeedAuthData","getState","city","dispatch","setPopupState","setErrorMessage","message","type","ESpecOfferActionTypes","payload","setIsLoadingOffers","state","setIsPopupOpened","setOffers","setOfferTransaction","setSelectedOfferId"],"sourceRoot":""}