exports.ids = [66,19];
exports.modules = {

/***/ 141:
/***/ (function(module, exports) {

// Exports
module.exports = {

};


/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* 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_Pagination_vue_vue_type_style_index_0_id_044ef958_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(141);
/* 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_Pagination_vue_vue_type_style_index_0_id_044ef958_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_Pagination_vue_vue_type_style_index_0_id_044ef958_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* 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_Pagination_vue_vue_type_style_index_0_id_044ef958_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_Pagination_vue_vue_type_style_index_0_id_044ef958_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

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

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

// 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/Pagination.vue?vue&type=template&id=044ef958&scoped=true
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c('div', {
    staticClass: "pagination-container",
    class: {
      'hidden': _vm.hidden
    }
  }, [_vm._t("slot"), _vm._ssrNode(" "), _c('el-pagination', _vm._b({
    attrs: {
      "background": _vm.background,
      "current-page": _vm.currentPage,
      "page-size": _vm.pageSize,
      "layout": _vm.layout,
      "total": _vm.total
    },
    on: {
      "update:currentPage": function ($event) {
        _vm.currentPage = $event;
      },
      "update:current-page": function ($event) {
        _vm.currentPage = $event;
      },
      "update:pageSize": function ($event) {
        _vm.pageSize = $event;
      },
      "update:page-size": function ($event) {
        _vm.pageSize = $event;
      },
      "size-change": _vm.handleSizeChange,
      "current-change": _vm.handleCurrentChange
    }
  }, 'el-pagination', _vm.$attrs, false))], 2);
};
var staticRenderFns = [];

// CONCATENATED MODULE: ./components/Pagination.vue?vue&type=template&id=044ef958&scoped=true

// 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/Pagination.vue?vue&type=script&lang=js
/* harmony default export */ var Paginationvue_type_script_lang_js = ({
  name: 'Pagination',
  props: {
    total: {
      required: true,
      type: Number
    },
    page: {
      type: Number,
      default: 0
    },
    limit: {
      type: Number,
      default: 10
    },
    // pageSizes: {
    //   type: Array,
    //   default() {
    //     return [10, 20, 50, 100]
    //   }
    // },
    layout: {
      type: String,
      default: 'prev, pager, next'
    },
    background: {
      type: Boolean,
      default: true
    },
    autoScroll: {
      type: Boolean,
      default: true
    },
    hidden: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    currentPage: {
      get() {
        return this.page;
      },
      set(val) {
        this.$emit('update:page', val);
      }
    },
    pageSize: {
      get() {
        return this.limit;
      },
      set(val) {
        this.$emit('update:limit', val);
      }
    }
  },
  methods: {
    handleSizeChange(val) {
      this.$emit('pagination', {
        page: this.currentPage,
        limit: val
      });
      if (this.autoScroll) {
        scrollTo(0, 800);
      }
    },
    handleCurrentChange(val) {
      this.$emit('pagination', {
        page: val,
        limit: this.pageSize
      });
      if (this.autoScroll) {
        scrollTo(0, 800);
      }
    }
  }
});
// CONCATENATED MODULE: ./components/Pagination.vue?vue&type=script&lang=js
 /* harmony default export */ var components_Paginationvue_type_script_lang_js = (Paginationvue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./components/Pagination.vue



function injectStyles (context) {
  
  var style0 = __webpack_require__(149)
if (style0.__inject__) style0.__inject__(context)

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_Paginationvue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  injectStyles,
  "044ef958",
  "40ff4db0"
  
)

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

/***/ }),

/***/ 246:
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__.p + "img/Wood.619233b.png";

/***/ }),

