{"version":3,"sources":["webpack:///./src/Pages/_OrgUsername/Points.vue?a830","webpack:///./src/components/Points/PointSystemManager.vue?2ae5","webpack:///src/components/Points/PointSystemManager.vue","webpack:///./src/components/Points/PointSystemManager.vue?312c","webpack:///./src/components/Points/PointSystemManager.vue","webpack:///src/Pages/_OrgUsername/Points.vue","webpack:///./src/Pages/_OrgUsername/Points.vue?1297","webpack:///./src/Pages/_OrgUsername/Points.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","loading","length","pointSystem","options","on","onUpdate","_e","staticRenderFns","props","expo","logo","_v","_s","name","header","domProps","staticClass","text","value","align","expoPoints","pager","$event","footer","class","isTab","editing","model","callback","$$v","$set","expression","_l","table","key","title","headers","rows","scopedSlots","_u","fn","ref","item","finish","_f","points","proxy","multipliers","mHeaders","itemsPerPage","dirty","staticStyle","stopPropagation","save","rightFab","icon","color","click","data","pointScale2","multipliers2","editable","computed","cancel","edit","dto","id","pointValues","forEach","d","JSON","stringify","pv","push","tables","pointScale","map","m","division","teamCountMultipliers","jsonProps","parse","sort","adult","a","juniors","j","methods","getScale","loading1","$VBL","getPointScale","getMultipliers","loading2","post","created","component","VBtn","VCard","VCardText","VCheckbox","VCol","VContainer","VDataTable","VEditDialog","VFabTransition","VIcon","VImg","VRow","VSelect","VSwitch","VTextField","VToolbar","VToolbarTitle","loadPointSystem","get","username","loadOptions","$http","mounted","components","PointSystemManager","VExpandTransition"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACE,MAAM,CAAC,KAAO,GAAG,KAAO,KAAK,CAACF,EAAG,cAAc,CAACE,MAAM,CAAC,QAAUN,EAAIO,QAAQC,UAAUJ,EAAG,sBAAsB,CAAEJ,EAAIS,aAAeT,EAAIU,QAASN,EAAG,uBAAuB,CAACE,MAAM,CAAC,OAAQ,EAAK,YAAcN,EAAIS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,YACRkD,KAFF,WAGI,MAAO,CACL1D,QAAS,GACTE,YAAa,KACbC,QAAS,OAGboF,QAAS,CACP2B,gBADJ,WACA,WACMxH,KAAKM,QAAQyE,KAAK,GAClB/E,KAAKgG,KAAK7C,OAAOsE,IAAIzH,KAAK0H,UAChC,kBAAQ,EAAR,sBACA,mBAAQ,OAAR,kBACA,qBAAQ,EAAR,0DAEIC,YARJ,WAQA,WACM3H,KAAKM,QAAQyE,KAAK,GAClB/E,KAAK4H,MAAMH,IAAI,GAArB,sEACA,kBAAQ,EAAR,kBACA,qBAAQ,EAAR,0DAEI9G,SAdJ,SAcA,GACMX,KAAKQ,YAAc+D,IAGvBsD,QA3BF,WA4BI7H,KAAKwH,kBACLxH,KAAK2H,eAEPG,WAAY,CACVC,mBAAJ,IClD+V,ICO3V,EAAY,eACd,EACAjI,EACAe,GACA,EACA,KACA,KACA,MAIa,eAAiB,QAMhC,IAAkB,EAAW,CAAC2F,QAAA,KAAMwB,kBAAA","file":"js/chunk-2d225605.36415a9e.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',{attrs:{\"flat\":\"\",\"tile\":\"\"}},[_c('loading-bar',{attrs:{\"value\":!!_vm.loading.length}}),_c('v-expand-transition',[(_vm.pointSystem && _vm.options)?_c('point-system-manager',{attrs:{\"isTab\":true,\"pointSystem\":_vm.pointSystem,\"tournamentOptions\":_vm.options},on:{\"update\":_vm.onUpdate}}):_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('div',[(_vm.props && _vm.props.expo)?_c('v-container',[_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',[(_vm.props && _vm.props.logo)?_c('v-img',{attrs:{\"src\":_vm.props.logo,\"height\":\"150px\",\"contain\":\"\"}}):_vm._e(),_c('h2',[_vm._v(\"The \"+_vm._s(_vm.pointSystem.name)+\" Point System\")]),(_vm.props && _vm.props.header)?_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.props.header)}}):_vm._e()],1),_c('v-col',{staticClass:\"text-center\",attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"headline\"},[_vm._v(\" Division Base Points x Number of Teams Entered = Total Points Earned \")]),_c('div',[_vm._v(\"1st Place = 100% of Points\")]),_c('div',[_vm._v(\"2nd Place = 90% of 1st Place\")]),_c('div',[_vm._v(\"3rd Place = 90 % of 2nd Place\")]),_c('div',[_vm._v(\"And so on… with each place receiving 90% of the place before it.\")])])],1),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\",\"offset-md\":\"3\"}},[_c('v-card',{staticClass:\"text-center elevation-1\",attrs:{\"flat\":\"\"}},[_c('v-toolbar',{attrs:{\"dense\":\"\",\"color\":\"color1 color1Text--text\"}},[_c('v-toolbar-title',[_vm._v(\"Base Point Scale\")])],1),_c('v-card-text',{staticClass:\"px-0 text-center\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Division Base Points\")]),_c('div',{staticClass:\"subtitle\"},[_vm._v(\"Each division has a base number of points that never changes.\")]),(_vm.expoPoints)?_c('v-data-table',{attrs:{\"headers\":[\n                {text: 'Adults', value: 'adult', align: 'center'},\n                {text: 'Juniors', value: 'juniors', align: 'center'},\n                {text: 'Division Points', value: 'points', align: 'center'}\n              ],\"items\":_vm.expoPoints,\"options\":_vm.pager,\"hide-default-footer\":\"\",\"dense\":\"\",\"mobile-breakpoint\":0},on:{\"update:options\":function($event){_vm.pager=$event}}}):_vm._e()],1)],1)],1)],1),(_vm.props && _vm.props.footer)?_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"},domProps:{\"innerHTML\":_vm._s(_vm.props.footer)}})],1):_vm._e()],1):_c('v-container',{class:{'pa-0': !_vm.isTab},attrs:{\"fluid\":\"\"}},[_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"6\",\"md\":\"4\",\"lg\":\"3\"}},[_c('v-switch',{attrs:{\"label\":\"Published\",\"color\":\"color3\",\"disabled\":!_vm.editing},model:{value:(_vm.model.published),callback:function ($$v) {_vm.$set(_vm.model, \"published\", $$v)},expression:\"model.published\"}})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"6\",\"md\":\"4\",\"lg\":\"3\"}},[_c('v-text-field',{attrs:{\"label\":\"Short Name\",\"color\":\"color3\",\"disabled\":!_vm.editing},model:{value:(_vm.model.shortName),callback:function ($$v) {_vm.$set(_vm.model, \"shortName\", $$v)},expression:\"model.shortName\"}})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"6\",\"md\":\"4\",\"lg\":\"3\"}},[_c('v-select',{attrs:{\"items\":[\n            { text: 'Standard', value: 'standard' },\n            { text: 'Exponential', value: 'expo' }\n          ],\"label\":\"Type\",\"color\":\"color3\",\"item-color\":\"color3\",\"disabled\":!_vm.editing || true},model:{value:(_vm.model.type),callback:function ($$v) {_vm.$set(_vm.model, \"type\", $$v)},expression:\"model.type\"}})],1)],1),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"12\"}})],1),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',{staticClass:\"px-0\",attrs:{\"cols\":\"12\"}},[_c('v-card',{staticClass:\"text-center elevation-1\",attrs:{\"flat\":\"\"}},[_c('v-toolbar',{attrs:{\"dense\":\"\",\"color\":\"color1 color1Text--text\"}},[_c('v-toolbar-title',[_vm._v(\"Base Point Scale\")])],1),_c('v-card-text',[_c('v-row',{attrs:{\"dense\":\"\"}},_vm._l((_vm.tables),function(table){return _c('v-col',{key:table.title,attrs:{\"cols\":\"12\",\"sm\":\"6\",\"lg\":\"4\",\"xl\":\"3\"}},[_c('v-card',[_c('v-toolbar',{attrs:{\"dense\":\"\",\"color\":\"color2 color2Text--text\"}},[_c('v-toolbar-title',[_vm._v(_vm._s(table.title))])],1),_c('v-card-text',[_c('v-data-table',{attrs:{\"headers\":_vm.headers,\"items\":table.rows,\"options\":_vm.pager,\"hide-default-footer\":\"\",\"dense\":\"\",\"mobile-breakpoint\":0},on:{\"update:options\":function($event){_vm.pager=$event}},scopedSlots:_vm._u([{key:\"item.finish\",fn:function(ref){\n          var item = ref.item;\nreturn [(item.finish < 100000)?_c('span',[_vm._v(_vm._s(_vm._f(\"ordinal\")(item.finish)))]):_c('span',[_vm._v(\"All others\")])]}},{key:\"item.points\",fn:function(ref){\n          var item = ref.item;\nreturn [_c('v-edit-dialog',{attrs:{\"disabled\":!_vm.editing,\"return-value\":item.points},on:{\"update:returnValue\":function($event){return _vm.$set(item, \"points\", $event)},\"update:return-value\":function($event){return _vm.$set(item, \"points\", $event)}},scopedSlots:_vm._u([{key:\"input\",fn:function(){return [_c('v-text-field',{attrs:{\"type\":\"number\",\"label\":\"Points\",\"single-line\":\"\",\"color\":\"color3\",\"disabled\":!_vm.editing},model:{value:(item.points),callback:function ($$v) {_vm.$set(item, \"points\", $$v)},expression:\"item.points\"}})]},proxy:true}],null,true)},[_vm._v(\" \"+_vm._s(item.points)+\" \")])]}},{key:\"item.noDisplay\",fn:function(ref){\n          var item = ref.item;\nreturn [_c('v-checkbox',{staticClass:\"mt-0\",attrs:{\"hide-details\":\"\",\"single-line\":\"\",\"color\":\"success\",\"disabled\":!_vm.editing},model:{value:(item.noDisplay),callback:function ($$v) {_vm.$set(item, \"noDisplay\", $$v)},expression:\"item.noDisplay\"}})]}},{key:\"item.perTeam\",fn:function(ref){\n          var item = ref.item;\nreturn [_c('v-checkbox',{staticClass:\"mt-0\",attrs:{\"value\":true,\"hide-details\":\"\",\"single-line\":\"\",\"color\":\"success\",\"disabled\":!_vm.editing},model:{value:(item.perTeam),callback:function ($$v) {_vm.$set(item, \"perTeam\", $$v)},expression:\"item.perTeam\"}})]}}],null,true)})],1)],1)],1)}),1)],1)],1)],1)],1),(_vm.multipliers.length)?_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',[_c('v-card',{staticClass:\"text-center\"},[_c('v-toolbar',{attrs:{\"dense\":\"\",\"color\":\"color1 color1Text--text\"}},[_c('v-toolbar-title',[_vm._v(\"Team Participation Multiplier\")])],1),_c('v-card-text',[_c('v-data-table',{attrs:{\"headers\":_vm.mHeaders,\"items\":_vm.multipliers,\"hide-default-footer\":\"\",\"loading\":_vm.loading,\"options\":{itemsPerPage: -1},\"dense\":\"\"}})],1)],1)],1)],1):_vm._e()],1),_c('v-fab-transition',[(_vm.editing)?_c('v-btn',{key:_vm.dirty,staticStyle:{\"margin-right\":\"60px\"},attrs:{\"fab\":\"\",\"fixed\":\"\",\"bottom\":\"\",\"right\":\"\",\"disabled\":!_vm.dirty,\"color\":\"success white--text\",\"loading\":_vm.loading},on:{\"click\":function($event){$event.stopPropagation();return _vm.save($event)}}},[_c('v-icon',[_vm._v(\"fas fa-save\")])],1):_vm._e()],1),_c('v-fab-transition',[_c('v-btn',{key:_vm.rightFab.icon,attrs:{\"fab\":\"\",\"fixed\":\"\",\"bottom\":\"\",\"right\":\"\",\"color\":_vm.rightFab.color,\"disabled\":_vm.loading},on:{\"click\":function($event){$event.stopPropagation();return _vm.rightFab.click($event)}}},[_c('v-icon',[_vm._v(_vm._s(_vm.rightFab.icon))])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <div>\r\n    <v-container v-if=\"props && props.expo\">\r\n      <v-row dense>\r\n        <v-col>\r\n            <v-img\r\n              v-if=\"props && props.logo\"\r\n              :src=\"props.logo\"\r\n              height=\"150px\"\r\n              contain=\"\"\r\n            ></v-img>\r\n            <h2>The {{pointSystem.name}} Point System</h2>\r\n            <div v-if=\"props && props.header\" v-html=\"props.header\"></div>\r\n        </v-col>\r\n        <v-col cols=\"12\" class=\"text-center\">\r\n          <div class=\"headline\">\r\n            Division Base Points x Number of Teams Entered = Total Points Earned\r\n          </div>\r\n          <div>1st Place = 100% of Points</div>\r\n          <div>2nd Place = 90% of 1st Place</div>\r\n          <div>3rd Place = 90 % of 2nd Place</div>\r\n          <div>And so on… with each place receiving 90% of the place before it.</div>\r\n        </v-col>\r\n      </v-row>\r\n      <v-row dense>\r\n        <v-col cols=\"12\" md=\"6\" offset-md=\"3\">\r\n          <v-card flat class=\"text-center elevation-1\">\r\n            <v-toolbar dense color=\"color1 color1Text--text\">\r\n              <v-toolbar-title>Base Point Scale</v-toolbar-title>\r\n            </v-toolbar>\r\n            <v-card-text class=\"px-0 text-center\">\r\n              <div class=\"title\">Division Base Points</div>\r\n              <div class=\"subtitle\">Each division has a base number of points that never changes.</div>\r\n              <v-data-table\r\n                v-if=\"expoPoints\"\r\n                :headers=\"[\r\n                  {text: 'Adults', value: 'adult', align: 'center'},\r\n                  {text: 'Juniors', value: 'juniors', align: 'center'},\r\n                  {text: 'Division Points', value: 'points', align: 'center'}\r\n                ]\"\r\n                :items=\"expoPoints\"\r\n                :options.sync=\"pager\"\r\n                hide-default-footer\r\n                dense\r\n                :mobile-breakpoint=\"0\"\r\n              >\r\n              </v-data-table>\r\n            </v-card-text>\r\n          </v-card>\r\n        </v-col>\r\n      </v-row>\r\n      <v-row v-if=\"props && props.footer\">\r\n        <v-col cols=\"12\" v-html=\"props.footer\"></v-col>\r\n      </v-row>\r\n    </v-container>\r\n    <v-container v-else fluid :class=\"{'pa-0': !isTab}\">\r\n      <v-row dense>\r\n        <v-col cols=\"12\" sm=\"6\" md=\"4\" lg=\"3\">\r\n          <v-switch\r\n            label=\"Published\"\r\n            v-model=\"model.published\"\r\n            color=\"color3\"\r\n            :disabled=\"!editing\"\r\n          ></v-switch>\r\n        </v-col>\r\n        <v-col cols=\"12\" sm=\"6\" md=\"4\" lg=\"3\">\r\n          <v-text-field\r\n            label=\"Short Name\"\r\n            v-model=\"model.shortName\"\r\n            color=\"color3\"\r\n            :disabled=\"!editing\"\r\n          ></v-text-field>\r\n        </v-col>\r\n        <v-col cols=\"12\" sm=\"6\" md=\"4\" lg=\"3\">\r\n          <v-select\r\n            :items=\"[\r\n              { text: 'Standard', value: 'standard' },\r\n              { text: 'Exponential', value: 'expo' }\r\n            ]\"\r\n            v-model=\"model.type\"\r\n            label=\"Type\"\r\n            color=\"color3\"\r\n            item-color=\"color3\"\r\n            :disabled=\"!editing || true\"\r\n          ></v-select>\r\n        </v-col>\r\n      </v-row>\r\n      <v-row dense>\r\n        <v-col cols=\"12\"></v-col>\r\n      </v-row>\r\n      <v-row dense>\r\n        <v-col cols=\"12\" class=\"px-0\">\r\n          <v-card flat class=\"text-center elevation-1\">\r\n            <v-toolbar dense color=\"color1 color1Text--text\">\r\n              <v-toolbar-title>Base Point Scale</v-toolbar-title>\r\n            </v-toolbar>\r\n            <v-card-text>\r\n              <v-row dense>\r\n                <v-col cols=\"12\" sm=\"6\" lg=\"4\" xl=\"3\" v-for=\"table in tables\" :key=\"table.title\">\r\n                  <v-card>\r\n                    <v-toolbar dense color=\"color2 color2Text--text\">\r\n                      <v-toolbar-title>{{table.title}}</v-toolbar-title>\r\n                    </v-toolbar>\r\n                    <v-card-text>\r\n                      <v-data-table\r\n                        :headers=\"headers\"\r\n                        :items=\"table.rows\"\r\n                        :options.sync=\"pager\"\r\n                        hide-default-footer\r\n                        dense\r\n                        :mobile-breakpoint=\"0\"\r\n                      >\r\n\r\n                        <template v-slot:[`item.finish`]=\"{item}\">\r\n                          <span v-if=\"item.finish < 100000\">{{item.finish | ordinal}}</span>\r\n                          <span v-else>All others</span>\r\n                        </template>\r\n                        <template v-slot:[`item.points`]=\"{item}\">\r\n                          <v-edit-dialog\r\n                            :disabled=\"!editing\"\r\n                            :return-value.sync=\"item.points\"\r\n                          > {{item.points}}\r\n                            <template v-slot:input>\r\n                              <v-text-field\r\n                                v-model=\"item.points\"\r\n                                type=\"number\"\r\n                                label=\"Points\"\r\n                                single-line\r\n                                color=\"color3\"\r\n                                :disabled=\"!editing\"\r\n                              ></v-text-field>\r\n                            </template>\r\n                          </v-edit-dialog>\r\n                        </template>\r\n                        <template v-slot:[`item.noDisplay`]=\"{item}\">\r\n                          <v-checkbox\r\n                            class=\"mt-0\"\r\n                            v-model=\"item.noDisplay\"\r\n                            hide-details single-line\r\n                            color=\"success\"\r\n                            :disabled=\"!editing\"\r\n                          ></v-checkbox>\r\n                        </template>\r\n                        <template v-slot:[`item.perTeam`]=\"{item}\">\r\n                          <v-checkbox\r\n                            class=\"mt-0\"\r\n                            v-model=\"item.perTeam\"\r\n                            :value=\"true\"\r\n                            hide-details single-line\r\n                            color=\"success\"\r\n                            :disabled=\"!editing\"\r\n                          ></v-checkbox>\r\n                        </template>\r\n                      </v-data-table>\r\n                    </v-card-text>\r\n                  </v-card>\r\n                </v-col>\r\n              </v-row>\r\n            </v-card-text>\r\n          </v-card>\r\n        </v-col>\r\n      </v-row>\r\n      <v-row dense v-if=\"multipliers.length\">\r\n        <v-col>\r\n          <v-card class=\"text-center\">\r\n            <v-toolbar dense color=\"color1 color1Text--text\">\r\n              <v-toolbar-title>Team Participation Multiplier</v-toolbar-title>\r\n            </v-toolbar>\r\n            <v-card-text>\r\n              <v-data-table\r\n                :headers=\"mHeaders\"\r\n                :items=\"multipliers\"\r\n                hide-default-footer\r\n                :loading=\"loading\"\r\n                :options=\"{itemsPerPage: -1}\"\r\n                dense\r\n              >\r\n              </v-data-table>\r\n            </v-card-text>\r\n          </v-card>\r\n        </v-col>\r\n      </v-row>\r\n    </v-container>\r\n    <v-fab-transition>\r\n      <v-btn\r\n        fab fixed bottom right\r\n        style=\"margin-right: 60px\"\r\n        v-if=\"editing\"\r\n        :disabled=\"!dirty\"\r\n        :key=\"dirty\"\r\n        color=\"success white--text\"\r\n        @click.stop=\"save\"\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-fab-transition>\r\n      <v-btn\r\n        fab fixed bottom right\r\n        :key=\"rightFab.icon\"\r\n        :color=\"rightFab.color\"\r\n        @click.stop=\"rightFab.click\"\r\n        :disabled=\"loading\"\r\n      >\r\n        <v-icon>{{rightFab.icon}}</v-icon>\r\n      </v-btn>\r\n    </v-fab-transition>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport uniq from 'lodash.uniq'\r\nimport { firstBy } from 'thenby'\r\n// import each from 'lodash.foreach'\r\n\r\nexport default {\r\n  props: ['isTab', 'pointSystem', 'tournamentOptions'],\r\n  data () {\r\n    return {\r\n      loading: false,\r\n      headers: [\r\n        { text: 'Finish', align: 'left', sortable: false, value: 'finish' },\r\n        { text: 'Points', align: 'left', sortable: false, value: 'points' },\r\n        { text: 'Hidden', align: 'left', sortable: false, value: 'noDisplay' },\r\n        { text: 'Per Team', align: 'left', sortable: false, value: 'perTeam' }\r\n      ],\r\n      pager: { sortBy: ['points'], itemsPerPage: -1, sortDesc: [true] },\r\n      mHeaders: [\r\n        { text: 'Teams', align: 'left', sortable: false, value: 'description' },\r\n        { text: 'Point Multiplier', align: 'left', sortable: false, value: 'multiplier' }\r\n      ],\r\n      pointScale2: null,\r\n      multipliers2: null,\r\n      editing: false,\r\n      editable: null\r\n    }\r\n  },\r\n  computed: {\r\n    rightFab () {\r\n      return this.editing ? {\r\n        icon: 'fas fa-times',\r\n        color: 'error white--text',\r\n        click: this.cancel\r\n      } : {\r\n        icon: 'fas fa-pencil',\r\n        color: 'color3 color3Text--text',\r\n        click: this.edit\r\n      }\r\n    },\r\n    model () {\r\n      return this.editing ? this.editable : this.pointSystem\r\n    },\r\n    dto () {\r\n      if (!this.editable || !this.dirty) return null\r\n      var dto = {\r\n        id: this.pointSystem.id,\r\n        pointValues: []\r\n      }\r\n\r\n      this.editable.pointValues.forEach(pv => {\r\n        const d = this.pointSystem.pointValues.find(f => f.id === pv.id)\r\n        if (d && JSON.stringify(d) !== JSON.stringify(pv)) dto.pointValues.push(pv)\r\n      })\r\n\r\n      return dto\r\n    },\r\n    dirty () {\r\n      return JSON.stringify(this.pointSystem) !== JSON.stringify(this.editable)\r\n    },\r\n    tables () {\r\n      if (!this.pointScale) return []\r\n      const tables = uniq(this.pointScale.map(p => p.division)).sort().reverse()\r\n      return tables.map((table) => {\r\n        return { title: table, rows: this.pointScale.filter(p => p.division === table) }\r\n      })\r\n    },\r\n    pointScale () {\r\n      return this.model.pointValues.map(m => {\r\n        const d = this.tournamentOptions.divisionOptions.find(f => f.id === m.divisionId)\r\n        if (d) m.division = d.name\r\n        return m\r\n      })\r\n    },\r\n    multipliers () {\r\n      return this.model.teamCountMultipliers\r\n    },\r\n    props () {\r\n      return this.pointSystem.jsonProps && JSON.parse(this.pointSystem.jsonProps)\r\n    },\r\n    expoPoints () {\r\n      if (this.pointScale2) {\r\n        var points = uniq(this.pointScale2.map(p => p.points))\r\n        return points.sort(firstBy(Number, -1)).map(m => {\r\n          const a = this.pointScale2.find(f => f.points === m && f.ageType === 2)\r\n          const j = this.pointScale2.find(f => f.points === m && f.ageType === 1)\r\n          return {\r\n            points: m,\r\n            adult: a ? a.division : '-',\r\n            juniors: j ? j.division : '-'\r\n          }\r\n        })\r\n      }\r\n      return null\r\n    }\r\n  },\r\n  methods: {\r\n    edit () {\r\n      this.editable = JSON.parse(JSON.stringify(this.pointSystem))\r\n      this.editing = true\r\n    },\r\n    cancel () {\r\n      this.editable = null\r\n      this.editing = false\r\n    },\r\n    getScale () {\r\n      this.loading1 = true\r\n      this.$VBL.getPointScale(`${this.pointSystem.id}`)\r\n        .then((response) => {\r\n          this.pointScale2 = response.data\r\n          this.loading1 = false\r\n        })\r\n        .catch((error) => {\r\n          console.log(error)\r\n          this.loading1 = false\r\n        })\r\n    },\r\n    getMultipliers () {\r\n      this.loading2 = true\r\n      this.$VBL.getMultipliers(`${this.pointSystem.id}`)\r\n        .then((response) => {\r\n          this.multipliers2 = response.data\r\n          this.loading2 = false\r\n        })\r\n        .catch((error) => {\r\n          console.log(error)\r\n          this.loading2 = false\r\n        })\r\n    },\r\n    save () {\r\n      this.loading = true\r\n      this.$VBL.points.post(this.dto)\r\n        .then(r => {\r\n          this.$emit('update', r.data)\r\n          this.cancel()\r\n        })\r\n        .catch(e => console.log(e.response))\r\n        .finally(f => {\r\n          this.loading = false\r\n        })\r\n    }\r\n  },\r\n  created () {\r\n    this.getScale()\r\n    this.getMultipliers()\r\n  }\r\n}\r\n</script>\r\n\r\n<style>\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!./PointSystemManager.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!./PointSystemManager.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PointSystemManager.vue?vue&type=template&id=0802876c&\"\nimport script from \"./PointSystemManager.vue?vue&type=script&lang=js&\"\nexport * from \"./PointSystemManager.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  null,\n  null\n  \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCheckbox } from 'vuetify/lib/components/VCheckbox';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\nimport { VEditDialog } from 'vuetify/lib/components/VDataTable';\nimport { VFabTransition } from 'vuetify/lib/components/transitions';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\nimport { VSwitch } from 'vuetify/lib/components/VSwitch';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VBtn,VCard,VCardText,VCheckbox,VCol,VContainer,VDataTable,VEditDialog,VFabTransition,VIcon,VImg,VRow,VSelect,VSwitch,VTextField,VToolbar,VToolbarTitle})\n","<template>\r\n  <v-card flat tile>\r\n    <loading-bar :value=\"!!loading.length\"></loading-bar>\r\n    <v-expand-transition>\r\n      <point-system-manager\r\n        v-if=\"pointSystem && options\"\r\n        :isTab=\"true\"\r\n        :pointSystem=\"pointSystem\"\r\n        :tournamentOptions=\"options\"\r\n        @update=\"onUpdate\"\r\n      ></point-system-manager>\r\n    </v-expand-transition>\r\n  </v-card>\r\n</template>\r\n\r\n<script>\r\nimport PointSystemManager from '@/components/Points/PointSystemManager'\r\n\r\nexport default {\r\n  props: ['username'],\r\n  data () {\r\n    return {\r\n      loading: [],\r\n      pointSystem: null,\r\n      options: null\r\n    }\r\n  },\r\n  methods: {\r\n    loadPointSystem () {\r\n      this.loading.push(1)\r\n      this.$VBL.points.get(this.username)\r\n        .then(r => { this.pointSystem = r.data })\r\n        .catch(e => console.log(e))\r\n        .finally(f => { this.loading = this.loading.filter(f => f !== 1) })\r\n    },\r\n    loadOptions () {\r\n      this.loading.push(2)\r\n      this.$http.get(`${window.location.origin}/static/json/TournamentOptions.json`)\r\n        .then(r => { this.options = r.data })\r\n        .finally(f => { this.loading = this.loading.filter(f => f !== 2) })\r\n    },\r\n    onUpdate (dto) {\r\n      this.pointSystem = dto\r\n    }\r\n  },\r\n  mounted () {\r\n    this.loadPointSystem()\r\n    this.loadOptions()\r\n  },\r\n  components: {\r\n    PointSystemManager\r\n  }\r\n}\r\n</script>\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!./Points.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!./Points.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Points.vue?vue&type=template&id=fe20f212&\"\nimport script from \"./Points.vue?vue&type=script&lang=js&\"\nexport * from \"./Points.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  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 { VExpandTransition } from 'vuetify/lib/components/transitions';\ninstallComponents(component, {VCard,VExpandTransition})\n"],"sourceRoot":""}