1 |
- {"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.number.constructor.js","webpack:///./node_modules/core-js/internals/this-number-value.js","webpack:///./node_modules/core-js/modules/es.number.to-fixed.js","webpack:///./node_modules/element-ui/packages/image/src/image-viewer.vue","webpack:///./node_modules/element-ui/src/utils/popup/popup-manager.js","webpack:///./node_modules/element-ui/src/utils/popup/index.js","webpack:///./node_modules/element-ui/packages/image/src/image-viewer.vue?cc7b","webpack:///./node_modules/element-ui/packages/image/src/image-viewer.vue?6307","webpack:///./node_modules/element-ui/src/utils/dom.js","webpack:///./node_modules/element-ui/src/utils/types.js","webpack:///./node_modules/element-ui/src/utils/util.js","webpack:///./node_modules/element-ui/src/utils/merge.js","webpack:///./node_modules/core-js/modules/es.object.values.js"],"names":["$","IS_PURE","DESCRIPTORS","globalThis","path","uncurryThis","isForced","hasOwn","inheritIfRequired","isPrototypeOf","isSymbol","toPrimitive","fails","getOwnPropertyNames","f","getOwnPropertyDescriptor","defineProperty","thisNumberValue","trim","NUMBER","NativeNumber","PureNumberNamespace","NumberPrototype","prototype","TypeError","stringSlice","slice","charCodeAt","toNumber","argument","first","third","radix","maxCode","digits","length","index","code","it","NaN","parseInt","FORCED","NumberWrapper","value","dummy","n","arguments","primValue","toNumeric","this","Object","constructor","global","wrap","forced","Number","copyConstructorProperties","target","source","key","keys","split","j","module","exports","valueOf","toIntegerOrInfinity","$repeat","$RangeError","RangeError","$String","String","floor","Math","repeat","nativeToFixed","toFixed","pow","x","acc","multiply","data","c","c2","divide","dataToString","s","t","proto","fractionDigits","e","z","k","number","fractDigits","sign","result","x2","log","hasModal","hasInitZIndex","getModal","$isServer","modalDom","PopupManager","document","createElement","addEventListener","event","preventDefault","stopPropagation","doOnModalClick","instances","modalFade","getInstance","id","register","instance","deregister","nextZIndex","zIndex","modalStack","topItem","closeOnClickModal","close","openModal","dom","modalClass","undefined","i","forEach","item","setTimeout","parentNode","nodeType","appendChild","body","style","tabIndex","display","push","closeModal","pop","splice","removeChild","configurable","get","$ELEMENT","set","window","keyCode","topPopup","getTopPopup","closeOnPressEscape","handleClose","handleAction","Boolean","Mode","CONTAIN","name","icon","ORIGINAL","mousewheelEventName","isFirefox","props","urlList","type","Array","default","onSwitch","Function","onClose","initialIndex","appendToBody","maskClosable","isShow","infinite","loading","mode","transform","scale","deg","offsetX","offsetY","enableTransition","computed","isSingle","isFirst","isLast","currentImg","imgStyle","_this$transform","concat","transition","maxWidth","maxHeight","viewerZIndex","watch","handler","val","reset","_this","$nextTick","_","$refs","img","complete","methods","hide","deviceSupportUninstall","deviceSupportInstall","_this2","_keyDownHandler","toggleMode","prev","handleActions","next","_mouseWheelHandler","rafThrottle","wheelDelta","detail","zoomRate","on","off","handleImgLoad","handleImgError","alt","handleMouseDown","_this3","button","_this$transform2","startX","pageX","startY","pageY","_dragHandler","ev","handleMaskClick","modeNames","nextIndex","values","indexOf","len","action","options","_zoomRate$rotateDeg$e","_objectSpread","rotateDeg","parseFloat","mounted","$el","focus","destroyed","component","_vm","_c","_self","attrs","ref","staticClass","$event","currentTarget","apply","_v","_e","class","_l","url","refInFor","isServer","SPECIAL_CHARS_REGEXP","MOZ_HACK_REGEXP","ieVersion","documentMode","string","replace","camelCase","separator","letter","offset","toUpperCase","element","attachEvent","removeEventListener","detachEvent","once","el","fn","listener","hasClass","cls","Error","classList","contains","className","addClass","curClass","classes","clsName","add","setAttribute","removeClass","remove","getStyle","styleName","filters","opacity","currentStyle","defaultView","getComputedStyle","isFunction","functionToCheck","toString","call","Int8Array","childNodes","hasOwnProperty","navigator","userAgent","match","kebabCase","str","hyphenateRE","toLowerCase","locked","args","requestAnimationFrame","isMac","test","prop","$values","stat","O"],"mappings":"6FACA,IAAIA,EAAI,EAAQ,GACZC,EAAU,EAAQ,IAClBC,EAAc,EAAQ,IACtBC,EAAa,EAAQ,GACrBC,KAAO,EAAQ,KACfC,EAAc,EAAQ,GACtBC,EAAW,EAAQ,KACnBC,EAAS,EAAQ,IACjBC,EAAoB,EAAQ,K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AO,CAC/B,IAAI9R,EAAQe,OAAO+Q,QACLzM,IAAVrF,IACFc,EAAOgR,GAAQ9R,EAEnB,CAEJ,CAEA,OAAOc,CACR,C,mCCbD,IAAIzD,EAAI,EAAQ,GACZ0U,EAAU,EAAQ,KAAgC1F,OAItDhP,EAAE,CAAEyD,OAAQ,SAAUkR,MAAM,GAAQ,CAClC3F,OAAQ,SAAgB4F,GACtB,OAAOF,EAAQE,EACjB,G","file":"d90e668.js","sourcesContent":["'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar globalThis = require('../internals/global-this');\nvar path = require('../internals/path');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar hasOwn = require('../internals/has-own-property');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar thisNumberValue = require('../internals/this-number-value');\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = globalThis[NUMBER];\nvar PureNumberNamespace = path[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = globalThis.TypeError;\nvar stringSlice = uncurryThis(''.slice);\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `ToNumeric` abstract operation\n// https://tc39.es/ecma262/#sec-tonumeric\nvar toNumeric = function (value) {\n var primValue = toPrimitive(value, 'number');\n return typeof primValue == 'bigint' ? primValue : toNumber(primValue);\n};\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (isSymbol(it)) throw new TypeError('Cannot convert a Symbol value to a number');\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = charCodeAt(it, 0);\n if (first === 43 || first === 45) {\n third = charCodeAt(it, 2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (charCodeAt(it, 1)) {\n // fast equal of /^0b[01]+$/i\n case 66:\n case 98:\n radix = 2;\n maxCode = 49;\n break;\n // fast equal of /^0o[0-7]+$/i\n case 79:\n case 111:\n radix = 8;\n maxCode = 55;\n break;\n default:\n return +it;\n }\n digits = stringSlice(it, 2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = charCodeAt(digits, index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nvar FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));\n\nvar calledWithNew = function (dummy) {\n // includes check on 1..constructor(foo) case\n return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); });\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nvar NumberWrapper = function Number(value) {\n var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));\n return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;\n};\n\nNumberWrapper.prototype = NumberPrototype;\nif (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED }, {\n Number: NumberWrapper\n});\n\n// Use `internal/copy-constructor-properties` helper in `core-js@4`\nvar copyConstructorProperties = function (target, source) {\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nif (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace);\nif (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = uncurryThis(1.0.valueOf);\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar thisNumberValue = require('../internals/this-number-value');\nvar $repeat = require('../internals/string-repeat');\nvar fails = require('../internals/fails');\n\nvar $RangeError = RangeError;\nvar $String = String;\nvar floor = Math.floor;\nvar repeat = uncurryThis($repeat);\nvar stringSlice = uncurryThis(''.slice);\nvar nativeToFixed = uncurryThis(1.0.toFixed);\n\nvar pow = function (x, n, acc) {\n return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);\n};\n\nvar log = function (x) {\n var n = 0;\n var x2 = x;\n while (x2 >= 4096) {\n n += 12;\n x2 /= 4096;\n }\n while (x2 >= 2) {\n n += 1;\n x2 /= 2;\n } return n;\n};\n\nvar multiply = function (data, n, c) {\n var index = -1;\n var c2 = c;\n while (++index < 6) {\n c2 += n * data[index];\n data[index] = c2 % 1e7;\n c2 = floor(c2 / 1e7);\n }\n};\n\nvar divide = function (data, n) {\n var index = 6;\n var c = 0;\n while (--index >= 0) {\n c += data[index];\n data[index] = floor(c / n);\n c = (c % n) * 1e7;\n }\n};\n\nvar dataToString = function (data) {\n var index = 6;\n var s = '';\n while (--index >= 0) {\n if (s !== '' || index === 0 || data[index] !== 0) {\n var t = $String(data[index]);\n s = s === '' ? t : s + repeat('0', 7 - t.length) + t;\n }\n } return s;\n};\n\nvar FORCED = fails(function () {\n return nativeToFixed(0.00008, 3) !== '0.000' ||\n nativeToFixed(0.9, 0) !== '1' ||\n nativeToFixed(1.255, 2) !== '1.25' ||\n nativeToFixed(1000000000000000128.0, 0) !== '1000000000000000128';\n}) || !fails(function () {\n // V8 ~ Android 4.3-\n nativeToFixed({});\n});\n\n// `Number.prototype.toFixed` method\n// https://tc39.es/ecma262/#sec-number.prototype.tofixed\n$({ target: 'Number', proto: true, forced: FORCED }, {\n toFixed: function toFixed(fractionDigits) {\n var number = thisNumberValue(this);\n var fractDigits = toIntegerOrInfinity(fractionDigits);\n var data = [0, 0, 0, 0, 0, 0];\n var sign = '';\n var result = '0';\n var e, z, j, k;\n\n // TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation\n if (fractDigits < 0 || fractDigits > 20) throw new $RangeError('Incorrect fraction digits');\n // eslint-disable-next-line no-self-compare -- NaN check\n if (number !== number) return 'NaN';\n if (number <= -1e21 || number >= 1e21) return $String(number);\n if (number < 0) {\n sign = '-';\n number = -number;\n }\n if (number > 1e-21) {\n e = log(number * pow(2, 69, 1)) - 69;\n z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1);\n z *= 0x10000000000000;\n e = 52 - e;\n if (e > 0) {\n multiply(data, 0, z);\n j = fractDigits;\n while (j >= 7) {\n multiply(data, 1e7, 0);\n j -= 7;\n }\n multiply(data, pow(10, j, 1), 0);\n j = e - 1;\n while (j >= 23) {\n divide(data, 1 << 23);\n j -= 23;\n }\n divide(data, 1 << j);\n multiply(data, 1, 1);\n divide(data, 2);\n result = dataToString(data);\n } else {\n multiply(data, 0, z);\n multiply(data, 1 << -e, 0);\n result = dataToString(data) + repeat('0', fractDigits);\n }\n }\n if (fractDigits > 0) {\n k = result.length;\n result = sign + (k <= fractDigits\n ? '0.' + repeat('0', fractDigits - k) + result\n : stringSlice(result, 0, k - fractDigits) + '.' + stringSlice(result, k - fractDigits));\n } else {\n result = sign + result;\n } return result;\n }\n});\n","\nimport { on, off } from 'element-ui/src/utils/dom';\nimport { rafThrottle, isFirefox } from 'element-ui/src/utils/util';\nimport { PopupManager } from 'element-ui/src/utils/popup';\n\nconst Mode = {\n CONTAIN: {\n name: 'contain',\n icon: 'el-icon-full-screen'\n },\n ORIGINAL: {\n name: 'original',\n icon: 'el-icon-c-scale-to-original'\n }\n};\n\nconst mousewheelEventName = isFirefox() ? 'DOMMouseScroll' : 'mousewheel';\n\nexport default {\n name: 'elImageViewer',\n\n props: {\n urlList: {\n type: Array,\n default: () => []\n },\n zIndex: {\n type: Number,\n default: 2000\n },\n onSwitch: {\n type: Function,\n default: () => {}\n },\n onClose: {\n type: Function,\n default: () => {}\n },\n initialIndex: {\n type: Number,\n default: 0\n },\n appendToBody: {\n type: Boolean,\n default: true\n },\n maskClosable: {\n type: Boolean,\n default: true\n }\n },\n\n data() {\n return {\n index: this.initialIndex,\n isShow: false,\n infinite: true,\n loading: false,\n mode: Mode.CONTAIN,\n transform: {\n scale: 1,\n deg: 0,\n offsetX: 0,\n offsetY: 0,\n enableTransition: false\n }\n };\n },\n computed: {\n isSingle() {\n return this.urlList.length <= 1;\n },\n isFirst() {\n return this.index === 0;\n },\n isLast() {\n return this.index === this.urlList.length - 1;\n },\n currentImg() {\n return this.urlList[this.index];\n },\n imgStyle() {\n const { scale, deg, offsetX, offsetY, enableTransition } = this.transform;\n const style = {\n transform: `scale(${scale}) rotate(${deg}deg)`,\n transition: enableTransition ? 'transform .3s' : '',\n 'margin-left': `${offsetX}px`,\n 'margin-top': `${offsetY}px`\n };\n if (this.mode === Mode.CONTAIN) {\n style.maxWidth = style.maxHeight = '100%';\n }\n return style;\n },\n viewerZIndex() {\n const nextZIndex = PopupManager.nextZIndex();\n return this.zIndex > nextZIndex ? this.zIndex : nextZIndex;\n }\n },\n watch: {\n index: {\n handler: function(val) {\n this.reset();\n this.onSwitch(val);\n }\n },\n currentImg(val) {\n this.$nextTick(_ => {\n const $img = this.$refs.img[0];\n if (!$img.complete) {\n this.loading = true;\n }\n });\n }\n },\n methods: {\n hide() {\n this.deviceSupportUninstall();\n this.onClose();\n },\n deviceSupportInstall() {\n this._keyDownHandler = e => {\n e.stopPropagation();\n const keyCode = e.keyCode;\n switch (keyCode) {\n // ESC\n case 27:\n this.hide();\n break;\n // SPACE\n case 32:\n this.toggleMode();\n break;\n // LEFT_ARROW\n case 37:\n this.prev();\n break;\n // UP_ARROW\n case 38:\n this.handleActions('zoomIn');\n break;\n // RIGHT_ARROW\n case 39:\n this.next();\n break;\n // DOWN_ARROW\n case 40:\n this.handleActions('zoomOut');\n break;\n }\n };\n this._mouseWheelHandler = rafThrottle(e => {\n const delta = e.wheelDelta ? e.wheelDelta : -e.detail;\n if (delta > 0) {\n this.handleActions('zoomIn', {\n zoomRate: 0.015,\n enableTransition: false\n });\n } else {\n this.handleActions('zoomOut', {\n zoomRate: 0.015,\n enableTransition: false\n });\n }\n });\n on(document, 'keydown', this._keyDownHandler);\n on(document, mousewheelEventName, this._mouseWheelHandler);\n },\n deviceSupportUninstall() {\n off(document, 'keydown', this._keyDownHandler);\n off(document, mousewheelEventName, this._mouseWheelHandler);\n this._keyDownHandler = null;\n this._mouseWheelHandler = null;\n },\n handleImgLoad(e) {\n this.loading = false;\n },\n handleImgError(e) {\n this.loading = false;\n e.target.alt = '加载失败';\n },\n handleMouseDown(e) {\n if (this.loading || e.button !== 0) return;\n\n const { offsetX, offsetY } = this.transform;\n const startX = e.pageX;\n const startY = e.pageY;\n this._dragHandler = rafThrottle(ev => {\n this.transform.offsetX = offsetX + ev.pageX - startX;\n this.transform.offsetY = offsetY + ev.pageY - startY;\n });\n on(document, 'mousemove', this._dragHandler);\n on(document, 'mouseup', ev => {\n off(document, 'mousemove', this._dragHandler);\n });\n\n e.preventDefault();\n },\n handleMaskClick() {\n if (this.maskClosable) {\n this.hide();\n }\n },\n reset() {\n this.transform = {\n scale: 1,\n deg: 0,\n offsetX: 0,\n offsetY: 0,\n enableTransition: false\n };\n },\n toggleMode() {\n if (this.loading) return;\n\n const modeNames = Object.keys(Mode);\n const modeValues = Object.values(Mode);\n const index = modeValues.indexOf(this.mode);\n const nextIndex = (index + 1) % modeNames.length;\n this.mode = Mode[modeNames[nextIndex]];\n this.reset();\n },\n prev() {\n if (this.isFirst && !this.infinite) return;\n const len = this.urlList.length;\n this.index = (this.index - 1 + len) % len;\n },\n next() {\n if (this.isLast && !this.infinite) return;\n const len = this.urlList.length;\n this.index = (this.index + 1) % len;\n },\n handleActions(action, options = {}) {\n if (this.loading) return;\n const { zoomRate, rotateDeg, enableTransition } = {\n zoomRate: 0.2,\n rotateDeg: 90,\n enableTransition: true,\n ...options\n };\n const { transform } = this;\n switch (action) {\n case 'zoomOut':\n if (transform.scale > 0.2) {\n transform.scale = parseFloat((transform.scale - zoomRate).toFixed(3));\n }\n break;\n case 'zoomIn':\n transform.scale = parseFloat((transform.scale + zoomRate).toFixed(3));\n break;\n case 'clocelise':\n transform.deg += rotateDeg;\n break;\n case 'anticlocelise':\n transform.deg -= rotateDeg;\n break;\n }\n transform.enableTransition = enableTransition;\n }\n },\n mounted() {\n this.deviceSupportInstall();\n if (this.appendToBody) {\n document.body.appendChild(this.$el);\n }\n // add tabindex then wrapper can be focusable via Javascript\n // focus wrapper so arrow key can't cause inner scroll behavior underneath\n this.$refs['el-image-viewer__wrapper'].focus();\n },\n destroyed() {\n // if appendToBody is true, remove DOM node after destroy\n if (this.appendToBody && this.$el && this.$el.parentNode) {\n this.$el.parentNode.removeChild(this.$el);\n }\n }\n};\n","import Vue from 'vue';\nimport { addClass, removeClass } from 'element-ui/src/utils/dom';\n\nlet hasModal = false;\nlet hasInitZIndex = false;\nlet zIndex;\n\nconst getModal = function() {\n if (Vue.prototype.$isServer) return;\n let modalDom = PopupManager.modalDom;\n if (modalDom) {\n hasModal = true;\n } else {\n hasModal = false;\n modalDom = document.createElement('div');\n PopupManager.modalDom = modalDom;\n\n modalDom.addEventListener('touchmove', function(event) {\n event.preventDefault();\n event.stopPropagation();\n });\n\n modalDom.addEventListener('click', function() {\n PopupManager.doOnModalClick && PopupManager.doOnModalClick();\n });\n }\n\n return modalDom;\n};\n\nconst instances = {};\n\nconst PopupManager = {\n modalFade: true,\n\n getInstance: function(id) {\n return instances[id];\n },\n\n register: function(id, instance) {\n if (id && instance) {\n instances[id] = instance;\n }\n },\n\n deregister: function(id) {\n if (id) {\n instances[id] = null;\n delete instances[id];\n }\n },\n\n nextZIndex: function() {\n return PopupManager.zIndex++;\n },\n\n modalStack: [],\n\n doOnModalClick: function() {\n const topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];\n if (!topItem) return;\n\n const instance = PopupManager.getInstance(topItem.id);\n if (instance && instance.closeOnClickModal) {\n instance.close();\n }\n },\n\n openModal: function(id, zIndex, dom, modalClass, modalFade) {\n if (Vue.prototype.$isServer) return;\n if (!id || zIndex === undefined) return;\n this.modalFade = modalFade;\n\n const modalStack = this.modalStack;\n\n for (let i = 0, j = modalStack.length; i < j; i++) {\n const item = modalStack[i];\n if (item.id === id) {\n return;\n }\n }\n\n const modalDom = getModal();\n\n addClass(modalDom, 'v-modal');\n if (this.modalFade && !hasModal) {\n addClass(modalDom, 'v-modal-enter');\n }\n if (modalClass) {\n let classArr = modalClass.trim().split(/\\s+/);\n classArr.forEach(item => addClass(modalDom, item));\n }\n setTimeout(() => {\n removeClass(modalDom, 'v-modal-enter');\n }, 200);\n\n if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {\n dom.parentNode.appendChild(modalDom);\n } else {\n document.body.appendChild(modalDom);\n }\n\n if (zIndex) {\n modalDom.style.zIndex = zIndex;\n }\n modalDom.tabIndex = 0;\n modalDom.style.display = '';\n\n this.modalStack.push({ id: id, zIndex: zIndex, modalClass: modalClass });\n },\n\n closeModal: function(id) {\n const modalStack = this.modalStack;\n const modalDom = getModal();\n\n if (modalStack.length > 0) {\n const topItem = modalStack[modalStack.length - 1];\n if (topItem.id === id) {\n if (topItem.modalClass) {\n let classArr = topItem.modalClass.trim().split(/\\s+/);\n classArr.forEach(item => removeClass(modalDom, item));\n }\n\n modalStack.pop();\n if (modalStack.length > 0) {\n modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;\n }\n } else {\n for (let i = modalStack.length - 1; i >= 0; i--) {\n if (modalStack[i].id === id) {\n modalStack.splice(i, 1);\n break;\n }\n }\n }\n }\n\n if (modalStack.length === 0) {\n if (this.modalFade) {\n addClass(modalDom, 'v-modal-leave');\n }\n setTimeout(() => {\n if (modalStack.length === 0) {\n if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);\n modalDom.style.display = 'none';\n PopupManager.modalDom = undefined;\n }\n removeClass(modalDom, 'v-modal-leave');\n }, 200);\n }\n }\n};\n\nObject.defineProperty(PopupManager, 'zIndex', {\n configurable: true,\n get() {\n if (!hasInitZIndex) {\n zIndex = zIndex || (Vue.prototype.$ELEMENT || {}).zIndex || 2000;\n hasInitZIndex = true;\n }\n return zIndex;\n },\n set(value) {\n zIndex = value;\n }\n});\n\nconst getTopPopup = function() {\n if (Vue.prototype.$isServer) return;\n if (PopupManager.modalStack.length > 0) {\n const topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];\n if (!topPopup) return;\n const instance = PopupManager.getInstance(topPopup.id);\n\n return instance;\n }\n};\n\nif (!Vue.prototype.$isServer) {\n // handle `esc` key when the popup is shown\n window.addEventListener('keydown', function(event) {\n if (event.keyCode === 27) {\n const topPopup = getTopPopup();\n\n if (topPopup && topPopup.closeOnPressEscape) {\n topPopup.handleClose\n ? topPopup.handleClose()\n : (topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close());\n }\n }\n });\n}\n\nexport default PopupManager;\n","import Vue from 'vue';\nimport merge from 'element-ui/src/utils/merge';\nimport PopupManager from 'element-ui/src/utils/popup/popup-manager';\nimport getScrollBarWidth from '../scrollbar-width';\nimport { getStyle, addClass, removeClass, hasClass } from '../dom';\n\nlet idSeed = 1;\n\nlet scrollBarWidth;\n\nexport default {\n props: {\n visible: {\n type: Boolean,\n default: false\n },\n openDelay: {},\n closeDelay: {},\n zIndex: {},\n modal: {\n type: Boolean,\n default: false\n },\n modalFade: {\n type: Boolean,\n default: true\n },\n modalClass: {},\n modalAppendToBody: {\n type: Boolean,\n default: false\n },\n lockScroll: {\n type: Boolean,\n default: true\n },\n closeOnPressEscape: {\n type: Boolean,\n default: false\n },\n closeOnClickModal: {\n type: Boolean,\n default: false\n }\n },\n\n beforeMount() {\n this._popupId = 'popup-' + idSeed++;\n PopupManager.register(this._popupId, this);\n },\n\n beforeDestroy() {\n PopupManager.deregister(this._popupId);\n PopupManager.closeModal(this._popupId);\n\n this.restoreBodyStyle();\n },\n\n data() {\n return {\n opened: false,\n bodyPaddingRight: null,\n computedBodyPaddingRight: 0,\n withoutHiddenClass: true,\n rendered: false\n };\n },\n\n watch: {\n visible(val) {\n if (val) {\n if (this._opening) return;\n if (!this.rendered) {\n this.rendered = true;\n Vue.nextTick(() => {\n this.open();\n });\n } else {\n this.open();\n }\n } else {\n this.close();\n }\n }\n },\n\n methods: {\n open(options) {\n if (!this.rendered) {\n this.rendered = true;\n }\n\n const props = merge({}, this.$props || this, options);\n\n if (this._closeTimer) {\n clearTimeout(this._closeTimer);\n this._closeTimer = null;\n }\n clearTimeout(this._openTimer);\n\n const openDelay = Number(props.openDelay);\n if (openDelay > 0) {\n this._openTimer = setTimeout(() => {\n this._openTimer = null;\n this.doOpen(props);\n }, openDelay);\n } else {\n this.doOpen(props);\n }\n },\n\n doOpen(props) {\n if (this.$isServer) return;\n if (this.willOpen && !this.willOpen()) return;\n if (this.opened) return;\n\n this._opening = true;\n\n const dom = this.$el;\n\n const modal = props.modal;\n\n const zIndex = props.zIndex;\n if (zIndex) {\n PopupManager.zIndex = zIndex;\n }\n\n if (modal) {\n if (this._closing) {\n PopupManager.closeModal(this._popupId);\n this._closing = false;\n }\n PopupManager.openModal(this._popupId, PopupManager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);\n if (props.lockScroll) {\n this.withoutHiddenClass = !hasClass(document.body, 'el-popup-parent--hidden');\n if (this.withoutHiddenClass) {\n this.bodyPaddingRight = document.body.style.paddingRight;\n this.computedBodyPaddingRight = parseInt(getStyle(document.body, 'paddingRight'), 10);\n }\n scrollBarWidth = getScrollBarWidth();\n let bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;\n let bodyOverflowY = getStyle(document.body, 'overflowY');\n if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {\n document.body.style.paddingRight = this.computedBodyPaddingRight + scrollBarWidth + 'px';\n }\n addClass(document.body, 'el-popup-parent--hidden');\n }\n }\n\n if (getComputedStyle(dom).position === 'static') {\n dom.style.position = 'absolute';\n }\n\n dom.style.zIndex = PopupManager.nextZIndex();\n this.opened = true;\n\n this.onOpen && this.onOpen();\n\n this.doAfterOpen();\n },\n\n doAfterOpen() {\n this._opening = false;\n },\n\n close() {\n if (this.willClose && !this.willClose()) return;\n\n if (this._openTimer !== null) {\n clearTimeout(this._openTimer);\n this._openTimer = null;\n }\n clearTimeout(this._closeTimer);\n\n const closeDelay = Number(this.closeDelay);\n\n if (closeDelay > 0) {\n this._closeTimer = setTimeout(() => {\n this._closeTimer = null;\n this.doClose();\n }, closeDelay);\n } else {\n this.doClose();\n }\n },\n\n doClose() {\n this._closing = true;\n\n this.onClose && this.onClose();\n\n if (this.lockScroll) {\n setTimeout(this.restoreBodyStyle, 200);\n }\n\n this.opened = false;\n\n this.doAfterClose();\n },\n\n doAfterClose() {\n PopupManager.closeModal(this._popupId);\n this._closing = false;\n },\n\n restoreBodyStyle() {\n if (this.modal && this.withoutHiddenClass) {\n document.body.style.paddingRight = this.bodyPaddingRight;\n removeClass(document.body, 'el-popup-parent--hidden');\n }\n this.withoutHiddenClass = true;\n }\n }\n};\n\nexport {\n PopupManager\n};\n","import mod from \"-!../../../../babel-loader/lib/index.js??ref--2-0!../../../../@nuxt/components/dist/loader.js??ref--0-0!../../../../vue-loader/lib/index.js??vue-loader-options!./image-viewer.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../babel-loader/lib/index.js??ref--2-0!../../../../@nuxt/components/dist/loader.js??ref--0-0!../../../../vue-loader/lib/index.js??vue-loader-options!./image-viewer.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./image-viewer.vue?vue&type=template&id=44a7b0fb\"\nimport script from \"./image-viewer.vue?vue&type=script&lang=js\"\nexport * from \"./image-viewer.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","/* istanbul ignore next */\n\nimport Vue from 'vue';\n\nconst isServer = Vue.prototype.$isServer;\nconst SPECIAL_CHARS_REGEXP = /([\\:\\-\\_]+(.))/g;\nconst MOZ_HACK_REGEXP = /^moz([A-Z])/;\nconst ieVersion = isServer ? 0 : Number(document.documentMode);\n\n/* istanbul ignore next */\nconst trim = function(string) {\n return (string || '').replace(/^[\\s\\uFEFF]+|[\\s\\uFEFF]+$/g, '');\n};\n/* istanbul ignore next */\nconst camelCase = function(name) {\n return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {\n return offset ? letter.toUpperCase() : letter;\n }).replace(MOZ_HACK_REGEXP, 'Moz$1');\n};\n\n/* istanbul ignore next */\nexport const on = (function() {\n if (!isServer && document.addEventListener) {\n return function(element, event, handler) {\n if (element && event && handler) {\n element.addEventListener(event, handler, false);\n }\n };\n } else {\n return function(element, event, handler) {\n if (element && event && handler) {\n element.attachEvent('on' + event, handler);\n }\n };\n }\n})();\n\n/* istanbul ignore next */\nexport const off = (function() {\n if (!isServer && document.removeEventListener) {\n return function(element, event, handler) {\n if (element && event) {\n element.removeEventListener(event, handler, false);\n }\n };\n } else {\n return function(element, event, handler) {\n if (element && event) {\n element.detachEvent('on' + event, handler);\n }\n };\n }\n})();\n\n/* istanbul ignore next */\nexport const once = function(el, event, fn) {\n var listener = function() {\n if (fn) {\n fn.apply(this, arguments);\n }\n off(el, event, listener);\n };\n on(el, event, listener);\n};\n\n/* istanbul ignore next */\nexport function hasClass(el, cls) {\n if (!el || !cls) return false;\n if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');\n if (el.classList) {\n return el.classList.contains(cls);\n } else {\n return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;\n }\n};\n\n/* istanbul ignore next */\nexport function addClass(el, cls) {\n if (!el) return;\n var curClass = el.className;\n var classes = (cls || '').split(' ');\n\n for (var i = 0, j = classes.length; i < j; i++) {\n var clsName = classes[i];\n if (!clsName) continue;\n\n if (el.classList) {\n el.classList.add(clsName);\n } else if (!hasClass(el, clsName)) {\n curClass += ' ' + clsName;\n }\n }\n if (!el.classList) {\n el.setAttribute('class', curClass);\n }\n};\n\n/* istanbul ignore next */\nexport function removeClass(el, cls) {\n if (!el || !cls) return;\n var classes = cls.split(' ');\n var curClass = ' ' + el.className + ' ';\n\n for (var i = 0, j = classes.length; i < j; i++) {\n var clsName = classes[i];\n if (!clsName) continue;\n\n if (el.classList) {\n el.classList.remove(clsName);\n } else if (hasClass(el, clsName)) {\n curClass = curClass.replace(' ' + clsName + ' ', ' ');\n }\n }\n if (!el.classList) {\n el.setAttribute('class', trim(curClass));\n }\n};\n\n/* istanbul ignore next */\nexport const getStyle = ieVersion < 9 ? function(element, styleName) {\n if (isServer) return;\n if (!element || !styleName) return null;\n styleName = camelCase(styleName);\n if (styleName === 'float') {\n styleName = 'styleFloat';\n }\n try {\n switch (styleName) {\n case 'opacity':\n try {\n return element.filters.item('alpha').opacity / 100;\n } catch (e) {\n return 1.0;\n }\n default:\n return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null);\n }\n } catch (e) {\n return element.style[styleName];\n }\n} : function(element, styleName) {\n if (isServer) return;\n if (!element || !styleName) return null;\n styleName = camelCase(styleName);\n if (styleName === 'float') {\n styleName = 'cssFloat';\n }\n try {\n var computed = document.defaultView.getComputedStyle(element, '');\n return element.style[styleName] || computed ? computed[styleName] : null;\n } catch (e) {\n return element.style[styleName];\n }\n};\n\n/* istanbul ignore next */\nexport function setStyle(element, styleName, value) {\n if (!element || !styleName) return;\n\n if (typeof styleName === 'object') {\n for (var prop in styleName) {\n if (styleName.hasOwnProperty(prop)) {\n setStyle(element, prop, styleName[prop]);\n }\n }\n } else {\n styleName = camelCase(styleName);\n if (styleName === 'opacity' && ieVersion < 9) {\n element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';\n } else {\n element.style[styleName] = value;\n }\n }\n};\n\nexport const isScroll = (el, vertical) => {\n if (isServer) return;\n\n const determinedDirection = vertical !== null && vertical !== undefined;\n const overflow = determinedDirection\n ? vertical\n ? getStyle(el, 'overflow-y')\n : getStyle(el, 'overflow-x')\n : getStyle(el, 'overflow');\n\n return overflow.match(/(scroll|auto|overlay)/);\n};\n\nexport const getScrollContainer = (el, vertical) => {\n if (isServer) return;\n\n let parent = el;\n while (parent) {\n if ([window, document, document.documentElement].includes(parent)) {\n return window;\n }\n if (isScroll(parent, vertical)) {\n return parent;\n }\n parent = parent.parentNode;\n }\n\n return parent;\n};\n\nexport const isInContainer = (el, container) => {\n if (isServer || !el || !container) return false;\n\n const elRect = el.getBoundingClientRect();\n let containerRect;\n\n if ([window, document, document.documentElement, null, undefined].includes(container)) {\n containerRect = {\n top: 0,\n right: window.innerWidth,\n bottom: window.innerHeight,\n left: 0\n };\n } else {\n containerRect = container.getBoundingClientRect();\n }\n\n return elRect.top < containerRect.bottom &&\n elRect.bottom > containerRect.top &&\n elRect.right > containerRect.left &&\n elRect.left < containerRect.right;\n};\n","import Vue from 'vue';\n\nexport function isString(obj) {\n return Object.prototype.toString.call(obj) === '[object String]';\n}\n\nexport function isObject(obj) {\n return Object.prototype.toString.call(obj) === '[object Object]';\n}\n\nexport function isHtmlElement(node) {\n return node && node.nodeType === Node.ELEMENT_NODE;\n}\n\n/**\n * - Inspired:\n * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js\n */\nlet isFunction = (functionToCheck) => {\n var getType = {};\n return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';\n};\n\nif (typeof /./ !== 'function' && typeof Int8Array !== 'object' && (Vue.prototype.$isServer || typeof document.childNodes !== 'function')) {\n isFunction = function(obj) {\n return typeof obj === 'function' || false;\n };\n}\n\nexport {\n isFunction\n};\n\nexport const isUndefined = (val)=> {\n return val === void 0;\n};\n\nexport const isDefined = (val) => {\n return val !== undefined && val !== null;\n};\n","import Vue from 'vue';\nimport { isString, isObject } from 'element-ui/src/utils/types';\n\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\n\nexport function noop() {};\n\nexport function hasOwn(obj, key) {\n return hasOwnProperty.call(obj, key);\n};\n\nfunction extend(to, _from) {\n for (let key in _from) {\n to[key] = _from[key];\n }\n return to;\n};\n\nexport function toObject(arr) {\n var res = {};\n for (let i = 0; i < arr.length; i++) {\n if (arr[i]) {\n extend(res, arr[i]);\n }\n }\n return res;\n};\n\nexport const getValueByPath = function(object, prop) {\n prop = prop || '';\n const paths = prop.split('.');\n let current = object;\n let result = null;\n for (let i = 0, j = paths.length; i < j; i++) {\n const path = paths[i];\n if (!current) break;\n\n if (i === j - 1) {\n result = current[path];\n break;\n }\n current = current[path];\n }\n return result;\n};\n\nexport function getPropByPath(obj, path, strict) {\n let tempObj = obj;\n path = path.replace(/\\[(\\w+)\\]/g, '.$1');\n path = path.replace(/^\\./, '');\n\n let keyArr = path.split('.');\n let i = 0;\n for (let len = keyArr.length; i < len - 1; ++i) {\n if (!tempObj && !strict) break;\n let key = keyArr[i];\n if (key in tempObj) {\n tempObj = tempObj[key];\n } else {\n if (strict) {\n throw new Error('please transfer a valid prop path to form item!');\n }\n break;\n }\n }\n return {\n o: tempObj,\n k: keyArr[i],\n v: tempObj ? tempObj[keyArr[i]] : null\n };\n};\n\nexport const generateId = function() {\n return Math.floor(Math.random() * 10000);\n};\n\nexport const valueEquals = (a, b) => {\n // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript\n if (a === b) return true;\n if (!(a instanceof Array)) return false;\n if (!(b instanceof Array)) return false;\n if (a.length !== b.length) return false;\n for (let i = 0; i !== a.length; ++i) {\n if (a[i] !== b[i]) return false;\n }\n return true;\n};\n\nexport const escapeRegexpString = (value = '') => String(value).replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&');\n\n// TODO: use native Array.find, Array.findIndex when IE support is dropped\nexport const arrayFindIndex = function(arr, pred) {\n for (let i = 0; i !== arr.length; ++i) {\n if (pred(arr[i])) {\n return i;\n }\n }\n return -1;\n};\n\nexport const arrayFind = function(arr, pred) {\n const idx = arrayFindIndex(arr, pred);\n return idx !== -1 ? arr[idx] : undefined;\n};\n\n// coerce truthy value to array\nexport const coerceTruthyValueToArray = function(val) {\n if (Array.isArray(val)) {\n return val;\n } else if (val) {\n return [val];\n } else {\n return [];\n }\n};\n\nexport const isIE = function() {\n return !Vue.prototype.$isServer && !isNaN(Number(document.documentMode));\n};\n\nexport const isEdge = function() {\n return !Vue.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;\n};\n\nexport const isFirefox = function() {\n return !Vue.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);\n};\n\nexport const autoprefixer = function(style) {\n if (typeof style !== 'object') return style;\n const rules = ['transform', 'transition', 'animation'];\n const prefixes = ['ms-', 'webkit-'];\n rules.forEach(rule => {\n const value = style[rule];\n if (rule && value) {\n prefixes.forEach(prefix => {\n style[prefix + rule] = value;\n });\n }\n });\n return style;\n};\n\nexport const kebabCase = function(str) {\n const hyphenateRE = /([^-])([A-Z])/g;\n return str\n .replace(hyphenateRE, '$1-$2')\n .replace(hyphenateRE, '$1-$2')\n .toLowerCase();\n};\n\nexport const capitalize = function(str) {\n if (!isString(str)) return str;\n return str.charAt(0).toUpperCase() + str.slice(1);\n};\n\nexport const looseEqual = function(a, b) {\n const isObjectA = isObject(a);\n const isObjectB = isObject(b);\n if (isObjectA && isObjectB) {\n return JSON.stringify(a) === JSON.stringify(b);\n } else if (!isObjectA && !isObjectB) {\n return String(a) === String(b);\n } else {\n return false;\n }\n};\n\nexport const arrayEquals = function(arrayA, arrayB) {\n arrayA = arrayA || [];\n arrayB = arrayB || [];\n\n if (arrayA.length !== arrayB.length) {\n return false;\n }\n\n for (let i = 0; i < arrayA.length; i++) {\n if (!looseEqual(arrayA[i], arrayB[i])) {\n return false;\n }\n }\n\n return true;\n};\n\nexport const isEqual = function(value1, value2) {\n if (Array.isArray(value1) && Array.isArray(value2)) {\n return arrayEquals(value1, value2);\n }\n return looseEqual(value1, value2);\n};\n\nexport const isEmpty = function(val) {\n // null or undefined\n if (val == null) return true;\n\n if (typeof val === 'boolean') return false;\n\n if (typeof val === 'number') return !val;\n\n if (val instanceof Error) return val.message === '';\n\n switch (Object.prototype.toString.call(val)) {\n // String or Array\n case '[object String]':\n case '[object Array]':\n return !val.length;\n\n // Map or Set or File\n case '[object File]':\n case '[object Map]':\n case '[object Set]': {\n return !val.size;\n }\n // Plain Object\n case '[object Object]': {\n return !Object.keys(val).length;\n }\n }\n\n return false;\n};\n\nexport function rafThrottle(fn) {\n let locked = false;\n return function(...args) {\n if (locked) return;\n locked = true;\n window.requestAnimationFrame(_ => {\n fn.apply(this, args);\n locked = false;\n });\n };\n}\n\nexport function objToArray(obj) {\n if (Array.isArray(obj)) {\n return obj;\n }\n return isEmpty(obj) ? [] : [obj];\n}\n\nexport const isMac = function() {\n return !Vue.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);\n};\n","export default function(target) {\n for (let i = 1, j = arguments.length; i < j; i++) {\n let source = arguments[i] || {};\n for (let prop in source) {\n if (source.hasOwnProperty(prop)) {\n let value = source[prop];\n if (value !== undefined) {\n target[prop] = value;\n }\n }\n }\n }\n\n return target;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n"],"sourceRoot":""}
|