/***/ 273:
/***/ (function(module, exports) {

// Exports
module.exports = {

};


/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* 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_catalogue_vue_vue_type_style_index_0_id_98c8d9ea_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(273);
/* 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_catalogue_vue_vue_type_style_index_0_id_98c8d9ea_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_catalogue_vue_vue_type_style_index_0_id_98c8d9ea_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* 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_catalogue_vue_vue_type_style_index_0_id_98c8d9ea_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_catalogue_vue_vue_type_style_index_0_id_98c8d9ea_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

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

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

// 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!./pages/home/catalogue.vue?vue&type=template&id=98c8d9ea&scoped=true
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c('div', {
    staticClass: "com-main com-width-1400 com-margin-auto"
  }, [_c('el-breadcrumb', {
    attrs: {
      "separator-class": "el-icon-arrow-right"
    }
  }, [_c('el-breadcrumb-item', {
    attrs: {
      "to": {
        path: '/'
      }
    }
  }, [_vm._v("Home")]), _vm._v(" "), _c('el-breadcrumb-item', [_vm._v("Catalogue")])], 1), _vm._ssrNode(" <p class=\"title\" data-v-98c8d9ea>Catalogue Library</p> <div class=\"line\" data-v-98c8d9ea></div> "), _c('div', {
    directives: [{
      name: "loading",
      rawName: "v-loading",
      value: _vm.listLoading,
      expression: "listLoading"
    }],
    staticClass: "item"
  }, [_vm._ssrNode("<div class=\"backgroung-img-1\"" + _vm._ssrStyle(null, null, {
    display: _vm.catalogueList.length > 0 ? '' : 'none'
  }) + " data-v-98c8d9ea><img" + _vm._ssrAttr("src", __webpack_require__(246)) + " alt data-v-98c8d9ea></div> <div class=\"backgroung-img-2\"" + _vm._ssrStyle(null, null, {
    display: _vm.catalogueList.length > 4 ? '' : 'none'
  }) + " data-v-98c8d9ea><img" + _vm._ssrAttr("src", __webpack_require__(246)) + " alt data-v-98c8d9ea></div> <div class=\"backgroung-img-3\"" + _vm._ssrStyle(null, null, {
    display: _vm.catalogueList.length > 8 ? '' : 'none'
  }) + " data-v-98c8d9ea><img" + _vm._ssrAttr("src", __webpack_require__(246)) + " alt data-v-98c8d9ea></div> "), _vm._ssrNode("<ul data-v-98c8d9ea>", "</ul>", _vm._l(_vm.catalogueList, function (item) {
    return _vm._ssrNode("<li data-v-98c8d9ea>", "</li>", [_vm._ssrNode("<a" + _vm._ssrAttr("href", item.filepath) + " target=\"_blank\" data-v-98c8d9ea>", "</a>", [_vm._ssrNode("<div class=\"item-img\" data-v-98c8d9ea>", "</div>", [_c('el-image', {
      staticStyle: {
        "width": "100%",
        "height": "100%"
      },
      attrs: {
        "src": _vm.$utils.generateResizedImageUrl(item.img, 500),
        "fit": "cover"
      }
    })], 1), _vm._ssrNode(" <div class=\"item-title\" data-v-98c8d9ea><p data-v-98c8d9ea>Promo Collection</p> <p data-v-98c8d9ea>" + _vm._ssrEscape(_vm._s(item.title)) + "</p></div> <p class=\"item-date\" data-v-98c8d9ea>" + _vm._ssrEscape(_vm._s(item.update_time)) + "</p>")], 2)]);
  }), 0), _vm._ssrNode(" "), _c('pagination', {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.total > 0,
      expression: "total > 0"
    }],
    attrs: {
      "total": _vm.total,
      "page": _vm.listQuery.page,
      "limit": _vm.listQuery.limit
    },
    on: {
      "update:page": function ($event) {
        return _vm.$set(_vm.listQuery, "page", $event);
      },
      "update:limit": function ($event) {
        return _vm.$set(_vm.listQuery, "limit", $event);
      },
      "pagination": _vm.getList
    }
  })], 2), _vm._ssrNode(" "), !_vm.catalogueList.length ? _vm._ssrNode("<div data-v-98c8d9ea>", "</div>", [_c('el-empty', {
    attrs: {
      "description": "No Data"
    }
  })], 1) : _vm._e()], 2);
};
var staticRenderFns = [];

// CONCATENATED MODULE: ./pages/home/catalogue.vue?vue&type=template&id=98c8d9ea&scoped=true

// 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!./pages/home/catalogue.vue?vue&type=script&lang=js
/* harmony default export */ var cataloguevue_type_script_lang_js = ({
  data() {
    return {
      total: 0,
      listQuery: {
        page: 1,
        limit: 12
      },
      catalogueList: [],
      listLoading: true
    };
  },
  async created() {
    await this.getList();
  },
  methods: {
    getList() {
      this.$axios.post("/resources/catalogue/list", {
        state: "au",
        page: this.listQuery.page,
        limit: this.listQuery.limit
      }).then(res => {
        if (res.code === 1) {
          res.result.data.forEach(item => {
            item.filepath = !this.$mediaRegExp.test(item.filepath) ? this.$OSS_PREFIX + item.filepath : item.filepath;
            item.img = !this.$mediaRegExp.test(item.img) ? this.$OSS_PREFIX + item.img : item.img;
          });
          this.catalogueList = res.result.data;
          this.total = res.result.total;
          this.listLoading = false;
        }
        // if(process.client){
        //   this.$nextTick(() => {
        //     window.scroll(0, 0);
        //   });
        // }
      }).catch(() => {
        this.listLoading = false;
        this.catalogueList = [];
      });
    }
  }
});
// CONCATENATED MODULE: ./pages/home/catalogue.vue?vue&type=script&lang=js
 /* harmony default export */ var home_cataloguevue_type_script_lang_js = (cataloguevue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./pages/home/catalogue.vue



function injectStyles (context) {
  
  var style0 = __webpack_require__(340)
if (style0.__inject__) style0.__inject__(context)

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  home_cataloguevue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  injectStyles,
  "98c8d9ea",
  "5217b21f"
  
)

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

/* nuxt-component-imports */
installComponents(component, {Pagination: __webpack_require__(154).default})


/***/ })

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