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

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

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

// EXTERNAL MODULE: ./node_modules/vuetify/lib/components/VCard/VCard.js
var VCard = __webpack_require__(88);

// EXTERNAL MODULE: ./node_modules/vuetify/lib/components/VCard/index.js
var components_VCard = __webpack_require__(14);

// EXTERNAL MODULE: ./node_modules/vuetify/lib/components/VGrid/VContainer.js + 1 modules
var VContainer = __webpack_require__(230);

// CONCATENATED MODULE: ./node_modules/vuetify-loader/lib/loader.js??ref--4!./node_modules/cache-loader/dist/cjs.js??ref--2-0!./node_modules/babel-loader/lib??ref--2-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--7!./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=2d55be3a&lang=pug





var _idvue_type_template_id_2d55be3a_lang_pug_render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c(VContainer["a" /* default */], [_c(VCard["a" /* default */], [_c(components_VCard["d" /* VCardTitle */], {
    staticClass: "text-h4 font-weight-bold"
  }, [_vm._v(_vm._s(_vm.announcement.title))]), _c(components_VCard["c" /* VCardText */], {
    domProps: {
      "innerHTML": _vm._s(_vm.announcement.announcement)
    }
  })], 1)], 1);
};
var staticRenderFns = [];

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

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

// 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',
  async asyncData({
    params,
    error,
    $axios
  }) {
    try {
      const announcement_id = Number(params.id);
      const announcement = await $axios.$get(`/announcements/${announcement_id}`);
      if (!announcement) {
        error({
          statusCode: 404,
          message: 'Announcement not found'
        });
      }
      return {
        announcement
      };
    } catch (e) {
      console.error(e);
      error({
        statusCode: 404,
        message: 'Announcement not found'
      });
    }
  },
  data() {
    return {
      announcement: {
        title: ''
      }
    };
  },
  head() {
    if (!this.announcement) {
      return {};
    }
    return {
      htmlAttrs: {
        lang: this.settings.instance_locale
      },
      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__(7);

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





/* normalize component */

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

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

/***/ })

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