{"version":3,"sources":["webpack:///./src/components/composition/CompositionsWideViewPage.vue?d9b7","webpack:///./src/components/_global/SimpleGroupCard.vue?44cf","webpack:///./src/components/_global/SimpleGroupCard.vue","webpack:///./src/components/_global/SimpleGroupCard.vue?6769","webpack:///./src/components/_global/SimpleGroupCard.vue?e76c","webpack:///./src/components/composition/CompositionsWideViewPage.vue","webpack:///./src/components/composition/CompositionsWideViewPage.vue?3061","webpack:///./src/components/composition/CompositionsWideViewPage.vue?bddf","webpack:///./src/components/composition/components/CompositionsTabList.vue?6ca2","webpack:///./src/components/composition/components/CompositionsTabList.vue","webpack:///./src/components/composition/components/CompositionsTabList.vue?ead3","webpack:///./src/components/composition/components/CompositionsTabList.vue?205a","webpack:///./src/config/wow/armor-types.ts","webpack:///./src/components/composition/lib/helpers.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","fetch","compositionGroup","staticClass","staticStyle","_l","composition","characters","length","key","id","name","boss","imageLinks","thumbnailBoss","urlSlug","isOneOfMyCharacterInComposition","colorPlayerCount","_e","staticRenderFns","$scopedSlots","_t","title","titleImageSrc","class","titleColor","_v","_s","playerCount","scopedSlots","_u","fn","data","proxy","role","k","organizedData","subroles","index","labelSize","ref","character","labelBackgroundColor","labelContent","classes","roles","reduce","o","sortData","filter","x","map","isUsed","observedData","find","od","sort","a","b","default","type","Boolean","components","CharacterLabel","CharacterCategory","component","VDivider","VImg","VListItem","fetchCompositionGroup","notifyFetchCompositionGroup","DataFetcher","SimpleGroupCard","CompositionsTabList","VContainer","hideUnused","on","emitChange","firstIndexSelected","compositions","findIndex","newIndex","$emit","Number","VCard","VTab","VTabs","nbPlayers"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,eAAe,CAACE,MAAM,CAAC,aAAaN,EAAIO,QAAQ,CAA0B,MAAxBP,EAAIQ,iBAA0BJ,EAAG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AC,SAAW,oBAAoB,gBAAgB,wBAAwB,CAACV,EAAIgC,GAAG,iBAAiBhC,EAAIiC,GAAIrB,EAAYC,WAAWC,OAAS,EAAK,IAAOF,EAAYC,WAAiB,OAAI,IAAO,IAAK,IAAIb,EAAIiC,GAAGrB,EAAYK,MAAM,mBAAmB,GAAGjB,EAAIwB,UAAS,IAAI,IAAI,IACpgBC,EAAkB,G,unBCuCtB,IAAqB,EAArB,qPAEc,GAFd,+MAaC,WAAO,WACA2D,EAAqBnF,KAAKoF,aAAaC,WAAU,SAAA9B,GAAC,OAAI,EAAKyB,YAAazB,EAAE3C,WAAWC,OAAS,KACpGb,KAAKkF,WAAWC,KAflB,wBAkBC,SAAWG,GACVtF,KAAKuF,MAAM,SAAUD,OAnBvB,GAAiD,cAKhD,gBADC,eAAM,SAAU,CAACrB,KAAMuB,U,4BAIxB,gBADC,kB,mCAID,gBADC,eAAK,CAACxB,SAAS,EAAOC,KAAMC,W,iCAVT,EAAmB,gBADvC,QACoB,WC3C6Z,I,iFCO9aI,EAAY,eACd,EACAxE,EACA0B,GACA,EACA,KACA,KACA,MAIa,OAAA8C,EAAiB,QAQhC,IAAkBA,EAAW,CAACmB,QAAA,KAAMjB,OAAA,KAAKkB,OAAA,KAAKC,QAAA,Q,oCC1B/B,QAAC,CACf1B,KAAM,QACNhB,QAAS,CAAC,EAAG,EAAG,IACd,CACFgB,KAAM,UACNhB,QAAS,CAAC,EAAG,GAAI,GAAI,KACnB,CACFgB,KAAM,OACNhB,QAAS,CAAC,EAAG,EAAG,KACd,CACFgB,KAAM,QACNhB,QAAS,CAAC,EAAG,EAAG,M,kCCXjB,kCAAO,IAAM3B,EAAmB,SAACsE,GAChC,OAAIA,EAAY,GACR,MAEC,IAAMA,GAAaA,EAAY,GAChC,OAEe,KAAdA,EACD,QAEC,GAAKA,GAAaA,GAAa,GAChC,OAED","file":"dist/js/chunk-568852a9.46682930.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('data-fetcher',{attrs:{\"fetch-data\":_vm.fetch}},[(_vm.compositionGroup != null)?_c('v-container',{attrs:{\"fluid\":\"\",\"pa-0\":\"\",\"ma-0\":\"\"}},[_c('div',{staticClass:\"d-flex gap-3\",staticStyle:{\"overflow-x\":\"scroll\"}},[_vm._l((_vm.compositionGroup.compositions),function(composition){return [(composition.characters.length > 0)?_c('div',{key:composition.id,staticClass:\"flex-grow-0 flex-shrink-1\",staticStyle:{\"flex-basis\":\"0\"}},[_c('simple-group-card',{attrs:{\"title\":composition.name,\"title-image-src\":composition.boss ? _vm.imageLinks.thumbnailBoss(composition.boss.urlSlug) : null,\"title-color\":composition.isOneOfMyCharacterInComposition ? 'primary' : null,\"data\":composition.characters,\"label-size\":12,\"color-player-count\":_vm.colorPlayerCount,\"title-alignment\":\"left\",\"display-player-count\":\"\"}})],1):_vm._e()]})],2)]):_vm._e()],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('div',[(_vm.$scopedSlots.header)?_c('v-list-item',[_vm._t(\"header\")],2):_vm._e(),(_vm.$scopedSlots.header)?_c('v-divider'):_vm._e(),(_vm.title != null)?_c('div',{staticClass:\"text-center\"},[(_vm.titleImageSrc)?_c('v-img',{staticClass:\"d-inline-block\",attrs:{\"src\":_vm.titleImageSrc,\"max-width\":\"80\"}}):_vm._e(),_c('div',{class:(_vm.titleColor + \"--text\")},[_c('div',{staticClass:\"title-overflow\"},[_vm._v(_vm._s(_vm.title))])])],1):_vm._e(),(_vm.title != null)?_c('v-divider'):_vm._e(),(_vm.displayPlayerCount)?_c('div',{class:['text-center', 'font-weight-bold', (((_vm.colorPlayerCount ? _vm.colorPlayerCount(_vm.playerCount) : 'teal')) + \"--text\")]},[_c('i18n',{attrs:{\"path\":\"group_card._players\"},scopedSlots:_vm._u([{key:\"number\",fn:function(){return [_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.data.length)+\"\\n\\t\\t\\t\")]},proxy:true}],null,false,2931083993)})],1):_vm._e(),(_vm.displayPlayerCount)?_c('v-divider'):_vm._e(),_c('div',{staticClass:\"my-3\"},[_vm._l((_vm.roles),function(role,k){return [_c('div',{key:(\"c-\" + k)},[_c('character-category',{attrs:{\"data\":_vm.organizedData[role.name],\"categories\":role.subroles,\"parent-index\":_vm.index,\"label-size\":_vm.labelSize,\"display-category-name\":false},scopedSlots:_vm._u([{key:\"character\",fn:function(ref){\nvar character = ref.character;\nreturn [_c('character-label',{attrs:{\"character\":character,\"background-color\":_vm.labelBackgroundColor,\"content\":_vm.labelContent},scopedSlots:_vm._u([(_vm.$scopedSlots.labelTooltip)?{key:\"tooltip\",fn:function(ref){\nvar character = ref.character;\nreturn [_vm._t(\"labelTooltip\",null,{\"character\":character})]}}:null],null,true)})]}}],null,true)})],1)]})],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from \"vue\";\nimport { Prop, Component } from \"vue-property-decorator\";\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 roles from \"@/config/wow/roles\";\n\n\n/**\n * Components\n */\nimport CharacterCategory from \"@/components/_global/CharacterCategory.vue\";\nimport CharacterLabel from \"@/components/_global/CharacterLabel.vue\";\n\n\n/**\n * Group card component.\n */\n@Component({\n\tcomponents: {\n\t\tCharacterLabel,\n\t\tCharacterCategory\n\t}\n})\nexport default class SimpleGroupCard extends Vue {\n\t/// Injections\n\tclasses = classes;\n\texternalLinks = externalLinks;\n\timageLinks = imageLinks;\n\troles = roles;\n\n\t/// Properties\n\n\t// Identifier\n\t@Prop({default: \"\"})\n\tindex!: string;\n\n\t@Prop()\n\ttitle!: string;\n\t\n\t@Prop()\n\ttitleImageSrc!: string;\n\n\t@Prop()\n\ttitleRightIcon!: string;\n\n\t@Prop()\n\ttitleColor!: string;\n\n\t@Prop({default: () => []})\n\tdata!: any[];\n\n\t@Prop({default: () => []})\n\tobservedData!: any[];\n\t\n\t@Prop({type: Boolean})\n\tdisplayPlayerCount!: boolean;\n\n\t@Prop()\n\tcolorPlayerCount!: (playerCount: number) => string;\n\t\n\t// Label properties\n\t@Prop({default: 2})\n\tlabelSize!: number;\n\n\t@Prop()\n\tlabelBackgroundColor!: (character: any) => string;\n\t\n\t@Prop()\n\tlabelContent!: (character: any) => string;\n\n\n\t/// Attributes\n\tget playerCount() {\n\t\treturn this.data.length;\n\t}\n\n\t/// Methods\n\tget organizedData(): any {\n\t\treturn roles.reduce((o, key) => ({\n\t\t\t...o,\n\t\t\t[key.name]: this.sortData(this.data.filter(x => x.role === key.name).map(x => ({\n\t\t\t\t...x,\n\t\t\t\tisUsed: this.observedData.find((od) => {\n\t\t\t\t\treturn od.id === x.id;\n\t\t\t\t}) != null\n\t\t\t})))\n\t\t}), {});\n\t}\n\n\tsortData(data: any[]) {\n\t\treturn data.sort((a, b) => {\n\t\t\treturn a.class - b.class || ((a.name < b.name) ? -1 : (a.name > b.name) ? 1 : 0);\n\t\t});\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!./SimpleGroupCard.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!./SimpleGroupCard.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SimpleGroupCard.vue?vue&type=template&id=079bc514&\"\nimport script from \"./SimpleGroupCard.vue?vue&type=script&lang=ts&\"\nexport * from \"./SimpleGroupCard.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 { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VListItem } from 'vuetify/lib/components/VList';\ninstallComponents(component, {VDivider,VImg,VListItem})\n","\n\n\n\n\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 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\";\n\nimport { colorPlayerCount } from \"./lib/helpers\";\n\n/**\n * Components\n */\nimport SimpleGroupCard from \"@/components/_global/SimpleGroupCard.vue\";\nimport CompositionsTabList from \"./components/CompositionsTabList.vue\";\nimport { GetOneCompositionGroupResponse } from \"@/api/compositions/get-one-composition-group.response\";\nimport DataFetcher from \"@/components/_global/DataFetcher.vue\";\n\n/**\n * API\n */\n\n/**\n * Types\n */\n\n/**\n * VueX Modules\n */\n\n/**\n * Compositions' view page.\n */\n@Component({\n\tcomponents: {\n\t\tDataFetcher,\n\t\tSimpleGroupCard,\n\t\tCompositionsTabList\n\t}\n})\nexport default class CompositionsWideViewPage extends Vue {\n\t/// Injections\n\tclasses = classes;\n\texternalLinks = externalLinks;\n\timageLinks = imageLinks;\n\tarmorTypes = armorTypes;\n\tcolorPlayerCount = colorPlayerCount;\n\n\t/// Props\n\t@Prop()\n\tcompositionGroup!: GetOneCompositionGroupResponse | null;\n\t@Prop()\n\tnotifyFetchCompositionGroup!: () => Promise<void>;\n\n\t/// Attributes\n\tisLoading = false;\n\n\t/// VueX Modules\n\n\t/// Methods\n\tasync created() {\n\t}\n\t\n\tasync fetch(){\n\t\tawait this.fetchCompositionGroup();\n\t}\n\n\tasync fetchCompositionGroup() {\n\t\tawait this.notifyFetchCompositionGroup();\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!./CompositionsWideViewPage.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!./CompositionsWideViewPage.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CompositionsWideViewPage.vue?vue&type=template&id=6104a75c&\"\nimport script from \"./CompositionsWideViewPage.vue?vue&type=script&lang=ts&\"\nexport * from \"./CompositionsWideViewPage.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 { VContainer } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VContainer})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"encounter-tabs\"},[_c('v-card',{staticStyle:{\"border\":\"0 !important\",\"border-radius\":\"3px\"}},[_c('v-tabs',{staticStyle:{\"border\":\"0 !important\",\"border-radius\":\"3px\"},attrs:{\"vertical\":\"\",\"grow\":\"\"}},[_vm._l((_vm.compositions),function(composition,k){return [(_vm.hideUnused ? composition.characters.length > 0 : true)?_c('v-tab',{key:composition.id,class:[{\n\t\t\t\t\t\t'empty': composition.characters.length === 0, \n\t\t\t\t\t\t'grey--text' : composition.characters.length === 0 && _vm.index !== k\n\t\t\t\t\t}],staticStyle:{\"justify-content\":\"left\"},on:{\"click\":function () { return _vm.emitChange(k); }}},[(composition.boss)?_c('v-img',{attrs:{\"src\":_vm.imageLinks.thumbnailBoss(composition.boss.urlSlug),\"max-width\":\"48\"}}):_vm._e(),_c('div',{staticStyle:{\"overflow\":\"hidden !important\",\"text-overflow\":\"ellipsis !important\"}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s((composition.characters.length > 0 ? (\"(\" + (composition.characters.length) + \")\") : ''))+\" \"+_vm._s(composition.name)+\"\\n\\t\\t\\t\\t\\t\")])],1):_vm._e()]})],2)],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\nimport Vue from \"vue\";\nimport { Prop, Component, Model } from \"vue-property-decorator\";\n\n/**\n * Utils\n */\nimport * as imageLinks from \"@/config/image-links\";\n\n/**\n * Tab list of the compositions.\n */\n@Component\nexport default class CompositionsTabList extends Vue {\n\t/// Injections\n\timageLinks = imageLinks;\n\n\t@Model(\"change\", {type: Number})\n\treadonly index!: number;\n\n\t@Prop()\n\tcompositions!: any[];\n\n\t@Prop({default: false, type: Boolean})\n\thideUnused!: boolean;\n\n\tcreated() {\n\t\tconst firstIndexSelected = this.compositions.findIndex(x => this.hideUnused ? x.characters.length > 0 : true);\n\t\tthis.emitChange(firstIndexSelected);\n\t}\n\n\temitChange(newIndex: number) {\n\t\tthis.$emit(\"change\", newIndex);\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!./CompositionsTabList.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!./CompositionsTabList.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CompositionsTabList.vue?vue&type=template&id=59764f4a&\"\nimport script from \"./CompositionsTabList.vue?vue&type=script&lang=ts&\"\nexport * from \"./CompositionsTabList.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 { VCard } from 'vuetify/lib/components/VCard';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VTab } from 'vuetify/lib/components/VTabs';\nimport { VTabs } from 'vuetify/lib/components/VTabs';\ninstallComponents(component, {VCard,VImg,VTab,VTabs})\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}];","export const colorPlayerCount = (nbPlayers: number) => {\n\tif (nbPlayers < 10) {\n\t\treturn \"red\";\n\t}\n\telse if (10 <= nbPlayers && nbPlayers < 20) {\n\t\treturn \"teal\";\n\t}\n\telse if (nbPlayers === 20) {\n\t\treturn \"green\";\n\t}\n\telse if (20 < nbPlayers && nbPlayers <= 30) {\n\t\treturn \"teal\";\n\t}\n\treturn \"red\";\n};"],"sourceRoot":""}