{"version":3,"sources":["webpack:///../../../src/components/VCheckbox/VCheckbox.ts","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","webpack:///./src/components/authentication/TeamsListPage.vue?5548","webpack:///./src/components/authentication/components/CreateTeamDialog.vue?1b19","webpack:///./src/components/authentication/components/CreateTeamDialog.vue","webpack:///./src/components/authentication/components/CreateTeamDialog.vue?acac","webpack:///./src/components/authentication/components/CreateTeamDialog.vue?70f5","webpack:///./src/components/authentication/components/LeaveTeamDialog.vue?e65f","webpack:///./src/components/authentication/components/LeaveTeamDialog.vue","webpack:///./src/components/authentication/components/LeaveTeamDialog.vue?94aa","webpack:///./src/components/authentication/components/LeaveTeamDialog.vue?c0c7","webpack:///./src/components/authentication/TeamsListPage.vue","webpack:///./src/components/authentication/TeamsListPage.vue?a9d3","webpack:///./src/components/authentication/TeamsListPage.vue?194f","webpack:///../../../src/mixins/rippleable/index.ts","webpack:///../../../src/mixins/selectable/index.ts"],"names":["name","props","indeterminate","indeterminateIcon","type","default","offIcon","onIcon","data","inputIndeterminate","this","computed","classes","computedIcon","validationState","isDisabled","hasError","hasColor","watch","isActive","methods","genCheckbox","checkboxAttrs","$createElement","staticClass","setTextColor","dense","dark","light","genInput","toString","genRipple","genDefaultSlot","render","_vm","_h","_c","_self","attrs","isLoading","_v","_s","realm","scopedSlots","_u","key","fn","ref","on","_g","$event","handleOpenLeaveTeamClick","style","color","side","iconFaction","_e","nbRegisteredCharacters","nbRosters","buttonColor","link","buttonText","staticRenderFns","$emit","id","component","VBtn","VCard","VCardActions","VCardText","VCol","VContainer","VDivider","VIcon","VImg","VList","VListItem","VListItemContent","VListItemSubtitle","VListItemTitle","VMenu","VRow","fetch","teamsICanEnter","length","handleOpenCreateTeamClick","$t","isTouchDevice","handleDragEnd","isDragging","_l","team","preventDefault","teamUrl","guildRegion","toUpperCase","guildRealm","guildSide","handleAfterCreateTeam","handleAfterLeaveTeam","creatableGuilds","stepChoice","guild","imageLinks","region","handleCreateTeamFromGuildClick","model","value","createStandaloneTeamForm","callback","$$v","$set","expression","regions","canSubmit","handleCreateTeamClick","close","profileModule","text","mustAddMyCharacters","$refs","modal","open","refreshCreatableTeams","teams","getCreatableGuilds","createTeamFromGuild","onAfterCreate","handleAPIError","createTeam","State","components","TeamCard","VCardTitle","VCheckbox","VListItemAction","VListItemIcon","VSelect","VTextField","handleLeaveTeamClick","leaveTeam","onAfterLeave","isMobile","hasTouch","$vuetify","breakpoint","smAndDown","window","navigator","maxTouchPoints","fetchGuilds","getTeams","leaveTeamDialog","createTeamDialog","$team","evt","oldIndex","newIndex","teamToMove","newPosition","users","changeTeamOrder","DataFetcher","draggable","CreateTeamDialog","LeaveTeamDialog","directives","ripple","Boolean","center","e","mixins","prop","event","inputValue","falseValue","trueValue","multiple","label","String","lazyValue","computedColor","isDark","isMultiple","Array","input","item","undefined","valueComparator","isDirty","rippleState","genLabel","VInput","click","prevent","Object","disabled","role","domProps","checked","blur","change","focus","keydown","onBlur","onClick","onChange","onFocus","onKeydown"],"mappings":"+1BAYe,qBAAkB,CAC/BA,KAD+B,aAG/BC,MAAO,CACLC,cADK,QAELC,kBAAmB,CACjBC,KADiB,OAEjBC,QAAS,0BAEXC,QAAS,CACPF,KADO,OAEPC,QAAS,gBAEXE,OAAQ,CACNH,KADM,OAENC,QAAS,gBAIbG,KAnB+B,WAoB7B,MAAO,CACLC,mBAAoBC,KAAKR,gBAI7BS,SAAU,CACRC,QADQ,WAEN,cACK,qCADE,OAAP,IAEE,+BAFK,EAGL,qBAHK,EAIL,yBAA0BF,KAAKD,sBAGnCI,aATQ,WAUN,OAAIH,KAAJ,mBACSA,KAAP,kBACSA,KAAJ,SACEA,KAAP,OAEOA,KAAP,SAMJI,gBArBQ,WAsBN,IAAIJ,KAAKK,YAAeL,KAAxB,mBACA,OAAIA,KAAKM,UAAYN,KAArB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JmB,EAKnBjM,QANgC,GAQlCkM,SAAU,CACR3F,MAAOjG,KADC,MAER6L,QAAS7L,KAAKS,UAEhB6B,GAAI,CACFwJ,KAAM9L,KADJ,OAEF+L,OAAQ/L,KAFN,SAGFgM,MAAOhM,KAHL,QAIFiM,QAASjM,KAJP,UAKFuL,MAAOC,GAETnJ,IAAK,WAGT6J,OApCO,WAqCLlM,KAAA,cAEFmM,QAvCO,SAuCA,GACLnM,KAAA,WACAA,KAAA,kBAEFoM,SA3CO,WA2CC,WACN,GAAKpM,KAAL,eAEA,IAAMiG,EAAQjG,KAAd,MACI+K,EAAQ/K,KAAZ,cAEA,GAAIA,KAAJ,WAAqB,CACd8K,MAAA,QAAL,KACEC,EAAA,IAGF,IAAMrG,EAASqG,EAAf,OAEAA,EAAQA,EAAA,QAAc,SAAAC,GAAD,OAAgB,oBAArC,MAEID,EAAA,SAAJ,GACEA,EAAA,aAGFA,OAD4BE,IAAnBjL,KAAKsK,gBAAT,IAAoCtK,KAAKqK,WACtCrK,KAAKkL,gBAAgBH,EAAO/K,KAA5B,WAA8CA,KAA9C,WAAgEA,KAAxE,UACSiG,EACDjG,KAAKkL,gBAAgBH,EAAO9E,GAAS,KAA7C,GAEA8E,EAGF/K,KAAA,eACAA,KAAA,gBACAA,KAAA,aAEFqM,QAzEO,WA0ELrM,KAAA,cAGFsM,UA7EO,SA6EE","file":"dist/js/chunk-28d0f9ae.03f47ef0.js","sourcesContent":["// Styles\nimport './VCheckbox.sass'\nimport '../../styles/components/_selection-controls.sass'\n\n// Components\nimport VIcon from '../VIcon'\nimport VInput from '../VInput'\n\n// Mixins\nimport Selectable from '../../mixins/selectable'\n\n/* @vue/component */\nexport default Selectable.extend({\n name: 'v-checkbox',\n\n props: {\n indeterminate: Boolean,\n indeterminateIcon: {\n type: String,\n default: '$checkboxIndeterminate',\n },\n offIcon: {\n type: String,\n default: '$checkboxOff',\n },\n onIcon: {\n type: String,\n default: '$checkboxOn',\n },\n },\n\n data () {\n return {\n inputIndeterminate: this.indeterminate,\n }\n },\n\n computed: {\n classes (): object {\n return {\n ...VInput.options.computed.classes.call(this),\n 'v-input--selection-controls': true,\n 'v-input--checkbox': true,\n 'v-input--indeterminate': this.inputIndeterminate,\n }\n },\n computedIcon (): string {\n if (this.inputIndeterminate) {\n return this.indeterminateIcon\n } else if (this.isActive) {\n return this.onIcon\n } else {\n return this.offIcon\n }\n },\n // Do not return undefined if disabled,\n // according to spec, should still show\n // a color when disabled and active\n validationState (): string | undefined {\n if (this.isDisabled && !this.inputIndeterminate) return undefined\n if (this.hasError && this.shouldValidate) return 'error'\n if (this.hasSuccess) return 'success'\n if (this.hasColor !== null) return this.computedColor\n return undefined\n },\n },\n\n watch: {\n indeterminate (val) {\n // https://github.com/vuetifyjs/vuetify/issues/8270\n this.$nextTick(() => (this.inputIndeterminate = val))\n },\n inputIndeterminate (val) {\n this.$emit('update:indeterminate', val)\n },\n isActive () {\n if (!this.indeterminate) return\n this.inputIndeterminate = false\n },\n },\n\n methods: {\n genCheckbox () {\n const { title, ...checkboxAttrs } = this.attrs$\n return this.$createElement('div', {\n staticClass: 'v-input--selection-controls__input',\n }, [\n this.$createElement(VIcon, this.setTextColor(this.validationState, {\n props: {\n dense: this.dense,\n dark: this.dark,\n light: this.light,\n },\n }), this.computedIcon),\n this.genInput('checkbox', {\n ...checkboxAttrs,\n 'aria-checked': this.inputIndeterminate\n ? 'mixed'\n : this.isActive.toString(),\n }),\n this.genRipple(this.setTextColor(this.rippleState)),\n ])\n },\n genDefaultSlot () {\n return [\n this.genCheckbox(),\n this.genLabel(),\n ]\n },\n },\n})\n","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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"fill-height\"},[_c('data-fetcher',{attrs:{\"fetch-data\":_vm.fetch}},[(_vm.teamsICanEnter && _vm.teamsICanEnter.length > 0)?_c('v-container',{attrs:{\"fluid\":\"\",\"grid-list-xl\":\"\",\"ma-0\":\"\",\"pa-0\":\"\"}},[_c('v-row',[_c('v-col'),_c('v-col',{attrs:{\"cols\":\"auto\"}},[_c('v-btn',{on:{\"click\":_vm.handleOpenCreateTeamClick}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"fas fa-plus\")]),_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$t('team.create_team'))+\"\\n\\t\\t\\t\\t\\t\")],1)],1)],1),_c('draggable',{staticClass:\"mt-1\",attrs:{\"disabled\":_vm.isLoading,\"list\":_vm.teamsICanEnter,\"delay\":_vm.isTouchDevice ? 500 : 0,\"animation\":\"0\",\"ghost-class\":\"ghost\",\"handle\":\".drag-handle\"},on:{\"end\":_vm.handleDragEnd,\"start\":function($event){_vm.isDragging = true}}},[_c('transition-group',{staticClass:\"row drag-list\",attrs:{\"name\":\"drag-list\",\"type\":\"transition\"}},[_vm._l((_vm.teamsICanEnter),function(team){return [_c('v-col',{key:team.id,attrs:{\"cols\":\"12\",\"lg\":\"4\",\"md\":\"6\"},on:{\"contextmenu\":function($event){$event.preventDefault();}}},[_c('team-card',{attrs:{\"id\":team.id,\"link\":_vm.teamUrl(team, '/dashboard'),\"name\":team.name,\"nb-registered-characters\":team.nbRegisteredCharacters,\"nb-rosters\":team.nbRosters,\"realm\":(\"(\" + (team.guildRegion.toUpperCase()) + \") \" + (team.guildRealm != null ? team.guildRealm : '')),\"side\":team.guildSide,\"is-loading\":_vm.isLoading,\"button-color\":\"primary\",\"button-text\":\"Go!\"},on:{\"onOpenLeaveTeamClick\":function($event){return _vm.handleOpenLeaveTeamClick(team)}}})],1)]})],2)],1)],1):_c('app-centered-message',{attrs:{\"icon\":\"fa-th large\",\"message\":\"Looks like you have no teams\"}},[_vm._v(\"\\n\\t\\t\\tStart by\\n\\t\\t\\t\"),_c('router-link',{attrs:{\"to\":\"/profile\"}},[_vm._v(\"claiming\")]),_vm._v(\" some characters and create your team.\\n\\t\\t\\t\"),_c('br'),_c('br'),_c('v-btn',{attrs:{\"depressed\":\"\",\"color\":\"primary\"},on:{\"click\":_vm.handleOpenCreateTeamClick}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"fas fa-plus\")]),_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.$t('team.create_team'))+\"\\n\\t\\t\\t\")],1),_c('br'),_c('br'),_vm._v(\"\\n\\t\\t\\tYou can also join a team if you have an invitation link.\\n\\t\\t\")],1)],1),_c('create-team-dialog',{ref:\"createTeamDialog\",attrs:{\"on-after-create\":_vm.handleAfterCreateTeam}}),_c('leave-team-dialog',{ref:\"leaveTeamDialog\",attrs:{\"on-after-leave\":_vm.handleAfterLeaveTeam}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('app-dialog',{ref:\"modal\",attrs:{\"persistent\":true}},[_c('v-card',[_c('v-card-title',{staticClass:\"headline\",attrs:{\"primary-title\":\"\"}},[_vm._v(_vm._s(_vm.$t('team.create_team')))]),(_vm.isLoading && _vm.creatableGuilds == null)?_c('app-loading'):[(_vm.stepChoice == null)?[_c('v-card-text',{staticClass:\"text-center\"},[_c('v-btn',{staticClass:\"ma-2\",attrs:{\"disabled\":!(_vm.creatableGuilds != null && _vm.creatableGuilds.length > 0),\"color\":\"primary\",\"depressed\":\"\"},on:{\"click\":function($event){_vm.stepChoice = 1}}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"fab fa-battle-net\")]),_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$t('team.create_guild'))+\"\\n\\t\\t\\t\\t\\t\")],1),_c('br'),_c('i',[_vm._v(\"* \"+_vm._s(_vm.$t('team.only_gm_and_officers_can_create_a_guild')))]),_c('div',{staticClass:\"ma-2 text-subtitle-1\"},[_vm._v(\"OR\")]),_c('v-btn',{staticClass:\"ma-2\",attrs:{\"color\":\"primary\",\"depressed\":\"\"},on:{\"click\":function($event){_vm.stepChoice = 2}}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"fas fa-plus\")]),_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$t('team.create_standalone_team'))+\"\\n\\t\\t\\t\\t\\t\")],1)],1)]:[(_vm.stepChoice === 1)?[_c('v-card-text',{staticClass:\"py-5\"},[_c('v-list',{attrs:{\"two-line\":\"\"}},[_vm._l((_vm.creatableGuilds),function(guild){return [_c('v-list-item',{key:guild.id},[_c('v-list-item-icon',{staticClass:\"my-4\"},[_c('v-img',{attrs:{\"src\":_vm.imageLinks.iconFaction(guild.side),\"max-width\":\"60\"}})],1),_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(guild.name))]),_c('v-list-item-subtitle',[_vm._v(\"(\"+_vm._s(guild.region.toUpperCase())+\") \"+_vm._s(guild.realm))])],1),_c('v-list-item-action',[_c('v-btn',{attrs:{\"disabled\":_vm.isLoading,\"loading\":_vm.isLoading,\"color\":\"primary\"},on:{\"click\":function($event){return _vm.handleCreateTeamFromGuildClick(guild.region, guild.realm, guild.name)}}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"fas fa-plus\")]),_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$t('team.create'))+\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\")],1)],1)],1)]})],2)],1),_c('v-divider'),_c('v-card-actions',[_c('div',{staticClass:\"flex-grow-1\"}),_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":function($event){_vm.stepChoice = null}}},[_vm._v(_vm._s(_vm.$t('modal.back')))])],1)]:_vm._e(),(_vm.stepChoice === 2)?[_c('v-card-text',{staticClass:\"py-5\"},[_c('v-text-field',{attrs:{\"label\":_vm.$t('team.team_name'),\"autofocus\":\"\",\"dense\":\"\",\"outlined\":\"\"},model:{value:(_vm.createStandaloneTeamForm.name),callback:function ($$v) {_vm.$set(_vm.createStandaloneTeamForm, \"name\", $$v)},expression:\"createStandaloneTeamForm.name\"}}),_c('v-select',{attrs:{\"items\":_vm.regions,\"label\":_vm.$t('team.team_region'),\"block\":\"\",\"dense\":\"\",\"outlined\":\"\"},model:{value:(_vm.createStandaloneTeamForm.region),callback:function ($$v) {_vm.$set(_vm.createStandaloneTeamForm, \"region\", $$v)},expression:\"createStandaloneTeamForm.region\"}}),_c('v-checkbox',{staticClass:\"py-0 my-0\",attrs:{\"label\":_vm.$t('team.automatically_add_claimed_characters'),\"color\":\"primary\"},model:{value:(_vm.createStandaloneTeamForm.mustAddMyCharacters),callback:function ($$v) {_vm.$set(_vm.createStandaloneTeamForm, \"mustAddMyCharacters\", $$v)},expression:\"createStandaloneTeamForm.mustAddMyCharacters\"}})],1),_c('v-divider'),_c('v-card-actions',[_c('div',{staticClass:\"flex-grow-1\"}),_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":function($event){_vm.stepChoice = null}}},[_vm._v(_vm._s(_vm.$t('modal.back')))]),_c('v-btn',{attrs:{\"disabled\":!_vm.canSubmit,\"loading\":_vm.isLoading,\"color\":\"primary\",\"text\":\"\"},on:{\"click\":_vm.handleCreateTeamClick}},[_vm._v(_vm._s(_vm.$t('team.create_the_team'))+\"\\n\\t\\t\\t\\t\\t\\t\")])],1)]:_vm._e()]],(_vm.stepChoice == null)?[_c('v-divider'),_c('v-card-actions',[_c('div',{staticClass:\"flex-grow-1\"}),_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":_vm.close}},[_vm._v(_vm._s(_vm.$t('modal.cancel')))])],1)]:_vm._e()],2)],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\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\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, Prop, Vue } from \"vue-property-decorator\";\nimport { namespace } from \"vuex-class\";\n\n/**\n * Utils\n */\nimport * as imageLinks from \"@/config/image-links\";\nimport classes from \"@/config/wow/classes\";\n\n/**\n * Helpers\n */\n/**\n * Mixins\n */\n/**\n * Components\n */\nimport TeamCard from \"./TeamCard.vue\";\nimport Dialog from \"@/components/_global/Dialog.vue\";\n\n/**\n * API\n */\nimport teamsAPI from \"@/api/teams\";\n\nimport { GetCurrentUserResponse } from \"@/api/users/get-current-user.response\";\nimport { GetCreatableGuildsResponse } from \"@/api/teams/get-creatable-guilds.response\";\n\n/**\n * VueX Modules\n */\nconst profileModule = namespace(\"profile\");\n\ninterface CreateStandaloneTeamForm {\n\tname: string;\n\tregion: string;\n\tmustAddMyCharacters: boolean;\n}\n\n/**\n * Create a team modal.\n */\n@Component({\n\tcomponents: {\n\t\tTeamCard\n\t}\n})\nexport default class CreateTeamDialog extends Vue {\n\t$refs!: {\n\t\tmodal: Dialog;\n\t};\n\n\t/// Injections\n\timageLinks = imageLinks;\n\tclasses = classes;\n\n\t/// Properties\n\t@Prop()\n\tonAfterCreate!: () => Promise;\n\n\t/// Attributes\n\tisLoading = false;\n\tcreatableGuilds: GetCreatableGuildsResponse.CreatableGuild[] | null = null;\n\tstepChoice: number | null = null;\n\n\t// Form\n\tcreateStandaloneTeamForm: CreateStandaloneTeamForm | null = null;\n\n\t/// VueX Modules\n\t@profileModule.State(\"userDetails\")\n\tuserDetails!: GetCurrentUserResponse;\n\n\tget canSubmit() {\n\t\treturn this.createStandaloneTeamForm && this.createStandaloneTeamForm.name;\n\t}\n\n\tget regions() {\n\t\treturn [\n\t\t\t{\n\t\t\t\tvalue: \"eu\",\n\t\t\t\ttext: \"EU - Europe\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tvalue: \"us\",\n\t\t\t\ttext: \"US - Americas & Oceania\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tvalue: \"kr\",\n\t\t\t\ttext: \"KR - Korea\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tvalue: \"tw\",\n\t\t\t\ttext: \"TW - Taiwan\"\n\t\t\t}];\n\t}\n\n\t/// Methods\n\tasync open() {\n\t\tthis.creatableGuilds = null;\n\t\tthis.stepChoice = null;\n\n\t\tthis.createStandaloneTeamForm = {\n\t\t\tname: \"\",\n\t\t\tregion: \"eu\",\n\t\t\tmustAddMyCharacters: false\n\t\t};\n\n\t\tthis.isLoading = true;\n\t\tthis.$refs.modal.open();\n\t\tawait this.refreshCreatableTeams();\n\t\tthis.isLoading = false;\n\t}\n\n\tclose() {\n\t\tthis.$refs.modal.close();\n\t}\n\n\tasync refreshCreatableTeams() {\n\t\tthis.creatableGuilds = await teamsAPI.getCreatableGuilds();\n\t}\n\n\tasync handleCreateTeamFromGuildClick(region: string, realm: string, name: string) {\n\t\tthis.isLoading = true;\n\t\ttry {\n\t\t\tawait teamsAPI.createTeamFromGuild(region, realm, name);\n\t\t\tif (this.onAfterCreate) {\n\t\t\t\tawait this.onAfterCreate();\n\t\t\t}\n\t\t\tthis.close();\n\t\t} catch (err) {\n\t\t\tthis.handleAPIError(err);\n\t\t}\n\t\tthis.isLoading = false;\n\t}\n\n\tasync handleCreateTeamClick() {\n\t\tthis.isLoading = true;\n\t\ttry {\n\t\t\tif (this.createStandaloneTeamForm != null) {\n\t\t\t\tawait teamsAPI.createTeam({\n\t\t\t\t\tname: this.createStandaloneTeamForm.name,\n\t\t\t\t\tregion: this.createStandaloneTeamForm.region,\n\t\t\t\t\tmustAddMyCharacters: this.createStandaloneTeamForm.mustAddMyCharacters\n\t\t\t\t});\n\t\t\t\tif (this.onAfterCreate) {\n\t\t\t\t\tawait this.onAfterCreate();\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.close();\n\t\t} catch (err) {\n\t\t\tthis.handleAPIError(err);\n\t\t}\n\t\tthis.isLoading = 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!./CreateTeamDialog.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!./CreateTeamDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CreateTeamDialog.vue?vue&type=template&id=6e3e69ef&\"\nimport script from \"./CreateTeamDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./CreateTeamDialog.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 { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCheckbox } from 'vuetify/lib/components/VCheckbox';\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 { VListItemAction } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemIcon } from 'vuetify/lib/components/VList';\nimport { VListItemSubtitle } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCardTitle,VCheckbox,VDivider,VIcon,VImg,VList,VListItem,VListItemAction,VListItemContent,VListItemIcon,VListItemSubtitle,VListItemTitle,VSelect,VTextField})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('app-dialog',{ref:\"modal\",attrs:{\"persistent\":true}},[(_vm.team)?_c('v-card',[_c('v-card-title',{staticClass:\"headline\",attrs:{\"primary-title\":\"\"}},[_vm._v(\"Leave '\"+_vm._s(_vm.team.name)+\"'\")]),_c('v-card-text',[_c('p',[_vm._v(\"\\n\\t\\t\\t\\tAre you sure you want to leave\\n\\t\\t\\t\\t\"),_c('strong',[_vm._v(_vm._s(_vm.team.name))]),_vm._v(\"?\\n\\t\\t\\t\\t\"),_c('br'),_vm._v(\"You won't be able to rejoin this team unless you re-sync your characters or you are re-invited.\\n\\t\\t\\t\")])]),_c('v-divider'),_c('v-card-actions',[_c('div',{staticClass:\"flex-grow-1\"}),_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":_vm.close}},[_vm._v(\"Cancel\")]),_c('v-btn',{attrs:{\"loading\":_vm.isLoading,\"color\":\"error\",\"text\":\"\"},on:{\"click\":_vm.handleLeaveTeamClick}},[_vm._v(\"Leave Team\")])],1)],1):_vm._e()],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\nimport { Component, Vue, Prop } from \"vue-property-decorator\";\n\n/**\n * Utils\n */\n\n/**\n * Helpers\n */\n\n/**\n * Mixins\n */\n\n/**\n * Components\n */\nimport Dialog from \"@/components/_global/Dialog.vue\";\n\n/**\n * API\n */\nimport teamsAPI from \"@/api/teams\";\n\n/**\n * Delete character modal.\n */\n@Component\nexport default class LeaveTeamDialog extends Vue {\n\t$refs!: {\n\t\tmodal: Dialog;\n\t};\n\n\t/// Injections\n\n\t/// Properties\n\t@Prop()\n\tonAfterLeave!: () => Promise;\n\n\t/// Attributes\n\tisLoading = false;\n\tteam: any | null = null;\n\n\t/// Methods\n\tasync open(team: any) {\n\t\tthis.$refs.modal.open();\n\t\tthis.team = team;\n\t}\n\n\tclose() {\n\t\tthis.$refs.modal.close();\n\t}\n\n\tasync handleLeaveTeamClick() {\n\t\tthis.isLoading = true;\n\t\ttry {\n\t\t\tawait teamsAPI.leaveTeam(this.team.id);\n\t\t\tthis.close();\n\t\t\tif (this.onAfterLeave) {\n\t\t\t\tawait this.onAfterLeave();\n\t\t\t}\n\t\t}\n\t\tcatch (error) {\n\t\t\tthis.handleAPIError(error);\n\t\t}\n\t\tthis.isLoading = 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!./LeaveTeamDialog.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!./LeaveTeamDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LeaveTeamDialog.vue?vue&type=template&id=1301be8a&\"\nimport script from \"./LeaveTeamDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./LeaveTeamDialog.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 { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCardTitle,VDivider})\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\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 */\nimport { teamUrl } from \"@/utils/url-helpers\";\n\n/**\n * Mixins\n */\n/**\n * Components\n */\nimport draggable from \"vuedraggable\";\nimport TeamCard from \"./components/TeamCard.vue\";\nimport CreateTeamDialog from \"./components/CreateTeamDialog.vue\";\nimport LeaveTeamDialog from \"./components/LeaveTeamDialog.vue\";\n\n/**\n * API\n */\nimport teamsAPI from \"@/api/teams\";\nimport usersAPI from \"@/api/users\";\nimport DataFetcher from \"@/components/_global/DataFetcher.vue\";\nimport { GetTeamsResponse } from \"@/api/teams/get-teams.response\";\n\n\n/**\n * Types\n */\n\n/**\n * VueX Modules\n */\n\n\n@Component({\n\tcomponents: {\n\t\tDataFetcher,\n\t\tdraggable,\n\t\tTeamCard,\n\t\tCreateTeamDialog,\n\t\tLeaveTeamDialog\n\t}\n})\nexport default class TeamsListPage extends Vue {\n\t$refs!: {\n\t\tcreateTeamDialog: CreateTeamDialog;\n\t\tleaveTeamDialog: LeaveTeamDialog;\n\t};\n\t/// Injections\n\tteamUrl = teamUrl;\n\n\t/// Attributes\n\tisLoading = false;\n\tteamsICanEnter: GetTeamsResponse.Team[] | null = null;\n\tisDragging = false;\n\n\n\t// This will check if the screen size is small and if the device supports touch\n\tget isTouchDevice() {\n\t\treturn this.isMobile && this.hasTouch;\n\t}\n\n\t// Check if the screen size is small (mobile mode)\n\tget isMobile() {\n\t\treturn this.$vuetify.breakpoint.smAndDown;\n\t}\n\n\t// Check if the device has touch capabilities\n\tget hasTouch() {\n\t\treturn \"ontouchstart\" in window || navigator.maxTouchPoints > 0;\n\t}\n\n\t/// Methods\n\tasync created() {\n\t}\n\n\tasync fetch() {\n\t\tawait this.fetchGuilds();\n\t}\n\n\tasync fetchGuilds() {\n\t\tthis.teamsICanEnter = await teamsAPI.getTeams();\n\t}\n\n\thandleOpenLeaveTeamClick(team: any) {\n\t\tthis.$refs.leaveTeamDialog.open(team);\n\t}\n\n\tasync handleOpenCreateTeamClick() {\n\t\tawait this.$refs.createTeamDialog.open();\n\t}\n\n\tasync handleAfterCreateTeam() {\n\t\tawait this.fetchGuilds();\n\t}\n\n\tasync handleAfterLeaveTeam() {\n\t\tawait this.fetchGuilds();\n\t\tawait this.$team.fetch(null);\n\t}\n\n\tasync handleDragEnd(evt: any) {\n\t\tconst oldIndex = evt.oldIndex;\n\t\tconst newIndex = evt.newIndex;\n\t\tif (oldIndex == newIndex) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.teamsICanEnter == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst teamToMove = this.teamsICanEnter[newIndex];\n\t\tconst newPosition = newIndex + 1;\n\n\t\tthis.isDragging = false;\n\n\t\tthis.isLoading = true;\n\t\ttry {\n\t\t\tawait usersAPI.changeTeamOrder(teamToMove.id, newPosition);\n\t\t} catch (error) {\n\t\t\tthis.handleAPIError(error);\n\t\t}\n\n\t\tawait this.fetchGuilds();\n\n\n\t\tthis.isLoading = 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!./TeamsListPage.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!./TeamsListPage.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TeamsListPage.vue?vue&type=template&id=2c9d0261&\"\nimport script from \"./TeamsListPage.vue?vue&type=script&lang=ts&\"\nexport * from \"./TeamsListPage.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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCol,VContainer,VIcon,VRow})\n","// Directives\nimport ripple from '../../directives/ripple'\n\n// Types\nimport Vue, { VNode, VNodeData, VNodeDirective } from 'vue'\n\nexport default Vue.extend({\n name: 'rippleable',\n\n directives: { ripple },\n\n props: {\n ripple: {\n type: [Boolean, Object],\n default: true,\n },\n },\n\n methods: {\n genRipple (data: VNodeData = {}): VNode | null {\n if (!this.ripple) return null\n\n data.staticClass = 'v-input--selection-controls__ripple'\n\n data.directives = data.directives || []\n data.directives.push({\n name: 'ripple',\n value: { center: true },\n } as VNodeDirective)\n\n return this.$createElement('div', data)\n },\n },\n})\n","// Components\nimport VInput from '../../components/VInput'\n\n// Mixins\nimport Rippleable from '../rippleable'\nimport Comparable from '../comparable'\n\n// Utilities\nimport mixins from '../../util/mixins'\n\nexport function prevent (e: Event) {\n e.preventDefault()\n}\n\n/* @vue/component */\nexport default mixins(\n VInput,\n Rippleable,\n Comparable\n).extend({\n name: 'selectable',\n\n model: {\n prop: 'inputValue',\n event: 'change',\n },\n\n props: {\n id: String,\n inputValue: null as any,\n falseValue: null as any,\n trueValue: null as any,\n multiple: {\n type: Boolean,\n default: null,\n },\n label: String,\n },\n\n data () {\n return {\n hasColor: this.inputValue,\n lazyValue: this.inputValue,\n }\n },\n\n computed: {\n computedColor (): string | undefined {\n if (!this.isActive) return undefined\n if (this.color) return this.color\n if (this.isDark && !this.appIsDark) return 'white'\n return 'primary'\n },\n isMultiple (): boolean {\n return this.multiple === true || (this.multiple === null && Array.isArray(this.internalValue))\n },\n isActive (): boolean {\n const value = this.value\n const input = this.internalValue\n\n if (this.isMultiple) {\n if (!Array.isArray(input)) return false\n\n return input.some(item => this.valueComparator(item, value))\n }\n\n if (this.trueValue === undefined || this.falseValue === undefined) {\n return value\n ? this.valueComparator(value, input)\n : Boolean(input)\n }\n\n return this.valueComparator(input, this.trueValue)\n },\n isDirty (): boolean {\n return this.isActive\n },\n rippleState (): string | undefined {\n return !this.isDisabled && !this.validationState\n ? undefined\n : this.validationState\n },\n },\n\n watch: {\n inputValue (val) {\n this.lazyValue = val\n this.hasColor = val\n },\n },\n\n methods: {\n genLabel () {\n const label = VInput.options.methods.genLabel.call(this)\n\n if (!label) return label\n\n label!.data!.on = {\n // Label shouldn't cause the input to focus\n click: prevent,\n }\n\n return label\n },\n genInput (type: string, attrs: object) {\n return this.$createElement('input', {\n attrs: Object.assign({\n 'aria-checked': this.isActive.toString(),\n disabled: this.isDisabled,\n id: this.computedId,\n role: type,\n type,\n }, attrs),\n domProps: {\n value: this.value,\n checked: this.isActive,\n },\n on: {\n blur: this.onBlur,\n change: this.onChange,\n focus: this.onFocus,\n keydown: this.onKeydown,\n click: prevent,\n },\n ref: 'input',\n })\n },\n onBlur () {\n this.isFocused = false\n },\n onClick (e: Event) {\n this.onChange()\n this.$emit('click', e)\n },\n onChange () {\n if (!this.isInteractive) return\n\n const value = this.value\n let input = this.internalValue\n\n if (this.isMultiple) {\n if (!Array.isArray(input)) {\n input = []\n }\n\n const length = input.length\n\n input = input.filter((item: any) => !this.valueComparator(item, value))\n\n if (input.length === length) {\n input.push(value)\n }\n } else if (this.trueValue !== undefined && this.falseValue !== undefined) {\n input = this.valueComparator(input, this.trueValue) ? this.falseValue : this.trueValue\n } else if (value) {\n input = this.valueComparator(input, value) ? null : value\n } else {\n input = !input\n }\n\n this.validate(true, input)\n this.internalValue = input\n this.hasColor = input\n },\n onFocus () {\n this.isFocused = true\n },\n /** @abstract */\n onKeydown (e: Event) {},\n },\n})\n"],"sourceRoot":""}