{"version":3,"sources":["webpack:///./src/components/Ratings/OrganizationManager.vue?5923","webpack:///./src/components/Ratings/OrganizationAddDialog.vue?bfdb","webpack:///src/components/Ratings/OrganizationAddDialog.vue","webpack:///./src/components/Ratings/OrganizationAddDialog.vue?5bab","webpack:///./src/components/Ratings/OrganizationAddDialog.vue","webpack:///src/components/Ratings/OrganizationManager.vue","webpack:///./src/components/Ratings/OrganizationManager.vue?1978","webpack:///./src/components/Ratings/OrganizationManager.vue","webpack:///./src/components/Ratings/OrganizationManager.vue?0bcc"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","loading","count","model","value","callback","$$v","search","expression","_e","window","_v","organizations","itemsPerPageOptions","rowsPerPageItems","pagination","on","$event","scopedSlots","_u","key","fn","ref","items","_l","item","id","onSelected","stopPropagation","addOrg","proxy","_s","selectedProfile","name","headers","rows","listPage","staticStyle","logo","i","class","url","dateDisplay","year","_f","divisions","public","_g","selected","username","exclude","ratingSystem","onOrgAdded","cancel","saveable","saveTournaments","staticRenderFns","dialog","onProfileSelected","theme","logoUrl","addOrganization","props","data","computed","page","getPageInfo","methods","profile","$VBL","ratings","systemOrganizations","post","components","OrganizationSearch","watch","val","$refs","reset","component","VBtn","VCard","VCardActions","VCardText","VDialog","VDivider","VExpandTransition","VIcon","VImg","VSpacer","VToolbar","VToolbarTitle","VWindow","VWindowItem","summaries","length","map","base","result","t","startDate","timestamp","isSame","endDate","format","dayDisplay","locations","locationsString","isPublic","regOpen","sanctionedBy","admin","ibvl","logos","filter","divisionNames","sort","tournament","tags","selectedIds","Set","dto","add","remove","loadOrganizations","get","addDialog","push","org","loadTournaments","tournaments","setTimeout","loadSummaries","OrganizationCard","OrganizationAddDialog","mounted","VCarousel","VCarouselItem","VCol","VContainer","VDataIterator","VDataTable","VFabTransition","VProgressLinear","VRow","VTextField","VTooltip"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,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BACQ,EAAR,yBAEA,mBAAQ,QAAR,UACA,oBAAQ,EAAR,eAEIW,cAhDJ,SAgDA,GACM1I,KAAKoG,UAAY/B,EAAKiC,KAAI,SAAhC,2BACMtG,KAAKsD,SAAWtD,KAAKoG,UAAUoB,QAAO,SAA5C,uBAGEzC,WAAY,CACV4D,iBAAJ,OACIC,sBAAJ,GAEEC,QApIF,WAqII7I,KAAKkI,qBAEPjD,MAAO,CACLjE,OAAQ,SAAZ,GACWkE,IACHlF,KAAKsD,SAAW,OChUoV,I,oICQxW,EAAY,eACd,EACAxD,EACAgE,GACA,EACA,KACA,WACA,MAIa,eAAiB,QAqBhC,IAAkB,EAAW,CAACwB,OAAA,KAAKC,QAAA,KAAME,UAAA,OAAUqD,YAAA,KAAUC,gBAAA,KAAcC,OAAA,KAAKC,aAAA,KAAWC,gBAAA,KAAcC,aAAA,KAAWC,eAAA,OAAevD,QAAA,KAAMwD,kBAAA,KAAgBC,OAAA,KAAKC,aAAA,KAAWC,WAAA,KAAStD,UAAA,KAAQC,cAAA,Q,kCCxC1L,yBAAogB,EAAG,G","file":"js/chunk-1f9c9c0b.ab23aecb.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"pt-0\",attrs:{\"fluid\":\"\"}},[_c('loading-bar',{attrs:{\"value\":_vm.loading}}),(_vm.count > 3)?_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-text-field',{attrs:{\"append-icon\":\"fas fa-search\",\"label\":\"Search\",\"hide-details\":\"\",\"color\":\"color3\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1)],1):_vm._e(),_c('v-window',{attrs:{\"touchless\":\"\"},model:{value:(_vm.window),callback:function ($$v) {_vm.window=$$v},expression:\"window\"}},[_c('v-window-item',{attrs:{\"value\":0}},[_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('p',{staticClass:\"title\"},[_vm._v(\"Contributing Organizations\")]),_c('p',{staticClass:\"subheading mt-2\"},[_vm._v(\" These are the organizations that have the ability to contribute to the rating system. To view and/or edit the tournaments that each organization is contibuting to the rating system, click the organization. \")])])],1),_c('v-data-iterator',{attrs:{\"items\":_vm.organizations,\"footer-props\":{itemsPerPageOptions: _vm.rowsPerPageItems},\"options\":_vm.pagination,\"search\":_vm.search,\"hide-default-footer\":_vm.count < 12},on:{\"update:options\":function($event){_vm.pagination=$event}},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar items = ref.items;\nreturn [_c('v-row',_vm._l((items),function(item){return _c('v-col',{key:item.id,attrs:{\"cols\":\"6\",\"sm\":\"6\",\"md\":\"4\"}},[_c('organization-card',{attrs:{\"organization\":item,\"selector\":true},on:{\"selected\":_vm.onSelected}})],1)}),1)]}},{key:\"no-data\",fn:function(){return [_c('v-card',{staticClass:\"my-12\",attrs:{\"flat\":\"\"}},[_c('v-card-text',{staticClass:\"text-center\"},[_c('h1',[_vm._v(\"There are no organizations participating yet.\")]),_c('v-btn',{staticClass:\"mt-3\",attrs:{\"color\":\"color3 color3Text--text\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.addOrg($event)}}},[_vm._v(\" Add an Organizaiton \")])],1)],1)]},proxy:true}])})],1),_c('v-window-item',{attrs:{\"value\":1}},[_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('p',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.selectedProfile && _vm.selectedProfile.name))]),_c('p',{staticClass:\"subheading mt-2\"},[_vm._v(\" Select edit the tournaments that will contibute to the rating system, then click save (on the bottom right of the screen). \")])]),_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-text-field',{attrs:{\"color\":\"color3\",\"append-icon\":\"fas fa-search\",\"label\":\"Search\",\"hide-details\":\"\",\"solo-inverted\":\"\",\"clearable\":\"\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1)],1),_c('v-data-table',{attrs:{\"headers\":_vm.headers,\"items\":_vm.rows,\"options\":_vm.listPage,\"footer-props\":{itemsPerPageOptions: [25, 50, -1]},\"loading\":_vm.loading,\"loading-text\":(\"Loading \" + (_vm.selectedProfile && _vm.selectedProfile.name) + \"'s tournaments...\"),\"search\":_vm.search,\"show-select\":\"\"},on:{\"update:options\":function($event){_vm.listPage=$event}},scopedSlots:_vm._u([{key:\"progress\",fn:function(){return [_c('v-progress-linear',{attrs:{\"color\":\"color3\",\"indeterminate\":\"\"}})]},proxy:true},{key:\"item.sanctionedBy\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',{staticStyle:{\"width\":\"95px\"}},[_c('v-carousel',{staticClass:\"elevation-0\",attrs:{\"show-arrows\":false,\"hide-delimiters\":\"\",\"height\":\"40\",\"max\":\"95\",\"cycle\":\"\",\"continuous\":\"\",\"interval\":\"3000\"}},_vm._l((item.logos),function(logo,i){return _c('v-carousel-item',{key:((logo.url) + \"_\" + i),class:logo.class,attrs:{\"height\":\"40px\",\"src\":logo.url,\"contain\":\"\"}})}),1)],1)]}},{key:\"item.startDate\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',[_vm._v(_vm._s(item.dateDisplay))]),_c('div',[_vm._v(_vm._s(item.year))])]}},{key:\"item.name\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(item.name))]),_c('div',{staticClass:\"font-weight-thin\"},[_vm._v(_vm._s(_vm._f(\"formatArray\")(item.divisions)))])]}},{key:\"item.public\",fn:function(ref){\nvar item = ref.item;\nreturn [(!item.public)?_c('v-tooltip',{attrs:{\"right\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-icon',_vm._g({},on),[_vm._v(\"fal fa-low-vision\")])]}}],null,true)},[_c('span',[_vm._v(\"Only you can see this\")])]):_vm._e()]}}],null,true),model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}})],1)],1),_c('v-fab-transition',[(_vm.window === 0)?_c('organization-add-dialog',{ref:\"addDialog\",attrs:{\"username\":_vm.username,\"exclude\":_vm.exclude,\"ratingSystem\":_vm.ratingSystem},on:{\"added\":_vm.onOrgAdded}}):_vm._e()],1),_c('v-fab-transition',[(_vm.window > 0)?_c('v-btn',{attrs:{\"color\":\"error white--text\",\"fab\":\"\",\"bottom\":\"\",\"right\":\"\",\"fixed\":\"\",\"disabled\":_vm.loading},on:{\"click\":function($event){$event.stopPropagation();return _vm.cancel($event)}}},[_c('v-icon',[_vm._v(\"fas fa-times\")])],1):_vm._e()],1),_c('v-fab-transition',[(_vm.window > 0 && _vm.saveable)?_c('v-btn',{staticStyle:{\"margin-right\":\"60px\"},attrs:{\"color\":\"success white--text\",\"fab\":\"\",\"bottom\":\"\",\"right\":\"\",\"fixed\":\"\",\"loading\":_vm.loading},on:{\"click\":function($event){$event.stopPropagation();return _vm.saveTournaments($event)}}},[_c('v-icon',[_vm._v(\"fas fa-save\")])],1):_vm._e()],1)],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('v-dialog',{attrs:{\"scrollable\":\"\",\"persistent\":\"\",\"max-width\":\"500px\",\"transition\":\"dialog-transition\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({attrs:{\"color\":\"color3 color3Text--text\",\"fab\":\"\",\"bottom\":\"\",\"right\":\"\",\"fixed\":\"\"}},on),[_c('v-icon',[_vm._v(\"fas fa-plus\")])],1)]}}]),model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',[_c('v-toolbar',{attrs:{\"color\":\"color1 color1Text--text\"}},[_c('v-toolbar-title',[_vm._v(\"Add An Organization\")]),_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"color2 color2Text--text\",\"fab\":\"\",\"small\":\"\"},on:{\"click\":function($event){$event.stopPropagation();_vm.dialog = false}}},[_c('v-icon',[_vm._v(\"fas fa-times\")])],1)],1),_c('v-card-text',[_c('v-window',{attrs:{\"touchless\":\"\"},model:{value:(_vm.window),callback:function ($$v) {_vm.window=$$v},expression:\"window\"}},[_c('v-window-item',{attrs:{\"value\":0}},[_c('organization-search',{ref:\"search\",attrs:{\"active\":_vm.window === 0,\"selector\":true,\"exclude\":_vm.exclude},on:{\"profile-selected\":_vm.onProfileSelected}})],1),_c('v-window-item',{attrs:{\"value\":1}},[(_vm.selectedProfile)?[_c('div',{staticClass:\"title text-center pb-4\"},[_vm._v(\"Add \"+_vm._s(_vm.selectedProfile.name)+\"?\")]),_c('div',{staticStyle:{\"height\":\"100px\"}},[_c('v-img',{attrs:{\"src\":_vm.selectedProfile.theme.logoUrl,\"contain\":\"\",\"width\":\"100%\",\"max-height\":\"90%\"}})],1)]:_vm._e()],2)],1)],1),_c('v-expand-transition',[(_vm.window===1)?_c('div',[_c('v-divider'),_c('v-card-actions',{staticClass:\"justify-center\"},[_c('v-btn',{attrs:{\"color\":\"success\",\"loading\":_vm.loading},on:{\"click\":function($event){$event.stopPropagation();return _vm.addOrganization($event)}}},[_vm._v(\"yes\")]),_c('v-btn',{attrs:{\"color\":\"error\",\"disabled\":_vm.loading},on:{\"click\":function($event){$event.stopPropagation();_vm.window=0}}},[_vm._v(\"no\")])],1)],1):_vm._e()])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <v-dialog\r\n v-model=\"dialog\"\r\n scrollable\r\n persistent\r\n max-width=\"500px\"\r\n transition=\"dialog-transition\"\r\n >\r\n <template v-slot:activator=\"{ on }\">\r\n <v-btn\r\n v-on=\"on\"\r\n color=\"color3 color3Text--text\"\r\n fab bottom right fixed\r\n >\r\n <v-icon>fas fa-plus</v-icon>\r\n </v-btn>\r\n </template>\r\n <v-card>\r\n <v-toolbar color=\"color1 color1Text--text\">\r\n <v-toolbar-title>Add An Organization</v-toolbar-title>\r\n <v-spacer></v-spacer>\r\n <v-btn color=\"color2 color2Text--text\" @click.stop=\"dialog = false\" fab small>\r\n <v-icon>fas fa-times</v-icon>\r\n </v-btn>\r\n </v-toolbar>\r\n <v-card-text>\r\n <v-window v-model=\"window\" touchless>\r\n <v-window-item :value=\"0\">\r\n <organization-search\r\n :active=\"window === 0\"\r\n :selector=\"true\"\r\n @profile-selected=\"onProfileSelected\"\r\n ref=\"search\"\r\n :exclude=\"exclude\"\r\n ></organization-search>\r\n </v-window-item>\r\n <v-window-item :value=\"1\">\r\n <template v-if=\"selectedProfile\">\r\n <div class=\"title text-center pb-4\">Add {{selectedProfile.name}}?</div>\r\n <div style=\"height: 100px\">\r\n <v-img :src=\"selectedProfile.theme.logoUrl\" contain width=\"100%\" max-height=\"90%\"></v-img>\r\n </div>\r\n </template>\r\n </v-window-item>\r\n </v-window>\r\n </v-card-text>\r\n <v-expand-transition>\r\n <div v-if=\"window===1\">\r\n <v-divider></v-divider>\r\n <v-card-actions class=\"justify-center\">\r\n <v-btn\r\n color=\"success\"\r\n @click.stop=\"addOrganization\"\r\n :loading=\"loading\"\r\n >yes</v-btn>\r\n <v-btn\r\n color=\"error\"\r\n @click.stop=\"window=0\"\r\n :disabled=\"loading\"\r\n >no</v-btn>\r\n </v-card-actions>\r\n </div>\r\n </v-expand-transition>\r\n </v-card>\r\n </v-dialog>\r\n</template>\r\n\r\n<script>\r\nimport { mapGetters } from 'vuex'\r\nimport OrganizationSearch from '@/components/Organization/OrganizationSearch.vue'\r\n\r\nexport default {\r\n props: ['username', 'exclude', 'ratingSystem'],\r\n data () {\r\n return {\r\n dialog: false,\r\n window: 0,\r\n selectedProfile: null,\r\n loading: false\r\n }\r\n },\r\n computed: {\r\n ...mapGetters(['user', 'getPageInfo']),\r\n page () {\r\n return this.getPageInfo(this.username)\r\n }\r\n },\r\n methods: {\r\n onProfileSelected (profile) {\r\n this.selectedProfile = profile\r\n this.window = 1\r\n },\r\n addOrganization () {\r\n this.loading = true\r\n this.$VBL.ratings.systemOrganizations.post(this.ratingSystem.id, this.selectedProfile.id)\r\n .then(r => {\r\n this.$emit('added', r.data)\r\n this.dialog = false\r\n })\r\n .catch(e => {\r\n console.log(e.response)\r\n })\r\n .finally(() => { this.loading = false })\r\n }\r\n },\r\n components: {\r\n OrganizationSearch\r\n },\r\n watch: {\r\n dialog: function (val) {\r\n if (!val) {\r\n this.window = 0\r\n if (this.$refs.search) {\r\n this.$refs.search.reset()\r\n }\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrganizationAddDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrganizationAddDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./OrganizationAddDialog.vue?vue&type=template&id=2249c464&scoped=true&\"\nimport script from \"./OrganizationAddDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./OrganizationAddDialog.vue?vue&type=script&lang=js&\"\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 \"2249c464\",\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 { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VExpandTransition } from 'vuetify/lib/components/transitions';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\nimport { VWindow } from 'vuetify/lib/components/VWindow';\nimport { VWindowItem } from 'vuetify/lib/components/VWindow';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VDialog,VDivider,VExpandTransition,VIcon,VImg,VSpacer,VToolbar,VToolbarTitle,VWindow,VWindowItem})\n","<template>\r\n <v-container fluid class=\"pt-0\">\r\n <loading-bar :value=\"loading\"></loading-bar>\r\n <v-row dense v-if=\"count > 3\">\r\n <v-col cols=\"12\">\r\n <v-text-field\r\n append-icon=\"fas fa-search\"\r\n label=\"Search\"\r\n hide-details\r\n v-model=\"search\"\r\n color=\"color3\"\r\n ></v-text-field>\r\n </v-col>\r\n </v-row>\r\n <v-window v-model=\"window\" touchless>\r\n <!-- ORGANIZATIONS -->\r\n <v-window-item :value=\"0\">\r\n <v-row dense>\r\n <v-col cols=\"12\">\r\n <p class=\"title\">Contributing Organizations</p>\r\n <p class=\"subheading mt-2\">\r\n These are the organizations that have the ability to contribute to the rating system.\r\n To view and/or edit the tournaments that each organization is contibuting to the rating system, click the organization.\r\n </p>\r\n </v-col>\r\n </v-row>\r\n <v-data-iterator\r\n :items=\"organizations\"\r\n :footer-props=\"{itemsPerPageOptions: rowsPerPageItems}\"\r\n :options.sync=\"pagination\"\r\n :search=\"search\"\r\n :hide-default-footer=\"count < 12\"\r\n >\r\n <template v-slot:default=\"{items}\">\r\n <v-row>\r\n <v-col\r\n v-for=\"item in items\"\r\n :key=\"item.id\"\r\n cols=\"6\" sm=\"6\" md=\"4\"\r\n >\r\n <organization-card\r\n :organization=\"item\"\r\n :selector=\"true\"\r\n @selected=\"onSelected\"\r\n ></organization-card>\r\n </v-col>\r\n </v-row>\r\n </template>\r\n <template v-slot:no-data>\r\n <v-card flat class=\"my-12\">\r\n <v-card-text class=\"text-center\">\r\n <h1>There are no organizations participating yet.</h1>\r\n <v-btn\r\n color=\"color3 color3Text--text\"\r\n @click.stop=\"addOrg\"\r\n class=\"mt-3\"\r\n >\r\n Add an Organizaiton\r\n </v-btn>\r\n </v-card-text>\r\n </v-card>\r\n </template>\r\n </v-data-iterator>\r\n </v-window-item>\r\n <!-- ORGANIZATION TOURNAMENTS -->\r\n <v-window-item :value=\"1\">\r\n <v-row dense>\r\n <v-col cols=\"12\">\r\n <p class=\"title\">{{selectedProfile && selectedProfile.name}}</p>\r\n <p class=\"subheading mt-2\">\r\n Select edit the tournaments that will contibute to the rating system, then click save (on the bottom right of the screen).\r\n </p>\r\n </v-col>\r\n <v-col cols=\"12\">\r\n <v-text-field\r\n color=\"color3\"\r\n append-icon=\"fas fa-search\"\r\n label=\"Search\"\r\n hide-details\r\n v-model=\"search\"\r\n solo-inverted\r\n clearable\r\n ></v-text-field>\r\n </v-col>\r\n </v-row>\r\n <v-data-table\r\n :headers=\"headers\"\r\n :items=\"rows\"\r\n :options.sync=\"listPage\"\r\n :footer-props=\"{itemsPerPageOptions: [25, 50, -1]}\"\r\n :loading=\"loading\"\r\n :loading-text=\"`Loading ${selectedProfile && selectedProfile.name}'s tournaments...`\"\r\n :search=\"search\"\r\n show-select\r\n v-model=\"selected\"\r\n >\r\n <template v-slot:progress>\r\n <v-progress-linear color=\"color3\" indeterminate></v-progress-linear>\r\n </template>\r\n <template v-slot:[`item.sanctionedBy`]=\"{item}\">\r\n <div style=\"width:95px\">\r\n <v-carousel\r\n :show-arrows=\"false\"\r\n hide-delimiters\r\n height=\"40\"\r\n max=\"95\"\r\n class=\"elevation-0\"\r\n cycle continuous\r\n interval=\"3000\"\r\n >\r\n <v-carousel-item\r\n height=\"40px\"\r\n v-for=\"(logo, i) in item.logos\"\r\n :key=\"`${logo.url}_${i}`\"\r\n :src=\"logo.url\"\r\n :class=\"logo.class\"\r\n contain\r\n ></v-carousel-item>\r\n </v-carousel>\r\n </div>\r\n </template>\r\n <template v-slot:[`item.startDate`]=\"{item}\">\r\n <div>{{ item.dateDisplay }}</div>\r\n <div>{{ item.year }}</div>\r\n </template>\r\n <template v-slot:[`item.name`]=\"{item}\">\r\n <div class=\"font-weight-bold\">{{ item.name }}</div>\r\n <div class=\"font-weight-thin\">{{ item.divisions | formatArray }}</div>\r\n </template>\r\n <template v-slot:[`item.public`]=\"{item}\">\r\n <v-tooltip right v-if=\"!item.public\">\r\n <span>Only you can see this</span>\r\n <template v-slot:activator=\"{ on }\">\r\n <v-icon v-on=\"on\">fal fa-low-vision</v-icon>\r\n </template>\r\n </v-tooltip>\r\n </template>\r\n </v-data-table>\r\n </v-window-item>\r\n </v-window>\r\n <v-fab-transition>\r\n <organization-add-dialog\r\n ref=\"addDialog\"\r\n v-if=\"window === 0\"\r\n :username=\"username\"\r\n @added=\"onOrgAdded\"\r\n :exclude=\"exclude\"\r\n :ratingSystem=\"ratingSystem\"\r\n ></organization-add-dialog>\r\n </v-fab-transition>\r\n <v-fab-transition>\r\n <v-btn\r\n v-if=\"window > 0\"\r\n color=\"error white--text\"\r\n fab bottom right fixed\r\n @click.stop=\"cancel\"\r\n :disabled=\"loading\"\r\n >\r\n <v-icon>fas fa-times</v-icon>\r\n </v-btn>\r\n </v-fab-transition>\r\n <v-fab-transition>\r\n <v-btn\r\n v-if=\"window > 0 && saveable\"\r\n color=\"success white--text\"\r\n style=\"margin-right: 60px\"\r\n fab bottom right fixed\r\n @click.stop=\"saveTournaments\"\r\n :loading=\"loading\"\r\n >\r\n <v-icon>fas fa-save</v-icon>\r\n </v-btn>\r\n </v-fab-transition>\r\n </v-container>\r\n</template>\r\n\r\n<script>\r\nimport OrganizationCard from '@/components/Organization/FlashCard.vue'\r\nimport OrganizationAddDialog from '@/components/Ratings/OrganizationAddDialog.vue'\r\nimport { mapGetters } from 'vuex'\r\nimport Summary from '@/classes/TournamentSummary'\r\n\r\nexport default {\r\n props: ['username', 'ratingSystem'],\r\n data () {\r\n return {\r\n loading: false,\r\n organizations: [],\r\n search: null,\r\n pagination: { itemssPerPage: 12 },\r\n rowsPerPageItems: [12, 24, 36],\r\n window: 0,\r\n selectedProfile: null,\r\n summaries: [],\r\n listPage: { sortBy: ['startDate'], itemsPerPage: 25, sortDesc: [true] },\r\n selected: []\r\n }\r\n },\r\n computed: {\r\n ...mapGetters(['user', 'getPageInfo']),\r\n page () {\r\n return this.getPageInfo(this.username)\r\n },\r\n count () {\r\n return this.organizations.length\r\n },\r\n exclude () {\r\n return this.organizations.map(m => m.username)\r\n },\r\n headers () {\r\n return [\r\n { value: 'sanctionedBy', align: 'left', sortable: true },\r\n { text: 'Date', value: 'startDate', align: 'left', sortable: true },\r\n { text: 'Name', value: 'name', align: 'left', sortable: true },\r\n { text: 'Location', value: 'locations', align: 'left', sortable: true },\r\n { value: 'public', align: 'left', sortable: 'false' }\r\n ]\r\n },\r\n rows () {\r\n if (!this.summaries) return []\r\n var base = this.summaries\r\n var result = base.map((t) => {\r\n return {\r\n id: t.id,\r\n startDate: t.timestamp,\r\n dateDisplay: t.startDate.isSame(t.endDate) ? t.startDate.format('MMM Do') : `${t.startDate.format('MMM Do')} - ${t.endDate.format('MMM Do')}`,\r\n dayDisplay: t.startDate.isSame(t.endDate) ? t.startDate.format('dddd') : `${t.startDate.format('ddd')} - ${t.endDate.format('ddd')}`,\r\n name: t.name,\r\n locations: t.locationsString,\r\n public: t.isPublic,\r\n regOpen: t.regOpen,\r\n sanctionedBy: t.sanctionedBy || '',\r\n admin: this.user && this.user.isTournamentAdmin(t),\r\n ibvl: t.ibvl,\r\n logos: t.logos.filter(f => f && f.url) || [],\r\n divisions: (t.divisionNames || []).sort(),\r\n tournament: t,\r\n tags: t.tags,\r\n year: t.startDate.format('YYYY')\r\n }\r\n })\r\n if (!result.length) return [{ x: 'filler' }]\r\n return result\r\n },\r\n selectedIds () {\r\n return new Set(this.selected.map(m => m.id))\r\n },\r\n dto () {\r\n return {\r\n add: this.selected.filter(f => !f.pstId).map(m => m.id),\r\n remove: this.summaries.filter(f => f.pstId && !this.selectedIds.has(f.id)).map(m => m.id)\r\n }\r\n },\r\n saveable () {\r\n return this.dto.add.length || this.dto.remove.length\r\n }\r\n },\r\n methods: {\r\n loadOrganizations () {\r\n this.loading = true\r\n this.$VBL.ratings.systemOrganizations.get(this.ratingSystem.id)\r\n .then(response => {\r\n this.organizations = response.data\r\n })\r\n .catch(err => console.log(err.response))\r\n .finally(() => {\r\n this.loading = false\r\n })\r\n },\r\n addOrg () {\r\n if (this.$refs.addDialog) this.$refs.addDialog.dialog = true\r\n },\r\n onOrgAdded (org) {\r\n this.organizations.push(org)\r\n },\r\n onSelected (org) {\r\n this.selectedProfile = org\r\n this.loadTournaments()\r\n this.window = 1\r\n },\r\n loadTournaments () {\r\n this.loading = true\r\n // this.$VBL.tournament.getAllSummaries(`organizationUserName=${this.selectedProfile.username}&coOp=\"false`)\r\n this.$VBL.ratings.systemOrganizations.tournaments.get(this.ratingSystem.id, this.selectedProfile.username)\r\n .then(r => {\r\n this.loadSummaries(r.data)\r\n })\r\n .catch((error) => { console.log(error) })\r\n .finally(() => { this.loading = false })\r\n },\r\n cancel () {\r\n this.window = 0\r\n setTimeout(() => {\r\n this.summaries = []\r\n }, 500)\r\n },\r\n saveTournaments () {\r\n this.loading = true\r\n this.$VBL.ratings.systemOrganizations.tournaments.post(this.ratingSystem.id, this.selectedProfile.username, this.dto)\r\n .then(r => {\r\n this.loadSummaries(r.data)\r\n })\r\n .catch((error) => { console.log(error) })\r\n .finally(() => { this.loading = false })\r\n },\r\n loadSummaries (data) {\r\n this.summaries = data.map(s => new Summary(s))\r\n this.selected = this.summaries.filter(f => f.pstId)\r\n }\r\n },\r\n components: {\r\n OrganizationCard,\r\n OrganizationAddDialog\r\n },\r\n mounted () {\r\n this.loadOrganizations()\r\n },\r\n watch: {\r\n window: function (val) {\r\n if (!val) {\r\n this.selected = []\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.flexcard {\r\n cursor: pointer;\r\n}\r\n.social {\r\n border-radius: 15px;\r\n}\r\n.social .v-icon {\r\n font-size: 30px !important;\r\n}\r\n.social .v-icon.fa-twitter,\r\n.social .v-icon.fa-snapchat-ghost {\r\n font-size: 24px !important;\r\n}\r\n.instagram {\r\n background: #d6249f;\r\n background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);\r\n}\r\n.fa-facebook-f:before {\r\n margin-left: 6px;\r\n margin-top: 6px;\r\n}\r\n\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrganizationManager.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrganizationManager.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./OrganizationManager.vue?vue&type=template&id=12b1ecc3&scoped=true&\"\nimport script from \"./OrganizationManager.vue?vue&type=script&lang=js&\"\nexport * from \"./OrganizationManager.vue?vue&type=script&lang=js&\"\nimport style0 from \"./OrganizationManager.vue?vue&type=style&index=0&id=12b1ecc3&scoped=true&lang=css&\"\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 \"12b1ecc3\",\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 { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCarousel } from 'vuetify/lib/components/VCarousel';\nimport { VCarouselItem } from 'vuetify/lib/components/VCarousel';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDataIterator } from 'vuetify/lib/components/VDataIterator';\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\nimport { VFabTransition } from 'vuetify/lib/components/transitions';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VProgressLinear } from 'vuetify/lib/components/VProgressLinear';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\nimport { VWindow } from 'vuetify/lib/components/VWindow';\nimport { VWindowItem } from 'vuetify/lib/components/VWindow';\ninstallComponents(component, {VBtn,VCard,VCardText,VCarousel,VCarouselItem,VCol,VContainer,VDataIterator,VDataTable,VFabTransition,VIcon,VProgressLinear,VRow,VTextField,VTooltip,VWindow,VWindowItem})\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrganizationManager.vue?vue&type=style&index=0&id=12b1ecc3&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrganizationManager.vue?vue&type=style&index=0&id=12b1ecc3&scoped=true&lang=css&\""],"sourceRoot":""}