exports.ids = [61,12,14,58]; exports.modules = { /***/ 147: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return on; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return off; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return once; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return hasClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return removeClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getStyle; }); /* unused harmony export setStyle */ /* unused harmony export isScroll */ /* unused harmony export getScrollContainer */ /* unused harmony export isInContainer */ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__); /* istanbul ignore next */ const isServer = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer; const SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g; const MOZ_HACK_REGEXP = /^moz([A-Z])/; const ieVersion = isServer ? 0 : Number(document.documentMode); /* istanbul ignore next */ const trim = function(string) { return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); }; /* istanbul ignore next */ const camelCase = function(name) { return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) { return offset ? letter.toUpperCase() : letter; }).replace(MOZ_HACK_REGEXP, 'Moz$1'); }; /* istanbul ignore next */ const on = (function() { if (!isServer && document.addEventListener) { return function(element, event, handler) { if (element && event && handler) { element.addEventListener(event, handler, false); } }; } else { return function(element, event, handler) { if (element && event && handler) { element.attachEvent('on' + event, handler); } }; } })(); /* istanbul ignore next */ const off = (function() { if (!isServer && document.removeEventListener) { return function(element, event, handler) { if (element && event) { element.removeEventListener(event, handler, false); } }; } else { return function(element, event, handler) { if (element && event) { element.detachEvent('on' + event, handler); } }; } })(); /* istanbul ignore next */ const once = function(el, event, fn) { var listener = function() { if (fn) { fn.apply(this, arguments); } off(el, event, listener); }; on(el, event, listener); }; /* istanbul ignore next */ function hasClass(el, cls) { if (!el || !cls) return false; if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); if (el.classList) { return el.classList.contains(cls); } else { return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; } }; /* istanbul ignore next */ function addClass(el, cls) { if (!el) return; var curClass = el.className; var classes = (cls || '').split(' '); for (var i = 0, j = classes.length; i < j; i++) { var clsName = classes[i]; if (!clsName) continue; if (el.classList) { el.classList.add(clsName); } else if (!hasClass(el, clsName)) { curClass += ' ' + clsName; } } if (!el.classList) { el.setAttribute('class', curClass); } }; /* istanbul ignore next */ function removeClass(el, cls) { if (!el || !cls) return; var classes = cls.split(' '); var curClass = ' ' + el.className + ' '; for (var i = 0, j = classes.length; i < j; i++) { var clsName = classes[i]; if (!clsName) continue; if (el.classList) { el.classList.remove(clsName); } else if (hasClass(el, clsName)) { curClass = curClass.replace(' ' + clsName + ' ', ' '); } } if (!el.classList) { el.setAttribute('class', trim(curClass)); } }; /* istanbul ignore next */ const getStyle = ieVersion < 9 ? function(element, styleName) { if (isServer) return; if (!element || !styleName) return null; styleName = camelCase(styleName); if (styleName === 'float') { styleName = 'styleFloat'; } try { switch (styleName) { case 'opacity': try { return element.filters.item('alpha').opacity / 100; } catch (e) { return 1.0; } default: return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null); } } catch (e) { return element.style[styleName]; } } : function(element, styleName) { if (isServer) return; if (!element || !styleName) return null; styleName = camelCase(styleName); if (styleName === 'float') { styleName = 'cssFloat'; } try { var computed = document.defaultView.getComputedStyle(element, ''); return element.style[styleName] || computed ? computed[styleName] : null; } catch (e) { return element.style[styleName]; } }; /* istanbul ignore next */ function setStyle(element, styleName, value) { if (!element || !styleName) return; if (typeof styleName === 'object') { for (var prop in styleName) { if (styleName.hasOwnProperty(prop)) { setStyle(element, prop, styleName[prop]); } } } else { styleName = camelCase(styleName); if (styleName === 'opacity' && ieVersion < 9) { element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')'; } else { element.style[styleName] = value; } } }; const isScroll = (el, vertical) => { if (isServer) return; const determinedDirection = vertical !== null && vertical !== undefined; const overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow'); return overflow.match(/(scroll|auto|overlay)/); }; const getScrollContainer = (el, vertical) => { if (isServer) return; let parent = el; while (parent) { if ([window, document, document.documentElement].includes(parent)) { return window; } if (isScroll(parent, vertical)) { return parent; } parent = parent.parentNode; } return parent; }; const isInContainer = (el, container) => { if (isServer || !el || !container) return false; const elRect = el.getBoundingClientRect(); let containerRect; if ([window, document, document.documentElement, null, undefined].includes(container)) { containerRect = { top: 0, right: window.innerWidth, bottom: window.innerHeight, left: 0 }; } else { containerRect = container.getBoundingClientRect(); } return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right; }; /***/ }), /***/ 148: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXPORTS __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ isFirefox; }); __webpack_require__.d(__webpack_exports__, "c", function() { return /* binding */ kebabCase; }); __webpack_require__.d(__webpack_exports__, "d", function() { return /* binding */ rafThrottle; }); __webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ isMac; }); // UNUSED EXPORTS: noop, hasOwn, toObject, getValueByPath, getPropByPath, generateId, valueEquals, escapeRegexpString, arrayFindIndex, arrayFind, coerceTruthyValueToArray, isIE, isEdge, autoprefixer, capitalize, looseEqual, arrayEquals, isEqual, isEmpty, objToArray // EXTERNAL MODULE: external "vue" var external_vue_ = __webpack_require__(0); var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_); // CONCATENATED MODULE: ./node_modules/element-ui/src/utils/types.js function isString(obj) { return Object.prototype.toString.call(obj) === '[object String]'; } function isObject(obj) { return Object.prototype.toString.call(obj) === '[object Object]'; } function isHtmlElement(node) { return node && node.nodeType === Node.ELEMENT_NODE; } /** * - Inspired: * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js */ let isFunction = (functionToCheck) => { var getType = {}; return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; }; if ( true && typeof Int8Array !== 'object' && (external_vue_default.a.prototype.$isServer || typeof document.childNodes !== 'function')) { isFunction = function(obj) { return typeof obj === 'function' || false; }; } const isUndefined = (val)=> { return val === void 0; }; const isDefined = (val) => { return val !== undefined && val !== null; }; // CONCATENATED MODULE: ./node_modules/element-ui/src/utils/util.js const util_hasOwnProperty = Object.prototype.hasOwnProperty; function noop() {}; function hasOwn(obj, key) { return util_hasOwnProperty.call(obj, key); }; function extend(to, _from) { for (let key in _from) { to[key] = _from[key]; } return to; }; function toObject(arr) { var res = {}; for (let i = 0; i < arr.length; i++) { if (arr[i]) { extend(res, arr[i]); } } return res; }; const getValueByPath = function(object, prop) { prop = prop || ''; const paths = prop.split('.'); let current = object; let result = null; for (let i = 0, j = paths.length; i < j; i++) { const path = paths[i]; if (!current) break; if (i === j - 1) { result = current[path]; break; } current = current[path]; } return result; }; function getPropByPath(obj, path, strict) { let tempObj = obj; path = path.replace(/\[(\w+)\]/g, '.$1'); path = path.replace(/^\./, ''); let keyArr = path.split('.'); let i = 0; for (let len = keyArr.length; i < len - 1; ++i) { if (!tempObj && !strict) break; let key = keyArr[i]; if (key in tempObj) { tempObj = tempObj[key]; } else { if (strict) { throw new Error('please transfer a valid prop path to form item!'); } break; } } return { o: tempObj, k: keyArr[i], v: tempObj ? tempObj[keyArr[i]] : null }; }; const generateId = function() { return Math.floor(Math.random() * 10000); }; const valueEquals = (a, b) => { // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript if (a === b) return true; if (!(a instanceof Array)) return false; if (!(b instanceof Array)) return false; if (a.length !== b.length) return false; for (let i = 0; i !== a.length; ++i) { if (a[i] !== b[i]) return false; } return true; }; const escapeRegexpString = (value = '') => String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&'); // TODO: use native Array.find, Array.findIndex when IE support is dropped const arrayFindIndex = function(arr, pred) { for (let i = 0; i !== arr.length; ++i) { if (pred(arr[i])) { return i; } } return -1; }; const arrayFind = function(arr, pred) { const idx = arrayFindIndex(arr, pred); return idx !== -1 ? arr[idx] : undefined; }; // coerce truthy value to array const coerceTruthyValueToArray = function(val) { if (Array.isArray(val)) { return val; } else if (val) { return [val]; } else { return []; } }; const isIE = function() { return !external_vue_default.a.prototype.$isServer && !isNaN(Number(document.documentMode)); }; const isEdge = function() { return !external_vue_default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1; }; const isFirefox = function() { return !external_vue_default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i); }; const autoprefixer = function(style) { if (typeof style !== 'object') return style; const rules = ['transform', 'transition', 'animation']; const prefixes = ['ms-', 'webkit-']; rules.forEach(rule => { const value = style[rule]; if (rule && value) { prefixes.forEach(prefix => { style[prefix + rule] = value; }); } }); return style; }; const kebabCase = function(str) { const hyphenateRE = /([^-])([A-Z])/g; return str .replace(hyphenateRE, '$1-$2') .replace(hyphenateRE, '$1-$2') .toLowerCase(); }; const capitalize = function(str) { if (!isString(str)) return str; return str.charAt(0).toUpperCase() + str.slice(1); }; const looseEqual = function(a, b) { const isObjectA = isObject(a); const isObjectB = isObject(b); if (isObjectA && isObjectB) { return JSON.stringify(a) === JSON.stringify(b); } else if (!isObjectA && !isObjectB) { return String(a) === String(b); } else { return false; } }; const arrayEquals = function(arrayA, arrayB) { arrayA = arrayA || []; arrayB = arrayB || []; if (arrayA.length !== arrayB.length) { return false; } for (let i = 0; i < arrayA.length; i++) { if (!looseEqual(arrayA[i], arrayB[i])) { return false; } } return true; }; const isEqual = function(value1, value2) { if (Array.isArray(value1) && Array.isArray(value2)) { return arrayEquals(value1, value2); } return looseEqual(value1, value2); }; const isEmpty = function(val) { // null or undefined if (val == null) return true; if (typeof val === 'boolean') return false; if (typeof val === 'number') return !val; if (val instanceof Error) return val.message === ''; switch (Object.prototype.toString.call(val)) { // String or Array case '[object String]': case '[object Array]': return !val.length; // Map or Set or File case '[object File]': case '[object Map]': case '[object Set]': { return !val.size; } // Plain Object case '[object Object]': { return !Object.keys(val).length; } } return false; }; function rafThrottle(fn) { let locked = false; return function(...args) { if (locked) return; locked = true; window.requestAnimationFrame(_ => { fn.apply(this, args); locked = false; }); }; } function objToArray(obj) { if (Array.isArray(obj)) { return obj; } return isEmpty(obj) ? [] : [obj]; } const isMac = function() { return !external_vue_default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent); }; /***/ }), /***/ 149: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(target) { for (let i = 1, j = arguments.length; i < j; i++) { let source = arguments[i] || {}; for (let prop in source) { if (source.hasOwnProperty(prop)) { let value = source[prop]; if (value !== undefined) { target[prop] = value; } } } } return target; });; /***/ }), /***/ 159: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // 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!./node_modules/element-ui/packages/image/src/image-viewer.vue?vue&type=template&id=44a7b0fb var render = function render() { var _vm = this, _c = _vm._self._c; return _c('transition', { attrs: { "name": "viewer-fade" } }, [_c('div', { ref: "el-image-viewer__wrapper", staticClass: "el-image-viewer__wrapper", style: { 'z-index': _vm.viewerZIndex }, attrs: { "tabindex": "-1" } }, [_c('div', { staticClass: "el-image-viewer__mask", on: { "click": function ($event) { if ($event.target !== $event.currentTarget) return null; return _vm.handleMaskClick.apply(null, arguments); } } }), _vm._v(" "), _c('span', { staticClass: "el-image-viewer__btn el-image-viewer__close", on: { "click": _vm.hide } }, [_c('i', { staticClass: "el-icon-close" })]), _vm._v(" "), !_vm.isSingle ? [_c('span', { staticClass: "el-image-viewer__btn el-image-viewer__prev", class: { 'is-disabled': !_vm.infinite && _vm.isFirst }, on: { "click": _vm.prev } }, [_c('i', { staticClass: "el-icon-arrow-left" })]), _vm._v(" "), _c('span', { staticClass: "el-image-viewer__btn el-image-viewer__next", class: { 'is-disabled': !_vm.infinite && _vm.isLast }, on: { "click": _vm.next } }, [_c('i', { staticClass: "el-icon-arrow-right" })])] : _vm._e(), _vm._v(" "), _c('div', { staticClass: "el-image-viewer__btn el-image-viewer__actions" }, [_c('div', { staticClass: "el-image-viewer__actions__inner" }, [_c('i', { staticClass: "el-icon-zoom-out", on: { "click": function ($event) { return _vm.handleActions('zoomOut'); } } }), _vm._v(" "), _c('i', { staticClass: "el-icon-zoom-in", on: { "click": function ($event) { return _vm.handleActions('zoomIn'); } } }), _vm._v(" "), _c('i', { staticClass: "el-image-viewer__actions__divider" }), _vm._v(" "), _c('i', { class: _vm.mode.icon, on: { "click": _vm.toggleMode } }), _vm._v(" "), _c('i', { staticClass: "el-image-viewer__actions__divider" }), _vm._v(" "), _c('i', { staticClass: "el-icon-refresh-left", on: { "click": function ($event) { return _vm.handleActions('anticlocelise'); } } }), _vm._v(" "), _c('i', { staticClass: "el-icon-refresh-right", on: { "click": function ($event) { return _vm.handleActions('clocelise'); } } })])]), _vm._v(" "), _c('div', { staticClass: "el-image-viewer__canvas" }, _vm._l(_vm.urlList, function (url, i) { return i === _vm.index ? _c('img', { key: url, ref: "img", refInFor: true, staticClass: "el-image-viewer__img", style: _vm.imgStyle, attrs: { "src": _vm.currentImg }, on: { "load": _vm.handleImgLoad, "error": _vm.handleImgError, "mousedown": _vm.handleMouseDown } }) : _vm._e(); }), 0)], 2)]); }; var staticRenderFns = []; // CONCATENATED MODULE: ./node_modules/element-ui/packages/image/src/image-viewer.vue?vue&type=template&id=44a7b0fb // EXTERNAL MODULE: ./node_modules/element-ui/src/utils/dom.js var utils_dom = __webpack_require__(147); // EXTERNAL MODULE: ./node_modules/element-ui/src/utils/util.js + 1 modules var util = __webpack_require__(148); // EXTERNAL MODULE: external "vue" var external_vue_ = __webpack_require__(0); var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_); // EXTERNAL MODULE: ./node_modules/element-ui/src/utils/merge.js var merge = __webpack_require__(149); // CONCATENATED MODULE: ./node_modules/element-ui/src/utils/popup/popup-manager.js let hasModal = false; let hasInitZIndex = false; let popup_manager_zIndex; const getModal = function() { if (external_vue_default.a.prototype.$isServer) return; let modalDom = PopupManager.modalDom; if (modalDom) { hasModal = true; } else { hasModal = false; modalDom = document.createElement('div'); PopupManager.modalDom = modalDom; modalDom.addEventListener('touchmove', function(event) { event.preventDefault(); event.stopPropagation(); }); modalDom.addEventListener('click', function() { PopupManager.doOnModalClick && PopupManager.doOnModalClick(); }); } return modalDom; }; const instances = {}; const PopupManager = { modalFade: true, getInstance: function(id) { return instances[id]; }, register: function(id, instance) { if (id && instance) { instances[id] = instance; } }, deregister: function(id) { if (id) { instances[id] = null; delete instances[id]; } }, nextZIndex: function() { return PopupManager.zIndex++; }, modalStack: [], doOnModalClick: function() { const topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1]; if (!topItem) return; const instance = PopupManager.getInstance(topItem.id); if (instance && instance.closeOnClickModal) { instance.close(); } }, openModal: function(id, zIndex, dom, modalClass, modalFade) { if (external_vue_default.a.prototype.$isServer) return; if (!id || zIndex === undefined) return; this.modalFade = modalFade; const modalStack = this.modalStack; for (let i = 0, j = modalStack.length; i < j; i++) { const item = modalStack[i]; if (item.id === id) { return; } } const modalDom = getModal(); Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal'); if (this.modalFade && !hasModal) { Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-enter'); } if (modalClass) { let classArr = modalClass.trim().split(/\s+/); classArr.forEach(item => Object(utils_dom["a" /* addClass */])(modalDom, item)); } setTimeout(() => { Object(utils_dom["g" /* removeClass */])(modalDom, 'v-modal-enter'); }, 200); if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) { dom.parentNode.appendChild(modalDom); } else { document.body.appendChild(modalDom); } if (zIndex) { modalDom.style.zIndex = zIndex; } modalDom.tabIndex = 0; modalDom.style.display = ''; this.modalStack.push({ id: id, zIndex: zIndex, modalClass: modalClass }); }, closeModal: function(id) { const modalStack = this.modalStack; const modalDom = getModal(); if (modalStack.length > 0) { const topItem = modalStack[modalStack.length - 1]; if (topItem.id === id) { if (topItem.modalClass) { let classArr = topItem.modalClass.trim().split(/\s+/); classArr.forEach(item => Object(utils_dom["g" /* removeClass */])(modalDom, item)); } modalStack.pop(); if (modalStack.length > 0) { modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex; } } else { for (let i = modalStack.length - 1; i >= 0; i--) { if (modalStack[i].id === id) { modalStack.splice(i, 1); break; } } } } if (modalStack.length === 0) { if (this.modalFade) { Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-leave'); } setTimeout(() => { if (modalStack.length === 0) { if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom); modalDom.style.display = 'none'; PopupManager.modalDom = undefined; } Object(utils_dom["g" /* removeClass */])(modalDom, 'v-modal-leave'); }, 200); } } }; Object.defineProperty(PopupManager, 'zIndex', { configurable: true, get() { if (!hasInitZIndex) { popup_manager_zIndex = popup_manager_zIndex || (external_vue_default.a.prototype.$ELEMENT || {}).zIndex || 2000; hasInitZIndex = true; } return popup_manager_zIndex; }, set(value) { popup_manager_zIndex = value; } }); const getTopPopup = function() { if (external_vue_default.a.prototype.$isServer) return; if (PopupManager.modalStack.length > 0) { const topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1]; if (!topPopup) return; const instance = PopupManager.getInstance(topPopup.id); return instance; } }; if (!external_vue_default.a.prototype.$isServer) { // handle `esc` key when the popup is shown window.addEventListener('keydown', function(event) { if (event.keyCode === 27) { const topPopup = getTopPopup(); if (topPopup && topPopup.closeOnPressEscape) { topPopup.handleClose ? topPopup.handleClose() : (topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close()); } } }); } /* harmony default export */ var popup_manager = (PopupManager); // CONCATENATED MODULE: ./node_modules/element-ui/src/utils/scrollbar-width.js let scrollBarWidth; /* harmony default export */ var scrollbar_width = (function() { if (external_vue_default.a.prototype.$isServer) return 0; if (scrollBarWidth !== undefined) return scrollBarWidth; const outer = document.createElement('div'); outer.className = 'el-scrollbar__wrap'; outer.style.visibility = 'hidden'; outer.style.width = '100px'; outer.style.position = 'absolute'; outer.style.top = '-9999px'; document.body.appendChild(outer); const widthNoScroll = outer.offsetWidth; outer.style.overflow = 'scroll'; const inner = document.createElement('div'); inner.style.width = '100%'; outer.appendChild(inner); const widthWithScroll = inner.offsetWidth; outer.parentNode.removeChild(outer); scrollBarWidth = widthNoScroll - widthWithScroll; return scrollBarWidth; });; // CONCATENATED MODULE: ./node_modules/element-ui/src/utils/popup/index.js let idSeed = 1; let popup_scrollBarWidth; /* harmony default export */ var popup = ({ props: { visible: { type: Boolean, default: false }, openDelay: {}, closeDelay: {}, zIndex: {}, modal: { type: Boolean, default: false }, modalFade: { type: Boolean, default: true }, modalClass: {}, modalAppendToBody: { type: Boolean, default: false }, lockScroll: { type: Boolean, default: true }, closeOnPressEscape: { type: Boolean, default: false }, closeOnClickModal: { type: Boolean, default: false } }, beforeMount() { this._popupId = 'popup-' + idSeed++; popup_manager.register(this._popupId, this); }, beforeDestroy() { popup_manager.deregister(this._popupId); popup_manager.closeModal(this._popupId); this.restoreBodyStyle(); }, data() { return { opened: false, bodyPaddingRight: null, computedBodyPaddingRight: 0, withoutHiddenClass: true, rendered: false }; }, watch: { visible(val) { if (val) { if (this._opening) return; if (!this.rendered) { this.rendered = true; external_vue_default.a.nextTick(() => { this.open(); }); } else { this.open(); } } else { this.close(); } } }, methods: { open(options) { if (!this.rendered) { this.rendered = true; } const props = Object(merge["a" /* default */])({}, this.$props || this, options); if (this._closeTimer) { clearTimeout(this._closeTimer); this._closeTimer = null; } clearTimeout(this._openTimer); const openDelay = Number(props.openDelay); if (openDelay > 0) { this._openTimer = setTimeout(() => { this._openTimer = null; this.doOpen(props); }, openDelay); } else { this.doOpen(props); } }, doOpen(props) { if (this.$isServer) return; if (this.willOpen && !this.willOpen()) return; if (this.opened) return; this._opening = true; const dom = this.$el; const modal = props.modal; const zIndex = props.zIndex; if (zIndex) { popup_manager.zIndex = zIndex; } if (modal) { if (this._closing) { popup_manager.closeModal(this._popupId); this._closing = false; } popup_manager.openModal(this._popupId, popup_manager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade); if (props.lockScroll) { this.withoutHiddenClass = !Object(utils_dom["c" /* hasClass */])(document.body, 'el-popup-parent--hidden'); if (this.withoutHiddenClass) { this.bodyPaddingRight = document.body.style.paddingRight; this.computedBodyPaddingRight = parseInt(Object(utils_dom["b" /* getStyle */])(document.body, 'paddingRight'), 10); } popup_scrollBarWidth = scrollbar_width(); let bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight; let bodyOverflowY = Object(utils_dom["b" /* getStyle */])(document.body, 'overflowY'); if (popup_scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) { document.body.style.paddingRight = this.computedBodyPaddingRight + popup_scrollBarWidth + 'px'; } Object(utils_dom["a" /* addClass */])(document.body, 'el-popup-parent--hidden'); } } if (getComputedStyle(dom).position === 'static') { dom.style.position = 'absolute'; } dom.style.zIndex = popup_manager.nextZIndex(); this.opened = true; this.onOpen && this.onOpen(); this.doAfterOpen(); }, doAfterOpen() { this._opening = false; }, close() { if (this.willClose && !this.willClose()) return; if (this._openTimer !== null) { clearTimeout(this._openTimer); this._openTimer = null; } clearTimeout(this._closeTimer); const closeDelay = Number(this.closeDelay); if (closeDelay > 0) { this._closeTimer = setTimeout(() => { this._closeTimer = null; this.doClose(); }, closeDelay); } else { this.doClose(); } }, doClose() { this._closing = true; this.onClose && this.onClose(); if (this.lockScroll) { setTimeout(this.restoreBodyStyle, 200); } this.opened = false; this.doAfterClose(); }, doAfterClose() { popup_manager.closeModal(this._popupId); this._closing = false; }, restoreBodyStyle() { if (this.modal && this.withoutHiddenClass) { document.body.style.paddingRight = this.bodyPaddingRight; Object(utils_dom["g" /* removeClass */])(document.body, 'el-popup-parent--hidden'); } this.withoutHiddenClass = 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!./node_modules/element-ui/packages/image/src/image-viewer.vue?vue&type=script&lang=js const Mode = { CONTAIN: { name: 'contain', icon: 'el-icon-full-screen' }, ORIGINAL: { name: 'original', icon: 'el-icon-c-scale-to-original' } }; const mousewheelEventName = Object(util["a" /* isFirefox */])() ? 'DOMMouseScroll' : 'mousewheel'; /* harmony default export */ var image_viewervue_type_script_lang_js = ({ name: 'elImageViewer', props: { urlList: { type: Array, default: () => [] }, zIndex: { type: Number, default: 2000 }, onSwitch: { type: Function, default: () => {} }, onClose: { type: Function, default: () => {} }, initialIndex: { type: Number, default: 0 }, appendToBody: { type: Boolean, default: true }, maskClosable: { type: Boolean, default: true } }, data() { return { index: this.initialIndex, isShow: false, infinite: true, loading: false, mode: Mode.CONTAIN, transform: { scale: 1, deg: 0, offsetX: 0, offsetY: 0, enableTransition: false } }; }, computed: { isSingle() { return this.urlList.length <= 1; }, isFirst() { return this.index === 0; }, isLast() { return this.index === this.urlList.length - 1; }, currentImg() { return this.urlList[this.index]; }, imgStyle() { const { scale, deg, offsetX, offsetY, enableTransition } = this.transform; const style = { transform: `scale(${scale}) rotate(${deg}deg)`, transition: enableTransition ? 'transform .3s' : '', 'margin-left': `${offsetX}px`, 'margin-top': `${offsetY}px` }; if (this.mode === Mode.CONTAIN) { style.maxWidth = style.maxHeight = '100%'; } return style; }, viewerZIndex() { const nextZIndex = popup_manager.nextZIndex(); return this.zIndex > nextZIndex ? this.zIndex : nextZIndex; } }, watch: { index: { handler: function (val) { this.reset(); this.onSwitch(val); } }, currentImg(val) { this.$nextTick(_ => { const $img = this.$refs.img[0]; if (!$img.complete) { this.loading = true; } }); } }, methods: { hide() { this.deviceSupportUninstall(); this.onClose(); }, deviceSupportInstall() { this._keyDownHandler = e => { e.stopPropagation(); const keyCode = e.keyCode; switch (keyCode) { // ESC case 27: this.hide(); break; // SPACE case 32: this.toggleMode(); break; // LEFT_ARROW case 37: this.prev(); break; // UP_ARROW case 38: this.handleActions('zoomIn'); break; // RIGHT_ARROW case 39: this.next(); break; // DOWN_ARROW case 40: this.handleActions('zoomOut'); break; } }; this._mouseWheelHandler = Object(util["d" /* rafThrottle */])(e => { const delta = e.wheelDelta ? e.wheelDelta : -e.detail; if (delta > 0) { this.handleActions('zoomIn', { zoomRate: 0.015, enableTransition: false }); } else { this.handleActions('zoomOut', { zoomRate: 0.015, enableTransition: false }); } }); Object(utils_dom["e" /* on */])(document, 'keydown', this._keyDownHandler); Object(utils_dom["e" /* on */])(document, mousewheelEventName, this._mouseWheelHandler); }, deviceSupportUninstall() { Object(utils_dom["d" /* off */])(document, 'keydown', this._keyDownHandler); Object(utils_dom["d" /* off */])(document, mousewheelEventName, this._mouseWheelHandler); this._keyDownHandler = null; this._mouseWheelHandler = null; }, handleImgLoad(e) { this.loading = false; }, handleImgError(e) { this.loading = false; e.target.alt = '加载失败'; }, handleMouseDown(e) { if (this.loading || e.button !== 0) return; const { offsetX, offsetY } = this.transform; const startX = e.pageX; const startY = e.pageY; this._dragHandler = Object(util["d" /* rafThrottle */])(ev => { this.transform.offsetX = offsetX + ev.pageX - startX; this.transform.offsetY = offsetY + ev.pageY - startY; }); Object(utils_dom["e" /* on */])(document, 'mousemove', this._dragHandler); Object(utils_dom["e" /* on */])(document, 'mouseup', ev => { Object(utils_dom["d" /* off */])(document, 'mousemove', this._dragHandler); }); e.preventDefault(); }, handleMaskClick() { if (this.maskClosable) { this.hide(); } }, reset() { this.transform = { scale: 1, deg: 0, offsetX: 0, offsetY: 0, enableTransition: false }; }, toggleMode() { if (this.loading) return; const modeNames = Object.keys(Mode); const modeValues = Object.values(Mode); const index = modeValues.indexOf(this.mode); const nextIndex = (index + 1) % modeNames.length; this.mode = Mode[modeNames[nextIndex]]; this.reset(); }, prev() { if (this.isFirst && !this.infinite) return; const len = this.urlList.length; this.index = (this.index - 1 + len) % len; }, next() { if (this.isLast && !this.infinite) return; const len = this.urlList.length; this.index = (this.index + 1) % len; }, handleActions(action, options = {}) { if (this.loading) return; const { zoomRate, rotateDeg, enableTransition } = { zoomRate: 0.2, rotateDeg: 90, enableTransition: true, ...options }; const { transform } = this; switch (action) { case 'zoomOut': if (transform.scale > 0.2) { transform.scale = parseFloat((transform.scale - zoomRate).toFixed(3)); } break; case 'zoomIn': transform.scale = parseFloat((transform.scale + zoomRate).toFixed(3)); break; case 'clocelise': transform.deg += rotateDeg; break; case 'anticlocelise': transform.deg -= rotateDeg; break; } transform.enableTransition = enableTransition; } }, mounted() { this.deviceSupportInstall(); if (this.appendToBody) { document.body.appendChild(this.$el); } // add tabindex then wrapper can be focusable via Javascript // focus wrapper so arrow key can't cause inner scroll behavior underneath this.$refs['el-image-viewer__wrapper'].focus(); }, destroyed() { // if appendToBody is true, remove DOM node after destroy if (this.appendToBody && this.$el && this.$el.parentNode) { this.$el.parentNode.removeChild(this.$el); } } }); // CONCATENATED MODULE: ./node_modules/element-ui/packages/image/src/image-viewer.vue?vue&type=script&lang=js /* harmony default export */ var src_image_viewervue_type_script_lang_js = (image_viewervue_type_script_lang_js); // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(2); // CONCATENATED MODULE: ./node_modules/element-ui/packages/image/src/image-viewer.vue /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( src_image_viewervue_type_script_lang_js, render, staticRenderFns, false, null, null, "17d24eb5" ) /* harmony default export */ var image_viewer = __webpack_exports__["a"] = (component.exports); /***/ }), /***/ 170: /***/ (function(module, exports) { // Exports module.exports = { }; /***/ }), /***/ 171: /***/ (function(module, exports) { // Exports module.exports = { }; /***/ }), /***/ 182: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export formatPrice */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return round; }); /* unused harmony export transformNumber */ /* unused harmony export getUnit */ /* unused harmony export getSetup */ /* unused harmony export getPrint */ /* unused harmony export getAddon */ /* unused harmony export getPackaging */ /* unused harmony export getFright */ /* harmony import */ var number_precision__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(122); /* harmony import */ var number_precision__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(number_precision__WEBPACK_IMPORTED_MODULE_0__); // 商品价格计算相关 // 价格格式化 function formatPrice(value, needSymbol = true) { // 不能在最后一步显示之前格式化999 111, 否则可能出现单价1买999个得到999价格被格式化成poa的情况 if (value === 0) { return needSymbol ? '£0.00' : '0.00'; } else { return needSymbol ? `£${value}` : `${value}`; } } // 简单的乘法换算 function multiply(value, ratio = 100) { return parseFloat((value * ratio).toPrecision(12)); } // 小数处理, 四舍五入, 为toFixed做准备 function round(number, ratio = 100) { return Math.round(multiply(number, ratio)) / ratio; } /** * 将字符串简单转换成数字, 并可数倍转换. 注意, 这个适用于整数倍(商品件数), 非整数的不能用这个处理小数. * @param {*} value 目标值 * @param {*} ratio 倍数, 默认1 * @returns number | origin, 转换后的数字, 无法转成数字的返回原值 */ function transformNumber(value, ratio = 1) { const v = Number(value); if (Number.isNaN(v)) { return value; } else { // 保留两位小数 return Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["divide"])(Math.trunc(Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["times"])(Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["times"])(v, ratio), 100)), 100); } } // unit 单个商品的, 没有乘数量. 因为含有111 999 这些极端值, 没有格式化输出之前直接乘回出问题的. const getUnit = function (buyNum, index, attributeList, basePriceList) { // 算出购买数量位于 价格阶梯的 哪个区间 const candidate = Object.entries(attributeList).filter(item => buyNum >= item[1]); let key = 'website_qty1'; if (candidate.length) { key = candidate.pop()[0]; } return transformNumber(basePriceList[index][key], buyNum); }; // 打印和附加价格 的steup之和. 商品基础价格现在没有setup了. const getSetup = function (buyNum, form, additionList) { const sum = Object.entries(form).reduce((total, current) => { let s = 0; // 打印服务表单的数据跟附加服务表单的数据结构不一致, 以数字id字符串键名的是打印服务的数据 if (/\d+/.test(current[0]) && current[1].enable) { const temp = current[1].colorForm.filter(i => i.id === current[1].printService); let colorNumber = 1; if (temp.length) { colorNumber = temp[0].colorNumber; } const decoration = current[1].decorationList.filter(i => i.id === current[1].printService); let setup = 0; if (decoration.length) { setup = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(Number(decoration[0].website_setup), Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["times"])(Number(decoration[0].supplier_setup), colorNumber - 1)); } s = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(s, setup); } else if (current[1].length) { // 附加服务的表单数据, 有值说明该项有选中了附加服务 const addition = additionList[current[0]].filter(addition => current[1].includes(addition.id)); if (addition.length) { const temp = addition.reduce((t, c) => { let value = Number(c.website_setup); if ([5, 6].includes(c.website_setup_id)) { // 5是poa, 6是waived. 这种情况一般setup是留空的, 不留空大概是异常数据, 重置0保险一点. value = 0; } return Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(t, Number.isNaN(value) ? 0 : value); }, 0); s = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(s, temp); } } total = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(total, s); return total; }, 0); return transformNumber(sum); }; // 打印价格的 阶梯基础价*购买数量. const getPrint = function (buyNum, form, attributeList) { // 算出购买数量位于 价格阶梯的 哪个区间 const candidate = Object.entries(attributeList).filter(item => buyNum >= item[1]); const key = `website_qty${candidate.length}`; const key2 = `supplier_qty${candidate.length}`; // 如果其中一项为POA, 则‘和’都是POA const result = Object.entries(form).reduce((total, current) => { if (total === 'POA') { return total; } let sum = 0; if (/\d+/.test(current[0]) && current[1].enable) { const temp = current[1].colorForm.filter(i => i.id === current[1].printService); let colorNumber = 1; if (temp.length) { colorNumber = temp[0].colorNumber; } const decoration = current[1].decorationList.filter(i => i.id === current[1].printService); // 打印价格的基础价. 其中数字111(代表'-') 和999(代表'POA') const p1 = transformNumber(decoration[0][key]); if (p1 === 999 || p1 === 111 || typeof p1 !== 'number') { return 'POA'; } // 打印价格的附加价 const p2 = transformNumber(decoration[0][key2]); if (p2 === 999 || p2 === 111 || typeof p2 !== 'number') { return 'POA'; } let price = 0; if (decoration.length) { price = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(p1, Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["times"])(p2, colorNumber - 1)); } sum = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(sum, price); } total = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(total, sum); return total; }, 0); return transformNumber(result, buyNum); }; // 附加服务除了packing之外的总价 const getAddon = function (buyNum, form, attributeList, additionList) { // 算出购买数量位于 价格阶梯的 哪个区间 const candidate = Object.entries(attributeList).filter(item => buyNum >= item[1]); const key = `website_qty${candidate.length}`; const result = Object.entries(form).reduce((total, current) => { if (total === 'POA') { return total; } let sum = 0; if (!/\d+/.test(current[0]) && current[0] !== 'packaging') { sum = additionList[current[0]].filter(item => current[1].includes(item.id)).reduce((t, c) => { if (t === 'POA') { return t; } let temp = transformNumber(c[key]); if (temp === 999 || temp === 111 || typeof temp !== 'number') { temp = 0; return 'POA'; } t = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(t, temp); return t; }, 0); } return Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(total, sum); }, 0); return transformNumber(result, buyNum); }; // 附加服务中 packing 的价格 const getPackaging = function (buyNum, form, attributeList, additionList) { // 算出购买数量位于 价格阶梯的 哪个区间 const candidate = Object.entries(attributeList).filter(item => buyNum >= item[1]); const key = `website_qty${candidate.length}`; const result = Object.entries(form).reduce((total, current) => { if (total === 'POA') { return total; } let sum = 0; if (!/\d+/.test(current[0]) && current[0] === 'packaging') { sum = additionList[current[0]].filter(item => current[1].includes(item.id)).reduce((t, c) => { if (t === 'POA') { return t; } let temp = transformNumber(c[key]); if (temp === 999 || temp === 111 || typeof temp !== 'number') { temp = 0; return 'POA'; } t = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(t, temp); return t; }, 0); } return Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(total, sum); }, 0); return transformNumber(result, buyNum); }; // 运费计算. 从product页面抄过来的逻辑. +号是隐式类型转换 const getFright = function (buyNum, config, freight, weight, ratio = 1) { // 单独批次数量的总重 const totalWeight = Math.ceil(Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["times"])(+weight.unit_w_local, buyNum)); const expressFactor = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(1, Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["divide"])(Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(+config.express_freight, +config.fuel), 100)); const AAEFactor = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(1, Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["divide"])(Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(+config.bag_freight, +config.fuel), 100)); let frightCost = 0; if (freight.type === 1) { if (totalWeight > 20) { const a1 = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["minus"])(totalWeight, 20); const a2 = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["times"])(a1, +freight.basic); const a3 = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(+freight.pickup, a2); frightCost = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["times"])(a3, expressFactor); } else { frightCost = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["times"])(+freight.pickup, expressFactor); } } else if (freight.type === 2) { const a1 = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["times"])(totalWeight, +freight.basic); const a2 = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["plus"])(+freight.pickup, a1); frightCost = Object(number_precision__WEBPACK_IMPORTED_MODULE_0__["times"])(a2, AAEFactor); } else { frightCost = 0; } return transformNumber(frightCost, ratio); }; /***/ }), /***/ 183: /***/ (function(module, exports) { // Exports module.exports = { }; /***/ }), /***/ 191: /***/ (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_imageList_vue_vue_type_style_index_0_id_d262f43e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(170); /* 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_imageList_vue_vue_type_style_index_0_id_d262f43e_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_imageList_vue_vue_type_style_index_0_id_d262f43e_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_imageList_vue_vue_type_style_index_0_id_d262f43e_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_imageList_vue_vue_type_style_index_0_id_d262f43e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /***/ }), /***/ 192: /***/ (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_ExportDialog_vue_vue_type_style_index_0_id_1381fc6c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(171); /* 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_ExportDialog_vue_vue_type_style_index_0_id_1381fc6c_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_ExportDialog_vue_vue_type_style_index_0_id_1381fc6c_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_ExportDialog_vue_vue_type_style_index_0_id_1381fc6c_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_ExportDialog_vue_vue_type_style_index_0_id_1381fc6c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /***/ }), /***/ 199: /***/ (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/imageList.vue?vue&type=template&id=d262f43e&scoped=true var render = function render() { var _vm = this, _c = _vm._self._c; return _c('div', { staticClass: "wrap flex row" }, [_vm._ssrNode(" "), _vm._ssrNode("
", "
", _vm._l(_vm.data, function (item, index) { return _c('el-image', { key: index, staticClass: "image", attrs: { "src": item.cdn_url, "fit": "cover" }, on: { "click": function ($event) { return _vm.handleViwer(index); } } }); }), 1), _vm._ssrNode(" "), _vm.showViewer ? _c('ElImageViewer', { attrs: { "initial-index": _vm.currentPre, "on-close": _vm.closeViewer, "url-list": _vm.comImg } }) : _vm._e()], 2); }; var staticRenderFns = []; // CONCATENATED MODULE: ./components/imageList.vue?vue&type=template&id=d262f43e&scoped=true // EXTERNAL MODULE: ./node_modules/element-ui/packages/image/src/image-viewer.vue + 7 modules var image_viewer = __webpack_require__(159); // 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/imageList.vue?vue&type=script&lang=js /* harmony default export */ var imageListvue_type_script_lang_js = ({ components: { ElImageViewer: image_viewer["a" /* default */] }, props: { data: { type: Array, default: () => { return []; } } }, data() { return { currentPre: 0, showViewer: false }; }, computed: { comImg() { return this.data.map(i => i.cdn_url); } }, methods: { scroll(amount) { const list = this.$refs.list; list.scrollLeft += amount * list.clientWidth; }, closeViewer() { this.showViewer = false; }, handleViwer(i) { this.currentPre = i; this.showViewer = true; } } }); // CONCATENATED MODULE: ./components/imageList.vue?vue&type=script&lang=js /* harmony default export */ var components_imageListvue_type_script_lang_js = (imageListvue_type_script_lang_js); // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(2); // CONCATENATED MODULE: ./components/imageList.vue function injectStyles (context) { var style0 = __webpack_require__(191) if (style0.__inject__) style0.__inject__(context) } /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( components_imageListvue_type_script_lang_js, render, staticRenderFns, false, injectStyles, "d262f43e", "05c2c4fb" ) /* harmony default export */ var imageList = __webpack_exports__["default"] = (component.exports); /***/ }), /***/ 200: /***/ (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/ExportDialog.vue?vue&type=template&id=1381fc6c&scoped=true var render = function render() { var _vm = this, _c = _vm._self._c; return _c('el-dialog', { attrs: { "lock-scroll": false, "title": _vm.title, "visible": _vm.visible, "width": "700px", "before-close": _vm.handleClose, "close-on-click-modal": false, "top": "0" }, on: { "update:visible": function ($event) { _vm.visible = $event; } } }, [_c('el-form', { ref: "ruleForm", attrs: { "model": _vm.emailForm, "rules": _vm.rules } }, _vm._l(_vm.emailForm, function (val, key) { return _c('el-form-item', { key: key, attrs: { "label": _vm.labelShow ? key : '', "label-width": _vm.labelWidth + 'px', "prop": key } }, [_c('el-input', { attrs: { "readonly": "" }, model: { value: _vm.emailForm[key], callback: function ($$v) { _vm.$set(_vm.emailForm, key, $$v); }, expression: "emailForm[key]" } }), _c('el-button', { class: key, attrs: { "data-clipboard-text": _vm.emailForm[key], "type": "primary" }, on: { "click": function ($event) { $event.preventDefault(); return _vm.copyUrl(key); } } }, [_vm._v("copy link")])], 1); }), 1)], 1); }; var staticRenderFns = []; // CONCATENATED MODULE: ./components/ExportDialog.vue?vue&type=template&id=1381fc6c&scoped=true // EXTERNAL MODULE: external "clipboard" var external_clipboard_ = __webpack_require__(140); var external_clipboard_default = /*#__PURE__*/__webpack_require__.n(external_clipboard_); // 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/ExportDialog.vue?vue&type=script&lang=js /* harmony default export */ var ExportDialogvue_type_script_lang_js = ({ props: { title: { type: String, default: 'Send Email' }, sendbtnCext: { type: String, default: 'SUBMIT REQUEST' }, isSendPdf: { type: Boolean, default: false }, labelShow: { type: Boolean, default: true }, emailForm: {}, rules: {}, labelWidth: Number, visible: { type: Boolean, default: false } }, methods: { copyUrl(key) { let clipboard = new external_clipboard_default.a(`.${key}`); clipboard.on('success', e => { this.$message.success("link copied to clipboard"); // 利用Element组件给予成功提示 clipboard.destroy(); // 释放内存 }); clipboard.on('error', e => { this.$message.error('The browser does not support automatic replication'); // 给予错误提示信息 clipboard.destroy(); // 释放内存 }); }, handleClose() { this.$emit('update:visible', false); } } }); // CONCATENATED MODULE: ./components/ExportDialog.vue?vue&type=script&lang=js /* harmony default export */ var components_ExportDialogvue_type_script_lang_js = (ExportDialogvue_type_script_lang_js); // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(2); // CONCATENATED MODULE: ./components/ExportDialog.vue function injectStyles (context) { var style0 = __webpack_require__(192) if (style0.__inject__) style0.__inject__(context) } /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( components_ExportDialogvue_type_script_lang_js, render, staticRenderFns, false, injectStyles, "1381fc6c", "5781176c" ) /* harmony default export */ var ExportDialog = __webpack_exports__["default"] = (component.exports); /***/ }), /***/ 212: /***/ (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; } /** * Creates a throttled function that only invokes `func` at most once per * every `wait` milliseconds. The throttled 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 * throttled function. Subsequent calls to the throttled 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 throttled 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 `_.throttle` and `_.debounce`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to throttle. * @param {number} [wait=0] The number of milliseconds to throttle invocations to. * @param {Object} [options={}] The options object. * @param {boolean} [options.leading=true] * Specify invoking on the leading edge of the timeout. * @param {boolean} [options.trailing=true] * Specify invoking on the trailing edge of the timeout. * @returns {Function} Returns the new throttled function. * @example * * // Avoid excessively updating the position while scrolling. * jQuery(window).on('scroll', _.throttle(updatePosition, 100)); * * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false }); * jQuery(element).on('click', throttled); * * // Cancel the trailing throttled invocation. * jQuery(window).on('popstate', throttled.cancel); */ function throttle(func, wait, options) { var leading = true, trailing = true; if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } if (isObject(options)) { leading = 'leading' in options ? !!options.leading : leading; trailing = 'trailing' in options ? !!options.trailing : trailing; } return debounce(func, wait, { 'leading': leading, 'maxWait': wait, 'trailing': trailing }); } /** * 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 = throttle; /***/ }), /***/ 213: /***/ (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_orderDetailPart_vue_vue_type_style_index_0_id_0272884e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(183); /* 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_orderDetailPart_vue_vue_type_style_index_0_id_0272884e_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_orderDetailPart_vue_vue_type_style_index_0_id_0272884e_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_orderDetailPart_vue_vue_type_style_index_0_id_0272884e_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_orderDetailPart_vue_vue_type_style_index_0_id_0272884e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /***/ }), /***/ 225: /***/ (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/myDetail/components/orderDetailPart.vue?vue&type=template&id=0272884e&scoped=true var render = function render() { var _vm$orderDetail$crm_p; var _vm = this, _c = _vm._self._c; return _c('div', { staticClass: "order-detail-part" }, [_vm.isLoading == 1 ? _c('div', { directives: [{ name: "loading", rawName: "v-loading", value: true, expression: "true" }], staticClass: "com-loading" }) : _vm.isLoading == 2 ? [_vm._ssrNode("
", "
", [_vm._ssrNode("

