{"version":3,"sources":["webpack:///./src/components/user/ProfilePage.vue?1741","webpack:///./src/components/user/components/ClaimCharacterDialog.vue?f48b","webpack:///./src/components/user/components/ClaimCharacterDialog.vue","webpack:///./src/components/user/components/ClaimCharacterDialog.vue?d66a","webpack:///./src/components/user/components/ClaimCharacterDialog.vue?ad34","webpack:///./src/components/user/components/TransferCharacterDialog.vue?d35f","webpack:///./src/components/user/components/TransferCharacterDialog.vue","webpack:///./src/components/user/components/TransferCharacterDialog.vue?4527","webpack:///./src/components/user/components/TransferCharacterDialog.vue?c385","webpack:///./src/components/user/components/DeleteCharacterDialog.vue?35f1","webpack:///./src/components/user/components/DeleteCharacterDialog.vue","webpack:///./src/components/user/components/DeleteCharacterDialog.vue?4241","webpack:///./src/components/user/components/DeleteCharacterDialog.vue?233f","webpack:///./src/components/user/ProfilePage.vue","webpack:///./src/components/user/ProfilePage.vue?5476","webpack:///./src/components/user/ProfilePage.vue?a7f9","webpack:///./node_modules/core-js/modules/_string-pad.js","webpack:///./src/config/wow/factions.ts","webpack:///./src/utils/date-helpers.ts","webpack:///./src/config/external-links.ts","webpack:///./src/config/wow/armor-types.ts","webpack:///./node_modules/core-js/modules/es7.string.pad-start.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","fetch","characters","length","_v","userDetails","discord","isLoading","on","handleLoginDiscord","_s","$t","imageLinks","discordAvatar","id","avatar","name","handleDisconnectDiscord","handleDragEnd","$event","isDragging","_l","character","key","staticStyle","class","factions","side","thumbnail","thumbnailCharacter","thumbnailClass","classes","color","style","level","specs","mainSpecNum","handleOpenDeleteCharacterClick","lastSyncTime","getTimeSince","isVisible","handleToggleCharacterVisibilityClick","_e","region","toUpperCase","realm","guildRank","guildName","handleSynchronizeCharactersClick","handleOpenClaimCharacterClick","ref","handleAfterClaimCharacter","handleAfterDeleteCharacter","staticRenderFns","playable_class","faction","handleClaimCharacterClick","close","$refs","modal","open","refreshCharacters","users","getCharacterToClaim","claimCharacter","onAfterClaim","handleAPIError","component","VBtn","VCard","VCardActions","VCardText","VCardTitle","VDivider","VIcon","VList","VListItem","VListItemAction","VListItemAvatar","VListItemContent","VListItemSubtitle","VListItemTitle","characterToTransfer","index","getCharactersToTransferTo","transferCharacter","onAfterTransfer","VImg","handleDeleteCharacterClick","deleteCharacter","onAfterDelete","profileModule","getCharacters","find","x","isSynchronizing","startRegularFetching","stopRegularFetching","that","timeoutHandle","setTimeout","clearTimeout","fetchCharacters","syncCharacters","claimCharacterDialog","deleteCharacterDialog","characterID","toggleCharacterVisibility","$router","window","confirm","toString","evt","oldIndex","newIndex","characterToMove","newPosition","changeCharacterOrder","Action","State","components","DataFetcher","ClaimCharacterDialog","TransferCharacterDialog","DeleteCharacterDialog","draggable","VAvatar","VChip","VCol","VContainer","VRow","toLength","repeat","defined","module","exports","maxLength","fillString","left","S","String","stringLength","fillStr","undefined","intMaxLength","fillLen","stringFiller","call","Math","ceil","slice","code","createDateString","year","month","day","padStart","getLocaleString","date","locale","toLocaleString","getLocaleStringFromDateString","dateString","Date","parse","getLocaleStringFromDateStringWithOptions","options","getDateTimeString","getTime","getTimezoneOffset","toISOString","getElegantDateString","toLocaleDateString","weekday","getElegantDateStringFromString","dateAsString","getMonthName","monthNumber","getDateStringFromDateTimeAsString","dateTimeAsString","split","getDateString","smartDisplayDays","numberOfDays","years","floor","months","days","result","push","join","differenceInMinutesBetweenDates","date1","date2","round","differenceInDaysBetweenDates","UTC","getFullYear","getMonth","getDate","getMaxDate","dates","reduce","a","b","referenceDate","onlyMinutes","intervalType","seconds","interval","realmFormat","toLowerCase","replace","armoryCharacter","characterName","realmName","raiderIOCharacter","warcraftLogsCharacter","type","$export","$pad","userAgent","WEBKIT_BUG","test","P","F","arguments"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,e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AAvE,YAAqFD,K,oCCXvE,QAAC,CACfI,KAAM,QACN3L,QAAS,CAAC,EAAG,EAAG,IACd,CACF2L,KAAM,UACN3L,QAAS,CAAC,EAAG,GAAI,GAAI,KACnB,CACF2L,KAAM,OACN3L,QAAS,CAAC,EAAG,EAAG,KACd,CACF2L,KAAM,QACN3L,QAAS,CAAC,EAAG,EAAG,M,kCCTjB,IAAI4L,EAAU,EAAQ,QAClBC,EAAO,EAAQ,QACfC,EAAY,EAAQ,QAGpBC,EAAa,mDAAmDC,KAAKF,GAEzEF,EAAQA,EAAQK,EAAIL,EAAQM,EAAIH,EAAY,SAAU,CACpDlE,SAAU,SAAkBpB,GAC1B,OAAOoF,EAAKlO,KAAM8I,EAAW0F,UAAU/N,OAAS,EAAI+N,UAAU,QAAKnF,GAAW","file":"dist/js/chunk-1a9445aa.91819119.js","sourcesContent":["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.characters.length > 0)?_c('v-container',{attrs:{\"fluid\":\"\",\"ma-0\":\"\",\"pa-0\":\"\"}},[_c('h2',[_vm._v(\"Discord\")]),(_vm.userDetails.discord == null)?_c('v-row',[_c('v-col',[_c('v-btn',{staticClass:\"mb-3\",attrs:{\"disabled\":_vm.isLoading,\"loading\":_vm.isLoading,\"color\":\"primary\",\"large\":\"\"},on:{\"click\":_vm.handleLoginDiscord}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"fab fa-discord\")]),_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$t('user.connect_to_discord'))+\"\\n\\t\\t\\t\\t\\t\")],1)],1)],1):_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"lg\":\"4\",\"md\":\"6\"}},[_c('v-card',[_c('v-container',{staticClass:\"ma-1\",attrs:{\"fluid\":\"\"}},[_c('v-row',[_c('v-col',[_c('div',[_c('v-avatar',{staticClass:\"mr-2\",attrs:{\"size\":\"46\"}},[_c('v-img',{attrs:{\"src\":_vm.imageLinks.discordAvatar(_vm.userDetails.discord.id, _vm.userDetails.discord.avatar)}})],1),_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.userDetails.discord.name)+\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\")],1)]),_c('v-col',{staticClass:\"d-flex align-content-center flex-wrap\",attrs:{\"cols\":\"auto\"}},[_c('v-btn',{attrs:{\"disabled\":_vm.isLoading,\"loading\":_vm.isLoading,\"color\":\"error\",\"depressed\":\"\",\"icon\":\"\"},on:{\"click\":_vm.handleDisconnectDiscord}},[_c('v-icon',[_vm._v(\"cancel\")])],1)],1)],1)],1)],1)],1)],1),_c('h2',{staticClass:\"mt-5\"},[_vm._v(\"Characters\")]),_c('draggable',{staticClass:\"mt-1\",attrs:{\"disabled\":_vm.isLoading,\"list\":_vm.characters,\"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.characters),function(character){return [_c('v-col',{key:character.id,attrs:{\"cols\":\"12\",\"lg\":\"4\",\"md\":\"6\"}},[_c('v-card',{attrs:{\"disabled\":_vm.isLoading}},[_c('v-list-item',{attrs:{\"two-line\":\"\"}},[_c('v-list-item-avatar',{staticClass:\"drag-handle\",staticStyle:{\"overflow\":\"visible\"},attrs:{\"color\":\"grey\",\"size\":\"80\",\"tile\":\"\"}},[_c('v-img',{class:['square-border', (\"faction--\" + (_vm.factions[character.side].code))],attrs:{\"src\":character.thumbnail != null ? _vm.imageLinks.thumbnailCharacter(character.thumbnail) : _vm.imageLinks.thumbnailClass(character.class)}})],1),_c('v-list-item-content',{staticClass:\"align-self-start\"},[_c('v-list-item-title',{class:{'headline':true, 'mb-1':true, 'white-colored': _vm.classes[character.class].color === '#FFFFFF'},style:({'color': _vm.classes[character.class].color})},[_c('router-link',{staticClass:\"app character-name--title\",attrs:{\"to\":(\"/characters/\" + (character.id)),\"exact\":\"\"}},[_vm._v(_vm._s(character.name)+\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\")])],1),_c('v-list-item-subtitle',[_c('strong',[_vm._v(_vm._s(character.level))]),_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(' ' + ((_vm.classes[character.class].specs[character.mainSpecNum - 1] ? _vm.classes[character.class].specs[character.mainSpecNum - 1].name : '') + ' ') + _vm.classes[character.class].name)+\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\")])],1),_c('v-btn',{staticClass:\"align-self-start mt-3\",attrs:{\"disabled\":_vm.isLoading,\"depressed\":\"\",\"fab\":\"\",\"small\":\"\"},on:{\"click\":function($event){return _vm.handleOpenDeleteCharacterClick(character)}}},[_c('v-icon',{attrs:{\"color\":\"grey\",\"small\":\"\"}},[_vm._v(\"fa fa-trash\")])],1)],1),_c('v-divider'),_c('v-card-text',{staticClass:\"py-1 px-3\"},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',[_c('v-btn',{attrs:{\"disabled\":\"\",\"small\":\"\",\"text\":\"\"}},[(character.isSynchronizing)?[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$t('dashboard.synchronizing_'))+\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\")]:[_c('v-icon',{attrs:{\"left\":\"\",\"small\":\"\"}},[_vm._v(\"fas fa-sync\")]),_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$t('dashboard.synchronized_'))+\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\"),_c('strong',[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(character.lastSyncTime ? _vm.getTimeSince(character.lastSyncTime) + ' ago' : _vm.$t('global.never'))+\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\")])]],2)],1),_c('v-col',{attrs:{\"cols\":\"auto\"}},[_c('v-btn',{attrs:{\"color\":character.isVisible ? 'green' : 'red',\"disabled\":_vm.isLoading,\"icon\":\"\",\"small\":\"\",\"text\":\"\"},on:{\"click\":function($event){return _vm.handleToggleCharacterVisibilityClick(character.id)}}},[(character.isVisible)?_c('v-icon',{attrs:{\"small\":\"\"}},[_vm._v(\"visibility\")]):_vm._e(),(!character.isVisible)?_c('v-icon',{attrs:{\"small\":\"\"}},[_vm._v(\"visibility_off\")]):_vm._e()],1)],1)],1)],1),_c('v-divider'),_c('v-card-actions',[_c('v-chip',{attrs:{\"color\":\"blue\",\"label\":\"\",\"outlined\":\"\"}},[_vm._v(\"(\"+_vm._s(character.region.toUpperCase())+\")\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(character.realm)+\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\")]),_c('div',{staticClass:\"flex-grow-1\"}),(character.guildRank != null)?_c('v-chip',{attrs:{\"color\":\"blue\",\"label\":\"\",\"outlined\":\"\"}},[(character.guildRank === 0)?[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tGuild Master\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\")]:[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(('Rank ' + character.guildRank))+\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\")],_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t• \"+_vm._s(character.guildName)+\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\")],2):_vm._e()],1)],1)],1)]})],2)],1),_c('v-row',[_c('v-col',[_c('div',{staticClass:\"d-flex flex-wrap mt-3 justify-space-between\"},[_c('v-btn',{staticClass:\"flex-grow-1 flex-sm-grow-0 mb-3\",attrs:{\"loading\":_vm.isLoading,\"color\":\"teal\",\"depressed\":\"\",\"dark\":\"\"},on:{\"click\":_vm.handleSynchronizeCharactersClick}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"fas fa-sync\")]),_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$t('user.synchronize_all_my_characters'))+\"\\n\\t\\t\\t\\t\\t\\t\")],1),_c('v-btn',{staticClass:\"flex-grow-1 flex-sm-grow-0 primary\",attrs:{\"depressed\":\"\"},on:{\"click\":_vm.handleOpenClaimCharacterClick}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"fas fa-plus\")]),_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$t('user.claim_a_character'))+\"\\n\\n\\t\\t\\t\\t\\t\\t\")],1)],1)])],1)],1):_c('app-centered-message',{attrs:{\"message\":_vm.$t('user.not_any_characters'),\"icon\":\"fas fa-user\"}},[_c('v-btn',{attrs:{\"color\":\"primary\",\"text\":\"\"},on:{\"click\":_vm.handleOpenClaimCharacterClick}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"fas fa-plus\")]),_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.$t('user.claim_character'))+\"\\n\\t\\t\\t\")],1)],1)],1),_c('claim-character-dialog',{ref:\"claimCharacterDialog\",attrs:{\"on-after-claim\":_vm.handleAfterClaimCharacter}}),_c('delete-character-dialog',{ref:\"deleteCharacterDialog\",attrs:{\"on-after-delete\":_vm.handleAfterDeleteCharacter}})],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(\"Claim a character\")]),(_vm.isLoading && _vm.characters == null)?_c('app-loading'):(!_vm.isLoading && _vm.characters == null)?_c('v-card-text',[_c('p',[_vm._v(\"It seems you haven't allowed Warcraft Roster to read your World of Warcraft profile :(\")]),_c('p',[_vm._v(\"\\n\\t\\t\\t\\tPlease follow\\n\\t\\t\\t\\t\"),_c('a',{attrs:{\"href\":\"https://account.blizzard.com/connections/#authorized-applications\",\"target\":\"_blank\"}},[_vm._v(\"this link\")]),_vm._v(\" and remove WarcraftRoster from the authorized applications.\\n\\t\\t\\t\\t\"),_c('br'),_vm._v(\"Then, log in again to Warcraft Roster and make sure you check the \\\"Allow\\\" checkbox.\\n\\t\\t\\t\")])]):(_vm.characters != null && _vm.characters.length === 0)?_c('v-card-text',[_vm._v(_vm._s(_vm.$t('user.no_more_characters_to_claim')))]):_c('v-card-text',[_c('v-list',{attrs:{\"three-line\":\"\"}},[_vm._l((_vm.characters),function(character){return [_c('v-list-item',{key:character.id},[_c('v-list-item-avatar',[_c('img',{attrs:{\"src\":_vm.imageLinks.thumbnailClass(character.playable_class.id)}})]),_c('v-list-item-content',[_c('v-list-item-title',{class:['font-weight-bold', {'white-colored': _vm.classes[character.playable_class.id].color === '#FFFFFF'}],style:({'color': _vm.classes[character.playable_class.id].color })},[_vm._v(_vm._s(character.name))]),_c('v-list-item-subtitle',{staticClass:\"text--primary\"},[_vm._v(_vm._s(character.level + ' ' + _vm.classes[character.playable_class.id].name))]),_c('v-list-item-subtitle',[_vm._v(_vm._s(character.faction.name)+\" - (\"+_vm._s(character.region.toUpperCase())+\") \"+_vm._s(character.realm.name))])],1),_c('v-list-item-action',[_c('v-btn',{attrs:{\"loading\":_vm.isLoading,\"disabled\":_vm.isLoading,\"fab\":\"\",\"text\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.handleClaimCharacterClick(character)}}},[_c('v-icon',[_vm._v(\"fas fa-plus\")])],1)],1)],1)]})],2)],1),_c('v-divider'),_c('v-card-actions',[_c('div',{staticClass:\"flex-grow-1\"}),_c('v-btn',{attrs:{\"color\":\"primary\",\"text\":\"\"},on:{\"click\":_vm.close}},[_vm._v(_vm._s(_vm.$t('modal.done')))])],1)],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\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 */\nimport * as imageLinks from \"@/config/image-links\";\nimport classes from \"@/config/wow/classes\";\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 usersAPI from \"@/api/users\";\n\n/**\n * Claim characters modal.\n */\n@Component\nexport default class ClaimCharacterDialog 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\tonAfterClaim!: () => Promise;\n\n\t/// Attributes\n\tisLoading = false;\n\tcharacters: any[] | null = null;\n\n\t/// Methods\n\tasync open() {\n\t\tthis.characters = null;\n\t\tthis.isLoading = true;\n\t\tthis.$refs.modal.open();\n\t\tawait this.refreshCharacters();\n\t\tthis.isLoading = false;\n\t}\n\n\tclose() {\n\t\tthis.$refs.modal.close();\n\t}\n\n\tasync refreshCharacters() {\n\t\tconst characters: any[] | null = await usersAPI.getCharacterToClaim();\n\t\tif (characters) {\n\t\t\tthis.characters = characters;\n\t\t}\n\t}\n\n\tasync handleClaimCharacterClick(character: any) {\n\t\tthis.isLoading = true;\n\t\ttry {\n\t\t\tawait usersAPI.claimCharacter(character.region, character.realm.name, character.name);\n\t\t\tawait this.refreshCharacters();\n\t\t\tif (this.onAfterClaim) {\n\t\t\t\tawait this.onAfterClaim();\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!./ClaimCharacterDialog.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!./ClaimCharacterDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ClaimCharacterDialog.vue?vue&type=template&id=c195871c&\"\nimport script from \"./ClaimCharacterDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./ClaimCharacterDialog.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';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemAction } from 'vuetify/lib/components/VList';\nimport { VListItemAvatar } 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';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCardTitle,VDivider,VIcon,VList,VListItem,VListItemAction,VListItemAvatar,VListItemContent,VListItemSubtitle,VListItemTitle})\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}},[_c('v-card',[(_vm.characterToTransfer)?_c('v-card-title',{staticClass:\"headline\",attrs:{\"primary-title\":\"\"}},[_vm._v(\"Transfer '\"+_vm._s(_vm.characterToTransfer.name)+\"'\")]):_vm._e(),(_vm.isLoading && _vm.characters == null)?_c('app-loading'):(_vm.characters != null && _vm.characters.length == 0)?_c('v-card-text',[_vm._v(_vm._s(_vm.$t('user.no_more_characters_to_transfer_to')))]):_c('v-card-text',[_vm._v(\"\\n\\t\\t\\tChoose the new character:\\n\\t\\t\\t\"),_c('v-list',{attrs:{\"three-line\":\"\"}},[_vm._l((_vm.characters),function(character,index){return [_c('v-list-item',{key:index},[_c('v-list-item-avatar',{attrs:{\"size\":\"60\"}},[_c('v-img',{attrs:{\"src\":_vm.imageLinks.thumbnailClass(character.playable_class.id)}})],1),_c('v-list-item-content',[_c('v-list-item-title',{class:['font-weight-bold', {'white-colored': _vm.classes[character.playable_class.id].color == '#FFFFFF'}],style:({'color': _vm.classes[character.playable_class.id].color })},[_vm._v(_vm._s(character.name))]),_c('v-list-item-subtitle',{staticClass:\"text--primary\"},[_vm._v(_vm._s(character.level + ' ' + _vm.classes[character.playable_class.id].name))]),_c('v-list-item-subtitle',[_vm._v(_vm._s(character.faction.name)+\" - \"+_vm._s(character.realm.name))])],1),_c('v-list-item-action',[_c('v-btn',{attrs:{\"loading\":_vm.isLoading,\"disabled\":_vm.isLoading,\"fab\":\"\",\"text\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.handleClaimCharacterClick(character)}}},[_c('v-icon',[_vm._v(\"fas fa-check\")])],1)],1)],1)]})],2)],1),_c('v-divider'),_c('v-card-actions',[_c('div',{staticClass:\"flex-grow-1\"}),_c('v-btn',{attrs:{\"color\":\"primary\",\"text\":\"\"},on:{\"click\":_vm.close}},[_vm._v(_vm._s(_vm.$t('modal.done')))])],1)],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\n\n\n\n\n\n\n\nimport { Component, Vue, Prop } from \"vue-property-decorator\";\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/**\n * Mixins\n */\n\n/**\n * Components\n */\nimport Dialog from \"@/components/_global/Dialog.vue\";\n\n/**\n * API\n */\nimport usersAPI from \"@/api/users\";\n\n/**\n * Transfer character modal.\n */\n@Component\nexport default class TransferCharacterDialog 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\tonAfterTransfer!: () => Promise;\n\n\t/// Attributes\n\tisLoading = false;\n\tcharacterToTransfer: any | null = null;\n\tcharacters: any[] | null = null;\n\n\t/// Methods\n\tasync open(character: any) {\n\t\tthis.characterToTransfer = character;\n\t\tthis.characters = null;\n\t\tthis.isLoading = true;\n\t\tthis.$refs.modal.open();\n\t\tawait this.refreshCharacters();\n\t\tthis.isLoading = false;\n\t}\n\n\tclose() {\n\t\tthis.$refs.modal.close();\n\t}\n\n\tasync refreshCharacters() {\n\t\tconst characters = await usersAPI.getCharactersToTransferTo(this.characterToTransfer.id);\n\t\tif (characters) {\n\t\t\tthis.characters = characters;\n\t\t}\n\t}\n\n\tasync handleClaimCharacterClick(character: any) {\n\t\tthis.isLoading = true;\n\t\ttry {\n\t\t\tawait usersAPI.transferCharacter(this.characterToTransfer.id, character.name, character.realm.name);\n\t\t\tawait this.refreshCharacters();\n\t\t\tif (this.onAfterTransfer) {\n\t\t\t\tawait this.onAfterTransfer();\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!./TransferCharacterDialog.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!./TransferCharacterDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TransferCharacterDialog.vue?vue&type=template&id=3640b850&\"\nimport script from \"./TransferCharacterDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./TransferCharacterDialog.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';\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 { VListItemAvatar } 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';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCardTitle,VDivider,VIcon,VImg,VList,VListItem,VListItemAction,VListItemAvatar,VListItemContent,VListItemSubtitle,VListItemTitle})\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}},[_c('v-card',[_c('v-card-title',{staticClass:\"headline\",attrs:{\"primary-title\":\"\"}},[_vm._v(\"Delete character\")]),_c('v-card-text',[_c('p',[_vm._v(\"Are you sure you want to delete this character?\")])]),_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\":\"primary\",\"text\":\"\"},on:{\"click\":_vm.handleDeleteCharacterClick}},[_vm._v(\"Delete\")])],1)],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\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 usersAPI from \"@/api/users\";\n\n/**\n * Delete character modal.\n */\n@Component\nexport default class DeleteCharacterDialog extends Vue {\n\t$refs!: {\n\t\tmodal: Dialog;\n\t};\n\n\t/// Injections\n\n\t/// Properties\n\t@Prop()\n\tonAfterDelete!: () => Promise;\n\n\t/// Attributes\n\tisLoading = false;\n\tcharacter: any | null = null;\n\n\t/// Methods\n\tasync open(character: any) {\n\t\tthis.$refs.modal.open();\n\t\tthis.character = character;\n\t}\n\n\tclose() {\n\t\tthis.$refs.modal.close();\n\t}\n\n\tasync handleDeleteCharacterClick() {\n\t\tthis.isLoading = true;\n\t\ttry {\n\t\t\tawait usersAPI.deleteCharacter(this.character.id);\n\t\t\tthis.close();\n\t\t\tif (this.onAfterDelete) {\n\t\t\t\tawait this.onAfterDelete();\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!./DeleteCharacterDialog.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!./DeleteCharacterDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DeleteCharacterDialog.vue?vue&type=template&id=86769c10&\"\nimport script from \"./DeleteCharacterDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./DeleteCharacterDialog.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\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\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 draggable from \"vuedraggable\";\nimport { Component, Vue } from \"vue-property-decorator\";\nimport { namespace } from \"vuex-class\";\n\n/**\n * Utils\n */\nimport classes from \"@/config/wow/classes\";\nimport factions from \"@/config/wow/factions\";\nimport * as externalLinks from \"@/config/external-links\";\nimport * as imageLinks from \"@/config/image-links\";\nimport armorTypes from \"@/config/wow/armor-types\";\n\nimport { getTimeSince } from \"@/utils/date-helpers\";\n\nimport { userDiscordLogin, discordDisconnect } from \"@/utils/auth\";\n\n/**\n * Components\n */\nimport ClaimCharacterDialog from \"./components/ClaimCharacterDialog.vue\";\nimport TransferCharacterDialog from \"./components/TransferCharacterDialog.vue\";\nimport DeleteCharacterDialog from \"./components/DeleteCharacterDialog.vue\";\n\n/**\n * API\n */\nimport usersAPI from \"@/api/users\";\nimport { GetCurrentUserResponse } from \"@/api/users/get-current-user.response\";\nimport DataFetcher from \"@/components/_global/DataFetcher.vue\";\n\n/**\n * Types\n */\n\n/**\n * VueX Modules\n */\nconst profileModule = namespace(\"profile\");\n\ninterface DraggableEvent {\n\toldIndex: number;\n\tnewIndex: number;\n}\n\n/**\n * Profile page.\n */\n@Component({\n\tcomponents: {\n\t\tDataFetcher,\n\t\tClaimCharacterDialog,\n\t\tTransferCharacterDialog,\n\t\tDeleteCharacterDialog,\n\t\tdraggable\n\t}\n})\nexport default class ProfilePage extends Vue {\n\t$refs!: {\n\t\tclaimCharacterDialog: ClaimCharacterDialog;\n\t\ttransferCharacterDialog: TransferCharacterDialog;\n\t\tdeleteCharacterDialog: DeleteCharacterDialog;\n\t};\n\n\t/// Injections\n\tclasses = classes;\n\tfactions = factions;\n\texternalLinks = externalLinks;\n\timageLinks = imageLinks;\n\tarmorTypes = armorTypes;\n\n\tgetTimeSince = getTimeSince;\n\n\t/// Properties\n\n\t/// Attributes\n\tisLoading = false;\n\tisDragging = false;\n\n\t/// VueX Modules\n\t@profileModule.Action(\"fetchCharacters\")\n\tfetchCharacters: any;\n\n\t@profileModule.State(\"userDetails\")\n\tuserDetails!: GetCurrentUserResponse;\n\n\ttimeoutHandle: ReturnType | null = null;\n\n\tget characters(): GetCurrentUserResponse.Character[] {\n\t\treturn this.userDetails.characters;\n\t}\n\n\t/// Methods\n\tasync created() {\n\t}\n\n\tasync fetch() {\n\t\tawait this.getCharacters();\n\t\tif (this.characters.find(x => x.isSynchronizing)) {\n\t\t\tthis.startRegularFetching();\n\t\t}\n\t}\n\n\tbeforeDestroy() {\n\t\tthis.stopRegularFetching();\n\t}\n\n\tstartRegularFetching() {\n\t\tconst that = this;\n\t\tthis.stopRegularFetching();\n\t\tthis.timeoutHandle = setTimeout(async function () {\n\t\t\tawait that.getCharacters();\n\t\t\tthat.startRegularFetching();\n\t\t}, 4000);\n\t}\n\n\tstopRegularFetching() {\n\t\tif (this.timeoutHandle) {\n\t\t\tclearTimeout(this.timeoutHandle);\n\t\t}\n\t}\n\n\tasync getCharacters() {\n\t\tawait this.fetchCharacters();\n\t}\n\n\tasync handleSynchronizeCharactersClick() {\n\t\tthis.isLoading = true;\n\t\ttry {\n\t\t\tawait usersAPI.syncCharacters();\n\t\t\tawait this.getCharacters();\n\t\t\tif (this.characters.find(x => x.isSynchronizing)) {\n\t\t\t\tthis.startRegularFetching();\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tthis.handleAPIError(error);\n\t\t}\n\t\tthis.isLoading = false;\n\t}\n\n\tasync handleOpenClaimCharacterClick() {\n\t\tawait this.$refs.claimCharacterDialog.open();\n\t}\n\n\t// async handleOpenTransferCharacterClick(character: any) {\n\t// \t//await this.$refs.transferCharacterDialog.open(character);\n\t// }\n\n\tasync handleOpenDeleteCharacterClick(character: any) {\n\t\tawait this.$refs.deleteCharacterDialog.open(character);\n\t}\n\n\tasync handleAfterClaimCharacter() {\n\t\tawait this.getCharacters();\n\t}\n\n\tasync handleAfterTransferCharacter() {\n\t\t//await this.getCharacters();\n\t}\n\n\tasync handleAfterDeleteCharacter() {\n\t\tawait this.getCharacters();\n\t}\n\n\tasync handleToggleCharacterVisibilityClick(characterID: any) {\n\t\tthis.isLoading = true;\n\t\ttry {\n\t\t\tawait usersAPI.toggleCharacterVisibility(characterID);\n\t\t\tawait this.getCharacters();\n\t\t} catch (error) {\n\t\t\tthis.handleAPIError(error);\n\t\t}\n\t\tthis.isLoading = false;\n\t}\n\n\tasync handleLoginDiscord() {\n\t\tthis.isLoading = true;\n\t\ttry {\n\t\t\tawait userDiscordLogin(this.$router);\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 handleDisconnectDiscord() {\n\t\tif (!window.confirm(this.$t(\"user.alert_remove_connection\").toString())) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.isLoading = true;\n\t\ttry {\n\t\t\tawait discordDisconnect();\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 handleDragEnd(evt: DraggableEvent) {\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\tconst characterToMove = this.characters[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.changeCharacterOrder(characterToMove.id, newPosition);\n\t\t} catch (error) {\n\t\t\tthis.handleAPIError(error);\n\t\t}\n\n\t\ttry {\n\t\t\tawait this.getCharacters();\n\t\t} catch (error) {\n\t\t\tthis.handleAPIError(error);\n\t\t}\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!./ProfilePage.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!./ProfilePage.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ProfilePage.vue?vue&type=template&id=973dd736&\"\nimport script from \"./ProfilePage.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProfilePage.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 { VAvatar } from 'vuetify/lib/components/VAvatar';\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 { VChip } from 'vuetify/lib/components/VChip';\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 { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemAvatar } 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 { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VAvatar,VBtn,VCard,VCardActions,VCardText,VChip,VCol,VContainer,VDivider,VIcon,VImg,VListItem,VListItemAvatar,VListItemContent,VListItemSubtitle,VListItemTitle,VRow})\n","// https://github.com/tc39/proposal-string-pad-start-end\nvar toLength = require('./_to-length');\nvar repeat = require('./_string-repeat');\nvar defined = require('./_defined');\n\nmodule.exports = function (that, maxLength, fillString, left) {\n var S = String(defined(that));\n var stringLength = S.length;\n var fillStr = fillString === undefined ? ' ' : String(fillString);\n var intMaxLength = toLength(maxLength);\n if (intMaxLength <= stringLength || fillStr == '') return S;\n var fillLen = intMaxLength - stringLength;\n var stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));\n if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);\n return left ? stringFiller + S : S + stringFiller;\n};\n","export default [{\n\tcode: \"alliance\",\n\tname: \"Alliance\"\n}, {\n\tcode: \"horde\",\n\tname: \"Horde\"\n}];","/**\n * Retourne un *string* de la forme \"YYYY-MM-DD\" à partir de Year, Month, Day.\n * @param year\n * @param month\n * @param day\n */\nexport const createDateString = (year: number, month: number, day: number) => {\n\treturn `${year}-${month.toString().padStart(2, \"0\")}-${day.toString().padStart(2, \"0\")}`;\n};\n\n/**\n * Retourne un *string* de la forme \"DD/MM/YYYY\" à partir d'une date.\n * @param date\n * @param locale\n */\nexport const getLocaleDateString = (date: Date, locale = \"en-US\") => {\n\treturn date.toLocaleDateString(locale);\n};\n\n/**\n * Retourne un *string* de la forme \"DD/MM/YYYY à HH:mm:ss\" à partir d'une date.\n * @param date\n * @param locale\n */\nexport const getLocaleString = (date: Date, locale = \"en-US\") => {\n\treturn date.toLocaleString(locale);\n};\n\n/**\n * Retourne un *string* de la forme \"DD/MM/YYYY à HH:mm:ss\" à partir d'une date string.\n * @param dateString\n * @param locale\n */\nexport const getLocaleStringFromDateString = (dateString: string, locale = \"en-GB\") => {\n\treturn getLocaleString(new Date(Date.parse(dateString)), locale);\n};\n\n/**\n * Retourne un *string* de la forme \"Aug 22nd 2020 hh:mm:ss UTC\" à partir d'une date string.\n */\nexport const getLocaleStringFromDateStringWithOptions = (dateString: string, options?: Intl.DateTimeFormatOptions, locale = \"en-GB\") => {\n\treturn (new Date(Date.parse(dateString))).toLocaleString(locale, options);\n};\n\n\n/**\n * Retourne un *string* de la forme \"2019-03-20T11:24:06.065Z\".\n * @param date\n */\nexport const getDateTimeString = (date: Date) => {\n\treturn new Date(date.getTime() - (date.getTimezoneOffset() * 60000)).toISOString();\n};\n\n\n/**\n * Retourne un *string* de la forme \"lundi 1 janvier 2000\" à partir d'une date.\n * @param date\n * @param locale\n */\nexport const getElegantDateString = (date: Date, locale = \"en-US\") => {\n\treturn date.toLocaleDateString(locale, {\n\t\tweekday: \"long\",\n\t\tyear: \"numeric\",\n\t\tmonth: \"long\",\n\t\tday: \"numeric\"\n\t});\n};\n\n/**\n * Retourne un *string* de la forme \"lundi 1 janvier 2000\" à partir d'une string de la forme yyyy-MM-dd.\n */\nexport const getElegantDateStringFromString = (dateAsString: string, locale = \"en-US\") => {\n\treturn (new Date(`${dateAsString}T00:00:00`)).toLocaleDateString(locale, {\n\t\tweekday: \"long\",\n\t\tyear: \"numeric\",\n\t\tmonth: \"long\",\n\t\tday: \"numeric\"\n\t});\n};\n\n/**\n * Retourne le mois traduit dans la {locale} à partir du numéro du mois.\n * @param monthNumber\n * @param locale\n */\nexport const getMonthName = (monthNumber: number, locale = \"en-US\") => {\n\treturn (new Date(`2000-${monthNumber.toString().padStart(2, \"0\")}-01T00:00:00`)).toLocaleDateString(locale, {\n\t\tmonth: \"long\"\n\t});\n};\n\n\n/**\n * Retourne un *string* de la forme \"janvier\" à partir d'une date.\n * @param date\n * @param locale\n */\nexport const getMonthStringFromDate = (date: Date, locale = \"en-US\") => {\n\treturn date.toLocaleDateString(locale, {\n\t\tmonth: \"long\"\n\t});\n};\n\n/**\n * Retourne le timestamp en nombre de jours (arrondi en floor).\n */\nexport const getTimestampInDays = (timestampInMS: number) => {\n\treturn Math.floor((((timestampInMS / 1000) / 60) / 60) / 24);\n};\n\n/**\n * Retourne un *string* de la forme \"2019-03-20\".\n */\nexport const getDateStringFromDateTimeAsString = (dateTimeAsString: string) => {\n\treturn dateTimeAsString.split(\"T\")[0];\n};\n\n/**\n * Retourne un *string* de la forme \"2019-03-20\".\n * @param date\n */\nexport const getDateString = (date: Date) => {\n\treturn getDateStringFromDateTimeAsString(getDateTimeString(date));\n};\n/**\n * Retourne un *string* de la forme \"2019-03\".\n * @param date\n */\nexport const getYearMonthString = (date: Date) => {\n\tconst dateStringSplit = getDateString(date).split(\"-\");\n\treturn `${dateStringSplit[0]}-${dateStringSplit[1]}`;\n};\n/**\n * Retourne un *string* de la forme \"11:24:06.065Z\".\n * @param date\n */\nexport const getTimeString = (date: Date) => {\n\treturn getDateTimeString(date).split(\"T\")[1];\n};\n/**\n * Retourne un *string* de la forme \"11:24\".\n * @param date\n */\nexport const getShortTimeString = (date: Date) => {\n\tconst timeSplit = getTimeString(date).split(\":\");\n\treturn `${timeSplit[0]}:${timeSplit[1]}`;\n};\n\n/**\n * Ajout un nombre de minutes à un time de la forme \"11:24\".\n * @param time\n * @param nbMinutesToAdd\n */\nexport const addMinutes = (time: string, nbMinutesToAdd: number) => {\n\tconst timeSplit = time.split(\":\");\n\tconst hour = parseInt(timeSplit[0], 10);\n\tconst minute = parseInt(timeSplit[1], 10);\n\n\tconst rawMinuteAfterAddition = minute + nbMinutesToAdd;\n\treturn `${(hour + Math.floor(rawMinuteAfterAddition / 60)).toString().padStart(2, \"0\")}:${(rawMinuteAfterAddition % 60).toString().padStart(2, \"0\")}`;\n};\n\n/**\n * Retourne un affichage *string* intelligent d'une durée en heures ou en minutes.\n * @param minutes\n */\nexport const smartDisplayMinutes = (minutes: number) => {\n\tif (minutes == null) {\n\t\treturn \"-\";\n\t}\n\tif (minutes >= 60) {\n\t\tconst remainingSeconds = minutes % 60;\n\t\treturn `${Math.floor(minutes / 60)}h` + (remainingSeconds > 0 ? remainingSeconds.toString().padStart(2, \"0\") : \"\");\n\t}\n\treturn `${minutes} min`;\n};\n\n/**\n * Retourne un affichage *string* intelligent d'une durée en jours (Y year, M months, D days).\n * @param numberOfDays\n */\nexport const smartDisplayDays = (numberOfDays: number) => {\n\tif (numberOfDays == 0) {\n\t\treturn \"today\";\n\t}\n\n\tconst years = Math.floor(numberOfDays / 365);\n\tconst months = Math.floor(numberOfDays % 365 / 30);\n\tconst days = Math.floor(numberOfDays % 365 % 30);\n\n\tconst result = [];\n\tif (years > 0) {\n\t\tresult.push(years + (years == 1 ? \" year\" : \" years\"));\n\t}\n\tif (months > 0) {\n\t\tresult.push(months + (months == 1 ? \" month\" : \" months\"));\n\t}\n\tif (days > 0) {\n\t\tresult.push(days + (days == 1 ? \" day\" : \" days\"));\n\t}\n\n\treturn result.join(\", \");\n};\n\n/**\n * Retourne la différence en minutes entre *date1* et *date2* telles que date1 < date2.\n */\nexport const differenceInMinutesBetweenDates = (date1: Date, date2: Date) => {\n\treturn Math.round(((date2.getTime() - date1.getTime()) / 1000) / 60); // minutes\n};\n\n/**\n * Retourne la différence en jours entre *date1* et *date2* telles que date1 < date2.\n */\nexport const differenceInDaysBetweenDates = function (date1: Date, date2: Date) {\n\treturn Math.floor((Date.UTC(date2.getFullYear(), date2.getMonth(), date2.getDate()) - Date.UTC(date1.getFullYear(), date1.getMonth(), date1.getDate())) / (1000 * 60 * 60 * 24));\n};\n\n/**\n * Retourne la différence en minutes entre *hh1:mm1* et *hh2:mm2* telles que hh1:mm1 < hh2:mm2.\n */\nexport const differenceInMinutesBetweenHoursMinutes = (hm1: string, hm2: string) => {\n\tconst h1 = parseInt(hm1.split(\":\")[0], 10);\n\tconst m1 = parseInt(hm1.split(\":\")[1], 10);\n\tconst h2 = parseInt(hm2.split(\":\")[0], 10);\n\tconst m2 = parseInt(hm2.split(\":\")[1], 10);\n\treturn (60 * h2 + m2) - (60 * h1 + m1);\n};\n\n/**\n * Fonction de tri par date croissant si a < b.\n * @param a\n * @param b\n */\nexport const sortByDate = (a: Date, b: Date) => {\n\treturn a > b ? -1 : a < b ? 1 : 0;\n};\n\n\n/**\n * Retourne la date minimale d'un array de dates.\n */\nexport const getMinDate = (dates: Date[]) => {\n\treturn dates.reduce(function (a, b) {\n\t\treturn a < b ? a : b;\n\t});\n};\n\n/**\n * Retourne la date maximale d'un array de dates.\n */\nexport const getMaxDate = (dates: Date[]) => {\n\treturn dates.reduce(function (a, b) {\n\t\treturn a > b ? a : b;\n\t});\n};\n\n/**\n * Retourne la durée formatée entre maintenant et la date passée en paramètre.\n * @param date\n * @param referenceDate\n * @param onlyMinutes\n */\nexport const getTimeSince = (date: Date, referenceDate: Date = new Date(), onlyMinutes = false) => {\n\tif (typeof date !== \"object\") {\n\t\tdate = new Date(date);\n\t}\n\n\tlet seconds = Math.floor((+referenceDate - +date) / 1000);\n\tif (seconds < 0) {\n\t\tseconds = 0;\n\t}\n\tlet intervalType;\n\n\tlet interval = Math.floor(seconds / 31536000);\n\tif (interval >= 1) {\n\t\tintervalType = \"year\";\n\t}\n\telse {\n\t\tinterval = Math.floor(seconds / 2592000);\n\t\tif (interval >= 1) {\n\t\t\tintervalType = \"month\";\n\t\t}\n\t\telse {\n\t\t\tinterval = Math.floor(seconds / 86400);\n\t\t\tif (interval >= 1) {\n\t\t\t\tintervalType = \"day\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tinterval = Math.floor(seconds / 3600);\n\t\t\t\tif (interval >= 1) {\n\t\t\t\t\tintervalType = \"hour\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tinterval = Math.floor(seconds / 60);\n\t\t\t\t\tif (interval >= 1 || onlyMinutes) {\n\t\t\t\t\t\tintervalType = \"minute\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tinterval = seconds;\n\t\t\t\t\t\tintervalType = \"second\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif (interval > 1 || interval === 0) {\n\t\tintervalType += \"s\";\n\t}\n\n\n\tif (onlyMinutes) {\n\n\t}\n\n\treturn (interval > 0 ? interval : \"< 1\") + \" \" + intervalType;\n};","const realmFormat = (realm: string) => {\n\treturn realm.toLowerCase().replace(/-/gi, \"\").replace(/ /gi, \"-\").replace(/'/gi, \"\");\n};\n\nexport const armoryCharacter = (characterName: string, realmName: string, region: string) => {\n\treturn `https://worldofwarcraft.com/en-gb/character/${region}/${realmFormat(realmName)}/${characterName}`;\n};\nexport const raiderIOCharacter = (characterName: string, realmName: string, region: string) => {\n\treturn `https://raider.io/characters/${region}/${realmFormat(realmName)}/${characterName}`;\n};\nexport const warcraftLogsCharacter = (characterName: string, realmName: string, region: string) => {\n\treturn `https://www.warcraftlogs.com/character/${region}/${realmFormat(realmName)}/${characterName}`;\n};\n","export default [{\n\ttype: \"Cloth\",\n\tclasses: [8, 5, 9]\n}, {\n\ttype: \"Leather\",\n\tclasses: [4, 11, 10, 12]\n}, {\n\ttype: \"Mail\",\n\tclasses: [7, 3, 13]\n}, {\n\ttype: \"Plate\",\n\tclasses: [1, 2, 6]\n}];","'use strict';\n// https://github.com/tc39/proposal-string-pad-start-end\nvar $export = require('./_export');\nvar $pad = require('./_string-pad');\nvar userAgent = require('./_user-agent');\n\n// https://github.com/zloirock/core-js/issues/280\nvar WEBKIT_BUG = /Version\\/10\\.\\d+(\\.\\d+)?( Mobile\\/\\w+)? Safari\\//.test(userAgent);\n\n$export($export.P + $export.F * WEBKIT_BUG, 'String', {\n padStart: function padStart(maxLength /* , fillString = ' ' */) {\n return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);\n }\n});\n"],"sourceRoot":""}