{"version":3,"sources":["webpack:///./src/components/UI/Loader.vue","webpack:///src/components/UI/Loader.vue","webpack:///./src/components/UI/Loader.vue?6e56","webpack:///./src/components/UI/Loader.vue?9492","webpack:///./src/views/Articles/Posts.vue","webpack:///src/views/Articles/Posts.vue","webpack:///./src/views/Articles/Posts.vue?cebc","webpack:///./src/views/Articles/Posts.vue?616c","webpack:///./src/components/UI/LinkIcon.vue?95c1","webpack:///./src/components/UI/ImageViewer.vue?41cd","webpack:///./src/views/Articles/Posts.vue?337f","webpack:///./src/components/UI/LinkIcon.vue","webpack:///src/components/UI/LinkIcon.vue","webpack:///./src/components/UI/LinkIcon.vue?89e2","webpack:///./src/components/UI/LinkIcon.vue?3451","webpack:///./src/components/UI/Tags.vue?4a1f","webpack:///./src/components/UI/ImageViewer.vue","webpack:///src/components/UI/ImageViewer.vue","webpack:///./src/components/UI/ImageViewer.vue?389e","webpack:///./src/components/UI/ImageViewer.vue?3c1b","webpack:///./src/providers/article.js","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","webpack:///./node_modules/core-js/modules/es.array.fill.js","webpack:///./node_modules/date-fns/esm/intlFormat/index.js","webpack:///./src/components/UI/Message.vue","webpack:///src/components/UI/Message.vue","webpack:///./src/components/UI/Message.vue?5d20","webpack:///./src/components/UI/Message.vue?fb09"],"names":["render","_vm","this","_c","_self","staticClass","attrs","color","width","height","staticRenderFns","name","props","type","String","default","Number","component","showModalType","hideModal","_e","showDeleteArticle","selectedArticle","$t","scopedSlots","_u","key","fn","_v","_s","on","$event","setShowModalType","proxy","isLoading","_l","articlesPageState","articles","article","Key","Id","ImageUrl","Title","_b","publishState","Author","printDate","Date","ExpiresOn","class","TimesMatched","TimesClicked","Views","nativeOn","gotToArticle","length","ModalCreateArticle","ModalDeleteArticle","components","ImageViewer","Loader","Message","LinkIcon","Tags","data","isSearching","locationId","$route","params","showCreateArticle","computed","_objectSpread","mapState","created","getLocationArticles","methods","mapMutations","_this","_asyncToGenerator","_regenerator","m","_callee","w","_context","n","articleProvider","articleType","searchTerm","page","itemsPerPage","then","response","status","Results","setArticlePageState","catch","error","finally","a","searchArticles","self","spaces","reachedEnd","arguments","undefined","$router","push","dateTime","indexOf","intlFormat","parseISO","year","month","day","locale","$i18n","output","nrOfTags","tags","tagCssClass","Status","linkCssColor","to","iconCssClass","iconPosition","icon","text","newWindow","Array","Boolean","style","backgroundColor","chosenRandomColor","mImageSrc","itemName","handleError","imageSrc","required","itemId","imageSize","aspectRatio","randomBgColor","watch","immediate","handler","getImageSource","generateAvatar","source","$options","filters","getLocationImage","getEventImage","getGroupImage","getArticleImage","performance","now","el","target","src","toUpperCase","canvas","document","createElement","ctx","getContext","beginPath","rect","closePath","fillStyle","fill","font","textAlign","wrapText","toDataURL","arrColors","Math","floor","random","context","x","y","maxWidth","lineHeight","words","split","line","testLine","metrics","measureText","testWidth","fillText","getArticleById","articleId","axios","get","concat","process","headers","apiToken","profileToken","store","getters","v","getArticleByKey","_callee2","_context2","_arguments","_callee3","_ref","_ref$searchTerm","_ref$page","_ref$itemsPerPage","_context3","q","at","createLocationArticle","_callee4","_context4","post","JSON","stringify","createArticleLink","link","_callee5","_context5","updateArticle","_updateArticle","_callee6","_context6","put","_x","apply","deleteArticleLink","linkId","_callee7","_context7","delete","deleteArticle","articleKey","_callee8","_context8","tag","index","cssClass","showDelete","removeTag","remainingTags","$emit","$","addToUnscopables","proto","date","formatOrLocale","localeOptions","_localeOptions","formatOptions","isFormatOptions","Intl","DateTimeFormat","format","opts","combindedClass","message","_t","size","c"],"mappings":"gOAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,iCAAiC,CAACF,EAAG,MAAM,CAACG,MAAM,CAAC,QAAU,aAAa,MAAQ,6BAA6B,KAAOL,EAAIM,MAAM,MAAQN,EAAI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gBJ,GAClBG,EAAgBH,EAEhBC,EAAgBD,EAEX,IAAIK,KAAKC,eAAoD,QAApCJ,EAAiBD,SAA8C,IAAnBC,OAA4B,EAASA,EAAe5I,OAAQ6I,GAAeI,OAAOR,GAEhK,SAASK,EAAgBI,GACvB,YAAgB5J,IAAT4J,KAAwB,WAAYA,K,gECnF7C,IAAIpQ,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,UAAU,CAACE,YAAY,UAAU4C,MAAMhD,EAAIoQ,gBAAgB,CAAClQ,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAAEJ,EAAIqQ,QAAS,CAACrQ,EAAI2B,GAAG,IAAI3B,EAAI4B,GAAG5B,EAAIqQ,SAAS,MAAMrQ,EAAImB,KAAKnB,EAAIsQ,GAAG,YAAY,MAErP7P,EAAkB,GCaP,GACfE,MAAA,CAIA0P,QAAA,CACAzP,KAAAC,OACAC,QAAA,IAGAyP,KAAA,CACA3P,KAAAC,OACAC,QAAA,IAOAF,KAAA,CACAA,KAAAC,OACAC,QAAA,YAGAiD,KAAA,WACA,UAGAM,SAAA,CACA+L,eAAA,WACA,IAAAI,EAAA,KAAA5P,KAMA,OAJA,KAAA2P,KAAAjN,OAAA,IACAkN,IAAA,SAAAD,MAGAC,KCnD+V,I,YCO3VxP,EAAY,eACd,EACAjB,EACAU,GACA,EACA,KACA,WACA,MAIa,aAAAO,E","file":"js/chunk-4a368e81.js?id=e81ff021734e491ebfd6","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"has-padding has-text-centered\"},[_c('svg',{attrs:{\"viewBox\":\"0 0 120 30\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"fill\":_vm.color,\"width\":_vm.width,\"height\":_vm.height}},[_c('circle',{attrs:{\"cx\":\"15\",\"cy\":\"15\",\"r\":\"15\"}},[_c('animate',{attrs:{\"attributeName\":\"r\",\"from\":\"15\",\"to\":\"15\",\"begin\":\"0s\",\"dur\":\"0.8s\",\"values\":\"15;9;15\",\"calcMode\":\"linear\",\"repeatCount\":\"indefinite\"}}),_c('animate',{attrs:{\"attributeName\":\"fill-opacity\",\"from\":\"1\",\"to\":\"1\",\"begin\":\"0s\",\"dur\":\"0.8s\",\"values\":\"1;.5;1\",\"calcMode\":\"linear\",\"repeatCount\":\"indefinite\"}})]),_c('circle',{attrs:{\"cx\":\"60\",\"cy\":\"15\",\"r\":\"9\",\"fill-opacity\":\"0.3\"}},[_c('animate',{attrs:{\"attributeName\":\"r\",\"from\":\"9\",\"to\":\"9\",\"begin\":\"0s\",\"dur\":\"0.8s\",\"values\":\"9;15;9\",\"calcMode\":\"linear\",\"repeatCount\":\"indefinite\"}}),_c('animate',{attrs:{\"attributeName\":\"fill-opacity\",\"from\":\"0.5\",\"to\":\"0.5\",\"begin\":\"0s\",\"dur\":\"0.8s\",\"values\":\".5;1;.5\",\"calcMode\":\"linear\",\"repeatCount\":\"indefinite\"}})]),_c('circle',{attrs:{\"cx\":\"105\",\"cy\":\"15\",\"r\":\"15\"}},[_c('animate',{attrs:{\"attributeName\":\"r\",\"from\":\"15\",\"to\":\"15\",\"begin\":\"0s\",\"dur\":\"0.8s\",\"values\":\"15;9;15\",\"calcMode\":\"linear\",\"repeatCount\":\"indefinite\"}}),_c('animate',{attrs:{\"attributeName\":\"fill-opacity\",\"from\":\"1\",\"to\":\"1\",\"begin\":\"0s\",\"dur\":\"0.8s\",\"values\":\"1;.5;1\",\"calcMode\":\"linear\",\"repeatCount\":\"indefinite\"}})])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div class=\"has-padding has-text-centered\">\n    <svg\n      viewBox=\"0 0 120 30\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      :fill=\"color\"\n      :width=\"width\"\n      :height=\"height\"\n    >\n      <circle cx=\"15\" cy=\"15\" r=\"15\">\n        <animate\n          attributeName=\"r\"\n          from=\"15\"\n          to=\"15\"\n          begin=\"0s\"\n          dur=\"0.8s\"\n          values=\"15;9;15\"\n          calcMode=\"linear\"\n          repeatCount=\"indefinite\"\n        />\n        <animate\n          attributeName=\"fill-opacity\"\n          from=\"1\"\n          to=\"1\"\n          begin=\"0s\"\n          dur=\"0.8s\"\n          values=\"1;.5;1\"\n          calcMode=\"linear\"\n          repeatCount=\"indefinite\"\n        />\n      </circle>\n      <circle cx=\"60\" cy=\"15\" r=\"9\" fill-opacity=\"0.3\">\n        <animate\n          attributeName=\"r\"\n          from=\"9\"\n          to=\"9\"\n          begin=\"0s\"\n          dur=\"0.8s\"\n          values=\"9;15;9\"\n          calcMode=\"linear\"\n          repeatCount=\"indefinite\"\n        />\n        <animate\n          attributeName=\"fill-opacity\"\n          from=\"0.5\"\n          to=\"0.5\"\n          begin=\"0s\"\n          dur=\"0.8s\"\n          values=\".5;1;.5\"\n          calcMode=\"linear\"\n          repeatCount=\"indefinite\"\n        />\n      </circle>\n      <circle cx=\"105\" cy=\"15\" r=\"15\">\n        <animate\n          attributeName=\"r\"\n          from=\"15\"\n          to=\"15\"\n          begin=\"0s\"\n          dur=\"0.8s\"\n          values=\"15;9;15\"\n          calcMode=\"linear\"\n          repeatCount=\"indefinite\"\n        />\n        <animate\n          attributeName=\"fill-opacity\"\n          from=\"1\"\n          to=\"1\"\n          begin=\"0s\"\n          dur=\"0.8s\"\n          values=\"1;.5;1\"\n          calcMode=\"linear\"\n          repeatCount=\"indefinite\"\n        />\n      </circle>\n    </svg>\n  </div>\n</template>\n\n<script>\nexport default {\n  name: \"dots\",\n  props: {\n    color: {\n      type: String,\n      default: \"#000\"\n    },\n    height: {\n      type: Number,\n      default: 240\n    },\n    width: {\n      type: Number,\n      default: 60\n    }\n  }\n};\n</script>\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!./Loader.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!./Loader.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Loader.vue?vue&type=template&id=2e82bc9d\"\nimport script from \"./Loader.vue?vue&type=script&lang=js\"\nexport * from \"./Loader.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","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"section\"},[(_vm.showModalType === 'CreateArticle')?_c('ModalCreateArticle',{attrs:{\"showModal\":_vm.showModalType === 'CreateArticle',\"articleType\":\"Post\",\"onClickCancel\":_vm.hideModal}}):_vm._e(),(_vm.showDeleteArticle)?_c('ModalDeleteArticle',{attrs:{\"article\":_vm.selectedArticle,\"showModal\":_vm.showDeleteArticle,\"onClickCancel\":_vm.hideModal}}):_vm._e(),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"columns is-multiline\"},[_c('div',{staticClass:\"column is-half\"},[_c('ui-page-hero',{attrs:{\"title\":_vm.$t('Views.Articles.Main_Posts_Title')}})],1),_c('div',{staticClass:\"column is-half\"},[_c('Message',{staticClass:\"is-info\",scopedSlots:_vm._u([{key:\"content\",fn:function(){return [_c('div',{staticClass:\"content\"},[_c('p',[_vm._v(\" \"+_vm._s(_vm.$t('Views.Articles.Message_CreateArticlePost_Text'))+\" \")]),_c('a',{staticClass:\"button is-primary\",on:{\"click\":function($event){return _vm.setShowModalType('CreateArticle')}}},[_vm._v(_vm._s(_vm.$t('Views.Articles.Message_CreateArticlePost_Button')))])])]},proxy:true}])})],1)]),_c('table',{staticClass:\"table is-fullwidth\"},[_c('thead',[_c('tr',[_c('th',[_vm._v(_vm._s(_vm.$t('Views.Articles.Table_HeaderTitle')))]),_c('th',[_vm._v(_vm._s(_vm.$t('Views.Articles.Table_HeaderPublished')))]),_c('th',[_vm._v(_vm._s(_vm.$t('Views.Articles.Table_HeaderExpiresOn')))]),_c('th',[_vm._v(_vm._s(_vm.$t('Views.Articles.Table_HeaderStats')))]),_c('th')])]),(!_vm.isLoading)?_c('tbody',_vm._l((_vm.articlesPageState.articles),function(article){return _c('tr',{key:'a' + article.Key},[_c('td',[_c('div',{staticClass:\"articleImage mr-3\"},[_c('ImageViewer',{staticClass:\"is-3by2\",attrs:{\"itemId\":article.Id,\"aspectRatio\":3 / 2,\"imageSize\":320,\"imageSrc\":article.ImageUrl,\"itemName\":article.Title,\"type\":\"article\"}})],1),_c('div',[_c('Tags',_vm._b({staticClass:\"is-inline-flex mb-1\"},'Tags',_vm.publishState(article),false)),_c('div',{staticClass:\"has-text-weight-bold\"},[_vm._v(_vm._s(article.Title))]),_vm._v(\" \"+_vm._s(article.Author)+\" \")],1)]),_c('td',[_vm._v(_vm._s(_vm.printDate(article.Date)))]),_c('td',[_vm._v(_vm._s(_vm.printDate(article.ExpiresOn)))]),_c('td',[_c('span',{staticClass:\"icon-text mr-2\",class:{ 'has-text-grey': !article.TimesMatched }},[_c('span',{staticClass:\"icon\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'chart-network']}})],1),_c('span',[_vm._v(_vm._s(article.TimesMatched))])]),_c('span',{staticClass:\"icon-text mr-2\",class:{ 'has-text-grey': !article.TimesClicked }},[_c('span',{staticClass:\"icon\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'bullseye-pointer']}})],1),_c('span',[_vm._v(_vm._s(article.TimesClicked))])]),_c('span',{staticClass:\"icon-text\",class:{ 'has-text-grey': !article.Views }},[_c('span',{staticClass:\"icon\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'eye']}})],1),_c('span',[_vm._v(_vm._s(article.Views))])])]),_c('td',[_c('div',{staticClass:\"fields\"},[_c('p',{staticClass:\"control\"},[_c('LinkIcon',{attrs:{\"type\":\"OnClick\",\"text\":_vm.$t('Form.Control.Edit')},nativeOn:{\"click\":function($event){return _vm.gotToArticle(article)}}})],1)])])])}),0):_vm._e()]),(_vm.isLoading)?_c('Loader'):_vm._e(),(!_vm.isLoading && !_vm.articlesPageState.articles.length)?_c('Message',{staticClass:\"is-info\",scopedSlots:_vm._u([{key:\"content\",fn:function(){return [_c('div',{staticClass:\"content\"},[_c('p',[_vm._v(_vm._s(_vm.$t('Views.Articles.Message_NoPosts')))]),_c('a',{staticClass:\"button is-primary\",on:{\"click\":function($event){return _vm.setShowModalType('CreateArticle')}}},[_vm._v(_vm._s(_vm.$t('Views.Articles.Message_CreateArticlePost_Button')))])])]},proxy:true}],null,false,667422243)}):_vm._e()],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div class=\"section\">\n    <ModalCreateArticle\n      v-if=\"showModalType === 'CreateArticle'\"\n      :showModal=\"showModalType === 'CreateArticle'\"\n      articleType=\"Post\"\n      :onClickCancel=\"hideModal\"\n    />\n\n    <ModalDeleteArticle\n      v-if=\"showDeleteArticle\"\n      :article=\"selectedArticle\"\n      :showModal=\"showDeleteArticle\"\n      :onClickCancel=\"hideModal\"\n    />\n\n    <div class=\"container\">\n      <div class=\"columns is-multiline\">\n        <div class=\"column is-half\">\n          <ui-page-hero :title=\"$t('Views.Articles.Main_Posts_Title')\" />\n        </div>\n        <div class=\"column is-half\">\n          <Message class=\"is-info\">\n            <template #content>\n              <div class=\"content\">\n                <p>\n                  {{ $t('Views.Articles.Message_CreateArticlePost_Text') }}\n                </p>\n                <a\n                  @click=\"setShowModalType('CreateArticle')\"\n                  class=\"button is-primary\"\n                  >{{ $t('Views.Articles.Message_CreateArticlePost_Button') }}</a\n                >\n              </div>\n            </template>\n          </Message>\n        </div>\n      </div>\n      <table class=\"table is-fullwidth\">\n        <thead>\n          <tr>\n            <th>{{ $t('Views.Articles.Table_HeaderTitle') }}</th>\n            <th>{{ $t('Views.Articles.Table_HeaderPublished') }}</th>\n            <th>{{ $t('Views.Articles.Table_HeaderExpiresOn') }}</th>\n            <th>{{ $t('Views.Articles.Table_HeaderStats') }}</th>\n            <th></th>\n          </tr>\n        </thead>\n        <tbody v-if=\"!isLoading\">\n          <tr\n            v-for=\"article in articlesPageState.articles\"\n            :key=\"'a' + article.Key\"\n          >\n            <td>\n              <div class=\"articleImage mr-3\">\n                <ImageViewer\n                  :itemId=\"article.Id\"\n                  :aspectRatio=\"3 / 2\"\n                  :imageSize=\"320\"\n                  :imageSrc=\"article.ImageUrl\"\n                  :itemName=\"article.Title\"\n                  type=\"article\"\n                  class=\"is-3by2\"\n                />\n              </div>\n              <div>\n                <Tags\n                  v-bind=\"publishState(article)\"\n                  class=\"is-inline-flex mb-1\"\n                />\n\n                <div class=\"has-text-weight-bold\">{{ article.Title }}</div>\n                {{ article.Author }}\n              </div>\n            </td>\n            <td>{{ printDate(article.Date) }}</td>\n            <td>{{ printDate(article.ExpiresOn) }}</td>\n            <td>\n              <span\n                :class=\"{ 'has-text-grey': !article.TimesMatched }\"\n                class=\"icon-text mr-2\"\n              >\n                <span class=\"icon\">\n                  <font-awesome-icon :icon=\"['fas', 'chart-network']\" />\n                </span>\n                <span>{{ article.TimesMatched }}</span>\n              </span>\n              <span\n                :class=\"{ 'has-text-grey': !article.TimesClicked }\"\n                class=\"icon-text mr-2\"\n              >\n                <span class=\"icon\">\n                  <font-awesome-icon :icon=\"['fas', 'bullseye-pointer']\" />\n                </span>\n                <span>{{ article.TimesClicked }}</span>\n              </span>\n              <span\n                :class=\"{ 'has-text-grey': !article.Views }\"\n                class=\"icon-text\"\n              >\n                <span class=\"icon\">\n                  <font-awesome-icon :icon=\"['fas', 'eye']\" />\n                </span>\n                <span>{{ article.Views }}</span>\n              </span>\n            </td>\n            <td>\n              <div class=\"fields\">\n                <p class=\"control\">\n                  <LinkIcon\n                    type=\"OnClick\"\n                    @click.native=\"gotToArticle(article)\"\n                    :text=\"$t('Form.Control.Edit')\"\n                  />\n                </p>\n              </div>\n            </td>\n          </tr>\n        </tbody>\n      </table>\n      <Loader v-if=\"isLoading\" />\n      <Message\n        v-if=\"!isLoading && !articlesPageState.articles.length\"\n        class=\"is-info\"\n      >\n        <template #content>\n          <div class=\"content\">\n            <p>{{ $t('Views.Articles.Message_NoPosts') }}</p>\n            <a\n              @click=\"setShowModalType('CreateArticle')\"\n              class=\"button is-primary\"\n              >{{ $t('Views.Articles.Message_CreateArticlePost_Button') }}</a\n            >\n          </div>\n        </template>\n      </Message>\n    </div>\n  </div>\n</template>\n\n<script>\nimport { mapState, mapMutations } from 'vuex';\nimport articleProvider from '@/providers/article';\nimport parseISO from 'date-fns/esm/parseISO/index.js';\nimport intlFormat from 'date-fns/intlFormat';\n\nconst ModalCreateArticle = () => import('@/components/Articles/ModalCreateArticle');\nconst ModalDeleteArticle = () => import('@/components/Articles/ModalDeleteArticle');\nimport ImageViewer from '@/components/UI/ImageViewer.vue';\nimport Message from '@/components/UI/Message.vue';\nimport Loader from '@/components/UI/Loader.vue';\nimport LinkIcon from '@/components/UI/LinkIcon.vue';\nimport Tags from '@/components/UI/Tags.vue';\n\nexport default {\n  components: {\n    ImageViewer,\n    ModalCreateArticle,\n    ModalDeleteArticle,\n    // SearchBar,\n    Loader,\n    Message,\n    LinkIcon,\n    Tags\n  },\n\n  props: {},\n\n  data() {\n    return {\n      isLoading: true,\n      isSearching: false,\n      locationId: Number(this.$route.params.locationId),\n      showCreateArticle: false,\n      showDeleteArticle: false,\n      showModalType: '',\n      selectedArticle: null\n    };\n  },\n\n  computed: {\n    ...mapState('articleStore', ['articlesPageState'])\n  },\n\n  created() {\n    this.getLocationArticles();\n  },\n\n  methods: {\n    ...mapMutations('articleStore', ['setArticlesPageState']),\n    ...mapMutations('articleStore', ['setArticle']),\n\n    async getLocationArticles() {\n      this.isLoading = true;\n      this.isSearching = true;\n\n      await articleProvider.methods\n        .getLocationArticles({\n          locationId: this.locationId,\n          articleType: 'Post',\n          searchTerm: this.articlesPageState.searchTerm,\n          page: this.articlesPageState.page,\n          itemsPerPage: this.articlesPageState.itemsPerPage\n        })\n        .then((response) => {\n          if (response.status === 200) {\n            this.articlesPageState.articles = response.data.Results;\n            this.setArticlePageState(this.articlesPageState);\n          }\n        })\n        .catch((error) => {\n          //console.log(error.response)\n        })\n        .finally(() => {});\n      this.isSearching = false;\n      this.isLoading = false;\n    },\n\n    searchArticles(searchTerm) {\n      let self = this;\n      self.articlesPageState.spaces = [];\n      self.articlesPageState.page = 1;\n      self.articlesPageState.reachedEnd = false;\n\n      self.articlesPageState.searchTerm = searchTerm;\n\n      this.getLocationArticles();\n    },\n\n    setShowModalType(type = '', article = null) {\n      this.showModalType = type;\n      this.selectedArticle === article;\n    },\n\n    gotToArticle(article) {\n      this.$router.push({\n        name: 'articles-list-edit',\n        params: {\n          key: article.Key\n        }\n      });\n    },\n\n    printDate(dateTime) {\n      if (dateTime.indexOf('1900') !== -1) {\n        return '-';\n      }\n      return intlFormat(\n        parseISO(dateTime),\n        {\n          year: 'numeric',\n          month: 'long',\n          day: 'numeric'\n        },\n        {\n          locale: this.$i18n.locale\n        }\n      );\n    },\n\n    publishState(article) {\n      let output = {\n        nrOfTags: 0,\n        tags: '',\n        tagCssClass: ''\n      };\n\n      if (article.Status === 'Draft') {\n        output.tagCssClass = 'is-warning is-normal';\n        output.tags = [this.$t('Components.Article.ArticleDetail.Text_ArticleStateDraft')];\n      }\n\n      if (article.Status === 'Retracted') {\n        output.tagCssClass = 'is-danger is-normal';\n        output.tags = [this.$t('Components.Article.ArticleDetail.Text_ArticleStateRetracted')];\n      }\n\n      if (article.Status === 'Published') {\n        output.tagCssClass = 'is-success is-normal';\n        output.tags = [this.$t('Components.Article.ArticleDetail.Text_ArticleStatePublished')];\n      }\n\n      return output;\n    },\n\n    // goToArticle(article) {\n    //   this.setArticle(article)\n\n    //   this.$router.push({\n    //     name: `articles-detail`,\n    //     params: { articleId: article.Id },\n    //   })\n    // },\n\n    // setShowCreateArticle() {\n    //   this.showCreateArticle = true\n    // },\n\n    // setShowDeleteArticle(article) {\n    //   this.selectedArticle = article\n    //   this.showDeleteArticle = true\n    // },\n\n    hideModal() {\n      this.selectedArticle = null;\n      this.showModalType = '';\n    }\n\n    // setShowArticleSummary(article) {},\n  }\n};\n</script>\n\n<style lang=\"sass\" scoped>\n.articleImage\n  max-width: 150px\n  width: 100%\n  float: left\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!./Posts.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!./Posts.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Posts.vue?vue&type=template&id=627015d3&scoped=true\"\nimport script from \"./Posts.vue?vue&type=script&lang=js\"\nexport * from \"./Posts.vue?vue&type=script&lang=js\"\nimport style0 from \"./Posts.vue?vue&type=style&index=0&id=627015d3&prod&lang=sass&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  \"627015d3\",\n  null\n  \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LinkIcon.vue?vue&type=style&index=0&id=7f07b094&prod&lang=sass&scoped=true\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ImageViewer.vue?vue&type=style&index=0&id=0581e4ae&prod&lang=sass&scoped=true\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Posts.vue?vue&type=style&index=0&id=627015d3&prod&lang=sass&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.type === 'RouteLink')?_c('router-link',{staticClass:\"arrow-link-icon icon-text is-flex-wrap-nowrap is-align-items-center is-flex-shrink-0\",class:_vm.linkCssColor,attrs:{\"to\":_vm.to}},[_c('span',{staticClass:\"icon\",class:[_vm.iconCssClass, _vm.iconPosition === 'Left' ? 'has-pos-left' : 'has-pos-right']},[_c('font-awesome-icon',{attrs:{\"icon\":_vm.icon}})],1),_c('span',[_vm._v(_vm._s(_vm.text))])]):(_vm.type === 'OnClick')?_c('a',{staticClass:\"arrow-link-icon icon-text is-flex-wrap-nowrap is-align-items-center is-flex-shrink-0\",class:[_vm.linkCssColor, _vm.iconPosition === 'Left' ? 'has-pos-left' : 'has-pos-right']},[_c('span',{staticClass:\"icon\",class:_vm.iconCssClass},[_c('font-awesome-icon',{attrs:{\"icon\":_vm.icon}})],1),_c('span',[_vm._v(_vm._s(_vm.text))])]):_c('a',{staticClass:\"arrow-link-icon icon-text is-flex-wrap-nowrap is-align-items-center is-flex-shrink-0\",class:[_vm.linkCssColor, _vm.iconPosition === 'Left' ? 'has-pos-left' : 'has-pos-right'],attrs:{\"href\":_vm.to,\"target\":_vm.newWindow ? '_blank' : '_self'}},[_c('span',{staticClass:\"icon\",class:_vm.iconCssClass},[_c('font-awesome-icon',{attrs:{\"icon\":_vm.icon}})],1),_c('span',[_vm._v(_vm._s(_vm.text))])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <router-link v-if=\"type === 'RouteLink'\" :to=\"to\" :class=\"linkCssColor\"\n    class=\"arrow-link-icon icon-text is-flex-wrap-nowrap is-align-items-center is-flex-shrink-0\">\n    <span :class=\"[iconCssClass, iconPosition === 'Left' ? 'has-pos-left' : 'has-pos-right']\" class=\"icon\">\n      <font-awesome-icon :icon=\"icon\" />\n    </span>\n    <span>{{ text }}</span>\n  </router-link>\n\n  <a v-else-if=\"type === 'OnClick'\" :class=\"[linkCssColor, iconPosition === 'Left' ? 'has-pos-left' : 'has-pos-right']\"\n    class=\"arrow-link-icon icon-text is-flex-wrap-nowrap is-align-items-center is-flex-shrink-0\">\n    <span :class=\"iconCssClass\" class=\"icon\">\n      <font-awesome-icon :icon=\"icon\" />\n    </span>\n    <span>{{ text }}</span>\n  </a>\n\n  <a v-else :href=\"to\" :target=\"newWindow ? '_blank' : '_self'\"\n    :class=\"[linkCssColor, iconPosition === 'Left' ? 'has-pos-left' : 'has-pos-right']\"\n    class=\"arrow-link-icon icon-text is-flex-wrap-nowrap is-align-items-center is-flex-shrink-0\">\n    <span :class=\"iconCssClass\" class=\"icon\">\n      <font-awesome-icon :icon=\"icon\" />\n    </span>\n    <span>{{ text }}</span>\n  </a>\n</template>\n\n<script>\nexport default {\n  name: 'IconLink',\n\n  props: {\n    iconPosition: {\n      type: String,\n      default: 'Left'\n    },\n\n    text: {\n      type: String,\n      default: ''\n    },\n\n    type: {\n      type: String,\n      default: 'RouteLink'\n    },\n\n    to: {\n      type: String,\n      default: ''\n    },\n\n    icon: {\n      type: Array,\n      default: function () {\n        return ['fas', 'angle-right']\n      }\n    },\n\n    iconCssClass: {\n      type: String,\n      default: ''\n    },\n\n    linkCssColor: {\n      type: String,\n      default: 'has-text-primary-dark'\n    },\n\n    newWindow: {\n      type: Boolean,\n      default: false\n    },\n  },\n}\n</script>\n\n<style lang=\"sass\" scoped>\n.arrow-link-icon\n  .has-pos-right\n    order: 2\n</style>","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!./LinkIcon.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!./LinkIcon.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./LinkIcon.vue?vue&type=template&id=7f07b094&scoped=true\"\nimport script from \"./LinkIcon.vue?vue&type=script&lang=js\"\nexport * from \"./LinkIcon.vue?vue&type=script&lang=js\"\nimport style0 from \"./LinkIcon.vue?vue&type=style&index=0&id=7f07b094&prod&lang=sass&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  \"7f07b094\",\n  null\n  \n)\n\nexport default component.exports","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 _c('figure',{staticClass:\"image\"},[_c('img',{style:({ backgroundColor: _vm.chosenRandomColor }),attrs:{\"src\":_vm.mImageSrc,\"alt\":_vm.itemName,\"loading\":\"lazy\"},on:{\"error\":_vm.handleError}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <figure class=\"image\">\n    <img\n      :src=\"mImageSrc\"\n      :style=\"{ backgroundColor: chosenRandomColor }\"\n      :alt=\"itemName\"\n      loading=\"lazy\"\n      @error=\"handleError\"\n    />\n  </figure>\n</template>\n\n<script>\nexport default {\n  name: 'ImageViewer',\n\n  props: {\n    type: {\n      type: String,\n      default: ''\n    },\n    imageSrc: {\n      type: String,\n      default: ''\n    },\n    itemName: {\n      type: String,\n      required: true\n    },\n    itemId: {\n      type: Number,\n      default: 0\n    },\n    imageSize: {\n      type: Number,\n      default: 0\n    },\n    aspectRatio: {\n      type: Number,\n      default: 4 / 3\n    }\n  },\n\n  data() {\n    return {\n      mImageSrc: '',\n      chosenRandomColor: this.randomBgColor()\n    }\n  },\n\n  watch: {\n    imageSrc: {\n      immediate: true,\n      handler: function name() {\n        this.mImageSrc = this.getImageSource()\n      }\n    }\n  },\n\n  methods: {\n    getImageSource() {\n      if (!this.imageSrc) { return this.generateAvatar() }\n      let source = ''\n      switch (this.type) {\n        case 'location':\n          source = this.$options.filters.getLocationImage(\n            this.imageSrc,\n            this.itemId,\n            this.imageSize\n          )\n          break\n\n        case 'event':\n          source = this.$options.filters.getEventImage(\n            this.imageSrc,\n            this.imageSize\n          )\n          break\n\n        case 'group':\n          source = this.$options.filters.getGroupImage(\n            this.imageSrc,\n            this.itemId,\n            this.imageSize\n          )\n          break\n\n        case 'article':\n          source = this.$options.filters.getArticleImage(\n            this.imageSrc,\n            this.itemId,\n            this.imageSize\n          )\n          break\n\n        default: {\n          source = this.imageSrc\n        }\n      }\n\n      return source + '?v=' + performance.now()\n    },\n\n    handleError(el) {\n      el.target.src = this.generateAvatar()\n    },\n\n    generateAvatar() {\n      let text = this.itemName.toUpperCase()\n      let width = this.imageSize !== 0 ? this.imageSize : 1280\n      let height = width / this.aspectRatio\n\n      var canvas = document.createElement('canvas');\n      canvas.width = width;\n      canvas.height = height;\n\n      // Get the drawing context\n      var ctx = canvas.getContext('2d');\n      ctx.beginPath();\n      ctx.rect(0, 0, width, height)\n      ctx.closePath();\n      ctx.fillStyle = this.chosenRandomColor\n      ctx.fill();\n      ctx.fillStyle = \"white\";\n      ctx.font = \"bold 26px Arial\";\n      ctx.textAlign = 'center';\n      this.wrapText(ctx, text, width / 2, height / 2 + 13, width - 20, 36)\n      return canvas.toDataURL();\n    },\n\n    randomBgColor() {\n      const arrColors = ['#4C9B9B', '#0B757A', '#CFE4E5', '#78FFDA', '#95c11e', '#fec632', '#fec632', '#00baff', '#ff6600']\n      return arrColors[Math.floor(Math.random() * arrColors.length)]\n    },\n\n    wrapText(context, text, x, y, maxWidth, lineHeight) {\n      var words = text.split(' ');\n      var line = '';\n\n      for (var n = 0; n < words.length; n++) {\n        var testLine = line + words[n] + ' ';\n        var metrics = context.measureText(testLine);\n        var testWidth = metrics.width;\n        if (testWidth > maxWidth && n > 0) {\n          context.fillText(line, x, y);\n          line = words[n] + ' ';\n          y += lineHeight;\n        }\n        else {\n          line = testLine;\n        }\n      }\n      context.fillText(line, x, y);\n    }\n  }\n}\n</script>\n\n<style lang=\"sass\" scoped>\n.image\n  position: relative\n  img\n    object-fit: cover\n</style>","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!./ImageViewer.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!./ImageViewer.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ImageViewer.vue?vue&type=template&id=0581e4ae&scoped=true\"\nimport script from \"./ImageViewer.vue?vue&type=script&lang=js\"\nexport * from \"./ImageViewer.vue?vue&type=script&lang=js\"\nimport style0 from \"./ImageViewer.vue?vue&type=style&index=0&id=0581e4ae&prod&lang=sass&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  \"0581e4ae\",\n  null\n  \n)\n\nexport default component.exports","import axios from 'axios'\nimport store from '@/store'\n\nexport default {\n  methods: {\n    async getArticleById(articleId) {\n      const response = await axios.get(\n        `${process.env.VUE_APP_API_BASE_URL}/api/v1/article/${articleId}`,\n        {\n          headers: {\n            'Content-type': 'application/json',\n            apiToken: process.env.VUE_APP_API_KEY,\n            profileToken: store.getters['profileStore/getProfileToken']\n          }\n        }\n      )\n      return response\n    },\n\n    async getArticleByKey(key) {\n      return await axios.get(\n        `${process.env.VUE_APP_API_BASE_URL}/api/v1/article/${key}`,\n        {\n          headers: {\n            'Content-type': 'application/json',\n            apiToken: process.env.VUE_APP_API_KEY,\n            profileToken: store.getters['profileStore/getProfileToken']\n          }\n        }\n      )\n    },\n\n    async getLocationArticles({ locationId, articleType, searchTerm = '', page = 1, itemsPerPage = 50 } = {}) {\n      const response = await axios.get(\n        `${process.env.VUE_APP_API_BASE_URL}/api/v1/article/location/${locationId}`,\n        {\n          params: {\n            q: searchTerm,\n            at: articleType,\n            page,\n            itemsPerPage,\n          },\n\n          headers: {\n            'Content-type': 'application/json',\n            apiToken: process.env.VUE_APP_API_KEY,\n            profileToken: store.getters['profileStore/getProfileToken']\n          }\n        }\n      )\n      return response\n    },\n\n    async createLocationArticle(article) {\n      const response = await axios.post(\n        `${process.env.VUE_APP_API_BASE_URL}/api/v1/article`,\n        JSON.stringify(article),\n        {\n          headers: {\n            'Content-type': 'application/json',\n            apiToken: process.env.VUE_APP_API_KEY,\n            profileToken: store.getters['profileStore/getProfileToken']\n          }\n        }\n      )\n      return response\n    },\n\n    async createArticleLink(link) {\n      const response = await axios.post(\n        `${process.env.VUE_APP_API_BASE_URL}/api/v1/article/link`,\n        link,\n        {\n          headers: {\n            'Content-type': 'application/json',\n            apiToken: process.env.VUE_APP_API_KEY,\n            profileToken: store.getters['profileStore/getProfileToken']\n          }\n        }\n      )\n      return response\n    },\n\n\n    //#region PUT calls\n    updateArticle: async (article) => {\n      return await axios.put(`${process.env.VUE_APP_API_BASE_URL}/api/v1/article/${article.Id}`, article,\n        {\n          headers: {\n            'Content-type': 'application/json',\n            apiToken: process.env.VUE_APP_API_KEY,\n            profileToken: store.getters['profileStore/getProfileToken']\n          }\n        }\n      )\n    },\n    //#endregion\n\n    //#region DELETE calls\n    async deleteArticleLink(articleId, linkId) {\n      const response = await axios.delete(\n        `${process.env.VUE_APP_API_BASE_URL}/api/v1/article/${articleId}/link/${linkId}`,\n        {\n          headers: {\n            'Content-type': 'application/json',\n            apiToken: process.env.VUE_APP_API_KEY,\n            profileToken: store.getters['profileStore/getProfileToken']\n          }\n        }\n      )\n      return response\n    },\n\n    async deleteArticle(articleKey) {\n      const response = await axios.delete(\n        `${process.env.VUE_APP_API_BASE_URL}/api/v1/article/${articleKey}`,\n        {\n          headers: {\n            'Content-type': 'application/json',\n            apiToken: process.env.VUE_APP_API_KEY,\n            profileToken: store.getters['profileStore/getProfileToken']\n          }\n        }\n      )\n      return response\n    }\n    //#endregion\n  }\n}\n","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","'use strict';\nvar $ = require('../internals/export');\nvar fill = require('../internals/array-fill');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// `Array.prototype.fill` method\n// https://tc39.es/ecma262/#sec-array.prototype.fill\n$({ target: 'Array', proto: true }, {\n  fill: fill\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('fill');\n","import requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name intlFormat\n * @category Common Helpers\n * @summary  Format the date with Intl.DateTimeFormat (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat).\n *\n * @description\n * Return the formatted date string in the given format.\n * The method uses [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) inside.\n * formatOptions are the same as [`Intl.DateTimeFormat` options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options)\n *\n * > ⚠️ Please note that before Node version 13.0.0, only the locale data for en-US is available by default.\n *\n * @param {Date|Number} argument - the original date.\n * @param {Object} [formatOptions] - an object with options.\n * @param {'lookup'|'best fit'} [formatOptions.localeMatcher='best fit'] - locale selection algorithm.\n * @param {'narrow'|'short'|'long'} [formatOptions.weekday] - representation the days of the week.\n * @param {'narrow'|'short'|'long'} [formatOptions.era] - representation of eras.\n * @param {'numeric'|'2-digit'} [formatOptions.year] - representation of years.\n * @param {'numeric'|'2-digit'|'narrow'|'short'|'long'} [formatOptions.month='numeric'] - representation of month.\n * @param {'numeric'|'2-digit'} [formatOptions.day='numeric'] - representation of day.\n * @param {'numeric'|'2-digit'} [formatOptions.hour='numeric'] - representation of hours.\n * @param {'numeric'|'2-digit'} [formatOptions.minute] - representation of minutes.\n * @param {'numeric'|'2-digit'} [formatOptions.second] - representation of seconds.\n * @param {'short'|'long'} [formatOptions.timeZoneName] - representation of names of time zones.\n * @param {'basic'|'best fit'} [formatOptions.formatMatcher='best fit'] - format selection algorithm.\n * @param {Boolean} [formatOptions.hour12] - determines whether to use 12-hour time format.\n * @param {String} [formatOptions.timeZone] - the time zone to use.\n * @param {Object} [localeOptions] - an object with locale.\n * @param {String|String[]} [localeOptions.locale] - the locale code\n * @returns {String} the formatted date string.\n * @throws {TypeError} 1 argument required.\n * @throws {RangeError} `date` must not be Invalid Date\n *\n * @example\n * // Represent 10 October 2019 in German.\n * // Convert the date with format's options and locale's options.\n * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), {\n *      weekday: 'long',\n *      year: 'numeric',\n *      month: 'long',\n *      day: 'numeric',\n *    }, {\n *      locale: 'de-DE',\n *  })\n * //=> Freitag, 4. Oktober 2019\n *\n * @example\n * // Represent 10 October 2019.\n * // Convert the date with format's options.\n * const result = intlFormat.default(new Date(2019, 9, 4, 12, 30, 13, 456), {\n *      year: 'numeric',\n *      month: 'numeric',\n *      day: 'numeric',\n *      hour: 'numeric',\n *  })\n * //=> 10/4/2019, 12 PM\n *\n * @example\n * // Represent 10 October 2019 in Korean.\n * // Convert the date with locale's options.\n * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), {\n *      locale: 'ko-KR',\n *  })\n * //=> 2019. 10. 4.\n *\n * @example\n * // Represent 10 October 2019 in middle-endian format:\n * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456))\n * //=> 10/4/2019\n */\nexport default function intlFormat(date, formatOrLocale, localeOptions) {\n  var _localeOptions;\n  requiredArgs(1, arguments);\n  var formatOptions;\n  if (isFormatOptions(formatOrLocale)) {\n    formatOptions = formatOrLocale;\n  } else {\n    localeOptions = formatOrLocale;\n  }\n  return new Intl.DateTimeFormat((_localeOptions = localeOptions) === null || _localeOptions === void 0 ? void 0 : _localeOptions.locale, formatOptions).format(date);\n}\nfunction isFormatOptions(opts) {\n  return opts !== undefined && !('locale' in opts);\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('article',{staticClass:\"message\",class:_vm.combindedClass},[_c('div',{staticClass:\"message-body\"},[(_vm.message)?[_vm._v(\" \"+_vm._s(_vm.message)+\" \")]:_vm._e(),_vm._t(\"content\")],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <article\n    class=\"message\"\n    :class=\"combindedClass\"\n  >\n    <div class=\"message-body\">\n      <template v-if=\"message\">\n        {{ message }}\n      </template>\n      <slot name=\"content\"></slot>\n    </div>\n  </article>\n</template>\n\n<script>\nexport default {\n  props: {\n    /**\n     * For what'll be shown inside of the message box.\n     */\n    message: {\n      type: String,\n      default: ''\n    },\n\n    size: {\n      type: String,\n      default: ''\n    },\n\n    /**\n     * type bepaalt het type weergave\n     * eq. is-info = for information style. It defines the style of the message\n     */\n    type: {\n      type: String,\n      default: 'is-info'\n    }\n  },\n  data() {\n    return {};\n  },\n\n  computed: {\n    combindedClass() {\n      let c = this.type;\n\n      if (this.size.length > 0) {\n        c = c + ' ' + this.size;\n      }\n\n      return c;\n    }\n  }\n};\n</script>\n\n<style lang=\"scss\" scoped></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!./Message.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!./Message.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Message.vue?vue&type=template&id=509443f1&scoped=true\"\nimport script from \"./Message.vue?vue&type=script&lang=js\"\nexport * from \"./Message.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  \"509443f1\",\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}