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app/javascript/components/modal.js","webpack://evalarmjs/../share/app/javascript/components/pagination.js","webpack://evalarmjs/../share/app/javascript/components/tooltip.js","webpack://evalarmjs/../share/app/javascript/directives/ng-pagination.js","webpack://evalarmjs/../share/app/javascript/features/alarms/utils.js","webpack://evalarmjs/../share/app/javascript/features/tasks/utils.js","webpack://evalarmjs/../share/app/javascript/services/api.js","webpack://evalarmjs/../share/app/javascript/services/array-utils.js","webpack://evalarmjs/../share/app/javascript/services/confirm.js","webpack://evalarmjs/../share/app/javascript/services/createReactRoot.js","webpack://evalarmjs/../share/app/javascript/services/forms.js","webpack://evalarmjs/../share/app/javascript/services/i18n.js","webpack://evalarmjs/../share/app/javascript/services/mappers/has-many.js","webpack://evalarmjs/../share/app/javascript/services/person-role.js","webpack://evalarmjs/../share/app/javascript/services/rails-fetch.js","webpack://evalarmjs/../share/app/javascript/services/time.js","webpack://evalarmjs/../share/app/javascript/services/toastr.js","webpack://evalarmjs/../share/app/javascript/services/truncate.js","webpack://evalarmjs/../share/app/javascript/services/utils.js","webpack://evalarmjs/../share/app/javascript/services/validators.js","webpack://evalarmjs/./app/javascript/components/GroupName.js","webpack://evalarmjs/./app/javascript/ng/schema.js","webpack://evalarmjs/../share/app/javascript/ng/resource.js","webpack://evalarmjs/../share/app/javascript/ng/resty-factory.js","webpack://evalarmjs/../share/app/javascript/ng/setup-schema.js","webpack://evalarmjs/../share/app/javascript/ng/init.js","webpack://evalarmjs/../share/app/javascript/directives/eva-enum.js","webpack://evalarmjs/../share/app/javascript/directives/eva-filter-block.js","webpack://evalarmjs/../share/app/javascript/directives/eva-sync-list.js","webpack://evalarmjs/../share/app/javascript/directives/eva-restore-form.js","webpack://evalarmjs/../share/app/javascript/directives/ng-ajax.js","webpack://evalarmjs/../share/app/javascript/directives/ng-popup.js","webpack://evalarmjs/../share/app/javascript/directives/eva-phone-link.js","webpack://evalarmjs/../share/app/javascript/repositories/country.js","webpack://evalarmjs/../share/app/javascript/repositories/user.js","webpack://evalarmjs/../share/app/javascript/ng/services/i18n.js","webpack://evalarmjs/../share/app/javascript/ng/services/view-mode.js","webpack://evalarmjs/../share/app/javascript/templates/index.js","webpack://evalarmjs/../share/app/javascript/templates/eva-view-popup.html","webpack://evalarmjs/../share/app/javascript/angular.js","webpack://evalarmjs/../share/app/javascript/directives/eva-location-logo.js","webpack://evalarmjs/../share/app/javascript/directives/eva-t-attr.js","webpack://evalarmjs/../share/app/javascript/ng/services/eva-uploader.js","webpack://evalarmjs/../share/app/javascript/ng/services/utils.js","webpack://evalarmjs/../share/app/javascript/directives/ng-tooltip.js","webpack://evalarmjs/../share/app/javascript/directives/ng-variants.js","webpack://evalarmjs/../share/app/javascript/directives/eva-react-form.js","webpack://evalarmjs/../share/app/javascript/directives/eva-location-limits.js","webpack://evalarmjs/../share/app/javascript/ng/services/ng-resource-filter.js","webpack://evalarmjs/../share/app/javascript/services/listFilterFactory.js","webpack://evalarmjs/./app/javascript/directives/eva-series.js","webpack://evalarmjs/./app/javascript/ng/directives/eva-download-file.js","webpack://evalarmjs/./app/javascript/directives/eva-link-group.js","webpack://evalarmjs/./app/javascript/ng/directives/eva-user-search.js","webpack://evalarmjs/./app/javascript/directives/eva-sectors.js","webpack://evalarmjs/./app/javascript/ng/directives/ng-toggle.js","webpack://evalarmjs/./app/javascript/ng/repositories/alarm-sector.js","webpack://evalarmjs/./app/javascript/ng/repositories/alarm-type.js","webpack://evalarmjs/./app/javascript/ng/repositories/alarm.js","webpack://evalarmjs/./app/javascript/ng/repositories/building-sector.js","webpack://evalarmjs/./app/javascript/ng/repositories/contact-list.js","webpack://evalarmjs/./app/javascript/ng/repositories/document.js","webpack://evalarmjs/./app/javascript/ng/repositories/document-group.js","webpack://evalarmjs/./app/javascript/ng/repositories/location.js","webpack://evalarmjs/../share/app/javascript/services/units.js","webpack://evalarmjs/./app/javascript/ng/repositories/oncall-group.js","webpack://evalarmjs/./app/javascript/ng/repositories/permission-group.js","webpack://evalarmjs/./app/javascript/ng/repositories/room-sector.js","webpack://evalarmjs/./app/javascript/ng/repositories/route-map.js","webpack://evalarmjs/./app/javascript/ng/repositories/statistics.js","webpack://evalarmjs/./app/javascript/ng/repositories/task-list.js","webpack://evalarmjs/./app/javascript/ng/repositories/task.js","webpack://evalarmjs/./app/javascript/ng/repositories/user-group.js","webpack://evalarmjs/./app/javascript/ng/repositories/workflow.js","webpack://evalarmjs/./app/javascript/ng/services/user-dashboard.js","webpack://evalarmjs/./app/javascript/ng/templates/index.js","webpack://evalarmjs/./app/javascript/ng/templates/eva-import-status.html","webpack://evalarmjs/./app/javascript/ng/templates/eva-log-resources.html","webpack://evalarmjs/./app/javascript/ng/templates/eva-structure-log.html","webpack://evalarmjs/./app/javascript/ng/templates/eva-workflow-sectors.html","webpack://evalarmjs/./app/javascript/packs/angular.js","webpack://evalarmjs/./app/javascript/ng/directives/eva-check-allowed.js","webpack://evalarmjs/./app/javascript/ng/directives/evaGroupName.js","webpack://evalarmjs/./app/javascript/ng/directives/eva-limit-to.js","webpack://evalarmjs/./app/javascript/ng/directives/eva-resource-count.js","webpack://evalarmjs/./app/javascript/ng/directives/eva-task-info.js","webpack://evalarmjs/./app/javascript/ng/directives/eva-multi.js","webpack://evalarmjs/./app/javascript/ng/directives/eva-import-status.js","webpack://evalarmjs/./app/javascript/ng/repositories/fire-department-plan.js","webpack://evalarmjs/./app/javascript/ng/services/sector-data-loader.js","webpack://evalarmjs/./app/javascript/ng/repositories/sector-insider.js","webpack://evalarmjs/./app/javascript/ng/repositories/tws-user.js","webpack://evalarmjs/./app/javascript/services/policy.js","webpack://evalarmjs/../../shared/node_modules/moment/locale/ sync ^\\.\\/.*$","webpack://evalarmjs/../share/app/javascript/directives/eva-nullify.js","webpack://evalarmjs/../share/app/javascript/directives/eva-view-popup.js","webpack://evalarmjs/../share/app/javascript/directives/ng-filter-form.js","webpack://evalarmjs/../share/app/javascript/directives/ng-numeric.js","webpack://evalarmjs/../share/app/javascript/repositories/lang.js","webpack://evalarmjs/../share/app/javascript/repositories/role.js","webpack://evalarmjs/./app/javascript/ng/directives/eva-alarm-icon.js","webpack://evalarmjs/./app/javascript/ng/directives/eva-import.js","webpack://evalarmjs/./app/javascript/ng/directives/fa-caret.js","webpack://evalarmjs/./app/javascript/ng/directives/ng-ajax-inline-form.js","webpack://evalarmjs/./app/javascript/ng/directives/ng-search-line.js","webpack://evalarmjs/./app/javascript/ng/repositories/contact.js","webpack://evalarmjs/./app/javascript/ng/repositories/espa-route.js","webpack://evalarmjs/./app/javascript/ng/repositories/external-unit-type.js","webpack://evalarmjs/./app/javascript/ng/repositories/external-unit.js","webpack://evalarmjs/../share/app/javascript/directives/eva-nullify.js?16ba","webpack://evalarmjs/../share/app/javascript/directives/eva-view-popup.js?3b8a","webpack://evalarmjs/../share/app/javascript/directives/ng-filter-form.js?8b14","webpack://evalarmjs/../share/app/javascript/directives/ng-numeric.js?4fc6","webpack://evalarmjs/../share/app/javascript/repositories/lang.js?fb5b","webpack://evalarmjs/../share/app/javascript/repositories/role.js?b788","webpack://evalarmjs/./app/javascript/ng/directives/eva-alarm-icon.js?b11d","webpack://evalarmjs/./app/javascript/ng/directives/eva-import.js?490d","webpack://evalarmjs/./app/javascript/ng/directives/fa-caret.js?952f","webpack://evalarmjs/./app/javascript/ng/directives/ng-ajax-inline-form.js?f46e","webpack://evalarmjs/./app/javascript/ng/directives/ng-search-line.js?c11a","webpack://evalarmjs/./app/javascript/ng/repositories/contact.js?6a10","webpack://evalarmjs/./app/javascript/ng/repositories/espa-route.js?1071","webpack://evalarmjs/./app/javascript/ng/repositories/external-unit-type.js?f58d","webpack://evalarmjs/./app/javascript/ng/repositories/external-unit.js?7c04"],"sourcesContent":["import { PureComponent, Fragment } from 'react'\nimport { Translate } from '../services/i18n'\n\nclass Base extends PureComponent {\n static defaultProps = {\n mod: 'info',\n className: ''\n }\n\n renderContent() {\n return this.props.children;\n }\n\n render() {\n return (\n
\n {this.renderContent()}\n
\n )\n }\n}\n\nexport class WarningAlert extends Base {\n static defaultProps = {\n ...Base.defaultProps,\n mod: 'warning'\n }\n\n renderContent() {\n return (\n \n \n {this.props.message ? : this.props.children}\n \n );\n }\n}\n\nexport default Base;","import { Component, Fragment } from 'react'\nimport PropTypes from 'prop-types'\nimport { I18n } from '../services/i18n'\nimport railsFetch from '../services/rails-fetch'\nimport Modal from './modal'\n\nconst MAX_SIZE = { logo: 1048576, file: 5242880 };\n\nconst rejectWithAlert = key => {\n window.alert(I18n.t(`ui.eva_uploader.${key}`));\n return false;\n}\n\nexport const PRESETS = {\n evaImport(file) {\n if(file.type.includes('sheet') || file.name.includes('.xlsx')) {\n return true;\n }\n return rejectWithAlert('invalid_file_format');\n },\n evaLogo(file) {\n if (!['image/jpeg', 'image/png'].includes(file.type)) {\n return rejectWithAlert('invalid_file_format');\n }\n\n // more than 1 MB\n if (file.size > MAX_SIZE.logo) {\n return rejectWithAlert('reached_max_file_size');\n }\n\n return true;\n },\n evaMap(file) {\n if ('application/pdf' !== file.type) {\n return rejectWithAlert('invalid_file_format');\n }\n\n if (file.size > MAX_SIZE.file) {\n return rejectWithAlert('reached_max_file_size');\n }\n\n return true;\n },\n evaAlarmAttachment(file) {\n if ('application/pdf' !== file.type) {\n return rejectWithAlert('invalid_file_format');\n }\n\n if (file.size > MAX_SIZE.file) {\n return rejectWithAlert('reached_max_file_size');\n }\n\n return true;\n }\n}\n\nexport default class extends Component {\n static propTypes = {\n preset: PropTypes.oneOf(Object.keys(PRESETS)).isRequired\n }\n\n constructor(props) {\n super();\n this.state = { preview: false };\n this.preset = PRESETS[props.preset];\n this.fileInputRef = React.createRef();\n this.onFileSelect = this.onFileSelect.bind(this);\n this.onFileSelected = this.onFileSelected.bind(this);\n this.onReset = this.onReset.bind(this);\n this.onPreviewOpen = () => this.setState({ preview: true });\n this.onPreviewClose = () => this.setState({ preview: false });\n }\n\n componentDidMount() {\n this.fileInputRef.current.addEventListener('change', this.onFileSelected);\n }\n\n onFileSelect() {\n this.fileInputRef.current.click();\n }\n\n onFileSelected(e) {\n let file = e.target.files[0];\n if (!(file && this.preset(file))) return;\n var body = new FormData();\n body.append('file', file);\n railsFetch(Routes.uploads(), 'POST', { body }).then(resp => resp.json()).then(data =>\n this.props.onChange({ id: data.file, name: file.name }));\n this.fileInputRef.current.value = '';\n }\n\n onReset() {\n this.props.onChange(null);\n }\n\n render() {\n let { value } = this.props;\n let fileName, previewBtn, resetBtn, modal;\n\n if (value) {\n fileName = value.name;\n previewBtn = (\n \n \n \n );\n resetBtn = (\n \n \n \n );\n\n if (this.state.preview) {\n let previewPath = `/uploads/${encodeURIComponent(value.id)}`;\n modal = (\n \n \n
\n \n \n \n \\n
\\n\";","import app from \"./ng/init\"\nimport evaEnum from \"./directives/eva-enum\"\nimport evaFilterBlock from \"./directives/eva-filter-block\"\nimport evaLocationLogo from './directives/eva-location-logo'\nimport \"script-loader!./directives/eva-nullify\"\nimport { ng as evaPersonRole } from \"./services/person-role\"\nimport evaSyncList from \"./directives/eva-sync-list\"\nimport { ng as evaTAttr } from \"./directives/eva-t-attr\"\nimport \"script-loader!./directives/eva-view-popup\"\nimport evaReactForm from './directives/eva-react-form'\nimport evaRestoreForm from './directives/eva-restore-form'\nimport ngAjaxSetup from \"./directives/ng-ajax\"\nimport \"script-loader!./directives/ng-filter-form\"\nimport \"script-loader!./directives/ng-numeric\"\nimport ngPagination from \"./directives/ng-pagination\"\nimport ngPopup from \"./directives/ng-popup\"\nimport ngTooltip from \"./directives/ng-tooltip\"\nimport evaLocationLimits from './directives/eva-location-limits'\nimport { ng as ngTruncate } from \"./services/truncate\"\nimport ngVariants from \"./directives/ng-variants\"\nimport evaPhoneLink from './directives/eva-phone-link'\n\nimport Country from \"./repositories/country\"\nimport \"script-loader!./repositories/lang\"\nimport \"script-loader!./repositories/role\"\nimport User from \"./repositories/user\"\n\nimport { ng as evaUploader } from \"./ng/services/eva-uploader\"\nimport I18nTT from \"./ng/services/i18n\"\nimport ngResourceFilter from \"./ng/services/ng-resource-filter\"\nimport { ng as utils } from './ng/services/utils'\nimport viewMode from \"./ng/services/view-mode\"\nimport { buildId } from './services/utils'\n\napp.schema.utils.buildId = buildId;\n\nimport templates from './templates'\n\nimport { I18n } from './services/i18n'\n\nevaLocationLogo(app);\nevaPersonRole(app);\nevaTAttr(app);\nevaUploader(app);\nngPagination(app);\nngPopup(app);\nngTruncate(app);\nutils(app);\nUser(app);\nngAjaxSetup(app);\n\napp.directive('ngTooltip', ngTooltip)\n .directive('ngVariants', ngVariants)\n .directive('evaEnum', evaEnum)\n .directive('evaFilterBlock', evaFilterBlock)\n .directive('evaPhoneLink', evaPhoneLink)\n .directive('evaReactForm', evaReactForm)\n .directive('evaRestoreForm', evaRestoreForm)\n .directive('evaSyncList', evaSyncList)\n .directive('i18nDynamic', () => ({\n scope: { key: '=i18nDynamic' },\n link($scope, $element) {\n $element.text(I18n.t($scope.key));\n $scope.$watch('key', key => $element.text(I18n.t(key)));\n }\n }))\n .directive('i18nStatic', () => ({\n link($scope, $element, $attrs) {\n $element.text(I18n.t($attrs.i18nStatic));\n }\n }))\n .directive('evaLocationLimits', evaLocationLimits)\n\n .factory('ngResourceFilter', ngResourceFilter)\n .factory('tt', I18nTT)\n .factory('ViewMode', viewMode)\n\n .service('License', () => console.warn('License --- DEPRECATED'))\n .service('Country', Country)\n\n .cacheTemplates(templates);\n","import { getFileUrl } from '../services/api'\n\nexport default app => app.directive('evaLocationLogo', () => ({\n restrict: 'E',\n template: '',\n replace: true,\n scope: false,\n link(_, element, attrs) {\n let url = `/${attrs.type}/${attrs.resourceId}/logo`;\n if (attrs.hasOwnProperty('force')) {\n url = `${url}?rev=${Date.now()}`;\n }\n getFileUrl(url).then(imgSrc => element.attr({ src: imgSrc, class: attrs.class }));\n }\n}));\n","import { tAttr } from '../services/utils'\n\nexport const ng = app => {\n app.filter('evaTAttr', () => tAttr);\n app.directive('evaTAttr', () => ({\n link: (scope, element, attrs) => scope.$watch(attrs.evaTAttr, value => element.text(tAttr(value)))\n }));\n}\n","import { PRESETS } from '../../components/file-upload'\n\nexport const ng = app => {\n let baseConfig = {\n autoUpload: true,\n headers: { 'X-CSRF-Token': $('meta[name=\"csrf-token\"]').attr('content') },\n removeAfterUpload: true,\n uploadPath(value) {\n if(!value) return;\n let id = (typeof value == 'object') ? value.id : value;\n return `/uploads/${encodeURIComponent(id)}`;\n },\n url: Routes.uploads()\n };\n\n app.factory(\"EvaUploader\", [\"FileUploader\", \"cfpLoadingBar\", (FileUploader, loadingBar) => {\n let getElement = uploader => uploader._directives.select[0].element;\n\n // reset upload input to not break ajax form request\n let clearInput = function() {\n getElement(this).prop(\"value\", null);\n }\n\n return (type, callback) => {\n var uploader = new FileUploader({ ...baseConfig, filters: [{ name: type, fn: PRESETS[type] }] });\n\n uploader.onBeforeUploadItem = function() {\n getElement(this).trigger(\"eva:uploadStarted\");\n loadingBar.start();\n }\n uploader.onCompleteItem = function() {\n getElement(this).trigger(\"eva:uploadCompleted\");\n loadingBar.complete();\n }\n\n uploader.onSuccessItem = (fi, response) => {\n callback({ id: response.file, filename: fi.file.name });\n }\n\n // reset upload input to not break ajax form request\n uploader.onCompleteAll = clearInput;\n uploader.onWhenAddingFileFailed = clearInput;\n\n return uploader;\n }\n }]);\n}\n","import { forResource, forRoute } from '../../services/forms'\n\nexport const ng = app => {\n app.service(\"utils\", [\"cfpLoadingBar\", \"EvaUploader\", \"paginators\", \"ViewMode\",\n (loadingBar, EvaUploader, paginators, ViewMode) => {\n return {\n formForKlass: function(klass) {\n return this.formForRoute(klass.route());\n },\n formForResource: (item, ...list) => forResource(item, list),\n formForRoute: forRoute,\n startLoadingBar: function() {\n loadingBar.start();\n },\n completeLoadingBar: function() {\n loadingBar.complete();\n },\n newViewMode: function(config) {\n return new ViewMode(config);\n },\n paginateArray: function() {\n return paginators.forArray.apply(paginators, arguments);\n },\n paginateNestedRoute() {\n return paginators.forNestedRoute.apply(paginators, arguments);\n },\n paginateTable: function() {\n return paginators.forTable.apply(paginators, arguments);\n },\n reloadInfo: function(resource, mode, callback) {\n return function() {\n loadingBar.start();\n resource.reload().then(function() {\n if(mode) mode.reset();\n if(callback) callback(resource);\n loadingBar.complete();\n });\n }\n },\n uploader: function() {\n return EvaUploader.apply(EvaUploader, arguments);\n }\n }\n }\n ]);\n}\n","import { attachTooltip } from '../components/tooltip'\n\nexport default () => ({\n link(scope, element, attrs) {\n attachTooltip(element[0], attrs.ngTooltip, attrs.placement || 'top');\n scope.$on(\"$destroy\", () => element.tooltip('hide'));\n }\n})\n","export default () => ({\n link: function($scope, $element, $attrs) {\n if($element.next('[ng-variants-block]').length > 0) return;\n\n let $block = $(`\n
\n \n
    \n ${JSON.parse($attrs.ngVariants).map(variant => `
  • ${variant}
  • `).join('')}\n
\n
`);\n $block.on('click', 'span', () => $block.toggleClass('input-autocomplete--open'))\n .on('click', 'li', function() {\n $element.val($(this).text());\n $block.removeClass('input-autocomplete--open');\n });\n\n $element.after($block);\n }\n});\n","import ReactDom from 'react-dom'\n\nexport default () => ({\n restrict: \"E\",\n scope: { props: '=', component: '=' },\n link($scope, $element) {\n let Component = $scope.component;\n ReactDom.render(, $element[0]);\n }\n})\n","import { I18n } from '../services/i18n'\n\nexport default () => ({\n scope: { limits: '=evaLocationLimits' },\n link($scope, $element) {\n let sortIndexes = Object.keys(window.EVA.licenses.limits);\n let sortLimits = (a, b) => sortIndexes.indexOf(a[0]) - sortIndexes.indexOf(b[0]);\n let list = Object.entries($scope.limits).sort(sortLimits);\n let content = list.reduce((acc, [key, value]) => {\n if (value === 0 && key === 'connectors') return acc;\n\n let strValue = (value === null) ? I18n.t('ui.eva_license.counts.unlimited') : value;\n let label = `${I18n.t(`ui.eva_license.limits.${key}`)}`;\n return acc + (key === 'sms_configs' ? '
  • ' : '') +`
  • ${label}${strValue}
  • `;\n }, '');\n $element.html(content);\n }\n})\n","import { I18n } from '../../services/i18n'\nimport { camelize } from '../../services/utils'\nimport listFilterFactory from '../../services/listFilterFactory'\nimport { replaceBy } from '../../services/array-utils'\nimport sortBy from 'lodash-es/sortBy'\n\nexport default () => {\n let filter = (resource, route) => {\n if (route == 'all') return true;\n\n return resource.route === route;\n }\n\n return (initRoutes, sorting) => {\n let pairs = [\n [I18n.t('form.all'), 'all']\n ].concat(initRoutes.map(key => ([I18n.t(`models.${key.replace(/s$/, '')}.other`), key])));\n let filters = listFilterFactory(pairs, filter);\n\n filters.reset = () => filters.current = filters[0];\n filters.order = (resources) => sortBy(resources, sorting);\n filters.apply = (resources) => filters.current.apply(resources);\n filters.join = (source, keys) => sortBy(keys.flatMap(key => source[key] || []), sorting);\n filters.updateByForm = (owner, list, routes = initRoutes) => {\n let unsorted = list.reduce((acc, resource) => {\n if(!acc[resource.route]) acc[resource.route] = [];\n\n acc[resource.route].push(resource);\n return acc;\n }, {});\n routes.forEach((route) => replaceBy(owner[`$${camelize(route)}`], filters.order(unsorted[route] || [])));\n filters.reset();\n }\n filters.reset();\n return filters;\n }\n}\n","export default (variants, check) => variants.map(([label, variant]) => ({\n label,\n apply: (collection) => collection.filter(item => check(item, variant))\n}))\n","let defaults = { delimiter: ', ', expression: '$resource.name', limit: null };\n\nconst build = (scope, list, options) => {\n let limit = options.limit ? Math.min(options.limit, list.length) : list.length;\n if(!list) list = [];\n let i = 0, result = \"\";\n while(i < limit) {\n if(i > 0) result += options.delimiter;\n result += scope.$eval(options.expression, { $resource: list[i] });\n i++;\n }\n return result;\n}\n\nexport default () => ({\n restrict: \"A\",\n scope: { series: \"=evaSeries\" },\n link($scope, $element, $attrs) {\n let options = Object.entries(defaults).reduce((acc, [k, v]) => {\n acc[k] = $attrs.hasOwnProperty(k) ? $attrs[k] : v;\n return acc;\n }, {});\n options.delimiter = options.delimiter.replace(/ /g, \" \");\n $scope.$watchCollection(\"series\", (list) => {\n $element.text(build($scope, list || [], options));\n });\n }\n})\n","import { downloadFile } from 'share/services/api'\n\nexport default app => app.directive('evaDownloadFile', () => ({\n scope: false,\n link(scope, element, attrs) {\n element.attr('href', '#');\n element.on('click', e => {\n e.preventDefault();\n let loader = $('').addClass('eva-loader');\n let opts = { filename: attrs.filename || element.text() };\n\n element.addClass('d-none');\n element.after(loader);\n\n let onComplete = () => {\n element.removeClass('d-none');\n loader.remove();\n };\n\n downloadFile(attrs.evaDownloadFile, opts).then(onComplete, onComplete);\n })\n }\n}));\n","import { Component, Fragment } from 'react'\nimport Alert from 'share/components/alert'\nimport { ModalHeader, openModal } from 'share/components/modal'\nimport { I18n, Translate } from 'share/services/i18n'\nimport { isBlank } from 'share/services/validators'\nimport { commit } from 'share/services/rails-fetch'\n\nclass LinkConnector extends Component {\n constructor(props) {\n super(props);\n this.state = { value: '', error: null };\n this.onChange = this.onChange.bind(this);\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onChange(e) {\n this.setState({ value: e.target.value });\n }\n\n onSubmit() {\n let { env } = this.props;\n let config = { body: { token: this.state.value, route: `${env.modelName}s` } };\n commit(Routes.connectLinkRequest(env.id), 'PATCH', config)\n .then(() => this.props.onSuccess(),\n ({ json }) => this.setState({ error: json.error_message }));\n }\n\n render() {\n let { value, error } = this.state;\n return (\n \n \n \n \n
    \n
    \n \n
    \n \n \n \n
    \n
    \n {error && {error}}\n
    \n
    \n );\n }\n}\n\nexport default () => ({\n scope: false,\n link($scope, $element) {\n $element.on('click', () => {\n openModal(props => , { skin: 'center' }).then(() => $scope.reloadInfo(), () => null);\n });\n }\n});\n","const isMatched = (attr, q) => attr.toLowerCase().indexOf(q) > -1;\n\nconst userMatched = (user, q) =>\n isMatched(user.firstName, q) ||\n isMatched(user.lastName, q) ||\n // sector insiders don't have an email\n isMatched((user.email || ''), q);\n\nconst search = (list, q) => {\n if (q === '' || q === null) {\n return [].concat(list);\n }\n return list.filter(user => userMatched(user, q.toLowerCase()));\n}\n\nexport default () => ({\n restrict: 'E',\n template(element) {\n return `\n
    \n
    \n
    \n \n
    \n
    \n ${element.html()}\n
    \n`;\n },\n replace: true,\n scope: true,\n controller: ['$scope', '$attrs', ($scope, $attrs) => {\n let list = $scope.$eval($attrs.list);\n\n $scope.search = q => {\n $scope.searchResult.length = 0;\n $scope.searchResult.push(...search(list, q));\n }\n\n $scope.searchResult = [];\n $scope.search('');\n }]\n})\n","import { fetchListByIds } from 'share/services/api'\n\n// a hack to compile the directive inside an ajax error\n$(() => {\n $(\"body\").on('ajax:formErrors', 'form#newEspaRoute', () => {\n let directive = $('[data-error-for=\"base\"] eva-sectors');\n if(directive.length === 0) return;\n\n let content = app.get('$compile')(directive[0].outerHTML)(directive.scope());\n directive.replaceWith(content);\n });\n});\n\nexport default () => ({\n restrict: 'E',\n replace: true,\n template: '
      ',\n link(scope, element, { ids, kind }) {\n fetchListByIds(`/${kind}_sectors`, `${kind}_sectors`, ids.split(',')).then((sectors) =>\n element.html(\n sectors.map((sector) =>\n $('
    • ').html(\n $('')\n .attr({ href: Routes[`${kind}Sector`](sector), target: '_blank' })\n .text(sector.name)\n )\n )\n )\n );\n }\n})\n","import noop from 'lodash-es/noop'\nimport toastr from 'share/services/toastr'\n\nconst onClass = 'ngToggle--on';\nconst offClass = 'ngToggle--off';\nconst ngModelStub = { $setViewValue: noop };\n\nexport default () => ({\n require: '?ngModel',\n link($scope, $element, $attrs, ngModel) {\n let value = $scope.$eval($attrs.ngToggle);\n let model = ngModel || ngModelStub;\n\n $element.addClass('ngToggle').addClass(value ? onClass : offClass);\n if ($attrs.hasOwnProperty('disabled')) {\n $element.addClass('ngToggle--disabled');\n $element.attr('href', '#');\n } else {\n $element.attr('data-remote', true).attr('data-method', 'patch');\n }\n model.$setViewValue(value);\n\n const onValueChange = (newValue) => {\n if(newValue) {\n $element.addClass(onClass).removeClass(offClass);\n } else {\n $element.addClass(offClass).removeClass(onClass);\n }\n model.$setViewValue(newValue);\n value = newValue;\n }\n\n $scope.$watch($attrs.ngToggle, onValueChange);\n\n $element.on('ajax:beforeSend', (_, promise, xhr) => {\n let newValue = !value;\n $element.hide();\n xhr.url = xhr.url + '?' + $.param({ value: newValue });\n\n promise.then(() => {\n onValueChange(newValue);\n $scope.$digest();\n }, resp => {\n if (!$attrs.hasOwnProperty('ngAjaxLink')) {\n let json = (resp.responseJSON || {});\n let errorMessage = json.error || json.error_message;\n if(errorMessage) {\n toastr(errorMessage, { theme: 'danger' });\n }\n }\n }).always(() => $element.show());\n\n return true;\n }).on('click', e => e.preventDefault());\n }\n});\n","export default ['Resty', 'SectorDataLoader', (Resty, SectorDataLoader) => {\n return Resty('alarm_sectors', klass => {\n Object.assign(klass, {\n getFormData(id) {\n return SectorDataLoader('alarm', id ? klass.fetchOne(id) : null);\n }\n });\n });\n}];\n","import { fetchOne, fetchListByRelationIds } from 'share/services/api'\n\nconst markDeleteable = r => {\n if(r.system) {\n r.$isDeleteable = false\n } else {\n return r.loadNestedResourcesCount(\"workflows\").then(function() {\n // by default API creates a system workflow for each alarm type\n r.$isDeleteable = r.$workflowsCount < 2\n })\n }\n}\n\nconst markDeleteableLevel = r =>\n r.loadNestedResourcesCount(\"workflows\").\n then(() => r.$isDeleteable = r.$workflowsCount == 0);\n\nconst withLevels = r => !r.$isTechical;\nconst withInfos = r => !r.$isSpecific && r.$isAlarm;\nconst withParticipationOptions = r => r.$isAlarm;\n\nexport default ['Resty', Resty => Resty('alarm_types', klass => {\n klass.getAll = () => klass.getList({ all: true })\n\n klass.loadFormData = id => fetchOne(`/alarm_types/${id}`, 'alarm_types', 'alarm_type').then(alarmType => {\n var promises = [];\n\n if (withLevels(alarmType)) {\n promises.push(\n alarmType.loadNestedResources('alarm_levels').\n then(alarmLevels => Promise.all(alarmLevels.map(markDeleteableLevel))));\n }\n\n if (withInfos(alarmType)) {\n promises.push(alarmType.loadNestedResources('info_items'));\n }\n\n if (withParticipationOptions(alarmType)) {\n promises.push(alarmType.loadNestedResources('participation_options'));\n }\n\n promises.push(\n fetchListByRelationIds(`/alarm_types/${alarmType.id}/building_sectors.ids`, '/building_sectors', 'building_sectors').\n then(list => alarmType.$buildingSectors = list),\n markDeleteable(alarmType)\n );\n\n return Promise.all(promises).then(() => alarmType);\n });\n})]\n","import { fetchOne, fetchList } from 'share/services/api'\nimport { filterByIdsF } from 'share/services/utils'\nimport { mapDetails } from 'share/features/alarms/utils'\nimport { isAdmin } from 'services/policy'\n\nconst mapDetailsWithFilter = alarm => {\n mapDetails(alarm);\n alarm.$contactLists = alarm.$contactLists.filter(filterByIdsF(isAdmin() ? false : alarm.contactListIds));\n return alarm;\n}\n\nexport default ['Resty', (Resty, ra) =>\n Resty('alarms', klass => {\n Object.assign(klass, {\n getOne(id, type) {\n let promise;\n switch(type) {\n case 'normal':\n promise = klass.fetchOne(id).then(mapDetailsWithFilter);\n break;\n case 'archive':\n // due to API limitation `task_lists` field is missed when fetching by id\n promise = fetchList('/alarms_archive', 'alarms', { filter: { id_in: [id] } }).then(([alarm]) => {\n alarm.$isArchive = true;\n return mapDetailsWithFilter(alarm);\n });\n break;\n case 'external':\n promise = fetchOne(`/alarms/external/${id}`, 'external_alarms', 'external_alarm').then(mapDetails);\n break;\n case 'external_archive':\n promise = fetchOne(`/alarms_archive/external/${id}`, 'external_alarms', 'external_alarm').then(mapDetails);\n break;\n default:\n throw `Unknown alarm type - ${type}`;\n }\n\n return promise.then(alarm => {\n alarm.$type = type;\n return alarm;\n });\n }\n });\n })\n];\n","export default ['Resty', 'SectorDataLoader', (Resty, SectorDataLoader) => {\n return Resty('building_sectors', klass => {\n Object.assign(klass, {\n getFormData(id) {\n return SectorDataLoader('building', klass.fetchOne(id));\n }\n });\n });\n}]\n","import { fetchAllList, fetchRelationIds } from 'share/services/api'\nimport { mapByIds } from 'share/services/utils'\n\nexport default ['Resty', (Resty) => Resty('contact_lists', klass => Object.assign(klass, {\n loadFormData(id) {\n let dictPromise = Promise.all([\n fetchAllList('contacts'),\n fetchAllList('users'),\n fetchAllList('sector_insiders')\n ]);\n let resourcePromise;\n if(id) {\n resourcePromise = klass.fetchOne(id).then(contactList => Promise.all([\n contactList.loadNestedResourcesCount('workflows'),\n fetchRelationIds(`/contact_lists/${id}/contacts.ids`).then(ids => contactList.$contactIds = ids),\n fetchRelationIds(`/contact_lists/${id}/users.ids`).then(ids => contactList.$userIds = ids),\n fetchRelationIds(`/contact_lists/${id}/sector_insiders.ids`).then(ids => contactList.$sectorInsiderIds = ids)\n ]).then(() => contactList));\n }\n\n return Promise.all([dictPromise, resourcePromise]).then(([[contacts, users, sectorInsiders], contactList]) => {\n if(contactList) {\n contactList.$contacts = mapByIds(contacts, contactList.$contactIds);\n contactList.$users = mapByIds(users, contactList.$userIds);\n contactList.$sectorInsiders = mapByIds(sectorInsiders, contactList.$sectorInsiderIds);\n }\n return { dict: { contacts, users, sectorInsiders }, contactList };\n });\n }\n}))];\n","import { get } from 'share/services/api'\n\nexport default ['Resty', (Resty) => Resty('documents', (klass) => {\n klass.getDetailed = (id) => Promise.all([\n klass.fetchOne(id),\n get(`/documents/${id}/files`).then(({ json }) => json.files)\n ]).then(([document, files]) => {\n document.$fileMeta = files.reduce((acc, item) => {\n acc[item.lang] = { filename: item.filename, updatedAt: item.updated_at * 1000 };\n return acc;\n }, {});\n return document;\n });\n})]\n","import { fetchRelationIds } from 'share/services/api'\n\nexport default ['Resty', Resty => Resty('document_groups', klass => {\n klass.tableList = (page, options = {}) =>\n klass.page(page, { type: 'local', ...options });\n\n klass.getLocalList = () => klass.getList({ type: 'local' });\n\n klass.getDetailed = id => Promise.all([\n klass.fetchOne(id),\n fetchRelationIds(`/document_groups/${id}/roles.ids`),\n fetchRelationIds(`/document_groups/${id}/user_groups.ids`)\n ]).then(([documentGroup, roleIds, userGroupIds]) => {\n documentGroup.roleIds = roleIds;\n documentGroup.userGroupIds = userGroupIds;\n return documentGroup;\n });\n})]\n","import { fetchList } from 'share/services/api'\nimport { unitTree } from 'share/services/units'\nimport findWhere from 'lodash-es/find'\n\nexport default ['Resty', 'Country', 'ExternalUnitType', (Resty, Country, ExternalUnitType) => Resty('locations', (klass) => {\n klass.getFormData = () => Promise.all([\n klass.fetchOne('current'),\n Country.getListWithZones(),\n fetchList('/locations/current/external_units', 'external_units').then((units) =>\n ExternalUnitType.loadListBelongsTo(units, 'externalUnitType', 'externalUnitTypeId').then(() => unitTree(units))\n )\n ]).then(([location, countries, externalUnitTree]) => {\n let dict = { countries };\n location.$country = findWhere(countries, { id: location.countryId });\n location.$externalUnitTree = externalUnitTree;\n return [dict, location];\n });\n\n klass.reloadCurrent = (location) => location.reload('/locations/current');\n})];\n","import groupBy from 'lodash-es/groupBy'\nimport sortBy from 'lodash-es/sortBy'\nimport values from 'lodash-es/values'\n\nexport const unitTree = (units) => {\n let tree = groupBy(units, \"externalUnitTypeId\");\n tree = sortBy(values(tree), (units) => units[0].$externalUnitType.name);\n\n return tree.reduce((acc, units) => {\n acc.push({ type: units[0].$externalUnitType, units: sortBy(units, 'name') });\n return acc;\n }, []);\n}\n","import { fetchAllList, fetchOne, fetchRelationIds } from 'share/services/api'\nimport { mapByIds } from 'share/services/utils'\n\nexport default ['Resty', Resty => Resty('oncall_groups', klass => {\n klass.loadFormData = (id) => {\n let promises = [fetchAllList('users')];\n if(id) {\n promises.push(\n fetchOne(`/oncall_groups/${id}`, 'oncall_groups', 'oncall_group')\n .then(group => group.loadNestedResourcesCount('workflows'), Promise.reject),\n fetchRelationIds(`/oncall_groups/${id}/users.ids`)\n );\n }\n\n return Promise.all(promises).then(([users, group, userIds]) => {\n let dict = { users };\n if (group) {\n group.$users = mapByIds(dict.users, userIds);\n }\n return [dict, group];\n });\n }\n})];\n","import { fetchList, fetchRelationIds } from 'share/services/api'\n\nconst ROLES = ['CI', 'CSI'];\n\nexport default ['Resty', Resty => Resty('permission_groups', klass => {\n Object.assign(klass, {\n getFormData(id) {\n let resourcePromise, userIdsPromise;\n if (id) {\n resourcePromise = klass.fetchOne(id);\n userIdsPromise = fetchRelationIds(`/permission_groups/${id}/users.ids`);\n } else {\n resourcePromise = userIdsPromise = null;\n }\n return Promise.all([\n fetchList('/users', 'users').then(list => list.filter(u => ROLES.includes(u.roleId))),\n resourcePromise,\n userIdsPromise\n ]).then(([users, resource, userIds]) => {\n if (resource) {\n resource.$users = users.filter(u => userIds.includes(u.id));\n }\n return [{ users }, resource]\n });\n }\n });\n})]\n","export default ['Resty', 'SectorDataLoader', 'AlarmSector', (Resty, SectorDataLoader, AlarmSector) => {\n return Resty('room_sectors', klass => {\n Object.assign(klass, {\n tableList(page) {\n return klass.page(page).then(roomSectors => AlarmSector.loadListBelongsTo(roomSectors, 'alarmSector', 'alarmSectorId'));\n },\n\n getFormData(id) {\n return SectorDataLoader('room', id ? klass.fetchOne(id) : null);\n }\n });\n });\n}];\n","import { fetchAllList } from 'share/services/api'\n\nconst getFormData = () => Promise.all([\n fetchAllList('building_sectors'),\n fetchAllList('alarm_sectors'),\n fetchAllList('room_sectors'),\n]).then(([buildingSectors, alarmSectors, roomSectors]) => {\n buildingSectors.forEach(b => {\n b.$alarmSectors = alarmSectors.filter(c => c.buildingSectorId == b.id);\n b.$alarmSectors.forEach(a => {\n a.$roomSectors = roomSectors.filter(c => c.alarmSectorId == a.id);\n })\n });\n return { buildingSectors, alarmSectors, roomSectors };\n});\n\nexport default ['Resty', Resty => Resty('route_maps', klass => Object.assign(klass, {\n getFormData,\n getDetailed(id) {\n return Promise.all([klass.fetchOne(id), getFormData()]).then(([routeMap, dict]) => {\n let b = routeMap.$buildingSector = dict.buildingSectors.find(c => c.id == routeMap.buildingSectorId);\n let a = routeMap.$alarmSector = b.$alarmSectors.find(c => c.id == routeMap.alarmSectorId);\n if(a) routeMap.$roomSector = a.$roomSectors.find(c => c.id == routeMap.roomSectorId);\n routeMap.$meta.dict = dict;\n return routeMap;\n });\n }\n}))]\n","import { get } from 'share/services/api'\n\nconst roundRate = number => Math.round(number * 100) / 100;\nconst mapProgress = (acc, data) => {\n acc.count = data.count || 0;\n acc.meanTime = roundRate(data.mean_time || 0);\n acc.rate = roundRate(data.rate || 0);\n return acc;\n}\n\nconst METHODS = ['OPTIONS', 'GET', 'POST', 'PATCH', 'DELETE'];\nconst fetchStatistics = () => get('/dictionaries/statistics').then(resp => {\n let stats = resp.json.statistics;\n var methods = METHODS.reduce((acc, name) => {\n if (stats.hasOwnProperty(name)) {\n acc.push(mapProgress({ name }, stats[name]));\n }\n return acc;\n }, []);\n\n return {\n total: mapProgress({ time: (stats.globals || {}).interval }, stats.total || {}),\n methods: methods\n }\n});\n\nexport default () => ({\n get() {\n return fetchStatistics();\n }\n});\n","import { fetchAllList, fetchListByIds, fetchOne } from 'share/services/api'\nimport { mapByIds } from 'share/services/utils'\nimport { mapTasksToList } from 'share/features/tasks/utils'\n\nexport default ['Resty', Resty => Resty('task_lists', klass => {\n Object.assign(klass, {\n tableList(page, options = {}) {\n return klass.page(page, options).then(taskLists => {\n let promises = [];\n let taskIds = taskLists.reduce((acc, taskList) => {\n promises.push(taskList.loadNestedResourcesCount('workflows'));\n return acc.concat(taskList.taskIds);\n }, []);\n promises.push(fetchListByIds('/tasks', 'tasks', taskIds).then(tasks => {\n taskLists.forEach(taskList =>\n mapTasksToList(taskList, mapByIds(tasks, taskList.taskIds), true));\n }));\n return Promise.all(promises).then(() => taskLists);\n });\n },\n loadFormData(id) {\n return Promise.all([\n fetchOne(`/task_lists/${id}`, 'task_lists', 'task_list').then(taskList => taskList.loadNestedResourcesCount('workflows')),\n fetchAllList('tasks')\n ]).then(([taskList, tasks]) => [\n { allTasks: mapTasksToList({}, tasks, true) },\n mapTasksToList(taskList, mapByIds(tasks, taskList.taskIds), true)\n ]);\n }\n });\n})];\n","import { fetchAllList, fetchRelationIds } from 'share/services/api'\nimport { mapByIds } from 'share/services/utils'\n\nexport default ['Resty', Resty => Resty('tasks', klass => {\n klass.loadFormData = id => {\n let promises = [\n Promise.all([\n fetchAllList('documents'),\n fetchAllList('task_lists')\n ]).then(([documents, taskLists]) => ({ documents, taskLists }))\n ];\n\n if(id) {\n promises.push(\n klass.fetchOne(id),\n fetchRelationIds(`/tasks/${id}/task_lists.ids`),\n fetchRelationIds(`/tasks/${id}/documents.ids`)\n );\n }\n\n return Promise.all(promises).then(([dict, task, taskListIds, documentIds]) => {\n if(task) {\n task.$documents = mapByIds(dict.documents, documentIds);\n task.$taskLists = mapByIds(dict.taskLists, taskListIds);\n return [dict, task];\n } else {\n return [dict];\n }\n });\n }\n})]\n","import { fetchAllList, fetchRelationIds } from 'share/services/api'\nimport { mapByIds } from 'share/services/utils'\n\nexport default ['Resty', (Resty) => Resty('user_groups', klass => {\n klass.loadFormData = id => Promise.all([\n fetchAllList('users'),\n klass.fetchOne(id).then(userGroup => userGroup.loadNestedResourcesCount('workflows')),\n fetchRelationIds(`/user_groups/${id}/users.ids`)\n ]).then(([users, userGroup, userIds]) => {\n userGroup.$users = mapByIds(users, userIds);\n return [users, userGroup];\n })\n})];\n","import { fetchAllList, fetchListByIds, fetchOne, fetchList } from 'share/services/api'\nimport { findById, mapByIds, sortByName } from 'share/services/utils'\n\nconst assignSectors = resource => Promise.all([\n fetchListByIds('/building_sectors', 'building_sectors', resource.buildingSectorIds).then(list => resource.$buildingSectors = list),\n fetchListByIds('/alarm_sectors', 'alarm_sectors', resource.alarmSectorIds).then(list => resource.$alarmSectors = list),\n fetchListByIds('/room_sectors', 'room_sectors', resource.roomSectorIds).then(list => resource.$roomSectors = list)\n]).then(() => resource);\n\nconst assignSectorsForList = list => {\n let { bsIds, asIds, rsIds } = list.reduce((acc, resource) => {\n acc.bsIds = [...acc.bsIds, ...resource.buildingSectorIds];\n acc.asIds = [...acc.asIds, ...resource.alarmSectorIds];\n acc.rsIds = [...acc.rsIds, ...resource.roomSectorIds];\n return acc;\n }, { bsIds: [], asIds: [], rsIds: [] });\n return Promise.all([\n fetchListByIds('/building_sectors', 'building_sectors', bsIds),\n fetchListByIds('/alarm_sectors', 'alarm_sectors', asIds),\n fetchListByIds('/room_sectors', 'room_sectors', rsIds)\n ]).then(([buildingSectors, alarmSectors, roomSectors]) => {\n list.forEach((workflow) => {\n workflow.$buildingSectors = mapByIds(buildingSectors, workflow.buildingSectorIds);\n workflow.$alarmSectors = mapByIds(alarmSectors, workflow.alarmSectorIds);\n workflow.$roomSectors = mapByIds(roomSectors, workflow.roomSectorIds);\n });\n });\n}\n\nconst getTargetList = (resources, items) => items.reduce((acc, item) => {\n let resource = findById(resources, item.id, null);\n if(resource) acc.push({ $resource: resource, ...item });\n return acc;\n}, []);\n\nconst skipDeleted = r => !r.isDeleted;\n\nconst getAlarmLevelList = filter =>\n fetchList('/alarm_types/alarm_levels/after/0', 'alarm_levels').\n then(list => filter ? list.filter(skipDeleted) : list);\n\nconst mapLevels = (alarmTypes, alarmLevels) => {\n alarmTypes.forEach(a => a.$alarmLevels = alarmLevels.filter(l => a.id === l.alarmTypeId));\n return alarmTypes;\n}\n\nconst getAlarmTypeWizardList = () => Promise.all([\n fetchAllList('alarm_types'),\n getAlarmLevelList(true)\n]).then(([alarmTypes, alarmLevels]) => mapLevels(alarmTypes, alarmLevels))\n\nconst getAlarmTypeWithLevels = id => Promise.all([\n fetchOne(`/alarm_types/${id}`, 'alarm_types', 'alarm_type'),\n fetchList(`/alarm_types/${id}/alarm_levels`, 'alarm_levels')\n]).then(([alarmType, alarmLevels]) => {\n alarmType.$alarmLevels = alarmLevels;\n return alarmType;\n})\n\nconst WorkflowForm = {\n getTriggers: () => getAlarmTypeWizardList().then((alarmTypes) => ({ alarmTypes })),\n assignTriggers(workflow) {\n return assignSectors(workflow).then(() => {\n switch(workflow.kind) {\n case 'building':\n workflow.$sectors = workflow.$buildingSectors;\n break;\n case 'alarm':\n workflow.$sectors = workflow.$alarmSectors;\n break;\n case 'room':\n workflow.$sectors = workflow.$roomSectors;\n break;\n }\n });\n },\n getTargets: () => Promise.all([\n fetchAllList('users'),\n fetchAllList('user_groups'),\n fetchAllList('roles', { path: '/dictionaries/roles' }),\n fetchAllList('oncall_groups')\n ]).then(([users, userGroups, userRoles, oncallGroups]) => ({ users, userGroups, userRoles, oncallGroups })),\n assignTargets(workflow, dict) {\n workflow.$users = getTargetList(dict.users, workflow.users);\n workflow.$userGroups = getTargetList(dict.userGroups, workflow.userGroups);\n workflow.$userRoles = getTargetList(dict.userRoles, workflow.userRoles);\n workflow.$oncallGroups = getTargetList(dict.oncallGroups, workflow.oncallGroups);\n },\n getNotifications: () => Promise.all([\n fetchAllList('contact_lists'),\n fetchAllList('task_lists'),\n ]).then(([contactLists, taskLists]) => ({ contactLists: contactLists.sort(sortByName), taskLists })),\n assignNotifications(workflow, dict) {\n workflow.$contactLists = mapByIds(dict.contactLists, workflow.contactListIds);\n workflow.$taskLists = mapByIds(dict.taskLists, workflow.taskListIds);\n },\n\n getDict() {\n return Promise.all([\n this.getTriggers(),\n this.getTargets(),\n this.getNotifications()\n ]).then(data => data.reduce((result, part) => Object.assign(result, part), {}))\n },\n\n assign(workflow, dict) {\n let promises = [];\n promises.push(this.assignTriggers(workflow));\n this.assignTargets(workflow, dict);\n this.assignNotifications(workflow, dict);\n\n workflow.$alarmType = findById(dict.alarmTypes, workflow.alarmTypeId, null);\n if(workflow.$alarmType) {\n workflow.$alarmLevels = mapByIds(workflow.$alarmType.$alarmLevels, workflow.alarmLevelIds);\n } else {\n promises.push(getAlarmTypeWithLevels(workflow.alarmTypeId).then((alarmType) => {\n workflow.$alarmType = alarmType;\n workflow.$alarmLevels = mapByIds(alarmType.$alarmLevels, workflow.alarmLevelIds);\n }));\n }\n\n return Promise.all(promises);\n }\n}\n\nexport default [\"Resty\", \"AlarmType\", (Resty, AlarmType) => Resty('workflows', klass => {\n klass.dashboardList = () => klass.tableList(1, { per_page: 5, order: 'recent', alarm_type_status: 1 });\n klass.tableList = (page, filters) => klass.page(page, filters).then(workflows => Promise.all([\n AlarmType.loadListBelongsTo(workflows, 'alarmType', 'alarmTypeId'),\n assignSectorsForList(workflows)\n ]).then(() => workflows));\n\n klass.loadFormData = (id) => {\n let promises = [WorkflowForm.getDict()];\n if (id) {\n promises.push(klass.fetchOne(id));\n }\n return Promise.all(promises).then(([dict, workflow]) => {\n if (workflow) {\n return WorkflowForm.assign(workflow, dict).then(() => [dict, workflow]);\n } else {\n return [dict];\n }\n });\n }\n})]\n","import { fetchList } from 'share/services/api'\nimport { hasLicense } from 'services/policy'\nimport HasManyMapper from 'share/services/mappers/has-many'\nconst workflowsMapper = new HasManyMapper('workflows', '$workflows');\n\nconst config = { page: 1, per_page: 3 };\n\nexport default () => ({\n get() {\n return Promise.all([\n fetchList('/users', 'users', config),\n fetchList('/user_groups', 'user_groups', config).\n then(userGroups => workflowsMapper.mapCounts(userGroups).then(() => userGroups)),\n fetchList('/oncall_groups', 'oncall_groups', config).\n then(oncallGroups => workflowsMapper.mapCounts(oncallGroups).then(() => oncallGroups)),\n hasLicense('visitors') ? fetchList('/visitors', 'visitors', config) : []\n ]).then(([users, userGroups, oncallGroups, visitors]) => ({ users, userGroups, oncallGroups, visitors}));\n }\n})\n","import evaImportStatus from '!!raw-loader!./eva-import-status.html'\nimport evaLogResources from '!!raw-loader!./eva-log-resources.html'\nimport evaStructureLog from '!!raw-loader!./eva-structure-log.html'\nimport evaWorkflowSectors from '!!raw-loader!./eva-workflow-sectors.html'\n\nexport default {\n 'eva-import-status': evaImportStatus,\n 'eva-log-resources': evaLogResources,\n 'eva-structure-log': evaStructureLog,\n 'eva-workflow-sectors': evaWorkflowSectors\n}\n","export default \"
      \\n
      \\n
      \\n

      \\n

      \\n
        0\\\">\\n
      • \\n
      \\n
      \\n
      \\n\";","export default \"
        \\n
      • \\n

        \\n \\n
      • \\n
      \\n\";","export default \"
        \\n
      • \\n \\n \\n
      • \\n
      • \\n \\n \\n
      • \\n
      \\n\";","export default \"
      \\n
      \\n \\n \\n \\n
      \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
        \\n
      • \\n \\n \\n
      • \\n
      \\n
      \\n
      \\n\";","import \"share/angular\"\nimport \"ng/schema\"\n\nimport evaSeries from 'directives/eva-series'\nimport \"script-loader!ng/directives/eva-alarm-icon\"\nimport evaImportStatus from \"ng/directives/eva-import-status\"\nimport \"script-loader!ng/directives/eva-import\"\nimport { evaMulti, evaMultiSelector } from \"ng/directives/eva-multi\"\nimport evaDownloadFile from \"ng/directives/eva-download-file\"\nimport evaLinkGroup from 'directives/eva-link-group'\nimport evaGroupName from 'ng/directives/evaGroupName'\nimport evaLimitTo from 'ng/directives/eva-limit-to'\nimport evaResourceCount from \"ng/directives/eva-resource-count\"\nimport evaUserSearch from \"ng/directives/eva-user-search\"\nimport evaTaskInfo from 'ng/directives/eva-task-info'\nimport \"script-loader!ng/directives/fa-caret\"\nimport \"script-loader!ng/directives/ng-ajax-inline-form\"\nimport \"script-loader!ng/directives/ng-search-line\"\nimport evaSectors from 'directives/eva-sectors'\nimport ngToggle from \"ng/directives/ng-toggle\"\n\nimport evaCheckAllowed from 'ng/directives/eva-check-allowed'\n\nimport AlarmSector from \"ng/repositories/alarm-sector\"\nimport AlarmType from \"ng/repositories/alarm-type\"\nimport Alarm from \"ng/repositories/alarm\"\nimport BuildingSector from \"ng/repositories/building-sector\"\nimport ContactList from \"ng/repositories/contact-list\"\nimport \"script-loader!ng/repositories/contact\"\nimport Document from \"ng/repositories/document\"\nimport DocumentGroup from \"ng/repositories/document-group\"\nimport \"script-loader!ng/repositories/espa-route\"\nimport \"script-loader!ng/repositories/external-unit-type\"\nimport \"script-loader!ng/repositories/external-unit\"\nimport FireDepartmentPlan from \"ng/repositories/fire-department-plan\"\nimport Location from \"ng/repositories/location\"\nimport OncallGroup from \"ng/repositories/oncall-group\"\nimport PermissionGroup from 'ng/repositories/permission-group'\nimport RoomSector from \"ng/repositories/room-sector\"\nimport RouteMap from \"ng/repositories/route-map\"\nimport SectorInsider from \"ng/repositories/sector-insider\"\nimport Statistics from \"ng/repositories/statistics\"\nimport TaskList from 'ng/repositories/task-list'\nimport Task from \"ng/repositories/task\"\nimport TWSUser from \"ng/repositories/tws-user\"\nimport UserGroup from 'ng/repositories/user-group'\nimport Workflow from \"ng/repositories/workflow\"\n\nimport SectorDataLoader from \"ng/services/sector-data-loader\"\nimport UserDashboard from \"ng/services/user-dashboard\"\n\nimport templates from \"ng/templates\"\n\napp.directive('evaCheckAllowed', evaCheckAllowed);\nevaDownloadFile(app);\n\napp.directive('evaGroupName', evaGroupName)\n .directive('evaLinkGroup', evaLinkGroup)\n .directive('evaLimitTo', evaLimitTo)\n .directive('evaResourceCount', evaResourceCount)\n .directive('evaTaskInfo', evaTaskInfo)\n .directive('evaUserSearch', evaUserSearch)\n .directive('ngToggle', ngToggle)\n .directive('evaMulti', evaMulti)\n .directive('evaMultiSelector', evaMultiSelector)\n .directive('evaSectors', evaSectors)\n .directive('evaSeries', evaSeries)\n .directive('evaImportStatus', evaImportStatus);\n\napp.service('AlarmSector', AlarmSector)\n .service('Alarm', Alarm)\n .service('AlarmType', AlarmType)\n .service('BuildingSector', BuildingSector)\n .service('ContactList', ContactList)\n .service('DocumentGroup', DocumentGroup)\n .service('Document', Document)\n .service('FireDepartmentPlan', FireDepartmentPlan)\n .service(\"Location\", Location)\n .service('OncallGroup', OncallGroup)\n .service('PermissionGroup', PermissionGroup)\n .service('RoomSector', RoomSector)\n .service('RouteMap', RouteMap)\n .service('UserGroup', UserGroup)\n .service('SectorDataLoader', SectorDataLoader)\n .service('SectorInsider', SectorInsider)\n .service('Statistics', Statistics)\n .service('TaskList', TaskList)\n .service('Task', Task)\n .service('TWSUser', TWSUser)\n .service('UserDashboard', UserDashboard)\n .service('Workflow', Workflow);\n\napp.cacheTemplates(templates);\n","import { isAllowed } from 'services/policy'\n\nexport default () => ({\n link(_$scope, $element, $attrs) {\n isAllowed($attrs.evaCheckAllowed) ? $element.show() : $element.hide();\n }\n});\n","import ReactDOM from 'react-dom'\nimport GroupName from 'components/GroupName'\n\nexport default () => ({\n scope: { group: '=evaGroupName' },\n link({ group }, $element) {\n ReactDOM.render(, $element[0]);\n }\n});\n","import { I18n } from 'share/services/i18n'\n\nexport default () => ({\n require: 'ngModel',\n link($scope, $element, $attrs, ctrl) {\n let limitTo = parseInt($attrs.evaLimitTo);\n var placeholder = I18n.t('core.limit_to', { count: limitTo });\n if ($attrs.placeholder) {\n placeholder = `${$attrs.placeholder} (${placeholder})`;\n }\n $element.attr('placeholder', placeholder);\n\n ctrl.$parsers.push(value => {\n if(value.length > limitTo) {\n value = value.substr(0, limitTo);\n ctrl.$setViewValue(value);\n ctrl.$render();\n }\n return value;\n });\n }\n});\n","export default () => ({\n link($scope, $element, $attrs) {\n let count = $scope.$eval($attrs.evaResourceCount);\n let tt = $attrs.evaResourceType.split(',');\n $element.text(`${count} ${(count == 1 ? tt[0] : tt[1])}`);\n }\n});\n","import { attachTooltip } from 'share/components/tooltip'\nimport { getTaskInfo } from 'share/features/tasks/utils'\n\nexport default () => ({\n scope: { task: '=evaTaskInfo' },\n link($scope, $element, $attrs) {\n let { icon, tooltip } = getTaskInfo($scope.task);\n $element.addClass(`text-primary fa fa-${icon}`);\n attachTooltip($element[0], tooltip, 'top');\n }\n})\n","export const evaMultiSelector = () => ({\n link(scope, element) {\n let formScope = element.parents(\"form\").scope() || scope;\n formScope.$formLocale = element.val();\n\n element.on('change', () => {\n formScope.$formLocale = element.val();\n formScope.$digest();\n });\n }\n});\n\nexport const evaMulti = () => ({\n transclude: 'element',\n priority: 1000,\n link(scope, element, attrs, ctrl, $transclude) {\n let formScope = element.parents('form').scope();\n if(!formScope) return;\n\n let current = formScope.$formLocale;\n let config = window.gon.app.locale;\n let scopes = config.list.map((locale) => {\n let childScope = scope.$new();\n childScope.$locale = locale;\n childScope.$default = config.default;\n childScope.$active = (locale == current);\n\n $transclude(childScope, clone => element.after(clone));\n return childScope;\n });\n\n formScope.$watch('$formLocale', (locale) => scopes.forEach((scope) => scope.$active = (scope.$locale == locale)));\n }\n});\n","import railsFetch from 'share/services/rails-fetch'\n\nconst getStatus = (url) => railsFetch(url).then(resp => resp.json()).then(data => data || {});\n\nexport default () => ({\n restrict: 'E',\n replace: true,\n templateUrl: '/ng/eva-import-status.html',\n scope: true,\n transclude: true,\n controller: [\"$scope\", \"$attrs\", ($scope, $attrs) => {\n let timeoutId;\n\n let loader = () => {\n getStatus($attrs.url).then((data) => {\n $scope.status = data.status;\n $scope.info = data.info;\n $scope.errors = data.errors;\n\n if(data.done) {\n $scope.$eval($attrs.onEnd);\n $scope.$apply();\n } else {\n timeoutId = setTimeout(loader, 3000);\n $scope.$digest();\n }\n });\n }\n loader();\n\n $scope.$on('$destroy', () => {\n if(timeoutId) clearTimeout(timeoutId);\n });\n }]\n});\n","export default ['Resty', Resty => Resty('fire_department_plans')];\n","import { fetchRelationIds, fetchListByRelationIds, fetchAllList } from 'share/services/api'\nimport { hasLicense } from 'services/policy'\nimport { mapByIds } from 'share/services/utils'\n\nconst buildSchema = (type, includeUsers) => {\n let schema = []\n if(includeUsers) {\n schema.push(\n {\n key: 'users',\n getList: () => fetchAllList('users'),\n assign: (sector, list) =>\n fetchRelationIds(`${sector.itemPath()}/users.ids`).then(ids => sector.$users = mapByIds(list, ids), Promise.reject)\n },\n {\n key: 'sectorInsiders',\n getList: () => fetchAllList('sector_insiders'),\n assign: (sector, list) =>\n fetchRelationIds(`${sector.itemPath()}/sector_insiders.ids`).then(ids => sector.$sectorInsiders = mapByIds(list, ids), Promise.reject)\n }\n );\n }\n\n switch(type) {\n case 'building':\n if(hasLicense('visitors') && includeUsers) {\n schema.push({\n key: 'visitors',\n getList: () => fetchAllList('visitors'),\n assign: (sector, list) =>\n fetchRelationIds(`${sector.itemPath()}/visitors.ids`).then(ids => sector.$visitors = mapByIds(list, ids), Promise.reject)\n });\n }\n schema.push({\n key: 'fireDepartmentPlans',\n getList: () => fetchAllList('fire_department_plans').then(list => [{ id: '', name: '', mock: true }].concat(list)),\n assign(sector, list) {\n if(sector.fireDepartmentPlanId) {\n sector.$fireDepartmentPlan = list.find(r => r.id == sector.fireDepartmentPlanId) || list[0];\n } else {\n sector.$fireDepartmentPlan = list[0];\n }\n }\n });\n schema.push({\n key: 'alarmTypes',\n getList: () => new Promise(resolve => resolve([])),\n assign: sector => fetchListByRelationIds(`/building_sectors/${sector.id}/alarm_types.ids`, '/alarm_types', 'alarm_types').\n then(list => sector.$alarmTypes = list)\n })\n break;\n case 'alarm':\n schema.push({\n key: 'buildingSectors',\n getList: () => fetchAllList('building_sectors'),\n assign: (sector, list) => sector.$buildingSector = list.find(s => s.id === sector.buildingSectorId)\n });\n break;\n case 'room':\n schema.push({\n key: 'alarmSectors',\n getList: () => fetchAllList('alarm_sectors'),\n assign: (sector, list) => sector.$alarmSector = list.find(s => s.id === sector.alarmSectorId)\n });\n break;\n default:\n throw `Invalid sector type ${type}`;\n }\n\n return schema;\n}\n\nexport default () => (type, sectorPromise) => {\n let schema = buildSchema(type, !!sectorPromise);\n var dict = {};\n let promises = schema.map(config => config.getList().then(list => dict[config.key] = list));\n\n return Promise.all([Promise.all(promises), sectorPromise]).then(result => {\n let sector = result[1];\n if(sector) {\n let promises = schema.map(config => config.assign(sector, dict[config.key]));\n return Promise.all(promises).then(() => ({ dict, sector }));\n } else {\n return { dict };\n }\n });\n};\n","export default ['Resty', Resty => Resty('sector_insiders')]\n","export default [\"Role\", \"User\", (Role, User) => ({\n tableList(page, filters) {\n return User.page(page, filters).then((users) =>\n Role.loadListBelongsTo(users, 'role', 'roleId').then(() => users)\n )\n }\n})];\n","const POLICY = gon.app.policy || { isAdmin: false, permissions: { alarms: {}, tabs: {} }, licenses: [] };\n\nlet _hasAbility, _isAllowed, _isAdmin;\nif(POLICY.permissions === true) {\n _isAdmin = _isAllowed = _hasAbility = () => true;\n} else if(typeof POLICY.permissions === 'object') {\n _hasAbility = (id, action) => (POLICY.permissions.alarms[id] || {})[action] || false;\n _isAllowed = tab => {\n switch(tab) {\n case 'alarm_tasks':\n case 'alarm_archive':\n case 'evacuations':\n return ['CSI', 'GSU', 'CI'].includes(gon.app.user.role);\n default:\n return POLICY.permissions.tabs.includes(tab);\n }\n }\n _isAdmin = () => false\n} else {\n throw('The permissions were not provided');\n}\n\nexport const isAdmin = _isAdmin;\nexport const hasAbility = _hasAbility;\nexport const isAllowed = _isAllowed;\nexport const hasLicense = mod => POLICY.licenses.includes(mod);\n","var map = {\n\t\"./af\": 59842,\n\t\"./af.js\": 59842,\n\t\"./ar\": 71582,\n\t\"./ar-dz\": 12749,\n\t\"./ar-dz.js\": 12749,\n\t\"./ar-kw\": 77501,\n\t\"./ar-kw.js\": 77501,\n\t\"./ar-ly\": 91884,\n\t\"./ar-ly.js\": 91884,\n\t\"./ar-ma\": 95357,\n\t\"./ar-ma.js\": 95357,\n\t\"./ar-ps\": 7106,\n\t\"./ar-ps.js\": 7106,\n\t\"./ar-sa\": 16679,\n\t\"./ar-sa.js\": 16679,\n\t\"./ar-tn\": 21585,\n\t\"./ar-tn.js\": 21585,\n\t\"./ar.js\": 71582,\n\t\"./az\": 13142,\n\t\"./az.js\": 13142,\n\t\"./be\": 29360,\n\t\"./be.js\": 29360,\n\t\"./bg\": 66138,\n\t\"./bg.js\": 66138,\n\t\"./bm\": 22488,\n\t\"./bm.js\": 22488,\n\t\"./bn\": 85777,\n\t\"./bn-bd\": 35532,\n\t\"./bn-bd.js\": 35532,\n\t\"./bn.js\": 85777,\n\t\"./bo\": 17890,\n\t\"./bo.js\": 17890,\n\t\"./br\": 15733,\n\t\"./br.js\": 15733,\n\t\"./bs\": 87542,\n\t\"./bs.js\": 87542,\n\t\"./ca\": 26645,\n\t\"./ca.js\": 26645,\n\t\"./cs\": 97635,\n\t\"./cs.js\": 97635,\n\t\"./cv\": 40272,\n\t\"./cv.js\": 40272,\n\t\"./cy\": 91149,\n\t\"./cy.js\": 91149,\n\t\"./da\": 21462,\n\t\"./da.js\": 21462,\n\t\"./de\": 37418,\n\t\"./de-at\": 28546,\n\t\"./de-at.js\": 28546,\n\t\"./de-ch\": 87060,\n\t\"./de-ch.js\": 87060,\n\t\"./de.js\": 37418,\n\t\"./dv\": 87431,\n\t\"./dv.js\": 87431,\n\t\"./el\": 25924,\n\t\"./el.js\": 25924,\n\t\"./en-au\": 72765,\n\t\"./en-au.js\": 72765,\n\t\"./en-ca\": 88071,\n\t\"./en-ca.js\": 88071,\n\t\"./en-gb\": 61230,\n\t\"./en-gb.js\": 61230,\n\t\"./en-ie\": 42597,\n\t\"./en-ie.js\": 42597,\n\t\"./en-il\": 43662,\n\t\"./en-il.js\": 43662,\n\t\"./en-in\": 63428,\n\t\"./en-in.js\": 63428,\n\t\"./en-nz\": 84071,\n\t\"./en-nz.js\": 84071,\n\t\"./en-sg\": 66229,\n\t\"./en-sg.js\": 66229,\n\t\"./eo\": 50509,\n\t\"./eo.js\": 50509,\n\t\"./es\": 80153,\n\t\"./es-do\": 85703,\n\t\"./es-do.js\": 85703,\n\t\"./es-mx\": 71707,\n\t\"./es-mx.js\": 71707,\n\t\"./es-us\": 80702,\n\t\"./es-us.js\": 80702,\n\t\"./es.js\": 80153,\n\t\"./et\": 44620,\n\t\"./et.js\": 44620,\n\t\"./eu\": 44883,\n\t\"./eu.js\": 44883,\n\t\"./fa\": 13256,\n\t\"./fa.js\": 13256,\n\t\"./fi\": 9216,\n\t\"./fi.js\": 9216,\n\t\"./fil\": 77126,\n\t\"./fil.js\": 77126,\n\t\"./fo\": 40950,\n\t\"./fo.js\": 40950,\n\t\"./fr\": 22289,\n\t\"./fr-ca\": 14918,\n\t\"./fr-ca.js\": 14918,\n\t\"./fr-ch\": 28077,\n\t\"./fr-ch.js\": 28077,\n\t\"./fr.js\": 22289,\n\t\"./fy\": 39696,\n\t\"./fy.js\": 39696,\n\t\"./ga\": 91889,\n\t\"./ga.js\": 91889,\n\t\"./gd\": 60334,\n\t\"./gd.js\": 60334,\n\t\"./gl\": 28550,\n\t\"./gl.js\": 28550,\n\t\"./gom-deva\": 25975,\n\t\"./gom-deva.js\": 25975,\n\t\"./gom-latn\": 75464,\n\t\"./gom-latn.js\": 75464,\n\t\"./gu\": 97245,\n\t\"./gu.js\": 97245,\n\t\"./he\": 24190,\n\t\"./he.js\": 24190,\n\t\"./hi\": 20842,\n\t\"./hi.js\": 20842,\n\t\"./hr\": 58351,\n\t\"./hr.js\": 58351,\n\t\"./hu\": 77966,\n\t\"./hu.js\": 77966,\n\t\"./hy-am\": 37833,\n\t\"./hy-am.js\": 37833,\n\t\"./id\": 22704,\n\t\"./id.js\": 22704,\n\t\"./is\": 92725,\n\t\"./is.js\": 92725,\n\t\"./it\": 75872,\n\t\"./it-ch\": 59994,\n\t\"./it-ch.js\": 59994,\n\t\"./it.js\": 75872,\n\t\"./ja\": 87284,\n\t\"./ja.js\": 87284,\n\t\"./jv\": 45361,\n\t\"./jv.js\": 45361,\n\t\"./ka\": 76173,\n\t\"./ka.js\": 76173,\n\t\"./kk\": 40131,\n\t\"./kk.js\": 40131,\n\t\"./km\": 91497,\n\t\"./km.js\": 91497,\n\t\"./kn\": 42192,\n\t\"./kn.js\": 42192,\n\t\"./ko\": 82695,\n\t\"./ko.js\": 82695,\n\t\"./ku\": 68129,\n\t\"./ku-kmr\": 42362,\n\t\"./ku-kmr.js\": 42362,\n\t\"./ku.js\": 68129,\n\t\"./ky\": 28565,\n\t\"./ky.js\": 28565,\n\t\"./lb\": 80267,\n\t\"./lb.js\": 80267,\n\t\"./lo\": 5776,\n\t\"./lo.js\": 5776,\n\t\"./lt\": 25825,\n\t\"./lt.js\": 25825,\n\t\"./lv\": 7007,\n\t\"./lv.js\": 7007,\n\t\"./me\": 22395,\n\t\"./me.js\": 22395,\n\t\"./mi\": 92823,\n\t\"./mi.js\": 92823,\n\t\"./mk\": 23385,\n\t\"./mk.js\": 23385,\n\t\"./ml\": 87852,\n\t\"./ml.js\": 87852,\n\t\"./mn\": 34294,\n\t\"./mn.js\": 34294,\n\t\"./mr\": 64642,\n\t\"./mr.js\": 64642,\n\t\"./ms\": 32529,\n\t\"./ms-my\": 67660,\n\t\"./ms-my.js\": 67660,\n\t\"./ms.js\": 32529,\n\t\"./mt\": 69156,\n\t\"./mt.js\": 69156,\n\t\"./my\": 263,\n\t\"./my.js\": 263,\n\t\"./nb\": 12185,\n\t\"./nb.js\": 12185,\n\t\"./ne\": 53356,\n\t\"./ne.js\": 53356,\n\t\"./nl\": 30427,\n\t\"./nl-be\": 99829,\n\t\"./nl-be.js\": 99829,\n\t\"./nl.js\": 30427,\n\t\"./nn\": 94333,\n\t\"./nn.js\": 94333,\n\t\"./oc-lnc\": 51133,\n\t\"./oc-lnc.js\": 51133,\n\t\"./pa-in\": 60504,\n\t\"./pa-in.js\": 60504,\n\t\"./pl\": 18333,\n\t\"./pl.js\": 18333,\n\t\"./pt\": 80357,\n\t\"./pt-br\": 9102,\n\t\"./pt-br.js\": 9102,\n\t\"./pt.js\": 80357,\n\t\"./ro\": 91826,\n\t\"./ro.js\": 91826,\n\t\"./ru\": 56816,\n\t\"./ru.js\": 56816,\n\t\"./sd\": 46842,\n\t\"./sd.js\": 46842,\n\t\"./se\": 1897,\n\t\"./se.js\": 1897,\n\t\"./si\": 86573,\n\t\"./si.js\": 86573,\n\t\"./sk\": 77611,\n\t\"./sk.js\": 77611,\n\t\"./sl\": 34178,\n\t\"./sl.js\": 34178,\n\t\"./sq\": 96437,\n\t\"./sq.js\": 96437,\n\t\"./sr\": 14860,\n\t\"./sr-cyrl\": 91139,\n\t\"./sr-cyrl.js\": 91139,\n\t\"./sr.js\": 14860,\n\t\"./ss\": 80947,\n\t\"./ss.js\": 80947,\n\t\"./sv\": 72640,\n\t\"./sv.js\": 72640,\n\t\"./sw\": 62359,\n\t\"./sw.js\": 62359,\n\t\"./ta\": 87910,\n\t\"./ta.js\": 87910,\n\t\"./te\": 55450,\n\t\"./te.js\": 55450,\n\t\"./tet\": 21660,\n\t\"./tet.js\": 21660,\n\t\"./tg\": 1776,\n\t\"./tg.js\": 1776,\n\t\"./th\": 52653,\n\t\"./th.js\": 52653,\n\t\"./tk\": 70596,\n\t\"./tk.js\": 70596,\n\t\"./tl-ph\": 62458,\n\t\"./tl-ph.js\": 62458,\n\t\"./tlh\": 61749,\n\t\"./tlh.js\": 61749,\n\t\"./tr\": 89555,\n\t\"./tr.js\": 89555,\n\t\"./tzl\": 55255,\n\t\"./tzl.js\": 55255,\n\t\"./tzm\": 65536,\n\t\"./tzm-latn\": 49856,\n\t\"./tzm-latn.js\": 49856,\n\t\"./tzm.js\": 65536,\n\t\"./ug-cn\": 14091,\n\t\"./ug-cn.js\": 14091,\n\t\"./uk\": 46625,\n\t\"./uk.js\": 46625,\n\t\"./ur\": 80762,\n\t\"./ur.js\": 80762,\n\t\"./uz\": 51746,\n\t\"./uz-latn\": 72066,\n\t\"./uz-latn.js\": 72066,\n\t\"./uz.js\": 51746,\n\t\"./vi\": 37616,\n\t\"./vi.js\": 37616,\n\t\"./x-pseudo\": 5636,\n\t\"./x-pseudo.js\": 5636,\n\t\"./yo\": 30561,\n\t\"./yo.js\": 30561,\n\t\"./zh-cn\": 95685,\n\t\"./zh-cn.js\": 95685,\n\t\"./zh-hk\": 50825,\n\t\"./zh-hk.js\": 50825,\n\t\"./zh-mo\": 79356,\n\t\"./zh-mo.js\": 79356,\n\t\"./zh-tw\": 75649,\n\t\"./zh-tw.js\": 75649\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 56469;","require(\"!!/srv/http/eva/shared/node_modules/script-loader/addScript.js\")(require(\"!!/srv/http/eva/shared/node_modules/script-loader/node_modules/raw-loader/index.js!/srv/http/eva/shared/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[4].use[0]!/srv/http/eva/rails/share/app/javascript/directives/eva-nullify.js\"))","require(\"!!/srv/http/eva/shared/node_modules/script-loader/addScript.js\")(require(\"!!/srv/http/eva/shared/node_modules/script-loader/node_modules/raw-loader/index.js!/srv/http/eva/shared/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[4].use[0]!/srv/http/eva/rails/share/app/javascript/directives/eva-view-popup.js\"))","require(\"!!/srv/http/eva/shared/node_modules/script-loader/addScript.js\")(require(\"!!/srv/http/eva/shared/node_modules/script-loader/node_modules/raw-loader/index.js!/srv/http/eva/shared/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[4].use[0]!/srv/http/eva/rails/share/app/javascript/directives/ng-filter-form.js\"))","require(\"!!/srv/http/eva/shared/node_modules/script-loader/addScript.js\")(require(\"!!/srv/http/eva/shared/node_modules/script-loader/node_modules/raw-loader/index.js!/srv/http/eva/shared/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[4].use[0]!/srv/http/eva/rails/share/app/javascript/directives/ng-numeric.js\"))","require(\"!!/srv/http/eva/shared/node_modules/script-loader/addScript.js\")(require(\"!!/srv/http/eva/shared/node_modules/script-loader/node_modules/raw-loader/index.js!/srv/http/eva/shared/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[4].use[0]!/srv/http/eva/rails/share/app/javascript/repositories/lang.js\"))","require(\"!!/srv/http/eva/shared/node_modules/script-loader/addScript.js\")(require(\"!!/srv/http/eva/shared/node_modules/script-loader/node_modules/raw-loader/index.js!/srv/http/eva/shared/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[4].use[0]!/srv/http/eva/rails/share/app/javascript/repositories/role.js\"))","require(\"!!/srv/http/eva/shared/node_modules/script-loader/addScript.js\")(require(\"!!/srv/http/eva/shared/node_modules/script-loader/node_modules/raw-loader/index.js!/srv/http/eva/shared/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[4].use[0]!/srv/http/eva/rails/tws/app/javascript/ng/directives/eva-alarm-icon.js\"))","require(\"!!/srv/http/eva/shared/node_modules/script-loader/addScript.js\")(require(\"!!/srv/http/eva/shared/node_modules/script-loader/node_modules/raw-loader/index.js!/srv/http/eva/shared/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[4].use[0]!/srv/http/eva/rails/tws/app/javascript/ng/directives/eva-import.js\"))","require(\"!!/srv/http/eva/shared/node_modules/script-loader/addScript.js\")(require(\"!!/srv/http/eva/shared/node_modules/script-loader/node_modules/raw-loader/index.js!/srv/http/eva/shared/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[4].use[0]!/srv/http/eva/rails/tws/app/javascript/ng/directives/fa-caret.js\"))","require(\"!!/srv/http/eva/shared/node_modules/script-loader/addScript.js\")(require(\"!!/srv/http/eva/shared/node_modules/script-loader/node_modules/raw-loader/index.js!/srv/http/eva/shared/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[4].use[0]!/srv/http/eva/rails/tws/app/javascript/ng/directives/ng-ajax-inline-form.js\"))","require(\"!!/srv/http/eva/shared/node_modules/script-loader/addScript.js\")(require(\"!!/srv/http/eva/shared/node_modules/script-loader/node_modules/raw-loader/index.js!/srv/http/eva/shared/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[4].use[0]!/srv/http/eva/rails/tws/app/javascript/ng/directives/ng-search-line.js\"))","require(\"!!/srv/http/eva/shared/node_modules/script-loader/addScript.js\")(require(\"!!/srv/http/eva/shared/node_modules/script-loader/node_modules/raw-loader/index.js!/srv/http/eva/shared/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[4].use[0]!/srv/http/eva/rails/tws/app/javascript/ng/repositories/contact.js\"))","require(\"!!/srv/http/eva/shared/node_modules/script-loader/addScript.js\")(require(\"!!/srv/http/eva/shared/node_modules/script-loader/node_modules/raw-loader/index.js!/srv/http/eva/shared/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[4].use[0]!/srv/http/eva/rails/tws/app/javascript/ng/repositories/espa-route.js\"))","require(\"!!/srv/http/eva/shared/node_modules/script-loader/addScript.js\")(require(\"!!/srv/http/eva/shared/node_modules/script-loader/node_modules/raw-loader/index.js!/srv/http/eva/shared/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[4].use[0]!/srv/http/eva/rails/tws/app/javascript/ng/repositories/external-unit-type.js\"))","require(\"!!/srv/http/eva/shared/node_modules/script-loader/addScript.js\")(require(\"!!/srv/http/eva/shared/node_modules/script-loader/node_modules/raw-loader/index.js!/srv/http/eva/shared/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[4].use[0]!/srv/http/eva/rails/tws/app/javascript/ng/repositories/external-unit.js\"))","module.exports = \"app.directive('evaNullify',function(){return{link:function(scope,element,attrs){element.on('click',function(){scope.$eval(attrs.evaNullify+' = null;');scope.$apply();});}};});\"","module.exports = \"app.directive('evaViewPopup',function(){return{transclude:'element',priority:100,terminate:true,scope:{src:'=evaViewPopup'},link:function(scope,element,attrs,ctrl,transclude){transclude(function(node,$scope){scope.$watch('src',function(value){if(value)$scope.src=value;});element.after(node);});}};});\"","module.exports = \"app.directive(\\\"ngFilterForm\\\",[\\\"$timeout\\\",function($timeout){return{scope:{\\\"applyCallback\\\":\\\"=\\\",\\\"filters\\\":\\\"=\\\"},link:function(scope,element){var filters=scope.filters;$timeout(function(){var $form=element.find(\\\"form\\\");var changeCallback=function(){$(\\\"body\\\").on(\\\"click.applyFilter\\\",function(e){if($.contains($form[0],e.target))return;$(\\\"body\\\").off(\\\"click.applyFilter\\\");var diff={};$form.find(\\\"input[name]\\\").each(function(){var $this=$(this),key=$this.attr(\\\"name\\\");diff[key]=diff[key]||[];if($this.is(':checked'))diff[key].push($this.val());});Object.assign(filters,diff);scope.applyCallback(1);$form.one(\\\"change\\\",changeCallback);});};$form.one(\\\"change\\\",changeCallback);element.find(\\\"[data-filter-type]\\\").each(function(){var $column=$(this),$label=element.find('[data-filter-label=\\\"'+$column.data(\\\"filterType\\\")+'\\\"]');$label.data(\\\"originalText\\\",$label.text());var updateLabel=function(){var $customs=$column.find('[name]:checked');if($customs.length>0){var text=\\\"\\\";$customs.each(function(){if(text.length>0)text+=\\\", \\\";text+=$(this).next(\\\"span\\\").text();});$label.text(text);}else $label.text($label.data(\\\"originalText\\\"));};$column.on(\\\"click\\\",\\\":checkbox[data-reset]\\\",function(e){$(this).prop(\\\"checked\\\",true);$column.find(\\\":checkbox[name]\\\").prop(\\\"checked\\\",false);updateLabel();});$column.on(\\\"click\\\",\\\":checkbox[name]\\\",function(){var reseted=$column.find(\\\"[name]:checkbox:checked\\\").length==0;$column.find(\\\"[data-reset]:checkbox\\\").prop(\\\"checked\\\",reseted);updateLabel();});$column.on(\\\"click\\\",\\\":radio\\\",updateLabel);updateLabel();});});}};}]);\"","module.exports = \"app.directive(\\\"ngNumeric\\\",function(){var regexps={default:/^-?[0-9]*$/,float:/^-?[0-9]*\\\\.?\\\\d*$/},extremum=9999999;var getRange=function(min,max){var range=[];range.push(!min&&min!==0?-extremum:min);range.push(!max&&max!==0?extremum:max);return range;};var inRange=function(range,value){var number=parseFloat(value);return range[0]<=number&&number<=range[1];};return{scope:false,link:function(scope,element,attrs){var prevTested=\\\"\\\",regex=regexps.hasOwnProperty(attrs.ngNumeric)?regexps[attrs.ngNumeric]:regexps.default,range=getRange(attrs.ngNumericMin,attrs.ngNumericMax);element.on('keyup change',function(){var value=element.val();if(value===''||value==='-'||regex.test(value)&&inRange(range,value))prevTested=value;else element.val(prevTested);});}};});\"","module.exports = \"app.service(\\\"Lang\\\",[\\\"Resty\\\",function(Resty){return Resty(\\\"langs\\\",\\\"dictionaries\\\");}]);\"","module.exports = \"app.service(\\\"Role\\\",[\\\"Resty\\\",function(Resty){return Resty(\\\"roles\\\",\\\"dictionaries\\\");}]);\"","module.exports = \"app.directive(\\\"evaAlarmIcon\\\",function(){return{scope:{resource:\\\"=evaAlarmIcon\\\"},link:function(scope,element,attrs){var prevClass;element.addClass('alarmIcon evi');if(attrs.evaAlarmIconMod)element.addClass('alarmIcon--'+attrs.evaAlarmIconMod);var iconApplier=function(resource){if(prevClass)element.removeClass(prevClass);if(!resource)return;prevClass='evi--a-'+(resource.icon||\\\"standard\\\");element.addClass(prevClass);};iconApplier(scope.resource);scope.$watch(\\\"resource\\\",iconApplier);}};});\"","module.exports = \"app.directive('evaImport',['utils',function(utils){return{restrict:'A',scope:true,controller:['$scope',function($scope){$scope.mode=utils.newViewMode({init:function(){$scope.form={};}});$scope.uploader=utils.uploader(\\\"evaImport\\\",function(file){$scope.form.file=file;$scope.$digest();});}]};}]);\"","module.exports = \"app.directive('faCaret',function(){return{link:function($scope,$element,$attrs){$element.addClass('fa');$scope.$watch($attrs.faCaret,function(newValue){if(newValue)$element.addClass('fa-angle-up').removeClass('fa-angle-down');else $element.removeClass('fa-angle-up').addClass('fa-angle-down');});}};});\"","module.exports = \"app.directive('ngAjaxInlineForm',['utils',function(utils){return{link:function(_,element){element.attr(\\\"data-remote\\\",true);element.find('button, input:submit').prop('disabled',true);element.on('change',function(){element.find('button, input:submit').prop('disabled',false);}).on('keydown','input, textarea',function(){element.find('button, input:submit').prop('disabled',false);}).on('ajax:success',function(e){element.find('button').prop('disabled',true);}).on('ajax:beforeSend',function(){element.find('[role=\\\"inputs\\\"]').removeClass('has-error');utils.startLoadingBar();}).on('ajax:error',function(){element.find('[role=\\\"inputs\\\"]').addClass('has-error');}).on('ajax:complete',function(){utils.completeLoadingBar();});}};}]);\"","module.exports = \"app.directive('ngSearchLine',function(){return{restrict:'E',template:'
      '+''+''+''+'
      ',scope:{callback:'='},controller:['$scope',function($scope){$scope.q='';$scope.apply=function(){let q=$scope.q.trim();$scope.callback(q.length===0?null:q);};$scope.keyApply=function($event){if($event.keyCode==13){$event.stopPropagation();$event.preventDefault();$scope.apply();}};$scope.reset=function(){$scope.q='';$scope.apply();};}]};});\"","module.exports = \"app.service(\\\"Contact\\\",[\\\"Resty\\\",function(Resty){return Resty(\\\"contacts\\\",function(klass){klass.tableList=klass.page;});}]);\"","module.exports = \"app.service('EspaRoute',['Resty',function(Resty){return Resty('espa_routes');}]);\"","module.exports = \"app.service(\\\"ExternalUnitType\\\",[\\\"Resty\\\",function(Resty){return Resty(\\\"external_unit_types\\\",\\\"dictionaries\\\");}]);\"","module.exports = \"app.service(\\\"ExternalUnit\\\",[\\\"Resty\\\",function(Resty){return Resty(\\\"external_units\\\");}]);\""],"names":["Base","PureComponent","static","mod","className","renderContent","this","props","children","render","React","createElement","WarningAlert","defaultProps","Fragment","message","Translate","value","MAX_SIZE","rejectWithAlert","key","window","alert","I18n","t","PRESETS","evaImport","file","type","includes","name","evaLogo","size","evaMap","evaAlarmAttachment","Component","constructor","_this","super","state","preview","preset","fileInputRef","createRef","onFileSelect","bind","onFileSelected","onReset","onPreviewOpen","setState","onPreviewClose","componentDidMount","current","addEventListener","click","e","_this2","target","files","body","FormData","append","railsFetch","Routes","uploads","then","resp","json","data","onChange","id","fileName","previewBtn","resetBtn","modal","onClick","previewPath","encodeURIComponent","Modal","href","src","ref","readOnly","ModalHeader","onClose","skin","header","el","document","getElementById","appendChild","componentWillUnmount","removeChild","ReactDOM","openModal","custom","Promise","resolve","reject","node","onSuccess","args","opts","onCancel","page","per_page","total","ReactPaginate","activePage","itemsCountPerPage","totalItemsCount","pageRangeDisplayed","itemClass","linkClass","firstPageText","lastPageText","prevPageText","nextPageText","hideDisabled","attachTooltip","tooltip","placement","$node","jQuery","title","container","trigger","html","timeoutId","clearTimeout","setTimeout","Tooltip","icon","rest","Object","assign","TooltipWrap","reloader","collection","$meta","length","pageFromArray","list","i","Math","max","item","end","result","push","app","service","loadingBar","forArray","dictionary","callback","paginator","start","complete","onDelete","$index","splice","forNestedRoute","resource","route","loadNestedResources","reload","forTable","klass","config","options","initPage","tableList","apply","directive","restrict","scope","onPageChange","template","link","$scope","$element","meta","undefined","createReactRoot","unmount","Pagination","$watch","toSector","$uuid","sortKey","q","toLowerCase","childCount","sort","sortBySortKeyName","forEach","child","parent","buildMap","childMap","ids","reduce","acc","sector","$selected","mapDetails","alarm","entities","encapsulatedEntities","$shouldBeParticipated","$isActive","readReceiptRequested","$participationOptions","schema","normalizeList","participation_options","$participationOption","findById","participationOptionId","$taskLists","taskList","normalize","filterDeleted","tasks","filter","mapTasksToList","sortBySortKeyTName","alarmLevelToStr","level","tAttr","descr","description","toParticipationStr","DEF_TASK_STATUS","$done","$doneAt","$lastStatus","$history","mapTaskHistoryStatus","$user","initiator_info","action","doneAt","done_at","fetchTaskStatuses","path","taskLists","fetchList","statuses","$tasks","tacc","task","status","find","taskId","taskListId","done","map","mapTaskStatus","mapTaskToList","$type","$reminders","init","addNewTaskToList","getTaskInfo","modelName","scanRequired","$scanType","toUrl","part","gon","client","url","toQuery","hasOwnProperty","keys","attrName","val","Array","isArray","encodeURI","toLocaleLowerCase","join","headers","base","token","EVA","apiVersion","Headers","responseHandler","autologin","location","toastr","theme","get","indexOf","doRequest","method","JSON","stringify","cached","ceil","Date","now","fetch","error","listData","$path","fetchAllListCache","fetchAllList","resetCache","fetchPage","params","fetchOne","fetchListByIds","uniqIds","from","Set","id_in","fetchRelationIds","relationIdsPath","fetchListByRelationIds","fetchCount","fileCache","downloadFileBlob","blob","getFileUrl","forceCache","fileUrl","URL","createObjectURL","saveBlob","saveAs","filename","extName","mime","blobToExt","endsWith","downloadFile","preloadFile","download","deleteItem","replaceBy","left","right","cancelText","okText","component","copy","parse","forResource","associations","form","pluralize","concat","forRoute","defaults","BaseI18n","setHandleMissingTranslation","replacements","fallback","default","setup","translations","locale","setTranslations","setLocale","r","model","rs","rCount","count","a","split","R","RS","relation","relationId","mapCounts","promises","all","mapData","relations","c","personRole","position","department","parts","ng","element","attrs","person","$eval","evaPersonRole","text","payload","credentials","head","querySelector","getAttribute","commit","timezone","moment","setDefault","FORMATS","datetime","datetime_s","date","time","datetimeFns","dateFns","LOCAL_TZ","guess","toDate","toLDate","unixToDate","ZONE_DIFF","timeOffset","getTimezoneOffset","unixToLDate","unixFromLDate","round","valueOf","unixStartOfDay","startOfDay","unixEndOfDay","endOfDay","toTimeStr","kind","format","toLTimeStr","unixToTimeStr","toDateTimeStr","toLDateTimeStr","unixToDateStr","toTimeDigetStr","secondsToTimeStr","floor","UTC","zonesForCountry","code","toUnixPeriod","add","startOf","unix","endOf","inRange","to","dateGap","oldFrom","oldTo","min","toUnixValue","DEFAULTS","holder","itemNode","classList","messageNode","titleNode","innerText","textNode","onItemHide","truncate","substr","ngTruncate","strCompare","Intl","Collator","collator","numeric","sensitivity","compare","b","localeCompare","reactBridge","getProps","toggle","LOCALES","ATTR_LOCALES","sortByLabel","label","sortByName","sortByFullName","$name","sortBySortKey","sortBySortKeyTAttr","attr","sortByTAttr","sortByCreation","createdAt","sortByCreationDesc","isStrBlank","trim","mapByIds","def","buildId","random","toName","firstName","lastName","scrollToTop","top","Number","isInteger","scroll","behavior","err","console","nool","toEnumValue","enumId","entries","enums","_","parseInt","toEnumLabel","filterByIdsF","stubTrue","isDeleted","camelize","str","replace","_match","chr","toUpperCase","stopPropagation","isPresent","isBlank","isEmail","test","group","affix","info","isRemote","remoteName","$connector","$connected","connectorLocationName","groupLockedBy","reason","$workflowsCount","isRegexpInMaintenance","regexps","some","_key","utils","extendMixins","alarm_sectors","building_sectors","contact_lists","isLocked","oncall_groups","isLockedBy","room_sectors","user_groups","task_lists","workflows","isCopiable","$alarmType","active","zoneDiff","shiftLocationZone","toMinutes","o","hh","mm","nd","normalizeSerialPrinterRegexps","alarm_type","extendProcesses","espa_routes","espaRoute","fireSystem","fireDetectorGroup","fireDetector","$key","external_services","$inMaintenance","handlers","handler","$isFDS","siaVersion","oncallGroup","connector","roles","role","$isAdmin","twsAdmins","sector_insiders","insider","structure_logs","log","entryType","prevUserIds","prevValue","users","userIds","newUserIds","newValue","time_plans","timePlan","startDate","$startDate","endDate","$endDate","hourPlans","hourPlan","$from","$to","userGroup","connectorLimits","namespaces","connectorType","visitors","visitor","startTime","$startTime","$permanent","$expiredAt","expiredAt","$briefingAt","briefingAt","$ndaAt","ndaAt","$canCheckIn","plannedEndTime","buildingSectorId","companyContact","$canBeReset","checkedIn","cardNumber","extId","setNestedResourceCount","updateResource","processes","$handle","isA","itemPath","loadNestedResourcesCount","_this3","applyChanges","preparePaginationOptions","configs","Resty","namespace","$route","endpoint","getList","getListByIds","loadListBelongsTo","slaveList","property","idProperty","masterList","slave","nestedPage","uuid","EDITABLE_MIMETYPES","assignAlarmTypeMarkers","alarmTypes","testId","slice","sortAttachments","updatedAt","mapAlarmDetails","alarmTypeId","currentStatus","$isInfo","initiator","$alarmLevels","alarm_levels","$alarmLevelHistory","alarmLevelsHistory","onCreation","userInfo","userName","alarmLevelIds","$alarmLevel","$buildingSectors","$alarmSectors","$roomSectors","$kind","answersMap","infoItems","answers","$infoItems","info_items","$answers","answer","$templateAttachment","$attachments","attachments","at","$isEditable","mimetype","mapContactList","contactsData","$allContacts","$allContactsCount","angular","module","injector","$","bootstrap","run","$rootScope","pick","$closeWindow","close","cacheTemplates","$cache","put","factory","RestyFactory","mixins","changes","each","process","collectionProcesses","extendCollectionProcesses","nextLevel","prevLevel","applySchema","source","suffix","isNumber","prepareValue","Resource","$nodes","nodeSchema","nodeKey","nodeSource","isObject","normalizeCollection","omit","alarms","contactLists","allContactsCount","contacts","$contactLists","$isSos","$isHandled","$location","handle","$massStopAllowed","prioKey","alarm_types","alarmType","$isAlarm","category","$isTechical","$isSw","$isTech","$isSpecific","confirmations","confirmation","contact","contactList","contactsCount","usersCount","sectorInsidersCount","external_alarms","source_origin","external_contacts","internal_contacts","infoItem","route_maps","routeMap","$isBackFileExists","backUploadedAt","backSource","taskTypes","taskScanTypes","scanType","countries","isDefault","documents","downloadFilePath","l","appId","external_unit_types","evacuation_users","user","multiLangSortFactory","setupSchema","getEnum","dict","tuple","Cache","reset","defaultValidation","getCandidates","selected","uuids","pluck","$attrs","on","xhr","errors","email","confirm","startLoadingBar","evaRestoreForm","completeLoadingBar","ngAjax","provider","redirectByXhr","getResponseHeader","reloadPage","onError","$get","onErrorResponse","onSuccessCallback","expression","response","responseJSON","$response","$apply","onErrorCallback","inlineErrorsUpdate","ngAjaxForm","settings","inlineErrors","prop","_a","_b","_c","ngAjaxLink","msg","error_message","getPopupTemplate","content","_popupId","history","$popup","popupId","closePopup","pop","remove","lastItem","addClass","getListWithZones","country","$timezones","resourceId","imgSrc","class","evaLocationLogo","evaTAttr","baseConfig","autoUpload","removeAfterUpload","uploadPath","FileUploader","getElement","uploader","_directives","select","clearInput","filters","fn","onBeforeUploadItem","onCompleteItem","onSuccessItem","fi","onCompleteAll","onWhenAddingFileFailed","evaUploader","ngPagination","$compile","$templateCache","popupScope","firstInit","popupBody","$new","closeSelector","wrapper","removeClass","after","openPopup","$digest","ngPopup","ngPopupSize","ngPopupUrl","EvaUploader","paginators","ViewMode","formForKlass","formForRoute","formForResource","newViewMode","paginateArray","arguments","paginateNestedRoute","paginateTable","reloadInfo","mode","loadFormData","userPromise","isAdmin","adminRoles","uniqBy","langs","companies","$role","roleId","$lang","langId","companyId","$company","getOne","lang","User","ngAjaxSetup","ngTooltip","$on","next","$block","ngVariants","variant","toggleClass","evaEnumDict","transclude","ctrl","cache","isInit","isFilterInclude","selectedSeria","toggleFilterItem","$body","hasClass","off","parents","index","phone","ReactDom","controller","paginate","paginateSelected","paginateCandidate","candidates","selectedPageNumber","candidatePageNumber","validate","isValid","$parent","unshift","updateSelectedPage","selectedPage","updateCandidatePage","candidatePage","sfilter","cfilter","$$selected","$$candidates","refreshPages","moveResource","movePage","$watchCollection","transcludeFn","clone","i18nStatic","limits","sortIndexes","licenses","strValue","initRoutes","sorting","pairs","check","order","resources","sortBy","flatMap","updateByForm","owner","routes","unsorted","rootScope","callbacks","set","prototype","is","warn","Country","templates","delimiter","limit","LinkConnector","onSubmit","env","connectLinkRequest","placeholder","disabled","Alert","isMatched","search","userMatched","outerHTML","replaceWith","onClass","offClass","ngModelStub","$setViewValue","noop","SectorDataLoader","getFormData","markDeleteableLevel","$isDeleteable","getAll","alarmLevels","withInfos","withParticipationOptions","system","markDeleteable","mapDetailsWithFilter","contactListIds","ra","promise","$isArchive","resourcePromise","dictPromise","$contactIds","$userIds","$sectorInsiderIds","sectorInsiders","$contacts","$users","$sectorInsiders","getDetailed","$fileMeta","updated_at","getLocalList","documentGroup","roleIds","userGroupIds","ExternalUnitType","units","tree","groupBy","values","$externalUnitType","unitTree","externalUnitTree","$country","findWhere","countryId","$externalUnitTree","reloadCurrent","ROLES","userIdsPromise","u","AlarmSector","roomSectors","buildingSectors","alarmSectors","alarmSectorId","$buildingSector","$alarmSector","$roomSector","roomSectorId","roundRate","number","mapProgress","meanTime","mean_time","rate","METHODS","taskIds","allTasks","taskListIds","documentIds","$documents","assignSectorsForList","bsIds","asIds","rsIds","buildingSectorIds","alarmSectorIds","roomSectorIds","workflow","getTargetList","items","$resource","skipDeleted","WorkflowForm","getTriggers","mapLevels","assignTriggers","$sectors","getTargets","userGroups","userRoles","oncallGroups","assignTargets","$userGroups","$userRoles","$oncallGroups","getNotifications","assignNotifications","getDict","getAlarmTypeWithLevels","AlarmType","dashboardList","alarm_type_status","workflowsMapper","HasManyMapper","_$scope","isAllowed","evaCheckAllowed","show","hide","preventDefault","loader","onComplete","evaDownloadFile","GroupName","require","limitTo","evaLimitTo","$parsers","$render","evaResourceCount","tt","evaResourceType","searchResult","ngModel","ngToggle","onValueChange","param","errorMessage","always","priority","$transclude","formScope","$formLocale","scopes","childScope","$locale","$default","$active","sectors","series","k","v","build","templateUrl","onEnd","Alarm","BuildingSector","ContactList","DocumentGroup","Document","Location","OncallGroup","PermissionGroup","RoomSector","RouteMap","UserGroup","sectorPromise","includeUsers","hasLicense","$visitors","mock","fireDepartmentPlanId","$fireDepartmentPlan","$alarmTypes","s","buildSchema","stats","statistics","methods","globals","interval","TaskList","Task","Role","Workflow","POLICY","policy","permissions","tabs","_hasAbility","_isAllowed","_isAdmin","tab","hasAbility","webpackContext","req","webpackContextResolve","__webpack_require__","Error","exports"],"sourceRoot":""}