{"version":3,"sources":["webpack:///./src/modules/guidelines/infra/GuidelinesAPIRepo.ts","webpack:///./src/modules/guidelines/domain/Guideline.ts","webpack:///./src/modules/entities/infra/RecursivePayloadOnSchemaEditor.vue?4c93","webpack:///./src/components/GenericTableComponent.vue?5531","webpack:///./src/modules/guidelines/infra/VueGuidelinesScreenData.ts","webpack:///./src/modules/entities/infra/ListOnSchemaEditor.vue?d87e","webpack:///./src/views/GuidelineEditor.vue?6775","webpack:///./src/modules/guidelines/app/GuidelineDetailComponent.ts","webpack:///src/views/GuidelineEditor.vue","webpack:///./src/views/GuidelineEditor.vue?7fec","webpack:///./src/views/GuidelineEditor.vue?ffa2","webpack:///./src/components/GenericTableComponent.vue?4991","webpack:///src/components/GenericTableComponent.vue","webpack:///./src/components/GenericTableComponent.vue?dd96","webpack:///./src/components/GenericTableComponent.vue?a44e","webpack:///./src/views/GuidelineEditor.vue?772e","webpack:///./src/modules/entities/infra/RecursivePayloadOnSchemaEditor.vue?9fab","webpack:///./src/modules/entities/infra/ListOnSchemaEditor.vue?fc2c","webpack:///src/modules/entities/infra/ListOnSchemaEditor.vue","webpack:///./src/modules/entities/infra/ListOnSchemaEditor.vue?c3f4","webpack:///./src/modules/entities/infra/ListOnSchemaEditor.vue?36b9","webpack:///src/modules/entities/infra/RecursivePayloadOnSchemaEditor.vue","webpack:///./src/modules/entities/infra/RecursivePayloadOnSchemaEditor.vue?5efd","webpack:///./src/modules/entities/infra/RecursivePayloadOnSchemaEditor.vue?20ac"],"names":["objectToDict","obj","dict","key","Object","prototype","hasOwnProperty","call","value","Array","isArray","GuidelinesApiRepo","this","command_dispatcher","query_dispatcher","g_data","id","user_id","username","company_id","company_name","params","condition","consequence","description","guid","data","JSON","parse","stringify","ft_data","name","params_schema","func_name","g_id","res","dispatch","guideline_api_to_domain","limit","offset","args","force_get","ordering","domain_res","g","results","push","count","guideline_domain_to_api","guideline","output","guideline_id","cndtions","conditions","map","c","func_template_api_to_domain","cnsq","consequences","GuidelineFunctionTemplate","Guideline","VueGuidelinesListScreenData","guidelines_headers","text","align","sortable","guidelines","selectedItems","loadingItems","totalItems","VueGuidelineDetailScreenData","condition_options","consequence_options","loading","execution_stats","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","model","callback","$$v","delete_dialog","expression","_v","on","$event","deleteGuideline","$router","_s","screen_data","allowSave","saveGuideline","untouchable","deletable","_e","c_users","Boolean","$set","conditionChanged","consequenceChanged","staticStyle","when","current_condition","current_consequence","executions","condition_passed","consequence_success","computed_data","staticRenderFns","GuidelineDetailComponent","guidelines_repo","find_by_id","get_options","new_guideline_id","save","console","log","fetchGuideline","delete","OK","get_guideline_stats","components","RecursivePayloadOnSchemaEditor","props","type","String","Number","required","guideline_editor_component","users","guideline_repo","get_users","fetchOptions","getGuidelineStats","methods","refreshGuideline","replace","param","field","parseInt","parseFloat","deleted","session_username","session_information","client","get","then","response","catch","err","debug","computed","cond_ops","cons_ops","findIndex","item","keys","length","properties","index","extra_users","concat","component","VAlert","VAutocomplete","VBtn","VCard","VCardActions","VCardText","VCardTitle","VCol","VContainer","VDialog","VDivider","VIcon","VRow","VSpacer","VTextField","c_headers","formattedRows","VDataTable","schema","style","fontSize","getFontSize","key_to_show","intern_key","_l","marginLeft","depth","get_next_key_to_show","readonly","new_data","update_payload","data_payload","nextFontSize","color","scopedSlots","_u","fn","ref","_g","_b","delete_extra_key","is_tablable","items","payloadChanged","turnIntoNumber","item_schema","toString","removeItem","addItem","default","splice","$emit","GenericTableComponent","ListOnSchemaEditor","getDefaultPayload","initializePayload","baseSize","sizeIncrement","filter","includes","title","new_payload","VCheckbox","VTooltip"],"mappings":"8fAOA,SAASA,EAAaC,GAClB,MAAMC,EAA4B,GAElC,IAAK,MAAMC,KAAOF,EACd,GAAIG,OAAOC,UAAUC,eAAeC,KAAKN,EAAKE,GAAM,CAChD,MAAMK,EAAQP,EAAIE,GACG,kBAAVK,GAAgC,OAAVA,GAAmBC,MAAMC,QAAQF,GAI9DN,EAAKC,GAAOK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KACnDI,KAAKuM,kBAEP,YAAYzB,GACR,QAAmB,WAAhBA,EAAOzD,OAAqBrH,KAAKwL,WAaxC,qBAAqBjM,EAAKK,GACxB,OAAGA,EAAM4N,MACA5N,EAAM4N,MAERjO,GAET,oBACA,MAAyB,WAArBS,KAAK8K,OAAOzD,KACP,GACuB,UAArBrH,KAAK8K,OAAOzD,KACd,GACuB,WAArBrH,KAAK8K,OAAOzD,KACd,GAEA,MAGX,iBAAiB9H,GACfqH,QAAQC,IAAI,mBAAoBtH,GAChC,MAAMkO,EAAc,IAAIzN,KAAK2L,qBACtB8B,EAAYlO,GACnBS,KAAK2L,aAAe8B,EACpBzN,KAAKuM,kBAEP,oBACqB,OAAfvM,KAAKJ,MACPI,KAAK2L,aAAe3L,KAAKkN,oBAEzBlN,KAAK2L,aAAe3L,KAAKJ,OAG3B,iBACEgH,QAAQC,IAAI,kBAAmB7G,KAAKkL,YAAalL,KAAK2L,cACtD3L,KAAK+M,MAAM,QAAS/M,KAAK2L,eAE3B,eAAepM,EAAKK,GAClBgH,QAAQC,IAAI,iBAAkBtH,EAAKK,GACnCI,KAAK2L,aAAe,IACf3L,KAAK2L,aACR,CAACpM,GAAMK,GAETI,KAAKuM,oBC/PsN,I,oFCQ/N,EAAY,eACd,EACAxI,EACAsC,GACA,EACA,KACA,WACA,MAIa,eAAiB,QAWhC,IAAkB,EAAW,CAACyD,OAAA,KAAK4D,YAAA,KAAUvD,OAAA,KAAKI,QAAA,KAAMC,OAAA,KAAKE,aAAA,KAAWiD,WAAA","file":"js/chunk-50101ea4.779dc640.js","sourcesContent":["import {Guideline, GuidelineFunctionTemplate} from \"@/modules/guidelines/domain/Guideline\";\nimport {GuidelinesRepo} from \"@/modules/guidelines/domain/GuidelinesRepo\";\nimport { CommandDispatcher } from \"@/modules/shared/domain/CommandDispatcher\";\nimport { QueryDispatcher } from \"@/modules/shared/domain/QueryDispatcher\";\nimport { query_dispatcher_get, sync_command_dispatcher, async_command_dispatcher } from \"@/api/client\";\n\n\nfunction objectToDict(obj: any): Record {\n const dict: Record = {};\n\n for (const key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n const value = obj[key];\n if (typeof value === 'object' && value !== null && !Array.isArray(value)) {\n // Recursively convert nested object\n dict[key] = objectToDict(value);\n } else {\n dict[key] = value;\n }\n }\n }\n\n return dict;\n}\nexport class GuidelinesApiRepo implements GuidelinesRepo {\n\n command_dispatcher: CommandDispatcher\n query_dispatcher: QueryDispatcher\n constructor() {\n this.command_dispatcher = sync_command_dispatcher\n this.query_dispatcher = query_dispatcher_get\n }\n\n guideline_api_to_domain(g_data) {\n return new Guideline(g_data.id, g_data.user_id,g_data.username, g_data.company_id, g_data.company_name, g_data.params, g_data.condition, g_data.consequence, g_data.description)\n }\n guideline_domain_to_api(guid) {\n let data = JSON.parse(JSON.stringify(objectToDict(guid)));\n return data\n }\n func_template_api_to_domain(ft_data) {\n return new GuidelineFunctionTemplate(ft_data.name, ft_data.description, ft_data.params_schema, ft_data.func_name)\n }\n\n async find_by_id(g_id: number): Promise {\n let res = await this.query_dispatcher.dispatch('guideline.by.id', {g_id: g_id})\n return this.guideline_api_to_domain(res)\n }\n async get_guidelines_list(limit, offset): Promise {\n let args = {force_get: true} //raro pero asseguro no trencar altres coses\n let ordering = '-id'\n if (ordering) {\n args['ordering'] = ordering\n }\n if (limit) {\n args['limit'] = limit\n }\n if (offset) {\n args['offset'] = offset\n }\n let res = await this.query_dispatcher.dispatch('all.guidelines',args )\n let domain_res = []\n for (let g in res.results) {\n domain_res.push(this.guideline_api_to_domain(res.results[g]))\n }\n return {results:domain_res, count: res.count}\n\n }\n async save(guid){\n let data = this.guideline_domain_to_api(guid)\n let args = {guideline:data}\n let res = await this.command_dispatcher.dispatch('save.guideline', args)\n return res.output.guideline_id \n }\n async get_options(): Promise {\n let res = await this.query_dispatcher.dispatch('guideline.options', {})\n let cndtions = res.conditions.map((c) => this.func_template_api_to_domain(c))\n let cnsq = res.consequences.map((c) => this.func_template_api_to_domain(c))\n return {conditions: cndtions, consequences: cnsq}\n }\n\n async delete(guid){\n let args = {guideline_id: guid.id}\n let res = await this.command_dispatcher.dispatch('delete.guideline', args)\n return res\n }\n\n async get_guideline_stats(g_id){\n let args = {guideline_id: g_id}\n let res = await this.query_dispatcher.dispatch('guideline.execution.info', args)\n return res\n }\n}","interface Dictionary {\n [key: string]: T;\n}\n\nexport class GuidelineFunctionTemplate {\n name?: string;\n description?: string;\n params_schema?: Dictionary;\n func_name?: string;\n\n constructor(name?: string, description?: string, params_schema?: Dictionary, func_name?: string) {\n this.name = name;\n this.description = description;\n this.params_schema = params_schema;\n this.func_name = func_name;\n }\n\n toPrimitive(): Dictionary {\n return { ...this };\n }\n}\n\nexport class ConditionTemplate extends GuidelineFunctionTemplate {\n constructor(name?: string, description?: string, params_schema?: Dictionary, func_name?: string) {\n super(name, description, params_schema, func_name);\n }\n}\n\nexport class ConsequenceTemplate extends GuidelineFunctionTemplate {\n constructor(name?: string, description?: string, params_schema?: Dictionary, func_name?: string) {\n super(name, description, params_schema, func_name);\n }\n}\n\nexport class Guideline {\n id?: number;\n user_id?: number;\n username?: string;\n company_id?: number;\n company_name?: string;\n params?: Dictionary;\n condition?: string;\n consequence?: string;\n description?: string;\n\n constructor(id?: number, user_id?: number, username?:string, company_id?: number, company_name?: string, params?: Dictionary, condition?: string, consequence?: string, description?: string) {\n this.id = id;\n this.user_id = user_id;\n this.username = username;\n this.company_id = company_id;\n this.company_name = company_name;\n this.params = params;\n this.condition = condition;\n this.consequence = consequence;\n this.description = description;\n }\n\n toPrimitive(): Dictionary {\n return { ...this };\n }\n}\n","export * from \"-!../../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecursivePayloadOnSchemaEditor.vue?vue&type=style&index=0&id=0abd7038&scoped=true&lang=css&\"","export * from \"-!../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GenericTableComponent.vue?vue&type=style&index=0&id=4f722058&scoped=true&lang=css&\"","import { Guideline, ConditionTemplate, ConsequenceTemplate } from \"@/modules/guidelines/domain/Guideline\";\nimport { GuidelinesListScreenData, GuidelineDetailScreenData } from \"../domain/GuidelinesScreenData\";\n\nexport class VueGuidelinesListScreenData implements GuidelinesListScreenData{\n guidelines: Guideline[];\n guidelines_headers = [\n {\n text: 'ID',\n align: 'start',\n sortable: false,\n value: 'id',\n },\n { text: 'User', value: 'username' },\n { text: 'Company', value: 'company_name' },\n { text: 'Condition', value: 'condition' },\n { text: 'Consequence', value: 'consequence' },\n { text: 'Description', value: 'description' },\n ];\n limit = 10;\n offset = 0;\n selectedItems: Array;\n loadingItems: boolean;\n totalItems: Number;\n \n\n constructor(){\n this.guidelines = []\n this.selectedItems = []\n this.loadingItems = false\n this.totalItems = 0\n }\n}\n\nexport class VueGuidelineDetailScreenData implements GuidelineDetailScreenData {\n guideline: Guideline;\n condition_options :ConditionTemplate[];\n consequence_options: ConsequenceTemplate[];\n loading: boolean;\n execution_stats: any;\n \n constructor(){\n this.guideline = new Guideline(null, null, null, null, null, {'when':'format_data','condition':{}, 'consequence':{}}, null, null, null)\n this.condition_options = []\n this.consequence_options = []\n this.loading = false\n this.execution_stats = {}\n }\n}","export * from \"-!../../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ListOnSchemaEditor.vue?vue&type=style&index=0&id=0079d63a&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"container-full-bg-gray\",attrs:{\"fluid\":\"\"}},[_c('v-dialog',{attrs:{\"max-width\":\"290\"},model:{value:(_vm.delete_dialog),callback:function ($$v) {_vm.delete_dialog=$$v},expression:\"delete_dialog\"}},[_c('v-card',[_c('v-card-title',{staticClass:\"headline\"},[_vm._v(\"Seguro que quieres eliminar este Guideline?\")]),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"blue darken-1\",\"text\":\"\"},on:{\"click\":function($event){_vm.delete_dialog = false}}},[_vm._v(\"Cancelar\")]),_c('v-btn',{attrs:{\"color\":\"blue darken-1\",\"text\":\"\"},on:{\"click\":_vm.deleteGuideline}},[_vm._v(\"OK\")])],1)],1)],1),_c('v-card',[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"10\"}},[_c('div',{staticClass:\"mr-auto d-flex align-sm-center\"},[_c('v-btn',{attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.$router.push({name: 'guidelines-list'})}}},[_c('img',{attrs:{\"src\":require(\"../assets/back-arrow.svg\")}})])],1),_c('v-card-title',[_vm._v(\"\\n \"+_vm._s(_vm.screen_data.guideline.id ? 'Edit Guideline' : 'New Guideline')+\" \"+_vm._s(_vm.screen_data.guideline.id ? _vm.screen_data.guideline.id : '')+\"\\n \")])],1),_c('v-col',{attrs:{\"cols\":\"2\"}},[_c('v-btn',{attrs:{\"color\":\"primary\",\"disabled\":!_vm.allowSave,\"loading\":_vm.screen_data.loading},on:{\"click\":_vm.saveGuideline}},[_vm._v(\"\\n Guardar\\n \")]),_c('v-btn',{attrs:{\"color\":\"red\",\"disabled\":_vm.untouchable || !_vm.screen_data.guideline.id || !_vm.deletable,\"loading\":_vm.screen_data.loading},on:{\"click\":function($event){_vm.delete_dialog = true}}},[_vm._v(\"\\n BORRAR\\n \")])],1)],1),(_vm.untouchable)?_c('v-row',[_c('v-col',[_c('v-alert',{attrs:{\"type\":\"error\",\"outlined\":\"\"}},[_c('v-row',[_c('v-col',[_c('span',[_vm._v(\"Este guideline no es editable ya que tiene configuraciones todavía no soportadas en frontend\")])])],1)],1)],1)],1):_vm._e(),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"2\"}},[_c('v-autocomplete',{attrs:{\"label\":\"Usuario\",\"items\":_vm.c_users,\"item-value\":\"id\",\"item-text\":\"username\",\"autocomplete\":\"off\",\"outlined\":\"\",\"disabled\":Boolean(_vm.screen_data.guideline.company_id) || _vm.untouchable},model:{value:(_vm.screen_data.guideline.user_id),callback:function ($$v) {_vm.$set(_vm.screen_data.guideline, \"user_id\", $$v)},expression:\"screen_data.guideline.user_id\"}})],1),_c('v-col',{attrs:{\"cols\":\"2\"}},[_c('v-text-field',{attrs:{\"label\":\"Company ID\",\"outlined\":\"\",\"disabled\":Boolean(_vm.screen_data.guideline.user_id) || _vm.untouchable},model:{value:(_vm.screen_data.guideline.company_id),callback:function ($$v) {_vm.$set(_vm.screen_data.guideline, \"company_id\", $$v)},expression:\"screen_data.guideline.company_id\"}})],1),_c('v-col',{attrs:{\"cols\":\"2\"}},[_c('v-autocomplete',{attrs:{\"items\":[{name: 'Después de detección', value: 'data_detection'},{name: 'Antes de detección', value: 'pre_data_detection'}, {name: 'Después de validación', value: 'format_data'}],\"label\":\"When\",\"outlined\":\"\",\"item-text\":\"name\",\"item-value\":\"value\",\"disabled\":_vm.untouchable},model:{value:(_vm.screen_data.guideline.params.when),callback:function ($$v) {_vm.$set(_vm.screen_data.guideline.params, \"when\", $$v)},expression:\"screen_data.guideline.params.when\"}})],1),_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-autocomplete',{attrs:{\"items\":_vm.screen_data.condition_options,\"label\":\"Condition\",\"outlined\":\"\",\"item-text\":\"name\",\"item-value\":\"func_name\",\"disabled\":_vm.untouchable},on:{\"change\":_vm.conditionChanged},model:{value:(_vm.screen_data.guideline.condition),callback:function ($$v) {_vm.$set(_vm.screen_data.guideline, \"condition\", $$v)},expression:\"screen_data.guideline.condition\"}})],1),_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-autocomplete',{attrs:{\"items\":_vm.screen_data.consequence_options,\"label\":\"Consequence\",\"outlined\":\"\",\"item-text\":\"name\",\"item-value\":\"func_name\",\"disabled\":_vm.untouchable},on:{\"change\":_vm.consequenceChanged},model:{value:(_vm.screen_data.guideline.consequence),callback:function ($$v) {_vm.$set(_vm.screen_data.guideline, \"consequence\", $$v)},expression:\"screen_data.guideline.consequence\"}})],1)],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"2\"}},[_c('v-card-text',{staticClass:\"px-0 pt-0 card-title-footer-color\",staticStyle:{\"color\":\"gray\",\"margin-top\":\"-40px\"}},[_vm._v(\"\\n ( \"+_vm._s(_vm.screen_data.guideline.username)+\" )\\n \")]),(_vm.screen_data.guideline.user_id)?[_c('v-card-text',{staticClass:\"px-0 pt-0 card-title-footer-color\",staticStyle:{\"color\":\"gray\",\"margin-top\":\"-40px\"}},[_c('v-btn',{attrs:{\"icon\":\"\"},on:{\"click\":function($event){_vm.screen_data.guideline.user_id = null}}},[_c('v-icon',[_vm._v(\"mdi-close\")])],1)],1)]:_vm._e()],2),_c('v-col',{attrs:{\"cols\":\"2\"}},[_c('v-card-text',{staticClass:\"px-0 pt-0 card-title-footer-color\",staticStyle:{\"color\":\"gray\",\"margin-top\":\"-40px\"}},[_vm._v(\"\\n ( \"+_vm._s(_vm.screen_data.guideline.company_name)+\" )\\n \")])],1),_c('v-col',{attrs:{\"cols\":\"2\"}},[_c('v-card-text',{staticClass:\"px-0 pt-0 card-title-footer-color\",staticStyle:{\"color\":\"gray\",\"margin-top\":\"-40px\"}},[_vm._v(\"\\n ( \"+_vm._s(_vm.screen_data.guideline.params.when)+\" )\\n \")])],1),_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-card-text',{staticClass:\"px-0 pt-0 card-title-footer-color\",staticStyle:{\"color\":\"gray\",\"margin-top\":\"-40px\"}},[_vm._v(\"\\n ( \"+_vm._s(_vm.screen_data.guideline.condition)+\" )\\n \")])],1),_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-card-text',{staticClass:\"px-0 pt-0 card-title-footer-color\",staticStyle:{\"color\":\"gray\",\"margin-top\":\"-40px\"}},[_vm._v(\"\\n ( \"+_vm._s(_vm.screen_data.guideline.consequence)+\" )\\n \")])],1)],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-text-field',{attrs:{\"label\":\"Descripción breve\",\"outlined\":\"\",\"disabled\":_vm.untouchable},model:{value:(_vm.screen_data.guideline.description),callback:function ($$v) {_vm.$set(_vm.screen_data.guideline, \"description\", $$v)},expression:\"screen_data.guideline.description\"}})],1)],1)],1),_c('v-col',{attrs:{\"cols\":\"3\"}},[(_vm.show_condition_params)?_c('RecursivePayloadOnSchemaEditor',{attrs:{\"schema\":_vm.current_condition.params_schema,\"key_to_show\":'Parámetros de condición'},model:{value:(_vm.screen_data.guideline.params.condition),callback:function ($$v) {_vm.$set(_vm.screen_data.guideline.params, \"condition\", $$v)},expression:\"screen_data.guideline.params.condition\"}}):_vm._e()],1),_c('v-col',{attrs:{\"cols\":\"3\"}},[(_vm.show_consequence_params)?_c('RecursivePayloadOnSchemaEditor',{attrs:{\"schema\":_vm.current_consequence.params_schema,\"key_to_show\":'Parámetros de consecuencia'},model:{value:(_vm.screen_data.guideline.params.consequence),callback:function ($$v) {_vm.$set(_vm.screen_data.guideline.params, \"consequence\", $$v)},expression:\"screen_data.guideline.params.consequence\"}}):_vm._e()],1)],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"6\"}}),_c('v-col',{attrs:{\"cols\":\"3\"}},[(_vm.current_condition && _vm.current_condition.description)?_c('p',{staticClass:\"text--italic text--grey\"},[_vm._v(_vm._s(_vm.current_condition.description))]):_vm._e()]),_c('v-col',{attrs:{\"cols\":\"3\"}},[(_vm.current_consequence && _vm.current_consequence.description)?_c('p',{staticClass:\"text--italic text--grey\"},[_vm._v(_vm._s(_vm.current_consequence.description))]):_vm._e()])],1),(this.screen_data.execution_stats)?_c('v-row',[_c('v-card-title',[_vm._v(\"\\n Estadísticas desde el último guardado:    \\n \"),_c('span',{staticClass:\"text--italic text--grey\"},[_vm._v(\" (no todos los guidelines miden los éxitos)\")])])],1):_vm._e(),(this.screen_data.execution_stats)?_c('v-row',[_c('v-col',{attrs:{\"cols\":\"2\"}},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-card-text',{staticClass:\"px-0 pt-0 card-title-footer-color\"},[_c('span',{staticClass:\"text--grey\"},[_vm._v(\"Ejecuciones:  \")]),_c('span',{staticClass:\"text--primary\"},[_vm._v(_vm._s(this.screen_data.execution_stats.executions))])])],1)],1)],1),_c('v-col',{attrs:{\"cols\":\"2\"}},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-card-text',{staticClass:\"px-0 pt-0 card-title-footer-color\"},[_c('span',{staticClass:\"text--grey\"},[_vm._v(\"Condición válida:  \")]),_c('span',{staticClass:\"text--primary\"},[_vm._v(_vm._s(this.screen_data.execution_stats.condition_passed))])])],1)],1)],1),_c('v-col',{attrs:{\"cols\":\"2\"}},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-card-text',{staticClass:\"px-0 pt-0 card-title-footer-color\"},[_c('span',{staticClass:\"text--grey\"},[_vm._v(\"Consecuencia exitosa:  \")]),_c('span',{staticClass:\"text--primary\"},[_vm._v(_vm._s(this.screen_data.execution_stats.consequence_success))])])],1)],1)],1),_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-card-text',{staticClass:\"px-0 pt-0 card-title-footer-color\"},[_c('span',{staticClass:\"text--grey\"},[_vm._v(\"Extra info:  \")]),_c('span',{staticClass:\"text--primary\"},[_vm._v(_vm._s(this.screen_data.execution_stats.computed_data))])])],1)],1)],1)],1):_vm._e(),_c('v-divider'),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('div',{staticStyle:{\"color\":\"gray\"}},[_vm._v(_vm._s(this.screen_data.guideline))])])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { GuidelinesRepo } from '@/modules/guidelines/domain/GuidelinesRepo'\nimport { GuidelineDetailScreenData } from '../domain/GuidelinesScreenData'\n\nexport class GuidelineDetailComponent {\n\n guidelines_repo: GuidelinesRepo\n screen_data: GuidelineDetailScreenData\n\n constructor(guidelines_repo, screen_data) {\n this.guidelines_repo = guidelines_repo\n this.screen_data = screen_data\n }\n\n async fetchGuideline(g_id: number) {\n this.screen_data.loading = true\n this.screen_data.guideline = await this.guidelines_repo.find_by_id(g_id)\n this.screen_data.loading = false\n }\n\n async fetchOptions() {\n let res = await this.guidelines_repo.get_options()\n this.screen_data.condition_options = res.conditions\n this.screen_data.consequence_options = res.consequences\n }\n\n async saveGuideline() {\n this.screen_data.loading = true\n let new_guideline_id = await this.guidelines_repo.save(this.screen_data.guideline)\n console.log(new_guideline_id)\n this.screen_data.loading = false\n await this.fetchGuideline(new_guideline_id)\n }\n\n async deleteGuideline() {\n this.screen_data.loading = true\n let res =await this.guidelines_repo.delete(this.screen_data.guideline)\n this.screen_data.loading = false\n if (res.OK){\n return true\n }\n return false\n }\n\n async getGuidelineStats() {\n this.screen_data.execution_stats = await this.guidelines_repo.get_guideline_stats(this.screen_data.guideline.id)\n }\n}","\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GuidelineEditor.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GuidelineEditor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./GuidelineEditor.vue?vue&type=template&id=f14dc4d0&scoped=true&\"\nimport script from \"./GuidelineEditor.vue?vue&type=script&lang=js&\"\nexport * from \"./GuidelineEditor.vue?vue&type=script&lang=js&\"\nimport style0 from \"./GuidelineEditor.vue?vue&type=style&index=0&id=f14dc4d0&scoped=true&lang=css&\"\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 \"f14dc4d0\",\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 { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VAutocomplete } from 'vuetify/lib/components/VAutocomplete';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VAlert,VAutocomplete,VBtn,VCard,VCardActions,VCardText,VCardTitle,VCol,VContainer,VDialog,VDivider,VIcon,VRow,VSpacer,VTextField})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',[_c('v-data-table',{staticClass:\"elevation-1\",attrs:{\"headers\":_vm.c_headers,\"items\":_vm.formattedRows,\"disable-pagination\":\"\",\"hide-default-footer\":\"\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n ","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GenericTableComponent.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GenericTableComponent.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./GenericTableComponent.vue?vue&type=template&id=4f722058&scoped=true&\"\nimport script from \"./GenericTableComponent.vue?vue&type=script&lang=js&\"\nexport * from \"./GenericTableComponent.vue?vue&type=script&lang=js&\"\nimport style0 from \"./GenericTableComponent.vue?vue&type=style&index=0&id=4f722058&scoped=true&lang=css&\"\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 \"4f722058\",\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 { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\ninstallComponents(component, {VContainer,VDataTable})\n","export * from \"-!../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GuidelineEditor.vue?vue&type=style&index=0&id=f14dc4d0&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.schema.type === 'object')?_c('div',{staticClass:\"nested-section\"},[_c('h3',{style:({ fontSize: _vm.getFontSize })},[_vm._v(_vm._s(_vm.key_to_show))]),(_vm.intern_key!=_vm.key_to_show)?_c('i',[_vm._v(\" \"+_vm._s(_vm.intern_key))]):_vm._e(),_vm._l((_vm.schema.properties),function(value,key){return [_c('div',{staticClass:\"nested-section\",style:({ marginLeft: _vm.depth * 20 + 'px' })},[_c('RecursivePayloadOnSchemaEditor',{attrs:{\"schema\":value,\"key_to_show\":_vm.get_next_key_to_show(key, value),\"intern_key\":key,\"depth\":_vm.depth + 1,\"readonly\":_vm.readonly},on:{\"input\":function (new_data) { return _vm.update_payload(key, new_data); }},model:{value:(_vm.data_payload[key]),callback:function ($$v) {_vm.$set(_vm.data_payload, key, $$v)},expression:\"data_payload[key]\"}})],1)]}),_vm._l((_vm.out_of_schema_keys),function(key){return [_c('div',{staticClass:\"nested-section\",style:({ marginLeft: _vm.depth * 20 + 'px' })},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"4\"}},[_c('p',{style:({ fontSize: _vm.nextFontSize, color:'red'})},[_c('strong',[_vm._v(_vm._s(key)+\":\")])])]),_c('v-col',{attrs:{\"cols\":\"7\"}},[_c('p',{style:({ fontSize: _vm.nextFontSize , color:'red' })},[_vm._v(_vm._s(_vm.data_payload[key]))])]),(!_vm.readonly)?_c('v-col',{attrs:{\"cols\":\"1\"}},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({attrs:{\"icon\":\"\",\"color\":\"red\"},on:{\"click\":function($event){return _vm.delete_extra_key(key)}}},'v-btn',attrs,false),on),[_c('v-icon',[_vm._v(\"mdi-delete\")])],1)]}}],null,true)},[_c('span',[_vm._v(\"Eliminar campo (no consta en esquema de registro)\")])])],1):_vm._e()],1)],1)]})],2):(_vm.schema.type === 'array')?_c('div',{staticClass:\"nested-section\"},[_c('h3',{style:({ fontSize: _vm.getFontSize })},[_vm._v(_vm._s(_vm.key_to_show))]),(_vm.intern_key!=_vm.key_to_show)?_c('i',[_vm._v(\" \"+_vm._s(_vm.intern_key))]):_vm._e(),(!_vm.is_tablable(_vm.schema.items))?_c('div',[_c('ListOnSchemaEditor',{attrs:{\"item_schema\":_vm.schema.items,\"readonly\":_vm.readonly,\"depth\":_vm.depth + 1},on:{\"change\":_vm.payloadChanged},model:{value:(_vm.data_payload),callback:function ($$v) {_vm.data_payload=$$v},expression:\"data_payload\"}})],1):_c('div',[_c('GenericTableComponent',{attrs:{\"data\":_vm.data_payload,\"headers\":Object.keys(_vm.schema.items.properties)}})],1)]):_c('div',{staticClass:\"nested-section\"},[_c('v-row',{staticClass:\"d-flex align-baseline\"},[_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('p',{style:({ fontSize: _vm.getFontSize })},[_c('strong',[_vm._v(_vm._s(_vm.key_to_show)+\":\")])])]),_c('v-col',{attrs:{\"cols\":\"8\"}},[(_vm.schema.type === 'boolean')?_c('v-checkbox',{attrs:{\"label\":_vm.intern_key,\"readonly\":_vm.readonly,\"hide-details\":\"auto\"},on:{\"change\":_vm.payloadChanged},model:{value:(_vm.data_payload),callback:function ($$v) {_vm.data_payload=$$v},expression:\"data_payload\"}}):(_vm.schema.type === 'string')?_c('v-text-field',{attrs:{\"label\":_vm.intern_key,\"readonly\":_vm.readonly,\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"auto\"},on:{\"input\":_vm.payloadChanged},model:{value:(_vm.data_payload),callback:function ($$v) {_vm.data_payload=$$v},expression:\"data_payload\"}}):(_vm.schema.type === 'number' || _vm.schema.type === 'integer')?_c('v-text-field',{attrs:{\"label\":_vm.intern_key,\"readonly\":_vm.readonly,\"outlined\":\"\",\"dense\":\"\",\"type\":\"number\",\"hide-details\":\"auto\"},on:{\"input\":_vm.turnIntoNumber},model:{value:(_vm.data_payload),callback:function ($$v) {_vm.data_payload=$$v},expression:\"data_payload\"}}):(typeof _vm.schema === 'object' && Object.keys(_vm.schema).length === 0)?_c('div',[_vm._v(\"\\n \"+_vm._s(_vm.data_payload)+\"\\n \")]):_vm._e()],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',[_vm._l((_vm.value),function(item,index){return _c('div',{key:index,staticClass:\"d-flex align-baseline\"},[_c('RecursivePayloadOnSchemaEditor',{attrs:{\"schema\":_vm.item_schema,\"readonly\":_vm.readonly,\"key_to_show\":(index + 1).toString(),\"depth\":_vm.depth+1},on:{\"change\":_vm.payloadChanged},model:{value:(_vm.value[index]),callback:function ($$v) {_vm.$set(_vm.value, index, $$v)},expression:\"value[index]\"}}),(!_vm.readonly)?_c('button',{attrs:{\"icon\":\"\",\"small\":\"\"},on:{\"click\":function($event){return _vm.removeItem(index)}}},[_c('v-icon',{staticClass:\"red--text\"},[_vm._v(\"mdi-close\")])],1):_vm._e()],1)}),(!_vm.readonly)?_c('button',{style:({ marginLeft: _vm.depth*20 + 'px' }),attrs:{\"icon\":\"\",\"small\":\"\"},on:{\"click\":_vm.addItem}},[_c('v-icon',{staticClass:\"primary_blue--text\"},[_vm._v(\"mdi-plus\")])],1):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\nstyleaddItem() {\n this.items.push({});\n },\n removeItem(index) {\n this.items.splice(index, 1);\n }","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ListOnSchemaEditor.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ListOnSchemaEditor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ListOnSchemaEditor.vue?vue&type=template&id=0079d63a&scoped=true&\"\nimport script from \"./ListOnSchemaEditor.vue?vue&type=script&lang=js&\"\nexport * from \"./ListOnSchemaEditor.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ListOnSchemaEditor.vue?vue&type=style&index=0&id=0079d63a&scoped=true&lang=css&\"\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 \"0079d63a\",\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 { VIcon } from 'vuetify/lib/components/VIcon';\ninstallComponents(component, {VIcon})\n","\n \n\n \n \n ","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecursivePayloadOnSchemaEditor.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecursivePayloadOnSchemaEditor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RecursivePayloadOnSchemaEditor.vue?vue&type=template&id=0abd7038&scoped=true&\"\nimport script from \"./RecursivePayloadOnSchemaEditor.vue?vue&type=script&lang=js&\"\nexport * from \"./RecursivePayloadOnSchemaEditor.vue?vue&type=script&lang=js&\"\nimport style0 from \"./RecursivePayloadOnSchemaEditor.vue?vue&type=style&index=0&id=0abd7038&scoped=true&lang=css&\"\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 \"0abd7038\",\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 { VCheckbox } from 'vuetify/lib/components/VCheckbox';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VBtn,VCheckbox,VCol,VIcon,VRow,VTextField,VTooltip})\n"],"sourceRoot":""}