{"version":3,"sources":["store/index.ts","components/NavMenu.tsx","components/Layout.tsx","components/Home.tsx","App.tsx","registerServiceWorker.ts","index.tsx","store/configureStore.ts"],"names":["reducers","NavMenu","React","state","isOpen","toggle","this","setState","render","Navbar","className","light","Container","NavbarBrand","tag","Link","to","NavbarToggler","onClick","Collapse","navbar","NavItem","NavLink","props","children","connect","Layout","exact","path","component","Home","isLocalhost","Boolean","window","location","hostname","match","registerValidSW","swUrl","navigator","serviceWorker","register","then","registration","onupdatefound","installingWorker","installing","onstatechange","controller","console","log","catch","error","baseUrl","document","getElementsByTagName","getAttribute","history","createBrowserHistory","basename","store","initialState","logger","createLogger","middleware","thunk","routerMiddleware","rootReducer","combineReducers","router","connectRouter","enhancers","windowIfDefined","__REDUX_DEVTOOLS_EXTENSION__","push","composedEnhancers","compose","applyMiddleware","createStore","configureStore","ReactDOM","App","getElementById","URL","process","toString","origin","addEventListener","fetch","response","contentType","headers","get","status","indexOf","ready","unregister","reload","checkValidServiceWorker","registerServiceWorker"],"mappings":"uSAOO,MAAMA,EAAW,G,2FCFT,MAAMC,UAAgBC,gBAA8C,eAAD,oBACvEC,MAAQ,CACXC,QAAQ,GAFkE,KAyBtEC,OAAS,KACbC,KAAKC,SAAS,CACVH,QAASE,KAAKH,MAAMC,UAtBrBI,SACH,OACI,8BACI,gBAACC,EAAA,EAAD,CAAQC,UAAU,sEAAsEC,OAAK,GACzF,gBAACC,EAAA,EAAD,KACI,gBAACC,EAAA,EAAD,CAAaC,IAAKC,IAAMC,GAAG,KAA3B,yCACA,gBAACC,EAAA,EAAD,CAAeC,QAASZ,KAAKD,OAAQK,UAAU,SAC/C,gBAACS,EAAA,EAAD,CAAUT,UAAU,uCAAuCN,OAAQE,KAAKH,MAAMC,OAAQgB,QAAM,GACxF,sBAAIV,UAAU,wBACV,gBAACW,EAAA,EAAD,KACI,gBAACC,EAAA,EAAD,CAASR,IAAKC,IAAML,UAAU,YAAYM,GAAG,KAA7C,+CChBpBO,SACZ,gBAAC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OAAOC,SAASoD,OAIrC,OAGJrD,OAAOsD,iBAAiB,OAAQ,KAC5B,MAAMjD,EAAK,UAAM8C,GAAN,sBAEPrD,EAwChB,SAAiCO,GAE7BkD,MAAMlD,GACDI,KAAK+C,IAEF,MAAMC,EAAcD,EAASE,QAAQC,IAAI,gBACjB,MAApBH,EAASI,QAAmBH,IAAsD,IAAvCA,EAAYI,QAAQ,cAE/DvD,UAAUC,cAAcuD,MAAMrD,KAAKC,IAC/BA,EAAaqD,aAAatD,KAAK,KAC3BT,OAAOC,SAAS+D,aAKxB5D,EAAgBC,KAGvBa,MAAM,KACHF,QAAQC,IAAI,mEAzDRgD,CAAwB5D,GAGxBD,EAAgBC,MCbhC6D,K","file":"static/js/main.7df89513.chunk.js","sourcesContent":["// The top-level state object\nexport interface ApplicationState {\n}\n\n// Whenever an action is dispatched, Redux will update each top-level application state property using\n// the reducer with the matching name. It's important that the names match exactly, and that the reducer\n// acts on the corresponding ApplicationState property type.\nexport const reducers = {\n};\n\n// This type can be used as a hint on action creators so that its 'dispatch' and 'getState' params are\n// correctly typed to match your store.\nexport interface AppThunkAction {\n (dispatch: (action: TAction) => void, getState: () => ApplicationState): void;\n}\n","import * as React from 'react';\nimport { Collapse, Container, Navbar, NavbarBrand, NavbarToggler, NavItem, NavLink } from 'reactstrap';\nimport { Link } from 'react-router-dom';\nimport './NavMenu.css';\n\nexport default class NavMenu extends React.PureComponent<{}, { isOpen: boolean }> {\n public state = {\n isOpen: false\n };\n\n public render() {\n return (\n
\n \n \n ПМ Блог\n \n \n
    \n \n Начало\n \n
\n
\n
\n
\n
\n );\n }\n\n private toggle = () => {\n this.setState({\n isOpen: !this.state.isOpen\n });\n }\n}\n","import * as React from 'react';\nimport { Container } from 'reactstrap';\nimport NavMenu from './NavMenu';\n\nexport default (props: { children?: React.ReactNode }) => (\n \n \n \n {props.children}\n \n \n);\n","import * as React from 'react';\nimport { connect } from 'react-redux';\n\nconst Home = () => (\n
\n

В процес на разрботване

\n
\n);\n\nexport default connect()(Home);\n","import * as React from 'react';\nimport { Route } from 'react-router';\nimport Layout from './components/Layout';\nimport Home from './components/Home';\n\nimport './custom.css'\n\nexport default () => (\n \n \n \n);\n","// In production, we register a service worker to serve assets from local cache.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on the \"N+1\" visit to a page, since previously\n// cached resources are updated in the background.\n\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\n// This link also includes instructions on opting out of this behavior.\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport default function register() {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const url = process.env.PUBLIC_URL as string;\n const publicUrl = new URL(url, window.location.toString());\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Lets check if a service worker still exists or not.\n checkValidServiceWorker(swUrl);\n } else {\n // Is not local host. Just register service worker\n registerValidSW(swUrl);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl: string) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing as ServiceWorker;\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the old content will have been purged and\n // the fresh content will have been added to the cache.\n // It's the perfect time to display a \"New content is\n // available; please refresh.\" message in your web app.\n console.log('New content is available; please refresh.');\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl: string) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (response.status === 404 || (contentType && contentType.indexOf('javascript') === -1)) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl);\n }\n })\n .catch(() => {\n console.log('No internet connection found. App is running in offline mode.');\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n","import 'babel-polyfill';\nimport 'bootstrap/dist/css/bootstrap.css';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { Provider } from 'react-redux';\nimport { ConnectedRouter } from 'connected-react-router';\nimport { createBrowserHistory } from 'history';\nimport configureStore from './store/configureStore';\nimport App from './App';\nimport registerServiceWorker from './registerServiceWorker';\n\n// Create browser history to use in the Redux store\nconst baseUrl = document.getElementsByTagName('base')[0].getAttribute('href') as string;\nconst history = createBrowserHistory({ basename: baseUrl });\n\n// Get the application-wide store instance, prepopulating with state from the server where available.\nconst store = configureStore(history);\n\nReactDOM.render(\n \n \n \n \n ,\n document.getElementById('root'));\n\nregisterServiceWorker();\n","import { applyMiddleware, combineReducers, compose, createStore } from 'redux';\nimport thunk from 'redux-thunk';\nimport { createLogger } from 'redux-logger';\nimport { connectRouter, routerMiddleware } from 'connected-react-router';\nimport { composeWithDevTools } from 'redux-devtools-extension';\nimport { History } from 'history';\nimport { ApplicationState, reducers } from './';\n\nexport default function configureStore(history: History, initialState?: ApplicationState) {\n\t\n const logger = createLogger();\n const middleware = [\n thunk,\n logger,\n routerMiddleware(history)\n ];\n\n const rootReducer = combineReducers({\n ...reducers,\n router: connectRouter(history)\n });\n\n const enhancers = [];\n\t\n const isDevelopment = process.env.NODE_ENV === 'development';\n const windowIfDefined = typeof window === 'undefined' ? null : window as any;\n if (windowIfDefined && windowIfDefined.__REDUX_DEVTOOLS_EXTENSION__) {\n enhancers.push(windowIfDefined.__REDUX_DEVTOOLS_EXTENSION__());\n }\n\n\tconst composedEnhancers = isDevelopment ?\n composeWithDevTools(applyMiddleware(...middleware), ...enhancers) :\n compose(applyMiddleware(...middleware), ...enhancers);\n\n return createStore(\n rootReducer,\n initialState,\n composedEnhancers\n );\n}\n"],"sourceRoot":""}