{"version":3,"file":"VWindowItem-DBt1yRCv.js","sources":["../../../node_modules/.pnpm/vuetify@2.7.2_vue@2.7.16/node_modules/vuetify/lib/components/VWindow/VWindowItem.js"],"sourcesContent":["// Mixins\nimport Bootable from '../../mixins/bootable';\nimport { factory as GroupableFactory } from '../../mixins/groupable'; // Directives\n\nimport Touch from '../../directives/touch'; // Utilities\n\nimport { convertToUnit, getSlot } from '../../util/helpers';\nimport mixins from '../../util/mixins';\nconst baseMixins = mixins(Bootable, GroupableFactory('windowGroup', 'v-window-item', 'v-window'));\nexport default baseMixins.extend().extend().extend({\n name: 'v-window-item',\n directives: {\n Touch\n },\n props: {\n disabled: Boolean,\n reverseTransition: {\n type: [Boolean, String],\n default: undefined\n },\n transition: {\n type: [Boolean, String],\n default: undefined\n },\n value: {\n required: false\n }\n },\n\n data() {\n return {\n isActive: false,\n inTransition: false\n };\n },\n\n computed: {\n classes() {\n return this.groupClasses;\n },\n\n computedTransition() {\n if (!this.windowGroup.internalReverse) {\n return typeof this.transition !== 'undefined' ? this.transition || '' : this.windowGroup.computedTransition;\n }\n\n return typeof this.reverseTransition !== 'undefined' ? this.reverseTransition || '' : this.windowGroup.computedTransition;\n }\n\n },\n methods: {\n genDefaultSlot() {\n return getSlot(this);\n },\n\n genWindowItem() {\n return this.$createElement('div', {\n staticClass: 'v-window-item',\n class: this.classes,\n directives: [{\n name: 'show',\n value: this.isActive\n }],\n on: this.$listeners\n }, this.genDefaultSlot());\n },\n\n onAfterTransition() {\n if (!this.inTransition) {\n return;\n } // Finalize transition state.\n\n\n this.inTransition = false;\n\n if (this.windowGroup.transitionCount > 0) {\n this.windowGroup.transitionCount--; // Remove container height if we are out of transition.\n\n if (this.windowGroup.transitionCount === 0) {\n this.windowGroup.transitionHeight = undefined;\n }\n }\n },\n\n onBeforeTransition() {\n if (this.inTransition) {\n return;\n } // Initialize transition state here.\n\n\n this.inTransition = true;\n\n if (this.windowGroup.transitionCount === 0) {\n // Set initial height for height transition.\n this.windowGroup.transitionHeight = convertToUnit(this.windowGroup.$el.clientHeight);\n }\n\n this.windowGroup.transitionCount++;\n },\n\n onTransitionCancelled() {\n this.onAfterTransition(); // This should have the same path as normal transition end.\n },\n\n onEnter(el) {\n if (!this.inTransition) {\n return;\n }\n\n this.$nextTick(() => {\n // Do not set height if no transition or cancelled.\n if (!this.computedTransition || !this.inTransition) {\n return;\n } // Set transition target height.\n\n\n this.windowGroup.transitionHeight = convertToUnit(el.clientHeight);\n });\n }\n\n },\n\n render(h) {\n return h('transition', {\n props: {\n name: this.computedTransition\n },\n on: {\n // Handlers for enter windows.\n beforeEnter: this.onBeforeTransition,\n afterEnter: this.onAfterTransition,\n enterCancelled: this.onTransitionCancelled,\n // Handlers for leave windows.\n beforeLeave: this.onBeforeTransition,\n afterLeave: this.onAfterTransition,\n leaveCancelled: this.onTransitionCancelled,\n // Enter handler for height transition.\n enter: this.onEnter\n }\n }, this.showLazyContent(() => [this.genWindowItem()]));\n }\n\n});\n//# sourceMappingURL=VWindowItem.js.map"],"names":["baseMixins","mixins","Bootable","GroupableFactory","__unplugin_components_5","Touch","getSlot","convertToUnit","el","h"],"mappings":"2hBAQA,MAAMA,EAAaC,EAAOC,EAAUC,EAAiB,cAAe,gBAAiB,UAAU,CAAC,EACjFC,EAAAJ,EAAW,OAAM,EAAG,OAAM,EAAG,OAAO,CACjD,KAAM,gBACN,WAAY,CACV,MAAAK,CACD,EACD,MAAO,CACL,SAAU,QACV,kBAAmB,CACjB,KAAM,CAAC,QAAS,MAAM,EACtB,QAAS,MACV,EACD,WAAY,CACV,KAAM,CAAC,QAAS,MAAM,EACtB,QAAS,MACV,EACD,MAAO,CACL,SAAU,EAChB,CACG,EAED,MAAO,CACL,MAAO,CACL,SAAU,GACV,aAAc,EACf,CACF,EAED,SAAU,CACR,SAAU,CACR,OAAO,KAAK,YACb,EAED,oBAAqB,CACnB,OAAK,KAAK,YAAY,gBAIf,OAAO,KAAK,mBAAsB,YAAc,KAAK,mBAAqB,GAAK,KA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