{"version":3,"sources":["../../../src/components/VItemGroup/VItem.ts"],"names":[],"mappings":";;;AACA,SAAS,WAAW,gBAApB,QAA4C,wBAA5C;AAEA;AACA,OAAO,MAAP,MAAmB,mBAAnB;AACA,SAAS,WAAT,QAA4B,oBAA5B;AAKA,eAAe,OACb,iBAAiB,WAAjB,EAA8B,QAA9B,EAAwC,cAAxC;AACA;AAFa,EAGb,MAHa,CAGN;AACP,UAAM,QADC;AAGP,WAAO;AACL,eAAO;AACL,sBAAU;AADL;AADF,KAHA;AASP,UATO,oBASD;AACJ,YAAI,CAAC,KAAK,YAAL,CAAkB,OAAvB,EAAgC;AAC9B,wBAAY,wCAAZ,EAAsD,IAAtD;AAEA,mBAAO,IAAP;AACD;AAED,YAAI,gBAAJ;AAEA;AACA,YAAI,KAAK,YAAL,CAAkB,OAAtB,EAA+B;AAC7B,sBAAU,KAAK,YAAL,CAAkB,OAAlB,CAA0B;AAClC,wBAAQ,KAAK,QADqB;AAElC,wBAAQ,KAAK;AAFqB,aAA1B,CAAV;AAID;AAED,YAAI,MAAM,OAAN,CAAc,OAAd,KAA0B,QAAQ,MAAR,KAAmB,CAAjD,EAAoD;AAClD,sBAAU,QAAQ,CAAR,CAAV;AACD;AAED,YAAI,CAAC,OAAD,IAAY,MAAM,OAAN,CAAc,OAAd,CAAZ,IAAsC,CAAC,QAAQ,GAAnD,EAAwD;AACtD,wBAAY,6CAAZ,EAA2D,IAA3D;AAEA,mBAAO,OAAP;AACD;AAED,gBAAQ,IAAR,GAAe,KAAK,EAAL,CAAQ,QAAQ,IAAR,IAAgB,EAAxB,EAA4B,QAAQ,GAApC,EAA0C;AACvD,uCAAU,KAAK,WAAf,EAA6B,KAAK,QAAlC;AADuD,SAA1C,CAAf;AAIA,eAAO,OAAP;AACD;AAzCM,CAHM,CAAf","sourcesContent":["// Mixins\nimport { factory as GroupableFactory } from '../../mixins/groupable'\n\n// Utilities\nimport mixins from '../../util/mixins'\nimport { consoleWarn } from '../../util/console'\n\n// Types\nimport { VNode, ScopedSlotChildren } from 'vue/types/vnode'\n\nexport default mixins(\n GroupableFactory('itemGroup', 'v-item', 'v-item-group')\n /* @vue/component */\n).extend({\n name: 'v-item',\n\n props: {\n value: {\n required: false\n }\n },\n\n render (): VNode {\n if (!this.$scopedSlots.default) {\n consoleWarn('v-item is missing a default scopedSlot', this)\n\n return null as any\n }\n\n let element: VNode | ScopedSlotChildren\n\n /* istanbul ignore else */\n if (this.$scopedSlots.default) {\n element = this.$scopedSlots.default({\n active: this.isActive,\n toggle: this.toggle\n })\n }\n\n if (Array.isArray(element) && element.length === 1) {\n element = element[0]\n }\n\n if (!element || Array.isArray(element) || !element.tag) {\n consoleWarn('v-item should only contain a single element', this)\n\n return element as any\n }\n\n element.data = this._b(element.data || {}, element.tag!, {\n class: { [this.activeClass]: this.isActive }\n })\n\n return element\n }\n})\n"],"sourceRoot":""}