{"version":3,"sources":["webpack:///src/components/Events/ModalEditEventDescription.vue","webpack:///./src/components/Events/ModalEditEventDescription.vue","webpack:///./src/components/Events/ModalEditEventDescription.vue?1fa6","webpack:///./src/components/Events/ModalEditEventDescription.vue?8efa","webpack:///./src/components/Events/ModalEditEventDescription.vue?6f3d"],"names":["Message","TextEditor","components","message","props","showModal","type","Boolean","default","onClickCancel","Function","required","data","isSaving","isSavingError","isSavingSuccess","mEventData","$objectHelper","cleanSource","$store","getters","methods","_objectSpread","mapMutations","saveEventDescription","self","eventProvider","updateEvent","then","response","status","setEventData","setTimeout","catch","e","finally","render","_vm","_c","_self","attrs","modalTitle","$t","modalSize","disableSaveButton","Description","length","onClickSave","hideFooter","on","closeModal","scopedSlots","_u","key","fn","staticClass","_e","model","value","callback","$$v","$set","expression","proxy","staticRenderFns","_withStripped"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA6BA;AACA;AACA,IAAAA,OAAA,YAAAA,QAAA;EAAA;AAAA;AACA,IAAAC,UAAA,YAAAA,WAAA;EAAA;AAAA;AACe;EACfC,UAAA;IACA,eAAAD,UAAA;IACAE,OAAA,EAAAH;EACA;EACAI,KAAA;IACAC,SAAA;MACAC,IAAA,EAAAC,OAAA;MACAC,OAAA;IACA;IACAC,aAAA;MACAH,IAAA,EAAAI,QAAA;MACAC,QAAA;IACA;EACA;EACAC,IAAA,WAAAA,KAAA;IACA;MACAC,QAAA;MACAC,aAAA;MACAC,eAAA;MACAC,UAAA,OAAAC,aAAA,CAAAC,WAAA,CACA,KAAAC,MAAA,CAAAC,OAAA,2BACA;IACA;EACA;EACAC,OAAA,EAAAC,iIAAA,CAAAA,iIAAA,KACAC,iEAAA;IACAC,oBAAA,WAAAA,qBAAA;MACA,IAAAC,IAAA;;MAEA;MACA,UAAAZ,QAAA;QACA,KAAAA,QAAA;QAEAa,gEAAA,CAAAL,OAAA,CACAM,WAAA,MAAAX,UAAA,EACAY,IAAA,WAAAC,QAAA;UACA,IAAAA,QAAA,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CAACC,MAAM,GAC9BR,EAAE,CAAC,SAAS,EAAE;UACZiB,WAAW,EAAE,mBAAmB;UAChCf,KAAK,EAAE;YACLlC,IAAI,EAAE,WAAW;YACjBH,OAAO,EAAEkC,GAAG,CAACK,EAAE,CACb,kEACF;UACF;QACF,CAAC,CAAC,GACFL,GAAG,CAACmB,EAAE,CAAC,CAAC,EACZlB,EAAE,CAAC,aAAa,EAAE;UAChBmB,KAAK,EAAE;YACLC,KAAK,EAAErB,GAAG,CAACrB,UAAU,CAAC6B,WAAW;YACjCc,QAAQ,EAAE,SAAVA,QAAQA,CAAYC,GAAG,EAAE;cACvBvB,GAAG,CAACwB,IAAI,CAACxB,GAAG,CAACrB,UAAU,EAAE,aAAa,EAAE4C,GAAG,CAAC;YAC9C,CAAC;YACDE,UAAU,EAAE;UACd;QACF,CAAC,CAAC,CACH;MACH,CAAC;MACDC,KAAK,EAAE;IACT,CAAC,CACF;EACH,CAAC,CAAC;AACJ,CAAC;AACD,IAAIC,eAAe,GAAG,EAAE;AACxB5B,MAAM,CAAC6B,aAAa,GAAG,IAAI;;;;;;;;;;;;;;AClD3B;AAAA;AAAA;AAAA;AAAuG;AAC3B;AACL;;;AAGvE;AAC6F;AAC7F,gBAAgB,mHAAU;AAC1B,EAAE,sGAAM;AACR,EAAE,2GAAM;AACR,EAAE,oHAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAiBf;AACD;AACe,gF;;;;;;;;;;;;;ACtCf;AAAiT,CAAgB,2VAAG,EAAC,C;;;;;;;;;;;;;ACArU;AAAA;AAAA;AAAA;AAAA","file":"js/354.js?id=b7c9814751a1b97a7fdb","sourcesContent":["<template>\n  <ui-component-modal\n    :modalTitle=\"$t('Components.Events.EventDescription.Edit.Main_Title')\"\n    modalSize=\"large\"\n    :disableSaveButton=\"!mEventData.Description.length\"\n    :onClickCancel=\"onClickCancel\"\n    :showModal=\"showModal\"\n    :onClickSave=\"saveEventDescription\"\n    :isSaving=\"isSaving\"\n    :isSavingSuccess=\"isSavingSuccess\"\n    :isSavingError=\"isSavingError\"\n    :hideFooter=\"isSavingError || isSavingSuccess\"\n    @closeModal=\"onClickCancel\"\n  >\n    <template v-slot:content>\n      <message\n        v-if=\"!mEventData.Description.length\"\n        type=\"is-danger\"\n        :message=\"\n          $t('Components.Events.EventDescription.Edit.Error_NoDescriptionGiven')\n        \"\n        class=\"has-marign-bottom\"\n      />\n      <text-editor v-model=\"mEventData.Description\"></text-editor>\n    </template>\n  </ui-component-modal>\n</template>\n\n<script>\nimport { mapMutations } from 'vuex'\nimport eventProvider from '@/providers/event'\nconst Message = () => import('@/components/UI/Message')\nconst TextEditor = () => import('@/components/UI/TextEditor')\nexport default {\n  components: {\n    'text-editor': TextEditor,\n    message: Message,\n  },\n  props: {\n    showModal: {\n      type: Boolean,\n      default: false,\n    },\n    onClickCancel: {\n      type: Function,\n      required: true,\n    },\n  },\n  data() {\n    return {\n      isSaving: false,\n      isSavingError: false,\n      isSavingSuccess: false,\n      mEventData: this.$objectHelper.cleanSource(\n        this.$store.getters['eventStore/getEventData']\n      ),\n    }\n  },\n  methods: {\n    ...mapMutations('eventStore', ['setEventData']),\n    saveEventDescription() {\n      let self = this\n\n      // Save Call\n      if (!this.isSaving) {\n        this.isSaving = true\n\n        eventProvider.methods\n          .updateEvent(this.mEventData)\n          .then((response) => {\n            if (response.status === 200) {\n              self.setEventData(response.data)\n              self.isSavingSuccess = true\n\n              setTimeout(() => {\n                self.onClickCancel()\n              }, 1500)\n            }\n          })\n          .catch((e) => {\n            //self.$console.info(e)\n            self.isSavingError = true\n          })\n          .finally(() => {\n            self.isSaving = false\n          })\n      }\n    },\n  },\n}\n</script>\n","var render = function render() {\n  var _vm = this,\n    _c = _vm._self._c\n  return _c(\"ui-component-modal\", {\n    attrs: {\n      modalTitle: _vm.$t(\"Components.Events.EventDescription.Edit.Main_Title\"),\n      modalSize: \"large\",\n      disableSaveButton: !_vm.mEventData.Description.length,\n      onClickCancel: _vm.onClickCancel,\n      showModal: _vm.showModal,\n      onClickSave: _vm.saveEventDescription,\n      isSaving: _vm.isSaving,\n      isSavingSuccess: _vm.isSavingSuccess,\n      isSavingError: _vm.isSavingError,\n      hideFooter: _vm.isSavingError || _vm.isSavingSuccess,\n    },\n    on: { closeModal: _vm.onClickCancel },\n    scopedSlots: _vm._u([\n      {\n        key: \"content\",\n        fn: function () {\n          return [\n            !_vm.mEventData.Description.length\n              ? _c(\"message\", {\n                  staticClass: \"has-marign-bottom\",\n                  attrs: {\n                    type: \"is-danger\",\n                    message: _vm.$t(\n                      \"Components.Events.EventDescription.Edit.Error_NoDescriptionGiven\"\n                    ),\n                  },\n                })\n              : _vm._e(),\n            _c(\"text-editor\", {\n              model: {\n                value: _vm.mEventData.Description,\n                callback: function ($$v) {\n                  _vm.$set(_vm.mEventData, \"Description\", $$v)\n                },\n                expression: \"mEventData.Description\",\n              },\n            }),\n          ]\n        },\n        proxy: true,\n      },\n    ]),\n  })\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./ModalEditEventDescription.vue?vue&type=template&id=94bd02da\"\nimport script from \"./ModalEditEventDescription.vue?vue&type=script&lang=js\"\nexport * from \"./ModalEditEventDescription.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\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('94bd02da')) {\n      api.createRecord('94bd02da', component.options)\n    } else {\n      api.reload('94bd02da', component.options)\n    }\n    module.hot.accept(\"./ModalEditEventDescription.vue?vue&type=template&id=94bd02da\", function () {\n      api.rerender('94bd02da', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"src/components/Events/ModalEditEventDescription.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!./ModalEditEventDescription.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!./ModalEditEventDescription.vue?vue&type=script&lang=js\"","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!./ModalEditEventDescription.vue?vue&type=template&id=94bd02da\""],"sourceRoot":""}