{"version":3,"sources":["webpack:///./src/views/comercial/inventario_agencias.vue","webpack:///src/views/comercial/inventario_agencias.vue","webpack:///./src/views/comercial/inventario_agencias.vue?21ea","webpack:///./src/views/comercial/inventario_agencias.vue?1559","webpack:///../../../src/components/VAutocomplete/VAutocomplete.ts","webpack:///../../../src/components/VChipGroup/VChipGroup.ts"],"names":["staticStyle","_v","attrs","on","_vm","model","value","callback","expression","search","$$v","scopedSlots","key","_c","staticClass","$event","showFilter","headers","footerProps","expanded","_u","fn","item","length","data","items","loading","staticRenderFns","text","align","filterable","sortable","itemsPerPageOptions","components","LoadingIndicator","dataDB","agencias","ultima_fecha","filtro","agencia","methods","getInventarioData","axiosInstance","get","then","inventario","map","flat","agenciasUnicas","Map","forEach","set","id","nombre_agencia","Array","from","catch","err","console","error","finally","filtrarPorAgencias","filter","some","includes","filtrarAgencia","push","mounted","component","defaultMenuProps","VSelectMenuProps","offsetY","offsetOverflow","transition","VSelect","extend","name","props","autoSelectFirst","type","Boolean","default","Function","queryText","itemText","toLocaleLowerCase","indexOf","hideNoData","menuProps","options","noFilter","searchInput","String","lazySearch","this","computed","classes","call","selectedIndex","computedItems","filteredItems","selectedValues","selectedItems","getValue","hasDisplayedItems","hideSelected","hasItem","currentRange","selectedItem","getText","isSearching","internalSearch","allItems","getPropertyFromItem","val","$emit","isAnyValueAllowed","isDirty","searchIsDirty","multiple","menuCanShow","isFocused","$_menuProps","contentClass","trim","find","i","valueComparator","internalValue","listData","virtualizedItems","watch","document","addEventListener","onCopy","$refs","input","select","removeEventListener","blur","updateSelf","isMenuActive","hasSlot","oldVal","activateMenu","created","setSearch","destroyed","onFilteredItemsChanged","preSelectedItem","menu","listIndex","setMenuIndex","findIndex","$nextTick","getTiles","onInternalSearchChanged","updateMenuDimensions","updateDimensions","changeSelectedIndex","keyCode","keyCodes","left","right","backspace","delete","deleteCurrentItem","curIndex","curItem","isInteractive","getDisabled","lastIndex","nextIndex","nextItem","selectItem","setValue","clearableCallback","genInput","VTextField","mergeData","getObjectValueByPath","autocomplete","domProps","genInputSlot","slot","role","genSelections","onClick","e","onFocus","isAppendInner","target","onInput","badInput","validity","onKeyDown","ctrlKey","home","end","onSpaceDown","onTabDown","onUpDown","preventDefault","setSelectedItems","event","currentItem","currentItemText","_a","clipboardData","setData","_b","mixins","BaseSlideGroup","Colorable","provide","chipGroup","column","scrollOffset","onResize","genData","setTextColor","color"],"mappings":"kQAAoTA,a,IAAa,OAAmB,aAAC,OAAM,QAAS,CAACC,EAAG,MAAkCC,YAAM,4D,CAAC,qBAAa,S,YAAW,U,CAAC,QAAU,C,YAAY,e,CAAU,SAAoB,uB,YAAC,CAAkB,YAAY,UAAgC,qCAACC,MAAG,CAAC,SAASC,GAAuB,SAACC,SAAM,GAACC,MAAOF,UAAoBG,MAAQ,EAAC,S,aAA4B,KAAwB,YAAC,iBAACC,UAAW,IAAmB,GAAG,CAAiBN,OAAM,sB,MAAe,CAAW,MAAO,EAAC,eAAsB,kBAAY,GAAG,8BAAQI,WAAWG,oB,EAAiCL,OAAWM,C,MAAI,CAACF,SAAW,GAAQ,SAAI,MAAO,sBAAwBN,UAAM,IAAW,MAAC,CAACS,QAAYP,OAASQ,SAAI,SAAW,GAAG,EAAC,OAAS,G,WAAMV,a,GAAS,EAAQW,OAAG,EAAO,OAAQT,C,MAAQU,C,MAAwB,I,YAAW,O,IAAG,Y,GAAuCZ,UAAM,G,kBAAwB,GAAO,OAAC,KAASa,KAAO,C,YAAKC,O,MAA4B,CAAC,UAA+B,4BAAG,OAAO,MAAW,WAA8C,GAAO,CAAQ,MAAc,YAAmB,8BAA+C,CAAG,EAAEZ,GAAIH,iBAAG,S,CAA+G,SAAUG,GAAIa,mBAAO,Y,YAASb,CAAS,MAAQ,OAAY,cAAe,sB,CAA8B,O,YAA2B,mB,CAAU,YAAeA,2BAAIc,2CAAW,YAAC,OAACf,MAAG,CAAC,kB,MAAuCgB,OAAe,gBAAE,mBAACR,SAAYP,EAAIgB,SAAKR,cAAI,GAAaS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B,KAAK2H,aAAe,GAE7B3H,KAAK4D,UAAU5D,KAAK4H,YAIxBlL,QAAS,CACPmL,UACE,OAAO7H,KAAK8H,aAAa9H,KAAK+H,MAAO,IAChCT,OAAe3H,QAAQjD,QAAQmL,QAAQ1H,KAAKH","file":"js/chunk-653f8711.3a9c4c93.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('h2',{staticClass:\"my-5 text-h4 font-weight-bold text-uppercase text-center\"},[_vm._v(\"Inventario\")]),_c('div',{staticClass:\"d-flex\"},[_c('div',{staticClass:\"d-flex mr-3\"},[_c('v-expand-x-transition',[(_vm.showFilter)?_c('div',{staticStyle:{\"max-width\":\"300px\"}},[_c('h3',[_vm._v(\"Filtrar\")]),_c('v-autocomplete',{attrs:{\"outlined\":\"\",\"dense\":\"\",\"multiple\":\"\",\"label\":\"Agencia\",\"items\":_vm.agencias,\"item-value\":\"id\",\"item-text\":\"nombre_agencia\",\"clearable\":\"\"},on:{\"change\":_vm.filtrarPorAgencias},model:{value:(_vm.filtro.agencia),callback:function ($$v) {_vm.$set(_vm.filtro, \"agencia\", $$v)},expression:\"filtro.agencia\"}}),_c('v-text-field',{attrs:{\"outlined\":\"\",\"dense\":\"\",\"label\":\"Referencia o Código\",\"clearable\":\"\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1):_vm._e()]),_c('v-tooltip',{attrs:{\"right\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-btn',_vm._g(_vm._b({staticClass:\"mx-2\",attrs:{\"icon\":\"\"}},'v-btn',attrs,false),on),[_c('v-icon',{attrs:{\"color\":\"primary\"},on:{\"click\":function($event){_vm.showFilter = !_vm.showFilter}}},[_vm._v(\"mdi-filter\")])],1)]}}])},[_c('span',[_vm._v(\"Filtrar\")])])],1),_c('div',{staticStyle:{\"width\":\"100%\",\"border-left\":\"1px solid #e0e0e0\"}},[_c('p',{staticClass:\"mb-0 text-right\"},[_c('b',[_vm._v(\"Última actualización:\")]),_vm._v(\" \"+_vm._s(_vm.ultima_fecha))]),_c('v-data-table',{staticClass:\"ml-3\",attrs:{\"headers\":_vm.headers,\"items\":_vm.data,\"search\":_vm.search,\"single-expand\":true,\"expanded\":_vm.expanded,\"show-expand\":\"\",\"item-key\":\"codigo\",\"footer-props\":_vm.footerProps},on:{\"update:expanded\":function($event){_vm.expanded=$event}},scopedSlots:_vm._u([{key:`item.index`,fn:function({ _, index }){return [_vm._v(\" \"+_vm._s(index + 1)+\" \")]}},{key:\"item.agencias\",fn:function({ item }){return [_c('div',{staticClass:\"d-flex\"},[_c('v-chip-group',{attrs:{\"column\":\"\"}},_vm._l((item.agencias),function(agencia,index){return _c('v-chip',{key:index,attrs:{\"color\":\"primary\",\"outlined\":!_vm.filtro.agencia.includes(agencia.id)},on:{\"click\":function($event){return _vm.filtrarAgencia(agencia.id)}}},[_vm._v(\" \"+_vm._s(agencia.nombre_agencia)+\" \")])}),1)],1)]}},{key:`item.unidad_medida`,fn:function({ item }){return [_vm._v(\" \"+_vm._s(item.unidad_medida ? item.unidad_medida.toLowerCase() : '--')+\" \")]}},{key:\"expanded-item\",fn:function({ headers, item }){return [_c('td',{attrs:{\"colspan\":headers.length}},[_c('ul',_vm._l((item.agencias),function(data){return _c('li',{key:data.id},[_c('b',[_vm._v(_vm._s(data.nombre_agencia))]),_vm._v(\": \"+_vm._s(`${data.cantidad} ${item.unidad_medida ? item.unidad_medida.toLowerCase() : ''}`))])}),0)])]}},{key:`footer.page-text`,fn:function(items){return [_vm._v(\" \"+_vm._s(items.pageStart)+\" - \"+_vm._s(items.pageStop)+\" de \"+_vm._s(items.itemsLength)+\" \")]}}],null,true)})],1)]),(_vm.loading)?_c('LoadingIndicator'):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./inventario_agencias.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!./inventario_agencias.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./inventario_agencias.vue?vue&type=template&id=d441811c\"\nimport script from \"./inventario_agencias.vue?vue&type=script&lang=js\"\nexport * from \"./inventario_agencias.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","// 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","// Styles\nimport './VChipGroup.sass'\n\n// Extensions\nimport { BaseSlideGroup } from '../VSlideGroup/VSlideGroup'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\n\n// Utilities\nimport mixins from '../../util/mixins'\n\n/* @vue/component */\nexport default mixins(\n BaseSlideGroup,\n Colorable\n).extend({\n name: 'v-chip-group',\n\n provide () {\n return {\n chipGroup: this,\n }\n },\n\n props: {\n column: Boolean,\n },\n\n computed: {\n classes () {\n return {\n ...BaseSlideGroup.options.computed.classes.call(this),\n 'v-chip-group': true,\n 'v-chip-group--column': this.column,\n }\n },\n },\n\n watch: {\n column (val) {\n if (val) this.scrollOffset = 0\n\n this.$nextTick(this.onResize)\n },\n },\n\n methods: {\n genData () {\n return this.setTextColor(this.color, {\n ...BaseSlideGroup.options.methods.genData.call(this),\n })\n },\n },\n})\n"],"sourceRoot":""}