{"version":3,"sources":["webpack:///./src/components/authentication/InviteTeamPage.vue?1768","webpack:///./src/components/authentication/InviteTeamPage.vue","webpack:///./src/components/authentication/InviteTeamPage.vue?ace5","webpack:///./src/components/authentication/InviteTeamPage.vue?19df","webpack:///../../../src/components/VCard/index.ts","webpack:///../../../src/components/VCard/VCard.ts","webpack:///./src/components/_global/DataFetcher.vue?0fc9","webpack:///./src/components/_global/DataFetcher.vue?77e7","webpack:///./src/components/_global/DataFetcher.vue","webpack:///./src/components/_global/DataFetcher.vue?6448","webpack:///./src/components/_global/DataFetcher.vue?d9b7","webpack:///./src/components/authentication/components/TeamCard.vue?f871","webpack:///./src/components/authentication/components/TeamCard.vue","webpack:///./src/components/authentication/components/TeamCard.vue?5cdf","webpack:///./src/components/authentication/components/TeamCard.vue?be2e"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","fetch","teamPublicInfos","staticClass","_v","_s","linkCreatorName","$t","name","guildRegion","toUpperCase","guildRealm","_e","isLoading","on","handleAcceptInvite","staticRenderFns","inviteCode","$route","params","teams","getPublicTeamInfos","tryRedirectToTeamPage","acceptInviteCode","handleAPIError","getTeamInfos","id","teamInfos","$router","push","components","DataFetcher","TeamCard","component","VBtn","VCard","VCardText","VCol","VContainer","VMain","VRow","VCardActions","VCardSubtitle","VCardTitle","props","flat","hover","img","link","loaderHeight","type","Number","default","raised","Boolean","computed","classes","styles","style","methods","genProgress","key","data","h","tag","setBackgroundColor","$slots","_t","loading","silentLoading","handleLoad","hideLoading","useSilentLoading","handleSecondaryLoad","$emit","fetchData","error","secondaryFetchData","Function","required","realm","scopedSlots","_u","fn","ref","_g","$event","handleOpenLeaveTeamClick","color","side","iconFaction","nbRegisteredCharacters","nbRosters","buttonColor","buttonText","VDivider","VIcon","VImg","VList","VListItem","VListItemContent","VListItemSubtitle","VListItemTitle","VMenu"],"mappings":"kJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK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A,EAAW,CAACC,OAAA,KAAKC,QAAA,KAAMM,aAAA,OAAaL,UAAA,OAAUC,OAAA,KAAKC,aAAA,KAAWyD,WAAA,KAASC,QAAA,KAAMC,OAAA,KAAKC,QAAA,KAAMC,YAAA,KAAUC,iBAAA,OAAiBC,kBAAA,OAAkBC,eAAA,OAAeC,QAAA,KAAM/D,OAAA,Q","file":"dist/js/chunk-559e9d0e.46a05792.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-main',[_c('data-fetcher',{attrs:{\"fetch-data\":_vm.fetch}},[_c('v-container',{attrs:{\"fluid\":\"\",\"fill-height\":\"\"}},[(_vm.teamPublicInfos != null)?_c('v-container',{staticClass:\"fill-height\",attrs:{\"fluid\":\"\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"align\":\"center\",\"justify\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"text-center\"},[_c('v-card',{staticClass:\"mx-auto\",attrs:{\"max-width\":\"500\"}},[_c('v-card-text',[_c('p',[_vm._v(_vm._s(_vm.teamPublicInfos.linkCreatorName ? _vm.teamPublicInfos.linkCreatorName : _vm.$t('user.unknown'))+\" invited you to join\")]),_c('p',{staticClass:\"display-1 text--primary\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.teamPublicInfos.name)+\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\")]),(_vm.teamPublicInfos.guildRealm)?_c('p',[_vm._v(\"(\"+_vm._s(_vm.teamPublicInfos.guildRegion.toUpperCase())+\") \"+_vm._s(_vm.teamPublicInfos.guildRealm))]):_vm._e(),_c('v-btn',{attrs:{\"loading\":_vm.isLoading,\"disabled\":_vm.isLoading,\"block\":\"\",\"color\":\"primary\",\"depressed\":\"\"},on:{\"click\":_vm.handleAcceptInvite}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$t('team.accept_invite'))+\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\")])],1)],1)],1)])],1)],1):_vm._e()],1)],1),_c('app-footer')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\n\n/**\n * Utils\n */\n\nimport { teamUrl } from \"@/utils/url-helpers\";\n\n/**\n * Mixins\n */\n\n/**\n * Components\n */\nimport TeamCard from \"./components/TeamCard.vue\";\n\n/**\n * API\n */\nimport teamsAPI from \"@/api/teams\";\nimport { GetOneTeamPublicResponse } from \"@/api/teams/get-one-team-public.response\";\nimport DataFetcher from \"@/components/_global/DataFetcher.vue\";\n\n\n/**\n * Types\n */\n\n/**\n * VueX Modules\n */\n\n\n@Component({\n\tcomponents: {\n\t\tDataFetcher,\n\t\tTeamCard\n\t}\n})\nexport default class InviteTeamPage extends Vue {\n\t/// Injections\n\tteamUrl = teamUrl;\n\n\t/// Attributes\n\tisLoading = false;\n\tteamPublicInfos: GetOneTeamPublicResponse | null = null;\n\n\t/// Methods\n\tasync created() {\n\t}\n\n\tasync fetch() {\n\t\tconst inviteCode = this.$route.params.inviteCode;\n\t\tthis.teamPublicInfos = await teamsAPI.getPublicTeamInfos(inviteCode);\n\n\t\ttry {\n\t\t\t// Test if the current user has access to the team, then redirect to the dashboard\n\t\t\tawait this.tryRedirectToTeamPage();\n\t\t} catch (error) {\n\t\t\t// Otherwise, it's a classic invite\n\t\t}\n\t}\n\n\tasync handleAcceptInvite() {\n\t\tthis.isLoading = true;\n\t\ttry {\n\t\t\tconst inviteCode = this.$route.params.inviteCode;\n\t\t\tawait teamsAPI.acceptInviteCode(inviteCode);\n\t\t\tawait this.tryRedirectToTeamPage();\n\t\t} catch (err) {\n\t\t\tthis.handleAPIError(err);\n\t\t\tthis.isLoading = false;\n\t\t}\n\t}\n\n\tasync tryRedirectToTeamPage() {\n\t\tif (this.teamPublicInfos == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst teamInfos = await teamsAPI.getTeamInfos(this.teamPublicInfos.id);\n\t\tawait this.$router.push(teamUrl(teamInfos, \"/\"));\n\t}\n\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InviteTeamPage.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InviteTeamPage.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InviteTeamPage.vue?vue&type=template&id=0b8082f6&\"\nimport script from \"./InviteTeamPage.vue?vue&type=script&lang=ts&\"\nexport * from \"./InviteTeamPage.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VMain } from 'vuetify/lib/components/VMain';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCard,VCardText,VCol,VContainer,VMain,VRow})\n","import VCard from './VCard'\nimport { createSimpleFunctional } from '../../util/helpers'\n\nconst VCardActions = createSimpleFunctional('v-card__actions')\nconst VCardSubtitle = createSimpleFunctional('v-card__subtitle')\nconst VCardText = createSimpleFunctional('v-card__text')\nconst VCardTitle = createSimpleFunctional('v-card__title')\n\nexport {\n VCard,\n VCardActions,\n VCardSubtitle,\n VCardText,\n VCardTitle,\n}\n\nexport default {\n $_vuetify_subcomponents: {\n VCard,\n VCardActions,\n VCardSubtitle,\n VCardText,\n VCardTitle,\n },\n}\n","// Styles\nimport './VCard.sass'\n\n// Extensions\nimport VSheet from '../VSheet'\n\n// Mixins\nimport Loadable from '../../mixins/loadable'\nimport Routable from '../../mixins/routable'\n\n// Helpers\nimport mixins from '../../util/mixins'\n\n// Types\nimport { VNode } from 'vue'\n\n/* @vue/component */\nexport default mixins(\n Loadable,\n Routable,\n VSheet\n).extend({\n name: 'v-card',\n\n props: {\n flat: Boolean,\n hover: Boolean,\n img: String,\n link: Boolean,\n loaderHeight: {\n type: [Number, String],\n default: 4,\n },\n raised: Boolean,\n },\n\n computed: {\n classes (): object {\n return {\n 'v-card': true,\n ...Routable.options.computed.classes.call(this),\n 'v-card--flat': this.flat,\n 'v-card--hover': this.hover,\n 'v-card--link': this.isClickable,\n 'v-card--loading': this.loading,\n 'v-card--disabled': this.disabled,\n 'v-card--raised': this.raised,\n ...VSheet.options.computed.classes.call(this),\n }\n },\n styles (): object {\n const style: Dictionary = {\n ...VSheet.options.computed.styles.call(this),\n }\n\n if (this.img) {\n style.background = `url(\"${this.img}\") center center / cover no-repeat`\n }\n\n return style\n },\n },\n\n methods: {\n genProgress () {\n const render = Loadable.options.methods.genProgress.call(this)\n\n if (!render) return null\n\n return this.$createElement('div', {\n staticClass: 'v-card__progress',\n key: 'progress',\n }, [render])\n },\n },\n\n render (h): VNode {\n const { tag, data } = this.generateRouteLink()\n\n data.style = this.styles\n\n if (this.isClickable) {\n data.attrs = data.attrs || {}\n data.attrs.tabindex = 0\n }\n\n return h(tag, this.setBackgroundColor(this.color, data), [\n this.genProgress(),\n this.$slots.default,\n ])\n },\n})\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DataFetcher.vue?vue&type=style&index=0&id=452e8cc9&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.error)?_c('div',[_vm._t(\"message\",function(){return [_c('p',[_vm._v(\"Something went wrong. Please try again.\")])]}),_c('button',{attrs:{\"disabled\":_vm.loading || _vm.silentLoading},on:{\"click\":_vm.handleLoad}},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.loading ? \"Retrying...\" : \"Retry\")+\"\\n\\t\")])],2):(_vm.loading && !_vm.silentLoading && !_vm.hideLoading)?_c('div',{staticClass:\"fill-height\"},[_c('app-loading')],1):_c('div',{staticClass:\"fill-height\"},[_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Vue, Component, Prop, Watch } from \"vue-property-decorator\";\n\n@Component\nexport default class DataFetcher extends Vue {\n\t@Prop() id?: string; // ID passed as a prop (from route)\n\n\t@Prop({\n\t\ttype: Function,\n\t\trequired: true\n\t})\n\treadonly fetchData!: () => Promise;\n\n\t@Prop({\n\t\ttype: Function,\n\t\trequired: false\n\t})\n\treadonly secondaryFetchData?: () => Promise;\n\n\t@Prop({\n\t\ttype: Boolean,\n\t\trequired: false,\n\t\tdefault: false\n\t})\n\treadonly useSilentLoading!: boolean;\n\n\t@Prop({\n\t\ttype: Boolean,\n\t\trequired: false,\n\t\tdefault: false\n\t})\n\treadonly hideLoading!: boolean;\n\n\tloading = false;\n\tsilentLoading = false;\n\terror = false;\n\n\tasync created() {\n\t\tawait this.handleLoad();\n\t}\n\n\n\t// Watch for route param changes (id change)\n\t@Watch(\"id\")\n\tasync onIdChange() {\n\t\tif (this.useSilentLoading) {\n\t\t\tthis.silentLoading = true;\n\t\t}\n\t\tawait this.handleSecondaryLoad();\n\t}\n\n\tasync handleLoad() {\n\t\tthis.loading = true;\n\t\tthis.$emit(\"update:isLoading\", this.loading);\n\n\t\ttry {\n\t\t\tawait this.fetchData();\n\t\t\tthis.error = false;\n\t\t} catch (error) {\n\t\t\tthis.error = true;\n\t\t}\n\t\tthis.loading = false;\n\t\tthis.$emit(\"update:isLoading\", this.loading);\n\n\t\tthis.silentLoading = false;\n\t}\n\n\tasync handleSecondaryLoad() {\n\t\tthis.loading = true;\n\t\tthis.$emit(\"update:isLoading\", this.loading);\n\n\t\ttry {\n\t\t\tif (this.secondaryFetchData) {\n\t\t\t\tawait this.secondaryFetchData();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tawait this.fetchData();\n\t\t\t}\n\t\t\tthis.error = false;\n\t\t} catch (error) {\n\t\t\tthis.error = true;\n\t\t}\n\t\tthis.loading = false;\n\t\tthis.$emit(\"update:isLoading\", this.loading);\n\n\t\tthis.silentLoading = false;\n\t}\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DataFetcher.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DataFetcher.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DataFetcher.vue?vue&type=template&id=452e8cc9&scoped=true&\"\nimport script from \"./DataFetcher.vue?vue&type=script&lang=ts&\"\nexport * from \"./DataFetcher.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DataFetcher.vue?vue&type=style&index=0&id=452e8cc9&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"452e8cc9\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',{staticClass:\"mx-auto drag-handle\",attrs:{\"disabled\":_vm.isLoading}},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',{staticClass:\"headline mb-1\"},[_vm._v(_vm._s(_vm.name))]),(_vm.realm)?_c('v-list-item-subtitle',[_vm._v(_vm._s(_vm.realm))]):_c('v-list-item-subtitle',[_vm._v(\" \")])],1),_c('v-menu',{attrs:{\"bottom\":\"\",\"left\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({staticClass:\"mr-2\",attrs:{\"icon\":\"\"}},on),[_c('v-icon',{attrs:{\"small\":\"\"}},[_vm._v(\"fas fa-ellipsis-v\")])],1)]}}])},[_c('v-list',[_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){return _vm.handleOpenLeaveTeamClick()}}},[_c('v-list-item-title',{style:({color: 'red'})},[_vm._v(\"Leave Team\")])],1)],1)],1),(_vm.side != null)?_c('v-img',{attrs:{\"src\":_vm.iconFaction(_vm.side),\"max-width\":\"40\"}}):_vm._e()],1),_c('v-divider',{staticClass:\"mt-4\"}),(_vm.nbRegisteredCharacters != null || _vm.nbRosters != null)?_c('v-card-text',{staticClass:\"py-2\"},[_c('v-container',{staticClass:\"ma-0 pa-0\"},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{staticClass:\"mr-auto\",attrs:{\"cols\":\"auto\"}},[_c('v-icon',{staticClass:\"grey--text\"},[_vm._v(\"check\")]),_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.nbRegisteredCharacters)+\" characters\\n\\t\\t\\t\\t\")],1),_c('v-col',{attrs:{\"cols\":\"auto\"}},[_c('v-icon',{staticClass:\"grey--text\"},[_vm._v(\"people\")]),_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s((_vm.nbRosters + \" roster\" + (_vm.nbRosters === 1 ? '': 's')))+\"\\n\\t\\t\\t\\t\")],1)],1)],1)],1):_vm._e(),(_vm.nbRegisteredCharacters != null || _vm.nbRosters != null)?_c('v-divider'):_vm._e(),_c('v-card-actions',[_c('v-btn',{attrs:{\"color\":_vm.buttonColor,\"to\":_vm.link,\"loading\":_vm.isLoading,\"depressed\":\"\",\"block\":\"\"}},[_vm._v(_vm._s(_vm.buttonText))])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Prop } from \"vue-property-decorator\";\n\n/**\n * Helpers\n */\nimport { iconFaction } from \"@/config/image-links\";\n\n/**\n * Utils\n */\n\n/**\n * Mixins\n */\n\n/**\n * Components\n */\n\n/**\n * API\n */\n\n/**\n * Types\n */\n\n/**\n * VueX Modules\n */\n\n\n@Component\nexport default class TeamCard extends Vue {\n\t/// Injections\n\ticonFaction = iconFaction;\n\n\t/** Props */\n\t@Prop()\n\tid!: string;\n\t@Prop()\n\tname!: string;\n\t@Prop()\n\trealm!: string;\n\t@Prop()\n\tside!: string | null;\n\t@Prop()\n\tnbRegisteredCharacters!: number | null;\n\t@Prop()\n\tnbRosters!: number | null;\n\n\t@Prop()\n\tbuttonText!: string;\n\t@Prop()\n\tbuttonColor!: string;\n\n\t@Prop()\n\tlink!: string;\n\n\t@Prop()\n\tisLoading!: boolean;\n\n\t/// Methods\n\thandleClick() {\n\t\tthis.$emit(\"click\", this.id);\n\t}\n\n\thandleOpenLeaveTeamClick() {\n\t\tthis.$emit(\"onOpenLeaveTeamClick\");\n\t}\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TeamCard.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TeamCard.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TeamCard.vue?vue&type=template&id=1fdf4e35&\"\nimport script from \"./TeamCard.vue?vue&type=script&lang=ts&\"\nexport * from \"./TeamCard.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemSubtitle } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCol,VContainer,VDivider,VIcon,VImg,VList,VListItem,VListItemContent,VListItemSubtitle,VListItemTitle,VMenu,VRow})\n"],"sourceRoot":""}