@europeana/portal
Version:
Europeana Portal
116 lines (95 loc) • 3.25 kB
JavaScript
exports.ids = [110];
exports.modules = {
/***/ 565:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
;
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/components/generic/NewFeatureNotification.vue?vue&type=template&id=17354939&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-toast',{attrs:{"id":"new-feature-toast","auto-hide-delay":"60000","is-status":"","no-close-button":"","solid":"","toast-class":"brand-toast-white","visible":"","append-toast":"","toaster":"b-toaster-bottom-left-dynamic"}},[_vm._t("default"),_vm._v(" "),_c('div',{staticClass:"d-flex justify-content-between"},[_c('b-button',{attrs:{"variant":"outline-primary"},on:{"click":_vm.hideToast}},[_vm._v("\n "+_vm._s(_vm.$t('newFeatureNotification.dismiss'))+"\n ")]),_vm._v(" "),(_vm.url)?_c('b-button',{attrs:{"variant":"primary","href":_vm.url,"target":"blank","data-qa":"new feature read more"},on:{"click":function($event){return _vm.trackEvent('click read more')}}},[_vm._v("\n "+_vm._s(_vm.$t('newFeatureNotification.readMore'))+"\n ")]):_vm._e()],1)],2)}
var staticRenderFns = []
// CONCATENATED MODULE: ./src/components/generic/NewFeatureNotification.vue?vue&type=template&id=17354939&
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/generic/NewFeatureNotification.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var NewFeatureNotificationvue_type_script_lang_js_ = ({
name: 'NewFeatureNotification',
props: {
url: {
type: String,
default: null
},
feature: {
type: String,
default: null
}
},
created() {
this.trackEvent('show');
this.$cookies.set('new_feature_notification', this.feature, {
maxAge: 2678400
});
},
methods: {
hideToast() {
this.$bvToast.hide('new-feature-toast');
this.trackEvent('dismissed');
},
trackEvent(msg) {
if (this.$matomo) {
this.$matomo.trackEvent('New_feature_notification', msg, this.feature);
}
}
}
});
// CONCATENATED MODULE: ./src/components/generic/NewFeatureNotification.vue?vue&type=script&lang=js&
/* harmony default export */ var generic_NewFeatureNotificationvue_type_script_lang_js_ = (NewFeatureNotificationvue_type_script_lang_js_);
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(3);
// CONCATENATED MODULE: ./src/components/generic/NewFeatureNotification.vue
/* normalize component */
var component = Object(componentNormalizer["a" /* default */])(
generic_NewFeatureNotificationvue_type_script_lang_js_,
render,
staticRenderFns,
false,
null,
null,
"b10ec19c"
)
/* harmony default export */ var NewFeatureNotification = __webpack_exports__["default"] = (component.exports);
/***/ })
};;
//# sourceMappingURL=110.js.map