'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _VWindow = require('../VWindow/VWindow'); var _VWindow2 = _interopRequireDefault(_VWindow); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /* @vue/component */ exports.default = _VWindow2.default.extend({ name: 'v-tabs-items', inject: { registerItems: { default: null }, tabProxy: { default: null }, unregisterItems: { default: null } }, props: { cycle: Boolean }, watch: { internalValue: function internalValue(val) { /* istanbul ignore else */ if (this.tabProxy) this.tabProxy(val); } }, created: function created() { this.registerItems && this.registerItems(this.changeModel); }, beforeDestroy: function beforeDestroy() { this.unregisterItems && this.unregisterItems(); }, methods: { changeModel: function changeModel(val) { this.internalValue = val; }, // For backwards compatability with v1.2 getValue: function getValue(item, i) { /* istanbul ignore if */ if (item.id) return item.id; return _VWindow2.default.options.methods.getValue.call(this, item, i); }, next: function next() { if (!this.cycle && this.internalIndex === this.items.length - 1) { return; } _VWindow2.default.options.methods.next.call(this); }, prev: function prev() { if (!this.cycle && this.internalIndex === 0) { return; } _VWindow2.default.options.methods.prev.call(this); } } }); // Extensions //# sourceMappingURL=VTabsItems.js.map