cosmosc2-tool-calendar 5.0.2.pre.beta2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"js/172.js","mappings":"2LAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,UAAU,CAACE,MAAM,CAAC,MAAQN,EAAIO,SAASH,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQ,KAAK,CAACF,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACI,YAAY,QAAQ,CAACJ,EAAG,mBAAmB,CAACE,MAAM,CAAC,UAAYN,EAAIS,UAAU,OAAST,EAAIU,gBAAgBC,GAAG,CAAC,OAASX,EAAIY,eAAeC,MAAM,CAACC,MAAOd,EAAyB,sBAAEe,SAAS,SAAUC,GAAMhB,EAAIiB,sBAAsBD,GAAKE,WAAW,4BAA4B,IAAI,GAAGd,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACe,YAAY,CAAC,YAAY,UAAU,CAACf,EAAG,gBAAgB,CAACS,MAAM,CAACC,MAAOd,EAAyB,sBAAEe,SAAS,SAAUC,GAAMhB,EAAIiB,sBAAsBD,GAAKE,WAAW,2BAA2Bd,EAAG,YAAY,CAACI,YAAY,SAASJ,EAAG,oBAAoB,CAACE,MAAM,CAAC,UAAYN,EAAIS,WAAWI,MAAM,CAACC,MAAOd,EAAqB,kBAAEe,SAAS,SAAUC,GAAMhB,EAAIoB,kBAAkBJ,GAAKE,WAAW,wBAAwB,GAAGd,EAAG,QAAQ,CAACI,YAAY,QAAQ,CAACJ,EAAG,iBAAiB,CAACiB,IAAI,gBAAgBf,MAAM,CAAC,OAASN,EAAIU,gBAAgBG,MAAM,CAACC,MAAOd,EAAyB,sBAAEe,SAAS,SAAUC,GAAMhB,EAAIiB,sBAAsBD,GAAKE,WAAW,4BAA4B,IAAI,IAAI,IAAI,IAC/pCI,EAA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,EAAQC,aAAYD,EAAUA,EAAQ9Y,SACnB,kBAAZ8Y,IAAsBA,EAAU,CAAC,CAACD,EAAOzN,GAAI0N,EAAS,MAC7DA,EAAQE,SAAQH,EAAOI,QAAUH,EAAQE,QAE5C,IAAIE,EAAM,UACGA,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,qBCN5E,IAAIA,EAAU,EAAQ,MACnBA,EAAQC,aAAYD,EAAUA,EAAQ9Y,SACnB,kBAAZ8Y,IAAsBA,EAAU,CAAC,CAACD,EAAOzN,GAAI0N,EAAS,MAC7DA,EAAQE,SAAQH,EAAOI,QAAUH,EAAQE,QAE5C,IAAIE,EAAM,UACGA,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,qBCN5E,IAAIA,EAAU,EAAQ,MACnBA,EAAQC,aAAYD,EAAUA,EAAQ9Y,SACnB,kBAAZ8Y,IAAsBA,EAAU,CAAC,CAACD,EAAOzN,GAAI0N,EAAS,MAC7DA,EAAQE,SAAQH,EAAOI,QAAUH,EAAQE,QAE5C,IAAIE,EAAM,UACGA,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,qBCN5E,IAAIA,EAAU,EAAQ,MACnBA,EAAQC,aAAYD,EAAUA,EAAQ9Y,SACnB,kBAAZ8Y,IAAsBA,EAAU,CAAC,CAACD,EAAOzN,GAAI0N,EAAS,MAC7DA,EAAQE,SAAQH,EAAOI,QAAUH,EAAQE,QAE5C,IAAIE,EAAM,UACGA,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa","sources":["webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Calendar.vue?293d","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/services/axios.js","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/services/api.js","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/services/cable.js","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/TopBar.vue?228d","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/TopBar.vue","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/TopBar.vue?adab","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/TopBar.vue?dfc0","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/EventCalendar.vue?1270","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/EventDialog.vue?ac53","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/ActivityEventForm.vue?5981","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Filters/timeFilters.js","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/ActivityEventTimeline.vue?8676","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Forms/ActivityEventTimeline.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/ActivityEventTimeline.vue?39fb","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/ActivityEventTimeline.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/ActivityUpdateDialog.vue?e85b","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/EnvironmentChooser.vue?86ab","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/EnvironmentChooser.vue","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/EnvironmentChooser.vue?46d4","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/EnvironmentChooser.vue?056c","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/ScriptChooser.vue?717f","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/ScriptChooser.vue","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/ScriptChooser.vue?5c86","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/ScriptChooser.vue?622e","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Dialogs/ActivityUpdateDialog.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/ActivityUpdateDialog.vue?cdd8","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/ActivityUpdateDialog.vue","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Forms/ActivityEventForm.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/ActivityEventForm.vue?42a2","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/ActivityEventForm.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/MetadataEventForm.vue?4a47","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/MetadataUpdateDialog.vue?7968","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/services/cosmos-api.js","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/ColorSelectForm.vue?8369","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Forms/ColorSelectForm.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/ColorSelectForm.vue?28d8","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/ColorSelectForm.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/MetadataInputForm.vue?d7c0","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Forms/MetadataInputForm.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/MetadataInputForm.vue?3198","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/MetadataInputForm.vue","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Dialogs/MetadataUpdateDialog.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/MetadataUpdateDialog.vue?d7fd","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/MetadataUpdateDialog.vue","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Forms/MetadataEventForm.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/MetadataEventForm.vue?fb5d","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/MetadataEventForm.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/NarrationEventForm.vue?9b6d","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/NarrationUpdateDialog.vue?fbef","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Dialogs/NarrationUpdateDialog.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/NarrationUpdateDialog.vue?bf63","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/NarrationUpdateDialog.vue","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Forms/NarrationEventForm.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/NarrationEventForm.vue?e482","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/NarrationEventForm.vue","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Dialogs/EventDialog.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/EventDialog.vue?9986","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/EventDialog.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Filters/timelineFilters.js","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Filters/chronicleFilters.js","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/EventCalendar.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/EventCalendar.vue?4ac6","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/EventCalendar.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/CalendarToolbar.vue?b490","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/EventListDialog.vue?b41f","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Dialogs/EventListDialog.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/EventListDialog.vue?16d2","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/EventListDialog.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/ActivityCreateDialog.vue?430b","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Dialogs/ActivityCreateDialog.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/ActivityCreateDialog.vue?e370","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/ActivityCreateDialog.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/MetadataCreateDialog.vue?9961","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Dialogs/MetadataCreateDialog.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/MetadataCreateDialog.vue?07a6","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/MetadataCreateDialog.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/NarrationCreateDialog.vue?ec68","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Dialogs/NarrationCreateDialog.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/NarrationCreateDialog.vue?fcc9","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/NarrationCreateDialog.vue","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/CalendarToolbar.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/CalendarToolbar.vue?d5a2","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/CalendarToolbar.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/CalendarSelector.vue?d30a","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/EnvironmentDialog.vue?955b","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/EnvironmentDialog.vue","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/EnvironmentDialog.vue?51a9","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/EnvironmentDialog.vue?0b88","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/SelectorOptions.vue?434d","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/SelectorOptions.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/SelectorOptions.vue?c4ea","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/SelectorOptions.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/TimelineCreateDialog.vue?5dd7","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Dialogs/TimelineCreateDialog.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/TimelineCreateDialog.vue?f236","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/TimelineCreateDialog.vue","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/CalendarSelector.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/CalendarSelector.vue?f50e","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/CalendarSelector.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/MiniCalendar.vue?3383","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/MiniCalendar.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/MiniCalendar.vue?17a3","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/MiniCalendar.vue","webpack://@cosmosc2/tool-calendar/src/tools/Calendar/Calendar.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Calendar.vue?9021","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Calendar.vue","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/CalendarSelector.vue?1664","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/ActivityCreateDialog.vue?dd05","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/ActivityUpdateDialog.vue?f3dd","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/MetadataCreateDialog.vue?5cca","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/MetadataUpdateDialog.vue?b444","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/NarrationCreateDialog.vue?67d3","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/NarrationUpdateDialog.vue?5adf","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/TimelineCreateDialog.vue?20b9","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/ActivityEventForm.vue?5a8c","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/MetadataEventForm.vue?1413","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/NarrationEventForm.vue?d1f7","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/TopBar.vue?b2db","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/EventCalendar.vue?e691","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/CalendarSelector.vue?7ae9","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/ActivityCreateDialog.vue?c154","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/ActivityUpdateDialog.vue?5b8e","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/MetadataCreateDialog.vue?3007","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/MetadataUpdateDialog.vue?384b","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/NarrationCreateDialog.vue?512f","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/NarrationUpdateDialog.vue?78ef","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Dialogs/TimelineCreateDialog.vue?c0e5","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/ActivityEventForm.vue?c9b1","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/MetadataEventForm.vue?18f4","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/Forms/NarrationEventForm.vue?2219","webpack://@cosmosc2/tool-calendar/../cosmosc2-tool-common/src/components/TopBar.vue?5429","webpack://@cosmosc2/tool-calendar/./src/tools/Calendar/EventCalendar.vue?809e"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('top-bar',{attrs:{\"title\":_vm.title}}),_c('v-container',{attrs:{\"dense\":\"\"}},[_c('v-row',[_c('v-col',{staticClass:\"pa-1\"},[_c('calendar-toolbar',{attrs:{\"timelines\":_vm.timelines,\"events\":_vm.calendarEvents},on:{\"action\":_vm.actionHandler},model:{value:(_vm.calendarConfiguration),callback:function ($$v) {_vm.calendarConfiguration=$$v},expression:\"calendarConfiguration\"}})],1)],1),_c('v-row',[_c('v-col',{staticStyle:{\"max-width\":\"300px\"}},[_c('mini-calendar',{model:{value:(_vm.calendarConfiguration),callback:function ($$v) {_vm.calendarConfiguration=$$v},expression:\"calendarConfiguration\"}}),_c('v-divider',{staticClass:\"my-1\"}),_c('calendar-selector',{attrs:{\"timelines\":_vm.timelines},model:{value:(_vm.selectedCalendars),callback:function ($$v) {_vm.selectedCalendars=$$v},expression:\"selectedCalendars\"}})],1),_c('v-col',{staticClass:\"pa-1\"},[_c('event-calendar',{ref:\"eventCalendar\",attrs:{\"events\":_vm.calendarEvents},model:{value:(_vm.calendarConfiguration),callback:function ($$v) {_vm.calendarConfiguration=$$v},expression:\"calendarConfiguration\"}})],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 10000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response.status === 401) {\n delete localStorage.cosmosToken\n CosmosAuth.login(location.href)\n } else {\n let body = `HTTP ${error.response.status} - `\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n }\n)\n\nexport default axiosInstance\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nimport axios from './axios.js'\n\nconst request = async function (\n method,\n url,\n { data, params = {}, headers, noAuth = false, noScope = false } = {}\n) {\n if (!noAuth) {\n try {\n await CosmosAuth.updateToken(CosmosAuth.defaultMinValidity)\n } catch (error) {\n CosmosAuth.login()\n }\n headers['Authorization'] = localStorage.cosmosToken\n }\n if (!noScope && !params['scope']) {\n params['scope'] = localStorage.scope\n }\n return axios({\n method,\n url,\n data,\n params,\n headers,\n })\n}\n\nconst acceptOnlyDefaultHeaders = {\n Accept: 'application/json',\n}\n\nconst fullDefaultHeaders = {\n ...acceptOnlyDefaultHeaders,\n 'Content-Type': 'application/json',\n}\n\nexport default {\n get: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('get', path, { params, headers, noScope, noAuth })\n },\n\n put: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('put', path, { data, params, headers, noScope, noAuth })\n },\n\n post: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('post', path, { data, params, headers, noScope, noAuth })\n },\n\n delete: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('delete', path, { params, headers, noScope, noAuth })\n },\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nimport * as ActionCable from 'actioncable'\n\nexport default class Cable {\n constructor(url = '/cosmos-api/cable') {\n this._cable = ActionCable.createConsumer(url)\n }\n disconnect() {\n this._cable.disconnect()\n }\n createSubscription(channel, scope, callbacks = {}, additionalOptions = {}) {\n return CosmosAuth.updateToken(CosmosAuth.defaultMinValidity).then(() => {\n return this._cable.subscriptions.create(\n {\n channel,\n scope,\n token: localStorage.cosmosToken,\n ...additionalOptions,\n },\n callbacks\n )\n })\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('mounting-portal',{attrs:{\"mount-to\":\"#cosmos-menu\",\"append\":\"\"}},[_c('div',{staticClass:\"v-toolbar__content\"},[_vm._l((_vm.menus),function(menu,i){return _c('v-menu',{key:i,attrs:{\"offset-y\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({staticClass:\"mx-1\",attrs:{\"outlined\":\"\",\"data-test\":_vm.formatDT((_vm.title + \" \" + (menu.label)))}},'v-btn',attrs,false),on),[_c('span',{domProps:{\"textContent\":_vm._s(menu.label)}}),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\" mdi-menu-down \")])],1)]}}],null,true)},[_c('v-list',[_c('v-radio-group',{staticClass:\"ma-0 pa-0\",attrs:{\"value\":menu.radioGroup,\"hide-details\":\"\",\"dense\":\"\"}},[_vm._l((menu.items),function(option,j){return [(option.divider)?_c('v-divider',{key:j}):_c('v-list-item',{key:j,attrs:{\"disabled\":option.disabled,\"data-test\":_vm.formatDT((_vm.title + \" \" + (menu.label) + \" \" + (option.label)))},on:{\"click\":option.command}},[(option.radio)?_c('v-list-item-action',[_c('v-radio',{attrs:{\"color\":\"secondary\",\"label\":option.label,\"value\":option.label}})],1):_vm._e(),(option.checkbox)?_c('v-list-item-action',[_c('v-checkbox',{attrs:{\"color\":\"secondary\",\"label\":option.label,\"value\":option.label},model:{value:(_vm.checked),callback:function ($$v) {_vm.checked=$$v},expression:\"checked\"}})],1):_vm._e(),(option.icon)?_c('v-list-item-icon',[_c('v-icon',{attrs:{\"disabled\":option.disabled},domProps:{\"textContent\":_vm._s(option.icon)}})],1):_vm._e(),(!option.radio && !option.checkbox)?_c('v-list-item-title',{style:('cursor: pointer;' + (option.disabled ? 'opacity: 0.2' : '')),domProps:{\"textContent\":_vm._s(option.label)}}):_vm._e()],1)]})],2)],1)],1)}),_c('v-spacer'),_c('v-toolbar-title',{domProps:{\"textContent\":_vm._s(_vm.title)}}),_c('v-spacer')],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <mounting-portal mount-to=\"#cosmos-menu\" append>\n <div class=\"v-toolbar__content\">\n <v-menu offset-y v-for=\"(menu, i) in menus\" :key=\"i\">\n <template v-slot:activator=\"{ on, attrs }\">\n <v-btn\n outlined\n v-bind=\"attrs\"\n v-on=\"on\"\n class=\"mx-1\"\n :data-test=\"formatDT(`${title} ${menu.label}`)\"\n >\n <span v-text=\"menu.label\" />\n <v-icon right> mdi-menu-down </v-icon>\n </v-btn>\n </template>\n <v-list>\n <!-- The radio-group is necessary in case the application wants radio buttons -->\n <v-radio-group\n :value=\"menu.radioGroup\"\n hide-details\n dense\n class=\"ma-0 pa-0\"\n >\n <template v-for=\"(option, j) in menu.items\">\n <v-divider v-if=\"option.divider\" :key=\"j\" />\n <v-list-item\n v-else\n @click=\"option.command\"\n :key=\"j\"\n :disabled=\"option.disabled\"\n :data-test=\"formatDT(`${title} ${menu.label} ${option.label}`)\"\n >\n <v-list-item-action\n v-if=\"option.radio\"\n >\n <v-radio\n color=\"secondary\"\n :label=\"option.label\"\n :value=\"option.label\"\n />\n </v-list-item-action>\n <v-list-item-action\n v-if=\"option.checkbox\"\n >\n <v-checkbox\n v-model=\"checked\"\n color=\"secondary\"\n :label=\"option.label\"\n :value=\"option.label\"\n />\n </v-list-item-action>\n <v-list-item-icon v-if=\"option.icon\">\n <v-icon v-text=\"option.icon\" :disabled=\"option.disabled\" />\n </v-list-item-icon>\n <v-list-item-title\n v-if=\"!option.radio && !option.checkbox\"\n :style=\"\n 'cursor: pointer;' + (option.disabled ? 'opacity: 0.2' : '')\n \"\n v-text=\"option.label\"\n />\n </v-list-item>\n </template>\n </v-radio-group>\n </v-list>\n </v-menu>\n <v-spacer />\n <v-toolbar-title v-text=\"title\" />\n <v-spacer />\n </div>\n </mounting-portal>\n</template>\n\n<script>\nexport default {\n props: {\n menus: {\n type: Array,\n default: function () {\n return []\n },\n },\n title: {\n type: String,\n default: '',\n },\n },\n methods: {\n // Convert the string to a standard data-test format\n formatDT: function(string) {\n return string.replaceAll(' ', '-').toLowerCase()\n },\n }\n}\n</script>\n\n<style scoped>\n.v-list >>> .v-label {\n margin-left: 5px;\n}\n.v-list-item__icon {\n /* For some reason the default margin-right is huge */\n margin-right: 15px !important;\n}\n.v-list-item__title {\n color: white;\n}\n</style>\n","import mod from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TopBar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TopBar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TopBar.vue?vue&type=template&id=e3bb7458&scoped=true&\"\nimport script from \"./TopBar.vue?vue&type=script&lang=js&\"\nexport * from \"./TopBar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TopBar.vue?vue&type=style&index=0&id=e3bb7458&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e3bb7458\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-sheet',{staticClass:\"mt-1\",attrs:{\"height\":\"800\"}},[_c('v-calendar',{ref:\"mainCalendar\",attrs:{\"color\":\"primary\",\"events\":_vm.events,\"event-color\":_vm.getEventColor,\"type\":_vm.type},on:{\"click:event\":_vm.showEvent,\"click:more\":_vm.viewDay,\"click:date\":_vm.viewDay},scopedSlots:_vm._u([{key:\"day-body\",fn:function(ref){\nvar date = ref.date;\nvar week = ref.week;\nreturn [_c('div',{staticClass:\"v-current-time\",class:{ first: date === week[0].date },style:({ top: _vm.nowY })})]}}]),model:{value:(_vm.focus),callback:function ($$v) {_vm.focus=$$v},expression:\"focus\"}}),_c('v-menu',{attrs:{\"close-on-content-click\":false,\"activator\":_vm.selectedElement},model:{value:(_vm.selectedOpen),callback:function ($$v) {_vm.selectedOpen=$$v},expression:\"selectedOpen\"}},[_c('event-dialog',{attrs:{\"event\":_vm.selectedEvent,\"utc\":_vm.utc},on:{\"close\":_vm.close},model:{value:(_vm.selectedOpen),callback:function ($$v) {_vm.selectedOpen=$$v},expression:\"selectedOpen\"}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-card',{attrs:{\"width\":\"400\"}},[(_vm.type === 'activity')?_c('div',[_c('activity-event-form',{attrs:{\"activity-event\":_vm.event,\"utc\":_vm.utc},on:{\"close\":_vm.close}})],1):_vm._e(),(_vm.type === 'narrative')?_c('div',[_c('narration-event-form',{attrs:{\"narrative-event\":_vm.event,\"utc\":_vm.utc},on:{\"close\":_vm.close}})],1):_vm._e(),(_vm.type === 'metadata')?_c('div',[_c('metadata-event-form',{attrs:{\"metadata-event\":_vm.event,\"utc\":_vm.utc},on:{\"close\":_vm.close}})],1):_vm._e()])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-card-title',[_c('span',{domProps:{\"textContent\":_vm._s(_vm.activityEvent.name)}}),_c('v-spacer'),_c('v-icon',[_vm._v(\" \"+_vm._s(_vm.activityBadgeIcon)+\" \")])],1),_c('v-card-subtitle',[_c('span',[_vm._v(\" \"+_vm._s(_vm._f(\"dateTime\")(_vm.activityEvent.start,_vm.utc))+\" \")]),_c('br'),_c('span',[_vm._v(\" \"+_vm._s(_vm._f(\"dateTime\")(_vm.activityEvent.end,_vm.utc))+\" \")])]),_c('div',{staticClass:\"ma-2\"},[_c('v-card-text',[_c('v-row',[_c('v-col',{staticClass:\"pa-0\"},[_c('v-simple-table',{attrs:{\"dense\":\"\"}},[_c('tbody',[_c('tr',[_c('th',{staticClass:\"text-left\",attrs:{\"width\":\"100\"}},[_vm._v(\"Fulfilled\")]),_c('td',{domProps:{\"textContent\":_vm._s(_vm.activityFulfillment)}})]),_c('tr',[_c('th',{staticClass:\"text-left\",domProps:{\"textContent\":_vm._s(_vm.activityKind)}}),_c('td',{domProps:{\"textContent\":_vm._s(_vm.activityData[_vm.activityKind])}})]),(_vm.showEnv)?_c('tr',[_c('th',{staticClass:\"text-left\"},[_vm._v(\"ENV\")]),_c('td',{domProps:{\"textContent\":_vm._s(_vm.activityEnvironment)}})]):_vm._e()])])],1)],1),_c('v-row',[_c('v-col',[_c('activity-event-timeline',{attrs:{\"activity-events\":_vm.activityEvents,\"utc\":_vm.utc}})],1)],1),_c('v-row',{staticClass:\"pt-1\"},[_c('v-col',{staticClass:\"text-right pa-0\"},[_c('span',{staticClass:\"text-caption\"},[_vm._v(\" Last update: \"+_vm._s(_vm._f(\"dateTime\")(_vm.updated_at,_vm.utc))+\" \")])])],1)],1),_c('v-card-actions',[(!_vm.activityEvent.fulfillment)?_c('div',[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{attrs:{\"icon\":\"\",\"data-test\":\"update-activity\"},on:{\"click\":_vm.updateDialog}},[_c('v-icon',[_vm._v(\" mdi-pencil \")])],1)],1)]}}],null,false,3672295435)},[_c('span',[_vm._v(\" Update \")])])],1):_vm._e(),_c('v-spacer'),_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{attrs:{\"icon\":\"\",\"data-test\":\"delete-activity\"},on:{\"click\":_vm.deleteDialog}},[_c('v-icon',[_vm._v(\" mdi-delete \")])],1)],1)]}}])},[_c('span',[_vm._v(\" Delete \")])])],1)],1),_c('activity-update-dialog',{attrs:{\"activity\":_vm.activityEvent.activity},on:{\"close\":_vm.close},model:{value:(_vm.showUpdateDialog),callback:function ($$v) {_vm.showUpdateDialog=$$v},expression:\"showUpdateDialog\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nexport default {\n filters: {\n time: function (val, utc) {\n if (utc) {\n return val.toUTCString().split(' ')[4]\n } else {\n return val.toLocaleString().split(' ')[1] // TODO: support other locales besides en-US\n }\n },\n dateTime: function (val, utc) {\n if (utc) {\n return val.toISOString()\n } else {\n return val.toLocaleString() // TODO: support other locales besides en-US\n }\n },\n },\n methods: {\n generateDateTime(date, utc) {\n if (utc) {\n return date.toISOString()\n } else {\n return date.toLocaleString() // TODO: support other locales besides en-US\n }\n },\n toIsoString(nSeconds) {\n // convert the date object to\n const date = new Date(nSeconds)\n const tzo = -date.getTimezoneOffset()\n const dif = tzo >= 0 ? '+' : '-'\n function pad(num) {\n var norm = Math.floor(Math.abs(num))\n return (norm < 10 ? '0' : '') + norm\n }\n const year = date.getFullYear()\n const month = pad(date.getMonth() + 1)\n const day = pad(date.getDate())\n const hour = pad(date.getHours())\n const minute = pad(date.getMinutes())\n const second = pad(date.getSeconds())\n const mil = pad(date.getMilliseconds())\n const timeZone =\n this.utcOrLocal === 'utc'\n ? '00:00'\n : `${pad(tzo / 60)}:${pad(tzo % 60)}`\n return `${year}-${month}-${day}T${hour}:${minute}:${second}.${mil}${dif}${timeZone}`\n },\n },\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-timeline',{attrs:{\"align-top\":\"\",\"dense\":\"\"}},_vm._l((_vm.events),function(event){return _c('div',{key:event.event + event.time},[_c('v-timeline-item',{attrs:{\"small\":\"\",\"color\":_vm.genColor(event),\"icon\":_vm.genIcon(event)}},[_c('v-row',{staticClass:\"pt-1\"},[_c('v-col',[_c('strong',{domProps:{\"textContent\":_vm._s(event.event)}}),_c('i',[_vm._v(\" \"+_vm._s(_vm._f(\"dateTime\")(event.time,_vm.utc))+\" \")]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(event.message),expression:\"event.message\"}],staticClass:\"text-caption\"},[_vm._v(\" \"+_vm._s(event.message)+\" \")])])],1)],1)],1)}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <v-timeline align-top dense>\n <div v-for=\"event in events\" :key=\"event.event + event.time\">\n <v-timeline-item small :color=\"genColor(event)\" :icon=\"genIcon(event)\">\n <v-row class=\"pt-1\">\n <v-col>\n <strong v-text=\"event.event\" />\n <i>\n {{ event.time | dateTime(utc) }}\n </i>\n <div v-show=\"event.message\" class=\"text-caption\">\n {{ event.message }}\n </div>\n </v-col>\n </v-row>\n </v-timeline-item>\n </div>\n </v-timeline>\n</template>\n\n<script>\nimport TimeFilters from '@/tools/Calendar/Filters/timeFilters.js'\n\nexport default {\n mixins: [TimeFilters],\n props: {\n activityEvents: {\n type: Array,\n required: true,\n },\n utc: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n showUpdateDialog: false,\n }\n },\n computed: {\n events: function () {\n return this.activityEvents.map((e) => {\n return { event: e.event, time: new Date(e.time * 1000) }\n })\n },\n states: function () {\n return {\n completed: {\n icon: 'mdi-check-circle',\n color: 'success',\n },\n failed: {\n icon: 'mdi-alert',\n color: 'error',\n },\n updated: {\n icon: 'mdi-alert-circle',\n color: 'purple',\n },\n queued: {\n icon: 'mdi-alert-circle',\n color: 'warning',\n },\n created: {\n icon: 'mdi-check-circle',\n color: 'success',\n },\n }\n },\n },\n methods: {\n genColor(event) {\n return this.states[event.event].color\n },\n genIcon(event) {\n return event.commit ? 'mdi-content-save' : this.states[event.event].icon\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ActivityEventTimeline.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ActivityEventTimeline.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ActivityEventTimeline.vue?vue&type=template&id=1118cb62&\"\nimport script from \"./ActivityEventTimeline.vue?vue&type=script&lang=js&\"\nexport * from \"./ActivityEventTimeline.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.updateActivity.apply(null, arguments)}}},[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\" Update activity: \"+_vm._s(_vm.activity.name)+\"/\"+_vm._s(_vm.activity.start)+\" \")]),_c('v-spacer'),_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"close-activity-icon\"},on:{\"click\":_vm.cancelActivity}},[_vm._v(\" mdi-close-box \")])],1)]}}])},[_c('span',[_vm._v(\" Close \")])])],1),_c('v-stepper',{attrs:{\"vertical\":\"\",\"non-linear\":\"\"},model:{value:(_vm.dialogStep),callback:function ($$v) {_vm.dialogStep=$$v},expression:\"dialogStep\"}},[_c('v-stepper-step',{attrs:{\"editable\":\"\",\"step\":\"1\"}},[_vm._v(\" Input start time, stop time \")]),_c('v-stepper-content',{attrs:{\"step\":\"1\"}},[_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"date\",\"label\":\"Start Date\",\"rules\":[_vm.rules.required],\"data-test\":\"activity-start-date\"},model:{value:(_vm.startDate),callback:function ($$v) {_vm.startDate=$$v},expression:\"startDate\"}}),_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"time\",\"step\":\"1\",\"label\":\"Start Time\",\"rules\":[_vm.rules.required],\"data-test\":\"activity-start-time\"},model:{value:(_vm.startTime),callback:function ($$v) {_vm.startTime=$$v},expression:\"startTime\"}})],1),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"date\",\"label\":\"End Date\",\"rules\":[_vm.rules.required],\"data-test\":\"activity-stop-date\"},model:{value:(_vm.stopDate),callback:function ($$v) {_vm.stopDate=$$v},expression:\"stopDate\"}}),_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"time\",\"step\":\"1\",\"label\":\"End Time\",\"rules\":[_vm.rules.required],\"data-test\":\"activity-stop-time\"},model:{value:(_vm.stopTime),callback:function ($$v) {_vm.stopTime=$$v},expression:\"stopTime\"}})],1),_c('v-row',{staticClass:\"mx-2 mb-2\"},[_c('v-radio-group',{staticClass:\"mt-0\",attrs:{\"row\":\"\",\"hide-details\":\"\"},model:{value:(_vm.utcOrLocal),callback:function ($$v) {_vm.utcOrLocal=$$v},expression:\"utcOrLocal\"}},[_c('v-radio',{attrs:{\"label\":\"LST\",\"value\":\"loc\",\"data-test\":\"lst-radio\"}}),_c('v-radio',{attrs:{\"label\":\"UTC\",\"value\":\"utc\",\"data-test\":\"utc-radio\"}})],1)],1),_c('v-row',[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.timeError),expression:\"timeError\"}],staticClass:\"ma-2 red--text\",domProps:{\"textContent\":_vm._s(_vm.timeError)}})]),_c('v-row',[_c('v-spacer'),_c('v-btn',{attrs:{\"data-test\":\"update-activity-step-two-btn\",\"color\":\"success\",\"disabled\":!!_vm.timeError},on:{\"click\":function($event){_vm.dialogStep = 2}}},[_vm._v(\" Continue \")])],1)],1)])],1),_c('v-stepper-step',{attrs:{\"editable\":\"\",\"step\":\"2\"}},[_vm._v(\" Activity type Input \")]),_c('v-stepper-content',{attrs:{\"step\":\"2\"}},[_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[_c('v-select',{attrs:{\"items\":_vm.types,\"label\":\"Activity Type\"},model:{value:(_vm.kind),callback:function ($$v) {_vm.kind=$$v},expression:\"kind\"}}),(_vm.kind === 'COMMAND')?_c('div',[_c('v-text-field',{attrs:{\"type\":\"text\",\"label\":\"Command Input\",\"placeholder\":\"INST COLLECT with TYPE 0, DURATION 1, OPCODE 171, TEMP 0\",\"prefix\":\"cmd('\",\"suffix\":\"')\",\"hint\":\"Timeline run commands with cmd_no_hazardous_check\",\"data-test\":\"activity-cmd\"},model:{value:(_vm.activityData),callback:function ($$v) {_vm.activityData=$$v},expression:\"activityData\"}})],1):(_vm.kind === 'SCRIPT')?_c('div',[_c('script-chooser',{staticClass:\"my-1\",on:{\"file\":_vm.fileHandler},model:{value:(_vm.activityData),callback:function ($$v) {_vm.activityData=$$v},expression:\"activityData\"}}),_c('environment-chooser',{staticClass:\"my-2\",on:{\"selected\":_vm.selectedHandler},model:{value:(_vm.activityEnvironment),callback:function ($$v) {_vm.activityEnvironment=$$v},expression:\"activityEnvironment\"}})],1):_c('div',[_c('span',{staticClass:\"ma-2\"},[_vm._v(\" No required input \")])]),_c('v-row',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.typeError),expression:\"typeError\"}]},[_c('span',{staticClass:\"ma-2 red--text\",domProps:{\"textContent\":_vm._s(_vm.typeError)}})]),_c('v-row',[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\",\"data-test\":\"update-activity-cancel-btn\"},on:{\"click\":_vm.cancelActivity}},[_vm._v(\" Cancel \")]),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"type\":\"submit\",\"data-test\":\"update-activity-submit-btn\",\"disabled\":!!_vm.timeError || !!_vm.typeError},on:{\"click\":function($event){$event.preventDefault();return _vm.updateActivity.apply(null, arguments)}}},[_vm._v(\" Update \")])],1)],1)])],1)],1)],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('span',[_vm._v(\" Select from Cosmos environment variables \")])]),_c('v-row',{staticClass:\"ma-0\"},[_c('v-select',{attrs:{\"persistent-hint\":\"\",\"return-object\":\"\",\"label\":\"Select Environment Options\",\"hint\":\"Inject Environment Variables\",\"items\":_vm.environmentItems},on:{\"change\":_vm.addEnvironmentItem},scopedSlots:_vm._u([{key:\"selection\",fn:function(){return [_c('div',[_c('span',[_vm._v(\" Select Environment Options \")])])]},proxy:true},{key:\"item\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',[_c('span',{domProps:{\"textContent\":_vm._s(((item.key) + \"=\" + (item.value)))}})])]}}]),model:{value:(_vm.deadSelect),callback:function ($$v) {_vm.deadSelect=$$v},expression:\"deadSelect\"}})],1),_c('div',{staticClass:\"mt-2\"}),_c('v-simple-table',{attrs:{\"dense\":\"\"}},[_c('tbody',[_c('tr',[_c('th',{staticClass:\"text-left\"},[_vm._v(\"Key\")]),_c('th',{staticClass:\"text-left\"},[_vm._v(\"Value\")]),_c('th',{staticClass:\"text-right\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"new-metadata-icon\"},on:{\"click\":_vm.newEnvironment}},[_vm._v(\" mdi-plus \")])],1)]}}])},[_c('span',[_vm._v(\" Add Environment \")])])],1)]),_vm._l((_vm.selected),function(env,i){return [_c('tr',{key:(\"tr-\" + i)},[_c('td',[_c('v-text-field',{attrs:{\"dense\":\"\",\"type\":\"text\",\"readonly\":env.readonly,\"data-test\":(\"key-\" + i)},model:{value:(env.key),callback:function ($$v) {_vm.$set(env, \"key\", $$v)},expression:\"env.key\"}})],1),_c('td',[_c('v-text-field',{attrs:{\"dense\":\"\",\"type\":\"text\",\"readonly\":env.readonly,\"data-test\":(\"value-\" + i)},model:{value:(env.value),callback:function ($$v) {_vm.$set(env, \"value\", $$v)},expression:\"env.value\"}})],1),_c('td',[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":(\"remove-env-icon-\" + i)},on:{\"click\":function($event){return _vm.rm(i)}}},[_vm._v(\" mdi-delete \")])],1)]}}],null,true)},[_c('span',[_vm._v(\" Delete Environment \")])])],1)])]})],2)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-row no-gutters>\n <span> Select from Cosmos environment variables </span>\n </v-row>\n <v-row class=\"ma-0\">\n <v-select\n v-model=\"deadSelect\"\n @change=\"addEnvironmentItem\"\n persistent-hint\n return-object\n label=\"Select Environment Options\"\n hint=\"Inject Environment Variables\"\n :items=\"environmentItems\"\n >\n <template v-slot:selection=\"\">\n <div>\n <span> Select Environment Options </span>\n </div>\n </template>\n <template v-slot:item=\"{ item }\">\n <div>\n <span v-text=\"`${item.key}=${item.value}`\" />\n </div>\n </template>\n </v-select>\n </v-row>\n <div class=\"mt-2\" />\n <v-simple-table dense>\n <tbody>\n <tr>\n <th class=\"text-left\">Key</th>\n <th class=\"text-left\">Value</th>\n <th class=\"text-right\">\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon data-test=\"new-metadata-icon\" @click=\"newEnvironment\">\n mdi-plus\n </v-icon>\n </div>\n </template>\n <span> Add Environment </span>\n </v-tooltip>\n </th>\n </tr>\n <template v-for=\"(env, i) in selected\">\n <tr :key=\"`tr-${i}`\">\n <td>\n <v-text-field\n v-model=\"env.key\"\n dense\n type=\"text\"\n :readonly=\"env.readonly\"\n :data-test=\"`key-${i}`\"\n />\n </td>\n <td>\n <v-text-field\n v-model=\"env.value\"\n dense\n type=\"text\"\n :readonly=\"env.readonly\"\n :data-test=\"`value-${i}`\"\n />\n </td>\n <td>\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon :data-test=\"`remove-env-icon-${i}`\" @click=\"rm(i)\">\n mdi-delete\n </v-icon>\n </div>\n </template>\n <span> Delete Environment </span>\n </v-tooltip>\n </td>\n </tr>\n </template>\n </tbody>\n </v-simple-table>\n </div>\n</template>\n\n<script>\nimport Api from '../services/api'\n\nexport default {\n props: {\n value: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n deadSelect: null,\n environmentOptions: [],\n }\n },\n mounted() {\n this.getEnvironment()\n },\n computed: {\n selected: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n environmentItems: function () {\n return this.environmentOptions.filter(\n (env) => !this.selected.find((s) => s.key === env.key)\n )\n },\n },\n methods: {\n getEnvironment: function () {\n Api.get('/cosmos-api/environment').then((response) => {\n this.environmentOptions = response.data\n })\n },\n addEnvironmentItem: function (event) {\n this.selected.push({\n key: event.key,\n value: event.value,\n readonly: true,\n })\n const envIndex = this.environmentOptions.findIndex(\n (env) => env.key === event.key && env.value === event.value\n )\n this.environmentOptions.splice(envIndex, envIndex >= 0 ? 1 : 0)\n this.deadSelect = null\n },\n newEnvironment: function () {\n this.selected.push({\n key: '',\n value: '',\n readonly: false,\n })\n },\n rm: function (index) {\n const env = this.selected.splice(index, 1)[0]\n if (env && env.readonly) {\n this.environmentOptions.push(env)\n }\n },\n },\n}\n</script>\n","import mod from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EnvironmentChooser.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EnvironmentChooser.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EnvironmentChooser.vue?vue&type=template&id=48ad9972&\"\nimport script from \"./EnvironmentChooser.vue?vue&type=script&lang=js&\"\nexport * from \"./EnvironmentChooser.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('span',[_vm._v(\" Select Cosmos script \")])]),_c('v-row',{staticClass:\"my-2\"},[_c('v-autocomplete',{staticClass:\"mx-4\",attrs:{\"cache-items\":\"\",\"flat\":\"\",\"hide-no-data\":\"\",\"hide-details\":\"\",\"solo-inverted\":\"\",\"label\":\"Select a script\",\"loading\":_vm.loading,\"items\":_vm.items,\"search-input\":_vm.search},on:{\"update:searchInput\":function($event){_vm.search=$event},\"update:search-input\":function($event){_vm.search=$event}},model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-row no-gutters>\n <span> Select Cosmos script </span>\n </v-row>\n <v-row class=\"my-2\">\n <v-autocomplete\n v-model=\"selected\"\n cache-items\n flat\n hide-no-data\n hide-details\n solo-inverted\n class=\"mx-4\"\n label=\"Select a script\"\n :loading=\"loading\"\n :items=\"items\"\n :search-input.sync=\"search\"\n />\n </v-row>\n </div>\n</template>\n\n<script>\nimport Api from '../services/api'\n\nexport default {\n props: {\n value: String, // value is the default prop when using v-model\n },\n data() {\n return {\n loading: false,\n search: '',\n selected: this.value,\n scripts: [],\n items: [],\n }\n },\n created() {\n this.loading = true\n Api.get('/script-api/scripts')\n .then((response) => {\n this.scripts = response.data\n this.items = response.data\n })\n .catch((error) => {\n this.$emit('error', {\n type: 'error',\n text: `Failed to connect to Cosmos. ${error}`,\n error: error,\n })\n })\n this.selected = this.value ? this.value : null\n this.loading = false\n },\n watch: {\n selected(newVal, oldVal) {\n if (newVal !== oldVal) {\n this.$emit('file', newVal)\n }\n },\n search(val) {\n val && val !== this.selected && this.querySelections(val)\n },\n },\n methods: {\n querySelections: function (v) {\n this.loading = true\n // Simulated ajax query\n setTimeout(() => {\n this.items = this.scripts.filter((e) => {\n return (e || '').toLowerCase().indexOf((v || '').toLowerCase()) > -1\n })\n this.loading = false\n }, 500)\n },\n },\n}\n</script>\n","import mod from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ScriptChooser.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ScriptChooser.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ScriptChooser.vue?vue&type=template&id=637ddf18&\"\nimport script from \"./ScriptChooser.vue?vue&type=script&lang=js&\"\nexport * from \"./ScriptChooser.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addstopums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <v-dialog v-model=\"show\" width=\"600\">\n <v-card>\n <form v-on:submit.prevent=\"updateActivity\">\n <v-system-bar>\n <v-spacer />\n <span>\n Update activity: {{ activity.name }}/{{ activity.start }}\n </span>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon data-test=\"close-activity-icon\" @click=\"cancelActivity\">\n mdi-close-box\n </v-icon>\n </div>\n </template>\n <span> Close </span>\n </v-tooltip>\n </v-system-bar>\n <v-stepper v-model=\"dialogStep\" vertical non-linear>\n <v-stepper-step editable step=\"1\">\n Input start time, stop time\n </v-stepper-step>\n <v-stepper-content step=\"1\">\n <v-card-text>\n <div class=\"pa-3\">\n <v-row dense>\n <v-text-field\n v-model=\"startDate\"\n type=\"date\"\n label=\"Start Date\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"activity-start-date\"\n />\n <v-text-field\n v-model=\"startTime\"\n type=\"time\"\n step=\"1\"\n label=\"Start Time\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"activity-start-time\"\n />\n </v-row>\n <v-row dense>\n <v-text-field\n v-model=\"stopDate\"\n type=\"date\"\n label=\"End Date\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"activity-stop-date\"\n />\n <v-text-field\n v-model=\"stopTime\"\n type=\"time\"\n step=\"1\"\n label=\"End Time\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"activity-stop-time\"\n />\n </v-row>\n <v-row class=\"mx-2 mb-2\">\n <v-radio-group\n v-model=\"utcOrLocal\"\n row\n hide-details\n class=\"mt-0\"\n >\n <v-radio label=\"LST\" value=\"loc\" data-test=\"lst-radio\" />\n <v-radio label=\"UTC\" value=\"utc\" data-test=\"utc-radio\" />\n </v-radio-group>\n </v-row>\n <v-row>\n <span\n class=\"ma-2 red--text\"\n v-show=\"timeError\"\n v-text=\"timeError\"\n />\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn\n @click=\"dialogStep = 2\"\n data-test=\"update-activity-step-two-btn\"\n color=\"success\"\n :disabled=\"!!timeError\"\n >\n Continue\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-stepper-content>\n\n <v-stepper-step editable step=\"2\">\n Activity type Input\n </v-stepper-step>\n <v-stepper-content step=\"2\">\n <v-card-text>\n <div class=\"pa-3\">\n <v-select v-model=\"kind\" :items=\"types\" label=\"Activity Type\" />\n <div v-if=\"kind === 'COMMAND'\">\n <v-text-field\n v-model=\"activityData\"\n type=\"text\"\n label=\"Command Input\"\n placeholder=\"INST COLLECT with TYPE 0, DURATION 1, OPCODE 171, TEMP 0\"\n prefix=\"cmd('\"\n suffix=\"')\"\n hint=\"Timeline run commands with cmd_no_hazardous_check\"\n data-test=\"activity-cmd\"\n />\n </div>\n <div v-else-if=\"kind === 'SCRIPT'\">\n <script-chooser\n class=\"my-1\"\n v-model=\"activityData\"\n @file=\"fileHandler\"\n />\n <environment-chooser\n class=\"my-2\"\n v-model=\"activityEnvironment\"\n @selected=\"selectedHandler\"\n />\n </div>\n <div v-else>\n <span class=\"ma-2\"> No required input </span>\n </div>\n <v-row v-show=\"typeError\">\n <span class=\"ma-2 red--text\" v-text=\"typeError\" />\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn\n @click=\"cancelActivity\"\n outlined\n class=\"mx-2\"\n data-test=\"update-activity-cancel-btn\"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent=\"updateActivity\"\n class=\"mx-2\"\n color=\"primary\"\n type=\"submit\"\n data-test=\"update-activity-submit-btn\"\n :disabled=\"!!timeError || !!typeError\"\n >\n Update\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-stepper-content>\n </v-stepper>\n </form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { isValid, parse, format, getTime } from 'date-fns'\nimport Api from '@cosmosc2/tool-common/src/services/api'\nimport EnvironmentChooser from '@cosmosc2/tool-common/src/components/EnvironmentChooser'\nimport ScriptChooser from '@cosmosc2/tool-common/src/components/ScriptChooser'\nimport TimeFilters from '@/tools/Calendar/Filters/timeFilters.js'\n\nexport default {\n components: {\n EnvironmentChooser,\n ScriptChooser,\n },\n props: {\n activity: {\n type: Object,\n required: true,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n mixins: [TimeFilters],\n data() {\n return {\n dialogStep: 1,\n startDate: '',\n startTime: '',\n stopDate: '',\n stopTime: '',\n utcOrLocal: 'loc',\n kind: '',\n types: ['COMMAND', 'SCRIPT', 'RESERVE'],\n activityData: '',\n activityEnvironment: [],\n rules: {\n required: (value) => !!value || 'Required',\n },\n }\n },\n watch: {\n show: function () {\n this.updateValues()\n },\n },\n computed: {\n timeError: function () {\n const now = new Date()\n const start = Date.parse(`${this.startDate}T${this.startTime}`)\n const stop = Date.parse(`${this.stopDate}T${this.stopTime}`)\n if (start === stop) {\n return 'Invalid start, stop time. Activity must have different start and stop times.'\n }\n if (now > start) {\n return 'Invalid start time. Activity must be in the future.'\n }\n if (start > stop) {\n return 'Invalid start time. Activity start before stop.'\n }\n return null\n },\n typeError: function () {\n if (this.kind !== 'RESERVE' && !this.activityData) {\n return 'No data is selected or inputted'\n }\n return null\n },\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n changeKind: function (inputKind) {\n if (inputKind === this.kind) {\n return\n }\n this.kind = inputKind\n this.activityData = ''\n },\n updateValues: function () {\n const sDate = new Date(this.activity.start * 1000)\n const eDate = new Date(this.activity.stop * 1000)\n this.startDate = format(sDate, 'yyyy-MM-dd')\n this.startTime = format(sDate, 'HH:mm:ss')\n this.stopDate = format(eDate, 'yyyy-MM-dd')\n this.stopTime = format(eDate, 'HH:mm:ss')\n this.kind = this.activity.kind.toUpperCase()\n this.activityData = this.activity.data[this.activity.kind]\n this.activityEnvironment = this.activity.data.environment\n },\n fileHandler: function (event) {\n this.activityData = event ? event : null\n },\n selectedHandler: function (event) {\n this.activityEnvironment = event ? event : null\n },\n cancelActivity: function () {\n this.show = !this.show\n },\n updateActivity: function () {\n // Call the api to update the activity\n const start = this.toIsoString(\n Date.parse(`${this.startDate}T${this.startTime}`)\n )\n const stop = this.toIsoString(\n Date.parse(`${this.stopDate}T${this.stopTime}`)\n )\n const kind = this.kind.toLowerCase()\n let data = { environment: this.activityEnvironment }\n data[kind] = this.activityData\n const tName = this.activity.name\n const aStart = this.activity.start\n Api.put(`/cosmos-api/timeline/${tName}/activity/${aStart}`, {\n data: { start, stop, kind, data },\n }).then((response) => {\n const activityTime = this.generateDateTime(\n new Date(response.data.start * 1000)\n )\n this.$notify.normal({\n title: 'Updated Activity',\n body: `${activityTime} (${response.data.start}) on timeline: ${response.data.name}`,\n })\n })\n this.$emit('close')\n this.show = !this.show\n },\n },\n}\n</script>\n\n<style scoped>\n.v-stepper--vertical .v-stepper__content {\n width: auto;\n margin: 0px 0px 0px 36px;\n padding: 0px;\n}\n</style>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ActivityUpdateDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ActivityUpdateDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ActivityUpdateDialog.vue?vue&type=template&id=6c8065d7&scoped=true&\"\nimport script from \"./ActivityUpdateDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./ActivityUpdateDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ActivityUpdateDialog.vue?vue&type=style&index=0&id=6c8065d7&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6c8065d7\",\n null\n \n)\n\nexport default component.exports","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-card-title>\n <span v-text=\"activityEvent.name\" />\n <v-spacer />\n <v-icon>\n {{ activityBadgeIcon }}\n </v-icon>\n </v-card-title>\n <v-card-subtitle>\n <span>\n {{ activityEvent.start | dateTime(utc) }}\n </span>\n <br />\n <span>\n {{ activityEvent.end | dateTime(utc) }}\n </span>\n </v-card-subtitle>\n <div class=\"ma-2\">\n <v-card-text>\n <v-row>\n <v-col class=\"pa-0\">\n <v-simple-table dense>\n <tbody>\n <tr>\n <th class=\"text-left\" width=\"100\">Fulfilled</th>\n <td v-text=\"activityFulfillment\" />\n </tr>\n <tr>\n <th class=\"text-left\" v-text=\"activityKind\" />\n <td v-text=\"activityData[activityKind]\" />\n </tr>\n <tr v-if=\"showEnv\">\n <th class=\"text-left\">ENV</th>\n <td v-text=\"activityEnvironment\" />\n </tr>\n </tbody>\n </v-simple-table>\n </v-col>\n </v-row>\n <v-row>\n <v-col>\n <activity-event-timeline\n :activity-events=\"activityEvents\"\n :utc=\"utc\"\n />\n </v-col>\n </v-row>\n <v-row class=\"pt-1\">\n <v-col class=\"text-right pa-0\">\n <span class=\"text-caption\">\n Last update: {{ updated_at | dateTime(utc) }}\n </span>\n </v-col>\n </v-row>\n </v-card-text>\n <v-card-actions>\n <div v-if=\"!activityEvent.fulfillment\">\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-btn icon data-test=\"update-activity\" @click=\"updateDialog\">\n <v-icon> mdi-pencil </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Update </span>\n </v-tooltip>\n </div>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-btn icon data-test=\"delete-activity\" @click=\"deleteDialog\">\n <v-icon> mdi-delete </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Delete </span>\n </v-tooltip>\n </v-card-actions>\n </div>\n <!--- Menus --->\n <activity-update-dialog\n v-model=\"showUpdateDialog\"\n :activity=\"activityEvent.activity\"\n @close=\"close\"\n />\n </div>\n</template>\n\n<script>\nimport Api from '@cosmosc2/tool-common/src/services/api'\nimport TimeFilters from '@/tools/Calendar/Filters/timeFilters.js'\nimport ActivityEventTimeline from '@/tools/Calendar/Forms/ActivityEventTimeline'\nimport ActivityUpdateDialog from '@/tools/Calendar/Dialogs/ActivityUpdateDialog'\n\nexport default {\n components: {\n ActivityEventTimeline,\n ActivityUpdateDialog,\n },\n mixins: [TimeFilters],\n props: {\n activityEvent: {\n type: Object,\n required: true,\n },\n utc: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n showUpdateDialog: false,\n }\n },\n computed: {\n activityBadgeColor: function () {\n return this.activityEvent.activity.fulfillment ? '#4caf50' : '#ff5252'\n },\n activityBadgeIcon: function () {\n return this.activityEvent.activity.fulfillment\n ? 'mdi-check-circle'\n : 'mdi-close-circle'\n },\n activityFulfillment: function () {\n return this.activityEvent.activity.fulfillment\n },\n activityData: function () {\n return this.activityEvent.activity.data\n },\n activityKind: function () {\n return this.activityEvent.activity.kind\n },\n activityEnvironment: function () {\n return this.activityEvent.activity.data.environment\n },\n activityEvents: function () {\n return this.activityEvent.activity.events\n },\n showEnv: function () {\n return (\n this.activityEvent.activity.data.environment &&\n this.activityEvent.activity.data.environment.length > 0\n )\n },\n updated_at: function () {\n const v = parseInt(this.activityEvent.activity.updated_at / 1000000)\n return new Date(v)\n },\n },\n methods: {\n close: function () {\n this.$emit('close')\n },\n updateDialog: function () {\n this.showUpdateDialog = !this.showUpdateDialog\n },\n deleteDialog: function () {\n const activityTime = this.generateDateTime(this.activityEvent.start)\n const activityStart = this.activityEvent.activity.start\n const timelineName = this.activityEvent.activity.name\n this.$dialog\n .confirm(\n `Are you sure you want to remove activity: ${activityTime} (${activityStart}) from timeline: ${timelineName}`,\n {\n okText: 'Delete',\n cancelText: 'Cancel',\n }\n )\n .then((dialog) => {\n return Api.delete(\n `/cosmos-api/timeline/${timelineName}/activity/${activityStart}`\n )\n })\n .then((response) => {\n this.$notify.normal({\n title: 'Deleted Activity from Timeline',\n body: `Deleted activity: ${activityTime} (${activityStart}) from timeline: ${timelineName}`,\n })\n this.$emit('close')\n })\n .catch((error) => {\n if (error) {\n this.$notify.error({\n title: 'Failed to Deleted Activity from Timeline',\n body: `Failed to delete activity ${activityStart} from timeline: ${timelineName}. Error: ${error}`,\n })\n }\n })\n },\n },\n}\n</script>\n\n<style scoped>\n.theme--dark .v-card__title,\n.theme--dark .v-card__subtitle {\n background-color: var(--v-secondary-darken3);\n}\n</style>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ActivityEventForm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ActivityEventForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ActivityEventForm.vue?vue&type=template&id=e57e7e4c&scoped=true&\"\nimport script from \"./ActivityEventForm.vue?vue&type=script&lang=js&\"\nexport * from \"./ActivityEventForm.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ActivityEventForm.vue?vue&type=style&index=0&id=e57e7e4c&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e57e7e4c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-card-title',{domProps:{\"textContent\":_vm._s(_vm.title)}}),_c('v-card-subtitle',[_c('span',[_vm._v(\" \"+_vm._s(_vm._f(\"dateTime\")(_vm.metadataEvent.start,_vm.utc))+\" \")])]),_c('div',{staticClass:\"ma-2\"},[_c('v-card-text',[_c('v-row',[_c('v-col',{staticClass:\"pa-0\"},[_c('v-simple-table',{attrs:{\"dense\":\"\"}},[_c('tbody',[_c('tr',[_c('th',{staticClass:\"text-left\"},[_vm._v(\"Key\")]),_c('th',{staticClass:\"text-left\"},[_vm._v(\"Value\")])]),_vm._l((_vm.metadataValues),function(value,i){return [_c('tr',{key:(\"tr-\" + i)},[_c('td',{staticClass:\"text-left\"},[_c('span',{domProps:{\"textContent\":_vm._s(value.key)}})]),_c('td',{staticClass:\"text-left\"},[_c('span',{domProps:{\"textContent\":_vm._s(value.value)}})])])]})],2)])],1)],1),_c('v-row',{staticClass:\"pt-1\"},[_c('v-col',{staticClass:\"text-right pa-0\"},[_c('span',{staticClass:\"text-caption\"},[_vm._v(\" Last update: \"+_vm._s(_vm._f(\"dateTime\")(_vm.updated_at,_vm.utc))+\" \")])])],1)],1),_c('v-card-actions',{staticClass:\"pa-1\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{attrs:{\"icon\":\"\",\"data-test\":\"update-metadata\"},on:{\"click\":_vm.updateDialog}},[_c('v-icon',[_vm._v(\"mdi-pencil\")])],1)],1)]}}])},[_c('span',[_vm._v(\" Update \")])]),_c('v-spacer'),_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{attrs:{\"icon\":\"\",\"data-test\":\"delete-metadata\"},on:{\"click\":_vm.deleteDialog}},[_c('v-icon',[_vm._v(\" mdi-delete \")])],1)],1)]}}])},[_c('span',[_vm._v(\" Delete \")])])],1)],1),_c('metadata-update-dialog',{attrs:{\"metadata-obj\":_vm.metadataEvent.metadata},on:{\"close\":_vm.close},model:{value:(_vm.showUpdateDialog),callback:function ($$v) {_vm.showUpdateDialog=$$v},expression:\"showUpdateDialog\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-dialog',{attrs:{\"persistent\":\"\",\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.updateMetadata.apply(null, arguments)}}},[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\"Update Chronicle Metadata\")]),_c('v-spacer'),_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"close-metadata-icon\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" mdi-close-box \")])],1)]}}])},[_c('span',[_vm._v(\" Close \")])])],1),_c('v-stepper',{attrs:{\"vertical\":\"\",\"non-linear\":\"\"},model:{value:(_vm.dialogStep),callback:function ($$v) {_vm.dialogStep=$$v},expression:\"dialogStep\"}},[_c('v-stepper-step',{attrs:{\"editable\":\"\",\"step\":\"1\"}},[_vm._v(\" Input start time \")]),_c('v-stepper-content',{attrs:{\"step\":\"1\"}},[_c('v-card-text',[_c('div',{staticClass:\"pa-2\"},[_c('v-select',{attrs:{\"items\":_vm.targets,\"label\":\"Target\"},model:{value:(_vm.target),callback:function ($$v) {_vm.target=$$v},expression:\"target\"}}),_c('color-select-form',{model:{value:(_vm.color),callback:function ($$v) {_vm.color=$$v},expression:\"color\"}}),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"date\",\"label\":\"Start Date\",\"rules\":[_vm.rules.required],\"data-test\":\"start-date\"},model:{value:(_vm.startDate),callback:function ($$v) {_vm.startDate=$$v},expression:\"startDate\"}}),_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"time\",\"step\":\"1\",\"label\":\"Start Time\",\"rules\":[_vm.rules.required],\"data-test\":\"start-time\"},model:{value:(_vm.startTime),callback:function ($$v) {_vm.startTime=$$v},expression:\"startTime\"}})],1),_c('v-row',{staticClass:\"mx-2 mb-2\"},[_c('v-radio-group',{staticClass:\"mt-0\",attrs:{\"row\":\"\",\"hide-details\":\"\"},model:{value:(_vm.utcOrLocal),callback:function ($$v) {_vm.utcOrLocal=$$v},expression:\"utcOrLocal\"}},[_c('v-radio',{attrs:{\"label\":\"LST\",\"value\":\"loc\",\"data-test\":\"lst-radio\"}}),_c('v-radio',{attrs:{\"label\":\"UTC\",\"value\":\"utc\",\"data-test\":\"utc-radio\"}})],1)],1),_c('v-row',[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.timeError),expression:\"timeError\"}],staticClass:\"ma-2 red--text\",domProps:{\"textContent\":_vm._s(_vm.timeError)}})]),_c('v-row',{staticClass:\"mt-2\"},[_c('v-spacer'),_c('v-btn',{attrs:{\"data-test\":\"create-metadata-step-two-btn\",\"color\":\"success\",\"disabled\":!!_vm.timeError},on:{\"click\":function($event){_vm.dialogStep = 2}}},[_vm._v(\" Continue \")])],1)],1)])],1),_c('v-stepper-step',{attrs:{\"editable\":\"\",\"step\":\"2\"}},[_vm._v(\" Metadata input \")]),_c('v-stepper-content',{attrs:{\"step\":\"2\"}},[_c('v-card-text',[_c('div',{staticClass:\"pa-2\"},[_c('div',{staticStyle:{\"min-height\":\"200px\"}},[_c('metadata-input-form',{model:{value:(_vm.metadata),callback:function ($$v) {_vm.metadata=$$v},expression:\"metadata\"}})],1),_c('v-row',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.typeError),expression:\"typeError\"}]},[_c('span',{staticClass:\"ma-2 red--text\",domProps:{\"textContent\":_vm._s(_vm.typeError)}})]),_c('v-row',{staticClass:\"mt-2\"},[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\",\"data-test\":\"update-metadata-cancel-btn\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" Cancel \")]),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"type\":\"submit\",\"data-test\":\"update-metadata-submit-btn\",\"disabled\":!!_vm.timeError || !!_vm.typeError},on:{\"click\":function($event){$event.preventDefault();return _vm.updateMetadata.apply(null, arguments)}}},[_vm._v(\" Ok \")])],1)],1)])],1)],1)],1)])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nimport axios from './axios.js'\n\nexport class CosmosApi {\n id = 1\n\n constructor() {}\n\n // This is hacky Json-rpc for now. Should probably use a jsonrpc library.\n async exec(method, params, kwparams = {}) {\n try {\n await CosmosAuth.updateToken(CosmosAuth.defaultMinValidity)\n } catch (error) {\n CosmosAuth.login()\n }\n this.id = this.id + 1\n try {\n kwparams['scope'] = localStorage.scope\n const response = await axios.post(\n '/cosmos-api/api',\n {\n jsonrpc: '2.0',\n method: method,\n params: params,\n id: this.id,\n keyword_params: kwparams,\n },\n {\n headers: {\n Authorization: localStorage.cosmosToken,\n 'Content-Type': 'application/json-rpc',\n },\n }\n )\n // var data = response.data\n // if (data.error) {\n // var err = new Error()\n // err.name = data.error.data.class\n // err.message = data.error.data.message\n // console.log(data.error.data.backtrace.join('\\n'))\n // throw err\n // }\n return response.data.result\n } catch (error) {\n var err = new Error()\n if (error.response) {\n // The request was made and the server responded with a\n // status code that falls out of the range of 2xx\n err.name = error.response.data.error.data.class\n err.message = error.response.data.error.data.message\n } else if (error.request) {\n // The request was made but no response was received, `error.request`\n // is an instance of XMLHttpRequest in the browser and an instance\n // of http.ClientRequest in Node.js\n err.name = 'Request error'\n err.message = 'Request error, no response received'\n } else {\n // Something happened in setting up the request and triggered an Error\n err.name = 'Unknown error'\n }\n //console.log(error)\n throw err\n }\n }\n\n decode_cosmos_type(val) {\n if (val !== null && typeof val === 'object') {\n if (val.json_class == 'Float' && val.raw) {\n if (val.raw == 'NaN') {\n return NaN\n } else if (val.raw == 'Infinity') {\n return Infinity\n } else if (val.raw == '-Infinity') {\n return -Infinity\n }\n }\n }\n return null\n }\n\n encode_cosmos_type(val) {\n if (Number.isNaN(val)) {\n return { json_class: 'Float', raw: 'NaN' }\n } else if (val == Number.POSITIVE_INFINITY) {\n return { json_class: 'Float', raw: 'Infinity' }\n } else if (val == Number.NEGATIVE_INFINITY) {\n return { json_class: 'Float', raw: '-Infinity' }\n }\n return null\n }\n\n // ***********************************************\n // The following APIs are used by the CmdTlmServer\n // ***********************************************\n get_all_interface_info() {\n return this.exec('get_all_interface_info', [])\n }\n\n connect_interface(interface_name) {\n return this.exec('connect_interface', [interface_name])\n }\n\n disconnect_interface(interface_name) {\n return this.exec('disconnect_interface', [interface_name])\n }\n\n get_all_router_info() {\n return this.exec('get_all_router_info', [])\n }\n\n connect_router(router_name) {\n return this.exec('connect_router', [router_name])\n }\n\n disconnect_router(router_name) {\n return this.exec('disconnect_router', [router_name])\n }\n\n get_all_target_info() {\n return this.exec('get_all_target_info', [])\n }\n\n get_all_cmd_info() {\n return this.exec('get_all_cmd_info', [])\n }\n\n get_all_tlm_info() {\n return this.exec('get_all_tlm_info', [])\n }\n\n get_item(target, packet, item) {\n return this.exec('get_item', [target, packet, item])\n }\n\n get_parameter(target, packet, item) {\n return this.exec('get_parameter', [target, packet, item])\n }\n\n get_all_packet_logger_info() {\n return this.exec('get_all_packet_logger_info', [])\n }\n\n start_logging() {\n return this.exec('start_logging', [])\n }\n\n stop_logging() {\n return this.exec('stop_logging', [])\n }\n\n start_cmd_log(log_writer_name) {\n return this.exec('start_cmd_log', [log_writer_name])\n }\n\n start_tlm_log(log_writer_name) {\n return this.exec('start_tlm_log', [log_writer_name])\n }\n\n stop_cmd_log(log_writer_name) {\n return this.exec('stop_cmd_log', [log_writer_name])\n }\n\n stop_tlm_log(log_writer_name) {\n return this.exec('stop_tlm_log', [log_writer_name])\n }\n\n get_server_status() {\n return this.exec('get_server_status', [])\n }\n\n get_limits_sets() {\n return this.exec('get_limits_sets', [])\n }\n\n get_limits_set() {\n return this.exec('get_limits_set', [])\n }\n\n set_limits_set(limits_set) {\n return this.exec('set_limits_set', [limits_set])\n }\n\n get_background_tasks() {\n return this.exec('get_background_tasks', [])\n }\n\n start_background_task(name) {\n return this.exec('start_background_task', [name])\n }\n\n stop_background_task(name) {\n return this.exec('stop_background_task', [name])\n }\n\n // ***********************************************\n // End CmdTlmServer APIs\n // ***********************************************\n\n get_oldest_logfile() {\n return this.exec('get_oldest_logfile', [])\n }\n\n get_target(target_name) {\n return this.exec('get_target', [target_name])\n }\n\n get_target_list() {\n return this.exec('get_target_list', [])\n }\n\n get_telemetry(target_name, packet_name) {\n return this.exec('get_telemetry', [target_name, packet_name])\n }\n\n get_all_telemetry(target_name) {\n return this.exec('get_all_telemetry', [target_name])\n }\n\n // Called by PacketViewerComponent\n async get_tlm_packet(target_name, packet_name, value_type) {\n const data = await this.exec('get_tlm_packet', [target_name, packet_name], {\n type: value_type,\n })\n // Make sure data isn't null or undefined. Note this is the only valid use of == or !=\n if (data != null) {\n var len = data.length\n var converted = null\n for (var i = 0; i < len; i++) {\n converted = this.decode_cosmos_type(data[i][1])\n if (converted !== null) {\n data[i][1] = converted\n }\n }\n }\n return data\n }\n\n // Called by PacketViewerComponent\n get_packet_derived_items(target_name, packet_name) {\n return this.exec('get_packet_derived_items', [target_name, packet_name])\n }\n\n // Called by CmdTlmServer Tlm Packets tab\n get_tlm_buffer(target_name, packet_name) {\n return this.exec('get_tlm_buffer', [target_name, packet_name])\n }\n\n // Called by CosmosScreenComponent\n async get_tlm_values(items) {\n const data = await this.exec('get_tlm_values', [items])\n var len = data[0].length\n var converted = null\n for (var i = 0; i < len; i++) {\n converted = this.decode_cosmos_type(data[0][i])\n if (converted !== null) {\n data[0][i] = converted\n }\n }\n return data\n }\n\n // Called by LimitsbarWidget\n get_limits(target_name, packet_name, item_name) {\n return this.exec('get_limits', [target_name, packet_name, item_name])\n }\n\n // Called by LimitsMonitorComponent\n async tlm(target_name, packet_name, item_name) {\n const data = await this.exec('tlm', [target_name, packet_name, item_name])\n var converted = this.decode_cosmos_type(data)\n if (converted !== null) {\n data = converted\n }\n return data\n }\n\n get_all_commands(target_name) {\n return this.exec('get_all_commands', [target_name])\n }\n\n get_command(target_name, command_name) {\n return this.exec('get_command', [target_name, command_name])\n }\n\n get_cmd_value(\n target_name,\n packet_name,\n parameter_name,\n value_type = 'CONVERTED'\n ) {\n return this.exec('get_cmd_value', [\n target_name,\n packet_name,\n parameter_name,\n value_type,\n ])\n }\n\n // Called by CmdTlmServer Cmd Packets tab\n get_cmd_buffer(target_name, packet_name) {\n return this.exec('get_cmd_buffer', [target_name, packet_name])\n }\n\n // Implementation of functionality shared by cmd methods with param_lists.\n _cmd(method, target_name, command_name, param_list) {\n var converted = null\n for (var key in param_list) {\n if (Object.prototype.hasOwnProperty.call(param_list, key)) {\n converted = this.encode_cosmos_type(param_list[key])\n if (converted !== null) {\n param_list[key] = converted\n }\n }\n }\n return this.exec(method, [target_name, command_name, param_list])\n }\n\n // Called by CmdSenderComponent\n get_cmd_hazardous(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('get_cmd_hazardous', target_name)\n } else {\n return this._cmd(\n 'get_cmd_hazardous',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n // Called by CmdSenderComponent\n cmd(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd', target_name)\n } else {\n return this._cmd('cmd', target_name, command_name, param_list)\n }\n }\n\n // Called by CmdSenderComponent\n cmd_no_range_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_range_check', target_name)\n } else {\n return this._cmd(\n 'cmd_no_range_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n // Called by CmdSenderComponent\n cmd_raw(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw', target_name)\n } else {\n return this._cmd('cmd_raw', target_name, command_name, param_list)\n }\n }\n\n // Called by CmdSenderComponent\n cmd_raw_no_range_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_range_check', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_range_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n // Called by CmdSenderComponent\n cmd_no_hazardous_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_hazardous_check', target_name)\n } else {\n return this._cmd(\n 'cmd_no_hazardous_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n // Called by CmdSenderComponent\n cmd_no_checks(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_checks', target_name)\n } else {\n return this._cmd('cmd_no_checks', target_name, command_name, param_list)\n }\n }\n\n // Called by CmdSenderComponent\n cmd_raw_no_hazardous_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_hazardous_check', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_hazardous_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n // Called by CmdSenderComponent\n cmd_raw_no_checks(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_checks', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_checks',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n // Called by CmdSenderComponent\n get_interface_names() {\n return this.exec('get_interface_names', [])\n }\n\n // Called by CmdSenderComponent\n send_raw(interface_name, data) {\n return this.exec('send_raw', [interface_name, data])\n }\n\n list_configs(tool) {\n return this.exec('list_configs', [tool])\n }\n\n load_config(tool, name) {\n return this.exec('load_config', [tool, name])\n }\n\n save_config(tool, name, data) {\n return this.exec('save_config', [tool, name, data])\n }\n\n delete_config(tool, name) {\n return this.exec('delete_config', [tool, name])\n }\n\n get_out_of_limits() {\n return this.exec('get_out_of_limits', [])\n }\n\n get_overall_limits_state(ignored) {\n return this.exec('get_overall_limits_state', [ignored])\n }\n\n list_settings() {\n return this.exec('list_settings', [])\n }\n\n get_all_settings() {\n return this.exec('get_all_settings', [])\n }\n\n get_setting(name) {\n return this.exec('get_setting', [name])\n }\n\n get_settings(array) {\n return this.exec('get_settings', array)\n }\n\n save_setting(name, data) {\n return this.exec('save_setting', [name, data])\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-select',{attrs:{\"items\":_vm.swatches,\"label\":\"Color\"},scopedSlots:_vm._u([{key:\"selection\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',[_c('v-badge',{attrs:{\"inline\":\"\",\"color\":item}},[_c('span',{domProps:{\"textContent\":_vm._s(item)}})])],1)]}},{key:\"item\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',[_c('v-badge',{attrs:{\"inline\":\"\",\"color\":item}},[_c('span',{domProps:{\"textContent\":_vm._s(item)}})])],1)]}}]),model:{value:(_vm.color),callback:function ($$v) {_vm.color=$$v},expression:\"color\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-select v-model=\"color\" :items=\"swatches\" label=\"Color\">\n <template v-slot:selection=\"{ item }\">\n <div>\n <v-badge inline :color=\"item\">\n <span v-text=\"item\" />\n </v-badge>\n </div>\n </template>\n <template v-slot:item=\"{ item }\">\n <div>\n <v-badge inline :color=\"item\">\n <span v-text=\"item\" />\n </v-badge>\n </div>\n </template>\n </v-select>\n </div>\n</template>\n\n<script>\nexport default {\n components: {},\n props: {\n value: {\n type: String,\n required: true,\n },\n },\n data() {\n return {}\n },\n computed: {\n color: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n swatches: function () {\n return [\n '#005a8f',\n '#003784',\n '#8F3400',\n '#df1368',\n '#ff5252',\n '#df323b',\n '#9f0010',\n '#2d9437',\n '#004700',\n '#db7200',\n '#802700',\n '#0f2941',\n ]\n },\n },\n methods: {},\n}\n</script>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ColorSelectForm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ColorSelectForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ColorSelectForm.vue?vue&type=template&id=44877265&\"\nimport script from \"./ColorSelectForm.vue?vue&type=script&lang=js&\"\nexport * from \"./ColorSelectForm.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-simple-table',{attrs:{\"dense\":\"\"}},[_c('tbody',[_c('tr',[_c('th',{staticClass:\"text-left\"},[_vm._v(\"Key\")]),_c('th',{staticClass:\"text-left\"},[_vm._v(\"Value\")]),_c('th',{staticClass:\"text-right\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"new-metadata-icon\"},on:{\"click\":_vm.newMetadata}},[_vm._v(\" mdi-plus \")])],1)]}}])},[_c('span',[_vm._v(\" New Metadata \")])])],1)]),_vm._l((_vm.metadata),function(meta,i){return [_c('tr',{key:(\"tr-\" + i)},[_c('td',[_c('v-text-field',{attrs:{\"type\":\"text\",\"dense\":\"\",\"data-test\":(\"key-\" + i)},model:{value:(meta.key),callback:function ($$v) {_vm.$set(meta, \"key\", $$v)},expression:\"meta.key\"}})],1),_c('td',[_c('v-text-field',{attrs:{\"type\":\"text\",\"dense\":\"\",\"data-test\":(\"value-\" + i)},model:{value:(meta.value),callback:function ($$v) {_vm.$set(meta, \"value\", $$v)},expression:\"meta.value\"}})],1),_c('td',[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":(\"delete-metadata-icon-\" + i)},on:{\"click\":function($event){return _vm.rm(i)}}},[_vm._v(\" mdi-delete \")])],1)]}}],null,true)},[_c('span',[_vm._v(\" Delete Metadata \")])])],1)])]})],2)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-simple-table dense>\n <tbody>\n <tr>\n <th class=\"text-left\">Key</th>\n <th class=\"text-left\">Value</th>\n <th class=\"text-right\">\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon data-test=\"new-metadata-icon\" @click=\"newMetadata\">\n mdi-plus\n </v-icon>\n </div>\n </template>\n <span> New Metadata </span>\n </v-tooltip>\n </th>\n </tr>\n <template v-for=\"(meta, i) in metadata\">\n <tr :key=\"`tr-${i}`\">\n <td>\n <v-text-field\n v-model=\"meta.key\"\n type=\"text\"\n dense\n :data-test=\"`key-${i}`\"\n />\n </td>\n <td>\n <v-text-field\n v-model=\"meta.value\"\n type=\"text\"\n dense\n :data-test=\"`value-${i}`\"\n />\n </td>\n <td>\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon\n :data-test=\"`delete-metadata-icon-${i}`\"\n @click=\"rm(i)\"\n >\n mdi-delete\n </v-icon>\n </div>\n </template>\n <span> Delete Metadata </span>\n </v-tooltip>\n </td>\n </tr>\n </template>\n </tbody>\n </v-simple-table>\n </div>\n</template>\n\n<script>\nexport default {\n components: {},\n props: {\n value: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {}\n },\n computed: {\n metadata: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n newMetadata: function () {\n this.metadata.push({\n key: '',\n value: '',\n })\n },\n rm: function (index) {\n this.metadata.splice(index, 1)\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MetadataInputForm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MetadataInputForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MetadataInputForm.vue?vue&type=template&id=191be1c3&\"\nimport script from \"./MetadataInputForm.vue?vue&type=script&lang=js&\"\nexport * from \"./MetadataInputForm.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addstopums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-dialog persistent v-model=\"show\" width=\"600\">\n <v-card>\n <form @submit.prevent=\"updateMetadata\">\n <v-system-bar>\n <v-spacer />\n <span>Update Chronicle Metadata</span>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon data-test=\"close-metadata-icon\" @click=\"show = !show\">\n mdi-close-box\n </v-icon>\n </div>\n </template>\n <span> Close </span>\n </v-tooltip>\n </v-system-bar>\n <v-stepper v-model=\"dialogStep\" vertical non-linear>\n <v-stepper-step editable step=\"1\">\n Input start time\n </v-stepper-step>\n <v-stepper-content step=\"1\">\n <v-card-text>\n <div class=\"pa-2\">\n <v-select v-model=\"target\" :items=\"targets\" label=\"Target\" />\n <color-select-form v-model=\"color\" />\n <v-row dense>\n <v-text-field\n v-model=\"startDate\"\n type=\"date\"\n label=\"Start Date\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"start-date\"\n />\n <v-text-field\n v-model=\"startTime\"\n type=\"time\"\n step=\"1\"\n label=\"Start Time\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"start-time\"\n />\n </v-row>\n <v-row class=\"mx-2 mb-2\">\n <v-radio-group\n v-model=\"utcOrLocal\"\n row\n hide-details\n class=\"mt-0\"\n >\n <v-radio label=\"LST\" value=\"loc\" data-test=\"lst-radio\" />\n <v-radio label=\"UTC\" value=\"utc\" data-test=\"utc-radio\" />\n </v-radio-group>\n </v-row>\n <v-row>\n <span\n class=\"ma-2 red--text\"\n v-show=\"timeError\"\n v-text=\"timeError\"\n />\n </v-row>\n <v-row class=\"mt-2\">\n <v-spacer />\n <v-btn\n @click=\"dialogStep = 2\"\n data-test=\"create-metadata-step-two-btn\"\n color=\"success\"\n :disabled=\"!!timeError\"\n >\n Continue\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-stepper-content>\n <v-stepper-step editable step=\"2\"> Metadata input </v-stepper-step>\n <v-stepper-content step=\"2\">\n <v-card-text>\n <div class=\"pa-2\">\n <div style=\"min-height: 200px\">\n <metadata-input-form v-model=\"metadata\" />\n </div>\n <v-row v-show=\"typeError\">\n <span class=\"ma-2 red--text\" v-text=\"typeError\" />\n </v-row>\n <v-row class=\"mt-2\">\n <v-spacer />\n <v-btn\n @click=\"show = !show\"\n outlined\n class=\"mx-2\"\n data-test=\"update-metadata-cancel-btn\"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent=\"updateMetadata\"\n class=\"mx-2\"\n color=\"primary\"\n type=\"submit\"\n data-test=\"update-metadata-submit-btn\"\n :disabled=\"!!timeError || !!typeError\"\n >\n Ok\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-stepper-content>\n </v-stepper>\n </form>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport { isValid, parse, format, getTime } from 'date-fns'\nimport Api from '@cosmosc2/tool-common/src/services/api'\nimport { CosmosApi } from '@cosmosc2/tool-common/src/services/cosmos-api'\n\nimport TimeFilters from '@/tools/Calendar/Filters/timeFilters.js'\nimport ColorSelectForm from '@/tools/Calendar/Forms/ColorSelectForm'\nimport MetadataInputForm from '@/tools/Calendar/Forms/MetadataInputForm'\n\nexport default {\n components: {\n ColorSelectForm,\n MetadataInputForm,\n },\n props: {\n metadataObj: {\n type: Object,\n required: true,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n mixins: [TimeFilters],\n data() {\n return {\n scope: localStorage.scope,\n dialogStep: 1,\n target: '',\n targets: [],\n startDate: '',\n startTime: '',\n utcOrLocal: 'loc',\n color: '',\n metadata: [],\n rules: {\n required: (value) => !!value || 'Required',\n },\n }\n },\n watch: {\n show: function () {\n if (this.show) {\n this.updateValues()\n }\n },\n },\n mounted: function () {\n this.updateTargets()\n },\n computed: {\n timeError: function () {\n if (!this.target) {\n return 'Metadata must be associated with a target.'\n }\n const now = new Date()\n const start = Date.parse(`${this.startDate}T${this.startTime}`)\n if (now < start) {\n return 'Invalid start time. Can not be in the future'\n }\n return null\n },\n typeError: function () {\n if (this.metadata.length < 1) {\n return 'Please enter a value in the metadata table.'\n }\n const emptyKeyValue = this.metadata.find(\n (meta) => meta.key === '' || meta.value === ''\n )\n if (emptyKeyValue) {\n return 'Missing or empty key, value in the metadata table.'\n }\n return null\n },\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n updateValues: function () {\n const sDate = new Date(this.metadataObj.start)\n this.startDate = format(sDate, 'yyyy-MM-dd')\n this.startTime = format(sDate, 'HH:mm:ss')\n this.metadata = Object.keys(this.metadataObj.metadata).map((k) => {\n return { key: k, value: this.metadataObj.metadata[k] }\n })\n this.color = this.metadataObj.color\n this.target = this.metadataObj.target\n },\n updateTargets: function () {\n new CosmosApi().get_target_list().then((data) => {\n this.targets = data\n this.targets.unshift(localStorage.scope)\n })\n },\n updateMetadata: function () {\n const color = this.color\n const metadata = this.metadata.reduce((result, element) => {\n result[element.key] = element.value\n return result\n }, {})\n const start = this.toIsoString(\n Date.parse(`${this.startDate}T${this.startTime}`)\n )\n const target = this.target\n Api.put(`/cosmos-api/metadata/${this.metadataObj.start}`, {\n data: { start, color, target, metadata },\n }).then((response) => {\n this.$notify.normal({\n title: 'Updated Chronicle Metadata',\n body: `Metadata updated: (${response.data.start})`,\n })\n })\n this.$emit('close')\n this.show = !this.show\n },\n },\n}\n</script>\n\n<style scoped>\n.v-stepper--vertical .v-stepper__content {\n width: auto;\n margin: 0px 0px 0px 36px;\n padding: 0px;\n}\n</style>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MetadataUpdateDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MetadataUpdateDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MetadataUpdateDialog.vue?vue&type=template&id=7a27607c&scoped=true&\"\nimport script from \"./MetadataUpdateDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./MetadataUpdateDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MetadataUpdateDialog.vue?vue&type=style&index=0&id=7a27607c&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7a27607c\",\n null\n \n)\n\nexport default component.exports","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-card-title v-text=\"title\" />\n <v-card-subtitle>\n <span>\n {{ metadataEvent.start | dateTime(utc) }}\n </span>\n </v-card-subtitle>\n <div class=\"ma-2\">\n <v-card-text>\n <v-row>\n <v-col class=\"pa-0\">\n <v-simple-table dense>\n <tbody>\n <tr>\n <th class=\"text-left\">Key</th>\n <th class=\"text-left\">Value</th>\n </tr>\n <template v-for=\"(value, i) in metadataValues\">\n <tr :key=\"`tr-${i}`\">\n <td class=\"text-left\">\n <span v-text=\"value.key\" />\n </td>\n <td class=\"text-left\">\n <span v-text=\"value.value\" />\n </td>\n </tr>\n </template>\n </tbody>\n </v-simple-table>\n </v-col>\n </v-row>\n <v-row class=\"pt-1\">\n <v-col class=\"text-right pa-0\">\n <span class=\"text-caption\">\n Last update: {{ updated_at | dateTime(utc) }}\n </span>\n </v-col>\n </v-row>\n </v-card-text>\n <v-card-actions class=\"pa-1\">\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-btn icon data-test=\"update-metadata\" @click=\"updateDialog\">\n <v-icon>mdi-pencil</v-icon>\n </v-btn>\n </div>\n </template>\n <span> Update </span>\n </v-tooltip>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-btn icon data-test=\"delete-metadata\" @click=\"deleteDialog\">\n <v-icon> mdi-delete </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Delete </span>\n </v-tooltip>\n </v-card-actions>\n </div>\n <!--- Menus --->\n <metadata-update-dialog\n v-model=\"showUpdateDialog\"\n :metadata-obj=\"metadataEvent.metadata\"\n @close=\"close\"\n />\n </div>\n</template>\n\n<script>\nimport Api from '@cosmosc2/tool-common/src/services/api'\nimport TimeFilters from '@/tools/Calendar/Filters/timeFilters.js'\nimport MetadataUpdateDialog from '@/tools/Calendar/Dialogs/MetadataUpdateDialog'\n\nexport default {\n components: {\n MetadataUpdateDialog,\n },\n mixins: [TimeFilters],\n props: {\n metadataEvent: {\n type: Object,\n required: true,\n },\n utc: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n showUpdateDialog: false,\n }\n },\n computed: {\n metadataValues: function () {\n const metadata = this.metadataEvent.metadata.metadata\n return Object.keys(metadata).map((k) => {\n return { key: k, value: metadata[k] }\n })\n },\n updated_at: function () {\n const v = parseInt(this.metadataEvent.metadata.updated_at / 1000000)\n return new Date(v)\n },\n title: function () {\n return `${this.metadataEvent.metadata.target}, ${this.metadataEvent.metadata.type}`\n },\n },\n methods: {\n close: function () {\n this.$emit('close')\n },\n updateDialog: function () {\n this.showUpdateDialog = !this.showUpdateDialog\n },\n deleteDialog: function () {\n const metadataStart = this.metadataEvent.metadata.start\n const eventStart = this.generateDateTime(\n this.metadataEvent.start,\n this.utc\n )\n this.$dialog\n .confirm(\n `Are you sure you want to remove metadata: ${eventStart} (${metadataStart})`,\n {\n okText: 'Delete',\n cancelText: 'Cancel',\n }\n )\n .then((dialog) => {\n return Api.delete(`/cosmos-api/metadata/${metadataStart}`)\n })\n .then((response) => {\n this.$notify.normal({\n title: 'Deleted Metadata',\n body: `Deleted metadata: ${eventStart} (${metadataStart})`,\n })\n this.$emit('close')\n })\n .catch((error) => {\n if (error) {\n this.$notify.error({\n title: 'Failed to Delete Metadata',\n body: `Failed to delete metadata ${metadataStart}. Error: ${error}`,\n })\n }\n })\n },\n },\n}\n</script>\n\n<style scoped>\n.theme--dark .v-card__title,\n.theme--dark .v-card__subtitle {\n background-color: var(--v-secondary-darken3);\n}\n</style>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MetadataEventForm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MetadataEventForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MetadataEventForm.vue?vue&type=template&id=764f7879&scoped=true&\"\nimport script from \"./MetadataEventForm.vue?vue&type=script&lang=js&\"\nexport * from \"./MetadataEventForm.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MetadataEventForm.vue?vue&type=style&index=0&id=764f7879&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"764f7879\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-card-title',{domProps:{\"textContent\":_vm._s(_vm.narrativeEvent.name)}}),_c('v-card-subtitle',[_c('span',[_vm._v(\" \"+_vm._s(_vm._f(\"dateTime\")(_vm.narrativeEvent.start,_vm.utc))+\" \")]),_c('br'),_c('span',[_vm._v(\" \"+_vm._s(_vm._f(\"dateTime\")(_vm.narrativeEvent.end,_vm.utc))+\" \")])]),_c('div',{staticClass:\"ma-2\"},[_c('v-card-text',[_c('v-row',[_c('v-textarea',{attrs:{\"readonly\":\"\",\"rows\":\"6\",\"value\":_vm.description}})],1),_c('v-row',{staticClass:\"pt-1\"},[_c('v-col',{staticClass:\"text-right pa-0\"},[_c('span',{staticClass:\"text-caption\"},[_vm._v(\" Last update: \"+_vm._s(_vm._f(\"dateTime\")(_vm.updated_at,_vm.utc))+\" \")])])],1)],1),_c('v-card-actions',{staticClass:\"pa-1\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{attrs:{\"icon\":\"\",\"data-test\":\"update-narration\"},on:{\"click\":_vm.updateDialog}},[_c('v-icon',[_vm._v(\"mdi-pencil\")])],1)],1)]}}])},[_c('span',[_vm._v(\" Update \")])]),_c('v-spacer'),_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{attrs:{\"icon\":\"\",\"data-test\":\"delete-narration\"},on:{\"click\":_vm.deleteDialog}},[_c('v-icon',[_vm._v(\" mdi-delete \")])],1)],1)]}}])},[_c('span',[_vm._v(\" Delete \")])])],1)],1),_c('narration-update-dialog',{attrs:{\"narrative\":_vm.narrativeEvent.narrative},on:{\"close\":_vm.close},model:{value:(_vm.showUpdateDialog),callback:function ($$v) {_vm.showUpdateDialog=$$v},expression:\"showUpdateDialog\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-dialog',{attrs:{\"persistent\":\"\",\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.updateNarrative.apply(null, arguments)}}},[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\"Update Chronicle Narrative\")]),_c('v-spacer'),_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"close-narrative-icon\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" mdi-close-box \")])],1)]}}])},[_c('span',[_vm._v(\" Close \")])])],1),_c('v-stepper',{attrs:{\"vertical\":\"\",\"non-linear\":\"\"},model:{value:(_vm.dialogStep),callback:function ($$v) {_vm.dialogStep=$$v},expression:\"dialogStep\"}},[_c('v-stepper-step',{attrs:{\"editable\":\"\",\"step\":\"1\"}},[_vm._v(\" Input start time, stop time \")]),_c('v-stepper-content',{attrs:{\"step\":\"1\"}},[_c('v-card-text',[_c('div',{staticClass:\"pa-2\"},[_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"date\",\"label\":\"Start Date\",\"rules\":[_vm.rules.required],\"data-test\":\"narrative-start-date\"},model:{value:(_vm.startDate),callback:function ($$v) {_vm.startDate=$$v},expression:\"startDate\"}}),_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"time\",\"step\":\"1\",\"label\":\"Start Time\",\"rules\":[_vm.rules.required],\"data-test\":\"narrative-start-time\"},model:{value:(_vm.startTime),callback:function ($$v) {_vm.startTime=$$v},expression:\"startTime\"}})],1),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"date\",\"label\":\"End Date\",\"rules\":[_vm.rules.required],\"data-test\":\"narrative-stop-date\"},model:{value:(_vm.stopDate),callback:function ($$v) {_vm.stopDate=$$v},expression:\"stopDate\"}}),_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"time\",\"step\":\"1\",\"label\":\"End Time\",\"rules\":[_vm.rules.required],\"data-test\":\"narrative-stop-time\"},model:{value:(_vm.stopTime),callback:function ($$v) {_vm.stopTime=$$v},expression:\"stopTime\"}})],1),_c('v-row',{staticClass:\"mx-2 mb-2\"},[_c('v-radio-group',{staticClass:\"mt-0\",attrs:{\"row\":\"\",\"hide-details\":\"\"},model:{value:(_vm.utcOrLocal),callback:function ($$v) {_vm.utcOrLocal=$$v},expression:\"utcOrLocal\"}},[_c('v-radio',{attrs:{\"label\":\"LST\",\"value\":\"loc\",\"data-test\":\"lst-radio\"}}),_c('v-radio',{attrs:{\"label\":\"UTC\",\"value\":\"utc\",\"data-test\":\"utc-radio\"}})],1)],1),_c('v-row',[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.timeError),expression:\"timeError\"}],staticClass:\"ma-2 red--text\",domProps:{\"textContent\":_vm._s(_vm.timeError)}})]),_c('v-row',{staticClass:\"mt-2\"},[_c('v-spacer'),_c('v-btn',{attrs:{\"data-test\":\"update-narrative-step-two-btn\",\"color\":\"success\",\"disabled\":!!_vm.timeError},on:{\"click\":function($event){_vm.dialogStep = 2}}},[_vm._v(\" Continue \")])],1)],1)])],1),_c('v-stepper-step',{attrs:{\"editable\":\"\",\"step\":\"2\"}},[_vm._v(\" Input Description \")]),_c('v-stepper-content',{attrs:{\"step\":\"2\"}},[_c('v-card-text',[_c('div',{staticClass:\"pa-2\"},[_c('div',[_c('color-select-form',{model:{value:(_vm.color),callback:function ($$v) {_vm.color=$$v},expression:\"color\"}})],1),_c('div',[_c('v-text-field',{attrs:{\"type\":\"text\",\"label\":\"Narrative Description\",\"data-test\":\"update-narrative-description\"},model:{value:(_vm.description),callback:function ($$v) {_vm.description=$$v},expression:\"description\"}})],1),_c('v-row',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.typeError),expression:\"typeError\"}]},[_c('span',{staticClass:\"ma-2 red--text\",domProps:{\"textContent\":_vm._s(_vm.typeError)}})]),_c('v-row',{staticClass:\"mt-2\"},[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\",\"data-test\":\"update-narrative-cancel-btn\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" Cancel \")]),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"type\":\"submit\",\"data-test\":\"update-narrative-submit-btn\",\"disabled\":!!_vm.timeError || !!_vm.typeError},on:{\"click\":function($event){$event.preventDefault();return _vm.updateNarrative.apply(null, arguments)}}},[_vm._v(\" Ok \")])],1)],1)])],1)],1)],1)])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addstopums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-dialog persistent v-model=\"show\" width=\"600\">\n <v-card>\n <form @submit.prevent=\"updateNarrative\">\n <v-system-bar>\n <v-spacer />\n <span>Update Chronicle Narrative</span>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon\n data-test=\"close-narrative-icon\"\n @click=\"show = !show\"\n >\n mdi-close-box\n </v-icon>\n </div>\n </template>\n <span> Close </span>\n </v-tooltip>\n </v-system-bar>\n <v-stepper v-model=\"dialogStep\" vertical non-linear>\n <v-stepper-step editable step=\"1\">\n Input start time, stop time\n </v-stepper-step>\n <v-stepper-content step=\"1\">\n <v-card-text>\n <div class=\"pa-2\">\n <v-row dense>\n <v-text-field\n v-model=\"startDate\"\n type=\"date\"\n label=\"Start Date\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"narrative-start-date\"\n />\n <v-text-field\n v-model=\"startTime\"\n type=\"time\"\n step=\"1\"\n label=\"Start Time\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"narrative-start-time\"\n />\n </v-row>\n <v-row dense>\n <v-text-field\n v-model=\"stopDate\"\n type=\"date\"\n label=\"End Date\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"narrative-stop-date\"\n />\n <v-text-field\n v-model=\"stopTime\"\n type=\"time\"\n step=\"1\"\n label=\"End Time\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"narrative-stop-time\"\n />\n </v-row>\n <v-row class=\"mx-2 mb-2\">\n <v-radio-group\n v-model=\"utcOrLocal\"\n row\n hide-details\n class=\"mt-0\"\n >\n <v-radio label=\"LST\" value=\"loc\" data-test=\"lst-radio\" />\n <v-radio label=\"UTC\" value=\"utc\" data-test=\"utc-radio\" />\n </v-radio-group>\n </v-row>\n <v-row>\n <span\n class=\"ma-2 red--text\"\n v-show=\"timeError\"\n v-text=\"timeError\"\n />\n </v-row>\n <v-row class=\"mt-2\">\n <v-spacer />\n <v-btn\n @click=\"dialogStep = 2\"\n data-test=\"update-narrative-step-two-btn\"\n color=\"success\"\n :disabled=\"!!timeError\"\n >\n Continue\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-stepper-content>\n <v-stepper-step editable step=\"2\">\n Input Description\n </v-stepper-step>\n <v-stepper-content step=\"2\">\n <v-card-text>\n <div class=\"pa-2\">\n <div>\n <color-select-form v-model=\"color\" />\n </div>\n <div>\n <v-text-field\n v-model=\"description\"\n type=\"text\"\n label=\"Narrative Description\"\n data-test=\"update-narrative-description\"\n />\n </div>\n <v-row v-show=\"typeError\">\n <span class=\"ma-2 red--text\" v-text=\"typeError\" />\n </v-row>\n <v-row class=\"mt-2\">\n <v-spacer />\n <v-btn\n @click=\"show = !show\"\n outlined\n class=\"mx-2\"\n data-test=\"update-narrative-cancel-btn\"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent=\"updateNarrative\"\n class=\"mx-2\"\n color=\"primary\"\n type=\"submit\"\n data-test=\"update-narrative-submit-btn\"\n :disabled=\"!!timeError || !!typeError\"\n >\n Ok\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-stepper-content>\n </v-stepper>\n </form>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport { isValid, parse, format, getTime } from 'date-fns'\nimport Api from '@cosmosc2/tool-common/src/services/api'\nimport TimeFilters from '@/tools/Calendar/Filters/timeFilters.js'\nimport ColorSelectForm from '@/tools/Calendar/Forms/ColorSelectForm'\n\nexport default {\n components: {\n ColorSelectForm,\n },\n props: {\n narrative: {\n type: Object,\n required: true,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n mixins: [TimeFilters],\n data() {\n return {\n dialogStep: 1,\n startDate: '',\n startTime: '',\n stopDate: '',\n stopTime: '',\n utcOrLocal: 'loc',\n description: '',\n color: '',\n rules: {\n required: (value) => !!value || 'Required',\n },\n }\n },\n watch: {\n show: function () {\n this.updateValues()\n },\n },\n computed: {\n timeError: function () {\n const now = new Date()\n const start = Date.parse(`${this.startDate}T${this.startTime}`)\n const stop = Date.parse(`${this.stopDate}T${this.stopTime}`)\n if (start === stop) {\n return 'Invalid start, stop time. Narrations must have different start and stop times.'\n }\n if (start > stop) {\n return 'Invalid start time. Narration start before stop.'\n }\n return null\n },\n typeError: function () {\n if (!this.description) {\n return 'A description is required for a valid narrative.'\n }\n return null\n },\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n updateValues: function () {\n this.dialogStep = 1\n const sDate = new Date(this.narrative.start * 1000)\n const eDate = new Date(this.narrative.stop * 1000)\n this.startDate = format(sDate, 'yyyy-MM-dd')\n this.startTime = format(sDate, 'HH:mm:ss')\n this.stopDate = format(eDate, 'yyyy-MM-dd')\n this.stopTime = format(eDate, 'HH:mm:ss')\n this.color = this.narrative.color\n this.description = this.narrative.description\n },\n updateNarrative: function () {\n const start = this.toIsoString(\n Date.parse(`${this.startDate}T${this.startTime}`)\n )\n const stop = this.toIsoString(\n Date.parse(`${this.stopDate}T${this.stopTime}`)\n )\n const color = this.color\n const description = this.description\n Api.put(`/cosmos-api/narrative/${this.narrative.start}`, {\n data: { start, stop, color, description },\n }).then((response) => {\n const desc =\n response.data.description.length > 16\n ? `${response.data.description.substring(0, 16)}...`\n : response.data.description\n this.$notify.normal({\n title: 'Updated Chronicle Narrative',\n body: `Narrative updated: (${response.data.start}): \"${desc}\"`,\n })\n })\n this.$emit('close')\n this.show = !this.show\n },\n },\n}\n</script>\n\n<style scoped>\n.v-stepper--vertical .v-stepper__content {\n width: auto;\n margin: 0px 0px 0px 36px;\n padding: 0px;\n}\n</style>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NarrationUpdateDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NarrationUpdateDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NarrationUpdateDialog.vue?vue&type=template&id=77b41112&scoped=true&\"\nimport script from \"./NarrationUpdateDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./NarrationUpdateDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NarrationUpdateDialog.vue?vue&type=style&index=0&id=77b41112&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"77b41112\",\n null\n \n)\n\nexport default component.exports","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-card-title v-text=\"narrativeEvent.name\" />\n <v-card-subtitle>\n <span>\n {{ narrativeEvent.start | dateTime(utc) }}\n </span>\n <br />\n <span>\n {{ narrativeEvent.end | dateTime(utc) }}\n </span>\n </v-card-subtitle>\n <div class=\"ma-2\">\n <v-card-text>\n <v-row>\n <v-textarea readonly rows=\"6\" :value=\"description\" />\n </v-row>\n <v-row class=\"pt-1\">\n <v-col class=\"text-right pa-0\">\n <span class=\"text-caption\">\n Last update: {{ updated_at | dateTime(utc) }}\n </span>\n </v-col>\n </v-row>\n </v-card-text>\n <v-card-actions class=\"pa-1\">\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-btn icon data-test=\"update-narration\" @click=\"updateDialog\">\n <v-icon>mdi-pencil</v-icon>\n </v-btn>\n </div>\n </template>\n <span> Update </span>\n </v-tooltip>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-btn icon data-test=\"delete-narration\" @click=\"deleteDialog\">\n <v-icon> mdi-delete </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Delete </span>\n </v-tooltip>\n </v-card-actions>\n </div>\n <!--- Menus --->\n <narration-update-dialog\n v-model=\"showUpdateDialog\"\n :narrative=\"narrativeEvent.narrative\"\n @close=\"close\"\n />\n </div>\n</template>\n\n<script>\nimport Api from '@cosmosc2/tool-common/src/services/api'\nimport TimeFilters from '@/tools/Calendar/Filters/timeFilters.js'\nimport NarrationUpdateDialog from '@/tools/Calendar/Dialogs/NarrationUpdateDialog'\n\nexport default {\n components: {\n NarrationUpdateDialog,\n },\n mixins: [TimeFilters],\n props: {\n narrativeEvent: {\n type: Object,\n required: true,\n },\n utc: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n showUpdateDialog: false,\n }\n },\n computed: {\n updated_at: function () {\n const v = parseInt(this.narrativeEvent.narrative.updated_at / 1000000)\n return new Date(v)\n },\n description: function () {\n return this.narrativeEvent.narrative.description\n },\n },\n methods: {\n close: function () {\n this.$emit('close')\n },\n updateDialog: function () {\n this.showUpdateDialog = !this.showUpdateDialog\n },\n deleteDialog: function () {\n const narrationStart = this.narrativeEvent.narrative.start\n const eventStart = this.generateDateTime(\n this.narrativeEvent.start,\n this.utc\n )\n this.$dialog\n .confirm(\n `Are you sure you want to remove narration: ${eventStart} (${narrationStart})`,\n {\n okText: 'Delete',\n cancelText: 'Cancel',\n }\n )\n .then((dialog) => {\n return Api.delete(`/cosmos-api/narrative/${narrationStart}`)\n })\n .then((response) => {\n this.$notify.normal({\n title: 'Deleted Narration',\n body: `Deleted narration: ${eventStart} (${narrationStart})`,\n })\n this.$emit('close')\n })\n },\n },\n}\n</script>\n\n<style scoped>\n.theme--dark .v-card__title,\n.theme--dark .v-card__subtitle {\n background-color: var(--v-secondary-darken3);\n}\n</style>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NarrationEventForm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NarrationEventForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NarrationEventForm.vue?vue&type=template&id=077c1902&scoped=true&\"\nimport script from \"./NarrationEventForm.vue?vue&type=script&lang=js&\"\nexport * from \"./NarrationEventForm.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NarrationEventForm.vue?vue&type=style&index=0&id=077c1902&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"077c1902\",\n null\n \n)\n\nexport default component.exports","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-card width=\"400\">\n <div v-if=\"type === 'activity'\">\n <activity-event-form\n :activity-event=\"event\"\n :utc=\"utc\"\n @close=\"close\"\n />\n </div>\n <div v-if=\"type === 'narrative'\">\n <narration-event-form\n :narrative-event=\"event\"\n :utc=\"utc\"\n @close=\"close\"\n />\n </div>\n <div v-if=\"type === 'metadata'\">\n <metadata-event-form\n :metadata-event=\"event\"\n :utc=\"utc\"\n @close=\"close\"\n />\n </div>\n </v-card>\n </div>\n</template>\n\n<script>\nimport ActivityEventForm from '@/tools/Calendar/Forms/ActivityEventForm'\nimport MetadataEventForm from '@/tools/Calendar/Forms/MetadataEventForm'\nimport NarrationEventForm from '@/tools/Calendar/Forms/NarrationEventForm'\n\nexport default {\n components: {\n ActivityEventForm,\n MetadataEventForm,\n NarrationEventForm,\n },\n props: {\n event: {\n type: Object,\n required: true,\n },\n utc: {\n type: Boolean,\n required: true,\n },\n value: {\n type: Boolean,\n required: true,\n },\n },\n computed: {\n type: function () {\n return this.event ? this.event.type : ''\n },\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n close: function (event) {\n this.show = !this.show\n this.$emit('close')\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EventDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EventDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EventDialog.vue?vue&type=template&id=06168036&\"\nimport script from \"./EventDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./EventDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\nconst makeTimeline = function (timeline, activities) {\n return {\n name: timeline.name,\n color: timeline.color,\n messages: timeline.messages,\n activities: activities[timeline.name] || [],\n }\n}\n\nconst makeActivity = function (timeline, activity) {\n return {\n name: `${activity.name} ${activity.kind}`,\n start: new Date(activity.start * 1000),\n end: new Date(activity.stop * 1000),\n color: timeline.color,\n type: 'activity',\n timed: true,\n activity,\n }\n}\n\nconst getTimelineEvents = function (selectedCalendars, activities) {\n return selectedCalendars\n .filter((calendar) => calendar.type === 'timeline')\n .flatMap((calendarInfo) => {\n const timeline = makeTimeline(calendarInfo, activities)\n return timeline.activities.map((activity) => {\n return makeActivity(timeline, activity)\n })\n })\n}\n\nexport { getTimelineEvents }\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nconst makeCalendar = function (calendar, chronicles) {\n return {\n name: calendar.name,\n type: calendar.type,\n messages: calendar.messages,\n chronicles: chronicles[calendar.name] || [],\n }\n}\n\nconst makeNarrationEvent = function (_calendar, event) {\n const name =\n event.description.length > 16\n ? `${event.description.substring(0, 16)}...`\n : event.description\n return {\n name: name,\n start: new Date(event.start * 1000),\n end: new Date(event.stop * 1000),\n color: event.color,\n type: event.type,\n timed: true,\n narrative: event,\n }\n}\n\nconst makeMetadataEvent = function (calendar, event) {\n return {\n name: `${event.target} ${calendar.name}`,\n start: new Date(event.start),\n end: new Date(event.start),\n color: event.color,\n type: event.type,\n timed: true,\n metadata: event,\n }\n}\n\nconst getChronicleEvents = function (selectedCalendars, chronicles) {\n return selectedCalendars\n .filter((calendar) => calendar.type === 'chronicle')\n .flatMap((calendarInfo) => {\n const calendar = makeCalendar(calendarInfo, chronicles)\n return calendar.chronicles.map((event) => {\n if (calendar.name === 'metadata') {\n return makeMetadataEvent(calendar, event)\n } else {\n return makeNarrationEvent(calendar, event)\n }\n })\n })\n}\n\nexport { getChronicleEvents }\n","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-sheet height=\"800\" class=\"mt-1\">\n <v-calendar\n v-model=\"focus\"\n ref=\"mainCalendar\"\n color=\"primary\"\n :events=\"events\"\n :event-color=\"getEventColor\"\n :type=\"type\"\n @click:event=\"showEvent\"\n @click:more=\"viewDay\"\n @click:date=\"viewDay\"\n >\n <!---\n <template v-slot:event=\"{ event }\">\n <div class=\"mr-1\">\n <span class=\"font-weight-bold\" v-text=\"event.name\" />\n <br />\n <span>{{ event.start | time(calendarConfiguration.utc) }}</span>\n </div>\n </template>\n --->\n <template v-slot:day-body=\"{ date, week }\">\n <div\n class=\"v-current-time\"\n :class=\"{ first: date === week[0].date }\"\n :style=\"{ top: nowY }\"\n />\n </template>\n </v-calendar>\n <v-menu\n v-model=\"selectedOpen\"\n :close-on-content-click=\"false\"\n :activator=\"selectedElement\"\n >\n <event-dialog\n v-model=\"selectedOpen\"\n :event=\"selectedEvent\"\n :utc=\"utc\"\n @close=\"close\"\n />\n </v-menu>\n </v-sheet>\n <!-- MENUS -->\n </div>\n</template>\n\n<script>\nimport { isValid, parse, format, getTime } from 'date-fns'\nimport EventDialog from '@/tools/Calendar/Dialogs/EventDialog'\nimport TimeFilters from '@/tools/Calendar/Filters/timeFilters.js'\nimport { getTimelineEvents } from '@/tools/Calendar/Filters/timelineFilters.js'\nimport { getChronicleEvents } from '@/tools/Calendar/Filters/chronicleFilters.js'\n\nexport default {\n components: {\n EventDialog,\n },\n mixins: [TimeFilters],\n props: {\n events: {\n type: Array,\n required: true,\n },\n value: {\n type: Object,\n required: true,\n },\n },\n data() {\n return {\n selectedEvent: null,\n selectedElement: null,\n selectedOpen: false,\n showCreateDialog: false,\n showEventDialog: false,\n showUpdateDialog: false,\n }\n },\n watch: {\n events: function () {\n if (this.ready) {\n this.$refs.mainCalendar.checkChange()\n }\n },\n },\n computed: {\n cal: function () {\n return this.$refs.mainCalendar\n },\n nowY: function () {\n return this.ready ? this.cal.timeToY(this.cal.times.now) + 'px' : '-10px'\n },\n utc: {\n get() {\n return this.value.utc\n },\n set(value) {\n this.$emit('input', { ...this.value, utc: value }) // input is the default event when using v-model\n },\n },\n focus: {\n get() {\n return this.value.focus\n },\n set(value) {\n this.$emit('input', { ...this.value, focus: value }) // input is the default event when using v-model\n },\n },\n type: {\n get() {\n return this.value.type\n },\n set(value) {\n this.$emit('input', { ...this.value, type: value }) // input is the default event when using v-model\n },\n },\n calendarConfiguration: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n mounted() {\n this.ready = true\n this.scrollToTime()\n this.updateTime()\n this.cal.checkChange()\n },\n methods: {\n prev: function () {\n this.cal.prev()\n },\n next: function () {\n this.cal.next()\n },\n close: function () {\n this.selectedOpen = false\n this.selectedEvent = null\n },\n generateDateTime: function (activity) {\n if (!activity) return ''\n const date = new Date(activity.start * 1000)\n if (this.displayTimeInUtc) {\n return date.toUTCString()\n } else {\n return date.toLocaleString() // TODO: support other locales besides en-US\n }\n },\n getEventColor: function (event) {\n return event.color\n },\n getCurrentTime: function () {\n return this.ready\n ? this.cal.times.now.hour * 60 + this.cal.times.now.minute\n : 0\n },\n scrollToTime: function () {\n const time = this.getCurrentTime()\n const first = Math.max(0, time - (time % 30) - 30)\n this.cal.scrollToTime(first)\n },\n updateTime: function () {\n setInterval(() => this.cal.updateTimes(), 60 * 1000)\n },\n showEvent: function ({ nativeEvent, event }) {\n const open = () => {\n this.selectedEvent = event\n this.selectedElement = nativeEvent.target\n requestAnimationFrame(() =>\n requestAnimationFrame(() => (this.selectedOpen = true))\n )\n }\n if (this.selectedOpen) {\n this.selectedOpen = false\n requestAnimationFrame(() => requestAnimationFrame(() => open()))\n } else {\n open()\n }\n nativeEvent.stopPropagation()\n },\n eventDialog: function () {\n this.showEventDialog = !this.showEventDialog\n },\n updateDialog: function () {\n this.showUpdateDialog = !this.showUpdateDialog\n },\n viewDay: function ({ date }) {\n this.calendarConfiguration = {\n ...this.calendarConfiguration,\n type: 'day',\n focus: date,\n }\n },\n },\n}\n</script>\n\n<style scoped lang=\"scss\">\n.theme--dark .v-card__title,\n.theme--dark .v-card__subtitle {\n background-color: var(--v-secondary-darken3);\n}\n.v-current-time {\n height: 2px;\n background-color: #ea4335;\n position: absolute;\n left: -1px;\n right: 0;\n pointer-events: none;\n\n &.first::before {\n content: '';\n position: absolute;\n background-color: #ea4335;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n margin-top: -5px;\n margin-left: -6.5px;\n }\n}\n</style>\n","import mod from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EventCalendar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EventCalendar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EventCalendar.vue?vue&type=template&id=8cfd7c66&scoped=true&\"\nimport script from \"./EventCalendar.vue?vue&type=script&lang=js&\"\nexport * from \"./EventCalendar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./EventCalendar.vue?vue&type=style&index=0&id=8cfd7c66&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8cfd7c66\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-toolbar',{staticClass:\"my-1\"},[_c('v-menu',{attrs:{\"bottom\":\"\",\"right\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{attrs:{\"data-test\":\"create-event\",\"outlined\":\"\"}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\" mdi-plus-box \")]),_c('span',[_vm._v(\" Create \")]),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\" mdi-menu-down \")])],1)],1)]}}])},[_c('v-list',[_c('v-list-item',{attrs:{\"data-test\":\"narrative\"},on:{\"click\":function($event){_vm.showNarrationCreateDialog = true}}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\" mdi-calendar-clock \")]),_c('v-list-item-title',[_vm._v(\" Chronicle Narration \")])],1),_c('v-list-item',{attrs:{\"data-test\":\"metadata\"},on:{\"click\":function($event){_vm.showMetadataCreateDialog = true}}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\" mdi-calendar-check \")]),_c('v-list-item-title',[_vm._v(\" Chronicle Metadata \")])],1),_c('v-list-item',{attrs:{\"data-test\":\"activity\"},on:{\"click\":function($event){_vm.showActivityCreateDialog = true}}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\" mdi-calendar-question \")]),_c('v-list-item-title',[_vm._v(\" Timeline Activity \")])],1)],1)],1),_c('v-btn',{staticClass:\"mx-3\",attrs:{\"outlined\":\"\",\"data-test\":\"today\"},on:{\"click\":_vm.setToday}},[_vm._v(\" Today \")]),_c('v-btn',{attrs:{\"fab\":\"\",\"text\":\"\",\"small\":\"\",\"data-test\":\"prev\"},on:{\"click\":_vm.prev}},[_c('v-icon',{attrs:{\"small\":\"\"}},[_vm._v(\" mdi-chevron-left \")])],1),_c('v-btn',{attrs:{\"fab\":\"\",\"text\":\"\",\"small\":\"\",\"data-test\":\"next\"},on:{\"click\":_vm.next}},[_c('v-icon',{attrs:{\"small\":\"\"}},[_vm._v(\" mdi-chevron-right \")])],1),_c('v-spacer'),_c('v-toolbar-title',{domProps:{\"textContent\":_vm._s(_vm.title)}}),_c('v-spacer'),_c('v-menu',{attrs:{\"bottom\":\"\",\"right\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{staticClass:\"mx-2\",attrs:{\"icon\":\"\",\"data-test\":\"settings\"}},[_c('v-icon',[_vm._v(\" mdi-cog \")])],1)],1)]}}])},[_c('v-list',[_c('v-list-item',{attrs:{\"data-test\":\"refresh\"},on:{\"click\":_vm.refresh}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\" mdi-refresh \")]),_c('v-list-item-title',[_vm._v(\" Refresh Display \")])],1),_c('v-list-item',{attrs:{\"data-test\":\"show-table\"},on:{\"click\":_vm.showTable}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\" mdi-timetable \")]),_c('v-list-item-title',[_vm._v(\" Show Table Display \")])],1),_c('v-list-item',{attrs:{\"data-test\":\"display-utc-time\"},on:{\"click\":_vm.updateTime}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\" mdi-clock \")]),_c('v-list-item-title',[_vm._v(\" Toggle UTC Display \")])],1),_c('v-list-item',{attrs:{\"data-test\":\"download-event-list\"},on:{\"click\":_vm.downloadEvents}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\" mdi-download \")]),_c('v-list-item-title',[_vm._v(\" Download Event List \")])],1)],1)],1),_c('v-menu',{attrs:{\"bottom\":\"\",\"right\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{attrs:{\"outlined\":\"\",\"data-test\":\"change-type\",\"width\":\"125\"}},[_c('span',[_vm._v(_vm._s(_vm.typeToLabel[_vm.type]))]),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\" mdi-menu-down \")])],1)],1)]}}])},[_c('v-list',[_c('v-list-item',{attrs:{\"data-test\":\"type-day\"},on:{\"click\":function($event){return _vm.updateType('day')}}},[_c('v-list-item-title',[_vm._v(\" Day \")])],1),_c('v-list-item',{attrs:{\"data-test\":\"type-four-day\"},on:{\"click\":function($event){return _vm.updateType('4day')}}},[_c('v-list-item-title',[_vm._v(\"4 Days\")])],1),_c('v-list-item',{attrs:{\"data-test\":\"type-week\"},on:{\"click\":function($event){return _vm.updateType('week')}}},[_c('v-list-item-title',[_vm._v(\" Week \")])],1)],1)],1)],1),(_vm.showEventTableDialog)?_c('event-list-dialog',{attrs:{\"events\":_vm.events,\"utc\":_vm.utc},model:{value:(_vm.showEventTableDialog),callback:function ($$v) {_vm.showEventTableDialog=$$v},expression:\"showEventTableDialog\"}}):_vm._e(),(_vm.showMetadataCreateDialog)?_c('metadata-create-dialog',{model:{value:(_vm.showMetadataCreateDialog),callback:function ($$v) {_vm.showMetadataCreateDialog=$$v},expression:\"showMetadataCreateDialog\"}}):_vm._e(),(_vm.showNarrationCreateDialog)?_c('narration-create-dialog',{model:{value:(_vm.showNarrationCreateDialog),callback:function ($$v) {_vm.showNarrationCreateDialog=$$v},expression:\"showNarrationCreateDialog\"}}):_vm._e(),(_vm.showActivityCreateDialog)?_c('activity-create-dialog',{attrs:{\"timelines\":_vm.timelines},model:{value:(_vm.showActivityCreateDialog),callback:function ($$v) {_vm.showActivityCreateDialog=$$v},expression:\"showActivityCreateDialog\"}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\"Events\")]),_c('v-spacer')],1),_c('v-data-table',{staticClass:\"mt-1\",attrs:{\"item-key\":\"eventId\",\"headers\":_vm.eventHeaders,\"items\":_vm.listData},scopedSlots:_vm._u([{key:\"no-data\",fn:function(){return [_c('span',[_vm._v(\" No events \")])]},proxy:true}]),model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <v-dialog v-model=\"show\" width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Events</span>\n <v-spacer />\n </v-system-bar>\n <v-data-table\n v-model=\"selected\"\n item-key=\"eventId\"\n class=\"mt-1\"\n :headers=\"eventHeaders\"\n :items=\"listData\"\n >\n <template v-slot:no-data>\n <span> No events </span>\n </template>\n </v-data-table>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { isValid, parse, format, getTime } from 'date-fns'\nimport TimeFilters from '@/tools/Calendar/Filters/timeFilters.js'\n\nexport default {\n components: {},\n mixins: [TimeFilters],\n props: {\n events: {\n type: Array,\n required: true,\n },\n utc: {\n type: Boolean,\n default: true,\n },\n value: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n selected: [],\n eventHeaders: [\n { text: 'Name', value: 'name' },\n { text: 'Start', value: 'startStr' },\n { text: 'Stop', value: 'stopStr' },\n { text: 'Type', value: 'type' },\n ],\n }\n },\n computed: {\n listData: function () {\n if (!this.events) return []\n let eventId = 0\n return this.events.map((event) => {\n eventId += 1\n let startStr, stopStr\n if (this.utc) {\n startStr = event.start.toUTCString()\n stopStr = event.end.toUTCString()\n } else {\n startStr = event.start.toLocaleString()\n stopStr = event.end.toLocaleString()\n }\n return {\n ...event,\n startStr,\n stopStr,\n eventId,\n }\n })\n },\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n mounted: function () {\n // console.log(this.events)\n },\n methods: {},\n}\n</script>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EventListDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EventListDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EventListDialog.vue?vue&type=template&id=2ee43f7e&\"\nimport script from \"./EventListDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./EventListDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-dialog',{attrs:{\"persistent\":\"\",\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.createActivity.apply(null, arguments)}}},[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\"Create Activity\")]),_c('v-spacer'),_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"close-activity-icon\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" mdi-close-box \")])],1)]}}])},[_c('span',[_vm._v(\" Close \")])])],1),_c('v-stepper',{attrs:{\"vertical\":\"\",\"non-linear\":\"\"},model:{value:(_vm.dialogStep),callback:function ($$v) {_vm.dialogStep=$$v},expression:\"dialogStep\"}},[_c('v-stepper-step',{attrs:{\"editable\":\"\",\"step\":\"1\"}},[_vm._v(\" Input start time, stop time \")]),_c('v-stepper-content',{attrs:{\"step\":\"1\"}},[_c('v-card-text',[_c('div',{staticClass:\"pa-2\"},[_c('v-select',{attrs:{\"items\":_vm.timelineNames,\"label\":\"Timeline\",\"data-test\":\"activity-select-timeline\"},scopedSlots:_vm._u([{key:\"item\",fn:function(ref){\nvar item = ref.item;\nvar attrs = ref.attrs;\nvar on = ref.on;\nreturn [_c('v-list-item',_vm._g(_vm._b({attrs:{\"data-test\":(\"activity-select-timeline-\" + item)}},'v-list-item',attrs,false),on),[_c('v-list-item-content',[_c('v-list-item-title',{domProps:{\"textContent\":_vm._s(item)}})],1)],1)]}}]),model:{value:(_vm.timeline),callback:function ($$v) {_vm.timeline=$$v},expression:\"timeline\"}}),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"date\",\"label\":\"Start Date\",\"rules\":[_vm.rules.required],\"data-test\":\"activity-start-date\"},model:{value:(_vm.startDate),callback:function ($$v) {_vm.startDate=$$v},expression:\"startDate\"}}),_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"time\",\"step\":\"1\",\"label\":\"Start Time\",\"rules\":[_vm.rules.required],\"data-test\":\"activity-start-time\"},model:{value:(_vm.startTime),callback:function ($$v) {_vm.startTime=$$v},expression:\"startTime\"}})],1),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"date\",\"label\":\"End Date\",\"rules\":[_vm.rules.required],\"data-test\":\"activity-stop-date\"},model:{value:(_vm.stopDate),callback:function ($$v) {_vm.stopDate=$$v},expression:\"stopDate\"}}),_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"time\",\"step\":\"1\",\"label\":\"End Time\",\"rules\":[_vm.rules.required],\"data-test\":\"activity-stop-time\"},model:{value:(_vm.stopTime),callback:function ($$v) {_vm.stopTime=$$v},expression:\"stopTime\"}})],1),_c('v-row',{staticClass:\"mx-2 mb-2\"},[_c('v-radio-group',{staticClass:\"mt-0\",attrs:{\"row\":\"\",\"hide-details\":\"\"},model:{value:(_vm.utcOrLocal),callback:function ($$v) {_vm.utcOrLocal=$$v},expression:\"utcOrLocal\"}},[_c('v-radio',{attrs:{\"label\":\"LST\",\"value\":\"loc\",\"data-test\":\"lst-radio\"}}),_c('v-radio',{attrs:{\"label\":\"UTC\",\"value\":\"utc\",\"data-test\":\"utc-radio\"}})],1)],1),_c('v-row',[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.timeError),expression:\"timeError\"}],staticClass:\"ma-2 red--text\",domProps:{\"textContent\":_vm._s(_vm.timeError)}})]),_c('v-row',{staticClass:\"mt-2\"},[_c('v-spacer'),_c('v-btn',{attrs:{\"data-test\":\"create-activity-step-two-btn\",\"color\":\"success\",\"disabled\":!!_vm.timeError},on:{\"click\":function($event){_vm.dialogStep = 2}}},[_vm._v(\" Continue \")])],1)],1)])],1),_c('v-stepper-step',{attrs:{\"editable\":\"\",\"step\":\"2\"}},[_vm._v(\" Activity type input \")]),_c('v-stepper-content',{attrs:{\"step\":\"2\"}},[_c('v-card-text',[_c('div',{staticClass:\"pa-2\"},[_c('v-select',{attrs:{\"items\":_vm.types,\"label\":\"Activity Type\",\"data-test\":\"activity-select-type\"},scopedSlots:_vm._u([{key:\"item\",fn:function(ref){\nvar item = ref.item;\nvar attrs = ref.attrs;\nvar on = ref.on;\nreturn [_c('v-list-item',_vm._g(_vm._b({attrs:{\"data-test\":(\"activity-select-type-\" + item)}},'v-list-item',attrs,false),on),[_c('v-list-item-content',[_c('v-list-item-title',{domProps:{\"textContent\":_vm._s(item)}})],1)],1)]}}]),model:{value:(_vm.kind),callback:function ($$v) {_vm.kind=$$v},expression:\"kind\"}}),(_vm.kind === 'COMMAND')?_c('div',[_c('v-text-field',{attrs:{\"type\":\"text\",\"label\":\"Command Input\",\"placeholder\":\"INST COLLECT with TYPE 0, DURATION 1, OPCODE 171, TEMP 0\",\"prefix\":\"cmd('\",\"suffix\":\"')\",\"hint\":\"Timeline runs commands with cmd_no_hazardous_check\",\"data-test\":\"activity-cmd\"},model:{value:(_vm.activityData),callback:function ($$v) {_vm.activityData=$$v},expression:\"activityData\"}})],1):(_vm.kind === 'SCRIPT')?_c('div',[_c('script-chooser',{on:{\"file\":_vm.fileHandler}}),_c('environment-chooser',{on:{\"selected\":_vm.selectedHandler}})],1):_c('div',[_c('span',{staticClass:\"ma-2\"},[_vm._v(\" No required input \")])]),_c('v-row',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.typeError),expression:\"typeError\"}]},[_c('span',{staticClass:\"ma-2 red--text\",domProps:{\"textContent\":_vm._s(_vm.typeError)}})]),_c('v-row',{staticClass:\"mt-2\"},[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\",\"data-test\":\"create-activity-cancel-btn\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" Cancel \")]),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"type\":\"submit\",\"data-test\":\"create-activity-submit-btn\",\"disabled\":!!_vm.timeError || !!_vm.typeError},on:{\"click\":function($event){$event.preventDefault();return _vm.createActivity.apply(null, arguments)}}},[_vm._v(\" Ok \")])],1)],1)])],1)],1)],1)])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addstopums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-dialog persistent v-model=\"show\" width=\"600\">\n <v-card>\n <form @submit.prevent=\"createActivity\">\n <v-system-bar>\n <v-spacer />\n <span>Create Activity</span>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon data-test=\"close-activity-icon\" @click=\"show = !show\">\n mdi-close-box\n </v-icon>\n </div>\n </template>\n <span> Close </span>\n </v-tooltip>\n </v-system-bar>\n <v-stepper v-model=\"dialogStep\" vertical non-linear>\n <v-stepper-step editable step=\"1\">\n Input start time, stop time\n </v-stepper-step>\n <v-stepper-content step=\"1\">\n <v-card-text>\n <div class=\"pa-2\">\n <v-select\n v-model=\"timeline\"\n :items=\"timelineNames\"\n label=\"Timeline\"\n data-test=\"activity-select-timeline\"\n >\n <template v-slot:item=\"{ item, attrs, on }\">\n <v-list-item\n v-on=\"on\"\n v-bind=\"attrs\" \n :data-test=\"`activity-select-timeline-${item}`\"\n >\n <v-list-item-content>\n <v-list-item-title v-text=\"item\" />\n </v-list-item-content>\n </v-list-item>\n </template>\n </v-select>\n <v-row dense>\n <v-text-field\n v-model=\"startDate\"\n type=\"date\"\n label=\"Start Date\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"activity-start-date\"\n />\n <v-text-field\n v-model=\"startTime\"\n type=\"time\"\n step=\"1\"\n label=\"Start Time\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"activity-start-time\"\n />\n </v-row>\n <v-row dense>\n <v-text-field\n v-model=\"stopDate\"\n type=\"date\"\n label=\"End Date\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"activity-stop-date\"\n />\n <v-text-field\n v-model=\"stopTime\"\n type=\"time\"\n step=\"1\"\n label=\"End Time\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"activity-stop-time\"\n />\n </v-row>\n <v-row class=\"mx-2 mb-2\">\n <v-radio-group\n v-model=\"utcOrLocal\"\n row\n hide-details\n class=\"mt-0\"\n >\n <v-radio label=\"LST\" value=\"loc\" data-test=\"lst-radio\" />\n <v-radio label=\"UTC\" value=\"utc\" data-test=\"utc-radio\" />\n </v-radio-group>\n </v-row>\n <v-row>\n <span\n class=\"ma-2 red--text\"\n v-show=\"timeError\"\n v-text=\"timeError\"\n />\n </v-row>\n <v-row class=\"mt-2\">\n <v-spacer />\n <v-btn\n @click=\"dialogStep = 2\"\n data-test=\"create-activity-step-two-btn\"\n color=\"success\"\n :disabled=\"!!timeError\"\n >\n Continue\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-stepper-content>\n <v-stepper-step editable step=\"2\">\n Activity type input\n </v-stepper-step>\n <v-stepper-content step=\"2\">\n <v-card-text>\n <div class=\"pa-2\">\n <v-select\n v-model=\"kind\"\n :items=\"types\"\n label=\"Activity Type\"\n data-test=\"activity-select-type\"\n >\n <template v-slot:item=\"{ item, attrs, on }\">\n <v-list-item\n v-on=\"on\"\n v-bind=\"attrs\" \n :data-test=\"`activity-select-type-${item}`\"\n >\n <v-list-item-content>\n <v-list-item-title v-text=\"item\" />\n </v-list-item-content>\n </v-list-item>\n </template>\n </v-select>\n <div v-if=\"kind === 'COMMAND'\">\n <v-text-field\n v-model=\"activityData\"\n type=\"text\"\n label=\"Command Input\"\n placeholder=\"INST COLLECT with TYPE 0, DURATION 1, OPCODE 171, TEMP 0\"\n prefix=\"cmd('\"\n suffix=\"')\"\n hint=\"Timeline runs commands with cmd_no_hazardous_check\"\n data-test=\"activity-cmd\"\n />\n </div>\n <div v-else-if=\"kind === 'SCRIPT'\">\n <script-chooser @file=\"fileHandler\" />\n <environment-chooser @selected=\"selectedHandler\" />\n </div>\n <div v-else>\n <span class=\"ma-2\"> No required input </span>\n </div>\n <v-row v-show=\"typeError\">\n <span class=\"ma-2 red--text\" v-text=\"typeError\" />\n </v-row>\n <v-row class=\"mt-2\">\n <v-spacer />\n <v-btn\n @click=\"show = !show\"\n outlined\n class=\"mx-2\"\n data-test=\"create-activity-cancel-btn\"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent=\"createActivity\"\n class=\"mx-2\"\n color=\"primary\"\n type=\"submit\"\n data-test=\"create-activity-submit-btn\"\n :disabled=\"!!timeError || !!typeError\"\n >\n Ok\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-stepper-content>\n </v-stepper>\n </form>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport { isValid, parse, format, getTime } from 'date-fns'\nimport Api from '@cosmosc2/tool-common/src/services/api'\nimport EnvironmentChooser from '@cosmosc2/tool-common/src/components/EnvironmentChooser'\nimport ScriptChooser from '@cosmosc2/tool-common/src/components/ScriptChooser'\nimport TimeFilters from '@/tools/Calendar/Filters/timeFilters.js'\n\nexport default {\n components: {\n EnvironmentChooser,\n ScriptChooser,\n },\n props: {\n timelines: {\n type: Array,\n required: true,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n mixins: [TimeFilters],\n data() {\n return {\n timeline: null,\n dialogStep: 1,\n startDate: '',\n startTime: '',\n stopDate: '',\n stopTime: '',\n utcOrLocal: 'loc',\n kind: '',\n types: ['COMMAND', 'SCRIPT', 'RESERVE'],\n activityData: '',\n activityEnvironment: [],\n rules: {\n required: (value) => !!value || 'Required',\n },\n }\n },\n mounted: function () {\n this.updateValues()\n },\n computed: {\n timeError: function () {\n if (!this.timeline) {\n return 'Activity must have a timeline selected.'\n }\n const now = new Date()\n const start = Date.parse(`${this.startDate}T${this.startTime}`)\n const stop = Date.parse(`${this.stopDate}T${this.stopTime}`)\n if (start === stop) {\n return 'Invalid start, stop time. Activity must have different start and stop times.'\n }\n if (now > start) {\n return 'Invalid start time. Activity must be in the future.'\n }\n if (start > stop) {\n return 'Invalid start time. Activity start before stop.'\n }\n return null\n },\n typeError: function () {\n if (this.kind !== 'RESERVE' && !this.activityData) {\n return 'No data is selected or inputted'\n }\n return null\n },\n timelineNames: function () {\n return this.timelines.map((timeline) => {\n return timeline.name\n })\n },\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n changeKind: function (inputKind) {\n if (inputKind === this.kind) {\n return\n }\n this.kind = inputKind\n this.activityData = ''\n },\n fileHandler: function (event) {\n this.activityData = event ? event : null\n },\n selectedHandler: function (event) {\n this.activityEnvironment = event ? event : null\n },\n updateValues: function () {\n this.dialogStep = 1\n this.startDate = format(new Date(), 'yyyy-MM-dd')\n this.startTime = format(new Date(), 'HH:mm:ss')\n this.stopDate = format(new Date(), 'yyyy-MM-dd')\n this.stopTime = format(new Date(), 'HH:mm:ss')\n this.utcOrLocal = 'loc'\n this.kind = ''\n this.activityData = ''\n this.activityEnvironment = []\n },\n createActivity: function () {\n // Call the api to create a new activity to add to the activities array\n const start = this.toIsoString(\n Date.parse(`${this.startDate}T${this.startTime}`)\n )\n const stop = this.toIsoString(\n Date.parse(`${this.stopDate}T${this.stopTime}`)\n )\n const kind = this.kind.toLowerCase()\n let data = { environment: this.activityEnvironment }\n data[kind] = this.activityData\n Api.post(`/cosmos-api/timeline/${this.timeline}/activities`, {\n data: { start, stop, kind, data },\n }).then((response) => {\n const activityTime = this.generateDateTime(\n new Date(response.data.start * 1000)\n )\n this.$notify.normal({\n title: 'Created Activity',\n body: `${activityTime} (${response.data.start}) on timeline: ${response.data.name}`,\n })\n })\n this.show = !this.show\n this.updateValues()\n },\n },\n}\n</script>\n\n<style scoped>\n.v-stepper--vertical .v-stepper__content {\n width: auto;\n margin: 0px 0px 0px 36px;\n padding: 0px;\n}\n</style>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ActivityCreateDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ActivityCreateDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ActivityCreateDialog.vue?vue&type=template&id=5a2b1c4a&scoped=true&\"\nimport script from \"./ActivityCreateDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./ActivityCreateDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ActivityCreateDialog.vue?vue&type=style&index=0&id=5a2b1c4a&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5a2b1c4a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-dialog',{attrs:{\"persistent\":\"\",\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.createMetadata.apply(null, arguments)}}},[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\"Create Chronicle Metadata\")]),_c('v-spacer'),_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"close-metadata-icon\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" mdi-close-box \")])],1)]}}])},[_c('span',[_vm._v(\" Close \")])])],1),_c('v-stepper',{attrs:{\"vertical\":\"\",\"non-linear\":\"\"},model:{value:(_vm.dialogStep),callback:function ($$v) {_vm.dialogStep=$$v},expression:\"dialogStep\"}},[_c('v-stepper-step',{attrs:{\"editable\":\"\",\"step\":\"1\"}},[_vm._v(\" Input start time \")]),_c('v-stepper-content',{attrs:{\"step\":\"1\"}},[_c('v-card-text',[_c('div',{staticClass:\"pa-2\"},[_c('v-select',{attrs:{\"items\":_vm.targets,\"label\":\"Target\"},model:{value:(_vm.target),callback:function ($$v) {_vm.target=$$v},expression:\"target\"}}),_c('color-select-form',{model:{value:(_vm.color),callback:function ($$v) {_vm.color=$$v},expression:\"color\"}}),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-checkbox',{attrs:{\"label\":\"Input Metadata Time\"},model:{value:(_vm.userProvidedTime),callback:function ($$v) {_vm.userProvidedTime=$$v},expression:\"userProvidedTime\"}})],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.userProvidedTime),expression:\"userProvidedTime\"}]},[_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"date\",\"label\":\"Start Date\",\"rules\":[_vm.rules.required],\"data-test\":\"metadata-start-date\"},model:{value:(_vm.startDate),callback:function ($$v) {_vm.startDate=$$v},expression:\"startDate\"}}),_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"time\",\"step\":\"1\",\"label\":\"Start Time\",\"rules\":[_vm.rules.required],\"data-test\":\"metadata-start-time\"},model:{value:(_vm.startTime),callback:function ($$v) {_vm.startTime=$$v},expression:\"startTime\"}})],1),_c('v-row',{staticClass:\"mx-2 mb-2\"},[_c('v-radio-group',{staticClass:\"mt-0\",attrs:{\"row\":\"\",\"hide-details\":\"\"},model:{value:(_vm.utcOrLocal),callback:function ($$v) {_vm.utcOrLocal=$$v},expression:\"utcOrLocal\"}},[_c('v-radio',{attrs:{\"label\":\"LST\",\"value\":\"loc\",\"data-test\":\"lst-radio\"}}),_c('v-radio',{attrs:{\"label\":\"UTC\",\"value\":\"utc\",\"data-test\":\"utc-radio\"}})],1)],1)],1),_c('v-row',[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.timeError),expression:\"timeError\"}],staticClass:\"ma-2 red--text\",domProps:{\"textContent\":_vm._s(_vm.timeError)}})]),_c('v-row',{staticClass:\"mt-2\"},[_c('v-spacer'),_c('v-btn',{attrs:{\"data-test\":\"create-metadata-step-two-btn\",\"color\":\"success\",\"disabled\":!!_vm.timeError},on:{\"click\":function($event){_vm.dialogStep = 2}}},[_vm._v(\" Continue \")])],1)],1)])],1),_c('v-stepper-step',{attrs:{\"editable\":\"\",\"step\":\"2\"}},[_vm._v(\" Metadata input \")]),_c('v-stepper-content',{attrs:{\"step\":\"2\"}},[_c('v-card-text',[_c('div',{staticClass:\"pa-2\"},[_c('div',{staticStyle:{\"min-height\":\"200px\"}},[_c('metadata-input-form',{model:{value:(_vm.metadata),callback:function ($$v) {_vm.metadata=$$v},expression:\"metadata\"}})],1),_c('v-row',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.typeError),expression:\"typeError\"}]},[_c('span',{staticClass:\"ma-2 red--text\",domProps:{\"textContent\":_vm._s(_vm.typeError)}})]),_c('v-row',{staticClass:\"mt-2\"},[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\",\"data-test\":\"create-metadata-cancel-btn\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" Cancel \")]),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"type\":\"submit\",\"data-test\":\"create-metadata-submit-btn\",\"disabled\":!!_vm.timeError || !!_vm.typeError},on:{\"click\":function($event){$event.preventDefault();return _vm.createMetadata.apply(null, arguments)}}},[_vm._v(\" Ok \")])],1)],1)])],1)],1)],1)])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addstopums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-dialog persistent v-model=\"show\" width=\"600\">\n <v-card>\n <form @submit.prevent=\"createMetadata\">\n <v-system-bar>\n <v-spacer />\n <span>Create Chronicle Metadata</span>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon data-test=\"close-metadata-icon\" @click=\"show = !show\">\n mdi-close-box\n </v-icon>\n </div>\n </template>\n <span> Close </span>\n </v-tooltip>\n </v-system-bar>\n <v-stepper v-model=\"dialogStep\" vertical non-linear>\n <v-stepper-step editable step=\"1\">\n Input start time\n </v-stepper-step>\n <v-stepper-content step=\"1\">\n <v-card-text>\n <div class=\"pa-2\">\n <v-select v-model=\"target\" :items=\"targets\" label=\"Target\" />\n <color-select-form v-model=\"color\" />\n <v-row dense>\n <v-checkbox\n v-model=\"userProvidedTime\"\n label=\"Input Metadata Time\"\n />\n </v-row>\n <div v-show=\"userProvidedTime\">\n <v-row dense>\n <v-text-field\n v-model=\"startDate\"\n type=\"date\"\n label=\"Start Date\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"metadata-start-date\"\n />\n <v-text-field\n v-model=\"startTime\"\n type=\"time\"\n step=\"1\"\n label=\"Start Time\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"metadata-start-time\"\n />\n </v-row>\n <v-row class=\"mx-2 mb-2\">\n <v-radio-group\n v-model=\"utcOrLocal\"\n row\n hide-details\n class=\"mt-0\"\n >\n <v-radio\n label=\"LST\"\n value=\"loc\"\n data-test=\"lst-radio\"\n />\n <v-radio\n label=\"UTC\"\n value=\"utc\"\n data-test=\"utc-radio\"\n />\n </v-radio-group>\n </v-row>\n </div>\n <v-row>\n <span\n class=\"ma-2 red--text\"\n v-show=\"timeError\"\n v-text=\"timeError\"\n />\n </v-row>\n <v-row class=\"mt-2\">\n <v-spacer />\n <v-btn\n @click=\"dialogStep = 2\"\n data-test=\"create-metadata-step-two-btn\"\n color=\"success\"\n :disabled=\"!!timeError\"\n >\n Continue\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-stepper-content>\n <v-stepper-step editable step=\"2\"> Metadata input </v-stepper-step>\n <v-stepper-content step=\"2\">\n <v-card-text>\n <div class=\"pa-2\">\n <div style=\"min-height: 200px\">\n <metadata-input-form v-model=\"metadata\" />\n </div>\n <v-row v-show=\"typeError\">\n <span class=\"ma-2 red--text\" v-text=\"typeError\" />\n </v-row>\n <v-row class=\"mt-2\">\n <v-spacer />\n <v-btn\n @click=\"show = !show\"\n outlined\n class=\"mx-2\"\n data-test=\"create-metadata-cancel-btn\"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent=\"createMetadata\"\n class=\"mx-2\"\n color=\"primary\"\n type=\"submit\"\n data-test=\"create-metadata-submit-btn\"\n :disabled=\"!!timeError || !!typeError\"\n >\n Ok\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-stepper-content>\n </v-stepper>\n </form>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport { isValid, parse, format, getTime } from 'date-fns'\nimport Api from '@cosmosc2/tool-common/src/services/api'\nimport { CosmosApi } from '@cosmosc2/tool-common/src/services/cosmos-api'\n\nimport TimeFilters from '@/tools/Calendar/Filters/timeFilters.js'\nimport ColorSelectForm from '@/tools/Calendar/Forms/ColorSelectForm'\nimport MetadataInputForm from '@/tools/Calendar/Forms/MetadataInputForm'\n\nexport default {\n components: {\n ColorSelectForm,\n MetadataInputForm,\n },\n props: {\n value: Boolean, // value is the default prop when using v-model\n },\n mixins: [TimeFilters],\n data() {\n return {\n scope: localStorage.scope,\n dialogStep: 1,\n target: '',\n targets: [],\n startDate: '',\n startTime: '',\n utcOrLocal: 'loc',\n userProvidedTime: false,\n color: '#003784',\n metadata: [],\n rules: {\n required: (value) => !!value || 'Required',\n },\n }\n },\n mounted: function () {\n this.updateValues()\n this.updateTargets()\n },\n computed: {\n timeError: function () {\n if (!this.target) {\n return 'Metadata must be associated with a target.'\n }\n if (!this.color) {\n return 'A color is required.'\n }\n if (!this.userProvidedTime) {\n return null\n }\n const now = new Date()\n const start = Date.parse(`${this.startDate}T${this.startTime}`)\n if (now < start) {\n return 'Invalid start time. Can not be in the future'\n }\n return null\n },\n typeError: function () {\n if (this.metadata.length < 1) {\n return 'Please enter a value in the metadata table.'\n }\n const emptyKeyValue = this.metadata.find(\n (meta) => meta.key === '' || meta.value === ''\n )\n if (emptyKeyValue) {\n return 'Missing or empty key, value in the metadata table.'\n }\n return null\n },\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n updateValues: function () {\n this.dialogStep = 1\n this.startDate = format(new Date(), 'yyyy-MM-dd')\n this.startTime = format(new Date(), 'HH:mm:ss')\n this.metadata = []\n this.color = '#003784'\n },\n updateTargets: function () {\n new CosmosApi().get_target_list().then((data) => {\n this.targets = data\n this.targets.unshift(localStorage.scope)\n this.target = this.targets[0]\n })\n },\n createMetadata: function () {\n const color = this.color\n const metadata = this.metadata.reduce((result, element) => {\n result[element.key] = element.value\n return result\n }, {})\n const target = this.target\n const data = { color, target, metadata }\n if (this.userProvidedTime) {\n data.start = this.toIsoString(\n Date.parse(`${this.startDate}T${this.startTime}`)\n )\n }\n Api.post('/cosmos-api/metadata', {\n data,\n }).then((response) => {\n this.$notify.normal({\n title: 'Created new Metadata',\n body: `Metadata: (${response.data.start})`,\n })\n })\n this.show = !this.show\n this.updateValues()\n },\n },\n}\n</script>\n\n<style scoped>\n.v-stepper--vertical .v-stepper__content {\n width: auto;\n margin: 0px 0px 0px 36px;\n padding: 0px;\n}\n</style>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MetadataCreateDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MetadataCreateDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MetadataCreateDialog.vue?vue&type=template&id=3b7745ff&scoped=true&\"\nimport script from \"./MetadataCreateDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./MetadataCreateDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MetadataCreateDialog.vue?vue&type=style&index=0&id=3b7745ff&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3b7745ff\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-dialog',{attrs:{\"persistent\":\"\",\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.createNarrative.apply(null, arguments)}}},[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\"Create Chronicle Narrative\")]),_c('v-spacer'),_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"close-narrative-icon\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" mdi-close-box \")])],1)]}}])},[_c('span',[_vm._v(\" Close \")])])],1),_c('v-stepper',{attrs:{\"vertical\":\"\",\"non-linear\":\"\"},model:{value:(_vm.dialogStep),callback:function ($$v) {_vm.dialogStep=$$v},expression:\"dialogStep\"}},[_c('v-stepper-step',{attrs:{\"editable\":\"\",\"step\":\"1\"}},[_vm._v(\" Input start time, stop time \")]),_c('v-stepper-content',{attrs:{\"step\":\"1\"}},[_c('v-card-text',[_c('div',{staticClass:\"pa-2\"},[_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"date\",\"label\":\"Start Date\",\"rules\":[_vm.rules.required],\"data-test\":\"narrative-start-date\"},model:{value:(_vm.startDate),callback:function ($$v) {_vm.startDate=$$v},expression:\"startDate\"}}),_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"time\",\"step\":\"1\",\"label\":\"Start Time\",\"rules\":[_vm.rules.required],\"data-test\":\"narrative-start-time\"},model:{value:(_vm.startTime),callback:function ($$v) {_vm.startTime=$$v},expression:\"startTime\"}})],1),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"date\",\"label\":\"End Date\",\"rules\":[_vm.rules.required],\"data-test\":\"narrative-stop-date\"},model:{value:(_vm.stopDate),callback:function ($$v) {_vm.stopDate=$$v},expression:\"stopDate\"}}),_c('v-text-field',{staticClass:\"mx-1\",attrs:{\"type\":\"time\",\"step\":\"1\",\"label\":\"End Time\",\"rules\":[_vm.rules.required],\"data-test\":\"narrative-stop-time\"},model:{value:(_vm.stopTime),callback:function ($$v) {_vm.stopTime=$$v},expression:\"stopTime\"}})],1),_c('v-row',{staticClass:\"mx-2 mb-2\"},[_c('v-radio-group',{staticClass:\"mt-0\",attrs:{\"row\":\"\",\"hide-details\":\"\"},model:{value:(_vm.utcOrLocal),callback:function ($$v) {_vm.utcOrLocal=$$v},expression:\"utcOrLocal\"}},[_c('v-radio',{attrs:{\"label\":\"LST\",\"value\":\"loc\",\"data-test\":\"lst-radio\"}}),_c('v-radio',{attrs:{\"label\":\"UTC\",\"value\":\"utc\",\"data-test\":\"utc-radio\"}})],1)],1),_c('v-row',[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.timeError),expression:\"timeError\"}],staticClass:\"ma-2 red--text\",domProps:{\"textContent\":_vm._s(_vm.timeError)}})]),_c('v-row',{staticClass:\"mt-2\"},[_c('v-spacer'),_c('v-btn',{attrs:{\"data-test\":\"create-narrative-step-two-btn\",\"color\":\"success\",\"disabled\":!!_vm.timeError},on:{\"click\":function($event){_vm.dialogStep = 2}}},[_vm._v(\" Continue \")])],1)],1)])],1),_c('v-stepper-step',{attrs:{\"editable\":\"\",\"step\":\"2\"}},[_vm._v(\" Input Description \")]),_c('v-stepper-content',{attrs:{\"step\":\"2\"}},[_c('v-card-text',[_c('div',{staticClass:\"pa-2\"},[_c('div',[_c('color-select-form',{model:{value:(_vm.color),callback:function ($$v) {_vm.color=$$v},expression:\"color\"}})],1),_c('div',[_c('v-text-field',{attrs:{\"type\":\"text\",\"label\":\"Narrative Description\",\"data-test\":\"create-narrative-description\"},model:{value:(_vm.description),callback:function ($$v) {_vm.description=$$v},expression:\"description\"}})],1),_c('v-row',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.typeError),expression:\"typeError\"}]},[_c('span',{staticClass:\"ma-2 red--text\",domProps:{\"textContent\":_vm._s(_vm.typeError)}})]),_c('v-row',{staticClass:\"mt-2\"},[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\",\"data-test\":\"create-narrative-cancel-btn\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" Cancel \")]),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"type\":\"submit\",\"data-test\":\"create-narrative-submit-btn\",\"disabled\":!!_vm.timeError || !!_vm.typeError},on:{\"click\":function($event){$event.preventDefault();return _vm.createNarrative.apply(null, arguments)}}},[_vm._v(\" Ok \")])],1)],1)])],1)],1)],1)])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addstopums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-dialog persistent v-model=\"show\" width=\"600\">\n <v-card>\n <form @submit.prevent=\"createNarrative\">\n <v-system-bar>\n <v-spacer />\n <span>Create Chronicle Narrative</span>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon\n data-test=\"close-narrative-icon\"\n @click=\"show = !show\"\n >\n mdi-close-box\n </v-icon>\n </div>\n </template>\n <span> Close </span>\n </v-tooltip>\n </v-system-bar>\n <v-stepper v-model=\"dialogStep\" vertical non-linear>\n <v-stepper-step editable step=\"1\">\n Input start time, stop time\n </v-stepper-step>\n <v-stepper-content step=\"1\">\n <v-card-text>\n <div class=\"pa-2\">\n <v-row dense>\n <v-text-field\n v-model=\"startDate\"\n type=\"date\"\n label=\"Start Date\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"narrative-start-date\"\n />\n <v-text-field\n v-model=\"startTime\"\n type=\"time\"\n step=\"1\"\n label=\"Start Time\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"narrative-start-time\"\n />\n </v-row>\n <v-row dense>\n <v-text-field\n v-model=\"stopDate\"\n type=\"date\"\n label=\"End Date\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"narrative-stop-date\"\n />\n <v-text-field\n v-model=\"stopTime\"\n type=\"time\"\n step=\"1\"\n label=\"End Time\"\n class=\"mx-1\"\n :rules=\"[rules.required]\"\n data-test=\"narrative-stop-time\"\n />\n </v-row>\n <v-row class=\"mx-2 mb-2\">\n <v-radio-group\n v-model=\"utcOrLocal\"\n row\n hide-details\n class=\"mt-0\"\n >\n <v-radio label=\"LST\" value=\"loc\" data-test=\"lst-radio\" />\n <v-radio label=\"UTC\" value=\"utc\" data-test=\"utc-radio\" />\n </v-radio-group>\n </v-row>\n <v-row>\n <span\n class=\"ma-2 red--text\"\n v-show=\"timeError\"\n v-text=\"timeError\"\n />\n </v-row>\n <v-row class=\"mt-2\">\n <v-spacer />\n <v-btn\n @click=\"dialogStep = 2\"\n data-test=\"create-narrative-step-two-btn\"\n color=\"success\"\n :disabled=\"!!timeError\"\n >\n Continue\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-stepper-content>\n <v-stepper-step editable step=\"2\">\n Input Description\n </v-stepper-step>\n <v-stepper-content step=\"2\">\n <v-card-text>\n <div class=\"pa-2\">\n <div>\n <color-select-form v-model=\"color\" />\n </div>\n <div>\n <v-text-field\n v-model=\"description\"\n type=\"text\"\n label=\"Narrative Description\"\n data-test=\"create-narrative-description\"\n />\n </div>\n <v-row v-show=\"typeError\">\n <span class=\"ma-2 red--text\" v-text=\"typeError\" />\n </v-row>\n <v-row class=\"mt-2\">\n <v-spacer />\n <v-btn\n @click=\"show = !show\"\n outlined\n class=\"mx-2\"\n data-test=\"create-narrative-cancel-btn\"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent=\"createNarrative\"\n class=\"mx-2\"\n color=\"primary\"\n type=\"submit\"\n data-test=\"create-narrative-submit-btn\"\n :disabled=\"!!timeError || !!typeError\"\n >\n Ok\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-stepper-content>\n </v-stepper>\n </form>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport { isValid, parse, format, getTime } from 'date-fns'\nimport Api from '@cosmosc2/tool-common/src/services/api'\nimport TimeFilters from '@/tools/Calendar/Filters/timeFilters.js'\nimport ColorSelectForm from '@/tools/Calendar/Forms/ColorSelectForm'\n\nexport default {\n components: {\n ColorSelectForm,\n },\n props: {\n value: Boolean, // value is the default prop when using v-model\n },\n mixins: [TimeFilters],\n data() {\n return {\n dialogStep: 1,\n startDate: '',\n startTime: '',\n stopDate: '',\n stopTime: '',\n utcOrLocal: 'loc',\n description: '',\n color: '#8F3400',\n rules: {\n required: (value) => !!value || 'Required',\n },\n }\n },\n mounted: function () {\n this.updateValues()\n },\n computed: {\n timeError: function () {\n const now = new Date()\n const start = Date.parse(`${this.startDate}T${this.startTime}`)\n const stop = Date.parse(`${this.stopDate}T${this.stopTime}`)\n if (start === stop) {\n return 'Invalid start, stop time. Narrations must have different start and stop times.'\n }\n if (start > stop) {\n return 'Invalid start time. Narrations start before stop.'\n }\n return null\n },\n typeError: function () {\n if (!this.color) {\n return 'A color is required.'\n }\n if (!this.description) {\n return 'A description is required for a valid narrative.'\n }\n return null\n },\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n updateValues: function () {\n this.dialogStep = 1\n this.startDate = format(new Date(), 'yyyy-MM-dd')\n this.startTime = format(new Date(), 'HH:mm:ss')\n this.stopDate = format(new Date(), 'yyyy-MM-dd')\n this.stopTime = format(new Date(), 'HH:mm:ss')\n this.utcOrLocal = 'loc'\n this.color = '#8F3400'\n this.description = ''\n },\n createNarrative: function () {\n const start = this.toIsoString(\n Date.parse(`${this.startDate}T${this.startTime}`)\n )\n const stop = this.toIsoString(\n Date.parse(`${this.stopDate}T${this.stopTime}`)\n )\n const color = this.color\n const description = this.description\n Api.post('/cosmos-api/narrative', {\n data: { start, stop, color, description },\n }).then((response) => {\n const desc =\n response.data.description.length > 16\n ? `${response.data.description.substring(0, 16)}...`\n : response.data.description\n this.$notify.normal({\n title: 'Created new Chronicle Narrative',\n body: `Narrative: (${response.data.start}) created: \"${desc}\"`,\n })\n })\n this.show = !this.show\n this.updateValues()\n },\n },\n}\n</script>\n\n<style scoped>\n.v-stepper--vertical .v-stepper__content {\n width: auto;\n margin: 0px 0px 0px 36px;\n padding: 0px;\n}\n</style>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NarrationCreateDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NarrationCreateDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NarrationCreateDialog.vue?vue&type=template&id=3c724330&scoped=true&\"\nimport script from \"./NarrationCreateDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./NarrationCreateDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NarrationCreateDialog.vue?vue&type=style&index=0&id=3c724330&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3c724330\",\n null\n \n)\n\nexport default component.exports","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-toolbar class=\"my-1\">\n <v-menu bottom right>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-bind=\"attrs\" v-on=\"on\">\n <v-btn data-test=\"create-event\" outlined>\n <v-icon left> mdi-plus-box </v-icon>\n <span> Create </span>\n <v-icon right> mdi-menu-down </v-icon>\n </v-btn>\n </div>\n </template>\n <v-list>\n <v-list-item\n data-test=\"narrative\"\n @click=\"showNarrationCreateDialog = true\"\n >\n <v-icon left> mdi-calendar-clock </v-icon>\n <v-list-item-title> Chronicle Narration </v-list-item-title>\n </v-list-item>\n <v-list-item\n data-test=\"metadata\"\n @click=\"showMetadataCreateDialog = true\"\n >\n <v-icon left> mdi-calendar-check </v-icon>\n <v-list-item-title> Chronicle Metadata </v-list-item-title>\n </v-list-item>\n <v-list-item\n data-test=\"activity\"\n @click=\"showActivityCreateDialog = true\"\n >\n <v-icon left> mdi-calendar-question </v-icon>\n <v-list-item-title> Timeline Activity </v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n <v-btn outlined class=\"mx-3\" data-test=\"today\" @click=\"setToday\">\n Today\n </v-btn>\n <v-btn fab text small data-test=\"prev\" @click=\"prev\">\n <v-icon small> mdi-chevron-left </v-icon>\n </v-btn>\n <v-btn fab text small data-test=\"next\" @click=\"next\">\n <v-icon small> mdi-chevron-right </v-icon>\n </v-btn>\n <!--- SPACER --->\n <v-spacer />\n <v-toolbar-title v-text=\"title\" />\n <v-spacer />\n <!--- SPACER --->\n <v-menu bottom right>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-bind=\"attrs\" v-on=\"on\">\n <v-btn icon data-test=\"settings\" class=\"mx-2\">\n <v-icon> mdi-cog </v-icon>\n </v-btn>\n </div>\n </template>\n <v-list>\n <v-list-item data-test=\"refresh\" @click=\"refresh\">\n <v-icon left> mdi-refresh </v-icon>\n <v-list-item-title> Refresh Display </v-list-item-title>\n </v-list-item>\n <v-list-item data-test=\"show-table\" @click=\"showTable\">\n <v-icon left> mdi-timetable </v-icon>\n <v-list-item-title> Show Table Display </v-list-item-title>\n </v-list-item>\n <v-list-item data-test=\"display-utc-time\" @click=\"updateTime\">\n <v-icon left> mdi-clock </v-icon>\n <v-list-item-title> Toggle UTC Display </v-list-item-title>\n </v-list-item>\n <v-list-item data-test=\"download-event-list\" @click=\"downloadEvents\">\n <v-icon left> mdi-download </v-icon>\n <v-list-item-title> Download Event List </v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n <v-menu bottom right>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-bind=\"attrs\" v-on=\"on\">\n <v-btn outlined data-test=\"change-type\" width=\"125\">\n <span>{{ typeToLabel[type] }}</span>\n <v-icon right> mdi-menu-down </v-icon>\n </v-btn>\n </div>\n </template>\n <v-list>\n <v-list-item data-test=\"type-day\" @click=\"updateType('day')\">\n <v-list-item-title> Day </v-list-item-title>\n </v-list-item>\n <v-list-item data-test=\"type-four-day\" @click=\"updateType('4day')\">\n <v-list-item-title>4 Days</v-list-item-title>\n </v-list-item>\n <v-list-item data-test=\"type-week\" @click=\"updateType('week')\">\n <v-list-item-title> Week </v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n </v-toolbar>\n <!--- menus --->\n <event-list-dialog\n v-if=\"showEventTableDialog\"\n v-model=\"showEventTableDialog\"\n :events=\"events\"\n :utc=\"utc\"\n />\n <metadata-create-dialog\n v-if=\"showMetadataCreateDialog\"\n v-model=\"showMetadataCreateDialog\"\n />\n <narration-create-dialog\n v-if=\"showNarrationCreateDialog\"\n v-model=\"showNarrationCreateDialog\"\n />\n <activity-create-dialog\n v-if=\"showActivityCreateDialog\"\n v-model=\"showActivityCreateDialog\"\n :timelines=\"timelines\"\n />\n </div>\n</template>\n\n<script>\nimport Api from '@cosmosc2/tool-common/src/services/api'\nimport { format } from 'date-fns'\n\nimport EventListDialog from '@/tools/Calendar/Dialogs/EventListDialog'\nimport ActivityCreateDialog from '@/tools/Calendar/Dialogs/ActivityCreateDialog'\nimport MetadataCreateDialog from '@/tools/Calendar/Dialogs/MetadataCreateDialog'\nimport NarrationCreateDialog from '@/tools/Calendar/Dialogs/NarrationCreateDialog'\n\nexport default {\n components: {\n EventListDialog,\n ActivityCreateDialog,\n MetadataCreateDialog,\n NarrationCreateDialog,\n },\n props: {\n timelines: {\n type: Array,\n required: true,\n },\n events: {\n type: Array,\n required: true,\n },\n value: {\n type: Object,\n required: true,\n },\n },\n data() {\n return {\n typeToLabel: {\n week: 'Week',\n '4day': '4 Days',\n day: 'Day',\n },\n showEventTableDialog: false,\n showActivityCreateDialog: false,\n showMetadataCreateDialog: false,\n showNarrationCreateDialog: false,\n }\n },\n computed: {\n monthNames: function () {\n return [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n ]\n },\n title: function () {\n const d = this.value.focus ? new Date(this.value.focus) : new Date()\n const month = this.monthNames[d.getUTCMonth()]\n const year = d.getUTCFullYear()\n return `${month} ${year}`\n },\n utc: function () {\n return this.value.utc\n },\n focus: function () {\n return this.value.focus\n },\n type: function () {\n return this.value.type\n },\n calendarConfiguration: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n downloadEvents: function (type) {\n const output = JSON.stringify(this.events, null, 2)\n const blob = new Blob([output], {\n type: 'application/json',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute(\n 'download',\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss') + '_calendar_events.json'\n )\n link.click()\n },\n showTable: function () {\n this.showEventTableDialog = !this.showEventTableDialog\n },\n updateTime: function (type) {\n this.calendarConfiguration.utc = !this.calendarConfiguration.utc\n },\n updateType: function (type) {\n this.calendarConfiguration = {\n ...this.calendarConfiguration,\n type: type,\n }\n this.type = type\n },\n setToday: function () {\n this.calendarConfiguration = {\n ...this.calendarConfiguration,\n focus: '',\n }\n },\n prev() {\n this.$emit('action', { method: 'prev' })\n },\n next() {\n this.$emit('action', { method: 'next' })\n },\n refresh() {\n this.$emit('action', { method: 'refresh' })\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./CalendarToolbar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./CalendarToolbar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CalendarToolbar.vue?vue&type=template&id=7a31a61d&\"\nimport script from \"./CalendarToolbar.vue?vue&type=script&lang=js&\"\nexport * from \"./CalendarToolbar.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-toolbar',{attrs:{\"dense\":\"\"}},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{attrs:{\"icon\":\"\",\"data-test\":\"create-timeline\"},on:{\"click\":function($event){_vm.showCreateDialog = true}}},[_c('v-icon',[_vm._v(\"mdi-calendar-plus\")])],1)],1)]}}])},[_c('span',[_vm._v(\"Create Timeline\")])]),_c('v-spacer'),_c('v-spacer'),_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{attrs:{\"icon\":\"\",\"data-test\":\"view-environment-dialog\"},on:{\"click\":function($event){_vm.showEnvironmentDialog = true}}},[_c('v-icon',[_vm._v(\"mdi-library\")])],1)],1)]}}])},[_c('span',[_vm._v(\"Environment Dialog\")])])],1),_c('v-list',{attrs:{\"flat\":\"\"}},[_c('v-subheader',{staticStyle:{\"height\":\"25px\"}},[_vm._v(\"Chronicles\")]),_c('v-list-item-group',{attrs:{\"multiple\":\"\"},on:{\"change\":_vm.select},model:{value:(_vm.selectedChronicles),callback:function ($$v) {_vm.selectedChronicles=$$v},expression:\"selectedChronicles\"}},[_c('v-list-item',{attrs:{\"data-test\":\"select-metadata\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar active = ref.active;\nreturn [_c('v-list-item-action',[_c('v-checkbox',{attrs:{\"input-value\":active,\"color\":\"white accent-4\"}})],1),_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(\" Metadata \")])],1)]}}])}),_c('v-list-item',{attrs:{\"data-test\":\"select-narrative\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar active = ref.active;\nreturn [_c('v-list-item-action',[_c('v-checkbox',{attrs:{\"input-value\":active,\"color\":\"white accent-4\"}})],1),_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(\" Narrative \")])],1)]}}])})],1),_c('v-subheader',{staticStyle:{\"height\":\"25px\"}},[_vm._v(\"Timelines\")]),_c('v-list-item-group',{attrs:{\"multiple\":\"\"},on:{\"change\":_vm.select},model:{value:(_vm.selectedTimelines),callback:function ($$v) {_vm.selectedTimelines=$$v},expression:\"selectedTimelines\"}},[_vm._l((_vm.timelines),function(timeline){return [_c('v-list-item',{key:(\"timeline-\" + (timeline.name)),attrs:{\"value\":timeline,\"data-test\":(\"select-timeline-\" + (timeline.name))},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar active = ref.active;\nreturn [_c('v-list-item-action',[_c('v-checkbox',{attrs:{\"input-value\":active,\"color\":\"white accent-4\"}})],1),_c('v-list-item-content',[_c('v-badge',{attrs:{\"dot\":\"\",\"bordered\":\"\",\"inline\":\"\",\"tile\":\"\",\"color\":timeline.color,\"value\":timeline.messages}},[_c('v-list-item-title',{domProps:{\"textContent\":_vm._s(timeline.name)}})],1)],1),_c('v-list-item-action',[_c('selector-options',{attrs:{\"timeline\":timeline}})],1)]}}],null,true)})]})],2)],1),_c('environment-dialog',{model:{value:(_vm.showEnvironmentDialog),callback:function ($$v) {_vm.showEnvironmentDialog=$$v},expression:\"showEnvironmentDialog\"}}),_c('timeline-create-dialog',{attrs:{\"timelines\":_vm.timelines},model:{value:(_vm.showCreateDialog),callback:function ($$v) {_vm.showCreateDialog=$$v},expression:\"showCreateDialog\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.addEnvironment.apply(null, arguments)}}},[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\"Environment Variables\")]),_c('v-spacer')],1),_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[_c('v-row',{staticClass:\"mb-2\",attrs:{\"dense\":\"\"}},[_c('v-text-field',{attrs:{\"label\":\"search\",\"type\":\"text\",\"data-test\":\"search\",\"prepend-icon\":\"mdi-magnify\",\"clear-icon\":\"mdi-close-circle-outline\",\"clearable\":\"\",\"autofocus\":\"\",\"single-line\":\"\",\"hide-details\":\"\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_c('v-data-table',{attrs:{\"item-key\":\"name\",\"hide-default-header\":\"\",\"data-test\":\"env-table\",\"search\":_vm.search,\"headers\":_vm.headers,\"items\":_vm.environment,\"items-per-page\":5,\"footer-props\":{ 'items-per-page-options': [5] }},scopedSlots:_vm._u([{key:\"item.actions\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-btn',{staticClass:\"mt-1\",attrs:{\"icon\":\"\",\"data-test\":\"item-delete\"},on:{\"click\":function($event){return _vm.deleteEnvironment(item)}}},[_c('v-icon',[_vm._v(\"mdi-delete\")])],1)]}}])}),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',[_c('v-text-field',{attrs:{\"label\":\"Key\",\"data-test\":\"env-key\"},model:{value:(_vm.key),callback:function ($$v) {_vm.key=$$v},expression:\"key\"}})],1),_c('v-col',[_c('v-text-field',{attrs:{\"label\":\"Value\",\"data-test\":\"env-value\"},model:{value:(_vm.keyValue),callback:function ($$v) {_vm.keyValue=$$v},expression:\"keyValue\"}})],1)],1),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-btn',{attrs:{\"block\":\"\",\"type\":\"submit\",\"color\":\"primary\",\"data-test\":\"add-env\",\"disabled\":!_vm.key || !_vm.keyValue},on:{\"click\":function($event){$event.preventDefault();return _vm.addEnvironment.apply(null, arguments)}}},[_vm._v(\" Add \")])],1)],1)])],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <v-dialog v-model=\"show\" width=\"600\">\n <v-card>\n <form v-on:submit.prevent=\"addEnvironment\">\n <v-system-bar>\n <v-spacer />\n <span>Environment Variables</span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"pa-3\">\n <v-row dense class=\"mb-2\">\n <v-text-field\n v-model=\"search\"\n label=\"search\"\n type=\"text\"\n data-test=\"search\"\n prepend-icon=\"mdi-magnify\"\n clear-icon=\"mdi-close-circle-outline\"\n clearable\n autofocus\n single-line\n hide-details\n />\n </v-row>\n <v-data-table\n item-key=\"name\"\n hide-default-header\n data-test=\"env-table\"\n :search=\"search\"\n :headers=\"headers\"\n :items=\"environment\"\n :items-per-page=\"5\"\n :footer-props=\"{ 'items-per-page-options': [5] }\"\n >\n <template v-slot:item.actions=\"{ item }\">\n <v-btn\n @click=\"deleteEnvironment(item)\"\n icon\n class=\"mt-1\"\n data-test=\"item-delete\"\n >\n <v-icon>mdi-delete</v-icon>\n </v-btn>\n </template>\n </v-data-table>\n <v-row dense>\n <v-col>\n <v-text-field v-model=\"key\" label=\"Key\" data-test=\"env-key\" />\n </v-col>\n <v-col>\n <v-text-field v-model=\"keyValue\" label=\"Value\" data-test=\"env-value\" />\n </v-col>\n </v-row>\n <v-row dense>\n <v-btn\n @click.prevent=\"addEnvironment\"\n block\n type=\"submit\"\n color=\"primary\"\n data-test=\"add-env\"\n :disabled=\"!key || !keyValue\"\n >\n Add\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport Api from '../services/api'\n\nexport default {\n props: {\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n alert: '',\n alertType: 'success',\n showAlert: false,\n search: '',\n key: '',\n keyValue: '',\n environment: [],\n headers: [\n {\n text: 'Key',\n value: 'key',\n },\n {\n text: 'Value',\n value: 'value',\n },\n {\n text: 'Actions',\n value: 'actions',\n align: 'end',\n sortable: false,\n },\n ],\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n mounted() {\n this.update()\n },\n methods: {\n alertHandler: function (event) {\n // console.log('alertHandler', event)\n this.alert = event.text\n this.alertType = event.type\n this.showAlert = true\n },\n update: function () {\n Api.get('/cosmos-api/environment')\n .then((response) => {\n this.environment = response.data\n })\n .catch((error) => {\n // TODO: $error.something\n })\n },\n addEnvironment: function () {\n Api.post('/cosmos-api/environment', {\n data: {\n key: this.key.toUpperCase(),\n value: this.keyValue,\n },\n })\n .then((response) => {\n const alertEvent = {\n text: `New environment variable: ${response.data.name}`,\n type: 'success',\n }\n this.update()\n })\n .catch((error) => {\n const alertEvent = {\n text: `Failed to add environment variable: ${error}`,\n type: 'error',\n }\n this.alertHandler(alertEvent)\n })\n this.key = ''\n this.keyValue = ''\n },\n deleteEnvironment: function (env) {\n this.$dialog\n .confirm(`Are you sure you want to delete: ${env.key}=${env.value}`, {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.delete(`/cosmos-api/environment/${env.name}`)\n })\n .then((response) => {\n const alertEvent = {\n text: `Removed environment variable: ${env.name}`,\n type: 'success',\n }\n this.alertHandler(alertEvent)\n this.update()\n })\n .catch((error) => {\n const alertEvent = {\n text: `Failed to delete environment: ${error}`,\n type: 'error',\n }\n this.alertHandler(alertEvent)\n })\n },\n },\n}\n</script>\n","import mod from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EnvironmentDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EnvironmentDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EnvironmentDialog.vue?vue&type=template&id=1a404e68&\"\nimport script from \"./EnvironmentDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./EnvironmentDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-menu',{attrs:{\"offset-y\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{attrs:{\"icon\":\"\",\"data-test\":(_vm.name + \"-options\")}},[_c('v-icon',[_vm._v(\"mdi-dots-vertical\")])],1)],1)]}}])},[_c('v-card',[_c('div',{staticStyle:{\"background-color\":\"var(--v-primary-darken2)\"}},_vm._l((_vm.swatches),function(colors,ii){return _c('v-row',{key:(\"colors-\" + ii),staticClass:\"p-2\",attrs:{\"dense\":\"\"}},_vm._l((colors),function(color,jj){return _c('v-col',{key:(\"color-\" + jj),attrs:{\"dense\":\"\",\"align\":\"center\",\"justify\":\"center\"}},[_c('v-btn',{attrs:{\"icon\":\"\",\"data-test\":(_vm.name + \"-color-\" + color)},on:{\"click\":function($event){return _vm.updateColor(color)}}},[_c('v-badge',{attrs:{\"inline\":\"\",\"color\":color}})],1)],1)}),1)}),1),_c('v-btn',{attrs:{\"tile\":\"\",\"data-test\":(_vm.name + \"-delete\")},on:{\"click\":_vm.deleteTimeline}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\" mdi-delete \")]),_c('span',[_vm._v(\" Delete Timeline \")])],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-menu offset-y>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-bind=\"attrs\" v-on=\"on\">\n <v-btn icon :data-test=\"`${name}-options`\">\n <v-icon>mdi-dots-vertical</v-icon>\n </v-btn>\n </div>\n </template>\n <v-card>\n <div style=\"background-color: var(--v-primary-darken2)\">\n <v-row\n dense\n v-for=\"(colors, ii) in swatches\"\n :key=\"`colors-${ii}`\"\n class=\"p-2\"\n >\n <v-col\n dense\n v-for=\"(color, jj) in colors\"\n :key=\"`color-${jj}`\"\n align=\"center\"\n justify=\"center\"\n >\n <v-btn\n icon\n :data-test=\"`${name}-color-${color}`\"\n @click=\"updateColor(color)\"\n >\n <v-badge inline :color=\"color\" />\n </v-btn>\n </v-col>\n </v-row>\n </div>\n <v-btn tile :data-test=\"`${name}-delete`\" @click=\"deleteTimeline\">\n <v-icon left> mdi-delete </v-icon>\n <span> Delete Timeline </span>\n </v-btn>\n </v-card>\n </v-menu>\n </div>\n</template>\n\n<script>\nimport Api from '@cosmosc2/tool-common/src/services/api'\n\nexport default {\n props: {\n timeline: Object,\n },\n data() {\n return {}\n },\n computed: {\n name: function () {\n return this.timeline ? this.timeline.name : ''\n },\n swatches: function () {\n return [\n ['#005a8f', '#003784', '#ff4081', '#df1368'],\n ['#ff5252', '#df323b', '#9f0010', '#2d9437'],\n ['#004700', '#db7200', '#802700', '#0f2941'],\n ]\n },\n },\n methods: {\n deleteTimeline: function () {\n this.$dialog\n .confirm(`Are you sure you want to remove: ${this.name}`, {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.delete(`/cosmos-api/timeline/${this.name}`)\n })\n .then((response) => {\n this.$notify.normal({\n title: 'Deleted Timeline',\n body: `${this.name} has been deleted.`,\n })\n })\n .catch((error) => {})\n },\n updateColor: function (color) {\n Api.post(`/cosmos-api/timeline/${this.name}/color`, {\n data: { color },\n }).then((response) => {\n this.$notify.normal({\n title: `Color updated on Timeline`,\n body: `Timeline: ${this.name} color update to ${color}`,\n })\n })\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SelectorOptions.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SelectorOptions.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SelectorOptions.vue?vue&type=template&id=fe05ba4c&\"\nimport script from \"./SelectorOptions.vue?vue&type=script&lang=js&\"\nexport * from \"./SelectorOptions.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"persistent\":\"\",\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.submit.apply(null, arguments)}}},[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\"Create Timeline\")]),_c('v-spacer')],1),_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[_c('v-row',[_vm._v(\" Add a timeline to schedule activities on. \")]),_c('v-row',[_c('v-text-field',{attrs:{\"autofocus\":\"\",\"type\":\"text\",\"label\":\"Timeline Name\",\"data-test\":\"input-timeline-name\",\"rules\":[_vm.rules.required]},model:{value:(_vm.timelineName),callback:function ($$v) {_vm.timelineName=$$v},expression:\"timelineName\"}})],1),_c('v-row',{staticClass:\"my-3\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.error),expression:\"error\"}],staticClass:\"red--text\",domProps:{\"textContent\":_vm._s(_vm.error)}})]),_c('v-row',[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\",\"data-test\":\"create-timeline-cancel-btn\"},on:{\"click\":_vm.clear}},[_vm._v(\" Cancel \")]),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"type\":\"submit\",\"color\":\"primary\",\"data-test\":\"create-timeline-submit-btn\",\"disabled\":!!_vm.error},on:{\"click\":function($event){$event.preventDefault();return _vm.submit.apply(null, arguments)}}},[_vm._v(\" Ok \")])],1)],1)])],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <v-dialog persistent v-model=\"show\" width=\"600\">\n <v-card>\n <form v-on:submit.prevent=\"submit\">\n <v-system-bar>\n <v-spacer />\n <span>Create Timeline</span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"pa-3\">\n <v-row> Add a timeline to schedule activities on. </v-row>\n <v-row>\n <v-text-field\n v-model=\"timelineName\"\n autofocus\n type=\"text\"\n label=\"Timeline Name\"\n data-test=\"input-timeline-name\"\n :rules=\"[rules.required]\"\n />\n </v-row>\n <v-row class=\"my-3\">\n <span class=\"red--text\" v-show=\"error\" v-text=\"error\" />\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn\n @click=\"clear\"\n outlined\n class=\"mx-2\"\n data-test=\"create-timeline-cancel-btn\"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent=\"submit\"\n class=\"mx-2\"\n type=\"submit\"\n color=\"primary\"\n data-test=\"create-timeline-submit-btn\"\n :disabled=\"!!error\"\n >\n Ok\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport Api from '@cosmosc2/tool-common/src/services/api'\n\nexport default {\n props: {\n timelines: {\n type: Array,\n required: true,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n rules: {\n required: (value) => !!value || 'Required',\n },\n timelineName: '',\n }\n },\n computed: {\n error: function () {\n if (this.timelineName === '') {\n return 'Timeline name can not be blank.'\n }\n const dup = this.timelines.find(\n (timeline) => timeline.name == this.timelineName\n )\n if (dup) {\n return `Timeline must have a unique name. Duplicate timeline name found, ${dup.name}`\n }\n return null\n },\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n clear: function () {\n this.show = !this.show\n this.timelineName = ''\n },\n submit: function () {\n Api.post('/cosmos-api/timeline', {\n data: {\n name: this.timelineName,\n },\n }).then((response) => {\n this.$notify.normal({\n title: 'Created new Timeline',\n body: `Ready to schedule activities on: ${response.data.name}`,\n })\n })\n this.clear()\n },\n },\n}\n</script>\n\n<style scoped>\n.theme--dark .v-card__title,\n.theme--dark .v-card__subtitle {\n background-color: var(--v-secondary-darken3);\n}\n</style>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TimelineCreateDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TimelineCreateDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TimelineCreateDialog.vue?vue&type=template&id=301c3b8d&scoped=true&\"\nimport script from \"./TimelineCreateDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./TimelineCreateDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TimelineCreateDialog.vue?vue&type=style&index=0&id=301c3b8d&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"301c3b8d\",\n null\n \n)\n\nexport default component.exports","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-toolbar dense>\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-bind=\"attrs\" v-on=\"on\">\n <v-btn\n icon\n data-test=\"create-timeline\"\n @click=\"showCreateDialog = true\"\n >\n <v-icon>mdi-calendar-plus</v-icon>\n </v-btn>\n </div>\n </template>\n <span>Create Timeline</span>\n </v-tooltip>\n <v-spacer />\n <!--- <v-toolbar-title> Timelines </v-toolbar-title> --->\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-bind=\"attrs\" v-on=\"on\">\n <v-btn\n icon\n data-test=\"view-environment-dialog\"\n @click=\"showEnvironmentDialog = true\"\n >\n <v-icon>mdi-library</v-icon>\n </v-btn>\n </div>\n </template>\n <span>Environment Dialog</span>\n </v-tooltip>\n </v-toolbar>\n <!--- SHOW TIMELINES --->\n <v-list flat>\n <v-subheader style=\"height: 25px\">Chronicles</v-subheader>\n <v-list-item-group multiple v-model=\"selectedChronicles\" @change=\"select\">\n <v-list-item data-test=\"select-metadata\">\n <template v-slot:default=\"{ active }\">\n <v-list-item-action>\n <v-checkbox :input-value=\"active\" color=\"white accent-4\" />\n </v-list-item-action>\n\n <v-list-item-content>\n <v-list-item-title> Metadata </v-list-item-title>\n </v-list-item-content>\n </template>\n </v-list-item>\n <v-list-item data-test=\"select-narrative\">\n <template v-slot:default=\"{ active }\">\n <v-list-item-action>\n <v-checkbox :input-value=\"active\" color=\"white accent-4\" />\n </v-list-item-action>\n\n <v-list-item-content>\n <v-list-item-title> Narrative </v-list-item-title>\n </v-list-item-content>\n </template>\n </v-list-item>\n </v-list-item-group>\n <!--- TIMELINES --->\n <v-subheader style=\"height: 25px\">Timelines</v-subheader>\n <v-list-item-group multiple v-model=\"selectedTimelines\" @change=\"select\">\n <template v-for=\"timeline in timelines\">\n <v-list-item\n :key=\"`timeline-${timeline.name}`\"\n :value=\"timeline\"\n :data-test=\"`select-timeline-${timeline.name}`\"\n >\n <template v-slot:default=\"{ active }\">\n <v-list-item-action>\n <v-checkbox :input-value=\"active\" color=\"white accent-4\" />\n </v-list-item-action>\n\n <v-list-item-content>\n <v-badge\n dot\n bordered\n inline\n tile\n :color=\"timeline.color\"\n :value=\"timeline.messages\"\n >\n <v-list-item-title v-text=\"timeline.name\" />\n </v-badge>\n </v-list-item-content>\n\n <v-list-item-action>\n <selector-options :timeline=\"timeline\" />\n </v-list-item-action>\n </template>\n </v-list-item>\n </template>\n </v-list-item-group>\n </v-list>\n <!--- MENUS --->\n <environment-dialog v-model=\"showEnvironmentDialog\" />\n <timeline-create-dialog v-model=\"showCreateDialog\" :timelines=\"timelines\" />\n </div>\n</template>\n\n<script>\nimport Api from '@cosmosc2/tool-common/src/services/api'\nimport EnvironmentDialog from '@cosmosc2/tool-common/src/components/EnvironmentDialog'\nimport SelectorOptions from '@/tools/Calendar/SelectorOptions'\nimport TimelineCreateDialog from '@/tools/Calendar/Dialogs/TimelineCreateDialog'\n\nexport default {\n components: {\n SelectorOptions,\n TimelineCreateDialog,\n EnvironmentDialog,\n },\n props: {\n timelines: {\n type: Array,\n required: true,\n },\n value: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n selectedTimelines: [],\n selectedChronicles: [0, 1],\n showCreateDialog: false,\n showEnvironmentDialog: false,\n }\n },\n mounted: function () {\n this.select()\n },\n computed: {\n sortedTimelines: function () {\n return [...this.timelines].sort((a, b) => (a.name > b.name ? 1 : -1))\n },\n selectedCalendars: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n select: function () {\n let t = this.selectedTimelines.map((timeline) => {\n timeline.messages = 0\n return { ...timeline }\n })\n if (this.selectedChronicles.indexOf(0) > -1) {\n t.push({ type: 'chronicle', name: 'metadata', messages: 0 })\n }\n if (this.selectedChronicles.indexOf(1) > -1) {\n t.push({ type: 'chronicle', name: 'narrative', messages: 0 })\n }\n this.selectedCalendars = t\n },\n },\n}\n</script>\n\n<style scoped>\n.selected-title {\n background-color: var(--v-secondary-base);\n}\n.available-title {\n background-color: var(--v-primary-darken2);\n}\n</style>\n","import mod from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./CalendarSelector.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./CalendarSelector.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CalendarSelector.vue?vue&type=template&id=d1a55f34&scoped=true&\"\nimport script from \"./CalendarSelector.vue?vue&type=script&lang=js&\"\nexport * from \"./CalendarSelector.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CalendarSelector.vue?vue&type=style&index=0&id=d1a55f34&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"d1a55f34\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-row',{staticClass:\"px-2 pb-2\",attrs:{\"dense\":\"\"}},[_c('v-toolbar-title',{domProps:{\"textContent\":_vm._s(_vm.title)}}),_c('v-spacer'),_c('v-btn',{attrs:{\"small\":\"\",\"icon\":\"\",\"data-test\":\"mini-prev\"},on:{\"click\":_vm.prev}},[_c('v-icon',{attrs:{\"small\":\"\"}},[_vm._v(\" mdi-chevron-left \")])],1),_c('v-btn',{attrs:{\"small\":\"\",\"icon\":\"\",\"data-test\":\"mini-next\"},on:{\"click\":_vm.next}},[_c('v-icon',{attrs:{\"small\":\"\"}},[_vm._v(\" mdi-chevron-right \")])],1)],1),_c('v-calendar',{ref:\"sideCalendar\",attrs:{\"show-month-on-first\":false},on:{\"click:date\":_vm.viewDay},model:{value:(_vm.focus),callback:function ($$v) {_vm.focus=$$v},expression:\"focus\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-row dense class=\"px-2 pb-2\">\n <v-toolbar-title v-text=\"title\" />\n <v-spacer />\n <v-btn small icon data-test=\"mini-prev\" @click=\"prev\">\n <v-icon small> mdi-chevron-left </v-icon>\n </v-btn>\n <v-btn small icon data-test=\"mini-next\" @click=\"next\">\n <v-icon small> mdi-chevron-right </v-icon>\n </v-btn>\n </v-row>\n <v-calendar\n ref=\"sideCalendar\"\n v-model=\"focus\"\n :show-month-on-first=\"false\"\n @click:date=\"viewDay\"\n />\n </div>\n</template>\n\n<script>\nexport default {\n components: {},\n props: {\n value: {\n type: Object,\n required: true,\n },\n },\n data() {\n return {\n focus: '',\n title: '',\n }\n },\n mounted() {\n this.$refs.sideCalendar.checkChange()\n this.title = this.$refs.sideCalendar.title\n },\n computed: {\n calendarConfiguration: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n monthNames: function () {\n return [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n ]\n },\n },\n watch: {\n focus: function () {\n const d = new Date(this.focus)\n const month = this.monthNames[d.getUTCMonth()]\n const year = d.getUTCFullYear()\n this.title = `${month} ${year}`\n },\n },\n methods: {\n viewDay: function ({ date }) {\n this.calendarConfiguration = {\n ...this.calendarConfiguration,\n focus: date,\n }\n },\n prev: function () {\n this.$refs.sideCalendar.prev()\n },\n next: function () {\n this.$refs.sideCalendar.next()\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MiniCalendar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MiniCalendar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MiniCalendar.vue?vue&type=template&id=2a47aa62&\"\nimport script from \"./MiniCalendar.vue?vue&type=script&lang=js&\"\nexport * from \"./MiniCalendar.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <top-bar :title=\"title\" />\n <v-container dense>\n <v-row>\n <v-col class=\"pa-1\">\n <calendar-toolbar\n v-model=\"calendarConfiguration\"\n :timelines=\"timelines\"\n :events=\"calendarEvents\"\n @action=\"actionHandler\"\n />\n </v-col>\n </v-row>\n <v-row>\n <v-col style=\"max-width: 300px\">\n <mini-calendar v-model=\"calendarConfiguration\" />\n <v-divider class=\"my-1\" />\n <calendar-selector\n v-model=\"selectedCalendars\"\n :timelines=\"timelines\"\n />\n </v-col>\n <v-col class=\"pa-1\">\n <event-calendar\n v-model=\"calendarConfiguration\"\n ref=\"eventCalendar\"\n :events=\"calendarEvents\"\n />\n </v-col>\n </v-row>\n </v-container>\n </div>\n</template>\n\n<script>\nimport Api from '@cosmosc2/tool-common/src/services/api'\nimport Cable from '@cosmosc2/tool-common/src/services/cable.js'\nimport TopBar from '@cosmosc2/tool-common/src/components/TopBar'\n\nimport EventCalendar from '@/tools/Calendar/EventCalendar'\nimport CalendarToolbar from '@/tools/Calendar/CalendarToolbar'\nimport CalendarSelector from '@/tools/Calendar/CalendarSelector'\nimport MiniCalendar from '@/tools/Calendar/MiniCalendar'\nimport TimelineMethods from '@/tools/Calendar/Filters/timeFilters.js'\nimport { getTimelineEvents } from '@/tools/Calendar/Filters/timelineFilters.js'\nimport { getChronicleEvents } from '@/tools/Calendar/Filters/chronicleFilters.js'\n\nexport default {\n components: {\n EventCalendar,\n CalendarToolbar,\n CalendarSelector,\n MiniCalendar,\n TopBar,\n },\n mixins: [TimelineMethods],\n data() {\n return {\n title: 'Calendar',\n timelines: [],\n selectedCalendars: [],\n activities: {},\n calendarEvents: [],\n chronicles: { metadata: [], narrative: [] },\n calendarConfiguration: {\n utc: false,\n focus: '',\n type: '4day',\n },\n channels: ['TimelineEventsChannel', 'CalendarEventsChannel'],\n cable: new Cable(),\n subscriptions: [],\n }\n },\n computed: {\n eventHandlerFunctions: function () {\n return {\n timeline: {\n created: this.createdTimelineFromEvent,\n refresh: this.refreshTimelineFromEvent,\n updated: this.updatedTimelineFromEvent,\n deleted: this.deletedTimelineFromEvent,\n },\n activity: {\n event: this.eventActivityFromEvent,\n created: this.createdActivityFromEvent,\n updated: this.updatedActivityFromEvent,\n deleted: this.deletedActivityFromEvent,\n },\n calendar: {\n created: this.createdChronicleFromEvent,\n updated: this.updatedChronicleFromEvent,\n deleted: this.deletedChronicleFromEvent,\n },\n }\n },\n },\n watch: {\n selectedCalendars: {\n immediate: true,\n handler: function () {\n this.updateActivities()\n },\n },\n chronicles: {\n immediate: true,\n handler: function () {\n this.rebuildCalendarEvents()\n },\n },\n activities: {\n immediate: true,\n handler: function () {\n this.rebuildCalendarEvents()\n },\n },\n },\n created: function () {\n this.subscribe()\n this.getTimelines()\n this.updateMetadata()\n this.updateNarrative()\n },\n destroyed: function () {\n this.subscriptions.forEach((subscription) => {\n subscription.unsubscribe()\n })\n this.cable.disconnect()\n },\n methods: {\n actionHandler: function (event) {\n // console.log('actionHandler', event)\n if (event.method === 'next') {\n this.$refs.eventCalendar.next()\n } else if (event.method === 'prev') {\n this.$refs.eventCalendar.prev()\n } else if (event.method === 'refresh') {\n this.refresh()\n }\n },\n rebuildCalendarEvents: function () {\n const timelineEvents = getTimelineEvents(\n this.selectedCalendars,\n this.activities\n )\n const chronicleEvents = getChronicleEvents(\n this.selectedCalendars,\n this.chronicles\n )\n this.calendarEvents = timelineEvents.concat(chronicleEvents)\n },\n refresh: function () {\n this.updateActivities()\n this.updateMetadata()\n this.updateNarrative()\n },\n getTimelines: function () {\n Api.get('/cosmos-api/timeline').then((response) => {\n const timelineResponse = response.data\n timelineResponse.forEach((timeline) => {\n timeline.messages = 0\n timeline.type = 'timeline'\n })\n this.timelines = timelineResponse\n })\n },\n updateActivities: function (name = null) {\n // this.activities = {\n // \"timelineName\": [activity1, activity2, etc],\n // \"anotherTimeline\": etc\n // }\n const noLongerNeeded = Object.keys(this.activities).filter(\n (timeline) => !this.selectedCalendars.includes(timeline)\n )\n for (const timeline of noLongerNeeded) {\n delete this.activities[timeline.name]\n }\n if (noLongerNeeded) {\n this.activities = { ...this.activities } // New object reference to force reactivity\n }\n let timelinesToUpdate\n if (name) {\n const inputTimeline = this.timelines.find(\n (timeline) => timeline.name === name\n )\n timelinesToUpdate = inputTimeline && [inputTimeline]\n } else {\n timelinesToUpdate = this.selectedCalendars.filter(\n (calendar) => calendar.type === 'timeline'\n )\n }\n for (const timeline of timelinesToUpdate) {\n timeline.messages = 0\n if (name || !this.activities[timeline.name]) {\n Api.get(`/cosmos-api/timeline/${timeline.name}/activities`).then(\n (response) => {\n this.activities[timeline.name] = response.data\n this.activities = { ...this.activities } // New object reference to force reactivity\n }\n )\n }\n }\n },\n updateMetadata: function () {\n // this.chronicles = {\n // \"metadata\": [event1, event2, etc],\n // \"narrative\": etc\n // }\n Api.get(`/cosmos-api/metadata`).then((response) => {\n this.chronicles = {\n ...this.chronicles,\n metadata: response.data,\n }\n })\n },\n updateNarrative: function () {\n // this.chronicles = {\n // \"narrative\": [event1, event2, etc],\n // \"metadata\": etc\n // }\n Api.get(`/cosmos-api/narrative`).then((response) => {\n this.chronicles = {\n ...this.chronicles,\n narrative: response.data,\n }\n })\n },\n subscribe: function () {\n this.channels.forEach((channel) => {\n this.cable\n .createSubscription(channel, localStorage.scope, {\n received: (data) => this.received(data),\n })\n .then((subscription) => {\n this.subscriptions.push(subscription)\n })\n })\n },\n received: function (data) {\n const parsed = JSON.parse(data)\n parsed.forEach((event) => {\n event.data = JSON.parse(event.data)\n // console.log(event)\n this.eventHandlerFunctions[event.type][event.kind](event)\n })\n },\n refreshTimelineFromEvent: function (event) {\n this.updateActivities(event.timeline)\n },\n createdTimelineFromEvent: function (event) {\n event.data.messages = 0\n event.data.type = 'timeline'\n this.timelines.push(event.data)\n this.activities[event.timeline] = []\n },\n updatedTimelineFromEvent: function (event) {\n const timelineIndex = this.timelines.findIndex(\n (timeline) => timeline.name === event.timeline\n )\n this.timelines[timelineIndex] = event.data\n this.timelines = this.timelines.slice()\n this.activities = { ...this.activities }\n },\n deletedTimelineFromEvent: function (event) {\n const timelineIndex = this.timelines.findIndex(\n (timeline) => timeline.name === event.timeline\n )\n this.timelines.splice(timelineIndex, timelineIndex >= 0 ? 1 : 0)\n const checkedIndex = this.selectedCalendars.findIndex(\n (timeline) => timeline.name === event.timeline\n )\n this.selectedCalendars.splice(checkedIndex, checkedIndex >= 0 ? 1 : 0)\n },\n createdActivityFromEvent: function (event) {\n this.incrementTimelineMessages(event.timeline)\n if (this.activities.hasOwnProperty(event.timeline)) {\n this.activities[event.timeline].push(event.data)\n this.activities = { ...this.activities }\n }\n },\n eventActivityFromEvent: function (event) {\n this.incrementTimelineMessages(event.timeline)\n if (this.activities.hasOwnProperty(event.timeline)) {\n const activityIndex = this.activities[event.timeline].findIndex(\n (activity) => activity.start === event.data.start\n )\n this.activities[event.timeline][activityIndex] = event.data\n this.activities = { ...this.activities }\n }\n },\n updatedActivityFromEvent: function (event) {\n event.extra = parseInt(event.extra)\n this.incrementTimelineMessages(event.timeline)\n if (this.activities.hasOwnProperty(event.timeline)) {\n const activityIndex = this.activities[event.timeline].findIndex(\n (activity) => activity.start === event.extra\n )\n this.activities[event.timeline][activityIndex] = event.data\n this.activities = { ...this.activities }\n }\n },\n deletedActivityFromEvent: function (event) {\n this.incrementTimelineMessages(event.timeline)\n if (this.activities.hasOwnProperty(event.timeline)) {\n const activityIndex = this.activities[event.timeline].findIndex(\n (activity) => activity.start === event.data.start\n )\n this.activities[event.timeline].splice(\n activityIndex,\n activityIndex >= 0 ? 1 : 0\n )\n this.activities = { ...this.activities }\n }\n },\n incrementTimelineMessages: function (timelineName) {\n if (!this.selectedCalendars.includes(timelineName)) {\n this.timelines.find((timeline) => timeline.name === timelineName)\n .messages++\n }\n },\n createdChronicleFromEvent: function (event) {\n const chronicleType = event.data.type\n this.chronicles[chronicleType].push(event.data)\n this.chronicles = { ...this.chronicles }\n },\n updatedChronicleFromEvent: function (event) {\n event.extra = parseInt(event.extra)\n const chronicleType = event.data.type\n const chronicleIndex = this.chronicles[chronicleType].findIndex(\n (calendarEvent) => calendarEvent.start === event.extra\n )\n this.chronicles[chronicleType][chronicleIndex] = event.data\n this.chronicles = { ...this.chronicles }\n },\n deletedChronicleFromEvent: function (event) {\n const chronicleType = event.data.type\n const chronicleIndex = this.chronicles[chronicleType].findIndex(\n (calendarEvent) => calendarEvent.start === event.data.start\n )\n this.chronicles[chronicleType].splice(\n chronicleIndex,\n chronicleIndex >= 0 ? 1 : 0\n )\n this.chronicles = { ...this.chronicles }\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Calendar.vue?vue&type=template&id=0ae19e58&\"\nimport script from \"./Calendar.vue?vue&type=script&lang=js&\"\nexport * from \"./Calendar.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".selected-title[data-v-d1a55f34]{background-color:var(--v-secondary-base)}.available-title[data-v-d1a55f34]{background-color:var(--v-primary-darken2)}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".v-stepper--vertical .v-stepper__content[data-v-5a2b1c4a]{width:auto;margin:0 0 0 36px;padding:0}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".v-stepper--vertical .v-stepper__content[data-v-6c8065d7]{width:auto;margin:0 0 0 36px;padding:0}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".v-stepper--vertical .v-stepper__content[data-v-3b7745ff]{width:auto;margin:0 0 0 36px;padding:0}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".v-stepper--vertical .v-stepper__content[data-v-7a27607c]{width:auto;margin:0 0 0 36px;padding:0}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".v-stepper--vertical .v-stepper__content[data-v-3c724330]{width:auto;margin:0 0 0 36px;padding:0}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".v-stepper--vertical .v-stepper__content[data-v-77b41112]{width:auto;margin:0 0 0 36px;padding:0}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".theme--dark .v-card__subtitle[data-v-301c3b8d],.theme--dark .v-card__title[data-v-301c3b8d]{background-color:var(--v-secondary-darken3)}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".theme--dark .v-card__subtitle[data-v-e57e7e4c],.theme--dark .v-card__title[data-v-e57e7e4c]{background-color:var(--v-secondary-darken3)}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".theme--dark .v-card__subtitle[data-v-764f7879],.theme--dark .v-card__title[data-v-764f7879]{background-color:var(--v-secondary-darken3)}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".theme--dark .v-card__subtitle[data-v-077c1902],.theme--dark .v-card__title[data-v-077c1902]{background-color:var(--v-secondary-darken3)}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".v-list[data-v-e3bb7458] .v-label{margin-left:5px}.v-list-item__icon[data-v-e3bb7458]{margin-right:15px!important}.v-list-item__title[data-v-e3bb7458]{color:#fff}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".theme--dark .v-card__subtitle[data-v-8cfd7c66],.theme--dark .v-card__title[data-v-8cfd7c66]{background-color:var(--v-secondary-darken3)}.v-current-time[data-v-8cfd7c66]{height:2px;background-color:#ea4335;position:absolute;left:-1px;right:0;pointer-events:none}.v-current-time.first[data-v-8cfd7c66]:before{content:\\\"\\\";position:absolute;background-color:#ea4335;width:12px;height:12px;border-radius:50%;margin-top:-5px;margin-left:-6.5px}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./CalendarSelector.vue?vue&type=style&index=0&id=d1a55f34&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"694275c8\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ActivityCreateDialog.vue?vue&type=style&index=0&id=5a2b1c4a&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"6e79ec56\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ActivityUpdateDialog.vue?vue&type=style&index=0&id=6c8065d7&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"567f0371\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MetadataCreateDialog.vue?vue&type=style&index=0&id=3b7745ff&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"45221f6c\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MetadataUpdateDialog.vue?vue&type=style&index=0&id=7a27607c&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"4f01cae2\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NarrationCreateDialog.vue?vue&type=style&index=0&id=3c724330&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"9923765e\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NarrationUpdateDialog.vue?vue&type=style&index=0&id=77b41112&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"5a687fbf\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TimelineCreateDialog.vue?vue&type=style&index=0&id=301c3b8d&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"51b8ac78\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ActivityEventForm.vue?vue&type=style&index=0&id=e57e7e4c&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"0017d3b3\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MetadataEventForm.vue?vue&type=style&index=0&id=764f7879&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"225065ba\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!../../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NarrationEventForm.vue?vue&type=style&index=0&id=077c1902&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"aa682d9a\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TopBar.vue?vue&type=style&index=0&id=e3bb7458&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"a2f2c426\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!../../../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[4]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EventCalendar.vue?vue&type=style&index=0&id=8cfd7c66&scoped=true&lang=scss&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"239ef0cc\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","title","staticClass","timelines","calendarEvents","on","actionHandler","model","value","callback","$$v","calendarConfiguration","expression","staticStyle","selectedCalendars","ref","staticRenderFns","vueInstance","Vue","axiosInstance","axios","baseURL","location","origin","timeout","params","interceptors","response","use","error","status","localStorage","cosmosToken","CosmosAuth","login","href","body","data","message","exception","class","$notify","serious","request","method","url","headers","noAuth","noScope","updateToken","defaultMinValidity","scope","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","get","path","put","post","delete","Cable","_cable","ActionCable","disconnect","channel","callbacks","additionalOptions","then","subscriptions","create","token","_l","menu","i","key","scopedSlots","_u","fn","_g","_b","formatDT","domProps","_s","label","_v","radioGroup","option","j","disabled","command","_e","checked","icon","radio","checkbox","style","props","menus","type","Array","default","String","methods","string","replaceAll","toLowerCase","component","events","getEventColor","showEvent","viewDay","date","week","first","top","nowY","focus","selectedElement","selectedOpen","selectedEvent","utc","close","event","activityEvent","name","activityBadgeIcon","_f","start","end","activityFulfillment","activityKind","activityData","activityEnvironment","activityEvents","updated_at","fulfillment","updateDialog","deleteDialog","activity","showUpdateDialog","filters","time","val","toUTCString","split","toLocaleString","dateTime","toISOString","generateDateTime","toIsoString","nSeconds","Date","tzo","getTimezoneOffset","dif","pad","num","norm","Math","floor","abs","year","getFullYear","month","getMonth","day","getDate","hour","getHours","minute","getMinutes","second","getSeconds","mil","getMilliseconds","timeZone","utcOrLocal","genColor","genIcon","directives","rawName","mixins","required","Boolean","computed","map","states","completed","color","failed","updated","queued","created","commit","show","$event","preventDefault","updateActivity","apply","arguments","cancelActivity","dialogStep","rules","startDate","startTime","stopDate","stopTime","timeError","types","kind","fileHandler","selectedHandler","typeError","environmentItems","addEnvironmentItem","proxy","item","deadSelect","newEnvironment","env","readonly","$set","rm","environmentOptions","mounted","getEnvironment","selected","set","$emit","filter","Api","push","splice","envIndex","loading","items","search","scripts","catch","text","watch","newVal","oldVal","querySelections","setTimeout","e","indexOf","v","components","EnvironmentChooser","ScriptChooser","Object","updateValues","stop","now","changeKind","inputKind","format","sDate","eDate","toUpperCase","environment","ActivityEventTimeline","ActivityUpdateDialog","activityBadgeColor","showEnv","$dialog","confirm","activityTime","activityStart","timelineName","okText","cancelText","metadataEvent","metadata","updateMetadata","targets","target","CosmosApi","kwparams","id","jsonrpc","keyword_params","Authorization","result","err","Error","json_class","raw","NaN","Infinity","Number","isNaN","POSITIVE_INFINITY","NEGATIVE_INFINITY","exec","interface_name","router_name","packet","log_writer_name","limits_set","target_name","packet_name","value_type","len","length","converted","decode_cosmos_type","item_name","command_name","parameter_name","param_list","prototype","hasOwnProperty","call","encode_cosmos_type","undefined","_cmd","tool","ignored","array","swatches","newMetadata","meta","index","ColorSelectForm","MetadataInputForm","metadataObj","updateTargets","emptyKeyValue","keys","get_target_list","element","MetadataUpdateDialog","metadataValues","eventStart","metadataStart","narrativeEvent","description","narrative","updateNarrative","NarrationUpdateDialog","narrationStart","ActivityEventForm","MetadataEventForm","NarrationEventForm","makeTimeline","timeline","activities","messages","makeActivity","timed","getTimelineEvents","calendar","flatMap","calendarInfo","makeCalendar","chronicles","makeNarrationEvent","_calendar","substring","makeMetadataEvent","getChronicleEvents","EventDialog","showCreateDialog","showEventDialog","ready","$refs","mainCalendar","checkChange","cal","scrollToTime","updateTime","prev","next","displayTimeInUtc","getCurrentTime","setInterval","requestAnimationFrame","open","nativeEvent","stopPropagation","eventDialog","showNarrationCreateDialog","showMetadataCreateDialog","showActivityCreateDialog","setToday","refresh","showTable","downloadEvents","typeToLabel","updateType","showEventTableDialog","eventHeaders","listData","eventId","startStr","stopStr","createActivity","timelineNames","createMetadata","userProvidedTime","createNarrative","EventListDialog","ActivityCreateDialog","MetadataCreateDialog","NarrationCreateDialog","monthNames","link","URL","createObjectURL","blob","setAttribute","click","showEnvironmentDialog","select","selectedChronicles","active","selectedTimelines","addEnvironment","deleteEnvironment","keyValue","alert","alertType","showAlert","align","sortable","update","alertHandler","colors","ii","jj","updateColor","deleteTimeline","submit","clear","dup","SelectorOptions","TimelineCreateDialog","EnvironmentDialog","sortedTimelines","t","sideCalendar","EventCalendar","CalendarToolbar","CalendarSelector","MiniCalendar","TopBar","channels","cable","eventHandlerFunctions","createdTimelineFromEvent","refreshTimelineFromEvent","updatedTimelineFromEvent","deleted","deletedTimelineFromEvent","eventActivityFromEvent","createdActivityFromEvent","updatedActivityFromEvent","deletedActivityFromEvent","createdChronicleFromEvent","updatedChronicleFromEvent","deletedChronicleFromEvent","immediate","handler","updateActivities","rebuildCalendarEvents","subscribe","getTimelines","destroyed","forEach","subscription","unsubscribe","eventCalendar","timelineEvents","concat","chronicleEvents","timelineResponse","noLongerNeeded","timelinesToUpdate","createSubscription","received","parsed","JSON","parse","timelineIndex","slice","checkedIndex","incrementTimelineMessages","activityIndex","extra","parseInt","includes","find","chronicleType","chronicleIndex","___CSS_LOADER_EXPORT___","module","content","__esModule","locals","exports","add"],"sourceRoot":""}