exports.ids = [67,17,18]; exports.modules = { /***/ 156: /***/ (function(module, exports) { // Exports module.exports = { }; /***/ }), /***/ 174: /***/ (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__(156); /* 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__)); /***/ }), /***/ 182: /***/ (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__(174) 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", "230c7770" ) /* harmony default export */ var Pagination = __webpack_exports__["default"] = (component.exports); /***/ }), /***/ 205: /***/ (function(module, exports) { // Exports module.exports = { }; /***/ }), /***/ 226: /***/ (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_MediaCard_vue_vue_type_style_index_0_id_69177590_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(205); /* 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_MediaCard_vue_vue_type_style_index_0_id_69177590_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_MediaCard_vue_vue_type_style_index_0_id_69177590_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_MediaCard_vue_vue_type_style_index_0_id_69177590_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_MediaCard_vue_vue_type_style_index_0_id_69177590_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /***/ }), /***/ 247: /***/ (function(module, exports) { // Exports module.exports = { }; /***/ }), /***/ 286: /***/ (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/MediaCard.vue?vue&type=template&id=69177590&scoped=true var render = function render() { var _vm = this, _c = _vm._self._c; return _c('figure', { class: ['card', { row: _vm.toggle }] }, [_vm._ssrNode("
", "
", [_vm.cardData.type === 5 && _vm.toggle ? _vm._ssrNode("", [_vm._ssrNode("\n Your browser does not support the video tag.\n ")], 2) : _c('el-image', { staticClass: "card-img-1", staticStyle: { "width": "100%", "height": "100%" }, attrs: { "src": _vm.cardData.type === 1 || _vm.cardData.type === 8 ? _vm.cardData.media_url : _vm.cardData.image, "fit": "contain" } }), _vm._ssrNode(" " + (_vm.cardData.typeName && !_vm.toggle ? "
" + _vm._ssrEscape("\n " + _vm._s(_vm.cardData.typeName.toUpperCase()) + "\n ") + "
" : ""))], 2), _vm._ssrNode(" "), _vm._ssrNode("
", "
", [_vm._ssrNode("
", "
", [_vm._ssrNode("

" + _vm._ssrEscape(_vm._s(_vm.cardData.name)) + "

" + _vm._s(_vm.cardData.description) + "

"), _vm._ssrNode("", [_vm._ssrNode(_vm._ssrList(_vm.cardData.mapLabel, function (l, index) { return "
  • " + _vm._ssrEscape("\n " + _vm._s(l) + "\n ") + "
  • "; }) + " "), _vm._l(_vm.cardData.sku, function (item, i) { return _c('nuxt-link', { key: item + i, attrs: { "to": { name: 'product-code', params: { code: item } }, "target": "_blank" } }, [_c('li', [_vm._v(_vm._s(item))])]); })], 2)], 2), _vm._ssrNode(" "), _vm._ssrNode("
    ", "
    ", [!_vm.toggle ? _c('el-button', { on: { "click": _vm.handLeftBtn } }, [_vm._v("View")]) : _vm._e(), _vm._ssrNode(" "), _c('el-button', { on: { "click": _vm.handRightBtn } }, [_vm._v("Download")])], 2)], 2)], 2); }; var staticRenderFns = []; // CONCATENATED MODULE: ./components/MediaCard.vue?vue&type=template&id=69177590&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/MediaCard.vue?vue&type=script&lang=js /* harmony default export */ var MediaCardvue_type_script_lang_js = ({ props: { cardData: {}, toggle: { type: Boolean, default: false } }, data() { return {}; }, watch: { 'cardData.media_url': function (newVal, oldVal) { if (newVal !== oldVal && this.$refs.video) { this.$refs.video.load(); // 重新加载视频 } } }, methods: { emitLabel(l) { this.$emit('labelEvent', l); }, handLeftBtn() { this.$emit('leftBtnEvent'); }, handRightBtn() { this.$emit('rightBtnEvent'); } } }); // CONCATENATED MODULE: ./components/MediaCard.vue?vue&type=script&lang=js /* harmony default export */ var components_MediaCardvue_type_script_lang_js = (MediaCardvue_type_script_lang_js); // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(2); // CONCATENATED MODULE: ./components/MediaCard.vue function injectStyles (context) { var style0 = __webpack_require__(226) if (style0.__inject__) style0.__inject__(context) } /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( components_MediaCardvue_type_script_lang_js, render, staticRenderFns, false, injectStyles, "69177590", "91453854" ) /* harmony default export */ var MediaCard = __webpack_exports__["default"] = (component.exports); /***/ }), /***/ 298: /***/ (function(module, exports) { /** * lodash (Custom Build) * Build: `lodash modularize exports="npm" -o ./` * Copyright jQuery Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ /** Used as the `TypeError` message for "Functions" methods. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** Used as references for various `Number` constants. */ var NAN = 0 / 0; /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; /** Used to match leading and trailing whitespace. */ var reTrim = /^\s+|\s+$/g; /** Used to detect bad signed hexadecimal string values. */ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; /** Used to detect binary string values. */ var reIsBinary = /^0b[01]+$/i; /** Used to detect octal string values. */ var reIsOctal = /^0o[0-7]+$/i; /** Built-in method references without a dependency on `root`. */ var freeParseInt = parseInt; /** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function('return this')(); /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var objectToString = objectProto.toString; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max, nativeMin = Math.min; /** * Gets the timestamp of the number of milliseconds that have elapsed since * the Unix epoch (1 January 1970 00:00:00 UTC). * * @static * @memberOf _ * @since 2.4.0 * @category Date * @returns {number} Returns the timestamp. * @example * * _.defer(function(stamp) { * console.log(_.now() - stamp); * }, _.now()); * // => Logs the number of milliseconds it took for the deferred invocation. */ var now = function() { return root.Date.now(); }; /** * Creates a debounced function that delays invoking `func` until after `wait` * milliseconds have elapsed since the last time the debounced function was * invoked. The debounced function comes with a `cancel` method to cancel * delayed `func` invocations and a `flush` method to immediately invoke them. * Provide `options` to indicate whether `func` should be invoked on the * leading and/or trailing edge of the `wait` timeout. The `func` is invoked * with the last arguments provided to the debounced function. Subsequent * calls to the debounced function return the result of the last `func` * invocation. * * **Note:** If `leading` and `trailing` options are `true`, `func` is * invoked on the trailing edge of the timeout only if the debounced function * is invoked more than once during the `wait` timeout. * * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred * until to the next tick, similar to `setTimeout` with a timeout of `0`. * * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) * for details over the differences between `_.debounce` and `_.throttle`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to debounce. * @param {number} [wait=0] The number of milliseconds to delay. * @param {Object} [options={}] The options object. * @param {boolean} [options.leading=false] * Specify invoking on the leading edge of the timeout. * @param {number} [options.maxWait] * The maximum time `func` is allowed to be delayed before it's invoked. * @param {boolean} [options.trailing=true] * Specify invoking on the trailing edge of the timeout. * @returns {Function} Returns the new debounced function. * @example * * // Avoid costly calculations while the window size is in flux. * jQuery(window).on('resize', _.debounce(calculateLayout, 150)); * * // Invoke `sendMail` when clicked, debouncing subsequent calls. * jQuery(element).on('click', _.debounce(sendMail, 300, { * 'leading': true, * 'trailing': false * })); * * // Ensure `batchLog` is invoked once after 1 second of debounced calls. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 }); * var source = new EventSource('/stream'); * jQuery(source).on('message', debounced); * * // Cancel the trailing debounced invocation. * jQuery(window).on('popstate', debounced.cancel); */ function debounce(func, wait, options) { var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true; if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } wait = toNumber(wait) || 0; if (isObject(options)) { leading = !!options.leading; maxing = 'maxWait' in options; maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; trailing = 'trailing' in options ? !!options.trailing : trailing; } function invokeFunc(time) { var args = lastArgs, thisArg = lastThis; lastArgs = lastThis = undefined; lastInvokeTime = time; result = func.apply(thisArg, args); return result; } function leadingEdge(time) { // Reset any `maxWait` timer. lastInvokeTime = time; // Start the timer for the trailing edge. timerId = setTimeout(timerExpired, wait); // Invoke the leading edge. return leading ? invokeFunc(time) : result; } function remainingWait(time) { var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, result = wait - timeSinceLastCall; return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result; } function shouldInvoke(time) { var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; // Either this is the first call, activity has stopped and we're at the // trailing edge, the system time has gone backwards and we're treating // it as the trailing edge, or we've hit the `maxWait` limit. return (lastCallTime === undefined || (timeSinceLastCall >= wait) || (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait)); } function timerExpired() { var time = now(); if (shouldInvoke(time)) { return trailingEdge(time); } // Restart the timer. timerId = setTimeout(timerExpired, remainingWait(time)); } function trailingEdge(time) { timerId = undefined; // Only invoke if we have `lastArgs` which means `func` has been // debounced at least once. if (trailing && lastArgs) { return invokeFunc(time); } lastArgs = lastThis = undefined; return result; } function cancel() { if (timerId !== undefined) { clearTimeout(timerId); } lastInvokeTime = 0; lastArgs = lastCallTime = lastThis = timerId = undefined; } function flush() { return timerId === undefined ? result : trailingEdge(now()); } function debounced() { var time = now(), isInvoking = shouldInvoke(time); lastArgs = arguments; lastThis = this; lastCallTime = time; if (isInvoking) { if (timerId === undefined) { return leadingEdge(lastCallTime); } if (maxing) { // Handle invocations in a tight loop. timerId = setTimeout(timerExpired, wait); return invokeFunc(lastCallTime); } } if (timerId === undefined) { timerId = setTimeout(timerExpired, wait); } return result; } debounced.cancel = cancel; debounced.flush = flush; return debounced; } /** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return !!value && (type == 'object' || type == 'function'); } /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return !!value && typeof value == 'object'; } /** * Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * * _.isSymbol(Symbol.iterator); * // => true * * _.isSymbol('abc'); * // => false */ function isSymbol(value) { return typeof value == 'symbol' || (isObjectLike(value) && objectToString.call(value) == symbolTag); } /** * Converts `value` to a number. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to process. * @returns {number} Returns the number. * @example * * _.toNumber(3.2); * // => 3.2 * * _.toNumber(Number.MIN_VALUE); * // => 5e-324 * * _.toNumber(Infinity); * // => Infinity * * _.toNumber('3.2'); * // => 3.2 */ function toNumber(value) { if (typeof value == 'number') { return value; } if (isSymbol(value)) { return NAN; } if (isObject(value)) { var other = typeof value.valueOf == 'function' ? value.valueOf() : value; value = isObject(other) ? (other + '') : other; } if (typeof value != 'string') { return value === 0 ? value : +value; } value = value.replace(reTrim, ''); var isBinary = reIsBinary.test(value); return (isBinary || reIsOctal.test(value)) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : (reIsBadHex.test(value) ? NAN : +value); } module.exports = debounce; /***/ }), /***/ 299: /***/ (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_media_vue_vue_type_style_index_0_id_09dd2dea_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(247); /* 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_media_vue_vue_type_style_index_0_id_09dd2dea_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_media_vue_vue_type_style_index_0_id_09dd2dea_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_media_vue_vue_type_style_index_0_id_09dd2dea_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_media_vue_vue_type_style_index_0_id_09dd2dea_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /***/ }), /***/ 348: /***/ (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/media.vue?vue&type=template&id=09dd2dea&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(" Media Centre")])], 1), _vm._ssrNode("
      " + _vm._ssrList(_vm.list, function (item, index) { return "" + _vm._ssrEscape("\n " + _vm._s(item.typeName) + "\n ") + ""; }) + "
    "), _c('el-input', { attrs: { "placeholder": "Search", "clearable": "" }, on: { "clear": _vm.getList }, nativeOn: { "keyup": function ($event) { if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null; return _vm.getList.apply(null, arguments); } }, model: { value: _vm.keyword, callback: function ($$v) { _vm.keyword = $$v; }, expression: "keyword" } }, [_c('i', { staticClass: "el-input__icon el-icon-search", attrs: { "slot": "suffix" }, on: { "click": _vm.getList }, slot: "suffix" })]), _vm._ssrNode(" "), _vm.listLoading ? _c('div', { directives: [{ name: "loading", rawName: "v-loading", value: true, expression: "true" }], staticClass: "com-loading", attrs: { "slot": "spinner", "element-loading-text": "Loading", "element-loading-spinner": "el-icon-loading" }, slot: "spinner" }) : _vm._ssrNode("
    ", "
    ", [_vm.comCurObj.total ? _vm._ssrNode("
    ", "
    ", [_vm._ssrNode("
      ", "
    ", _vm._l(_vm.comCurObj.data, function (item) { return _c('media-card', { key: item.id, attrs: { "cardData": item }, on: { "labelEvent": _vm.receveLabel, "leftBtnEvent": function ($event) { return _vm.openDialog(item); }, "rightBtnEvent": function ($event) { return _vm.download(item); } } }); }), 1), _vm._ssrNode(" "), _c('pagination', { directives: [{ name: "show", rawName: "v-show", value: _vm.comCurObj.total > 0, expression: "comCurObj.total > 0" }], attrs: { "total": _vm.comCurObj.total, "page": _vm.comCurObj.page, "limit": _vm.limit }, on: { "update:page": function ($event) { return _vm.$set(_vm.comCurObj, "page", $event); }, "update:limit": function ($event) { _vm.limit = $event; }, "pagination": _vm.getList } })], 2) : _c('el-empty', { attrs: { "description": "No Data" } })], 1), _vm._ssrNode(" "), _c('el-dialog', { attrs: { "lock-scroll": false, "visible": _vm.dialogVisible, "width": "1000px" }, on: { "update:visible": function ($event) { _vm.dialogVisible = $event; } } }, [_c('media-card', { attrs: { "cardData": _vm.cardData, "toggle": true }, on: { "labelEvent": _vm.receveLabel, "rightBtnEvent": function ($event) { return _vm.download(_vm.cardData); } } })], 1)], 2); }; var staticRenderFns = []; // CONCATENATED MODULE: ./pages/media.vue?vue&type=template&id=09dd2dea&scoped=true // EXTERNAL MODULE: ./node_modules/lodash.debounce/index.js var lodash_debounce = __webpack_require__(298); var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce); // 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/media.vue?vue&type=script&lang=js /* harmony default export */ var mediavue_type_script_lang_js = ({ data() { return { list: [{ id: 0, typeName: 'All Content' }, { id: 3, typeName: 'EDMs' }, { id: 1, typeName: 'Banners' }, { id: 4, typeName: 'Catalogues' }, { id: 2, typeName: 'Social Media' }, { id: 8, typeName: 'Email Signature' }, { id: 5, typeName: 'Videos' }, { id: 7, typeName: 'News' }], curTab: 0, keyword: '', limit: 20, listLoading: true, cardData: {}, dialogVisible: false, getDebList: null }; }, async created() { await this.getList(); this.getDebList = lodash_debounce_default()(this.getList, 500); }, watch: { keyword(newValue, oldValue) { if (newValue != oldValue) { window.scrollTo({ top: 0, behavior: 'smooth' }); this.getDebList(); this.dialogVisible = false; } } }, computed: { comCurObj() { return this.list[this.curTab]; } }, methods: { getList() { var _this$comCurObj; this.listLoading = true; let params = { keyword: this.keyword, page: this.comCurObj.page || 1, limit: this.limit }; this.curTab && (params.type = (_this$comCurObj = this.comCurObj) === null || _this$comCurObj === void 0 ? void 0 : _this$comCurObj.id); this.$axios.get('/uk-api/data/list', { params }).then(res => { if (res.code == 1) { const { data, total } = res.result; this.comCurObj.data = data.map(i => { var _this$comCurObj2; const mapLabel = i.datalabel.map(o => o.name); const obj = this.list.find(item => item.id === i.type); const typeName = this.curTab === 0 ? obj === null || obj === void 0 ? void 0 : obj.typeName : (_this$comCurObj2 = this.comCurObj) === null || _this$comCurObj2 === void 0 ? void 0 : _this$comCurObj2.typeName; return { ...i, mapLabel, typeName }; }); this.comCurObj.total = total; this.listLoading = false; } if (false) {} }).catch(() => { this.listLoading = false; }); }, selTab(i) { this.curTab = i; this.$set(this.comCurObj, 'page', 1); this.getList(); }, openDialog(data) { this.cardData = data; this.dialogVisible = true; }, download(item) { if (!item.media_url) { this.$message.error('No File'); return; } var urlStr = item.media_url.match('[^/]+(?!.*/)')[0]; this.$utils.downloadXhr(item.media_url, urlStr); }, receveLabel(l) { this.keyword = l; } } }); // CONCATENATED MODULE: ./pages/media.vue?vue&type=script&lang=js /* harmony default export */ var pages_mediavue_type_script_lang_js = (mediavue_type_script_lang_js); // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(2); // CONCATENATED MODULE: ./pages/media.vue function injectStyles (context) { var style0 = __webpack_require__(299) if (style0.__inject__) style0.__inject__(context) } /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( pages_mediavue_type_script_lang_js, render, staticRenderFns, false, injectStyles, "09dd2dea", "366c9b0e" ) /* harmony default export */ var media = __webpack_exports__["default"] = (component.exports); /* nuxt-component-imports */ installComponents(component, {MediaCard: __webpack_require__(286).default,Pagination: __webpack_require__(182).default}) /***/ }) };; //# sourceMappingURL=media.js.map