{"version":3,"sources":["webpack:///./src/views/Encuesta/Encuesta8/Enc8Preferencia/template.vue?5019","webpack:///./src/views/Encuesta/Encuesta8/Enc8Preferencia/template.vue","webpack:///./src/views/Encuesta/Encuesta8/Enc8Preferencia/component.ts","webpack:///./src/views/BaseCompEncuesta/component.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","_v","_s","titulo","staticClass","attrs","listaOpciones","requerido","valRequerido","model","value","item","propPrefix","callback","$$v","$set","expression","staticRenderFns","script","component","mixins","props","String","Boolean","Object","BaseCompEncuesta","v","valEmailReq","test","opcSiNo","text","campo","undefined","$props","encuestaDef","datos","JSON","parse","find","elem","name","opciones"],"mappings":"uLAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACA,EAAG,aAAaA,EAAG,cAAc,CAACJ,EAAIM,GAAGN,EAAIO,GAAGP,EAAIQ,WAAWJ,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACK,YAAY,YAAYC,MAAM,CAAC,KAAO,KAAK,GAAK,MAAM,CAACN,EAAG,aAAa,CAACM,MAAM,CAAC,MAAQV,EAAIW,cAAc,WAAW,MAAS,WAAaX,EAAIY,UAAY,KAAM,IAAK,MAAQZ,EAAIY,UAAYZ,EAAIa,aAAe,GAAG,UAAY,GAAG,MAAQ,GAAG,SAAW,GAAG,SAAWb,EAAIY,WAAWE,MAAM,CAACC,MAAOf,EAAIgB,KAAMhB,EAAIiB,WAAa,WAAaC,SAAS,SAAUC,GAAMnB,EAAIoB,KAAKpB,EAAIgB,KAAOhB,EAAIiB,WAAa,UAAYE,IAAME,WAAW,mCAAmC,GAAGjB,EAAG,QAAQ,CAACK,YAAY,YAAYC,MAAM,CAAC,KAAO,KAAK,GAAK,MAAM,CAACN,EAAG,eAAe,CAACM,MAAM,CAAC,MAAS,sCAAwCV,EAAIY,UAAY,KAAM,IAAK,MAAQ,GAAG,SAAW,GAAG,QAAU,IAAI,MAAQZ,EAAIY,UAAYZ,EAAIa,aAAe,GAAG,SAAWb,EAAIY,WAAWE,MAAM,CAACC,MAAOf,EAAIgB,KAAMhB,EAAIiB,WAAa,QAAUC,SAAS,SAAUC,GAAMnB,EAAIoB,KAAKpB,EAAIgB,KAAOhB,EAAIiB,WAAa,OAASE,IAAME,WAAW,gCAAgC,IAAI,IAAI,IACvlCC,EAAkB,G,YCAlBC,EAAS,GAKTC,EAAY,eACdD,EACAxB,EACAuB,GACA,EACA,KACA,KACA,MAIa,EAAAE,E,oBCJM,EAArB,qIAA6C,QAAxB,EAAe,gBATnC,eAAU,CACPC,OAAQ,CAAC,GACTC,MAAO,CACLlB,OAAQmB,OACRf,UAAWgB,QACXX,WAAYU,OACZX,KAAMa,WAGS,mB,kICJAC,EAArB,yG,0BAEc,EAAAjB,aAAe,CACrB,SAACkB,GAAD,QAAcA,GAAK,cAEb,EAAAC,YAAc,CACpB,SAACD,GAAD,QAAcA,GAAK,aACnB,SAACA,GAAD,MAAY,YAAYE,KAAKF,IAAM,oBAE7B,EAAAG,QAAU,CAChB,CAAEnB,MAAO,IAAKoB,KAAM,MACpB,CAAEpB,MAAO,IAAKoB,KAAM,OAX5B,+DAc4BC,GACpB,QAAgCC,IAA5BpC,KAAKqC,OAAOC,YAA2B,CACvC,IAAMC,EAAQC,KAAKC,MAAMzC,KAAKqC,OAAOC,YAAYC,OACjD,GAAIA,EAAM,UAAW,CACjB,IAAMxB,EAAOwB,EAAM,UAAUG,MAAK,SAACC,GAAD,OAAeA,EAAKC,MAAQD,EAAKC,OAAST,KAE5E,GAAIpB,GAAQA,EAAK8B,SACb,OAAO9B,EAAK8B,UAIxB,MAAO,OAzBf,GAA8C,QAAzBhB,EAAgB,gBAJpC,eAAU,CAETJ,MAAO,CAAEa,YAAaV,WAEHC,GAAA","file":"js/chunk-4581096b.8f97ccfa.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-flex',[_c('v-divider'),_c('v-subheader',[_vm._v(_vm._s(_vm.titulo))]),_c('v-row',[_c('v-col',{staticClass:\"cont-edit\",attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('v-combobox',{attrs:{\"items\":_vm.listaOpciones('especie'),\"label\":(\"Especie\" + (_vm.requerido ? ' *': '')),\"rules\":_vm.requerido ? _vm.valRequerido : [],\"clearable\":\"\",\"dense\":\"\",\"outlined\":\"\",\"required\":_vm.requerido},model:{value:(_vm.item[(_vm.propPrefix + \"especie\")]),callback:function ($$v) {_vm.$set(_vm.item, (_vm.propPrefix + \"especie\"), $$v)},expression:\"item[`${propPrefix}especie`]\"}})],1),_c('v-col',{staticClass:\"cont-edit\",attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('v-text-field',{attrs:{\"label\":(\"Tema(s) de experiencia profesional\" + (_vm.requerido ? ' *': '')),\"dense\":\"\",\"outlined\":\"\",\"counter\":255,\"rules\":_vm.requerido ? _vm.valRequerido : [],\"required\":_vm.requerido},model:{value:(_vm.item[(_vm.propPrefix + \"tema\")]),callback:function ($$v) {_vm.$set(_vm.item, (_vm.propPrefix + \"tema\"), $$v)},expression:\"item[`${propPrefix}tema`]\"}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./template.vue?vue&type=template&id=f8b2e878&\"\nvar script = {}\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","import { Component } from 'vue-property-decorator';\r\nimport Template from './template.vue';\r\nimport BaseCompEncuesta from '@/views/BaseCompEncuesta/component';\r\n\r\n@Component({\r\n mixins: [Template],\r\n props: {\r\n titulo: String,\r\n requerido: Boolean,\r\n propPrefix: String,\r\n item: Object,\r\n },\r\n})\r\nexport default class Enc8Preferencia extends BaseCompEncuesta {\r\n //\r\n}\r\n","import { Component, Vue } from 'vue-property-decorator';\r\n// import Template from './template.vue';\r\n// import { EncuestaReg8, Estado } from '@/store/modules/encuestas/types';\r\n// import { State, Action, Getter } from 'vuex-class';\r\n\r\n@Component({\r\n// mixins: [Template],\r\n props: { encuestaDef: Object },\r\n})\r\nexport default class BaseCompEncuesta extends Vue {\r\n\r\n protected valRequerido = [\r\n (v: any) => !!v || 'Requerido',\r\n ];\r\n protected valEmailReq = [\r\n (v: any) => !!v || 'Requerido',\r\n (v: any) => /.+@.+\\..+/.test(v) || 'Correo inválido',\r\n ];\r\n protected opcSiNo = [\r\n { value: 'S', text: 'Sí' },\r\n { value: 'N', text: 'No' },\r\n ];\r\n \r\n protected listaOpciones(campo: string): string[] {\r\n if (this.$props.encuestaDef !== undefined) {\r\n const datos = JSON.parse(this.$props.encuestaDef.datos);\r\n if (datos['campos']) {\r\n const item = datos['campos'].find((elem: any) => elem.name && elem.name === campo);\r\n // console.log('campos ----- ', item.opciones);\r\n if (item && item.opciones) {\r\n return item.opciones;\r\n }\r\n }\r\n }\r\n return [];\r\n }\r\n\r\n}\r\n"],"sourceRoot":""}