{"version":3,"sources":["webpack:///./src/components/UI/Tags.vue?4a1f","webpack:///./src/components/UI/Tags.vue","webpack:///src/components/UI/Tags.vue","webpack:///./src/components/UI/Tags.vue?1cc4","webpack:///./src/components/UI/Tags.vue?3460"],"names":["render","_vm","this","_c","_self","tags","length","staticClass","_l","tag","index","key","class","cssClass","_v","_s","showDelete","on","$event","removeTag","_e","remainingTags","staticRenderFns","props","default","type","Boolean","Number","Array","String","data","methods","$emit","component"],"mappings":"2IAAA,W,yCCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAQF,EAAII,MAAQJ,EAAII,KAAKC,OAAS,EAAGH,EAAG,MAAM,CAACI,YAAY,QAAQ,CAACN,EAAIO,GAAIP,EAAII,MAAM,SAASI,EAAIC,GAAO,OAAOP,EAAG,OAAO,CAACQ,IAAID,EAAMH,YAAY,MAAMK,MAAMX,EAAIY,UAAU,CAACV,EAAG,OAAO,CAACI,YAAY,YAAY,CAACN,EAAIa,GAAGb,EAAIc,GAAGN,MAASR,EAAIe,WAAYb,EAAG,IAAI,CAACI,YAAY,kBAAkBU,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOjB,EAAIkB,UAAUV,EAAKC,OAAWT,EAAImB,UAAUnB,EAAIoB,cAAgB,EAAGlB,EAAG,OAAO,CAACI,YAAY,MAAMK,MAAMX,EAAIY,UAAU,CAACZ,EAAIa,GAAG,MAAMb,EAAIc,GAAGd,EAAIoB,eAAe,YAAYpB,EAAImB,MAAM,GAAGnB,EAAImB,MAEvjBE,EAAkB,GC2BP,G,UAAA,CACfC,MAAA,CACAP,WAAA,CACAQ,SAAA,EACAC,KAAAC,SAEAL,cAAA,CACAG,QAAA,EACAC,KAAAE,QAGAtB,KAAA,CACAmB,QAAA,WACA,UAEAC,KAAAG,OAGAf,SAAA,CACAW,QAAA,mBACAC,KAAAI,SAIAC,KAAA,WACA,UAKAC,QAAA,CACAZ,UAAA,SAAAV,EAAAC,GACA,KAAAsB,MAAA,aAAAvB,OC7D4V,I,wBCQxVwB,EAAY,eACd,EACAjC,EACAsB,GACA,EACA,KACA,WACA,MAIa,aAAAW,E","file":"js/chunk-44031180.js?id=73eedce9119be0104ad1","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tags.vue?vue&type=style&index=0&id=05384a8d&prod&lang=scss&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.tags && _vm.tags.length > 0)?_c('div',{staticClass:\"tags\"},[_vm._l((_vm.tags),function(tag,index){return _c('span',{key:index,staticClass:\"tag\",class:_vm.cssClass},[_c('span',{staticClass:\"tag-text\"},[_vm._v(_vm._s(tag))]),(_vm.showDelete)?_c('a',{staticClass:\"delete is-small\",on:{\"click\":function($event){return _vm.removeTag(tag, index)}}}):_vm._e()])}),(_vm.remainingTags > 0)?_c('span',{staticClass:\"tag\",class:_vm.cssClass},[_vm._v(\" + \"+_vm._s(_vm.remainingTags)+\" tags \")]):_vm._e()],2):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div\n    class=\"tags\"\n    v-if=\"tags && tags.length > 0\"\n  >\n    <span\n      v-for=\"(tag, index) in tags\"\n      :key=\"index\"\n      class=\"tag\"\n      :class=\"cssClass\"\n    >\n      <span class=\"tag-text\">{{ tag }}</span>\n      <a\n        v-if=\"showDelete\"\n        @click=\"removeTag(tag, index)\"\n        class=\"delete is-small\"\n      ></a>\n    </span>\n    <span\n      class=\"tag\"\n      :class=\"cssClass\"\n      v-if=\"remainingTags > 0\"\n    >\n      + {{remainingTags}} tags\n    </span>\n  </div>\n</template>\n\n<script>\nexport default {\n  props: {\n    showDelete: {\n      default: false,\n      type: Boolean\n    },\n    remainingTags: {\n      default: 0,\n      type: Number\n    },\n\n    tags: {\n      default: function() {\n        return []\n      },\n      type: Array\n    },\n\n    cssClass: {\n      default: 'is-info is-light',\n      type: String\n    }\n  },\n\n  data() {\n    return {\n      //mTags: this.tags,\n    }\n  },\n\n  methods: {\n    removeTag(tag, index) {\n      this.$emit('tagDeleted', tag)\n    }\n  }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.tags {\n  align-items: flex-start;\n\n  .tag {\n    min-height: 2em;\n    height: auto;\n    padding-top: 0.35em;\n    padding-bottom: 0.35em;\n    line-height: 1.35;\n\n    .tag-text {\n      display: inline-block;\n      max-width: 260px;\n      white-space: normal;\n      word-break: break-word;\n      overflow-wrap: break-word;\n    }\n  }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tags.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tags.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Tags.vue?vue&type=template&id=05384a8d&scoped=true\"\nimport script from \"./Tags.vue?vue&type=script&lang=js\"\nexport * from \"./Tags.vue?vue&type=script&lang=js\"\nimport style0 from \"./Tags.vue?vue&type=style&index=0&id=05384a8d&prod&lang=scss&scoped=true\"\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  \"05384a8d\",\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}