\r\n);\r\n\r\nconst enhance = compose(translate);\r\nexport default enhance(OssLicense);\r\n","import React from \"react\";\r\nimport { Route } from \"react-router-dom\";\r\nimport CallBack from \"./components/callback/Callback\";\r\nimport ConfigWithPermissions from \"./components/config/Config\";\r\nimport Help from \"./components/help/Help\";\r\nimport OssLicense from \"./components/oss/OssLicense\";\r\n\r\nexport default [\r\n ,\r\n ,\r\n ,\r\n ,\r\n];\r\n","import React, { Component } from 'react';\r\nimport { Button, translate } from 'react-admin';\r\n\r\nconst DownloadButton = ({ record }) => (\r\n \r\n);\r\n\r\nexport default translate(DownloadButton);","import React, { Fragment } from 'react';\r\nimport compose from 'recompose/compose';\r\nimport Card from '@material-ui/core/Card';\r\nimport List from '@material-ui/core/List';\r\nimport ListItem from '@material-ui/core/ListItem';\r\nimport ListItemText from '@material-ui/core/ListItemText';\r\nimport { withStyles } from '@material-ui/core/styles';\r\nimport {\r\n translate,\r\n SimpleForm,\r\n DateInput,\r\n required,\r\n GET_ONE,\r\n crudCreate,\r\n} from 'react-admin';\r\nimport { startUndoable as startUndoableAction } from 'ra-core';\r\nimport Button from '@material-ui/core/Button';\r\nimport SimpleButton from '@material-ui/core/Button';\r\nimport { connect } from 'react-redux';\r\nimport { submit } from 'redux-form';\r\nimport Dialog from '@material-ui/core/Dialog';\r\nimport DialogContent from '@material-ui/core/DialogContent';\r\nimport DialogContentText from '@material-ui/core/DialogContentText';\r\nimport DialogActions from '@material-ui/core/DialogActions';\r\nimport AddIcon from '../../icon/IcnOperateAdd';\r\nimport dataProvider from '../../dataProvider';\r\nimport SaveButton from '../common/SaveButton';\r\nimport {\r\n format,\r\n parseISO,\r\n endOfYesterday\r\n} from 'date-fns'\r\n\r\nconst validateRange = (minDate, maxDate) => (value, allValues, props) => {\r\n var date = parseISO(value);\r\n if (date < minDate || date > maxDate)\r\n return props.translate('notification.invalidRequestParameter');\r\n}\r\n\r\nconst style = theme => ({\r\n formControl: {\r\n minWidth: 250,\r\n marginRight: '5em',\r\n marginLeft: '5em',\r\n display: 'flex',\r\n flexWrap: 'wrap',\r\n },\r\n card: {\r\n marginTop: '2em',\r\n },\r\n button: { marginRight: '1em', marginLeft: '1em' },\r\n});\r\n\r\nclass ReportCreateButton extends React.Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n showDialog: false,\r\n minReportDate: new Date(),\r\n maxReportDate: endOfYesterday(),\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n dataProvider(GET_ONE, 'tenants', { id: 'me' })\r\n .then(response => response.data)\r\n .then(data => {\r\n this.setState({ minReportDate: parseISO(data.serviceStartDate) });\r\n });\r\n }\r\n\r\n handleClick = () => {\r\n this.setState({ showDialog: true });\r\n }\r\n\r\n handleSaveClick = () => {\r\n const { submit } = this.props;\r\n submit('create-report');\r\n }\r\n\r\n handleCloseClick = () => {\r\n this.setState({ showDialog: false });\r\n }\r\n\r\n handleSubmit = values => {\r\n const { resource, basePath, startUndoable } = this.props\r\n startUndoable(\r\n crudCreate(\r\n resource,\r\n { ...values },\r\n basePath,\r\n 'list',\r\n )\r\n );\r\n this.setState({ showDialog: false });\r\n }\r\n\r\n render() {\r\n const { translate, classes } = this.props;\r\n return (\r\n \r\n \r\n \r\n {translate('resources.reports.fields.createReport')}\r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nconst enhance = compose(\r\n withStyles(style),\r\n translate,\r\n connect(\r\n undefined,\r\n { submit, startUndoable: startUndoableAction, crudCreate }\r\n ),\r\n);\r\n\r\nexport default enhance(ReportCreateButton);","import React, { Component, Fragment } from 'react';\r\nimport {\r\n Button,\r\n translate,\r\n crudDelete,\r\n} from 'react-admin';\r\nimport { startUndoable as startUndoableAction } from 'ra-core';\r\nimport Dialog from '@material-ui/core/Dialog';\r\nimport DialogContent from '@material-ui/core/DialogContent';\r\nimport DialogContentText from '@material-ui/core/DialogContentText';\r\nimport DialogActions from '@material-ui/core/DialogActions';\r\nimport compose from 'recompose/compose';\r\nimport { connect } from 'react-redux';\r\nimport { withStyles } from '@material-ui/core/styles';\r\nimport DeleteIcon from '../../icon/IcnDelete';\r\nimport SimpleButton from '@material-ui/core/Button';\r\n\r\nconst styles = {\r\n button: { marginRight: '1em', marginLeft: '1em' },\r\n};\r\n\r\nclass ReportDeleteButton extends Component {\r\n state = {\r\n showDialog: false\r\n };\r\n\r\n handleClick = () => {\r\n this.setState({ showDialog: true });\r\n }\r\n\r\n handleCloseClick = () => {\r\n this.setState({ showDialog: false });\r\n };\r\n\r\n handleSubmit = () => {\r\n const { record, startUndoable, basePath, resource } = this.props;\r\n startUndoable(crudDelete(resource, record.id, record, basePath));\r\n this.setState({ showDialog: false });\r\n }\r\n\r\n render() {\r\n const { showDialog } = this.state;\r\n const { translate } = this.props;\r\n return (\r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nconst enhance = compose(\r\n translate,\r\n connect(\r\n undefined,\r\n { crudDelete, startUndoable: startUndoableAction }\r\n ),\r\n withStyles(styles)\r\n);\r\n\r\nexport default enhance(ReportDeleteButton);","import React, { Fragment } from 'react';\r\nimport {\r\n List,\r\n Datagrid,\r\n TextField,\r\n SelectField,\r\n CardActions\r\n} from 'react-admin';\r\nimport DownloadButton from './DownloadButton';\r\nimport ReportCreateButton from './ReportCreateButton';\r\nimport ReportDeleteButton from './ReportDeleteButton';\r\nimport { Pagination } from 'react-admin';\r\nimport DateField from '../common/DateField';\r\n\r\nconst ReportsActions = props => (\r\n \r\n \r\n \r\n);\r\n\r\nconst ReportList = props => (\r\n } sort={{ field: 'requestDateTime', order: 'DESC' }} bulkActionButtons={false} >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport default ReportList;\r\n","import ReportList from './ReportList';\r\n\r\nexport default {\r\n list: ReportList\r\n}","import React from \"react\";\r\n\r\nconst SvgIcnLogout = props => (\r\n \r\n);\r\n\r\nexport default SvgIcnLogout;\r\n","import React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { userLogout, translate } from 'react-admin';\r\nimport LogoutIcon from '../icon/IcnLogout';\r\nimport List from '@material-ui/core/List';\r\nimport ListItem from '@material-ui/core/ListItem';\r\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\r\nimport ListItemText from '@material-ui/core/ListItemText';\r\nimport compose from 'recompose/compose';\r\n\r\nconst MyLogoutButton = ({ translate, userLogout, ...rest }) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nconst enhance = compose(\r\n translate,\r\n connect(undefined, { userLogout })\r\n);\r\n\r\nexport default enhance(MyLogoutButton);\r\n\r\n","import React from 'react';\r\nimport './App.css';\r\nimport { Admin, Resource, resolveBrowserLocale } from 'react-admin';\r\nimport authProvider from './authProvider';\r\nimport MyLayout from './layout/MyLayout';\r\nimport SysMessages_EN from './i18n/en/SystemWord';\r\nimport SysMessages_JP from './i18n/jp/SystemWord';\r\nimport AppMessages_EN from './i18n/en/AppWord';\r\nimport AppMessages_JP from './i18n/jp/AppWord';\r\nimport MyDashboard from './components/dashboard/MyDashboard';\r\nimport Login from './components/login/Login';\r\nimport resources from './components/resources';\r\nimport operationRules from './components/operation-rules';\r\nimport users from './components/users';\r\nimport terminals from './components/terminals';\r\nimport createHistory from 'history/createBrowserHistory';\r\nimport customRoutes from './customRoutes';\r\nimport dataProvider from './dataProvider';\r\nimport reports from './components/reports';\r\nimport MyLogoutButton from './layout/MyLogoutButton';\r\nimport Role from './const/Role';\r\n\r\nconst messages = {\r\n en: { SysMessages_EN, ...AppMessages_EN },\r\n ja: { ...SysMessages_JP, ...AppMessages_JP }\r\n};\r\nconst i18nProvider = locale => (messages[locale]) ? messages[locale] : messages[\"en\"];\r\nconst history = createHistory();\r\n\r\nconst App = () => (\r\n \r\n {permissions => [\r\n (permissions & Role.OPERATION_MANAGER) === Role.OPERATION_MANAGER ? : null,\r\n (permissions & Role.OPERATION_MANAGER) === Role.OPERATION_MANAGER ? : null,\r\n (permissions & Role.OPERATION_MANAGER) === Role.OPERATION_MANAGER ? : null,\r\n (permissions & Role.ACCOUNT_MANAGER) === Role.ACCOUNT_MANAGER ? : null,\r\n ,\r\n \r\n ]}\r\n \r\n);\r\n\r\nexport default App;\r\n","// This optional code is used to register a service worker.\r\n// register() is not called by default.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on subsequent visits to a page, after all the\r\n// existing tabs open on the page have been closed, since previously cached\r\n// resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model and instructions on how to\r\n// opt-in, read http://bit.ly/CRA-PWA.\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.1/8 is considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport function register(config) {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Let's check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl, config);\r\n\r\n // Add some additional logging to localhost, pointing developers to the\r\n // service worker/PWA documentation.\r\n navigator.serviceWorker.ready.then(() => {\r\n console.log(\r\n 'This web app is being served cache-first by a service ' +\r\n 'worker. To learn more, visit http://bit.ly/CRA-PWA'\r\n );\r\n });\r\n } else {\r\n // Is not localhost. Just register service worker\r\n registerValidSW(swUrl, config);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW(swUrl, config) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the updated precached content has been fetched,\r\n // but the previous service worker will still serve the older\r\n // content until all client tabs are closed.\r\n console.log(\r\n 'New content is available and will be used when all ' +\r\n 'tabs for this page are closed. See http://bit.ly/CRA-PWA.'\r\n );\r\n\r\n // Execute callback\r\n if (config && config.onUpdate) {\r\n config.onUpdate(registration);\r\n }\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n\r\n // Execute callback\r\n if (config && config.onSuccess) {\r\n config.onSuccess(registration);\r\n }\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl, config) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl)\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n if (\r\n response.status === 404 ||\r\n response.headers.get('content-type').indexOf('javascript') === -1\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl, config);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister() {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister();\r\n });\r\n }\r\n}\r\n","import \"core-js/stable\";\r\nimport \"regenerator-runtime/runtime\";\r\nimport 'react-app-polyfill/ie11';\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport './index.css';\r\nimport App from './App';\r\nimport * as serviceWorker from './serviceWorker';\r\n\r\nReactDOM.render(\r\n ,\r\n document.getElementById('root')\r\n);\r\n\r\n// If you want your app to work offline and load faster, you can change\r\n// unregister() to register() below. Note this comes with some pitfalls.\r\n// Learn more about service workers: http://bit.ly/CRA-PWA\r\nserviceWorker.unregister();\r\n"],"sourceRoot":""}