{"version":3,"sources":["webpack:///./node_modules/core-js/modules/_string-pad.js","webpack:///./src/config/wow/factions.ts","webpack:///./src/utils/date-helpers.ts","webpack:///../../../src/components/VBadge/VBadge.ts","webpack:///./src/mixins/now-mixin.ts","webpack:///./src/config/external-links.ts","webpack:///./src/config/wow/armor-types.ts","webpack:///./src/components/user/CharactersMythicKeystonesPage.vue?c038","webpack:///./src/components/user/CharactersMythicKeystonesPage.vue","webpack:///./src/components/user/CharactersMythicKeystonesPage.vue?c66f","webpack:///./src/components/user/CharactersMythicKeystonesPage.vue?b579","webpack:///./src/api/game.ts","webpack:///../../../src/mixins/transitionable/index.ts","webpack:///./node_modules/core-js/modules/es7.string.pad-start.js"],"names":["toLength","repeat","defined","module","exports","that","maxLength","fillString","left","S","String","stringLength","length","fillStr","undefined","intMaxLength","fillLen","stringFiller","call","Math","ceil","slice","code","name","createDateString","year","month","day","toString","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","getTimeSince","referenceDate","onlyMinutes","intervalType","seconds","interval","props","avatar","bordered","color","type","default","content","required","dot","label","icon","inline","offsetX","Number","offsetY","overlap","tile","transition","value","computed","classes","this","themeClasses","computedBottom","bottom","computedLeft","computedRight","computedTop","computedXOffset","calcPosition","computedYOffset","isRtl","$vuetify","offset","styles","right","top","methods","genBadge","lang","$attrs","data","setBackgroundColor","staticClass","style","attrs","title","role","directives","isActive","badge","$createElement","origin","mode","genBadgeContent","slot","genBadgeWrapper","render","children","h","class","NowMixin","startRegularTimeUpdating","clearTimeout","timeoutHandle","setTimeout","now","realmFormat","realm","toLowerCase","replace","armoryCharacter","characterName","realmName","region","raiderIOCharacter","warcraftLogsCharacter","_vm","_h","_c","_self","displayedCharacters","keystoneInfos","isLoading","breakpoint","xsOnly","canSave","on","handleSaveClick","_v","_s","$t","handleCancelClick","headers","scopedSlots","_u","key","fn","ref","item","imageLinks","iconRole","theme","dark","userPremiumLevel","staticStyle","_e","proxy","thumbnail","thumbnailCharacter","thumbnailClass","specs","mainSpecNum","$event","hasUnsavedChanges","model","find","x","id","callback","$$v","$set","expression","keystoneID","keystoneLevels","handleClearClick","mythicKeystone","lastSyncTime","staticRenderFns","range","profileModule","factions","text","align","userDetails","characters","game","fetchMythicKeystones","getCharacters","fetchCharacters","map","c","keystoneLevel","level","users","editCharactersKeystones","$snackbar","openInfo","handleAPIError","characterID","correspondingItem","Action","State","components","beforeRouteLeave","to","from","next","answer","window","confirm","component","VAvatar","VBadge","VBtn","VChip","VCol","VContainer","VDataTable","VIcon","VRow","VSelect","fetchRealms","get","$export","$pad","userAgent","WEBKIT_BUG","test","P","F","arguments"],"mappings":"qGACA,IAAIA,EAAW,EAAQ,QACnBC,EAAS,EAAQ,QACjBC,EAAU,EAAQ,QAEtBC,EAAOC,QAAU,SAAUC,EAAMC,EAAWC,EAAYC,GACtD,IAAIC,EAAIC,OAAOR,EAAQG,IACnBM,EAAeF,EAAEG,OACjBC,OAAyBC,IAAfP,EAA2B,IAAMG,OAAOH,GAClDQ,EAAef,EAASM,GAC5B,GAAIS,GAAgBJ,GAA2B,IAAXE,EAAe,OAAOJ,EAC1D,IAAIO,EAAUD,EAAeJ,EACzBM,EAAehB,EAAOiB,KAAKL,EAASM,KAAKC,KAAKJ,EAAUH,EAAQD,SAEpE,OADIK,EAAaL,OAASI,IAASC,EAAeA,EAAaI,MAAM,EAAGL,IACjER,EAAOS,EAAeR,EAAIA,EAAIQ,I,oCCdxB,QAAC,CACfK,KAAM,WACNC,KAAM,YACJ,CACFD,KAAM,Q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,QAAQ/O,EAAK0K,GAAG,4BAClCmE,EACHD,IAGAA,GAAK,OAIa,WCpNqZ,I,yJCOtaI,EAAY,eACd,EACAxG,EACAuE,GACA,EACA,KACA,KACA,MAIa,aAAAiC,EAAiB,QAchC,IAAkBA,EAAW,CAACC,UAAA,KAAQC,SAAA,KAAOC,OAAA,KAAKC,QAAA,KAAMC,OAAA,KAAKC,aAAA,KAAWC,aAAA,KAAWC,QAAA,KAAMC,OAAA,KAAKC,UAAA,Q,wECvB/E,QACRC,YADQ,gLACIlG,EADJ,+BACa,KADb,SAEC,iBAAQmG,IAAR,+BAAoCnG,IAFrC,uCAEgDjC,MAFhD,mGAIRgG,qBAJQ,uKAKC,iBAAQoC,IAAI,oBALb,uCAKkCpI,MALlC,qG,kCCTf,gBAEe,2BAAW,CACxBtG,KADwB,iBAGxB6D,MAAO,CACLqD,KADK,OAELD,OAFK,OAGLnC,WAAY3F,W,kCCNhB,IAAIwP,EAAU,EAAQ,QAClBC,EAAO,EAAQ,QACfC,EAAY,EAAQ,QAGpBC,EAAa,mDAAmDC,KAAKF,GAEzEF,EAAQA,EAAQK,EAAIL,EAAQM,EAAIH,EAAY,SAAU,CACpDxO,SAAU,SAAkBvB,GAC1B,OAAO6P,EAAK1J,KAAMnG,EAAWmQ,UAAU7P,OAAS,EAAI6P,UAAU,QAAK3P,GAAW,O","file":"dist/js/chunk-06f77d48.3ed3d679.js","sourcesContent":["// 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};","// Styles\nimport './VBadge.sass'\n\n// Components\nimport VIcon from '../VIcon/VIcon'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport Themeable from '../../mixins/themeable'\nimport Toggleable from '../../mixins/toggleable'\nimport Transitionable from '../../mixins/transitionable'\nimport { factory as PositionableFactory } from '../../mixins/positionable'\n\n// Utilities\nimport mixins from '../../util/mixins'\nimport {\n convertToUnit,\n getSlot,\n} from '../../util/helpers'\n\n// Types\nimport { VNode } from 'vue'\n\nexport default mixins(\n Colorable,\n PositionableFactory(['left', 'bottom']),\n Themeable,\n Toggleable,\n Transitionable,\n/* @vue/component */\n).extend({\n name: 'v-badge',\n\n props: {\n avatar: Boolean,\n bordered: Boolean,\n color: {\n type: String,\n default: 'primary',\n },\n content: { required: false },\n dot: Boolean,\n label: {\n type: String,\n default: '$vuetify.badge',\n },\n icon: String,\n inline: Boolean,\n offsetX: [Number, String],\n offsetY: [Number, String],\n overlap: Boolean,\n tile: Boolean,\n transition: {\n type: String,\n default: 'scale-rotate-transition',\n },\n value: { default: true },\n },\n\n computed: {\n classes (): object {\n return {\n 'v-badge--avatar': this.avatar,\n 'v-badge--bordered': this.bordered,\n 'v-badge--bottom': this.bottom,\n 'v-badge--dot': this.dot,\n 'v-badge--icon': this.icon != null,\n 'v-badge--inline': this.inline,\n 'v-badge--left': this.left,\n 'v-badge--overlap': this.overlap,\n 'v-badge--tile': this.tile,\n ...this.themeClasses,\n }\n },\n computedBottom (): string {\n return this.bottom ? 'auto' : this.computedYOffset\n },\n computedLeft (): string {\n if (this.isRtl) {\n return this.left ? this.computedXOffset : 'auto'\n }\n\n return this.left ? 'auto' : this.computedXOffset\n },\n computedRight (): string {\n if (this.isRtl) {\n return this.left ? 'auto' : this.computedXOffset\n }\n\n return !this.left ? 'auto' : this.computedXOffset\n },\n computedTop (): string {\n return this.bottom ? this.computedYOffset : 'auto'\n },\n computedXOffset (): string {\n return this.calcPosition(this.offsetX)\n },\n computedYOffset (): string {\n return this.calcPosition(this.offsetY)\n },\n isRtl (): boolean {\n return this.$vuetify.rtl\n },\n // Default fallback if offsetX\n // or offsetY are undefined.\n offset (): number {\n if (this.overlap) return this.dot ? 8 : 12\n return this.dot ? 2 : 4\n },\n styles (): object {\n if (this.inline) return {}\n\n return {\n bottom: this.computedBottom,\n left: this.computedLeft,\n right: this.computedRight,\n top: this.computedTop,\n }\n },\n },\n\n methods: {\n calcPosition (offset: string | number): string {\n return `calc(100% - ${convertToUnit(offset || this.offset)})`\n },\n genBadge () {\n const lang = this.$vuetify.lang\n const label = this.$attrs['aria-label'] || lang.t(this.label)\n\n const data = this.setBackgroundColor(this.color, {\n staticClass: 'v-badge__badge',\n style: this.styles,\n attrs: {\n 'aria-atomic': this.$attrs['aria-atomic'] || 'true',\n 'aria-label': label,\n 'aria-live': this.$attrs['aria-live'] || 'polite',\n title: this.$attrs.title,\n role: this.$attrs.role || 'status',\n },\n directives: [{\n name: 'show',\n value: this.isActive,\n }],\n })\n\n const badge = this.$createElement('span', data, [this.genBadgeContent()])\n\n if (!this.transition) return badge\n\n return this.$createElement('transition', {\n props: {\n name: this.transition,\n origin: this.origin,\n mode: this.mode,\n },\n }, [badge])\n },\n genBadgeContent () {\n // Dot prop shows no content\n if (this.dot) return undefined\n\n const slot = getSlot(this, 'badge')\n\n if (slot) return slot\n if (this.content) return String(this.content)\n if (this.icon) return this.$createElement(VIcon, this.icon)\n\n return undefined\n },\n genBadgeWrapper () {\n return this.$createElement('span', {\n staticClass: 'v-badge__wrapper',\n }, [this.genBadge()])\n },\n },\n\n render (h): VNode {\n const badge = [this.genBadgeWrapper()]\n const children = [getSlot(this)]\n const {\n 'aria-atomic': _x,\n 'aria-label': _y,\n 'aria-live': _z,\n role,\n title,\n ...attrs\n } = this.$attrs\n\n if (this.inline && this.left) children.unshift(badge)\n else children.push(badge)\n\n return h('span', {\n staticClass: 'v-badge',\n attrs,\n class: this.classes,\n }, children)\n },\n})\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}","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}];","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"fill-height\"},[((!_vm.displayedCharacters || !_vm.data || !_vm.keystoneInfos) && _vm.isLoading)?_c('app-loading'):_c('v-container',{attrs:{\"fluid\":\"\",\"grid-list-xl\":\"\",\"ma-0\":\"\",\"pa-0\":\"\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',[_c('v-btn',{staticClass:\"mr-3 mb-3\",attrs:{\"block\":_vm.$vuetify.breakpoint.xsOnly,\"disabled\":!_vm.canSave,\"loading\":_vm.isLoading,\"color\":\"primary\",\"depressed\":\"\"},on:{\"click\":_vm.handleSaveClick}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"save\")]),_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.$t('global.save'))+\"\\n\\t\\t\\t\\t\")],1),_c('v-btn',{staticClass:\"mr-3 mb-3\",attrs:{\"block\":_vm.$vuetify.breakpoint.xsOnly,\"disabled\":!_vm.canSave,\"loading\":_vm.isLoading,\"depressed\":\"\"},on:{\"click\":_vm.handleCancelClick}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"cancel\")]),_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.$t('global.cancel'))+\"\\n\\t\\t\\t\\t\")],1)],1),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"auto\"}},[_c('v-btn',{staticClass:\"mb-3\",attrs:{\"block\":_vm.$vuetify.breakpoint.xsOnly,\"exact\":\"\",\"to\":\"/profile\"}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"mdi-arrow-left\")]),_vm._v(\"\\n\\t\\t\\t\\t\\tBack to Profile\\n\\t\\t\\t\\t\")],1)],1)],1),_c('v-data-table',{staticClass:\"small-padding\",attrs:{\"headers\":_vm.headers,\"items\":_vm.displayedCharacters,\"items-per-page\":-1,\"mobile-breakpoint\":0,\"hide-default-footer\":\"\"},scopedSlots:_vm._u([{key:\"item.role\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('img',{staticClass:\"mt-1\",attrs:{\"src\":_vm.imageLinks.iconRole(item.role),\"width\":28}})]}},{key:\"item.name\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-chip',{style:({'width':'100%', 'white-space': 'nowrap', 'border':0, 'padding':'20px'}),attrs:{\"color\":_vm.classes[item.class].color,\"outlined\":_vm.$vuetify.theme.dark,\"label\":\"\"}},[_c('v-badge',{attrs:{\"avatar\":\"\",\"bottom\":\"\",\"color\":\"transparent\",\"offset-x\":\"20\",\"offset-y\":\"15\",\"overlap\":\"\"},scopedSlots:_vm._u([{key:\"badge\",fn:function(){return [(item.userPremiumLevel > 0)?_c('v-avatar',[_c('v-icon',{staticStyle:{\"text-shadow\":\"1px 1px 3px #000\"},attrs:{\"color\":\"yellow\"}},[_vm._v(\"mdi-star\")])],1):_vm._e()]},proxy:true}],null,true)},[_c('v-avatar',{class:(\"premium large premium-\" + ((item.userPremiumLevel ? item.userPremiumLevel : 0))),attrs:{\"left\":\"\"}},[_c('img',{attrs:{\"src\":item.thumbnail != null ? _vm.imageLinks.thumbnailCharacter(item.thumbnail) : _vm.imageLinks.thumbnailClass(item.class)}})])],1),_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(item.name)+\" -\\n\\t\\t\\t\\t\\t\"+_vm._s(item.realm)+\"\\n\\t\\t\\t\\t\")],1)]}},{key:\"item.class\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-chip',{style:({'width':'100%', 'white-space': 'nowrap', 'border':0, 'padding':'20px'}),attrs:{\"color\":_vm.classes[item.class].color,\"outlined\":_vm.$vuetify.theme.dark,\"label\":\"\"}},[_c('v-avatar',{staticClass:\"premium large\",attrs:{\"left\":\"\"}},[_c('img',{attrs:{\"src\":_vm.imageLinks.thumbnailClass(item.class)}})]),_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.classes[item.class].specs[item.mainSpecNum - 1]\n\t\t\t\t\t\t\t? _vm.classes[item.class].specs[item.mainSpecNum - 1].name + \" \"\n\t\t\t\t\t\t\t: '')+\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.classes[item.class].name)+\"\\n\\t\\t\\t\\t\")],1)]}},{key:\"item.mythicKeystone.id\",fn:function(ref){\n\t\t\t\t\t\t\tvar item = ref.item;\nreturn [_c('v-select',{attrs:{\"items\":_vm.keystoneInfos,\"block\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"item-text\":\"name\",\"item-value\":\"zoneID\",\"label\":\"\",\"outlined\":\"\"},on:{\"change\":function($event){_vm.hasUnsavedChanges = true}},model:{value:(_vm.data.find(function (x) { return x.id === item.id; }).keystoneID),callback:function ($$v) {_vm.$set(_vm.data.find(function (x) { return x.id === item.id; }), \"keystoneID\", $$v)},expression:\"data.find(x => x.id === item.id).keystoneID\"}})]}},{key:\"item.mythicKeystone.level\",fn:function(ref){\n\t\t\t\t\t\t\tvar item = ref.item;\nreturn [(_vm.data.find(function (x) { return x.id === item.id; }).keystoneID != null)?[_c('v-select',{attrs:{\"items\":_vm.keystoneLevels,\"block\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"label\":\"\",\"outlined\":\"\"},on:{\"change\":function($event){_vm.hasUnsavedChanges = true}},model:{value:(_vm.data.find(function (x) { return x.id === item.id; }).keystoneLevel),callback:function ($$v) {_vm.$set(_vm.data.find(function (x) { return x.id === item.id; }), \"keystoneLevel\", $$v)},expression:\"data.find(x => x.id === item.id).keystoneLevel\"}})]:_vm._e()]}},{key:\"item.actions\",fn:function(ref){\n\t\t\t\t\t\t\tvar item = ref.item;\nreturn [(_vm.data.find(function (x) { return x.id === item.id; }).keystoneID != null)?[_c('v-btn',{attrs:{\"disabled\":_vm.isLoading,\"color\":\"red\",\"icon\":\"\",\"text\":\"\"},on:{\"click\":function($event){return _vm.handleClearClick(item.id)}}},[_c('v-icon',[_vm._v(\"clear\")])],1)]:_vm._e()]}},{key:\"item.mythicKeystone.lastSyncTime\",fn:function(ref){\n\t\t\t\t\t\t\tvar item = ref.item;\nreturn [_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(item.mythicKeystone && item.mythicKeystone.lastSyncTime ? _vm.getTimeSince(item.mythicKeystone.lastSyncTime, _vm.now, true) + ' ago' : '-')+\"\\n\\t\\t\\t\")]}}])})],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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 } from \"vue-property-decorator\";\nimport { namespace } from \"vuex-class\";\nimport _ from \"lodash\";\nimport { NavigationGuardNext, Route } from \"vue-router\";\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\n/**\n * Components\n */\n/**\n * API\n */\nimport usersAPI, { EditCharacterKeystonesDataRequestModel } from \"@/api/users\";\nimport gameAPI, { MythicKeystoneInfoResponse } from \"@/api/game\";\nimport mixinNow from \"@/mixins/now-mixin\";\n\n\n/**\n * Types\n */\nconst keystoneLevels = _.range(2, 21);\n\n\n/**\n * VueX Modules\n */\nconst profileModule = namespace(\"profile\");\n\n/**\n * Page to edit his own character keystones.\n */\n@Component({\n\tcomponents: {},\n\tbeforeRouteLeave(to: Route, from: Route, next: NavigationGuardNext) {\n\t\tconst that = this as CharactersMythicKeystonesPage;\n\t\tif (!that.hasUnsavedChanges) {\n\t\t\treturn next();\n\t\t}\n\t\tconst answer = window.confirm(that.$t(\"global.alert_leave_page\") as string);\n\t\tif (answer) {\n\t\t\tnext();\n\t\t}\n\t\telse {\n\t\t\tnext(false);\n\t\t}\n\t}\n})\nexport default class CharactersMythicKeystonesPage extends Mixins(mixinNow) {\n\t/// Injections\n\tclasses = classes;\n\tfactions = factions;\n\texternalLinks = externalLinks;\n\timageLinks = imageLinks;\n\tarmorTypes = armorTypes;\n\n\tkeystoneLevels = keystoneLevels;\n\n\tgetTimeSince = getTimeSince;\n\n\n\t/// Properties\n\n\t// Attributes\n\tisLoading = false;\n\tisDragging = false;\n\tkeystoneInfos: MythicKeystoneInfoResponse[] | null = null;\n\thasUnsavedChanges = false;\n\n\tdata: EditCharacterKeystonesDataRequestModel[] | null = null;\n\t/// VueX Modules\n\t@profileModule.Action(\"fetchCharacters\")\n\tfetchCharacters: any;\n\t@profileModule.State(\"userDetails\")\n\tuserDetails!: any;\n\n\tget headers() {\n\t\treturn [\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\tclass: \"collapsing\"\n\t\t\t},\n\t\t\t{\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\tclass: \"collapsing\"\n\t\t\t},\n\t\t\t{\n\t\t\t\ttext: this.$t(\"character.mythic_keystone\"),\n\t\t\t\tvalue: \"mythicKeystone.id\",\n\t\t\t\talign: \"left\"\n\t\t\t},\n\t\t\t{\n\t\t\t\ttext: this.$t(\"character.mythic_keystone_level\"),\n\t\t\t\tvalue: \"mythicKeystone.level\",\n\t\t\t\talign: \"left\",\n\t\t\t\tclass: \"collapsing\"\n\t\t\t},\n\t\t\t{\n\t\t\t\ttext: \"\",\n\t\t\t\tvalue: \"actions\",\n\t\t\t\talign: \"left\",\n\t\t\t\tclass: \"collapsing\"\n\t\t\t},\n\t\t\t{\n\t\t\t\ttext: this.$t(\"character.mythic_keystone_last_updated\"),\n\t\t\t\tvalue: \"mythicKeystone.lastSyncTime\",\n\t\t\t\talign: \"left\",\n\t\t\t\tclass: \"collapsing\"\n\t\t\t}\n\t\t];\n\t}\n\n\tget displayedCharacters(): any[] {\n\t\treturn this.userDetails.characters;\n\t}\n\n\tget canSave() {\n\t\treturn !this.isLoading && this.hasUnsavedChanges;\n\t}\n\n\t/// Methods\n\tasync created() {\n\t\tthis.isLoading = true;\n\t\ttry {\n\t\t\tthis.keystoneInfos = await gameAPI.fetchMythicKeystones();\n\t\t\tawait this.getCharacters();\n\n\t\t} catch (error) {\n\t\t\t\n\t\t}\n\t\tthis.isLoading = false;\n\t}\n\n\tasync getCharacters() {\n\t\tawait this.fetchCharacters();\n\t\tthis.data = this.userDetails.characters.map((c: any) => ({\n\t\t\tid: c.id,\n\t\t\tkeystoneID: c.mythicKeystone?.id,\n\t\t\tkeystoneLevel: c.mythicKeystone != null ? c.mythicKeystone.level : 2\n\t\t}));\n\t\tthis.hasUnsavedChanges = false;\n\t}\n\n\tasync handleSaveClick() {\n\t\tif (this.data == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.isLoading = true;\n\t\ttry {\n\t\t\tawait usersAPI.editCharactersKeystones(this.data);\n\t\t\tawait this.getCharacters();\n\t\t\tthis.$snackbar.openInfo(this.$t(\"snackbar.save_success\"));\n\t\t} catch (error) {\n\t\t\tthis.handleAPIError(error);\n\t\t}\n\t\tthis.isLoading = false;\n\t}\n\n\tasync handleCancelClick() {\n\t\tthis.isLoading = true;\n\t\ttry {\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 handleClearClick(characterID: string) {\n\t\tif (this.data == null) {\n\t\t\treturn;\n\t\t}\n\t\tconst correspondingItem = this.data.find(c => c.id == characterID);\n\t\tif (correspondingItem) {\n\t\t\tcorrespondingItem.keystoneLevel = 2;\n\t\t\tcorrespondingItem.keystoneID = null;\n\t\t\tthis.hasUnsavedChanges = true;\n\t\t}\n\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!./CharactersMythicKeystonesPage.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!./CharactersMythicKeystonesPage.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CharactersMythicKeystonesPage.vue?vue&type=template&id=9b28df3a&\"\nimport script from \"./CharactersMythicKeystonesPage.vue?vue&type=script&lang=ts&\"\nexport * from \"./CharactersMythicKeystonesPage.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 { VBadge } from 'vuetify/lib/components/VBadge';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VChip } from 'vuetify/lib/components/VChip';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\ninstallComponents(component, {VAvatar,VBadge,VBtn,VChip,VCol,VContainer,VDataTable,VIcon,VRow,VSelect})\n","import axios from \"@/utils/axios\";\nimport { GetRealmsResponse } from \"@/api/game/get-realms.response\";\n\nexport interface MythicKeystoneInfoResponse {\n\tzoneID: number;\n\tname: string;\n\tshortName: string;\n}\n\nexport default {\n\tasync fetchRealms(region = \"eu\"): Promise {\n\t\treturn (await axios().get(`/game/realms/?region=${region}`)).data;\n\t},\n\tasync fetchMythicKeystones(): Promise {\n\t\treturn (await axios().get(\"/game/keystones/\")).data;\n\t}\n};","import Vue from 'vue'\n\nexport default Vue.extend({\n name: 'transitionable',\n\n props: {\n mode: String,\n origin: String,\n transition: String,\n },\n})\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":""}