{"version":3,"sources":["webpack:///./src/utils/ranking-helpers.ts","webpack:///./src/components/dashboard/GreatVaultPage.vue?0a9e","webpack:///./src/components/dashboard/GreatVaultPage.vue","webpack:///./src/components/dashboard/GreatVaultPage.vue?1531","webpack:///./src/components/dashboard/GreatVaultPage.vue?5ff4","webpack:///./src/mixins/now-mixin.ts","webpack:///./src/config/wow/armor-types.ts","webpack:///./src/components/_global/CharacterSpecCell.vue?f5e6","webpack:///./src/components/_global/CharacterSpecCell.vue","webpack:///./src/components/_global/CharacterSpecCell.vue?1e25","webpack:///./src/components/_global/CharacterSpecCell.vue?ec69","webpack:///./src/components/_global/CharacterSynchronizationStatus.vue?2b34","webpack:///./src/components/_global/CharacterSynchronizationStatus.vue","webpack:///./src/components/_global/CharacterSynchronizationStatus.vue?9aed","webpack:///./src/components/_global/CharacterSynchronizationStatus.vue?3bdd","webpack:///./src/config/wow/difficulties.ts"],"names":["rank","dataRange","dataRangeSorted","slice","sort","a","b","val","indexOf","classNameColorRank","r","artifact","legendary","epic","rare","classNameTierSetsComplete","n","render","_vm","this","_h","$createElement","_c","_self","displayedRoster","attrs","staticClass","headers","displayedData","scopedSlots","_u","key","fn","ref","props","staticStyle","$vuetify","breakpoint","lgAndUp","_v","_s","$t","item","lastSyncTime","now","class","rankFunctionGreatVaultScore","greatVaultScore","greatVault","_e","staticRenderFns","teamModule","classes","difficulties","result","text","value","align","sortable","push","characters","role","averageItemLevelEquipped","name","rosters","find","x","id","$route","params","rosterId","isLoading","length","activeRosterID","map","c","State","components","CharacterCell","CharacterSpecCell","CharacterSynchronizationStatus","component","VCol","VContainer","VDataTable","VRow","NowMixin","Date","undefined","startRegularTimeUpdating","clearTimeout","timeoutHandle","that","setTimeout","type","style","simple","character","color","theme","dark","imageLinks","thumbnailClass","specs","mainSpecNum","required","Boolean","default","VAvatar","VChip","on","_g","differenceInMinutesBetweenDates","getTimeSince","VIcon","VTooltip","shortName"],"mappings":"sOAAaA,EAAyD,SAACC,GACtE,IAAMC,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AqB,EAArB,0QAEmC,QAFnC,gDAGgB,QAHhB,mHAA4D,cAM3D,gBADC,kB,0BAID,gBADC,kB,mCARmB,EAA8B,gBADlD,QACoB,WCvCsZ,I,yDCOva+B,EAAY,eACd,EACAhE,EACAiC,GACA,EACA,KACA,KACA,MAIa,OAAA+B,EAAiB,QAMhC,IAAkBA,EAAW,CAACiC,QAAA,KAAMC,WAAA,Q,kCCxBrB,QACd,CAAEhD,GAAI,EAAGJ,KAAM,SAAUxD,KAAM,EAAG6G,UAAW,KAC7C,CAAEjD,GAAI,EAAGJ,KAAM,SAAUxD,KAAM,EAAG6G,UAAW,KAC7C,CAAEjD,GAAI,EAAGJ,KAAM,SAAUxD,KAAM,EAAG6G,UAAW","file":"dist/js/chunk-7c0c65a4.af1fa475.js","sourcesContent":["export const rank: (dataRange: number[]) => (val: number) => number = (dataRange: number[]) => {\n\tconst dataRangeSorted = dataRange.slice().sort((a, b) => (b - a));\n\treturn (val: number) => {\n\t\tif (val == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn dataRangeSorted.indexOf(val) + 1;\n\t};\n};\n\nexport const classNameColorRank = (r: number) => {\n\treturn {\n\t\tartifact: r === 1,\n\t\tlegendary: 2 <= r && r <= 5,\n\t\tepic: 6 <= r && r <= 10,\n\t\trare: 11 <= r && r <= 15\n\t};\n};\n\nexport const classNameTierSetsComplete = (n: number) => {\n\treturn {\n\t\t\"no-bonus-set\": n < 2,\n\t\t\"bonus-set-2\": 2 <= n && n < 4,\n\t\t\"bonus-set-4\": 4 <= n && n <= 5\n\t};\n};\n\n\n// const average = function (array: any[], elementFunction: any) {\n// \tlet sum = 0;\n// \tlet count = 0;\n// \tfor (const a of array) {\n// \t\tconst e = elementFunction(a);\n// \t\tif (e) {\n// \t\t\tsum += e;\n// \t\t\t++count;\n// \t\t}\n// \t}\n// \treturn count > 0 ? sum / count : 0;\n// };\n\n// const nFormatter = function (num: number, digits: number) {\n// \tconst si = [\n// \t\t// { value: 1E18, symbol: \"E\" },\n// \t\t// { value: 1E15, symbol: \"P\" },\n// \t\t// { value: 1E12, symbol: \"T\" },\n// \t\t{ value: 1E9, symbol: \"B\" },\n// \t\t{ value: 1E6, symbol: \"M\" },\n// \t\t{ value: 1E3, symbol: \"k\" }\n// \t];\n// \tconst rx = /\\.0+$|(\\.[0-9]*[1-9])0+$/;\n// \tfor (const s of si) {\n// \t\tif (num >= s.value) {\n// \t\t\treturn (num / s.value).toFixed(digits).replace(rx, \"$1\") + s.symbol;\n// \t\t}\n// \t}\n// \treturn num.toFixed(digits).replace(rx, \"$1\");\n// };\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.displayedRoster != null)?_c('v-container',{attrs:{\"fluid\":\"\",\"grid-list-xl\":\"\",\"ma-0\":\"\",\"pa-0\":\"\"}},[_c('v-row',[_c('v-col',[_c('v-data-table',{staticClass:\"small-padding\",attrs:{\"headers\":_vm.headers,\"items\":_vm.displayedData,\"items-per-page\":-1,\"mobile-breakpoint\":0,\"dense\":\"\",\"hide-default-footer\":\"\",\"sort-by\":\"greatVaultScore\",\"sort-desc\":\"\"},scopedSlots:_vm._u([{key:\"header\",fn:function(ref){\nvar props = ref.props;\nreturn [_c('thead',{staticClass:\"v-data-table-header\"},[_c('tr',[_c('th',{staticClass:\"text-center parent-header subtitle-2\",staticStyle:{\"border-bottom\":\"0\"},attrs:{\"colspan\":_vm.$vuetify.breakpoint.lgAndUp ? 4 : 3}}),_c('th',{staticClass:\"text-center parent-header subtitle-2\",staticStyle:{\"border-bottom\":\"0\"},attrs:{\"colspan\":\"3\"}},[_vm._v(_vm._s(_vm.$t('dashboard.header_raid')))]),_c('th',{staticClass:\"text-center parent-header subtitle-2\",staticStyle:{\"border-bottom\":\"0\"},attrs:{\"colspan\":\"3\"}},[_vm._v(_vm._s(_vm.$t('dashboard.header_mythic_plus')))])])])]}},{key:\"item.sync\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('character-synchronization-status',{attrs:{\"last-sync-time\":item.lastSyncTime,\"now\":_vm.now}})]}},{key:\"item.name\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('character-cell',{attrs:{\"character\":item}})]}},{key:\"item.class\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('character-spec-cell',{attrs:{\"character\":item}})]}},{key:\"item.greatVaultScore\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('span',{class:['warcraft', 'colored', _vm.classNameColorRank(_vm.rankFunctionGreatVaultScore(item.greatVaultScore))]},[_vm._v(_vm._s(item.greatVaultScore ? item.greatVaultScore : '-'))])]}},{key:\"item.greatVaultSlot1\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('span',{class:['warcraft', 'colored', _vm.classNameColorRank(_vm.rankFunctionGreatVaultScore(item.greatVaultScore))]},[_vm._v(_vm._s(item.greatVault && item.greatVault['1'] ? item.greatVault['1'] : '-'))])]}},{key:\"item.greatVaultSlot2\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('span',{class:['warcraft', 'colored', _vm.classNameColorRank(_vm.rankFunctionGreatVaultScore(item.greatVaultScore))]},[_vm._v(_vm._s(item.greatVault && item.greatVault['2'] ? item.greatVault['2'] : '-'))])]}},{key:\"item.greatVaultSlot3\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('span',{class:['warcraft', 'colored', _vm.classNameColorRank(_vm.rankFunctionGreatVaultScore(item.greatVaultScore))]},[_vm._v(_vm._s(item.greatVault && item.greatVault['3'] ? item.greatVault['3'] : '-'))])]}},{key:\"item.greatVaultSlot4\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('span',{class:['warcraft', 'colored', _vm.classNameColorRank(_vm.rankFunctionGreatVaultScore(item.greatVaultScore))]},[_vm._v(_vm._s(item.greatVault && item.greatVault['4'] ? item.greatVault['4'] : '-'))])]}},{key:\"item.greatVaultSlot5\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('span',{class:['warcraft', 'colored', _vm.classNameColorRank(_vm.rankFunctionGreatVaultScore(item.greatVaultScore))]},[_vm._v(_vm._s(item.greatVault && item.greatVault['5'] ? item.greatVault['5'] : '-'))])]}},{key:\"item.greatVaultSlot6\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('span',{class:['warcraft', 'colored', _vm.classNameColorRank(_vm.rankFunctionGreatVaultScore(item.greatVaultScore))]},[_vm._v(_vm._s(item.greatVault && item.greatVault['6'] ? item.greatVault['6'] : '-'))])]}}],null,false,2836521581)})],1)],1)],1):_vm._e()}\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\nimport { Component, Mixins, Prop } from \"vue-property-decorator\";\nimport { namespace } from \"vuex-class\";\n\n/**\n * Utils\n */\nimport classes from \"@/config/wow/classes\";\nimport * as externalLinks from \"@/config/external-links\";\nimport * as imageLinks from \"@/config/image-links\";\nimport armorTypes from \"@/config/wow/armor-types\";\nimport difficulties from \"@/config/wow/difficulties\";\n\nimport { getElegantDateString, getLocaleStringFromDateString, getTimeSince } from \"@/utils/date-helpers\";\n\nimport { rank, classNameColorRank } from \"@/utils/ranking-helpers\";\n\n\n/**\n * Components\n */\nimport CharacterCell from \"@/components/_global/CharacterCell.vue\";\nimport CharacterSpecCell from \"@/components/_global/CharacterSpecCell.vue\";\nimport CharacterSynchronizationStatus from \"@/components/_global/CharacterSynchronizationStatus.vue\";\n\n/**\n * Mixins\n */\nimport mixinNow from \"@/mixins/now-mixin\";\n\n\n/**\n * API\n */\nimport { GetOneTeamResponse } from \"@/api/teams/get-one-team.response\";\nimport { GetRostersResponse } from \"@/api/rosters/get-rosters.response\";\n\n\n/**\n * Types\n */\n\n/**\n * VueX Modules\n */\nconst teamModule = namespace(\"team\");\n\n/**\n * Rosters great vault page.\n */\n@Component({\n\tcomponents: {\n\t\tCharacterCell,\n\t\tCharacterSpecCell,\n\t\tCharacterSynchronizationStatus\n\t}\n})\nexport default class GreatVaultPage extends Mixins(mixinNow) {\n\t/// Injections\n\tclasses = classes;\n\texternalLinks = externalLinks;\n\timageLinks = imageLinks;\n\tarmorTypes = armorTypes;\n\tdifficulties = difficulties;\n\tgetTimeSince = getTimeSince;\n\tgetElegantDateString = getElegantDateString;\n\tgetLocaleStringFromDateString = getLocaleStringFromDateString;\n\n\tclassNameColorRank = classNameColorRank;\n\n\t/// Props\n\t@Prop()\n\trosters!: GetRostersResponse.Roster[];\n\n\t/// Attributes\n\tisLoading = false;\n\n\n\tactiveRosterID: string | null = null;\n\n\t/// VueX Modules\n\t@teamModule.State(\"team\")\n\tcurrentTeam!: GetOneTeamResponse;\n\n\tget headers() {\n\t\tconst result: any[] = [\n\t\t\t{\n\t\t\t\ttext: \"\",\n\t\t\t\tvalue: \"sync\",\n\t\t\t\talign: \"left\",\n\t\t\t\tsortable: false,\n\t\t\t\tclass: \"collapsing\"\n\t\t\t},\n\t\t\t{\n\t\t\t\ttext: this.$t(\"character.name\"),\n\t\t\t\tvalue: \"name\",\n\t\t\t\talign: \"left\",\n\t\t\t\tsortable: false\n\t\t\t}\n\t\t];\n\n\t\tif (this.$vuetify.breakpoint.lgAndUp) {\n\t\t\tresult.push({\n\t\t\t\ttext: this.$t(\"character.class\"),\n\t\t\t\tvalue: \"class\",\n\t\t\t\talign: \"left\"\n\t\t\t});\n\t\t}\n\n\t\tresult.push(\n\t\t\t{\n\t\t\t\ttext: this.$t(\"character.great_vault_score\"),\n\t\t\t\tvalue: \"greatVaultScore\",\n\t\t\t\talign: \"center\",\n\t\t\t\tclass: \"whitespace-nowrap\"\n\t\t\t},\n\t\t\t{\n\t\t\t\ttext: \"1\",\n\t\t\t\tvalue: \"greatVaultSlot1\",\n\t\t\t\talign: \"center\",\n\t\t\t\tsortable: false\n\t\t\t},\n\t\t\t{\n\t\t\t\ttext: \"2\",\n\t\t\t\tvalue: \"greatVaultSlot2\",\n\t\t\t\talign: \"center\",\n\t\t\t\tsortable: false\n\t\t\t},\n\t\t\t{\n\t\t\t\ttext: \"3\",\n\t\t\t\tvalue: \"greatVaultSlot3\",\n\t\t\t\talign: \"center\",\n\t\t\t\tsortable: false\n\t\t\t},\n\t\t\t{\n\t\t\t\ttext: \"1\",\n\t\t\t\tvalue: \"greatVaultSlot4\",\n\t\t\t\talign: \"center\",\n\t\t\t\tsortable: false\n\t\t\t},\n\t\t\t{\n\t\t\t\ttext: \"2\",\n\t\t\t\tvalue: \"greatVaultSlot5\",\n\t\t\t\talign: \"center\",\n\t\t\t\tsortable: false\n\t\t\t},\n\t\t\t{\n\t\t\t\ttext: \"3\",\n\t\t\t\tvalue: \"greatVaultSlot6\",\n\t\t\t\talign: \"center\",\n\t\t\t\tsortable: false\n\t\t\t}\n\t\t);\n\n\t\treturn result;\n\t}\n\n\tget displayedData() {\n\t\tif (this.displayedRoster == null) {\n\t\t\treturn [];\n\t\t}\n\n\t\treturn this.displayedRoster.characters.sort((a, b) => {\n\t\t\treturn ((a.role < b.role) ? 1 : (a.role > b.role) ? -1 : 0)\n\t\t\t\t|| (b.averageItemLevelEquipped - a.averageItemLevelEquipped)\n\t\t\t\t|| ((a.name < b.name) ? -1 : (a.name > b.name) ? 1 : 0);\n\t\t});\n\t}\n\n\t/**\n\t * The current roster to display.\n\t */\n\tget displayedRoster(): GetRostersResponse.Roster | null {\n\t\treturn this.rosters.find(x => x.id == this.$route.params.rosterId) ?? null;\n\t}\n\n\t/// Methods\n\tasync created() {\n\t\tthis.isLoading = true;\n\t\tif (this.rosters && this.rosters.length > 0) {\n\t\t\tthis.activeRosterID = this.rosters[0].id;\n\t\t}\n\t\tthis.isLoading = false;\n\t}\n\n\n\tget rankFunctionGreatVaultScore() {\n\t\treturn rank(this.displayedData.map(c => c.greatVaultScore));\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!./GreatVaultPage.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!./GreatVaultPage.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GreatVaultPage.vue?vue&type=template&id=d51f5c2a&\"\nimport script from \"./GreatVaultPage.vue?vue&type=script&lang=ts&\"\nexport * from \"./GreatVaultPage.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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCol,VContainer,VDataTable,VRow})\n","// mixin.js\nimport Vue from \"vue\";\nimport Component from \"vue-class-component\";\n\ntype Timeout = ReturnType;\n\n// You can declare a mixin as the same style as components.\n@Component\nexport default class NowMixin extends Vue {\n\tnow = new Date();\n\ttimeoutHandle: Timeout | undefined = undefined;\n\n\tcreated() {\n\t\tthis.startRegularTimeUpdating();\n\t}\n\n\tbeforeDestroy() {\n\t\tclearTimeout(this.timeoutHandle as number | undefined);\n\t}\n\n\tstartRegularTimeUpdating() {\n\t\tconst that: NowMixin = this;\n\t\tthat.timeoutHandle = setTimeout(async function () {\n\t\t\tthat.now = new Date();\n\t\t\tthat.startRegularTimeUpdating();\n\t\t}, 1000);\n\t}\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}];","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-chip',{style:({'width':'100%', 'white-space': 'nowrap', 'border':0, 'padding': (_vm.simple ? '18px' : '20px')}),attrs:{\"color\":_vm.classes[_vm.character.class].color,\"outlined\":_vm.$vuetify.theme.dark,\"label\":\"\"}},[_c('v-avatar',{class:{'premium large': !_vm.simple},attrs:{\"left\":\"\"}},[_c('img',{attrs:{\"src\":_vm.imageLinks.thumbnailClass(_vm.character.class)}})]),_vm._v(\"\\n\\t\"+_vm._s(_vm.classes[_vm.character.class].specs[_vm.character.mainSpecNum - 1]\n\t\t\t? _vm.classes[_vm.character.class].specs[_vm.character.mainSpecNum - 1].name + \" \"\n\t\t\t: '')+\"\\n\\t\"+_vm._s(_vm.classes[_vm.character.class].name)+\"\\n\")],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\nimport Vue from \"vue\";\nimport { Prop, Component } from \"vue-property-decorator\";\n\n/**\n * Utils\n */\nimport classes from \"@/config/wow/classes\";\nimport * as imageLinks from \"@/config/image-links\";\n\n\n/**\n * Character cell component.\n */\n@Component\nexport default class CharacterSpecCell extends Vue {\n\t// Injections\n\timageLinks = imageLinks;\n\tclasses = classes;\n\n\t@Prop({required: true})\n\tcharacter!: {\n\t\tmainSpecNum: number;\n\t\tclass: string;\n\t};\n\n\t@Prop({type: Boolean, default: false})\n\tsimple!: boolean;\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!./CharacterSpecCell.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!./CharacterSpecCell.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CharacterSpecCell.vue?vue&type=template&id=556e084c&\"\nimport script from \"./CharacterSpecCell.vue?vue&type=script&lang=ts&\"\nexport * from \"./CharacterSpecCell.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 { VChip } from 'vuetify/lib/components/VChip';\ninstallComponents(component, {VAvatar,VChip})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('span',_vm._g({},on),[(_vm.lastSyncTime != null && _vm.differenceInMinutesBetweenDates(new Date(_vm.lastSyncTime), _vm.now) <= 60)?_c('v-icon',{attrs:{\"color\":\"green\"}},[_vm._v(\"check\")]):(_vm.lastSyncTime != null && _vm.differenceInMinutesBetweenDates(new Date(_vm.lastSyncTime), _vm.now) <= 60*15)?_c('v-icon',{attrs:{\"color\":\"orange\"}},[_vm._v(\"check\")]):(_vm.lastSyncTime != null && _vm.differenceInMinutesBetweenDates(new Date(_vm.lastSyncTime), _vm.now) <= 60*24)?_c('v-icon',{attrs:{\"color\":\"red\"}},[_vm._v(\"check\")]):_c('v-icon',{attrs:{\"color\":\"orange\"}},[_vm._v(\"warning\")])],1)]}}])},[_c('span',[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.$t('dashboard.synchronized_'))+\"\\n\\t\\t\"),_c('strong',[_vm._v(_vm._s(_vm.lastSyncTime ? _vm.getTimeSince(new Date(_vm.lastSyncTime), _vm.now) + ' ago' : _vm.$t('global.never')))])])])}\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\nimport Vue from \"vue\";\nimport { Prop, Component } from \"vue-property-decorator\";\n\n/**\n * Utils\n */\nimport { differenceInMinutesBetweenDates, getTimeSince } from \"@/utils/date-helpers\";\n\n/**\n * Character short synchronization status component.\n */\n@Component\nexport default class CharacterSynchronizationStatus extends Vue {\n\t// Injections\n\tdifferenceInMinutesBetweenDates = differenceInMinutesBetweenDates;\n\tgetTimeSince = getTimeSince;\n\n\t@Prop()\n\tnow!: Date;\n\n\t@Prop()\n\tlastSyncTime!: string;\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!./CharacterSynchronizationStatus.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!./CharacterSynchronizationStatus.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CharacterSynchronizationStatus.vue?vue&type=template&id=5c9ec4bb&\"\nimport script from \"./CharacterSynchronizationStatus.vue?vue&type=script&lang=ts&\"\nexport * from \"./CharacterSynchronizationStatus.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 { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VIcon,VTooltip})\n","export default [\n\t{ id: 2, name: \"normal\", val: -3, shortName: \"N\" },\n\t{ id: 3, name: \"heroic\", val: -2, shortName: \"H\" },\n\t{ id: 4, name: \"mythic\", val: -1, shortName: \"M\" }\n];"],"sourceRoot":""}