{"version":3,"sources":["webpack:///./src/components/Team/TagEditor.vue?5d13","webpack:///src/components/Team/TagEditor.vue","webpack:///./src/components/Team/TagEditor.vue?9161","webpack:///./src/components/Team/TagEditor.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","editing","search","on","$event","scopedSlots","_u","key","fn","_v","_s","_e","proxy","model","value","callback","$$v","tags","expression","staticClass","loading","dirty","stopPropagation","onSaveClick","fab","color","disabled","click","icon","staticRenderFns","props","data","iTags","computed","get","team","set","val","cancel","edit","JSON","stringify","a","b","methods","$VBL","post","id","component","VBtn","VCard","VCardActions","VCardText","VCombobox","VDivider","VFabTransition","VIcon","VListItem","VListItemContent","VList","VListItemTitle"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACA,EAAG,cAAc,CAACA,EAAG,aAAa,CAACE,MAAM,CAAC,MAAQ,GAAG,MAAQ,YAAY,UAAYN,EAAIO,QAAQ,eAAeP,EAAIQ,OAAO,MAAQ,GAAG,SAAW,GAAG,kBAAkB,GAAG,cAAc,IAAIC,GAAG,CAAC,qBAAqB,SAASC,GAAQV,EAAIQ,OAAOE,GAAQ,sBAAsB,SAASA,GAAQV,EAAIQ,OAAOE,IAASC,YAAYX,EAAIY,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,WAAW,MAAO,CAAEd,EAAU,OAAEI,EAAG,cAAc,CAACA,EAAG,sBAAsB,CAACA,EAAG,oBAAoB,CAACJ,EAAIe,GAAG,0BAA2BX,EAAG,SAAS,CAACJ,EAAIe,GAAGf,EAAIgB,GAAGhB,EAAIQ,WAAWR,EAAIe,GAAG,aAAcX,EAAG,MAAM,CAACJ,EAAIe,GAAG,WAAWf,EAAIe,GAAG,4BAA4B,IAAI,GAAGf,EAAIiB,OAAOC,OAAM,KAAQC,MAAM,CAACC,MAAOpB,EAAQ,KAAEqB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OACZlB,QAASzB,KAAKyB,SACtB,CACQb,IAAK,OACLkB,MAAO,0BACPG,KAAM,gBACND,MAAOhC,KAAK4C,KACZnB,SAAS,EACTM,SAAU/B,KAAKyB,UAGnBC,MAzBJ,WA0BM,IAAN,0DACA,kDACM,OAAOmB,KAAKC,UAAUC,KAAOF,KAAKC,UAAUE,KAGhDC,QAAS,CACPN,OADJ,WAEM3C,KAAKO,OAAS,KACdP,KAAKqC,MAAQ,KACbrC,KAAKM,SAAU,GAEjBsC,KANJ,WAOM5C,KAAKqC,MAAQ,OAAnB,OAAmB,CAAnB,gBACMrC,KAAKM,SAAU,GAEjBsB,YAVJ,WAUA,WACM5B,KAAKyB,SAAU,EACfzB,KAAKkD,KAAKV,KAAKlB,KAAK6B,KAAKnD,KAAKwC,KAAKY,GAAIpD,KAAKqC,OAClD,mBAAQ,OAAR,2BACA,qBACQ,EAAR,eChHkW,I,6ICO9VgB,EAAY,eACd,EACAvD,EACAoC,GACA,EACA,KACA,KACA,MAIa,aAAAmB,EAAiB,QAehC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,QAAA,KAAMC,aAAA,OAAaC,UAAA,OAAUC,YAAA,KAAUC,WAAA,KAASC,eAAA,OAAeC,QAAA,KAAMC,YAAA,KAAUC,iBAAAC,EAAA,KAAiBC,eAAAD,EAAA","file":"js/chunk-2d217a48.522b7d1e.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',[_c('v-card-text',[_c('v-combobox',{attrs:{\"items\":[],\"label\":\"Team Tags\",\"disabled\":!_vm.editing,\"search-input\":_vm.search,\"chips\":\"\",\"multiple\":\"\",\"deletable-chips\":\"\",\"small-chips\":\"\"},on:{\"update:searchInput\":function($event){_vm.search=$event},\"update:search-input\":function($event){_vm.search=$event}},scopedSlots:_vm._u([{key:\"no-data\",fn:function(){return [(_vm.search)?_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(\" No results matching \\\"\"),_c('strong',[_vm._v(_vm._s(_vm.search))]),_vm._v(\"\\\". Press \"),_c('kbd',[_vm._v(\"enter\")]),_vm._v(\" to create a new one \")])],1)],1):_vm._e()]},proxy:true}]),model:{value:(_vm.tags),callback:function ($$v) {_vm.tags=$$v},expression:\"tags\"}})],1),_c('v-divider'),_c('v-card-actions',{staticClass:\"justify-end\"},[_c('v-fab-transition',[(_vm.editing)?_c('v-btn',{attrs:{\"color\":\"success white--text\",\"fab\":\"\",\"small\":\"\",\"loading\":_vm.loading,\"disabled\":!_vm.dirty},on:{\"click\":function($event){$event.stopPropagation();return _vm.onSaveClick($event)}}},[_c('v-icon',[_vm._v(\"fas fa-save\")])],1):_vm._e()],1),_c('v-fab-transition',[(_vm.fab)?_c('v-btn',{key:_vm.fab.key,attrs:{\"color\":_vm.fab.color,\"fab\":\"\",\"small\":\"\",\"loading\":_vm.fab.loading,\"disabled\":_vm.fab.disabled},on:{\"click\":function($event){$event.stopPropagation();return _vm.fab.click($event)}}},[_c('v-icon',[_vm._v(_vm._s(_vm.fab.icon))])],1):_vm._e()],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <v-card>\r\n    <v-card-text>\r\n      <v-combobox\r\n        v-model=\"tags\"\r\n        :items=\"[]\"\r\n        label=\"Team Tags\"\r\n        :disabled=\"!editing\"\r\n        :search-input.sync=\"search\"\r\n        chips multiple deletable-chips small-chips\r\n      >\r\n        <template v-slot:no-data>\r\n          <v-list-item v-if=\"search\">\r\n            <v-list-item-content>\r\n              <v-list-item-title>\r\n                No results matching \"<strong>{{ search }}</strong>\". Press <kbd>enter</kbd> to create a new one\r\n              </v-list-item-title>\r\n            </v-list-item-content>\r\n          </v-list-item>\r\n        </template>\r\n      </v-combobox>\r\n    </v-card-text>\r\n    <v-divider></v-divider>\r\n    <v-card-actions class=\"justify-end\">\r\n      <v-fab-transition><!-- CANCEL -->\r\n        <v-btn\r\n          color=\"success white--text\"\r\n          fab\r\n          small\r\n          @click.stop=\"onSaveClick\"\r\n          v-if=\"editing\"\r\n          :loading=\"loading\"\r\n          :disabled=\"!dirty\"\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><!-- EDIT/SAVE -->\r\n      <v-btn\r\n        v-if=\"fab\"\r\n        :color=\"fab.color\"\r\n        fab\r\n        small\r\n        :key=\"fab.key\"\r\n        @click.stop=\"fab.click\"\r\n        :loading=\"fab.loading\"\r\n        :disabled=\"fab.disabled\"\r\n      >\r\n        <v-icon>{{fab.icon}}</v-icon>\r\n      </v-btn>\r\n    </v-fab-transition>\r\n    </v-card-actions>\r\n  </v-card>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n  props: ['team'],\r\n  data () {\r\n    return {\r\n      iTags: null,\r\n      editing: false,\r\n      loading: false,\r\n      search: null\r\n    }\r\n  },\r\n  computed: {\r\n    tags: {\r\n      get () {\r\n        return this.editing ? this.iTags : this.team.tags\r\n      },\r\n      set (val) {\r\n        this.iTags = val\r\n      }\r\n    },\r\n    fab () {\r\n      return this.editing ? {\r\n        key: 'cancel',\r\n        color: 'error white--text',\r\n        icon: 'fas fa-times',\r\n        click: this.cancel,\r\n        loading: this.loading\r\n      } : {\r\n        key: 'edit',\r\n        color: 'color3 color3Text--text',\r\n        icon: 'fas fa-pencil',\r\n        click: this.edit,\r\n        loading: false,\r\n        disabled: this.loading\r\n      }\r\n    },\r\n    dirty () {\r\n      const a = this.team.tags ? [...this.team.tags].sort() : []\r\n      const b = this.iTags ? [...(this.iTags)].sort() : []\r\n      return JSON.stringify(a) !== JSON.stringify(b)\r\n    }\r\n  },\r\n  methods: {\r\n    cancel () {\r\n      this.search = null\r\n      this.iTags = null\r\n      this.editing = false\r\n    },\r\n    edit () {\r\n      this.iTags = [...this.team.tags]\r\n      this.editing = true\r\n    },\r\n    onSaveClick () {\r\n      this.loading = true\r\n      this.$VBL.team.tags.post(this.team.id, this.iTags)\r\n        .catch(e => console.log(e.response))\r\n        .finally(f => {\r\n          this.cancel()\r\n        })\r\n    }\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!./TagEditor.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!./TagEditor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TagEditor.vue?vue&type=template&id=f8a8a768&\"\nimport script from \"./TagEditor.vue?vue&type=script&lang=js&\"\nexport * from \"./TagEditor.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 { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCombobox } from 'vuetify/lib/components/VCombobox';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VFabTransition } from 'vuetify/lib/components/transitions';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCombobox,VDivider,VFabTransition,VIcon,VListItem,VListItemContent,VListItemTitle})\n"],"sourceRoot":""}