{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.object.entries.js","webpack:///./src/shared/enums/LaunchType.ts","webpack:///./src/views/algorithm/lista/listaAlgoritmos.html","webpack:///./src/views/algorithm/lista/listaAlgoritmos.ts","webpack:///./src/views/algorithm/lista/listaAlgoritmos.ts?02ca","webpack:///./src/views/algorithm/lista/listaAlgoritmos.vue","webpack:///./src/shared/dtos/algorithm.ts","webpack:///./src/store/modules/algorithm.module.ts"],"names":["$","$entries","entries","target","stat","O","AlgorithmLaunchType","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","_s","$t","model","value","callback","$$v","search","expression","on","$event","newItem","scopedSlots","_u","key","fn","ref","launchAlgorithms","headers","algorithmList","loading","pageText","item","_g","_b","formattedContent","title","translateState","state","registered","translateLaunchTypeName","launchTypeName","_e","register","unregister","activate","deactivate","deleteItem","editItem","proxy","staticRenderFns","algorithms","forEach","element","launchType","valueOf","toString","withWidth","getAlgorithms","catch","toast","$tc","newAlgorithm","setAlgorithmEditMode","$router","push","name","params","id","algorithm","confirm","res","getAlgorithmById","then","deleteAlgorithm","contenido","length","String","substring","active","components","ItiIconButton","component","VBtn","VCard","VCardText","VDataTable","VIcon","VLayout","VSpacer","VTextField","VToolbar","VToolbarTitle","VTooltip","environmentVariables","Object","list","index","newValue","selectedAlgorithm","idSelectedAlgorithm","formattedCategoriesList","algorithmEditMode","selectedAlgorithmEnvironmentVariables","get","context","commit","environmentArray","url","TypeError","Format","algorithmDetail","response","setEnvironmentVariablesFromArray","post","toJson","algorithmDB","put","delete","dispatch","formattedCategory","editar","squidRegister","squidUnregister","squidChangeStatus","status","algorithmId","namespaced","store","dynamic"],"mappings":"sGAAA,IAAIA,EAAI,EAAQ,QACZC,EAAW,EAAQ,QAAgCC,QAIvDF,EAAE,CAAEG,OAAQ,SAAUC,MAAM,GAAQ,CAClCF,QAAS,SAAiBG,GACxB,OAAOJ,EAASI,O,oCCPpB,IAAYC,EAAZ,2CAAYA,GACR,gCACA,0BAC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BAIA,MAGD,gBADC,Q,+BAIA,MAED,gBADC,Q,2BAIA,MAGD,gBADC,Q,+BAQA,MAGD,gBADC,Q,+BAaA,MAGD,gBADC,Q,4BAYA,MAED,gBADC,Q,8BAOA,MAGD,gBADC,Q,qCAGA,MAGD,gBADC,Q,qCAIA,MAED,gBADC,Q,mCAGA,MAGD,gBADC,Q,uBAKA,MAGD,gBADC,Q,yBAKA,MAGD,gBADC,Q,uBAIA,MAED,gBADC,Q,yBAIA,MApHC,EAAe,gBAPpB,eAAO,CACJQ,YAAY,EACZ7D,KAAM,kBACN8D,MAAA,OACAC,SAAS,KAGP,GAwHS,sBAAU","file":"js/chunk-d0d52570.6d5563e8.js","sourcesContent":["var $ = require('../internals/export');\nvar $entries = require('../internals/object-to-array').entries;\n\n// `Object.entries` method\n// https://tc39.es/ecma262/#sec-object.entries\n$({ target: 'Object', stat: true }, {\n entries: function entries(O) {\n return $entries(O);\n }\n});\n","export enum AlgorithmLaunchType {\n Automatic = 1,\n Manual = 2,\n AutomaticAndManual = 3\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',{staticClass:\"card-form\",attrs:{\"id\":\"card_listaAlgoritmo\"}},[_c('div',{staticClass:\"div-form\"},[_c('div',{staticClass:\"form-template\"},[_c('v-card-text',[_c('v-layout',{attrs:{\"align-space-around\":\"\",\"column\":\"\"}},[_c('div',[_c('v-toolbar',{staticClass:\"toolbar-template-list\",attrs:{\"id\":\"toolbar_cabecera\"}},[_c('v-toolbar-title',[_c('h1',[_vm._v(\" \"+_vm._s(_vm.$t('algoritmo.algoritmos'))+\" \")])]),_c('v-spacer'),_c('v-text-field',{staticClass:\"pr-5\",attrs:{\"append-icon\":\"search\",\"label\":_vm.$t('maestros.buscar'),\"single-line\":\"\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}}),_c('div',{attrs:{\"absolute\":\"\",\"bottom\":\"\",\"right\":\"\"}},[_c('v-btn',{attrs:{\"color\":\"black\",\"fab\":\"\",\"dark\":\"\"},on:{\"click\":function($event){return _vm.newItem()}}},[_c('v-icon',[_vm._v(\"add\")])],1),_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',{attrs:{\"color\":\"black\",\"fab\":\"\",\"dark\":\"\"},on:{\"click\":function($event){return _vm.launchAlgorithms()}}},[_c('v-icon',[_vm._v(\"sync\")])],1)]}}])},[_c('span',[_vm._v(\" Tooltip \")])])],1)],1),_c('v-data-table',{attrs:{\"id\":\"tabla_algoritmos\",\"headers\":_vm.headers,\"items\":_vm.algorithmList,\"loading\":_vm.loading,\"search\":_vm.search,\"footer-props\":{ 'items-per-page-options': [10, 20, 30, 40, 50] , 'items-per-page-text': _vm.$t('plantillas.rowsPage') , pageText: '{0}-{1} de {2}' },\"items-per-page\":50},scopedSlots:_vm._u([{key:\"item.title\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('span',_vm._g(_vm._b({},'span',attrs,false),on),[_vm._v(_vm._s(_vm.formattedContent(item.title)))])]}}],null,true)},[_c('span',[_vm._v(\" \"+_vm._s(item.title)+\" \")])])]}},{key:\"item.state\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('span',_vm._g(_vm._b({},'span',attrs,false),on),[_vm._v(_vm._s(_vm.translateState(item.state)))])]}}],null,true)},[_c('span',[_vm._v(\" \"+_vm._s(_vm.translateState(item.state))+\" \")])])]}},{key:\"item.registered\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('span',_vm._g(_vm._b({},'span',attrs,false),on),[_vm._v(_vm._s(_vm.translateState(item.registered)))])]}}],null,true)},[_c('span',[_vm._v(\" \"+_vm._s(_vm.translateState(item.registered))+\" \")])])]}},{key:\"item.launchTypeName\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('span',_vm._g(_vm._b({},'span',attrs,false),on),[_vm._v(_vm._s(_vm.translateLaunchTypeName(item.launchTypeName)))])]}}],null,true)},[_c('span',[_vm._v(\" \"+_vm._s(_vm.translateLaunchTypeName(item.launchTypeName))+\" \")])])]}},{key:\"item.action\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',{staticClass:\"d-flex flex-row-reverse\"},[(!item.registered)?_c('ItiIconButton',{attrs:{\"icon\":\"add_circle\",\"tooltip\":_vm.$t('algoritmo.registrar')},on:{\"click\":function($event){return _vm.register(item)}}}):_vm._e(),(item.registered)?_c('ItiIconButton',{attrs:{\"icon\":\"remove_circle\",\"tooltip\":_vm.$t('algoritmo.desregistrar')},on:{\"click\":function($event){return _vm.unregister(item)}}}):_vm._e(),(item.registered && !item.state)?_c('ItiIconButton',{attrs:{\"icon\":\"check_circle\",\"tooltip\":_vm.$t('algoritmo.activar')},on:{\"click\":function($event){return _vm.activate(item)}}}):_vm._e(),(item.state)?_c('ItiIconButton',{attrs:{\"icon\":\"cancel\",\"tooltip\":_vm.$t('algoritmo.desactivar')},on:{\"click\":function($event){return _vm.deactivate(item)}}}):_vm._e(),_c('ItiIconButton',{attrs:{\"icon\":\"delete\",\"tooltip\":_vm.$t('maestros.eliminar')},on:{\"click\":function($event){return _vm.deleteItem(item)}}}),_c('ItiIconButton',{attrs:{\"icon\":\"edit\",\"tooltip\":_vm.$t('maestros.editar')},on:{\"click\":function($event){return _vm.editItem(item)}}})],1)]}},{key:\"no-data\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.$t('maestros.no-results'))+\" \\\"\"+_vm._s(_vm.search)+\"\\\". \")]},proxy:true}])})],1)])],1)],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Algorithm } from '../../../shared/dtos/algorithm';\nimport { itiMessageService } from '@/iti-core-vue';\nimport { Component, Vue } from 'vue-property-decorator';\nimport algorithmModule from '@/store/modules/algorithm.module'\nimport { ItiIconButton, ItiVHeader } from '@/iti-core-vuetify';\nimport { AlgorithmLaunchType } from '@/shared/enums/LaunchType';\n\n\n\n@Component({\n components: {\n ItiIconButton,\n },\n})\n\nexport default class AlgorithmList extends Vue {\n public loading = false;\n public search = '';\n\n\n public get algorithmList() {\n var algorithms = algorithmModule.algorithms\n algorithms.forEach(element => {\n element.launchTypeName = AlgorithmLaunchType[element.launchType.valueOf()].toString();\n });\n return algorithms;\n }\n\n public get headers() {\n return [\n new ItiVHeader('code', 'algoritmo.codigo'),\n new ItiVHeader('description', 'algoritmo.descripcion'),\n new ItiVHeader('dockerImage', 'algoritmo.imagen'),\n new ItiVHeader('state', 'algoritmo.estado'),\n new ItiVHeader('registered', 'algoritmo.registrado'),\n new ItiVHeader('imageEntryPoint', 'algoritmo.punto-entrada'),\n // new ItiVHeader('environmentVariables', 'algoritmo.variables-entorno'),\n new ItiVHeader('moduleName', 'algoritmo.nombre-modulo'),\n // new ItiVHeader('input', 'algoritmo.entrada'),\n // new ItiVHeader('output', 'algoritmo.salida'),\n // new ItiVHeader('containerSlots', 'algoritmo.slots'),\n // new ItiVHeader('categories', 'algoritmo.categorias'),\n new ItiVHeader('launchTypeName', 'algoritmo.tipo-lanzamiento'),\n new ItiVHeader('action', '').withWidth(50),\n ];\n }\n\n public mounted() {\n algorithmModule.getAlgorithms().catch(() => { itiMessageService.toast(this.$tc('mensajes-algoritmos.info-error'), 'error', 2000); });\n }\n public newItem() {\n algorithmModule.newAlgorithm();\n algorithmModule.setAlgorithmEditMode(false);\n this.$router.push({ name: 'AlgoritmoFormulario', params: { id: '0' } })\n }\n public launchAlgorithms(){\n algorithmModule.launchAlgorithms();\n }\n public register(algorithm: Algorithm) {\n algorithmModule.register(algorithm);\n }\n public unregister(algorithm: Algorithm) {\n algorithmModule.unregister(algorithm);\n }\n public activate(algorithm: Algorithm) {\n algorithmModule.activate(algorithm);\n }\n public deactivate(algorithm: Algorithm) {\n algorithmModule.deactivate(algorithm);\n }\n\n public deleteItem(algorithm: Algorithm) {\n itiMessageService.confirm(this.$tc('mensajes-algoritmos.pregunta-borrar-algoritmo'), this.$tc('mensajes.confirmar'), (res) => {\n if (res) {\n algorithmModule.getAlgorithmById(algorithm.id).then(() => {\n algorithmModule.deleteAlgorithm(algorithm)\n .then(() => {\n itiMessageService.toast(this.$tc('mensajes-algoritmos.info-eliminar'), 'success', 3000);\n })\n .catch(() => {\n itiMessageService.toast(this.$tc('mensajes-algoritmos.info-error'), 'error', 2000);\n });\n\n })\n }\n });\n }\n\n public editItem(algorithm: Algorithm) {\n algorithmModule.getAlgorithmById(algorithm.id);\n algorithmModule.setAlgorithmEditMode(true);\n this.$router.push({ name: 'AlgoritmoFormulario', params: { id: algorithm.id.toString() } })\n }\n\n public formattedContent(contenido: string) {\n if (contenido && contenido.length > 40) {\n return String(contenido).substring(0, 40) + \"...\";\n } else {\n return contenido;\n }\n }\n\n public translateState(active:boolean) { \n return this.$tc(active.toString());\n }\n\n public translateLaunchTypeName(launchType:any) { \n return this.$tc('enum-launch-type.'+launchType.toString());\n }\n}","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/eslint-loader/index.js??ref--13-0!./listaAlgoritmos.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/eslint-loader/index.js??ref--13-0!./listaAlgoritmos.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./listaAlgoritmos.html?vue&type=template&id=ea0e4024&\"\nimport script from \"./listaAlgoritmos.ts?vue&type=script&lang=ts&\"\nexport * from \"./listaAlgoritmos.ts?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VLayout } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VBtn,VCard,VCardText,VDataTable,VIcon,VLayout,VSpacer,VTextField,VToolbar,VToolbarTitle,VTooltip})\n","import { AlgorithmLaunchType } from './../enums/LaunchType';\nimport { ItiBaseDto } from '@/iti-core-vue';\nimport { Dictionary } from 'vue-router/types/router';\nimport { Categories } from './categories';\n\nexport class Algorithm extends ItiBaseDto {\n public code!: string;\n public description!: string;\n public dockerImage!: string;\n public state!: boolean;\n public registered!: boolean;\n public imageEntryPoint!: string;\n public environmentVariables!: any;\n public moduleName!: string;\n public input!: string;\n public output!: string;\n public containerSlots!: number;\n public categories!: Categories[];\n public launchType!: AlgorithmLaunchType;\n public launchTypeName!: string;\n\n public environmentArray() {\n if (this.environmentVariables != null) {\n var entries = Object.entries(this.environmentVariables);\n if (entries == null)\n entries = [];\n var list: any[] = [];\n entries.forEach((element, index) => {\n if (element.length == 2)\n list.push({ id: index, key: element[0], value: element[1] });\n });\n return list;\n } else {\n return null;\n }\n }\n\n public setEnvironmentVariablesFromArray(value: any[] | null) {\n if (value == null || value.length === 0){\n this.environmentVariables = null;\n } else {\n let newValue: any = {};\n value.forEach(element => {\n newValue[element.key] = element.value;\n });\n this.environmentVariables = newValue;\n }\n }\n\n\n}","import { FormattedCategory } from './../../shared/dtos/formatted-category';\nimport { Algorithm } from './../../shared/dtos/algorithm';\nimport { getModule, Module, VuexModule, Mutation, Action } from 'vuex-module-decorators';\nimport { store } from '@/iti-core-vue';\nimport { itiTokenService } from '@/iti-core-vue/services/iti-token-service';\nimport { ItiString, itiHttpService, itiMessageService } from '@/iti-core-vue';\nimport { API } from '@/shared/api';\n\n@Module({\n namespaced: true,\n name: 'AlgorithmModule',\n store,\n dynamic: true,\n})\n\nclass AlgorithmModule extends VuexModule {\n public algorithms: Algorithm[] = [];\n public selectedAlgorithm: Algorithm = new Algorithm();\n public idSelectedAlgorithm: number = 0;\n public formattedCategoriesList: FormattedCategory[] = [];\n public algorithmEditMode: boolean = false;\n public selectedAlgorithmEnvironmentVariables: any[] | null = [];\n\n\n @Mutation\n public setAlgorithms(algorithms: Algorithm[]) {\n this.algorithms = algorithms;\n }\n\n @Action\n public async getAlgorithms() {\n const res = await itiHttpService.get(API.algorithm);\n this.context.commit('setAlgorithms', res);\n }\n\n @Mutation\n public setAlgorithmById(algorithm: Algorithm) {\n this.selectedAlgorithm = new Algorithm(algorithm);\n this.selectedAlgorithmEnvironmentVariables = this.selectedAlgorithm.environmentArray();\n }\n @Mutation\n public newAlgorithm() {\n this.selectedAlgorithm = new Algorithm();\n this.selectedAlgorithmEnvironmentVariables = [];\n }\n\n @Action\n public async launchAlgorithms() {\n try {\n const url = API.algorithm + '/LaunchAlgorithms';\n const response = await itiHttpService.get(url, null, true, false, false);\n } catch (err) {\n return itiMessageService.TypeError;\n }\n }\n\n @Action\n public async getAlgorithmById(id: number) {\n if (id != null) {\n try {\n const response = await itiHttpService.get(ItiString.Format(API.algorithmDetail, id));\n this.context.commit('setAlgorithmById', response);\n } catch (err) {\n return itiMessageService.TypeError;\n }\n }\n else {\n this.context.commit('newAlgorithm');\n }\n }\n\n @Action\n public async saveAlgorithm(algorithm: Algorithm) {\n let res = null;\n algorithm.setEnvironmentVariablesFromArray(this.selectedAlgorithmEnvironmentVariables);\n if (algorithm.id == null) {\n algorithm.id = 0;\n res = await itiHttpService.post(API.algorithm, algorithm.toJson());\n } else {\n const algorithmDB: Algorithm = new Algorithm(algorithm);\n res = await itiHttpService.put(API.algorithm, algorithmDB.toJson());\n }\n this.context.commit('setAlgorithmById', res);\n }\n @Action\n public async deleteAlgorithm(algorithm: Algorithm) {\n if (algorithm.id != null) {\n const url = ItiString.Format(API.algorithmDetail, algorithm.id);\n const res = await itiHttpService.delete(url, null);\n }\n this.context.dispatch('getAlgorithms');\n }\n\n @Mutation\n public setFormattedCategories(formattedCategoriesList: FormattedCategory[]) {\n this.formattedCategoriesList = formattedCategoriesList;\n }\n\n @Action\n public async getFormattedCategories() {\n const res = await itiHttpService.get(API.formattedCategory);\n this.context.commit('setFormattedCategories', res);\n }\n @Mutation\n public setAlgorithmEditMode(editar: boolean) {\n this.algorithmEditMode = editar;\n }\n\n @Action\n public async register(algorithm: Algorithm) {\n const url = ItiString.Format(API.squidRegister, algorithm.id);\n const res = await itiHttpService.post(url, null);\n this.context.dispatch('getAlgorithms');\n }\n\n @Action\n public async unregister(algorithm: Algorithm) {\n const url = ItiString.Format(API.squidUnregister, algorithm.id);\n const res = await itiHttpService.post(url, null);\n this.context.dispatch('getAlgorithms');\n }\n\n @Action\n public async activate(algorithm: Algorithm) {\n const res = await itiHttpService.post(API.squidChangeStatus, { status: true, algorithmId: algorithm.id }, false);\n this.context.dispatch('getAlgorithms');\n }\n @Action\n public async deactivate(algorithm: Algorithm) {\n const res = await itiHttpService.post(API.squidChangeStatus, { status: false, algorithmId: algorithm.id }, false);\n this.context.dispatch('getAlgorithms');\n }\n\n}\n\nexport default getModule(AlgorithmModule);"],"sourceRoot":""}