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;AAC3C;AACD;AAED,8BAAQ,OAAR,CAAgB,OAAhB,CAAwB,IAAxB,CAA6B,IAA7B,CAAkC,IAAlC;AACD;AAxBM;AAlCmB,CAAf,C","sourcesContent":["// Extensions\nimport VWindow from '../VWindow/VWindow'\n\n/* @vue/component */\nexport default VWindow.extend({\n name: 'v-tabs-items',\n\n inject: {\n registerItems: {\n default: null\n },\n tabProxy: {\n default: null\n },\n unregisterItems: {\n default: null\n }\n },\n\n props: {\n cycle: Boolean\n },\n\n watch: {\n internalValue (val) {\n /* istanbul ignore else */\n if (this.tabProxy) this.tabProxy(val)\n }\n },\n\n created () {\n this.registerItems && this.registerItems(this.changeModel)\n },\n\n beforeDestroy () {\n this.unregisterItems && this.unregisterItems()\n },\n\n methods: {\n changeModel (val) {\n this.internalValue = val\n },\n // For backwards compatability with v1.2\n getValue (item, i) {\n /* istanbul ignore if */\n if (item.id) return item.id\n\n return VWindow.options.methods.getValue.call(this, item, i)\n },\n next () {\n if (!this.cycle && this.internalIndex === this.items.length - 1) {\n return\n }\n\n VWindow.options.methods.next.call(this)\n },\n prev () {\n if (!this.cycle && this.internalIndex === 0) {\n return\n }\n\n VWindow.options.methods.prev.call(this)\n }\n }\n})\n"],"sourceRoot":""}
|