exports.ids = [34];
exports.modules = {

/***/ 144:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader??ref--1-oneOf-0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/announcement/_id.vue?vue&type=template&id=5029082a&lang=pug&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',[_c('v-card',[_c('v-card-title',[_vm._v(_vm._s(_vm.announcement.title))]),_c('v-card-text',{domProps:{"innerHTML":_vm._s(_vm.announcement.announcement)}})],1)],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./pages/announcement/_id.vue?vue&type=template&id=5029082a&lang=pug&

// EXTERNAL MODULE: external "vuex"
var external_vuex_ = __webpack_require__(3);

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--2-0!./node_modules/babel-loader/lib??ref--2-1!./node_modules/vue-loader/lib??vue-loader-options!./pages/announcement/_id.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//

/* harmony default export */ var _idvue_type_script_lang_js_ = ({
  name: 'Announcement',

  asyncData({
    $axios,
    params,
    error,
    store
  }) {
    try {
      const id = Number(params.id);
      const announcement = store.state.announcements.find(a => a.id === id);

      if (!announcement) {
        error({
          statusCode: 404,
          message: 'Announcement not found'
        });
      }

      return {
        announcement
      };
    } catch (e) {
      error({
        statusCode: 404,
        message: 'Announcement not found'
      });
    }
  },

  data() {
    return {
      announcement: {
        title: ''
      }
    };
  },

  head() {
    if (!this.announcement) {
      return {};
    }

    return {
      title: `${this.settings.title} - ${this.announcement.title}`
    };
  },

  computed: Object(external_vuex_["mapState"])(['announcements', 'settings'])
});
// CONCATENATED MODULE: ./pages/announcement/_id.vue?vue&type=script&lang=js&
 /* harmony default export */ var announcement_idvue_type_script_lang_js_ = (_idvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(1);

// CONCATENATED MODULE: ./pages/announcement/_id.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  announcement_idvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  "e5382cd4"
  
)

/* harmony default export */ var _id = __webpack_exports__["default"] = (component.exports);

/***/ })

};;
//# sourceMappingURL=_id.js.map