{"version":3,"sources":["webpack:///../../../src/components/VAlert/VAlert.ts","webpack:///../../../src/components/VForm/VForm.ts","webpack:///./src/views/calidad/hora_hora_calidad.vue","webpack:///src/views/calidad/hora_hora_calidad.vue","webpack:///./src/views/calidad/hora_hora_calidad.vue?0760","webpack:///./src/views/calidad/hora_hora_calidad.vue?b19b","webpack:///./src/views/calidad/hora_hora_calidad.vue?3f54","webpack:///../../../src/components/VTextarea/VTextarea.ts","webpack:///../../../src/components/VAutocomplete/VAutocomplete.ts"],"names":["mixins","VSheet","Toggleable","Transitionable","extend","name","props","border","type","String","validator","val","includes","closeLabel","default","coloredBorder","Boolean","dense","dismissible","closeIcon","icon","outlined","prominent","text","value","computed","__cachedBorder","this","data","staticClass","class","setBackgroundColor","computedColor","$createElement","__cachedDismissible","color","iconColor","VBtn","small","attrs","$vuetify","lang","t","on","click","isActive","VIcon","__cachedIcon","computedIcon","classes","options","call","hasColoredIcon","hasText","undefined","isDark","Themeable","created","$attrs","hasOwnProperty","breaking","methods","genWrapper","children","getSlot","genContent","$scopedSlots","close","toggle","genAlert","role","listeners$","style","styles","directives","setColor","setTextColor","render","h","transition","origin","mode","BindsAttrs","RegistrableProvide","provide","form","inheritAttrs","disabled","lazyValidation","readonly","inputs","watchers","errorBag","watch","handler","errors","Object","values","$emit","deep","immediate","watchInput","input","watcher","$watch","$set","_uid","valid","shouldValidate","validate","filter","length","reset","forEach","resetErrorBag","setTimeout","resetValidation","register","push","unregister","found","find","i","unwatch","$delete","novalidate","attrs$","submit","e","model","callback","expression","_c","_vm","$$v","formulario","rules4","estado_boton_guardar","_v","color_ventana","_s","dialog","drawer","items","rol","token","v","hora_toma_circuito","maquina","estado","razon","ajuste","orden_produccion","codigo_producto","descripcion_referencia","cantidad_m2","cantidad_metros_reales","tiempo_productivo_programado","tiempo_productivo_real","tiempo_estimado_minuto","tiempo_real_minuto","metros_proyectados","metros_reales","margen_esperada","id_operario","id_supervisor","comentario","horas_circuito","hora","maquinas","estados","razones","ajustes","operarios","supervisores","texto_alert","tipo_ventana","estado_ventana_mensaje","validacionFormularioHoraCalidad","$refs","axios","post","url","config","then","res","console","log","resetearVariables","catch","error","datosFormularioHoraHora","get","mapState","headers","mounted","localStorage","getItem","informacion_usuario","id_cargo","component","staticRenderFns","baseMixins","VTextField","autoGrow","noResize","rowHeight","Number","isNaN","parseFloat","rows","parseInt","noResizeHandle","$nextTick","calculateInputHeight","_a","removeProperty","lazyValue","height","scrollHeight","minHeight","Math","max","genInput","tag","onInput","onKeyDown","isFocused","keyCode","stopPropagation","defaultMenuProps","VSelectMenuProps","offsetY","offsetOverflow","VSelect","autoSelectFirst","Function","item","queryText","itemText","toLocaleLowerCase","indexOf","hideNoData","menuProps","noFilter","searchInput","lazySearch","selectedIndex","computedItems","filteredItems","selectedValues","selectedItems","map","getValue","hasDisplayedItems","hideSelected","some","hasItem","currentRange","selectedItem","getText","isSearching","internalSearch","allItems","getPropertyFromItem","set","isAnyValueAllowed","isDirty","searchIsDirty","multiple","menuCanShow","$_menuProps","contentClass","trim","valueComparator","internalValue","listData","virtualizedItems","document","addEventListener","onCopy","select","removeEventListener","blur","updateSelf","isMenuActive","hasSlot","oldVal","activateMenu","setSearch","destroyed","onFilteredItemsChanged","preSelectedItem","menu","listIndex","setMenuIndex","findIndex","getTiles","onInternalSearchChanged","updateMenuDimensions","updateDimensions","changeSelectedIndex","keyCodes","left","right","backspace","delete","deleteCurrentItem","curIndex","curItem","isInteractive","getDisabled","lastIndex","nextIndex","nextItem","selectItem","setValue","clearableCallback","mergeData","getObjectValueByPath","autocomplete","domProps","genInputSlot","slot","genSelections","onClick","onFocus","isAppendInner","target","badInput","validity","ctrlKey","home","end","onSpaceDown","onTabDown","onUpDown","preventDefault","setSelectedItems","event","currentItem","currentItemText","clipboardData","setData","_b"],"mappings":"kHAAA,0HAyBeA,sBACbC,OACAC,OACAC,QACAC,OAAO,CACPC,KAAM,UAENC,MAAO,CACLC,OAAQ,CACNC,KAAMC,OACNC,UAAWC,GAC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QAAQW,QAAQqR,iBAAiB/R,KAAKxB,MAIzCA,KAAKwM,WAAWxM,KAAKsQ,aAE5BA,YAGEtQ,KAAK0L,UAAU,KAEV1L,KAAKkP,UACLlP,KAAK2O,gBACL3O,KAAKkQ,eAENlQ,KAAK2O,gBACF3O,KAAKgO,cAAc5I,QACpBpF,KAAKkP,UACLlP,KAAKmQ,QAEH,KACAnQ,KAAKyO,QAAQzO,KAAKwO,kBAI5ByB,cAEKjQ,KAAKiP,eACLjP,KAAKwP,iBAILxP,KAAKkP,UACLlP,KAAKuP,gBACJvP,KAAK2O,eACL3O,KAAKkO,SAASlO,KAAKwP,iBAGrBxP,KAAKsQ,cAGThC,QAASpB,GACP,OAAOlN,KAAK+N,eAAeT,QAAQtN,KAAKkO,SAAShB,KAAU,GAE7D2C,OAAQ2D,G,QACN,IAA4B,IAAxBxT,KAAK4N,cAAsB,OAE/B,MAAM6F,EAAczT,KAAKgO,cAAchO,KAAK4N,eACtC8F,EAAkB1T,KAAKyO,QAAQgF,GAClB,QAAnB7H,EAAA4H,EAAMG,qBAAa,IAAA/H,KAAEgI,QAAQ,aAAcF,GACxB,QAAnBG,EAAAL,EAAMG,qBAAa,IAAAE,KAAED,QAAQ,2CAA4CF,GACzEF,EAAMF","file":"js/chunk-34eb378b.ca7001d8.js","sourcesContent":["// Styles\nimport './VAlert.sass'\n\n// Extensions\nimport VSheet from '../VSheet'\n\n// Components\nimport VBtn from '../VBtn'\nimport VIcon from '../VIcon'\n\n// Mixins\nimport Toggleable from '../../mixins/toggleable'\nimport Themeable from '../../mixins/themeable'\nimport Transitionable from '../../mixins/transitionable'\n\n// Utilities\nimport mixins from '../../util/mixins'\nimport { breaking } from '../../util/console'\nimport { getSlot } from '../../util/helpers'\n\n// Types\nimport { VNodeData } from 'vue'\nimport { VNode } from 'vue/types'\n\n/* @vue/component */\nexport default mixins(\n VSheet,\n Toggleable,\n Transitionable\n).extend({\n name: 'v-alert',\n\n props: {\n border: {\n type: String,\n validator (val: string) {\n return [\n 'top',\n 'right',\n 'bottom',\n 'left',\n ].includes(val)\n },\n },\n closeLabel: {\n type: String,\n default: '$vuetify.close',\n },\n coloredBorder: Boolean,\n dense: Boolean,\n dismissible: Boolean,\n closeIcon: {\n type: String,\n default: '$cancel',\n },\n icon: {\n default: '',\n type: [Boolean, String],\n validator (val: boolean | string) {\n return typeof val === 'string' || val === false\n },\n },\n outlined: Boolean,\n prominent: Boolean,\n text: Boolean,\n type: {\n type: String,\n validator (val: string) {\n return [\n 'info',\n 'error',\n 'success',\n 'warning',\n ].includes(val)\n },\n },\n value: {\n type: Boolean,\n default: true,\n },\n },\n\n computed: {\n __cachedBorder (): VNode | null {\n if (!this.border) return null\n\n let data: VNodeData = {\n staticClass: 'v-alert__border',\n class: {\n [`v-alert__border--${this.border}`]: true,\n },\n }\n\n if (this.coloredBorder) {\n data = this.setBackgroundColor(this.computedColor, data)\n data.class['v-alert__border--has-color'] = true\n }\n\n return this.$createElement('div', data)\n },\n __cachedDismissible (): VNode | null {\n if (!this.dismissible) return null\n\n const color = this.iconColor\n\n return this.$createElement(VBtn, {\n staticClass: 'v-alert__dismissible',\n props: {\n color,\n icon: true,\n small: true,\n },\n attrs: {\n 'aria-label': this.$vuetify.lang.t(this.closeLabel),\n },\n on: {\n click: () => (this.isActive = false),\n },\n }, [\n this.$createElement(VIcon, {\n props: { color },\n }, this.closeIcon),\n ])\n },\n __cachedIcon (): VNode | null {\n if (!this.computedIcon) return null\n\n return this.$createElement(VIcon, {\n staticClass: 'v-alert__icon',\n props: { color: this.iconColor },\n }, this.computedIcon)\n },\n classes (): object {\n const classes: Record = {\n ...VSheet.options.computed.classes.call(this),\n 'v-alert--border': Boolean(this.border),\n 'v-alert--dense': this.dense,\n 'v-alert--outlined': this.outlined,\n 'v-alert--prominent': this.prominent,\n 'v-alert--text': this.text,\n }\n\n if (this.border) {\n classes[`v-alert--border-${this.border}`] = true\n }\n\n return classes\n },\n computedColor (): string {\n return this.color || this.type\n },\n computedIcon (): string | boolean {\n if (this.icon === false) return false\n if (typeof this.icon === 'string' && this.icon) return this.icon\n if (!['error', 'info', 'success', 'warning'].includes(this.type)) return false\n\n return `$${this.type}`\n },\n hasColoredIcon (): boolean {\n return (\n this.hasText ||\n (Boolean(this.border) && this.coloredBorder)\n )\n },\n hasText (): boolean {\n return this.text || this.outlined\n },\n iconColor (): string | undefined {\n return this.hasColoredIcon ? this.computedColor : undefined\n },\n isDark (): boolean {\n if (\n this.type &&\n !this.coloredBorder &&\n !this.outlined\n ) return true\n\n return Themeable.options.computed.isDark.call(this)\n },\n },\n\n created () {\n /* istanbul ignore next */\n if (this.$attrs.hasOwnProperty('outline')) {\n breaking('outline', 'outlined', this)\n }\n },\n\n methods: {\n genWrapper (): VNode {\n const children = [\n getSlot(this, 'prepend') || this.__cachedIcon,\n this.genContent(),\n this.__cachedBorder,\n getSlot(this, 'append'),\n this.$scopedSlots.close\n ? this.$scopedSlots.close({ toggle: this.toggle })\n : this.__cachedDismissible,\n ]\n\n const data: VNodeData = {\n staticClass: 'v-alert__wrapper',\n }\n\n return this.$createElement('div', data, children)\n },\n genContent (): VNode {\n return this.$createElement('div', {\n staticClass: 'v-alert__content',\n }, getSlot(this))\n },\n genAlert (): VNode {\n let data: VNodeData = {\n staticClass: 'v-alert',\n attrs: {\n role: 'alert',\n },\n on: this.listeners$,\n class: this.classes,\n style: this.styles,\n directives: [{\n name: 'show',\n value: this.isActive,\n }],\n }\n\n if (!this.coloredBorder) {\n const setColor = this.hasText ? this.setTextColor : this.setBackgroundColor\n data = setColor(this.computedColor, data)\n }\n\n return this.$createElement('div', data, [this.genWrapper()])\n },\n /** @public */\n toggle () {\n this.isActive = !this.isActive\n },\n },\n\n render (h): VNode {\n const render = this.genAlert()\n\n if (!this.transition) return render\n\n return h('transition', {\n props: {\n name: this.transition,\n origin: this.origin,\n mode: this.mode,\n },\n }, [render])\n },\n})\n","// 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","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-app',{attrs:{\"id\":\"inspire\"}},[_c('v-container',{staticClass:\"fondo\",attrs:{\"fluid\":\"\"}},[_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"md12\":\"\",\"xs12\":\"\",\"sm12\":\"\"}},[_c('v-dialog',{attrs:{\"hide-overlay\":\"\",\"persistent\":\"\",\"width\":\"400\"},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',{attrs:{\"dark\":\"\"}},[_c('v-card-text',[_c('div',{staticClass:\"d-flex justify-center\"},[_c('h2',{staticClass:\"mt-4 mb-4 body-1\"},[_vm._v(\"Cargando menú...\")]),_c('v-progress-circular',{attrs:{\"size\":50,\"color\":\"amber\",\"indeterminate\":\"\"}})],1)])],1)],1)],1)],1),_c('v-row',{attrs:{\"row\":\"\",\"wrap\":\"\",\"justify\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"12\",\"md\":\"12\"}},[_c('v-row',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"12\",\"md\":\"2\"}}),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"12\",\"md\":\"8\"}},[_c('v-card',{staticClass:\"mt-4\",attrs:{\"elevation\":\"2\",\"shaped\":\"\"}},[_c('v-toolbar',{attrs:{\"color\":\"#202020\",\"dark\":\"\"}},[_c('v-toolbar-title',[_c('h2',{staticClass:\"h5 font-weight-light\"},[_vm._v(\" Formulario hora a hora producción \")])]),_c('v-spacer')],1),_c('v-card-text',[_c('v-form',{ref:\"form\",on:{\"submit\":function($event){$event.preventDefault();return _vm.validacionFormularioHoraCalidad.apply(null, arguments)}},model:{value:(_vm.valid),callback:function ($$v) {_vm.valid=$$v},expression:\"valid\"}},[_c('v-row',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"12\",\"md\":\"3\"}}),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"12\",\"md\":\"6\"}},[_c('v-autocomplete',{staticClass:\"ma-2\",attrs:{\"items\":_vm.horas_circuito,\"item-value\":\"hora\",\"item-text\":\"hora\",\"label\":\"Hora toma circuito\",\"chips\":\"\",\"clearable\":\"\",\"small-chips\":\"\",\"solo\":\"\",\"rules\":_vm.rules4},model:{value:(_vm.formulario.hora_toma_circuito),callback:function ($$v) {_vm.$set(_vm.formulario, \"hora_toma_circuito\", $$v)},expression:\"formulario.hora_toma_circuito\"}}),_c('v-autocomplete',{staticClass:\"ma-2\",attrs:{\"items\":_vm.maquinas,\"item-value\":\"maquina\",\"item-text\":\"maquina\",\"label\":\"Maquina\",\"chips\":\"\",\"clearable\":\"\",\"small-chips\":\"\",\"solo\":\"\",\"rules\":_vm.rules4},model:{value:(_vm.formulario.maquina),callback:function ($$v) {_vm.$set(_vm.formulario, \"maquina\", $$v)},expression:\"formulario.maquina\"}}),_c('v-autocomplete',{staticClass:\"ma-2\",attrs:{\"items\":_vm.estados,\"item-value\":\"estado\",\"item-text\":\"estado\",\"label\":\"Estados\",\"chips\":\"\",\"clearable\":\"\",\"small-chips\":\"\",\"solo\":\"\",\"rules\":_vm.rules4},model:{value:(_vm.formulario.estado),callback:function ($$v) {_vm.$set(_vm.formulario, \"estado\", $$v)},expression:\"formulario.estado\"}}),_c('v-autocomplete',{staticClass:\"ma-2\",attrs:{\"items\":_vm.razones,\"item-value\":\"razon\",\"item-text\":\"razon\",\"label\":\"Razón\",\"chips\":\"\",\"clearable\":\"\",\"small-chips\":\"\",\"solo\":\"\",\"rules\":_vm.rules4},model:{value:(_vm.formulario.razon),callback:function ($$v) {_vm.$set(_vm.formulario, \"razon\", $$v)},expression:\"formulario.razon\"}}),_c('v-autocomplete',{staticClass:\"ma-2\",attrs:{\"items\":_vm.ajustes,\"item-value\":\"ajuste\",\"item-text\":\"ajuste\",\"label\":\"Ajuste\",\"chips\":\"\",\"clearable\":\"\",\"small-chips\":\"\",\"solo\":\"\",\"rules\":_vm.rules4},model:{value:(_vm.formulario.ajuste),callback:function ($$v) {_vm.$set(_vm.formulario, \"ajuste\", $$v)},expression:\"formulario.ajuste\"}}),_c('v-text-field',{staticClass:\"ma-2\",attrs:{\"label\":\"Orden de producción\",\"required\":\"\",\"rules\":_vm.rules4,\"solo\":\"\"},model:{value:(_vm.formulario.orden_produccion),callback:function ($$v) {_vm.$set(_vm.formulario, \"orden_produccion\", $$v)},expression:\"formulario.orden_produccion\"}}),_c('v-text-field',{staticClass:\"ma-2\",attrs:{\"label\":\"Código de producto\",\"required\":\"\",\"rules\":_vm.rules4,\"solo\":\"\"},model:{value:(_vm.formulario.codigo_producto),callback:function ($$v) {_vm.$set(_vm.formulario, \"codigo_producto\", $$v)},expression:\"formulario.codigo_producto\"}}),_c('v-text-field',{staticClass:\"ma-2\",attrs:{\"label\":\"Descripción de referencia\",\"required\":\"\",\"rules\":_vm.rules4,\"solo\":\"\"},model:{value:(_vm.formulario.descripcion_referencia),callback:function ($$v) {_vm.$set(_vm.formulario, \"descripcion_referencia\", $$v)},expression:\"formulario.descripcion_referencia\"}}),_c('v-text-field',{staticClass:\"ma-2\",attrs:{\"label\":\"Cantidad pedido total (M2)\",\"required\":\"\",\"rules\":_vm.rules4,\"solo\":\"\",\"type\":\"number\"},model:{value:(_vm.formulario.cantidad_m2),callback:function ($$v) {_vm.$set(_vm.formulario, \"cantidad_m2\", $$v)},expression:\"formulario.cantidad_m2\"}}),_c('v-text-field',{staticClass:\"ma-2\",attrs:{\"label\":\"Cantidad metros reales (por hora)\",\"required\":\"\",\"rules\":_vm.rules4,\"solo\":\"\",\"type\":\"number\"},model:{value:(_vm.formulario.cantidad_metros_reales),callback:function ($$v) {_vm.$set(_vm.formulario, \"cantidad_metros_reales\", $$v)},expression:\"formulario.cantidad_metros_reales\"}}),_c('v-text-field',{staticClass:\"ma-2\",attrs:{\"label\":\"Tiempo productivo programado\",\"required\":\"\",\"rules\":_vm.rules4,\"solo\":\"\",\"type\":\"number\",\"step\":\"0.001\"},model:{value:(_vm.formulario.tiempo_productivo_programado),callback:function ($$v) {_vm.$set(_vm.formulario, \"tiempo_productivo_programado\", $$v)},expression:\"formulario.tiempo_productivo_programado\"}}),_c('v-text-field',{staticClass:\"ma-2\",attrs:{\"label\":\"Tiempo productivo real\",\"required\":\"\",\"rules\":_vm.rules4,\"solo\":\"\",\"type\":\"number\",\"step\":\"0.001\"},model:{value:(_vm.formulario.tiempo_productivo_real),callback:function ($$v) {_vm.$set(_vm.formulario, \"tiempo_productivo_real\", $$v)},expression:\"formulario.tiempo_productivo_real\"}}),_c('v-text-field',{staticClass:\"ma-2\",attrs:{\"label\":\"Tiempo estimado (Minutos)\",\"required\":\"\",\"rules\":_vm.rules4,\"solo\":\"\",\"type\":\"number\",\"step\":\"0.001\"},model:{value:(_vm.formulario.tiempo_estimado_minuto),callback:function ($$v) {_vm.$set(_vm.formulario, \"tiempo_estimado_minuto\", $$v)},expression:\"formulario.tiempo_estimado_minuto\"}}),_c('v-text-field',{staticClass:\"ma-2\",attrs:{\"label\":\"Tiempo real (Minutos)\",\"required\":\"\",\"rules\":_vm.rules4,\"solo\":\"\",\"type\":\"number\",\"step\":\"0.001\"},model:{value:(_vm.formulario.tiempo_real_minuto),callback:function ($$v) {_vm.$set(_vm.formulario, \"tiempo_real_minuto\", $$v)},expression:\"formulario.tiempo_real_minuto\"}}),_c('v-text-field',{staticClass:\"ma-2\",attrs:{\"label\":\"Metros proyectados\",\"required\":\"\",\"rules\":_vm.rules4,\"solo\":\"\",\"type\":\"number\",\"step\":\"0.001\"},model:{value:(_vm.formulario.metros_proyectados),callback:function ($$v) {_vm.$set(_vm.formulario, \"metros_proyectados\", $$v)},expression:\"formulario.metros_proyectados\"}}),_c('v-text-field',{staticClass:\"ma-2\",attrs:{\"label\":\"Metros reales\",\"required\":\"\",\"rules\":_vm.rules4,\"solo\":\"\",\"type\":\"number\",\"step\":\"0.001\"},model:{value:(_vm.formulario.metros_reales),callback:function ($$v) {_vm.$set(_vm.formulario, \"metros_reales\", $$v)},expression:\"formulario.metros_reales\"}}),_c('v-text-field',{staticClass:\"ma-2\",attrs:{\"label\":\"Margen esperada\",\"required\":\"\",\"rules\":_vm.rules4,\"solo\":\"\",\"type\":\"number\",\"step\":\"0.001\"},model:{value:(_vm.formulario.margen_esperada),callback:function ($$v) {_vm.$set(_vm.formulario, \"margen_esperada\", $$v)},expression:\"formulario.margen_esperada\"}}),_c('v-autocomplete',{staticClass:\"ma-2\",attrs:{\"items\":_vm.operarios,\"item-value\":\"id_registro\",\"item-text\":\"operario\",\"label\":\"Operario\",\"chips\":\"\",\"clearable\":\"\",\"small-chips\":\"\",\"solo\":\"\",\"rules\":_vm.rules4},model:{value:(_vm.formulario.id_operario),callback:function ($$v) {_vm.$set(_vm.formulario, \"id_operario\", $$v)},expression:\"formulario.id_operario\"}}),_c('v-autocomplete',{staticClass:\"ma-2\",attrs:{\"items\":_vm.supervisores,\"item-value\":\"id_registro\",\"item-text\":\"supervisor\",\"label\":\"Supervisor\",\"chips\":\"\",\"clearable\":\"\",\"small-chips\":\"\",\"solo\":\"\",\"rules\":_vm.rules4},model:{value:(_vm.formulario.id_supervisor),callback:function ($$v) {_vm.$set(_vm.formulario, \"id_supervisor\", $$v)},expression:\"formulario.id_supervisor\"}}),_c('v-textarea',{staticClass:\"mx-2 mt-4\",attrs:{\"label\":\"Comentario\",\"prepend-icon\":\"mdi-comment\",\"rows\":\"3\",\"row-height\":\"15\",\"counter\":\"\",\"maxlength\":\"500\",\"hint\":\"máximo 500 caracteres\",\"solo\":\"\",\"background-color\":\"amber lighten-4\",\"color\":\"orange orange-darken-4\",\"rules\":_vm.rules4},model:{value:(_vm.formulario.comentario),callback:function ($$v) {_vm.$set(_vm.formulario, \"comentario\", $$v)},expression:\"formulario.comentario\"}})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"12\",\"md\":\"3\"}})],1),_c('div',{staticClass:\"d-flex justify-center\"},[_c('v-btn',{staticClass:\"ma-3 mb-4\",attrs:{\"color\":\"#FFB300\",\"elevation\":\"2\",\"outlined\":\"\",\"rounded\":\"\",\"type\":\"submit\",\"loading\":_vm.estado_boton_guardar}},[_c('v-icon',{attrs:{\"dark\":\"\"}},[_vm._v(\" mdi-content-save \")]),_vm._v(\" Guardar \")],1)],1),(_vm.estado_ventana_mensaje)?_c('div',{staticClass:\"d-flex justify-center\"},[_c('v-alert',{attrs:{\"border\":\"left\",\"color\":_vm.color_ventana,\"type\":_vm.tipo_ventana}},[_vm._v(_vm._s(_vm.texto_alert))])],1):_vm._e()],1)],1)],1)],1),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"12\",\"md\":\"2\"}})],1)],1)],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\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!./hora_hora_calidad.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!./hora_hora_calidad.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./hora_hora_calidad.vue?vue&type=template&id=aa82d5d6&scoped=true\"\nimport script from \"./hora_hora_calidad.vue?vue&type=script&lang=js\"\nexport * from \"./hora_hora_calidad.vue?vue&type=script&lang=js\"\nimport style0 from \"./hora_hora_calidad.vue?vue&type=style&index=0&id=aa82d5d6&prod&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 \"aa82d5d6\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../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!./hora_hora_calidad.vue?vue&type=style&index=0&id=aa82d5d6&prod&scoped=true&lang=css\"","// Styles\nimport './VTextarea.sass'\n\n// Extensions\nimport VTextField from '../VTextField/VTextField'\n\n// Utilities\nimport mixins from '../../util/mixins'\n\n// Types\nimport Vue from 'vue'\n\ninterface options extends Vue {\n $refs: {\n input: HTMLTextAreaElement\n }\n}\n\nconst baseMixins = mixins\n>(\n VTextField\n)\n\n/* @vue/component */\nexport default baseMixins.extend({\n name: 'v-textarea',\n\n props: {\n autoGrow: Boolean,\n noResize: Boolean,\n rowHeight: {\n type: [Number, String],\n default: 24,\n validator: (v: any) => !isNaN(parseFloat(v)),\n },\n rows: {\n type: [Number, String],\n default: 5,\n validator: (v: any) => !isNaN(parseInt(v, 10)),\n },\n },\n\n computed: {\n classes (): object {\n return {\n 'v-textarea': true,\n 'v-textarea--auto-grow': this.autoGrow,\n 'v-textarea--no-resize': this.noResizeHandle,\n ...VTextField.options.computed.classes.call(this),\n }\n },\n noResizeHandle (): boolean {\n return this.noResize || this.autoGrow\n },\n },\n\n watch: {\n autoGrow (val: boolean) {\n this.$nextTick(() => {\n val\n ? this.calculateInputHeight()\n : this.$refs.input?.style.removeProperty('height')\n })\n },\n lazyValue () {\n this.autoGrow && this.$nextTick(this.calculateInputHeight)\n },\n rowHeight () {\n this.autoGrow && this.$nextTick(this.calculateInputHeight)\n },\n },\n\n mounted () {\n setTimeout(() => {\n this.autoGrow && this.calculateInputHeight()\n }, 0)\n },\n\n methods: {\n calculateInputHeight () {\n const input = this.$refs.input\n if (!input) return\n\n input.style.height = '0'\n const height = input.scrollHeight\n const minHeight = parseInt(this.rows, 10) * parseFloat(this.rowHeight)\n // This has to be done ASAP, waiting for Vue\n // to update the DOM causes ugly layout jumping\n input.style.height = Math.max(minHeight, height) + 'px'\n },\n genInput () {\n const input = VTextField.options.methods.genInput.call(this)\n\n input.tag = 'textarea'\n delete input.data!.attrs!.type\n input.data!.attrs!.rows = this.rows\n\n return input\n },\n onInput (e: Event) {\n VTextField.options.methods.onInput.call(this, e)\n this.autoGrow && this.calculateInputHeight()\n },\n onKeyDown (e: KeyboardEvent) {\n // Prevents closing of a\n // dialog when pressing\n // enter\n if (this.isFocused && e.keyCode === 13) {\n e.stopPropagation()\n }\n\n this.$emit('keydown', e)\n },\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":""}