" + _vm._ssrEscape("Job Name:" + _vm._s(_vm.orderDetail.Sales_Order_Title_Job_Name)) + "

" + (_vm.orderDetail.user_logo ? "" : "") + "
"), _vm._ssrNode("
", "
", [_vm._ssrNode("
    ", "
", [_vm._ssrNode((_vm.isShow ? "
  • Client Tracking Share
  • " : "") + " "), (_vm$orderDetail$crm_p = _vm.orderDetail.crm_pr_res) !== null && _vm$orderDetail$crm_p !== void 0 && _vm$orderDetail$crm_p.length ? _vm._ssrNode("
  • ", "
  • ", [_c('image-list', { attrs: { "data": _vm.orderDetail.crm_pr_res } })], 1) : _vm._e()], 2), _vm._ssrNode("
      " + (_vm.orderDetail.Job_Group && _vm.isShow ? "
    • " + _vm._ssrEscape("\n Order Type: " + _vm._s(_vm.orderDetail.Job_Group) + "\n ") + "
    • " : "") + "
    • " + _vm._ssrEscape("Order No: " + _vm._s(_vm.orderDetail.Reference)) + "
    • " + _vm._ssrEscape("\n Order Date: " + _vm._s(_vm.formatStepDesc(_vm.orderDetail.Sales_Order_Created)) + "\n ") + "
    • " + (_vm.orderDetail.Expected_Delivery_Date ? "
    • " + _vm._ssrEscape("\n ETA: " + _vm._s(_vm.formatStepDesc(_vm.orderDetail.Expected_Delivery_Date)) + "\n ") + "
    • " : "") + " " + (_vm.isShow ? "
    • " + _vm._ssrEscape("\n Payment Status: " + _vm._s(_vm.orderDetail.Payment_Status1) + "\n ") + "
    • " : "") + "
    ")], 2), _vm._ssrNode(" "), _vm._ssrNode("
    ", "
    ", [_vm._ssrNode("

    Bulk Production

    "), _c('el-steps', { attrs: { "active": _vm.comOrderState, "align-center": "", "direction": _vm.computedStepDirection, "finish-status": "success", "process-status": "wait" } }, [_c('el-step', { attrs: { "title": "Confirmed", "description": _vm.formatStepDesc(_vm.orderDetail.Order_Confirm) } }), _vm._v(" "), _c('el-step', { attrs: { "title": "In Production", "description": _vm.formatStepDesc(_vm.orderDetail.Sampling_Factory_Confirm) } }), _vm._v(" "), _c('el-step', { attrs: { "title": "QC Inspection", "description": _vm.formatStepDesc(_vm.orderDetail.GZ_WH) } }), _vm._v(" "), _c('el-step', { attrs: { "title": "International Shipment", "description": _vm.formatStepDesc(_vm.orderDetail.International_transshipment) } }), _vm._v(" "), _c('el-step', { attrs: { "title": "AU Warehouse", "description": _vm.formatStepDesc(_vm.orderDetail.AU_WH) } }), _vm._v(" "), _c('el-step', { attrs: { "title": _vm.orderDetail.Order_Stage === 'Bulk Production Shipping' ? 'Domestic Delivery' : 'Shipped', "description": _vm.formatStepDesc(_vm.orderDetail.AU_WH_Client) } }), _vm._v(" "), _c('el-step', { attrs: { "title": "Delivered", "description": _vm.formatStepDesc(_vm.orderDetail.Delivered) } })], 1)], 2), _vm._ssrNode(" "), _vm.orderDetail.Sample_Stage ? _vm._ssrNode("", "", [_vm._ssrNode("\n Sample Dispatch\n

    "), _vm.stepShow ? _c('el-steps', { attrs: { "active": _vm.comSampleState, "align-center": "", "space": 180, "direction": _vm.computedStepDirection, "finish-status": "success", "process-status": "wait" } }, [_c('el-step', { attrs: { "title": "Factory Process", "description": _vm.formatStepDesc(_vm.orderDetail.Sample_Factory_Confirmed) } }), _vm._v(" "), _c('el-step', { attrs: { "title": "Sample Dispatching", "description": _vm.formatStepDesc(_vm.orderDetail.Sample_Dispatching) } }), _vm._v(" "), _c('el-step', { attrs: { "title": "Sample Delivered", "description": _vm.formatStepDesc(_vm.orderDetail.Sample_Delivered) } })], 1) : _vm._e()], 2) : _vm._e()], 2), _vm._ssrNode("

    Customer information

    " + _vm._ssrEscape("\n " + _vm._s(_vm.isShow ? 'Billing' : 'Supplier') + " Address\n ") + "

    " + _vm._ssrEscape(_vm._s(_vm.orderDetail.Account_Name_name)) + "

    " + _vm._ssrEscape(_vm._s(_vm.orderDetail.Billing_Unit_Building_Name)) + "

    " + _vm._ssrEscape(_vm._s(_vm.orderDetail.Billing_Street)) + "

    " + _vm._ssrEscape(_vm._s(_vm.orderDetail.Billing_City)) + "

    " + _vm._ssrEscape(_vm._s(_vm.orderDetail.Billing_State)) + "

    " + _vm._ssrEscape(_vm._s(_vm.orderDetail.Billing_Code)) + "

    " + _vm._ssrEscape(_vm._s(_vm.orderDetail.Billing_Country)) + "

    Shipping Address

    " + _vm._ssrEscape(_vm._s(_vm.orderDetail.Shipping_Unit_Building_Name)) + "

    " + _vm._ssrEscape(_vm._s(_vm.orderDetail.Shipping_Street)) + "

    " + _vm._ssrEscape(_vm._s(_vm.orderDetail.Shipping_City)) + "

    " + _vm._ssrEscape(_vm._s(_vm.orderDetail.Shipping_State)) + "

    " + _vm._ssrEscape(_vm._s(_vm.orderDetail.Shipping_Code)) + "

    " + _vm._ssrEscape(_vm._s(_vm.orderDetail.Shipping_Country)) + "

    "), _vm._ssrNode("
    ", "
    ", [_vm._ssrNode("

    Shipping information

    "), _c('el-table', { staticStyle: { "width": "100%" }, attrs: { "data": _vm.orderDetail.shipping_tracking, "header-cell-style": { background: '#F7F8FC', color: '#101010', fontWeight: 'normal' } } }, [_c('el-table-column', { staticStyle: { "padding": "0" }, attrs: { "type": "expand" }, scopedSlots: _vm._u([{ key: "default", fn: function (props) { return [_c('el-table', { staticStyle: { "margin-left": "50px", "width": "calc(100% - 50px)" }, attrs: { "data": props.row.test_pkg_details, "header-cell-style": { background: '#F7F8FC', color: '#101010', fontWeight: 'normal' } } }, [_c('el-table-column', { attrs: { "prop": "Product_name", "label": "Item & Description" } }), _vm._v(" "), _c('el-table-column', { attrs: { "prop": "Quantity_to_pack", "label": "QTY", "width": "450" } })], 1)]; } }]) }), _vm._v(" "), _c('el-table-column', { attrs: { "prop": "Title", "label": "Job Name", "width": "190" } }), _vm._v(" "), _c('el-table-column', { attrs: { "prop": "Courier", "label": "Carrier", "width": "190" } }), _vm._v(" "), _c('el-table-column', { attrs: { "prop": "Tracking_No", "label": "Tracking#", "width": "190" } }), _vm._v(" "), _c('el-table-column', { attrs: { "prop": "Package_Status", "label": "Shipment Status", "width": "190" } }), _vm._v(" "), _c('el-table-column', { attrs: { "label": "Delivery Address", "width": "250" }, scopedSlots: _vm._u([{ key: "default", fn: function (scope) { return [_c('span', [_vm._v("\n " + _vm._s(scope.row.Shipping_Unit_Building_Name)), _c('br'), _vm._v("\n " + _vm._s(scope.row.Shipping_Street)), _c('br'), _vm._v("\n " + _vm._s(scope.row.Shipping_City)), _c('br'), _vm._v("\n " + _vm._s(scope.row.Shipping_State) + "\n ")])]; } }]) }), _vm._v(" "), _c('el-table-column', { attrs: { "prop": "Tracking_URL", "label": "", "width": "200" }, scopedSlots: _vm._u([{ key: "default", fn: function (scope) { return scope.row.Tracking_URL ? [_c('el-button', { staticStyle: { "background-color": "rgb(0, 33, 59)", "color": "#fff" }, attrs: { "size": "mini", "plain": "" }, nativeOn: { "click": function ($event) { return _vm.openTracking_URL(scope.row.Tracking_URL); } } }, [_vm._v("TRACK SHIPMENT")])] : undefined; } }], null, true) })], 1)], 2), _vm._ssrNode(" "), _vm._ssrNode("
    ", "
    ", [_vm._ssrNode("

    Products Information

    "), _c('el-table', { staticStyle: { "width": "100%" }, attrs: { "data": _vm.orderDetail.sales_orders_details, "header-cell-style": { background: '#fff', color: '#101010', fontWeight: 'normal' } } }, [_c('el-table-column', { attrs: { "type": "index", "label": "S.NO", "width": "70", "fixed": "" } }), _vm._v(" "), _c('el-table-column', { attrs: { "label": "Product Name", "min-width": "300" }, scopedSlots: _vm._u([{ key: "default", fn: function (scope) { return [_c('p', { staticClass: "colorBlue" }, [_vm._v(_vm._s(scope.row.product_name))]), _vm._v(" "), _c('p', { domProps: { "innerHTML": _vm._s(scope.row.product_description) } })]; } }]) }), _vm._v(" "), _c('el-table-column', { attrs: { "prop": "quantity", "label": "Quantity", "align": "left", "width": _vm.isShow ? 125 : 200 } }), _vm._v(" "), _vm.isShow ? [_c('el-table-column', { attrs: { "prop": "list_price", "label": `List Price(${_vm.comCurrency})`, "width": "125" }, scopedSlots: _vm._u([{ key: "default", fn: function (scope) { return [_vm._v("\n " + _vm._s(_vm.transformNumber(scope.row.list_price)) + "\n ")]; } }], null, false, 2317124035) }), _vm._v(" "), _c('el-table-column', { attrs: { "prop": "amount", "label": `Amount(${_vm.comCurrency})`, "width": "125" }, scopedSlots: _vm._u([{ key: "default", fn: function (scope) { return [_vm._v("\n " + _vm._s(_vm.transformNumber(scope.row.amount)) + "\n ")]; } }], null, false, 266223839) }), _vm._v(" "), _c('el-table-column', { attrs: { "prop": "Tax", "label": `Tax(${_vm.comCurrency})`, "width": "125" }, scopedSlots: _vm._u([{ key: "default", fn: function (scope) { return [_vm._v("\n " + _vm._s(_vm.transformNumber(scope.row.Tax)) + "\n ")]; } }], null, false, 576653726) }), _vm._v(" "), _c('el-table-column', { attrs: { "prop": "Discount", "label": `Discount(${_vm.comCurrency})`, "width": "125" }, scopedSlots: _vm._u([{ key: "default", fn: function (scope) { return [_vm._v("\n " + _vm._s(_vm.transformNumber(scope.row.Discount)) + "\n ")]; } }], null, false, 3596838958) }), _vm._v(" "), _c('el-table-column', { attrs: { "prop": "net_total", "label": `Total(${_vm.comCurrency})`, "width": "125" }, scopedSlots: _vm._u([{ key: "default", fn: function (scope) { return [_vm._v("\n " + _vm._s(_vm.transformNumber(scope.row.net_total)) + "\n ")]; } }], null, false, 104449041) })] : _vm._e()], 2), _vm._ssrNode(" " + (_vm.isShow ? "
    Sub Total " + _vm._ssrEscape("\n " + _vm._s(_vm.comCurrency) + " " + _vm._s(_vm.transformNumber(_vm.orderDetail.Sub_Total)) + "\n ") + "
    Total Taxes " + _vm._ssrEscape("\n " + _vm._s(_vm.comCurrency) + " " + _vm._s(_vm.transformNumber(_vm.orderDetail.Tax_Total)) + "\n ") + "
    Total Discount " + _vm._ssrEscape("\n " + _vm._s(_vm.comCurrency) + "\n " + _vm._s(_vm.transformNumber(_vm.orderDetail.Total_Including_Discount)) + "\n ") + "
    Adjustment " + _vm._ssrEscape("\n " + _vm._s(_vm.comCurrency) + "\n " + _vm._s(_vm.transformNumber(_vm.orderDetail.Total_Adjustment)) + "\n ") + "
    Grand Total " + _vm._ssrEscape("\n " + _vm._s(_vm.comCurrency) + " " + _vm._s(_vm.transformNumber(_vm.orderDetail.Grand_Total)) + "\n ") + "
    " : "") + " " + (_vm.isShow ? "

    Notes

    Terms & conditions

    Artwork Approval

    " + _vm._ssrEscape(_vm._s(_vm.orderDetail.Subject)) + "

    " : ""))], 2)] : _vm._ssrNode("
    ", "
    ", [_c('el-empty', { attrs: { "description": "No Data" } })], 1), _vm._ssrNode(" "), _c('el-dialog', { attrs: { "lock-scroll": false, "visible": _vm.urlDialogShow, "center": "", "width": "850px", "top": "20vh" }, on: { "update:visible": function ($event) { _vm.urlDialogShow = $event; } } }, [_c('iframe', { staticStyle: { "width": "100%", "height": "500px" }, attrs: { "src": _vm.Tracking_URL, "frameborder": "0" } })]), _vm._ssrNode(" "), _c('export-dialog', { attrs: { "emailForm": _vm.shareForm, "visible": _vm.shareDialogVisible, "title": 'Client Tracking Share (no pricing displayed)', "labelShow": false }, on: { "update:visible": function ($event) { _vm.shareDialogVisible = $event; } } })], 2); }; var staticRenderFns = []; // CONCATENATED MODULE: ./pages/home/myDetail/components/orderDetailPart.vue?vue&type=template&id=0272884e&scoped=true // EXTERNAL MODULE: ./node_modules/lodash.throttle/index.js var lodash_throttle = __webpack_require__(212); var lodash_throttle_default = /*#__PURE__*/__webpack_require__.n(lodash_throttle); // EXTERNAL MODULE: external "vuex" var external_vuex_ = __webpack_require__(6); // EXTERNAL MODULE: ./utils/price.js var price = __webpack_require__(182); // 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/myDetail/components/orderDetailPart.vue?vue&type=script&lang=js /* harmony default export */ var orderDetailPartvue_type_script_lang_js = ({ name: 'OrderDetailPart', props: { isShow: { // 订单分享页面隐藏元素 type: Boolean, default: true }, hasUid: { type: Boolean, default: true } }, data() { return { orderDetail: {}, isLoading: 1, packageTable: [], stepShow: false, urlDialogShow: false, shareDialogVisible: false, loginCount: 0, shareForm: { Link: '' }, Tracking_URL: '', stepConfig: { 'Order Confirmed': 1, 'Factory Confirmed': 2, 'GZ WH': 3, Transshipment: 4, 'AU WH': 5, 'AUWH - Client': 6, 'Bulk Production Shipping': 6, 'Bulk Production Delivered': 7, 'Completed Sales Order': 7, 'Factory Process': 1, 'Sample Dispatching': 2, 'Sample Delivered': 3 }, computedStepDirection: 'horizontal' }; }, computed: { loginSuccess() { return this.$store.state.loginSuccess; }, comCurrency() { return this.orderDetail.Currency; }, comOrderState() { if (this.orderDetail.Order_Stage === 'Cancelled') { return 0; } return this.stepConfig[this.orderDetail.Order_Stage]; }, comSampleState() { return this.stepConfig[this.orderDetail.Sample_Stage]; } }, watch: { loginSuccess(newVal) { if (newVal) { this.getOrderDetail(); // 当登录成功后调用获取订单详情 this.$store.commit('setLoginSuccess', false); } } }, beforeMount() { window.addEventListener('resize', this.judgeStepDirection, false); this.judgeStepDirection(); }, created() { this.getOrderDetail(); }, beforeDestroy() { window.removeEventListener('resize', this.judgeStepDirection, false); }, methods: { ...Object(external_vuex_["mapMutations"])({ openDialog: 'openDialog' }), judgeStepDirection: lodash_throttle_default()(function () { this.computedStepDirection = window.document.body.clientWidth >= 1000 ? 'horizontal' : 'vertical'; }, 300), toggleStep() { this.stepShow = !this.stepShow; }, getOrderDetail() { let path = ''; let data = {}; if (this.isShow) { const { id } = this.$store.state.userInfo; const { crm, id: queryId } = this.$route.query; path = '/uk-api/crmdata/orders_detail'; this.shareForm.Link = `https://www.trackship.com.au/orderShare/${id}/${crm}/${queryId}`; data = { accounts_id: crm, id: queryId }; } else { path = '/uk-api/crmdata/showOrdersDetail'; if (this.hasUid) { const { uid, aid, id } = this.$route.params; data = { user_id: uid, accounts_id: aid, id }; } else { const { aid, id } = this.$route.params; data = { accounts_id: aid, id }; } } this.$axios.post(path, data).then(res => { var _this$orderDetail$shi, _this$orderDetail$sal; if (res.result === null) { this.handleBranchLogic(); } this.orderDetail = res.result; if ((_this$orderDetail$shi = this.orderDetail.shipping_tracking) !== null && _this$orderDetail$shi !== void 0 && _this$orderDetail$shi.length) { const isDelivered = true; for (const items of this.orderDetail.shipping_tracking) { var _items$test_pkg_detai; if ((_items$test_pkg_detai = items.test_pkg_details) !== null && _items$test_pkg_detai !== void 0 && _items$test_pkg_detai.length) { items.test_pkg_details.forEach(item => { item.Courier = items.Courier; item.Tracking_No = items.Tracking_No; item.Package_Status = items.Package_Status; item.Tracking_URL = items.Tracking_URL; }); } } } if ((_this$orderDetail$sal = this.orderDetail.sales_orders_details) !== null && _this$orderDetail$sal !== void 0 && _this$orderDetail$sal.length) { if (this.isShow) { this.orderDetail.sales_orders_details.forEach(items => { this.$set(items, 'showMore', true); }); } else { this.orderDetail.sales_orders_details = this.orderDetail.sales_orders_details.filter(item => { return item.product_Product_Code !== 'PC Setup Service' && item.product_Product_Code !== 'PC Freight'; }).map(item => { this.$set(item, 'showMore', true); return item; }); } } this.isLoading = 2; }).catch(() => { this.handleBranchLogic(); }); }, handleBranchLogic() { this.isLoading = 3; if (this.loginCount) { this.$router.push('/'); return; } this.isShow && setTimeout(() => { this.openDialog(); this.loginCount = 1; }, 1000); }, transformNumber(value) { return Object(price["a" /* round */])(Number(value)).toFixed(2); }, formatStepDesc(date, isUnix = false) { return this.$utils.formatTime(date, 'DD/MM/YYYY', isUnix); }, toggleShow(row) { row.showMore = !row.showMore; }, openTracking_URL(url) { this.Tracking_URL = url; this.urlDialogShow = true; } } }); // CONCATENATED MODULE: ./pages/home/myDetail/components/orderDetailPart.vue?vue&type=script&lang=js /* harmony default export */ var components_orderDetailPartvue_type_script_lang_js = (orderDetailPartvue_type_script_lang_js); // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(2); // CONCATENATED MODULE: ./pages/home/myDetail/components/orderDetailPart.vue function injectStyles (context) { var style0 = __webpack_require__(213) if (style0.__inject__) style0.__inject__(context) } /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( components_orderDetailPartvue_type_script_lang_js, render, staticRenderFns, false, injectStyles, "0272884e", "4359a921" ) /* harmony default export */ var orderDetailPart = __webpack_exports__["default"] = (component.exports); /* nuxt-component-imports */ installComponents(component, {ImageList: __webpack_require__(199).default,ExportDialog: __webpack_require__(200).default}) /***/ }), /***/ 358: /***/ (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/myDetail/orderDetail.vue?vue&type=template&id=01f46a4a var render = function render() { var _vm = this, _c = _vm._self._c; return _c('div', { staticClass: "com-main 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', { attrs: { "to": { path: '/home/myDetail', query: { type: 'all-orders' } } } }, [_vm._v("My Orders")]), _vm._v(" "), _c('el-breadcrumb-item', [_vm._v("detail")])], 1), _vm._ssrNode(" "), _c('order-detail-part')], 2); }; var staticRenderFns = []; // CONCATENATED MODULE: ./pages/home/myDetail/orderDetail.vue?vue&type=template&id=01f46a4a // EXTERNAL MODULE: ./pages/home/myDetail/components/orderDetailPart.vue + 4 modules var orderDetailPart = __webpack_require__(225); // 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/myDetail/orderDetail.vue?vue&type=script&lang=js /* harmony default export */ var orderDetailvue_type_script_lang_js = ({ components: { orderDetailPart: orderDetailPart["default"] } }); // CONCATENATED MODULE: ./pages/home/myDetail/orderDetail.vue?vue&type=script&lang=js /* harmony default export */ var myDetail_orderDetailvue_type_script_lang_js = (orderDetailvue_type_script_lang_js); // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(2); // CONCATENATED MODULE: ./pages/home/myDetail/orderDetail.vue /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( myDetail_orderDetailvue_type_script_lang_js, render, staticRenderFns, false, null, null, "37977c27" ) /* harmony default export */ var orderDetail = __webpack_exports__["default"] = (component.exports); /***/ }) };; //# sourceMappingURL=orderDetail.js.map