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,KACX,OAAQ,IACR,UAAW,IACX,OAAQ,KACR,UAAW,KACX,OAAQ,KACR,UAAW,KACX,OAAQ,KACR,UAAW,KACX,OAAQ,KACR,UAAW,KACX,QAAS,KACT,WAAY,KACZ,OAAQ,KACR,UAAW,KACX,OAAQ,KACR,UAAW,KACX,OAAQ,IACR,UAAW,IACX,UAAW,KACX,aAAc,KACd,QAAS,KACT,WAAY,KACZ,OAAQ,KACR,UAAW,KACX,QAAS,KACT,WAAY,KACZ,QAAS,KACT,aAAc,KACd,gBAAiB,KACjB,WAAY,KACZ,UAAW,KACX,aAAc,KACd,OAAQ,KACR,UAAW,KACX,OAAQ,IACR,UAAW,IACX,OAAQ,KACR,YAAa,KACb,eAAgB,KAChB,UAAW,KACX,OAAQ,KACR,UAAW,KACX,aAAc,KACd,gBAAiB,KACjB,OAAQ,IACR,UAAW,IACX,UAAW,KACX,aAAc,KACd,UAAW,IACX,aAAc,IACd,UAAW,KACX,aAAc,KACd,UAAW,KACX,aAAc,MAIf,SAASkL,EAAeC,GACvB,IAAIlU,EAAKmU,EAAsBD,GAC/B,OAAOE,EAAoBpU,EAC5B,CACA,SAASmU,EAAsBD,GAC9B,IAAIE,EAAoB5B,EAAEzJ,EAAKmL,GAAM,CACpC,IAAI/X,EAAI,IAAIkY,MAAM,uBAAyBH,EAAM,KAEjD,MADA/X,EAAEmY,KAAO,mBACHnY,CACP,CACA,OAAO4M,EAAImL,EACZ,CACAD,EAAelK,KAAO,WACrB,OAAOjG,OAAOiG,KAAKhB,EACpB,EACAkL,EAAe7U,QAAU+U,EACzBI,EAAOC,QAAUP,EACjBA,EAAejU,GAAK,I","sources":["webpack://evalarmjs/../share/app/javascript/core/legacy/jquery.js","webpack://evalarmjs/../share/app/javascript/core/layout.js","webpack://evalarmjs/../share/app/javascript/services/firebase.js","webpack://evalarmjs/../share/app/javascript/core/legacy.js","webpack://evalarmjs/../share/app/javascript/core.js","webpack://evalarmjs/../share/app/javascript/components/message.js","webpack://evalarmjs/../share/app/javascript/components/modal.js","webpack://evalarmjs/../share/app/javascript/components/pagination.js","webpack://evalarmjs/../share/app/javascript/components/mock-table.js","webpack://evalarmjs/../share/app/javascript/components/table.js","webpack://evalarmjs/../share/app/javascript/services/history.js","webpack://evalarmjs/../share/app/javascript/components/tabs.js","webpack://evalarmjs/../share/app/javascript/core/legacy/ajax-form.js","webpack://evalarmjs/../share/app/javascript/core/legacy/inline-errors.js","webpack://evalarmjs/../share/app/javascript/core/legacy/wizard.js","webpack://evalarmjs/../share/app/javascript/services/attach-terms-modal.js","webpack://evalarmjs/../share/app/javascript/services/createReactRoot.js","webpack://evalarmjs/../share/app/javascript/services/i18n.js","webpack://evalarmjs/../share/app/javascript/services/toastr.js","webpack://evalarmjs/../share/app/javascript/services/utils.js","webpack://evalarmjs/../../shared/node_modules/moment/locale/ sync ^\\.\\/.*$"],"sourcesContent":["import $ from 'jquery'\n\nwindow.$ = $;\nwindow.jQuery = $;","import { scrollToTop } from '../services/utils'\nimport toastr from '../services/toastr'\n\nlet onGlobalClick = e => {\n let link;\n var target = e.target;\n while (target !== e.currentTarget) {\n if(target === null) return;\n if(target.tagName === 'A') {\n link = target;\n break;\n }\n target = target.parentElement;\n }\n if (!link) return;\n\n let href = link.getAttribute('href');\n\n if (href === '#') {\n e.preventDefault();\n }\n\n if (link.dataset.hasOwnProperty('scrollTop')) {\n scrollToTop();\n }\n\n if(link.dataset.hasOwnProperty('popup')) {\n toastr(link.dataset.popup, { theme: 'warning' });\n }\n}\n\nlet tryFocusInput = () => {\n try {\n let node = document.querySelector('form :read-write');\n if (node) node.focus();\n } catch (e) {}\n}\n\nexport default () => {\n window.scrollToTop = scrollToTop;\n\n document.addEventListener('DOMContentLoaded', () => {\n document.body.addEventListener('click', onGlobalClick);\n document.addEventListener('shown.bs.modal', tryFocusInput)\n tryFocusInput();\n });\n}\n","import { initializeApp } from 'babel-loader!firebase/app'\nimport { getMessaging, getToken, deleteToken, onMessage} from 'firebase/messaging'\nimport { I18n } from './i18n'\nimport noop from 'lodash-es/noop'\n\nconst alarmPath = data => {\n switch(window.EVA.app.id) {\n case 'tws':\n return `/alarms${data.type == 1 ? '' : '/external'}/${data.alarm_id}`;\n case 'ews':\n return `/alarms/${data.location_id}/${data.alarm_id}`;\n default:\n return null;\n }\n}\n\nconst processNotification = (alarmStatus, kind) => {\n let key;\n if(alarmStatus == 2 || alarmStatus == 1) {\n key = (kind == 1) ? 'create' : 'update';\n } else if(alarmStatus == 3 || alarmStatus == 4) {\n key = 'close';\n } else if(alarmStatus == 5) {\n key = 'publish_info';\n } else {\n return;\n }\n\n return [I18n.t(`ui.firebase.${key}`), key];\n}\n\nconst getSoundName = key => {\n switch(key) {\n case 'update':\n case 'close':\n return 'update';\n case 'publish_info':\n return 'info';\n default:\n return 'general';\n }\n}\n\nconst showNotification = (path, message, key) => {\n let notification = new Notification(message, { icon: '/files/images/a-letter.png', silent: true });\n notification.addEventListener('show', () => {\n sessionStorage.removeItem('eva:fcm');\n let audio = new Audio(`/files/sounds/${getSoundName(key)}.wav`);\n audio.play();\n });\n\n notification.addEventListener('click', () => {\n window.location = path;\n window.focus();\n notification.close();\n });\n}\n\n// cache push message in case page reloads when push come\nconst restoreNotification = () => {\n if(!sessionStorage.getItem('eva:fcm')) return;\n\n let [path, message, key] = JSON.parse(sessionStorage.getItem('eva:fcm'));\n showNotification(path, message, key);\n}\n\nconst handleNotification = (path, message, key) => {\n sessionStorage.setItem('eva:fcm', JSON.stringify([path, message, key]));\n showNotification(path, message, key);\n}\n\nconst requestPermission = () => {\n if (Notification.permission === 'granted') {\n return new Promise(resolve => resolve());\n } else if (Notification.permission !== 'denied') {\n return Notification.requestPermission();\n } else {\n return Promise.reject('the permission was blocked');\n }\n}\n\nconst setupFirebase = (config, { vapidKey, ...credentials }) => {\n const app = initializeApp(credentials);\n const messaging = getMessaging(app);\n\n if(!config) {\n if (location.pathname.includes('/session/new')) {\n deleteToken(messaging);\n }\n return;\n }\n\n const syncToken = token => {\n if (config.token == token && config.active) return;\n if (config.token) deleteToken(messaging);\n\n $.ajax('/fcm_push', {\n method: 'PATCH',\n contentType: 'application/json',\n data: JSON.stringify({ token: token })\n }).then(() => config.token = token);\n }\n\n requestPermission().then(() => {\n navigator.serviceWorker.register('/firebase-messaging-sw.js', { scope: '/' })\n .then(() => navigator.serviceWorker.ready)\n .then(registration => {\n registration.active.postMessage({\n id: 'eva:init',\n locale: config.locale,\n locationId: gon.app.id\n });\n restoreNotification();\n\n return getToken(messaging, { vapidKey }).then((token) => {\n syncToken(token);\n onMessage(messaging, ({ data }) => {\n let config = processNotification(data.alarm_status, data.kind);\n if (!config) return;\n\n let path = alarmPath(data);\n if (path === null) return;\n\n handleNotification(path, config[0], config[1]);\n\n if (location.pathname.includes(data.alarm_id)) {\n setTimeout(() => location.reload(), 2000);\n }\n });\n });\n });\n }, noop);\n\n // refresh token\n // messaging.onTokenRefresh(() => messaging.getToken().then(syncToken));\n}\n\nif (window.EVA.firebase && ('serviceWorker' in navigator) && ('Notification' in window)) {\n setupFirebase(window.gon.fcm, window.EVA.firebase);\n}\n","import './legacy/jquery'\nimport \"jquery-ujs\"\nimport \"bootstrap-sass/assets/javascripts/bootstrap\"\nimport \"./legacy/ajax-form\"\nimport \"./legacy/inline-errors\"\nimport \"./legacy/wizard\"\nimport { syncLocationPath } from '../components/tabs'\n\nexport default () => {\n jQuery(() => {\n $('body').on('ajax:success', 'a[data-remote=\"reload\"]', () => window.location.reload());\n\n $('body').on('show.bs.tab', e => {\n let tab = e.target.getAttribute('href').slice(1);\n if (tab) {\n syncLocationPath(tab);\n }\n });\n\n $('body').on('shown.bs.dropdown', '.dropdown', e => {\n let dropdown = e.target;\n let menu = dropdown.querySelector('.dropdown-menu').getBoundingClientRect();\n if (window.innerHeight < (menu.top + menu.height)) {\n dropdown.classList.add('dropup');\n }\n }).on('hidden.bs.dropdown', '.dropdown', e => e.target.classList.remove('dropup'));\n });\n}\n","import setupLegacy from './core/legacy'\nimport setupLayout from './core/layout'\n\nimport { I18n } from 'share/services/i18n'\nimport { Provider } from 'react-redux'\nimport attachTermsModal from './services/attach-terms-modal'\nimport createReactRoot from './services/createReactRoot'\nimport merge from 'lodash-es/merge'\nimport './services/firebase'\n\nsetupLegacy();\nsetupLayout();\n\nlet current = EVA.I18n[gon.app.locale.current];\nlet gI18n = gon.I18n || {};\nI18n.setup(gon.app.locale, {\n ...current,\n ...gI18n,\n attrs: merge({}, current.attrs, gI18n.attrs),\n enums: merge({}, current.enums, gI18n.enums),\n tooltip: merge({}, current.tooltip, gI18n.tooltip),\n ui: merge({}, current.ui, gI18n.ui)\n});\n\nwindow.setupPage = () => {\n if(window.app) {\n window.app.init();\n }\n}\n\nwindow.startPendingDownload = path => {\n if (!path) return;\n window.addEventListener('DOMContentLoaded', () => window.location = path);\n}\n\nwindow.renderReactSections = schema => {\n Object.entries(schema).forEach(([nodeId, config]) => {\n let node = document.getElementById(nodeId);\n if(node === null) return;\n\n let Component, props;\n if(Array.isArray(config)) {\n Component = config[0];\n props = config[1];\n } else {\n Component = config;\n }\n\n createReactRoot(node).render();\n });\n}\n\nwindow.renderReactReduxSections = (store, schema) => {\n Object.entries(schema).forEach(([nodeId, config]) => {\n let node = document.getElementById(nodeId);\n if (node === null) return;\n let Component, props;\n if (Array.isArray(config)) {\n Component = config[0];\n props = config[1];\n } else {\n Component = config;\n }\n let section = (\n \n \n \n );\n createReactRoot(node).render(section);\n });\n}\n\nwindow.renderReactFormInNg = (nodeId, component, scope, custom = {}) => {\n let root = createReactRoot(document.getElementById(nodeId));\n\n let props = {\n onSuccess() {\n scope.reloadInfo();\n root.unmount();\n },\n onCancel() {\n root.unmount();\n scope.mode.reset();\n scope.$digest();\n },\n env: gon.env,\n ...custom\n };\n root.render(React.createElement(component, props));\n window.scrollToTop();\n}\n\nwindow.addEventListener('load', () => {\n let termsLink = document.querySelector('a[role=open-terms]');\n if (termsLink) {\n attachTermsModal(termsLink);\n }\n});\n","export default ({ children }) => (\n

