{"version":3,"sources":["webpack:///./src/modules/facturas/components/EstadoFactura.vue","webpack:///src/modules/facturas/components/EstadoFactura.vue","webpack:///./src/modules/facturas/components/EstadoFactura.vue?0d87","webpack:///./src/modules/facturas/components/EstadoFactura.vue?497e","webpack:///../../../src/components/VChip/VChip.ts"],"names":["_c","_self","attrs","color","staticRenderFns","estados","PAGADA","props","estado","String","computed","component","mixins","Colorable","Sizeable","Routable","Themeable","GroupableFactory","ToggleableFactory","extend","name","active","type","Boolean","default","activeClass","this","chipGroup","close","closeIcon","closeLabel","disabled","draggable","filter","filterIcon","label","link","outlined","pill","tag","textColor","value","data","proxyClass","classes","options","call","isClickable","isLink","hasClose","themeClasses","sizeableClasses","groupClasses","created","breakingProps","forEach","original","replacement","$attrs","hasOwnProperty","breaking","methods","click","e","$emit","toggle","genFilter","children","isActive","push","$createElement","VIcon","staticClass","left","VExpandXTransition","genClose","right","size","$vuetify","lang","t","on","stopPropagation","preventDefault","genContent","getSlot","render","h","generateRouteLink","undefined","tabindex","directives","setBackgroundColor","setTextColor"],"mappings":"yIAA4CA,EAAOC,WAAS,MAAU,KAAiBC,EAAK,EAAC,S,OAAC,SAAYC,KAAK,C,MAAC,CAAa,cAAG,SAAY,KAExIC,WAAe,QAAK,0C,KCKxB,MAAAC,EAAA,CACA,gCACA,mCACA,2BACAC,OAAA,WAGe,OACfC,MAAA,CACAC,OAAAC,QAEAC,SAAA,CACAP,QACA,OAAAE,EAAA,KAAAG,SAAA,MCpBkZ,I,YCO9YG,EAAY,eACd,EACA,EACAP,GACA,EACA,KACA,KACA,MAIa,aAAAO,E,oPCSAC,sBACbC,OACAC,OACAC,OACAC,OACAC,eAAiB,aACjBC,eAAkB,eAClBC,OAAO,CACPC,KAAM,SAENb,MAAO,CACLc,OAAQ,CACNC,KAAMC,QACNC,SAAS,GAEXC,YAAa,CACXH,KAAMb,OACNe,UACE,OAAKE,KAAKC,UAEHD,KAAKC,UAAUF,YAFM,KAKhCG,MAAOL,QACPM,UAAW,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AeI,OAAoBP,IAEjDQ,WACE,OAAOjD,KAAK4C,eAAeC,OAAO,CAChCC,YAAa,gBACbjE,MAAO,CACLqE,OAAO,EACPC,KAAM,IAER3E,MAAO,CACL,aAAcwB,KAAKoD,SAASC,KAAKC,EAAEtD,KAAKI,aAE1CmD,GAAI,CACFnB,MAAQC,IACNA,EAAEmB,kBACFnB,EAAEoB,iBAEFzD,KAAKsC,MAAM,eACXtC,KAAKsC,MAAM,iBAAiB,MAG/BtC,KAAKG,YAEVuD,aACE,OAAO1D,KAAK4C,eAAe,OAAQ,CACjCE,YAAa,mBACZ,CACD9C,KAAKO,QAAUP,KAAKwC,YACpBmB,eAAQ3D,MACRA,KAAKuB,UAAYvB,KAAKiD,eAK5BW,OAAQC,GACN,MAAMpB,EAAW,CAACzC,KAAK0D,cACvB,IAAI,IAAE7C,EAAF,KAAOG,GAAShB,KAAK8D,oBAEzB9C,EAAKxC,MAAQ,IACRwC,EAAKxC,MACR8B,UAAWN,KAAKM,UAAY,YAASyD,EACrCC,SAAUhE,KAAKC,YAAcD,KAAKK,SAAW,EAAIW,EAAKxC,MAAOwF,UAE/DhD,EAAKiD,WAAYtB,KAAK,CACpBjD,KAAM,OACNqB,MAAOf,KAAKL,SAEdqB,EAAOhB,KAAKkE,mBAAmBlE,KAAKvB,MAAOuC,GAE3C,MAAMvC,EAAQuB,KAAKc,WAAcd,KAAKW,UAAYX,KAAKvB,MAEvD,OAAOoF,EAAEhD,EAAKb,KAAKmE,aAAa1F,EAAOuC,GAAOyB","file":"js/chunk-1521a070.311b7964.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-chip',_vm._b({attrs:{\"color\":_vm.color,\"outlined\":\"\"}},'v-chip',_vm.$attrs,false),[_c('strong',[_vm._v(_vm._s(_vm.estado))])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <v-chip v-bind=\"$attrs\" :color=\"color\" outlined>\n    <strong>{{ estado }}</strong>\n  </v-chip>\n</template>\n\n<script>\nconst estados = {\n  \"PENDIENTE DOCUMENTO\": \"#c89faa\",\n  \"PENDIENTE COMPROBACIÓN\": \"#c8929a\",\n  \"PENDIENTE PAGO\": \"#db94a5\",\n  PAGADA: \"#e1b097\",\n};\n\nexport default {\n  props: {\n    estado: String,\n  },\n  computed: {\n    color() {\n      return estados[this.estado] || \"\";\n    },\n  },\n};\n</script>\n\n<style></style>\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./EstadoFactura.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./EstadoFactura.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./EstadoFactura.vue?vue&type=template&id=0eb5cef1\"\nimport script from \"./EstadoFactura.vue?vue&type=script&lang=js\"\nexport * from \"./EstadoFactura.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/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 './VChip.sass'\n\n// Types\nimport { VNode } from 'vue'\nimport mixins from '../../util/mixins'\n\n// Components\nimport { VExpandXTransition } from '../transitions'\nimport VIcon from '../VIcon'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport { factory as GroupableFactory } from '../../mixins/groupable'\nimport Themeable from '../../mixins/themeable'\nimport { factory as ToggleableFactory } from '../../mixins/toggleable'\nimport Routable from '../../mixins/routable'\nimport Sizeable from '../../mixins/sizeable'\n\n// Utilities\nimport { breaking } from '../../util/console'\nimport { getSlot } from '../../util/helpers'\n\n// Types\nimport { PropValidator, PropType } from 'vue/types/options'\n\n/* @vue/component */\nexport default mixins(\n  Colorable,\n  Sizeable,\n  Routable,\n  Themeable,\n  GroupableFactory('chipGroup'),\n  ToggleableFactory('inputValue')\n).extend({\n  name: 'v-chip',\n\n  props: {\n    active: {\n      type: Boolean,\n      default: true,\n    },\n    activeClass: {\n      type: String,\n      default (): string | undefined {\n        if (!this.chipGroup) return ''\n\n        return this.chipGroup.activeClass\n      },\n    } as any as PropValidator<string>,\n    close: Boolean,\n    closeIcon: {\n      type: String,\n      default: '$delete',\n    },\n    closeLabel: {\n      type: String,\n      default: '$vuetify.close',\n    },\n    disabled: Boolean,\n    draggable: Boolean,\n    filter: Boolean,\n    filterIcon: {\n      type: String,\n      default: '$complete',\n    },\n    label: Boolean,\n    link: Boolean,\n    outlined: Boolean,\n    pill: Boolean,\n    tag: {\n      type: String,\n      default: 'span',\n    },\n    textColor: String,\n    value: null as any as PropType<any>,\n  },\n\n  data: () => ({\n    proxyClass: 'v-chip--active',\n  }),\n\n  computed: {\n    classes (): object {\n      return {\n        'v-chip': true,\n        ...Routable.options.computed.classes.call(this),\n        'v-chip--clickable': this.isClickable,\n        'v-chip--disabled': this.disabled,\n        'v-chip--draggable': this.draggable,\n        'v-chip--label': this.label,\n        'v-chip--link': this.isLink,\n        'v-chip--no-color': !this.color,\n        'v-chip--outlined': this.outlined,\n        'v-chip--pill': this.pill,\n        'v-chip--removable': this.hasClose,\n        ...this.themeClasses,\n        ...this.sizeableClasses,\n        ...this.groupClasses,\n      }\n    },\n    hasClose (): boolean {\n      return Boolean(this.close)\n    },\n    isClickable (): boolean {\n      return Boolean(\n        Routable.options.computed.isClickable.call(this) ||\n        this.chipGroup\n      )\n    },\n  },\n\n  created () {\n    const breakingProps = [\n      ['outline', 'outlined'],\n      ['selected', 'input-value'],\n      ['value', 'active'],\n      ['@input', '@active.sync'],\n    ]\n\n    /* istanbul ignore next */\n    breakingProps.forEach(([original, replacement]) => {\n      if (this.$attrs.hasOwnProperty(original)) breaking(original, replacement, this)\n    })\n  },\n\n  methods: {\n    click (e: MouseEvent): void {\n      this.$emit('click', e)\n\n      this.chipGroup && this.toggle()\n    },\n    genFilter (): VNode {\n      const children = []\n\n      if (this.isActive) {\n        children.push(\n          this.$createElement(VIcon, {\n            staticClass: 'v-chip__filter',\n            props: { left: true },\n          }, this.filterIcon)\n        )\n      }\n\n      return this.$createElement(VExpandXTransition, children)\n    },\n    genClose (): VNode {\n      return this.$createElement(VIcon, {\n        staticClass: 'v-chip__close',\n        props: {\n          right: true,\n          size: 18,\n        },\n        attrs: {\n          'aria-label': this.$vuetify.lang.t(this.closeLabel),\n        },\n        on: {\n          click: (e: Event) => {\n            e.stopPropagation()\n            e.preventDefault()\n\n            this.$emit('click:close')\n            this.$emit('update:active', false)\n          },\n        },\n      }, this.closeIcon)\n    },\n    genContent (): VNode {\n      return this.$createElement('span', {\n        staticClass: 'v-chip__content',\n      }, [\n        this.filter && this.genFilter(),\n        getSlot(this),\n        this.hasClose && this.genClose(),\n      ])\n    },\n  },\n\n  render (h): VNode {\n    const children = [this.genContent()]\n    let { tag, data } = this.generateRouteLink()\n\n    data.attrs = {\n      ...data.attrs,\n      draggable: this.draggable ? 'true' : undefined,\n      tabindex: this.chipGroup && !this.disabled ? 0 : data.attrs!.tabindex,\n    }\n    data.directives!.push({\n      name: 'show',\n      value: this.active,\n    })\n    data = this.setBackgroundColor(this.color, data)\n\n    const color = this.textColor || (this.outlined && this.color)\n\n    return h(tag, this.setTextColor(color, data), children)\n  },\n})\n"],"sourceRoot":""}