{"version":3,"file":"VChip-C9hpJ2Pk.js","sources":["../../../node_modules/.pnpm/vuetify@2.7.2_vue@2.7.16/node_modules/vuetify/lib/components/VChip/VChip.js"],"sourcesContent":["// Styles\nimport \"../../../src/components/VChip/VChip.sass\";\nimport mixins from '../../util/mixins'; // Components\n\nimport { VExpandXTransition } from '../transitions';\nimport VIcon from '../VIcon'; // Mixins\n\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'; // Utilities\n\nimport { breaking } from '../../util/console';\nimport { getSlot } from '../../util/helpers';\n/* @vue/component */\n\nexport default mixins(Colorable, Sizeable, Routable, Themeable, GroupableFactory('chipGroup'), ToggleableFactory('inputValue')).extend({\n name: 'v-chip',\n props: {\n active: {\n type: Boolean,\n default: true\n },\n activeClass: {\n type: String,\n\n default() {\n if (!this.chipGroup) return '';\n return this.chipGroup.activeClass;\n }\n\n },\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\n },\n data: () => ({\n proxyClass: 'v-chip--active'\n }),\n computed: {\n classes() {\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\n hasClose() {\n return Boolean(this.close);\n },\n\n isClickable() {\n return Boolean(Routable.options.computed.isClickable.call(this) || this.chipGroup);\n }\n\n },\n\n created() {\n const breakingProps = [['outline', 'outlined'], ['selected', 'input-value'], ['value', 'active'], ['@input', '@active.sync']];\n /* istanbul ignore next */\n\n breakingProps.forEach(([original, replacement]) => {\n if (this.$attrs.hasOwnProperty(original)) breaking(original, replacement, this);\n });\n },\n\n methods: {\n click(e) {\n this.$emit('click', e);\n this.chipGroup && this.toggle();\n },\n\n genFilter() {\n const children = [];\n\n if (this.isActive) {\n children.push(this.$createElement(VIcon, {\n staticClass: 'v-chip__filter',\n props: {\n left: true\n }\n }, this.filterIcon));\n }\n\n return this.$createElement(VExpandXTransition, children);\n },\n\n genClose() {\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 => {\n e.stopPropagation();\n e.preventDefault();\n this.$emit('click:close');\n this.$emit('update:active', false);\n }\n }\n }, this.closeIcon);\n },\n\n genContent() {\n return this.$createElement('span', {\n staticClass: 'v-chip__content'\n }, [this.filter && this.genFilter(), getSlot(this), this.hasClose && this.genClose()]);\n }\n\n },\n\n render(h) {\n const children = [this.genContent()];\n let {\n tag,\n data\n } = this.generateRouteLink();\n data.attrs = { ...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 const color = this.textColor || this.outlined && this.color;\n return h(tag, this.setTextColor(color, data), children);\n }\n\n});\n//# sourceMappingURL=VChip.js.map"],"names":["__unplugin_components_16","mixins","Colorable","Sizeable","Routable","Themeable","GroupableFactory","ToggleableFactory","__spreadValues","__spreadProps","original","replacement","breaking","children","VIcon","VExpandXTransition","getSlot","h","tag","data","color"],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