sub-nav.js 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. exports.ids = [31];
  2. exports.modules = {
  3. /***/ 211:
  4. /***/ (function(module, exports) {
  5. // Exports
  6. module.exports = {
  7. };
  8. /***/ }),
  9. /***/ 231:
  10. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11. "use strict";
  12. __webpack_require__.r(__webpack_exports__);
  13. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SubNav_vue_vue_type_style_index_0_id_caaef568_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(211);
  14. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SubNav_vue_vue_type_style_index_0_id_caaef568_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SubNav_vue_vue_type_style_index_0_id_caaef568_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
  15. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SubNav_vue_vue_type_style_index_0_id_caaef568_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SubNav_vue_vue_type_style_index_0_id_caaef568_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  16. /***/ }),
  17. /***/ 290:
  18. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19. "use strict";
  20. // ESM COMPAT FLAG
  21. __webpack_require__.r(__webpack_exports__);
  22. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/SubNav.vue?vue&type=template&id=caaef568&scoped=true
  23. var render = function render() {
  24. var _vm = this,
  25. _c = _vm._self._c;
  26. return _c('section', {
  27. staticClass: "com-margin-auto sub-nav",
  28. style: {
  29. 'max-width': `${_vm.com_secondaryBannerLth * 350}px`,
  30. 'grid-template-columns': `repeat(${_vm.com_secondaryBannerLth}, 1fr)`
  31. }
  32. }, _vm._l(_vm.com_secondaryBanner, function (item) {
  33. return _vm._ssrNode("<figure data-v-caaef568>", "</figure>", [_vm._ssrNode("<a" + _vm._ssrAttr("href", item.link) + " target=\"_blank\" data-v-caaef568>", "</a>", [_c('el-image', {
  34. staticStyle: {
  35. "width": "100%"
  36. },
  37. style: {
  38. height: _vm.imageLoaded ? '100%' : '268px'
  39. },
  40. attrs: {
  41. "lazy": "",
  42. "src": item.image,
  43. "alt": item.title,
  44. "fit": "cover"
  45. },
  46. on: {
  47. "load": function ($event) {
  48. _vm.imageLoaded = true;
  49. }
  50. }
  51. })], 1)]);
  52. }), 0);
  53. };
  54. var staticRenderFns = [];
  55. // CONCATENATED MODULE: ./components/SubNav.vue?vue&type=template&id=caaef568&scoped=true
  56. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/SubNav.vue?vue&type=script&lang=js
  57. /* harmony default export */ var SubNavvue_type_script_lang_js = ({
  58. props: {
  59. secondaryBanner: []
  60. },
  61. data() {
  62. return {
  63. imageLoaded: false
  64. };
  65. },
  66. computed: {
  67. com_secondaryBanner() {
  68. return this.secondaryBanner.slice(0, 4);
  69. },
  70. com_secondaryBannerLth() {
  71. var _this$com_secondaryBa;
  72. return (_this$com_secondaryBa = this.com_secondaryBanner) === null || _this$com_secondaryBa === void 0 ? void 0 : _this$com_secondaryBa.length;
  73. }
  74. }
  75. });
  76. // CONCATENATED MODULE: ./components/SubNav.vue?vue&type=script&lang=js
  77. /* harmony default export */ var components_SubNavvue_type_script_lang_js = (SubNavvue_type_script_lang_js);
  78. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  79. var componentNormalizer = __webpack_require__(2);
  80. // CONCATENATED MODULE: ./components/SubNav.vue
  81. function injectStyles (context) {
  82. var style0 = __webpack_require__(231)
  83. if (style0.__inject__) style0.__inject__(context)
  84. }
  85. /* normalize component */
  86. var component = Object(componentNormalizer["a" /* default */])(
  87. components_SubNavvue_type_script_lang_js,
  88. render,
  89. staticRenderFns,
  90. false,
  91. injectStyles,
  92. "caaef568",
  93. "8420d41e"
  94. )
  95. /* harmony default export */ var SubNav = __webpack_exports__["default"] = (component.exports);
  96. /***/ })
  97. };;
  98. //# sourceMappingURL=sub-nav.js.map