{"version":3,"sources":["webpack:///./src/views/Crear_usuarios.vue","webpack:///./src/components/Crear_usuario.vue","webpack:///src/components/Crear_usuario.vue","webpack:///./src/components/Crear_usuario.vue?0490","webpack:///./src/components/Crear_usuario.vue?6226","webpack:///../../../src/components/VCombobox/VCombobox.ts","webpack:///./src/components/Editar_usuario.vue","webpack:///src/components/Editar_usuario.vue","webpack:///./src/components/Editar_usuario.vue?610c","webpack:///./src/components/Editar_usuario.vue?dede","webpack:///src/views/Crear_usuarios.vue","webpack:///./src/views/Crear_usuarios.vue?01dc","webpack:///./src/views/Crear_usuarios.vue?ac56","webpack:///../../../src/components/VForm/VForm.ts","webpack:///../../../src/components/VAutocomplete/VAutocomplete.ts"],"names":["_c","staticClass","attrs","model","callback","expression","actualizarDatosUsuario","_vm","scopedSlots","key","item","fn","estado","_v","staticRenderFns","render","preventDefault","value","$set","datos_formulario","telefono","agencias","vacio","cargos","codigo_vendedor_id","_e","estado_registro_usuario","dialog","name","data","id_usuarioValidacion","usuarioValidacion","id_agencia","id_cargo","id_usuario","nombre_usuario","email","usuario","validarIdentificacion","v","includes","length","validarUsuario","correo_validacion","test","validar_telefono","methods","gestionUsuario","datosCreacionUsuario","datosCabeceraFormulario","axiosInstance","get","url","then","res","filter","push","id","catch","err","console","error","limpiarCamposFormulario","registrarUsuario","post","Swal","fire","icon","title","text","status","response","message","$emit","mounted","component","VAutocomplete","extend","props","delimiters","type","Array","default","returnObject","Boolean","editingIndex","computed","computedCounterValue","this","multiple","selectedItems","internalSearch","toString","hasSlot","VSelect","options","call","isAnyValueAllowed","menuCanShow","isFocused","hasDisplayedItems","$slots","hideNoData","searchIsDirty","onInternalSearchChanged","val","delimiter","find","d","endsWith","slice","updateTags","updateMenuDimensions","genInput","input","on","paste","onPaste","genChipSelection","index","chip","componentOptions","listeners","dblclick","getText","selectedIndex","onChipInput","onEnterDown","e","getMenuIndex","$nextTick","updateSelf","onKeyDown","keyCode","ctrlKey","keyCodes","home","end","left","$refs","selectionStart","enter","changeSelectedIndex","onTabDown","stopPropagation","selectItem","updateEditing","toLocaleLowerCase","setSelectedItems","internalValue","setValue","undefined","findIndex","Object","assign","splice","updateCombobox","isUsingSlot","$scopedSlots","selection","hasChips","menuIndex","itemToSelect","event","pastedItemText","_a","clipboardData","getData","findExistingIndex","clearableCallback","cargarDatosModulo","ref","valid","select","components","codigo","String","token","items","guardar_estado","editarUsuario","log","agenciasAsignadas","axios","config","asignarAgencias","form","validate","mapState","headers","informacion_usuario","localStorage","getItem","CrearUsuario","EditarUsuario","headers_usuarios","align","filterable","sortable","estado_datos_usuario","usuarios","search","cargarDatosUsuario","mixins","BindsAttrs","RegistrableProvide","provide","inheritAttrs","disabled","lazyValidation","readonly","inputs","watchers","errorBag","watch","handler","errors","values","deep","immediate","watchInput","watcher","$watch","_uid","shouldValidate","hasOwnProperty","reset","forEach","resetErrorBag","setTimeout","resetValidation","register","unregister","found","i","unwatch","$delete","h","novalidate","attrs$","submit","getSlot","defaultMenuProps","VSelectMenuProps","offsetY","offsetOverflow","transition","autoSelectFirst","Function","queryText","itemText","indexOf","menuProps","noFilter","searchInput","lazySearch","classes","computedItems","filteredItems","selectedValues","map","getValue","hideSelected","some","hasItem","currentRange","selectedItem","isSearching","allItems","getPropertyFromItem","set","isDirty","$_menuProps","contentClass","trim","valueComparator","listData","virtualizedItems","document","addEventListener","onCopy","removeEventListener","blur","isMenuActive","oldVal","activateMenu","created","setSearch","destroyed","onFilteredItemsChanged","preSelectedItem","menu","listIndex","setMenuIndex","getTiles","updateDimensions","right","backspace","delete","deleteCurrentItem","curIndex","curItem","isInteractive","getDisabled","lastIndex","nextIndex","nextItem","VTextField","mergeData","getObjectValueByPath","autocomplete","domProps","genInputSlot","slot","role","genSelections","onClick","onFocus","isAppendInner","target","onInput","badInput","validity","onSpaceDown","onUpDown","currentItem","currentItemText","setData","_b"],"mappings":"2OAAgK,W,IAAE,OAAE,EAAK,QAAS,G,OAAM,EAAC,Q,MAAC,CAAiB,GAAM,Y,C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ArK,EAAMG,qBAAa,IAAAkK,KAAED,QAAQ,2CAA4CD,GACzEnK,EAAMnJ","file":"js/chunk-9d23e47c.a033d4fd.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-app',{attrs:{\"id\":\"inspire\"}},[_c('v-container',[_c('v-layout',{attrs:{\"wrap\":\"\",\"row\":\"\"}},[_c('v-flex',{attrs:{\"text-center\":\"\",\"md12\":\"\",\"xs12\":\"\",\"sm12\":\"\"}},[_c('v-card',{staticClass:\"mr-3 ml-3\",attrs:{\"elevation\":\"2\",\"outlined\":\"\"}},[_c('v-card-title',{staticClass:\"grey darken-4 white--text headline\"},[_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"md4\":\"\",\"xs12\":\"\",\"sm12\":\"\"}}),_c('v-flex',{attrs:{\"md4\":\"\",\"xs12\":\"\",\"sm12\":\"\"}},[_c('v-text-field',{attrs:{\"append-icon\":\"mdi-magnify\",\"label\":\"Buscar:\",\"single-line\":\"\",\"hide-details\":\"\",\"solo\":\"\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_c('v-flex',{attrs:{\"md4\":\"\",\"xs12\":\"\",\"sm12\":\"\"}},[_c('div',{staticClass:\"d-flex justify-center\"},[_c('CrearUsuario',{on:{\"click\":_vm.actualizarDatosUsuario}})],1)])],1)],1),_c('v-data-table',{attrs:{\"headers\":_vm.headers_usuarios,\"items\":_vm.usuarios,\"search\":_vm.search,\"loading\":_vm.estado_datos_usuario},scopedSlots:_vm._u([{key:`item.opciones`,fn:function({ item }){return [_c('div',{staticClass:\"d-flex justify-center\"},[_c('EditarUsuario',{attrs:{\"codigo\":item.id}})],1)]}},{key:`item.estado`,fn:function({ item }){return [(item.estado.trim() == 'activo')?_c('v-chip',{attrs:{\"color\":\"#4CAF50\",\"dark\":\"\"}},[_vm._v(\" \"+_vm._s(item.estado)+\" \")]):_vm._e(),(item.estado.trim() == 'inactivo')?_c('v-chip',{attrs:{\"color\":\"#FF5252\",\"dark\":\"\"}},[_vm._v(\" \"+_vm._s(item.estado)+\" \")]):_vm._e()]}}],null,true)})],1)],1)],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"d-flex justify-center\"},[_c('v-btn',{staticClass:\"mx-2 mt-2\",attrs:{\"outlined\":\"\",\"rounded\":\"\",\"dark\":\"\",\"color\":\"#FFB300\"},on:{\"click\":_vm.gestionUsuario}},[_c('v-icon',{attrs:{\"dark\":\"\"}},[_vm._v(\" mdi-plus \")]),_vm._v(\"Crear Usuario \")],1),_c('v-container',[_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"md12\":\"\",\"sm12\":\"\",\"xs12\":\"\"}},[_c('v-dialog',{attrs:{\"persistent\":\"\",\"max-width\":\"900px\",\"transition\":\"dialog-bottom-transition\"},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',[_c('v-card-title',{staticClass:\"grey darken-4 white--text headline\"},[_c('span',[_vm._v(\"Crear usuario\")])]),_c('v-card-text',[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.registrarUsuario.apply(null, arguments)}}},[_c('v-layout',{staticClass:\"pa-7 mr-3 ml-3\",attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"text-center\":\"\",\"md3\":\"\",\"xs12\":\"\",\"sm12\":\"\"}},[_c('v-text-field',{staticClass:\"mr-1 ml-1 mt-1\",attrs:{\"type\":\"number\",\"label\":\"CC\",\"required\":\"\",\"counter\":\"\",\"rules\":_vm.validarIdentificacion},model:{value:(_vm.datos_formulario.id_usuario),callback:function ($$v) {_vm.$set(_vm.datos_formulario, \"id_usuario\", $$v)},expression:\"datos_formulario.id_usuario\"}}),_c('v-text-field',{staticClass:\"mr-1 ml-1 mt-1\",attrs:{\"type\":\"email\",\"label\":\"Correo\",\"required\":\"\",\"counter\":\"\",\"rules\":_vm.correo_validacion},model:{value:(_vm.datos_formulario.email),callback:function ($$v) {_vm.$set(_vm.datos_formulario, \"email\", $$v)},expression:\"datos_formulario.email\"}})],1),_c('v-flex',{attrs:{\"text-center\":\"\",\"md3\":\"\",\"xs12\":\"\",\"sm12\":\"\"}},[_c('v-text-field',{staticClass:\"mr-1 ml-1 mt-1\",attrs:{\"label\":\"Nombre Completo\",\"required\":\"\",\"counter\":\"\",\"rules\":_vm.vacio},model:{value:(_vm.datos_formulario.nombre_usuario),callback:function ($$v) {_vm.$set(_vm.datos_formulario, \"nombre_usuario\", $$v)},expression:\"datos_formulario.nombre_usuario\"}}),_c('v-text-field',{staticClass:\"mr-1 ml-1 mt-1\",attrs:{\"type\":\"tel\",\"label\":\"Teléfono\",\"required\":\"\",\"counter\":\"\",\"rules\":_vm.vacio},model:{value:(_vm.datos_formulario.telefono),callback:function ($$v) {_vm.$set(_vm.datos_formulario, \"telefono\", $$v)},expression:\"datos_formulario.telefono\"}})],1),_c('v-flex',{attrs:{\"text-center\":\"\",\"md3\":\"\",\"xs12\":\"\",\"sm12\":\"\"}},[_c('v-autocomplete',{staticClass:\"mr-1 ml-1 mt-1\",attrs:{\"items\":_vm.agencias,\"item-value\":\"id_agencia\",\"item-text\":\"agencia\",\"label\":\"Agencia\",\"rules\":_vm.vacio,\"required\":\"\"},model:{value:(_vm.datos_formulario.id_agencia),callback:function ($$v) {_vm.$set(_vm.datos_formulario, \"id_agencia\", $$v)},expression:\"datos_formulario.id_agencia\"}}),_c('v-text-field',{staticClass:\"mr-1 ml-1 mt-1\",attrs:{\"label\":\"Usuario\",\"required\":\"\",\"counter\":\"\",\"rules\":_vm.validarUsuario},model:{value:(_vm.datos_formulario.usuario),callback:function ($$v) {_vm.$set(_vm.datos_formulario, \"usuario\", $$v)},expression:\"datos_formulario.usuario\"}})],1),_c('v-flex',{attrs:{\"text-center\":\"\",\"md3\":\"\",\"xs12\":\"\",\"sm12\":\"\"}},[_c('v-autocomplete',{staticClass:\"mr-1 ml-1 mt-1\",attrs:{\"items\":_vm.cargos,\"item-value\":\"id_cargo\",\"item-text\":\"cargo\",\"label\":\"Cargo\",\"required\":\"\",\"rules\":_vm.vacio},model:{value:(_vm.datos_formulario.id_cargo),callback:function ($$v) {_vm.$set(_vm.datos_formulario, \"id_cargo\", $$v)},expression:\"datos_formulario.id_cargo\"}}),(_vm.datos_formulario.id_cargo == 2)?_c('v-text-field',{staticClass:\"mr-1 ml-1 mt-1\",attrs:{\"type\":\"number\",\"label\":\"Código vendedor\",\"required\":\"\",\"counter\":\"\",\"rules\":_vm.vacio},model:{value:(_vm.datos_formulario.codigo_vendedor_id),callback:function ($$v) {_vm.$set(_vm.datos_formulario, \"codigo_vendedor_id\", $$v)},expression:\"datos_formulario.codigo_vendedor_id\"}}):_vm._e()],1)],1),_c('div',{staticClass:\"d-flex justify-center\"},[_c('v-btn',{attrs:{\"color\":\"#FFB300\",\"elevation\":\"2\",\"outlined\":\"\",\"rounded\":\"\",\"type\":\"submit\",\"loading\":_vm.estado_registro_usuario}},[_c('v-icon',{attrs:{\"dark\":\"\"}},[_vm._v(\" mdi-plus \")]),_vm._v(\" Guardar \")],1)],1)],1)]),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"blue darken-1\",\"text\":\"\"},on:{\"click\":function($event){_vm.dialog = false}}},[_vm._v(\" Cerrar \")])],1)],1)],1)],1)],1)],1)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Crear_usuario.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Crear_usuario.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Crear_usuario.vue?vue&type=template&id=795bad70&scoped=true\"\nimport script from \"./Crear_usuario.vue?vue&type=script&lang=js\"\nexport * from \"./Crear_usuario.vue?vue&type=script&lang=js\"\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 \"795bad70\",\n null\n \n)\n\nexport default component.exports","// Styles\nimport '../VAutocomplete/VAutocomplete.sass'\n\n// Extensions\nimport VSelect from '../VSelect/VSelect'\nimport VAutocomplete from '../VAutocomplete/VAutocomplete'\n\n// Utils\nimport { keyCodes } from '../../util/helpers'\n\n// Types\nimport { PropValidator } from 'vue/types/options'\n\n/* @vue/component */\nexport default VAutocomplete.extend({\n name: 'v-combobox',\n\n props: {\n delimiters: {\n type: Array,\n default: () => ([]),\n } as PropValidator,\n returnObject: {\n type: Boolean,\n default: true,\n },\n },\n\n data: () => ({\n editingIndex: -1,\n }),\n\n computed: {\n computedCounterValue (): number {\n return this.multiple\n ? this.selectedItems.length\n : (this.internalSearch || '').toString().length\n },\n hasSlot (): boolean {\n return VSelect.options.computed.hasSlot.call(this) || this.multiple\n },\n isAnyValueAllowed (): boolean {\n return true\n },\n menuCanShow (): boolean {\n if (!this.isFocused) return false\n\n return this.hasDisplayedItems ||\n (!!this.$slots['no-data'] && !this.hideNoData)\n },\n searchIsDirty (): boolean {\n return this.internalSearch != null\n },\n },\n\n methods: {\n onInternalSearchChanged (val: any) {\n if (\n val &&\n this.multiple &&\n this.delimiters.length\n ) {\n const delimiter = this.delimiters.find(d => val.endsWith(d))\n if (delimiter != null) {\n this.internalSearch = val.slice(0, val.length - delimiter.length)\n this.updateTags()\n }\n }\n\n this.updateMenuDimensions()\n },\n genInput () {\n const input = VAutocomplete.options.methods.genInput.call(this)\n\n delete input.data!.attrs!.name\n input.data!.on!.paste = this.onPaste\n\n return input\n },\n genChipSelection (item: object, index: number) {\n const chip = VSelect.options.methods.genChipSelection.call(this, item, index)\n\n // Allow user to update an existing value\n if (this.multiple) {\n chip.componentOptions!.listeners! = {\n ...chip.componentOptions!.listeners!,\n dblclick: () => {\n this.editingIndex = index\n this.internalSearch = this.getText(item)\n this.selectedIndex = -1\n },\n }\n }\n\n return chip\n },\n onChipInput (item: object) {\n VSelect.options.methods.onChipInput.call(this, item)\n\n this.editingIndex = -1\n },\n // Requires a manual definition\n // to overwrite removal in v-autocomplete\n onEnterDown (e: Event) {\n e.preventDefault()\n // If has menu index, let v-select-list handle\n if (this.getMenuIndex() > -1) return\n\n this.$nextTick(this.updateSelf)\n },\n onKeyDown (e: KeyboardEvent) {\n const keyCode = e.keyCode\n\n if (\n e.ctrlKey ||\n ![keyCodes.home, keyCodes.end].includes(keyCode)\n ) {\n VSelect.options.methods.onKeyDown.call(this, e)\n }\n\n // If user is at selection index of 0\n // create a new tag\n if (this.multiple &&\n keyCode === keyCodes.left &&\n this.$refs.input.selectionStart === 0\n ) {\n this.updateSelf()\n } else if (keyCode === keyCodes.enter) {\n this.onEnterDown(e)\n }\n\n // The ordering is important here\n // allows new value to be updated\n // and then moves the index to the\n // proper location\n this.changeSelectedIndex(keyCode)\n },\n onTabDown (e: KeyboardEvent) {\n // When adding tags, if searching and\n // there is not a filtered options,\n // add the value to the tags list\n if (this.multiple &&\n this.internalSearch &&\n this.getMenuIndex() === -1\n ) {\n e.preventDefault()\n e.stopPropagation()\n\n return this.updateTags()\n }\n\n VAutocomplete.options.methods.onTabDown.call(this, e)\n },\n selectItem (item: object) {\n // Currently only supports items:\n if (this.editingIndex > -1) {\n this.updateEditing()\n } else {\n VAutocomplete.options.methods.selectItem.call(this, item)\n\n // if selected item contains search value,\n // remove the search string\n if (\n this.internalSearch &&\n this.multiple &&\n this.getText(item).toLocaleLowerCase().includes(this.internalSearch.toLocaleLowerCase())\n ) {\n this.internalSearch = null\n }\n }\n },\n setSelectedItems () {\n if (this.internalValue == null ||\n this.internalValue === ''\n ) {\n this.selectedItems = []\n } else {\n this.selectedItems = this.multiple ? this.internalValue : [this.internalValue]\n }\n },\n setValue (value?: any) {\n VSelect.options.methods.setValue.call(this, value === undefined ? this.internalSearch : value)\n },\n updateEditing () {\n const value = this.internalValue.slice()\n const index = this.selectedItems.findIndex(item =>\n this.getText(item) === this.internalSearch)\n\n // If user enters a duplicate text on chip edit,\n // don't add it, move it to the end of the list\n if (index > -1) {\n const item = typeof value[index] === 'object'\n ? Object.assign({}, value[index])\n : value[index]\n\n value.splice(index, 1)\n value.push(item)\n } else {\n value[this.editingIndex] = this.internalSearch\n }\n\n this.setValue(value)\n this.editingIndex = -1\n this.internalSearch = null\n },\n updateCombobox () {\n // If search is not dirty, do nothing\n if (!this.searchIsDirty) return\n\n // The internal search is not matching\n // the internal value, update the input\n if (this.internalSearch !== this.getText(this.internalValue)) this.setValue()\n\n // Reset search if using slot to avoid a double input\n const isUsingSlot = Boolean(this.$scopedSlots.selection) || this.hasChips\n if (isUsingSlot) this.internalSearch = null\n },\n updateSelf () {\n this.multiple ? this.updateTags() : this.updateCombobox()\n },\n updateTags () {\n const menuIndex = this.getMenuIndex()\n\n // If the user is not searching\n // and no menu item is selected\n // or if the search is empty\n // do nothing\n if ((menuIndex < 0 && !this.searchIsDirty) ||\n !this.internalSearch) return\n\n if (this.editingIndex > -1) {\n return this.updateEditing()\n }\n\n const index = this.selectedItems.findIndex(item =>\n this.internalSearch === this.getText(item))\n\n // If the duplicate item is an object,\n // copy it, so that it can be added again later\n const itemToSelect = index > -1 && typeof this.selectedItems[index] === 'object'\n ? Object.assign({}, this.selectedItems[index])\n : this.internalSearch\n\n // If it already exists, do nothing\n // this might need to change to bring\n // the duplicated item to the last entered\n if (index > -1) {\n const internalValue = this.internalValue.slice()\n internalValue.splice(index, 1)\n\n this.setValue(internalValue)\n }\n\n // If menu index is greater than 1\n // the selection is handled elsewhere\n // TODO: find out where\n if (menuIndex > -1) return (this.internalSearch = null)\n\n this.selectItem(itemToSelect)\n\n this.internalSearch = null\n },\n onPaste (event: ClipboardEvent) {\n this.$emit('paste', event)\n if (!this.multiple || this.searchIsDirty) return\n\n const pastedItemText = event.clipboardData?.getData('text/vnd.vuetify.autocomplete.item+plain')\n if (pastedItemText && this.findExistingIndex(pastedItemText as any) === -1) {\n event.preventDefault()\n VSelect.options.methods.selectItem.call(this, pastedItemText as any)\n }\n },\n clearableCallback () {\n this.editingIndex = -1\n\n VAutocomplete.options.methods.clearableCallback.call(this)\n },\n },\n})\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({staticClass:\"mt-6\",attrs:{\"dense\":\"\",\"color\":\"#FFB300\"},on:{\"click\":_vm.cargarDatosModulo}},'v-icon',attrs,false),on),[_vm._v(\" mdi-clipboard-check-multiple-outline \")])]}}])},[_c('span',[_vm._v(\"Esta opción te permite asignar las agencias a visualizar\")])]),_c('div',{staticClass:\"d-flex justify-center\"},[_c('v-container',[_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"md12\":\"\",\"sm12\":\"\",\"xs12\":\"\"}},[_c('v-dialog',{attrs:{\"persistent\":\"\",\"max-width\":\"900px\",\"transition\":\"dialog-bottom-transition\"},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',[_c('v-card-title',{staticClass:\"grey darken-4 white--text headline\"},[_c('span',[_vm._v(\"ASIGNAR VISUALIZACIÓN DE COTIZACIONES\")])]),_c('v-card-text',[_c('v-card',{staticClass:\"mt-2\"},[_c('v-form',{ref:\"form\",on:{\"submit\":function($event){$event.preventDefault();return _vm.asignarAgencias.apply(null, arguments)}},model:{value:(_vm.valid),callback:function ($$v) {_vm.valid=$$v},expression:\"valid\"}},[_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"md4\":\"\",\"sm12\":\"\",\"xs12\":\"\"}}),_c('v-flex',{attrs:{\"md4\":\"\",\"sm12\":\"\",\"xs12\":\"\"}},[_c('v-container',{attrs:{\"fluid\":\"\"}},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-combobox',{attrs:{\"rules\":[\n (v) =>\n !!(v && v.length) ||\n 'Agregar una agencia para continuar!',\n ],\"items\":_vm.items,\"label\":\"Asignar Agencias\",\"multiple\":\"\",\"outlined\":\"\",\"dense\":\"\",\"item-text\":\"agencia\"},model:{value:(_vm.select),callback:function ($$v) {_vm.select=$$v},expression:\"select\"}})],1)],1)],1)],1),_c('v-flex',{attrs:{\"md4\":\"\",\"sm12\":\"\",\"xs12\":\"\"}})],1),_c('div',{staticClass:\"d-flex justify-center\"},[_c('v-btn',{staticClass:\"ma-2 white--text\",attrs:{\"loading\":_vm.guardar_estado,\"color\":\"#1d1d1d\",\"type\":\"submit\"}},[_vm._v(\" Confirmar Agencias \"),_c('v-icon',{attrs:{\"right\":\"\",\"dark\":\"\"}},[_vm._v(\" mdi-account-check \")])],1)],1)],1)],1)],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"blue darken-1\",\"text\":\"\"},on:{\"click\":function($event){_vm.dialog = false}}},[_vm._v(\" Cerrar \")])],1)],1)],1)],1)],1)],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Editar_usuario.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Editar_usuario.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Editar_usuario.vue?vue&type=template&id=2e4230ec&scoped=true\"\nimport script from \"./Editar_usuario.vue?vue&type=script&lang=js\"\nexport * from \"./Editar_usuario.vue?vue&type=script&lang=js\"\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 \"2e4230ec\",\n null\n \n)\n\nexport default component.exports","\r\n\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Crear_usuarios.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Crear_usuarios.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Crear_usuarios.vue?vue&type=template&id=3bc987e0\"\nimport script from \"./Crear_usuarios.vue?vue&type=script&lang=js\"\nexport * from \"./Crear_usuarios.vue?vue&type=script&lang=js\"\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","// Components\nimport VInput from '../VInput/VInput'\n\n// Mixins\nimport mixins from '../../util/mixins'\nimport BindsAttrs from '../../mixins/binds-attrs'\nimport { provide as RegistrableProvide } from '../../mixins/registrable'\n\n// Helpers\nimport { VNode } from 'vue'\nimport { getSlot } from '../../util/helpers'\n\ntype ErrorBag = Record\ntype VInputInstance = InstanceType\ntype Watchers = {\n _uid: number\n valid: () => void\n shouldValidate: () => void\n}\n\n/* @vue/component */\nexport default mixins(\n BindsAttrs,\n RegistrableProvide('form')\n /* @vue/component */\n).extend({\n name: 'v-form',\n\n provide (): object {\n return { form: this }\n },\n\n inheritAttrs: false,\n\n props: {\n disabled: Boolean,\n lazyValidation: Boolean,\n readonly: Boolean,\n value: Boolean,\n },\n\n data: () => ({\n inputs: [] as VInputInstance[],\n watchers: [] as Watchers[],\n errorBag: {} as ErrorBag,\n }),\n\n watch: {\n errorBag: {\n handler (val) {\n const errors = Object.values(val).includes(true)\n\n this.$emit('input', !errors)\n },\n deep: true,\n immediate: true,\n },\n },\n\n methods: {\n watchInput (input: any): Watchers {\n const watcher = (input: any): (() => void) => {\n return input.$watch('hasError', (val: boolean) => {\n this.$set(this.errorBag, input._uid, val)\n }, { immediate: true })\n }\n\n const watchers: Watchers = {\n _uid: input._uid,\n valid: () => {},\n shouldValidate: () => {},\n }\n\n if (this.lazyValidation) {\n // Only start watching inputs if we need to\n watchers.shouldValidate = input.$watch('shouldValidate', (val: boolean) => {\n if (!val) return\n\n // Only watch if we're not already doing it\n if (this.errorBag.hasOwnProperty(input._uid)) return\n\n watchers.valid = watcher(input)\n })\n } else {\n watchers.valid = watcher(input)\n }\n\n return watchers\n },\n /** @public */\n validate (): boolean {\n return this.inputs.filter(input => !input.validate(true)).length === 0\n },\n /** @public */\n reset (): void {\n this.inputs.forEach(input => input.reset())\n this.resetErrorBag()\n },\n resetErrorBag () {\n if (this.lazyValidation) {\n // Account for timeout in validatable\n setTimeout(() => {\n this.errorBag = {}\n }, 0)\n }\n },\n /** @public */\n resetValidation () {\n this.inputs.forEach(input => input.resetValidation())\n this.resetErrorBag()\n },\n register (input: VInputInstance) {\n this.inputs.push(input)\n this.watchers.push(this.watchInput(input))\n },\n unregister (input: VInputInstance) {\n const found = this.inputs.find(i => i._uid === input._uid)\n\n if (!found) return\n\n const unwatch = this.watchers.find(i => i._uid === found._uid)\n if (unwatch) {\n unwatch.valid()\n unwatch.shouldValidate()\n }\n\n this.watchers = this.watchers.filter(i => i._uid !== found._uid)\n this.inputs = this.inputs.filter(i => i._uid !== found._uid)\n this.$delete(this.errorBag, found._uid)\n },\n },\n\n render (h): VNode {\n return h('form', {\n staticClass: 'v-form',\n attrs: {\n novalidate: true,\n ...this.attrs$,\n },\n on: {\n submit: (e: Event) => this.$emit('submit', e),\n },\n }, getSlot(this))\n },\n})\n","// Styles\nimport './VAutocomplete.sass'\n\n// Extensions\nimport VSelect, { defaultMenuProps as VSelectMenuProps } from '../VSelect/VSelect'\nimport VTextField from '../VTextField/VTextField'\n\n// Utilities\nimport mergeData from '../../util/mergeData'\nimport {\n getObjectValueByPath,\n getPropertyFromItem,\n keyCodes,\n} from '../../util/helpers'\n\n// Types\nimport { PropType, VNode } from 'vue'\nimport { PropValidator } from 'vue/types/options'\n\nconst defaultMenuProps = {\n ...VSelectMenuProps,\n offsetY: true,\n offsetOverflow: true,\n transition: false,\n}\n\n/* @vue/component */\nexport default VSelect.extend({\n name: 'v-autocomplete',\n\n props: {\n autoSelectFirst: {\n type: Boolean,\n default: false,\n },\n filter: {\n type: Function,\n default: (item: any, queryText: string, itemText: string) => {\n return itemText.toLocaleLowerCase().indexOf(queryText.toLocaleLowerCase()) > -1\n },\n } as PropValidator<(item: any, queryText: string, itemText: string) => boolean>,\n hideNoData: Boolean,\n menuProps: {\n type: VSelect.options.props.menuProps.type,\n default: () => defaultMenuProps,\n },\n noFilter: Boolean,\n searchInput: {\n type: String as PropType,\n },\n },\n\n data () {\n return {\n lazySearch: this.searchInput,\n }\n },\n\n computed: {\n classes (): object {\n return {\n ...VSelect.options.computed.classes.call(this),\n 'v-autocomplete': true,\n 'v-autocomplete--is-selecting-index': this.selectedIndex > -1,\n }\n },\n computedItems (): object[] {\n return this.filteredItems\n },\n selectedValues (): object[] {\n return this.selectedItems.map(item => this.getValue(item))\n },\n hasDisplayedItems (): boolean {\n return this.hideSelected\n ? this.filteredItems.some(item => !this.hasItem(item))\n : this.filteredItems.length > 0\n },\n currentRange (): number {\n if (this.selectedItem == null) return 0\n\n return String(this.getText(this.selectedItem)).length\n },\n filteredItems (): object[] {\n if (!this.isSearching || this.noFilter || this.internalSearch == null) return this.allItems\n\n return this.allItems.filter(item => {\n const value = getPropertyFromItem(item, this.itemText)\n const text = value != null ? String(value) : ''\n\n return this.filter(item, String(this.internalSearch), text)\n })\n },\n internalSearch: {\n get (): string | null {\n return this.lazySearch\n },\n set (val: any) { // TODO: this should be `string | null` but it breaks lots of other types\n // emit update event only when the new\n // search value is different from previous\n if (this.lazySearch !== val) {\n this.lazySearch = val\n this.$emit('update:search-input', val)\n }\n },\n },\n isAnyValueAllowed (): boolean {\n return false\n },\n isDirty (): boolean {\n return this.searchIsDirty || this.selectedItems.length > 0\n },\n isSearching (): boolean {\n return (\n this.multiple &&\n this.searchIsDirty\n ) || (\n this.searchIsDirty &&\n this.internalSearch !== this.getText(this.selectedItem)\n )\n },\n menuCanShow (): boolean {\n if (!this.isFocused) return false\n\n return this.hasDisplayedItems || !this.hideNoData\n },\n $_menuProps (): object {\n const props = VSelect.options.computed.$_menuProps.call(this);\n (props as any).contentClass = `v-autocomplete__content ${(props as any).contentClass || ''}`.trim()\n return {\n ...defaultMenuProps,\n ...props,\n }\n },\n searchIsDirty (): boolean {\n return this.internalSearch != null &&\n this.internalSearch !== ''\n },\n selectedItem (): any {\n if (this.multiple) return null\n\n return this.selectedItems.find(i => {\n return this.valueComparator(this.getValue(i), this.getValue(this.internalValue))\n })\n },\n listData () {\n const data = VSelect.options.computed.listData.call(this) as any\n\n data.props = {\n ...data.props,\n items: this.virtualizedItems,\n noFilter: (\n this.noFilter ||\n !this.isSearching ||\n !this.filteredItems.length\n ),\n searchInput: this.internalSearch,\n }\n\n return data\n },\n },\n\n watch: {\n filteredItems: 'onFilteredItemsChanged',\n internalValue: 'setSearch',\n isFocused (val) {\n if (val) {\n document.addEventListener('copy', this.onCopy)\n this.$refs.input && this.$refs.input.select()\n } else {\n document.removeEventListener('copy', this.onCopy)\n this.blur()\n this.updateSelf()\n }\n },\n isMenuActive (val) {\n if (val || !this.hasSlot) return\n\n this.lazySearch = null\n },\n items (val, oldVal) {\n // If we are focused, the menu\n // is not active, hide no data is enabled,\n // and items change\n // User is probably async loading\n // items, try to activate the menu\n if (\n !(oldVal && oldVal.length) &&\n this.hideNoData &&\n this.isFocused &&\n !this.isMenuActive &&\n val.length\n ) this.activateMenu()\n },\n searchInput (val: string) {\n this.lazySearch = val\n },\n internalSearch: 'onInternalSearchChanged',\n itemText: 'updateSelf',\n },\n\n created () {\n this.setSearch()\n },\n\n destroyed () {\n document.removeEventListener('copy', this.onCopy)\n },\n\n methods: {\n onFilteredItemsChanged (val: never[], oldVal: never[]) {\n // TODO: How is the watcher triggered\n // for duplicate items? no idea\n if (val === oldVal) return\n\n if (!this.autoSelectFirst) {\n const preSelectedItem = oldVal[this.$refs.menu.listIndex]\n\n if (preSelectedItem) {\n this.setMenuIndex(val.findIndex(i => i === preSelectedItem))\n } else {\n this.setMenuIndex(-1)\n }\n this.$emit('update:list-index', this.$refs.menu.listIndex)\n }\n\n this.$nextTick(() => {\n if (\n !this.internalSearch ||\n (val.length !== 1 &&\n !this.autoSelectFirst)\n ) return\n\n this.$refs.menu.getTiles()\n\n if (this.autoSelectFirst && val.length) {\n this.setMenuIndex(0)\n this.$emit('update:list-index', this.$refs.menu.listIndex)\n }\n })\n },\n onInternalSearchChanged () {\n this.updateMenuDimensions()\n },\n updateMenuDimensions () {\n // Type from menuable is not making it through\n this.isMenuActive && this.$refs.menu && this.$refs.menu.updateDimensions()\n },\n changeSelectedIndex (keyCode: number) {\n // Do not allow changing of selectedIndex\n // when search is dirty\n if (this.searchIsDirty) return\n\n if (this.multiple && keyCode === keyCodes.left) {\n if (this.selectedIndex === -1) {\n this.selectedIndex = this.selectedItems.length - 1\n } else {\n this.selectedIndex--\n }\n } else if (this.multiple && keyCode === keyCodes.right) {\n if (this.selectedIndex >= this.selectedItems.length - 1) {\n this.selectedIndex = -1\n } else {\n this.selectedIndex++\n }\n } else if (keyCode === keyCodes.backspace || keyCode === keyCodes.delete) {\n this.deleteCurrentItem()\n }\n },\n deleteCurrentItem () {\n const curIndex = this.selectedIndex\n const curItem = this.selectedItems[curIndex]\n\n // Do nothing if input or item is disabled\n if (\n !this.isInteractive ||\n this.getDisabled(curItem)\n ) return\n\n const lastIndex = this.selectedItems.length - 1\n\n // Select the last item if\n // there is no selection\n if (\n this.selectedIndex === -1 &&\n lastIndex !== 0\n ) {\n this.selectedIndex = lastIndex\n\n return\n }\n\n const length = this.selectedItems.length\n const nextIndex = curIndex !== length - 1\n ? curIndex\n : curIndex - 1\n const nextItem = this.selectedItems[nextIndex]\n\n if (!nextItem) {\n this.setValue(this.multiple ? [] : null)\n } else {\n this.selectItem(curItem)\n }\n\n this.selectedIndex = nextIndex\n },\n clearableCallback () {\n this.internalSearch = null\n\n VSelect.options.methods.clearableCallback.call(this)\n },\n genInput () {\n const input = VTextField.options.methods.genInput.call(this)\n\n input.data = mergeData(input.data!, {\n attrs: {\n 'aria-activedescendant': getObjectValueByPath(this.$refs.menu, 'activeTile.id'),\n autocomplete: getObjectValueByPath(input.data!, 'attrs.autocomplete', 'off'),\n },\n domProps: { value: this.internalSearch },\n })\n\n return input\n },\n genInputSlot () {\n const slot = VSelect.options.methods.genInputSlot.call(this)\n\n slot.data!.attrs!.role = 'combobox'\n\n return slot\n },\n genSelections (): VNode | never[] {\n return this.hasSlot || this.multiple\n ? VSelect.options.methods.genSelections.call(this)\n : []\n },\n onClick (e: MouseEvent) {\n if (!this.isInteractive) return\n\n this.selectedIndex > -1\n ? (this.selectedIndex = -1)\n : this.onFocus()\n\n if (!this.isAppendInner(e.target)) this.activateMenu()\n },\n onInput (e: Event) {\n if (\n this.selectedIndex > -1 ||\n !e.target\n ) return\n\n const target = e.target as HTMLInputElement\n const value = target.value\n\n // If typing and menu is not currently active\n if (target.value) this.activateMenu()\n\n if (!this.multiple && value === '') this.deleteCurrentItem()\n\n this.internalSearch = value\n this.badInput = target.validity && target.validity.badInput\n },\n onKeyDown (e: KeyboardEvent) {\n const keyCode = e.keyCode\n\n if (\n e.ctrlKey ||\n ![keyCodes.home, keyCodes.end].includes(keyCode)\n ) {\n VSelect.options.methods.onKeyDown.call(this, e)\n }\n\n // The ordering is important here\n // allows new value to be updated\n // and then moves the index to the\n // proper location\n this.changeSelectedIndex(keyCode)\n },\n onSpaceDown (e: KeyboardEvent) { /* noop */ },\n onTabDown (e: KeyboardEvent) {\n VSelect.options.methods.onTabDown.call(this, e)\n this.updateSelf()\n },\n onUpDown (e: Event) {\n // Prevent screen from scrolling\n e.preventDefault()\n\n // For autocomplete / combobox, cycling\n // interfers with native up/down behavior\n // instead activate the menu\n this.activateMenu()\n },\n selectItem (item: object) {\n VSelect.options.methods.selectItem.call(this, item)\n this.setSearch()\n },\n setSelectedItems () {\n VSelect.options.methods.setSelectedItems.call(this)\n\n // #4273 Don't replace if searching\n // #4403 Don't replace if focused\n if (!this.isFocused) this.setSearch()\n },\n setSearch () {\n // Wait for nextTick so selectedItem\n // has had time to update\n this.$nextTick(() => {\n if (\n !this.multiple ||\n !this.internalSearch ||\n !this.isMenuActive\n ) {\n this.internalSearch = (\n !this.selectedItems.length ||\n this.multiple ||\n this.hasSlot\n )\n ? null\n : this.getText(this.selectedItem)\n }\n })\n },\n updateSelf () {\n if (\n !this.searchIsDirty &&\n !this.internalValue\n ) return\n\n if (\n !this.multiple &&\n !this.valueComparator(\n this.internalSearch,\n this.getValue(this.internalValue)\n )\n ) {\n this.setSearch()\n }\n },\n hasItem (item: any): boolean {\n return this.selectedValues.indexOf(this.getValue(item)) > -1\n },\n onCopy (event: ClipboardEvent) {\n if (this.selectedIndex === -1) return\n\n const currentItem = this.selectedItems[this.selectedIndex]\n const currentItemText = this.getText(currentItem)\n event.clipboardData?.setData('text/plain', currentItemText)\n event.clipboardData?.setData('text/vnd.vuetify.autocomplete.item+plain', currentItemText)\n event.preventDefault()\n },\n },\n})\n"],"sourceRoot":""}