{"version":3,"sources":["webpack:///src/components/Comments/CommentItem.vue","webpack:///./src/components/Comments/CommentItem.vue","webpack:///./src/components/Comments/CommentItem.vue?26ff","webpack:///./src/components/Comments/CommentItem.vue?e153","webpack:///./src/assets/images/spacer1_1.gif","webpack:///./src/components/Comments/CommentItem.vue?725e","webpack:///./src/components/Comments/CommentItem.vue?9667","webpack:///./src/components/Comments/CommentItem.vue?4391","webpack:///./src/components/Comments/CommentItem.vue?0ea7"],"names":["components","CommentItem","props","commentObj","comments","type","Array","default","showDeleteLink","Boolean","showReplyLink","data","commentText","mComment","$props","mComments","showCommentInput","isDeleting","isSavingReply","computed","_objectSpread","mapGetters","isLoggedIn","profile","methods","filterComments","parentId","filter","c","ParentId","IsDeleted","setShowCommentInput","comment","cancelShowCommentInput","sendComment","value","_this","_commentText","$options","filters","stripHtml","replyToComment","Id","then","response","push","catch","err","finally","deleteComment","_this2","EventBus","$emit","message","$t","render","_vm","_c","_self","staticClass","class","style","backgroundImage","concat","getProfileImage","ProfileImage","ProfileId","attrs","src","require","_v","_s","_f","CreatedOn","$i18n","locale","ProfileName","Text","directives","name","rawName","expression","domProps","on","input","$event","target","composing","click","disabled","_e","CreatedBy","icon","_l","key","staticRenderFns","_withStripped"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgHA;AACA;AACA;AAEe;EACfA,UAAA;IACAC,WAAA,WAAAA,YAAA;MAAA;IAAA;EACA;EAEAC,KAAA;IACAC,UAAA;IAEAC,QAAA;MACAC,IAAA,EAAAC,KAAA;MACAC,OAAA,WAAAA,SAAA;QACA;MACA;IACA;IAEAC,cAAA;MACAH,IAAA,EAAAI,OAAA;MACAF,OAAA;IACA;IAEAG,aAAA;MACAL,IAAA,EAAAI,OAAA;MACAF,OAAA;IACA;EACA;EAEAI,IAAA,WAAAA,KAAA;IACA;MACAC,WAAA;MACAC,QAAA,OAAAC,MAAA,CAAAX,UAAA;MACAY,SAAA,OAAAD,MAAA,CAAAV,QAAA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,CAAC,wyBAA4c;AACle;AACA,4CAA4C,QAAS;AACrD;AACA;AACA,UAAU,mBAAO,CAAC,6HAAgE;AAClF,8CAA8C,qCAAqC;AACnF;AACA,GAAG,KAAU,EAAE,E;;;;;;;;;;;;ACXf,iCAAiC,oE;;;;;;;;;;;;;ACAjC;AAAA;AAAA;AAAA;AAAA;AAAqG;AACvC;AACL;AACsC;;;AAG/F;AAC6F;AAC7F,gBAAgB,mHAAU;AAC1B,EAAE,wFAAM;AACR,EAAE,yGAAM;AACR,EAAE,kHAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAiBf;AACD;AACe,gF;;;;;;;;;;;;;ACvCf;AAAmS,CAAgB,6UAAG,EAAC,C;;;;;;;;;;;;ACAvT;AAAA;AAAA;;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA","file":"js/37.js?id=235e024842eb32941ac9","sourcesContent":["<template>\n  <article\n    class=\"media media-comments commentsSection\"\n    :class=\"{ 'gray-out': isDeleting }\"\n  >\n    <div class=\"media-left\">\n      <p class=\"image is-32x32\">\n        <img\n          src=\"@/assets/images/spacer1_1.gif\"\n          class=\"is-round has-shadow\"\n          :style=\"{\n          backgroundImage: `url(${$options.filters.getProfileImage(\n            mComment.ProfileImage,\n            mComment.ProfileId,\n            38\n          )})`,\n          }\"\n        />\n      </p>\n    </div>\n    <div class=\"media-content\">\n      <div class=\"content\">\n        <div class=\"has-text-grey postDetailBar is-size-7\">\n          {{\n            mComment.CreatedOn\n            | dateTimeStampToDate\n            | longDateFormat($i18n.locale)\n          }}\n          -\n          {{ mComment.CreatedOn | timeFromDateTimeStamp }}\n        </div>\n        <div class=\"is-size-7 enable-line-break\">\n          <strong>{{ mComment.ProfileName }}, </strong>\n          <span :class=\"{ 'is-deleted': mComment.IsDeleted }\">{{\n            $options.filters.stripHtml(mComment.Text)\n            }}</span>\n        </div>\n\n        <div class=\"has-margin-top\">\n          <div v-if=\"showCommentInput\">\n            <textarea\n              class=\"textarea has-margin-bottom\"\n              v-model=\"commentText\"\n            />\n            <a\n              @click=\"cancelShowCommentInput\"\n              class=\"has-margin-right\"\n            >{{\n              $t('Components.Comments.CommentItem.Button_Cancel')\n              }}</a>\n            <a\n              @click=\"sendComment(mComment)\"\n              :disabled=\"isSavingReply\"\n              :class=\"{'is-loading': isSavingReply}\"\n              class=\"button is-primary is-small\"\n            >{{ $t('Components.Comments.CommentItem.Button_Send') }}</a>\n          </div>\n        </div>\n\n        <nav class=\"level is-mobile\">\n          <div class=\"level-left\">\n            <a\n              v-if=\"\n              isLoggedIn &&\n              !showCommentInput &&\n              mComment.CreatedBy !== profile.Id &&\n              showReplyLink\n              \"\n              @click=\"setShowCommentInput()\"\n              class=\"is-size-7\"\n            >\n              <span class=\"icon is-small\">\n                <font-awesome-icon :icon=\"['fas', 'reply']\" />\n              </span>\n              <span>{{\n                $t('Components.Comments.CommentItem.Button_Reply')\n                }}</span>\n            </a>\n          </div>\n        </nav>\n\n        <CommentItem\n          v-for=\"comment in filterComments(mComment.Id)\"\n          :key=\"comment.Id\"\n          :commentObj=\"comment\"\n          :comments=\"mComments\"\n          :showReplyLink=\"comment.ParentId === 0\"\n        />\n      </div>\n    </div>\n    <div class=\"media-right\">\n      <a\n        @click=\"deleteComment(mComment)\"\n        class=\"has-text-danger\"\n        v-if=\"\n        !mComment.IsDeleted &&\n        mComment.CreatedBy === profile.Id &&\n        showDeleteLink\n      \"\n      >\n        <span\n          class=\"icon\"\n          :class=\"{ 'is-loading': isDeleting }\"\n        >\n          <font-awesome-icon :icon=\"['fas', 'trash-alt']\" />\n        </span>\n      </a>\n    </div>\n  </article>\n</template>\n\n<script>\nimport { mapGetters, mapMutations, mapState } from 'vuex'\nimport comment from '@/providers/comment'\nimport { EventBus } from '@/eventbus/event-bus'\n\nexport default {\n  components: {\n    CommentItem: () => import('@/components/Comments/CommentItem'),\n  },\n\n  props: {\n    commentObj: null,\n\n    comments: {\n      type: Array,\n      default: function() {\n        return []\n      },\n    },\n\n    showDeleteLink: {\n      type: Boolean,\n      default: true,\n    },\n\n    showReplyLink: {\n      type: Boolean,\n      default: true,\n    },\n  },\n\n  data() {\n    return {\n      commentText: '',\n      mComment: this.$props.commentObj,\n      mComments: this.$props.comments,\n      showCommentInput: false,\n      isDeleting: false,\n      isSavingReply: false\n    }\n  },\n\n  computed: {\n    ...mapGetters({\n      isLoggedIn: 'profileStore/getIsLoggedIn',\n      profile: 'profileStore/getProfile',\n    })\n  },\n\n  methods: {\n    // NOTE: Add link in name to commentitem to show that user's profile drawer.\n    // showProfileDetail(profileId) {\n    //   this.$store.commit('setSelectedPublicProfile', profileId)\n    // },\n\n    filterComments(parentId) {\n      return this.mComments.filter(\n        (c) => c.ParentId === parentId && !c.IsDeleted\n      )\n    },\n\n    setShowCommentInput(comment) {\n      this.showCommentInput = true\n    },\n\n    cancelShowCommentInput(comment) {\n      if (this.isSavingReply) { return }\n      this.showCommentInput = false\n    },\n\n    sendComment(value) {\n      const _commentText = this.$options.filters.stripHtml(this.commentText)\n\n      if (!_commentText || this.isSavingReply) { return }\n\n      this.isSavingReply = true\n\n      comment.methods\n        .replyToComment(value.Id, _commentText)\n        .then((response) => {\n          this.mComments.push(response.data)\n          this.commentText = ''\n          this.showCommentInput = false\n        })\n        .catch((err) => { })\n        .finally(() => { this.isSavingReply = false })\n    },\n\n    deleteComment(value) {\n      if (this.isDeleting) { return }\n      this.isDeleting = true\n      comment.methods\n        .deleteComment(value.Id)\n        .then((response) => {\n          EventBus.$emit('showToast', {\n            type: 'info',\n            message: this.$t('General.DeletedSuccesfully')\n          })\n          EventBus.$emit('commentDeleted', value)\n        })\n        .catch((err) => {\n          this.isDeleting = false\n          EventBus.$emit('showToast', {\n            type: 'info',\n            message: this.$t(\n              'General.DeletingError'\n            ),\n          })\n        })\n        .finally(() => {\n        })\n    },\n  },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.is-deleted {\n  text-decoration: line-through;\n}\n\n.enable-line-break {\n  white-space: pre-wrap;\n}\n\n.gray-out {\n  opacity: 0.7;\n}\n\n.commentsSection {\n  border-radius: 8px;\n  // align-items: center;\n  padding: 5px;\n}\n</style>\n","var render = function render() {\n  var _vm = this,\n    _c = _vm._self._c\n  return _c(\n    \"article\",\n    {\n      staticClass: \"media media-comments commentsSection\",\n      class: { \"gray-out\": _vm.isDeleting },\n    },\n    [\n      _c(\"div\", { staticClass: \"media-left\" }, [\n        _c(\"p\", { staticClass: \"image is-32x32\" }, [\n          _c(\"img\", {\n            staticClass: \"is-round has-shadow\",\n            style: {\n              backgroundImage: `url(${_vm.$options.filters.getProfileImage(\n                _vm.mComment.ProfileImage,\n                _vm.mComment.ProfileId,\n                38\n              )})`,\n            },\n            attrs: { src: require(\"@/assets/images/spacer1_1.gif\") },\n          }),\n        ]),\n      ]),\n      _c(\"div\", { staticClass: \"media-content\" }, [\n        _c(\n          \"div\",\n          { staticClass: \"content\" },\n          [\n            _c(\n              \"div\",\n              { staticClass: \"has-text-grey postDetailBar is-size-7\" },\n              [\n                _vm._v(\n                  \" \" +\n                    _vm._s(\n                      _vm._f(\"longDateFormat\")(\n                        _vm._f(\"dateTimeStampToDate\")(_vm.mComment.CreatedOn),\n                        _vm.$i18n.locale\n                      )\n                    ) +\n                    \" - \" +\n                    _vm._s(\n                      _vm._f(\"timeFromDateTimeStamp\")(_vm.mComment.CreatedOn)\n                    ) +\n                    \" \"\n                ),\n              ]\n            ),\n            _c(\"div\", { staticClass: \"is-size-7 enable-line-break\" }, [\n              _c(\"strong\", [_vm._v(_vm._s(_vm.mComment.ProfileName) + \", \")]),\n              _c(\"span\", { class: { \"is-deleted\": _vm.mComment.IsDeleted } }, [\n                _vm._v(\n                  _vm._s(_vm.$options.filters.stripHtml(_vm.mComment.Text))\n                ),\n              ]),\n            ]),\n            _c(\"div\", { staticClass: \"has-margin-top\" }, [\n              _vm.showCommentInput\n                ? _c(\"div\", [\n                    _c(\"textarea\", {\n                      directives: [\n                        {\n                          name: \"model\",\n                          rawName: \"v-model\",\n                          value: _vm.commentText,\n                          expression: \"commentText\",\n                        },\n                      ],\n                      staticClass: \"textarea has-margin-bottom\",\n                      domProps: { value: _vm.commentText },\n                      on: {\n                        input: function ($event) {\n                          if ($event.target.composing) return\n                          _vm.commentText = $event.target.value\n                        },\n                      },\n                    }),\n                    _vm._v(\" \"),\n                    _c(\n                      \"a\",\n                      {\n                        staticClass: \"has-margin-right\",\n                        on: { click: _vm.cancelShowCommentInput },\n                      },\n                      [\n                        _vm._v(\n                          _vm._s(\n                            _vm.$t(\n                              \"Components.Comments.CommentItem.Button_Cancel\"\n                            )\n                          )\n                        ),\n                      ]\n                    ),\n                    _c(\n                      \"a\",\n                      {\n                        staticClass: \"button is-primary is-small\",\n                        class: { \"is-loading\": _vm.isSavingReply },\n                        attrs: { disabled: _vm.isSavingReply },\n                        on: {\n                          click: function ($event) {\n                            return _vm.sendComment(_vm.mComment)\n                          },\n                        },\n                      },\n                      [\n                        _vm._v(\n                          _vm._s(\n                            _vm.$t(\n                              \"Components.Comments.CommentItem.Button_Send\"\n                            )\n                          )\n                        ),\n                      ]\n                    ),\n                  ])\n                : _vm._e(),\n            ]),\n            _c(\"nav\", { staticClass: \"level is-mobile\" }, [\n              _c(\"div\", { staticClass: \"level-left\" }, [\n                _vm.isLoggedIn &&\n                !_vm.showCommentInput &&\n                _vm.mComment.CreatedBy !== _vm.profile.Id &&\n                _vm.showReplyLink\n                  ? _c(\n                      \"a\",\n                      {\n                        staticClass: \"is-size-7\",\n                        on: {\n                          click: function ($event) {\n                            return _vm.setShowCommentInput()\n                          },\n                        },\n                      },\n                      [\n                        _c(\n                          \"span\",\n                          { staticClass: \"icon is-small\" },\n                          [\n                            _c(\"font-awesome-icon\", {\n                              attrs: { icon: [\"fas\", \"reply\"] },\n                            }),\n                          ],\n                          1\n                        ),\n                        _c(\"span\", [\n                          _vm._v(\n                            _vm._s(\n                              _vm.$t(\n                                \"Components.Comments.CommentItem.Button_Reply\"\n                              )\n                            )\n                          ),\n                        ]),\n                      ]\n                    )\n                  : _vm._e(),\n              ]),\n            ]),\n            _vm._l(_vm.filterComments(_vm.mComment.Id), function (comment) {\n              return _c(\"CommentItem\", {\n                key: comment.Id,\n                attrs: {\n                  commentObj: comment,\n                  comments: _vm.mComments,\n                  showReplyLink: comment.ParentId === 0,\n                },\n              })\n            }),\n          ],\n          2\n        ),\n      ]),\n      _c(\"div\", { staticClass: \"media-right\" }, [\n        !_vm.mComment.IsDeleted &&\n        _vm.mComment.CreatedBy === _vm.profile.Id &&\n        _vm.showDeleteLink\n          ? _c(\n              \"a\",\n              {\n                staticClass: \"has-text-danger\",\n                on: {\n                  click: function ($event) {\n                    return _vm.deleteComment(_vm.mComment)\n                  },\n                },\n              },\n              [\n                _c(\n                  \"span\",\n                  {\n                    staticClass: \"icon\",\n                    class: { \"is-loading\": _vm.isDeleting },\n                  },\n                  [\n                    _c(\"font-awesome-icon\", {\n                      attrs: { icon: [\"fas\", \"trash-alt\"] },\n                    }),\n                  ],\n                  1\n                ),\n              ]\n            )\n          : _vm._e(),\n      ]),\n    ]\n  )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"/**\\n* Colors\\n*/\\n/**\\n* Text sizes\\n*/\\n/**\\n* Column settings\\n*/\\n/**\\n* Font properties\\n*/\\n.is-deleted[data-v-09b0b9f2] {\\n  text-decoration: line-through;\\n}\\n.enable-line-break[data-v-09b0b9f2] {\\n  white-space: pre-wrap;\\n}\\n.gray-out[data-v-09b0b9f2] {\\n  opacity: 0.7;\\n}\\n.commentsSection[data-v-09b0b9f2] {\\n  border-radius: 8px;\\n  padding: 5px;\\n}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../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!./CommentItem.vue?vue&type=style&index=0&id=09b0b9f2&lang=scss&scoped=true\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"6aeed446\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(module.hot) {\n // When the styles change, update the <style> tags\n if(!content.locals) {\n   module.hot.accept(\"!!../../../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!./CommentItem.vue?vue&type=style&index=0&id=09b0b9f2&lang=scss&scoped=true\", function() {\n     var newContent = require(\"!!../../../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!./CommentItem.vue?vue&type=style&index=0&id=09b0b9f2&lang=scss&scoped=true\");\n     if(newContent.__esModule) newContent = newContent.default;\n     if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n     update(newContent);\n   });\n }\n // When the module is disposed, remove the <style> tags\n module.hot.dispose(function() { update(); });\n}","module.exports = \"data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\"","import { render, staticRenderFns } from \"./CommentItem.vue?vue&type=template&id=09b0b9f2&scoped=true\"\nimport script from \"./CommentItem.vue?vue&type=script&lang=js\"\nexport * from \"./CommentItem.vue?vue&type=script&lang=js\"\nimport style0 from \"./CommentItem.vue?vue&type=style&index=0&id=09b0b9f2&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  \"09b0b9f2\",\n  null\n  \n)\n\n/* hot reload */\nif (module.hot) {\n  var api = require(\"/github/workspace/node_modules/vue-hot-reload-api/dist/index.js\")\n  api.install(require('vue'))\n  if (api.compatible) {\n    module.hot.accept()\n    if (!api.isRecorded('09b0b9f2')) {\n      api.createRecord('09b0b9f2', component.options)\n    } else {\n      api.reload('09b0b9f2', component.options)\n    }\n    module.hot.accept(\"./CommentItem.vue?vue&type=template&id=09b0b9f2&scoped=true\", function () {\n      api.rerender('09b0b9f2', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"src/components/Comments/CommentItem.vue\"\nexport default component.exports","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../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!./CommentItem.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../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!./CommentItem.vue?vue&type=script&lang=js\"","export * from \"-!../../../node_modules/vue-style-loader/index.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!./CommentItem.vue?vue&type=style&index=0&id=09b0b9f2&lang=scss&scoped=true\"","export * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"d2a26fb4-vue-loader-template\\\"}!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommentItem.vue?vue&type=template&id=09b0b9f2&scoped=true\""],"sourceRoot":""}