{children}

\n);\n","import ReactDOM from 'react-dom'\nimport { Fragment, PureComponent } from 'react'\n\nexport const ModalHeader = ({ onClose, children }) => (\n \n \n {(children && children !== true) ?
{children}
: null}\n
\n);\n\nclass Modal extends PureComponent {\n static defaultProps = {\n skin: 'default',\n size: 'md',\n header: false\n }\n\n constructor(props) {\n super(props);\n this.el = document.createElement('div');\n document.getElementById('modals').appendChild(this.el);\n }\n\n componentWillUnmount() {\n document.getElementById('modals').removeChild(this.el);\n }\n\n renderContent() {\n return this.props.children;\n }\n\n render() {\n return ReactDOM.createPortal(\n \n
\n
\n
\n {\n this.props.header && (\n \n {this.props.header}\n \n )\n }\n {this.renderContent()}\n
\n
\n
\n
\n ,\n this.el\n );\n }\n}\n\nexport const openModal = (render, custom = {}) => new Promise((resolve, reject) => {\n let node = document.createElement('div');\n let onSuccess = (...args) => {\n ReactDOM.unmountComponentAtNode(node);\n resolve(...args);\n };\n let opts = {\n ...custom,\n onSuccess,\n onCancel(...args) {\n ReactDOM.unmountComponentAtNode(node);\n reject(...args);\n },\n onClose: onSuccess\n };\n ReactDOM.render({render(opts)}, node);\n});\n\nexport default Modal;\n","import ReactPaginate from 'react-js-pagination'\n\nexport default ({ page, per_page, total, onChange }) => {\n if (total === 0 || (page === 1 && total <= per_page)) return null;\n\n return (\n
\n }\n lastPageText={}\n prevPageText={}\n nextPageText={}\n onChange={onChange}\n hideDisabled\n />\n
\n );\n}\n","export default () => (\n \n \n \n \n \n \n
\n);\n","import { Component, Fragment, PureComponent } from 'react'\nimport { Translate } from '../services/i18n'\nimport Message from './message'\nimport Pagination from './pagination'\nimport MockTable from './mock-table'\n\nclass Table extends PureComponent {\n static defaultProps = {\n className: ''\n }\n\n render() {\n let { ajax, config, list } = this.props;\n let content, pagination;\n if (list === null) {\n return ;\n } else if (list.length === 0) {\n content = (\n \n \n \n \n \n \n \n );\n } else {\n content = (\n {list.map(this.props.renderRow)}\n );\n }\n\n if (config) {\n pagination = (\n \n );\n }\n\n return (\n \n \n {this.props.renderHeader()}\n {content}\n
\n {pagination}\n
\n );\n }\n}\n\nexport class LoadingTable extends Table {\n static defaultProps = {\n ajax: true,\n renderHeader: () => (\n \n ),\n list: null\n }\n}\n\nexport class PaginationTable extends Component {\n static defaultProps = {\n perPage: 10\n };\n\n static getDerivedStateFromProps(props, state) {\n let total = (props.list === null) ? null : props.list.length;\n if (state.total === total) return null;\n\n let result = { total };\n if (total === null) {\n result.page = 1;\n } else if (total <= (state.page - 1) * props.perPage) {\n result.page = Math.max(state.page - 1, 1);\n }\n return result;\n }\n\n constructor(props) {\n super(props);\n this.state = { page: 1, total: null }\n this.onPageChange = this.onPageChange.bind(this);\n }\n\n onPageChange(page) {\n this.setState({ page });\n }\n\n render() {\n let { perPage, list, ...props } = this.props;\n let { page, total } = this.state;\n let config = { page, total, per_page: perPage };\n\n let pageList;\n if (list === null) {\n pageList = list;\n } else {\n pageList = list.slice((page - 1) * perPage, page * perPage);\n }\n return \n }\n}\n\nexport default Table;\n","import { createBrowserHistory } from 'history'\n\nexport default createBrowserHistory();\n","import { Component, Fragment } from 'react'\nimport { LoadingTable } from './table'\nimport history from '../services/history'\n\nconst getTabId = tabs => {\n let result = location.search.match(/subnav=(\\w+)/);\n if (result !== null) {\n let suggestion = result[1];\n if (tabs.includes(suggestion)) {\n return suggestion;\n }\n }\n return tabs[0];\n}\n\nexport const syncLocationPath = tab =>\n history.replace(`${location.pathname}?subnav=${tab}`);\n\nconst buildCache = tabs => tabs.reduce((acc, key) => {\n acc[key] = null;\n return acc;\n}, {});\n\nexport default class extends Component {\n static defaultProps = {\n inline: false\n }\n\n constructor(props, custom = {}) {\n super();\n let tabs = Object.keys(props.tabs || this.constructor.tabs);\n this.cache = buildCache(tabs);\n this.state = { tab: getTabId(tabs), ...custom };\n this.onTabChange = this.onTabChange.bind(this);\n this.onTabStateChange = this.onTabStateChange.bind(this);\n this.renderTab = this.renderTab.bind(this);\n }\n\n onTabChange(tab) {\n this.setState({ tab });\n if (!this.props.inline) {\n syncLocationPath(tab);\n }\n }\n\n onTabStateChange(data) {\n this.cache[this.state.tab] = data;\n }\n\n renderLoadingTab() {\n return ();\n }\n\n renderTab([key, render]) {\n let content;\n if (typeof render === 'function') {\n content = render.call(null, this.state, this.props);\n if (content === null) {\n return null;\n }\n } else {\n content = render;\n }\n\n let link;\n if (this.props.disabled) {\n link = ({content});\n } else {\n link = (\n \n {content}\n \n );\n }\n\n return (\n
  • \n {link}\n
  • \n );\n }\n\n renderContent(tab, cache) {\n return this.props.renderContent({ tab, cache, onCacheChange: this.onTabStateChange });\n }\n\n render() {\n let { tab } = this.state;\n let tabs = Object.entries(this.props.tabs || this.constructor.tabs).map(this.renderTab);\n let tabList;\n if (1 < tabs.length) {\n tabList = (
      {tabs}
    )\n }\n return (\n \n {tabList}\n {this.renderContent(tab, this.cache[tab])}\n \n );\n }\n}\n","(function($) {\n $.fn.ajaxForm = function(_options) {\n var options = _options || {};\n\n this.each(function() {\n var $form = $(this);\n\n $form.on(\"ajax:beforeSend\", function(a, b, settings) {\n settings[\"dataType\"] = \"json\";\n $form.inlineErrors(\"reset\");\n }).on(\"ajax:success\", function(a, b, c, xhr) {\n if(options.success) {\n options.success($form, xhr);\n return;\n }\n\n if($form.data(\"reload\")) {\n location.reload();\n return;\n }\n var url = xhr.getResponseHeader(\"Location\");\n if(url) location.href = url;\n }).on(\"ajax:error\", function(a, xhr) {\n if(xhr.status == 401) {\n window.location = xhr.getResponseHeader(\"Location\");\n return;\n } else if(!xhr.responseJSON) return;\n $.inlineErrorsUpdate($form, xhr.responseJSON[\"errors\"]);\n $form.trigger(\"ajax:formErrors\", [xhr.responseJSON]);\n });\n });\n return this;\n }\n})(jQuery);\n","(function($) {\n $.fn.inlineErrors = function(action, options) {\n if(!options) options = {};\n var selector = null;\n if(options.key)\n selector = \"[data-error-for=\" + options.key + \"]\";\n else\n selector = \"[data-error-for]\"\n\n var $dom = this.find(selector);\n\n switch(action) {\n case \"reset\":\n $dom.removeClass('d-block').empty();\n break;\n case \"update\":\n var content = options.content;\n if(content instanceof Array) content = content[0];\n $dom.addClass('d-block').html(content);\n break;\n case \"active\":\n $dom = $dom.filter(\".d-block\");\n break;\n\n }\n return $dom;\n }\n\n $.inlineErrorsUpdate = function($dom, list) {\n var applied = false\n $.each(list, function(key, content) {\n var $items = $dom.inlineErrors(\"update\", { key: key, content: content });\n if($items.length != 0) applied = true;\n });\n return applied;\n };\n\n $.inlinePopupErrorsUpdate = function($dom, list) {\n var applied = false;\n $.each(list, function(key) {\n var $popup = $dom.find('[data-error-popup-for=\"' + key + '\"]');\n if($popup.length != 0) {\n applied = true;\n $popup.modal(\"show\");\n return false;\n }\n });\n return applied;\n }\n})(jQuery);\n","const getPages = ($wizard, page) => $wizard.find(page ? `[data-wizard-page=\"${page}\"]` : '[data-wizard-page]');\n\n(($) => {\n $.fn.wizard = function() {\n this.each(function() {\n var $wizard = $(this),\n $back = $wizard.find('[data-back-button]'),\n $next = $wizard.find('[data-next-button]'),\n $form = $wizard.parents(\"form\"),\n pages = [], currentPage, locked = false;\n getPages($wizard).each(function() { pages.push($(this).data(\"wizardPage\")); });\n\n var updateWizard = function(newPage) {\n if(locked) return;\n currentPage = newPage;\n\n if((pages.indexOf(currentPage) == 0) || ((currentPage == pages.length) && $wizard.data(\"wizardReview\"))) {\n $wizard.find('[data-cancel-button]').show();\n $back.hide();\n } else {\n $back.show();\n $wizard.find('[data-cancel-button]').hide();\n }\n\n if(pages.indexOf(currentPage) >= (pages.length - 1)) {\n $next.hide();\n $wizard.find('[data-finish-button]').show();\n } else {\n $wizard.find('[data-finish-button]').hide();\n $next.show();\n }\n getPages($wizard).hide();\n getPages($wizard, currentPage).show();\n $wizard.trigger(\"wizard:pageChanged\", { page: currentPage });\n window.scrollToTop();\n }\n updateWizard(pages[0]);\n\n $form.on(\"ajax:formErrors\", function() {\n var page = $form.inlineErrors(\"active\").first().parents(\"[data-wizard-page]\").data(\"wizardPage\");\n updateWizard(page || pages[0]);\n }).on('ajax:beforeLoad', function() {\n $form.find('a[data-wizard-link]').prop('disabled', true);\n }).on('ajax:complete', function() {\n $form.find('a[data-wizard-link]').prop('disabled', false);\n });\n\n // prevent form submit on hitting \"Enter\" key\n $wizard.on(\"keypress\", function(e) {\n if(e.keyCode == 13) {\n e.preventDefault();\n e.stopPropagation();\n }\n });\n\n // wizard navigation\n $next.on(\"click\", function(e) {\n if(locked) return;\n\n locked = true;\n var $page = getPages($wizard, currentPage);\n $page.inlineErrors(\"reset\");\n $.ajax($wizard.data('validate'), {\n cache: false,\n data: $form.serialize(),\n dataType: 'json',\n type: 'PATCH'\n }).always(() => locked = false)\n .success(function() { updateWizard(currentPage + 1); })\n .error(function(xhr) {\n window.app.get('ngAjax').onErrorResponse(xhr, function() {\n var turnPage = true;\n if($.inlineErrorsUpdate($page, xhr.responseJSON[\"errors\"])) turnPage = false;\n if($.inlinePopupErrorsUpdate($page, xhr.responseJSON[\"errors\"])) turnPage = false;\n if(turnPage) updateWizard(currentPage + 1);\n });\n });\n });\n\n $back.on(\"click\", function(e) {\n updateWizard(currentPage - 1);\n });\n\n $wizard.on(\"click\", \"a[data-wizard-link]\", function(e) {\n e.preventDefault();\n var page = $(this).data(\"wizardLink\");\n updateWizard(page);\n });\n });\n }\n\n $(function() { $(\"[data-wizard]\").wizard(); });\n})(jQuery);\n","import Modal, { openModal, ModalHeader } from '../components/modal'\nimport { Translate } from '../services/i18n'\n\nexport default node => {\n node.addEventListener('click', e => {\n e.preventDefault();\n openModal(props => (\n \n \n EVALARM\n
    \n \n
    \n
    \n