{"version":3,"sources":["webpack:///./src/components/site-monitor/event-records/EventRecordsCCure.vue?7c28","webpack:///./src/components/site-monitor/event-records/EventRecordsCCure.vue?f556","webpack:///./src/components/site-monitor/event-records/EventRecordsCCure.vue?0ee4","webpack:///./src/components/site-monitor/event-records/EventRecordsCCure.vue","webpack:///./src/components/site-monitor/event-records/EventRecordsCCure.vue?4983"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","parseInt","$route","params","eventId","scopedSlots","_u","key","fn","slotProps","_t","eventRecord","logSingleEnabled","isFullUser","eventRecordTypeID","isCCure","serverTypeID","staticClass","class","expanded","staticStyle","on","$event","stopPropagation","toggleExpandRecord","_e","slot","anyCCure","showCCureBar","_v","_s","selectedCCureAlarm","details","ref","logTypes","logTypeSelected","model","value","callback","$$v","logTypeAll","expression","directives","name","rawName","modifiers","domProps","postLogMessageAll","target","composing","logMessageAll","trim","$forceUpdate","canPostMessage","postingMessageAll","resetActions","clearSelectedCCureAlarm","dismissCountDown","countDownChanged","postingMessageError","staticRenderFns","logMessage","postingMessage","logTypeID","title","logType","filterIndex","created","eventRecords","index","findIndex","record","$store","watch","state","siteMonitor","oldValue","featuresList","onSelectedEventRecordIdChange","newValue","$refs","nextTick","$el","focus","postLogMessage","eventRecordID","eventid","then","response","error","message","undefined","resetAllActions","setTimeout","$config","ANIMATION_DURATION","selectedType","length","EventRecordsCCure","components","EventRecords","multiselect","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,gBAAgB,CAACE,MAAM,CAAC,QAAUC,SAASP,EAAIQ,OAAOC,OAAOC,UAAUC,YAAYX,EAAIY,GAAG,CAAC,CAACC,IAAI,OAAOC,GAAG,SAASC,GAAW,MAAO,CAACf,EAAIgB,GAAG,OAAO,KAAK,CAAC,YAAcD,EAAUE,cAAejB,EAAIkB,kBAAoBlB,EAAImB,YAAyD,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AAuBF,UAE7D,GAAMxF,KAAKmG,QAAQC,qBAGf,YAAAvE,mBAAR,SAA2Bb,GAC1BhB,KAAKoC,mBAAqBpB,EACzBhB,KAAKqF,MAAM,cAAsBE,IAAIC,SAG/B,YAAA9B,eAAR,SAAuB2C,EAAcnC,GACpC,OAAoB,MAAhBmC,QAAkDL,GAA1BK,EAAajC,YAIrCiC,EAAajC,UAAY,IAIE,GAA3BiC,EAAajC,WACTF,EAAWoC,OAAS,IAMrB,YAAAvC,iBAAR,SAAyBD,GACxB9D,KAAK8D,iBAAmBA,GAGjB,YAAAD,wBAAR,WACC7D,KAAKoC,mBAAqB,MA9I3B,gBADC,mBAAM,0B,4CAWN,MApFmBmE,EAAiB,gBANrC,uBAAU,CACVC,WAAY,CACX,gBAAiBC,EAAA,WACjBC,YAAa,QAGMH,GA0NrB,EA1NA,CAA+C,oBAAO,UAAjC,ICrB2Z,I,wBCQ5aI,EAAY,eACd,EACA7G,EACAmE,GACA,EACA,KACA,WACA,MAIa,aAAA0C,E,2CCnBf,yBAAqlB,EAAG,G","file":"js/chunk-5c281286.b80d5fc7.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('event-records',{attrs:{\"eventid\":parseInt(_vm.$route.params.eventId)},scopedSlots:_vm._u([{key:\"icon\",fn:function(slotProps){return [_vm._t(\"icon\",null,{\"eventRecord\":slotProps.eventRecord}),(_vm.logSingleEnabled && _vm.isFullUser && slotProps.eventRecord.eventRecordTypeID == 1 && _vm.isCCure(slotProps.eventRecord.serverTypeID))?_c('i',{staticClass:\"fas click-span\",class:{'fa-chevron-down': !slotProps.eventRecord.expanded, 'fa-chevron-up': slotProps.eventRecord.expanded},staticStyle:{\"margin-left\":\"5px\"},attrs:{\"data-cy\":\"ccure-log-single-enabled\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.toggleExpandRecord(slotProps.eventRecord)}}}):_vm._e()]}}],null,true)},[_c('template',{slot:\"header\"},[(_vm.isFullUser && _vm.anyCCure && _vm.showCCureBar)?_c('div',[(_vm.selectedCCureAlarm)?_c('div',{staticClass:\"card-header\"},[_vm._v(_vm._s(_vm.selectedCCureAlarm.details))]):_vm._e(),_c('div',{staticClass:\"d-flex align-items-center ccure-event-bar\"},[(_vm.logAllEnabled)?_c('div',{staticClass:\"ccure-event-bar-message multiselect-float\",attrs:{\"data-cy\":\"ccure-log-all-enabled\"}},[_c('multiselect',{ref:'logSelect0',staticClass:\"multiselect-small-options\",attrs:{\"selectLabel\":\"\",\"deselectLabel\":\"\",\"track-by\":\"logTypeID\",\"label\":\"title\",\"placeholder\":\"Select log type\",\"options\":_vm.logTypes,\"allow-empty\":false,\"showNoResults\":false,\"clear-on-select\":true,\"data-cy\":\"multiselect\"},on:{\"select\":function($event){return _vm.logTypeSelected()}},model:{value:(_vm.logTypeAll),callback:function ($$v) {_vm.logTypeAll=$$v},expression:\"logTypeAll\"}}),_c('div',{staticClass:\"form-group flex-grow-1 log-message-input\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.logMessageAll),expression:\"logMessageAll\",modifiers:{\"trim\":true}},{name:\"shortkey\",rawName:\"v-shortkey.once\",value:(['enter']),expression:\"['enter']\",modifiers:{\"once\":true}}],ref:'logMessage0',staticClass:\"form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"Enter log message\"},domProps:{\"value\":(_vm.logMessageAll)},on:{\"shortkey\":_vm.postLogMessageAll,\"input\":function($event){if($event.target.composing){ return; }_vm.logMessageAll=$event.target.value.trim()},\"blur\":function($event){return _vm.$forceUpdate()}}})]),_c('a',{staticClass:\"btn btn-secondary flex-shrink-0 post-log-msg-btn\",class:{'disabled': !_vm.canPostMessage(_vm.logTypeAll, _vm.logMessageAll)},attrs:{\"title\":\"Post log message\",\"disabled\":!_vm.canPostMessage(_vm.logTypeAll, _vm.logMessageAll)},on:{\"click\":function($event){return _vm.postLogMessageAll()}}},[(!_vm.postingMessageAll)?_c('span',{staticClass:\"fas fa-plus\"}):_vm._e(),(_vm.postingMessageAll)?_c('span',{staticClass:\"fas fa-circle-notch fa-spin\"}):_vm._e()])],1):_vm._e(),(_vm.ccureUIEnabled)?_c('div',{attrs:{\"data-cy\":\"ccure-ui-enabled\"}},[(!_vm.selectedCCureAlarm)?_c('a',{staticClass:\"btn btn-secondary\",on:{\"click\":function($event){return _vm.resetActions()}}},[_vm._v(\"Reset all actions\")]):_vm._e(),(_vm.selectedCCureAlarm)?_c('a',{staticClass:\"btn btn-secondary\",on:{\"click\":function($event){return _vm.resetActions(_vm.selectedCCureAlarm)}}},[_vm._v(\"Reset actions\")]):_vm._e()]):_vm._e(),(_vm.selectedCCureAlarm)?_c('a',{staticClass:\"btn btn-secondary m-l-10\",attrs:{\"data-cy\":\"clear-selected-ccure-alarm\"},on:{\"click\":function($event){return _vm.clearSelectedCCureAlarm()}}},[_vm._v(\"Done\")]):_vm._e()]),_c('b-alert',{staticClass:\"failed-msg\",attrs:{\"variant\":\"danger\",\"show\":_vm.dismissCountDown,\"dismissible\":\"\",\"fade\":\"\"},on:{\"dismissed\":function($event){_vm.dismissCountDown=0},\"dismiss-count-down\":_vm.countDownChanged}},[(_vm.postingMessageError)?_c('span',[_vm._v(\"Failed to post log message - \"+_vm._s(_vm.postingMessageError))]):_vm._e()])],1):_vm._e()])],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component, Vue, Prop, Watch, Mixins } from \"vue-property-decorator\";\nimport { namespace, Getter } from \"vuex-class\";\nimport { retry } from \"rxjs/operators\";\nimport { get } from \"lodash\";\nimport { UserPermissions, FeaturesList } from \"@/store/types\";\n\nimport EventRecordsMixin from \"./eventRecords.mixin\";\nimport EventRecords from \"./EventRecords.vue\";\nimport Multiselect from \"vue-multiselect\";\nimport api from \"@/services/api.ccure.service\";\n\nconst SiteMonitor = namespace(\"siteMonitor\");\nconst Root = namespace(\"\");\n\n@Component({\n\tcomponents: {\n\t\t\"event-records\": EventRecords,\n\t\tmultiselect: Multiselect\n\t}\n})\nexport default class EventRecordsCCure extends Mixins(EventRecordsMixin) {\n\tprivate logMessage: string = \"\";\n\tprivate postingMessage: boolean = false;\n\n\tprivate logMessageAll: string = \"\";\n\tprivate postingMessageAll: boolean = false;\n\n\tprivate postingMessageError: string | null = null;\n\tprivate dismissCountDown: number = 0;\n\n\tprivate selectedCCureAlarm: any = null;\n\tprivate anyCCure: boolean = false;\n\n\tprivate logTypes: any[] = [\n\t\t{ logTypeID: -1, title: \"[Custom Message]\" },\n\t\t{ logTypeID: 3, title: \"1-Dispatch FC/PD\" },\n\t\t{ logTypeID: 4, title: \"1-Dispatch Facilities\" },\n\t\t{ logTypeID: 5, title: \"1-Contact Responsible Party\" },\n\t\t{ logTypeID: 6, title: \"2-Review Recorded Video\" },\n\t\t{ logTypeID: 7, title: \"2-Arrived / Investigating Locally\" },\n\t\t{ logTypeID: 8, title: \"6-Disposition: Area Secure / Situation Normal\" },\n\t\t{ logTypeID: 9, title: \"6-Disposition: Situation in progress\" },\n\t\t{ logTypeID: 10, title: \"8-Action: Incident Report Filed\" },\n\t\t{ logTypeID: 11, title: \"8-Action: Task Created\" }\n\t];\n\n\tprivate logType: any = this.logTypes[0];\n\tprivate logTypeAll: any = this.logTypes[0];\n\n\tprivate get showCCureBar() {\n\t\treturn this.filterIndex <= 0;\n\t}\n\n\tprivate created() {\n\t\tif (this.eventRecords != null) {\n\t\t\tlet index = this.eventRecords.findIndex((record: any) => this.isCCure(record.serverTypeID));\n\t\t\t\n\t\t\tif (index > -1) {\n\t\t\t\tthis.anyCCure = true;\n\t\t\t} else {\n\t\t\t\tlet unwatch = this.$store.watch(\n\t\t\t\t\tstate => state.siteMonitor.EventRecords,\n\t\t\t\t\t(value: any[], oldValue: any[]) => {\n\t\t\t\t\t\tif (value != null) {\n\t\t\t\t\t\t\tlet index = value.findIndex(record => this.isCCure(record.serverTypeID));\n\n\t\t\t\t\t\t\tif (index > -1) {\n\t\t\t\t\t\t\t\tthis.anyCCure = true;\n\t\t\t\t\t\t\t\tunwatch();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate isCCure(serverTypeID: number) {\n\t\treturn serverTypeID == 427 || serverTypeID == 1234;\n\t}\n\n\tprivate get ccureUIEnabled() {\n\t\treturn get(this.featuresList, [\"Integration\", \"CCure\", \"UI\"]);\n\t}\n\n\tprivate get logAllEnabled() {\n\t\treturn get(this.featuresList, [\"Integration\", \"CCure\", \"UI\", \"LogAll\"]);\n\t}\n\n\tprivate get logSingleEnabled() {\n\t\treturn get(this.featuresList, [\"Integration\", \"CCure\", \"UI\", \"LogSingle\"]);\n\t}\n\n\t@Watch(\"selectedEventRecordId\")\n\tprivate onSelectedEventRecordIdChange(value: any, newValue: any) {\n\t\tif (value != null) {\n\t\t\tlet refs = this.$refs;\n\n\t\t\tVue.nextTick(() => {\n\t\t\t\tif (this.$refs[\"logSelect\" + value] != null) {\n\t\t\t\t\t(this.$refs[\"logSelect\" + value] as any).$el.focus();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate postLogMessage(eventRecord: any) {\n\t\tif (this.postingMessage) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.canPostMessage(this.logType, this.logMessage)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.postingMessage = true;\n\n\t\tapi.postLogMessage(\n\t\t\teventRecord.eventRecordID,\n\t\t\tthis.logType.logTypeID == -1 ? \"\" : this.logType.title,\n\t\t\tthis.logMessage,\n\t\t\tthis.eventid\n\t\t).then(\n\t\t\tresponse => {\n\t\t\t\tthis.logMessage = \"\";\n\t\t\t\tthis.logType = {};\n\n\t\t\t\tthis.postingMessage = false;\n\t\t\t},\n\t\t\terror => {\n\t\t\t\tthis.postingMessage = false;\n\t\t\t\tthis.postingMessageError = error.message;\n\t\t\t\tthis.dismissCountDown = 5;\n\t\t\t}\n\t\t);\n\t}\n\n\tprivate postLogMessageAll() {\n\t\tif (this.postingMessageAll) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.canPostMessage(this.logTypeAll, this.logMessageAll)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.postingMessageAll = true;\n\n\t\tif (this.selectedCCureAlarm) {\n\t\t\tapi.postLogMessage(\n\t\t\t\tthis.selectedCCureAlarm.eventRecordID,\n\t\t\t\tthis.logTypeAll.logTypeID == -1 ? \"\" : this.logTypeAll.title,\n\t\t\t\tthis.logMessageAll,\n\t\t\t\tthis.eventid\n\t\t\t).then(\n\t\t\t\tresponse => {\n\t\t\t\t\tthis.logMessageAll = \"\";\n\t\t\t\t\tthis.logTypeAll = {};\n\n\t\t\t\t\tthis.postingMessageAll = false;\n\t\t\t\t},\n\t\t\t\terror => {\n\t\t\t\t\tthis.postingMessageAll = false;\n\t\t\t\t\tthis.postingMessageError = error.message;\n\t\t\t\t\tthis.dismissCountDown = 5;\n\t\t\t\t}\n\t\t\t);\n\t\t} else {\n\t\t\tapi.postLogMessageAll(\n\t\t\t\tthis.logTypeAll.logTypeID == -1 ? \"\" : this.logTypeAll.title,\n\t\t\t\tthis.logMessageAll,\n\t\t\t\tthis.eventid\n\t\t\t).then(\n\t\t\t\tresponse => {\n\t\t\t\t\tthis.logMessageAll = \"\";\n\t\t\t\t\tthis.logTypeAll = {};\n\n\t\t\t\t\tthis.postingMessageAll = false;\n\t\t\t\t},\n\t\t\t\terror => {\n\t\t\t\t\tthis.postingMessageAll = false;\n\t\t\t\t\tthis.postingMessageError = error.message;\n\t\t\t\t\tthis.dismissCountDown = 5;\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic resetActions(eventRecord: any) {\n\t\tif (eventRecord === null || eventRecord === undefined) {\n\t\t\tapi.resetAllActions(this.eventid);\n\t\t} else {\n\t\t\tapi.resetActions(eventRecord.eventRecordID);\n\t\t}\n\t}\n\n\tprivate logTypeSelected(eventRecord: any, logType: any) {\n\t\tif (logType != null) {\n\t\t\tthis.logType = logType;\n\t\t}\n\n\t\tsetTimeout(() => {\n\t\t\tif (eventRecord == null) {\n\t\t\t\t(this.$refs[\"logMessage0\"] as any).focus();\n\t\t\t} else {\n\t\t\t\t(this.$refs[\"logMessage\" + eventRecord.eventRecordID] as any).focus();\n\t\t\t}\n\t\t}, 0.5 * this.$config.ANIMATION_DURATION);\n\t}\n\n\tprivate toggleExpandRecord(eventRecord: any) {\n\t\tthis.selectedCCureAlarm = eventRecord;\n\t\t(this.$refs[\"logSelect0\"] as any).$el.focus();\n\t}\n\n\tprivate canPostMessage(selectedType, logMessage) {\n\t\tif (selectedType == null || selectedType.logTypeID == undefined) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (selectedType.logTypeID > 0) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif (selectedType.logTypeID == -1) {\n\t\t\treturn logMessage.length > 0;\n\t\t}\n\n\t\treturn false;\n\t}\n\n\tprivate countDownChanged(dismissCountDown) {\n\t\tthis.dismissCountDown = dismissCountDown;\n\t}\n\n\tprivate clearSelectedCCureAlarm() {\n\t\tthis.selectedCCureAlarm = null;\n\t}\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EventRecordsCCure.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EventRecordsCCure.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./EventRecordsCCure.vue?vue&type=template&id=83f7cd6e&scoped=true&\"\nimport script from \"./EventRecordsCCure.vue?vue&type=script&lang=ts&\"\nexport * from \"./EventRecordsCCure.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./EventRecordsCCure.vue?vue&type=style&index=0&id=83f7cd6e&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"83f7cd6e\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EventRecordsCCure.vue?vue&type=style&index=0&id=83f7cd6e&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EventRecordsCCure.vue?vue&type=style&index=0&id=83f7cd6e&scoped=true&lang=scss&\""],"sourceRoot":""}