From 0fcb1511f6ec90696780762d6c1ca4258d612a92 Mon Sep 17 00:00:00 2001 From: XiongAmao <onycat@live.cn> Date: Fri, 22 Nov 2019 23:01:06 +0800 Subject: [PATCH] build: build 0.8.1 & release npm package --- CHANGELOG.md | 3 +++ dist/vue-easy-lightbox.common.min.js | 2 +- dist/vue-easy-lightbox.es5.common.min.js | 2 +- dist/vue-easy-lightbox.es5.esm.min.js | 2 +- dist/vue-easy-lightbox.es5.umd.min.js | 2 +- dist/vue-easy-lightbox.esm.min.js | 2 +- dist/vue-easy-lightbox.umd.min.js | 2 +- package.json | 2 +- 8 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9f0dc2..d74cc5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## [0.8.1] +- Fix images does not load if they are the same url. [#26](https://github.com/XiongAmao/vue-easy-lightbox/issues/26) + ## [0.8.0] - Add loading & onerror placeholders. diff --git a/dist/vue-easy-lightbox.common.min.js b/dist/vue-easy-lightbox.common.min.js index 1c534ce..3afdf98 100644 --- a/dist/vue-easy-lightbox.common.min.js +++ b/dist/vue-easy-lightbox.common.min.js @@ -1 +1 @@ -"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var Vue=_interopDefault(require("vue")),extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function __extends(e,t){function o(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}function __decorate(e,t,o,n){var r,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(i=(a<3?r(i):a>3?r(t,o,i):r(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}var reflectionIsSupported="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function copyReflectionMetadata(e,t){forwardMetadata(e,t),Object.getOwnPropertyNames(t.prototype).forEach(function(o){forwardMetadata(e.prototype,t.prototype,o)}),Object.getOwnPropertyNames(t).forEach(function(o){forwardMetadata(e,t,o)})}function forwardMetadata(e,t,o){(o?Reflect.getOwnMetadataKeys(t,o):Reflect.getOwnMetadataKeys(t)).forEach(function(n){var r=o?Reflect.getOwnMetadata(n,t,o):Reflect.getOwnMetadata(n,t);o?Reflect.defineMetadata(n,r,e,o):Reflect.defineMetadata(n,r,e)})}var fakeArray={__proto__:[]},hasProto=fakeArray instanceof Array;function createDecorator(e){return function(t,o,n){var r="function"==typeof t?t:t.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof n&&(n=void 0),r.__decorators__.push(function(t){return e(t,o,n)})}}function isPrimitive(e){var t=typeof e;return null==e||"object"!==t&&"function"!==t}function collectDataFromConstructor(e,t){var o=t.prototype._init;t.prototype._init=function(){var t=this,o=Object.getOwnPropertyNames(e);if(e.$options.props)for(var n in e.$options.props)e.hasOwnProperty(n)||o.push(n);o.forEach(function(o){"_"!==o.charAt(0)&&Object.defineProperty(t,o,{get:function(){return e[o]},set:function(t){e[o]=t},configurable:!0})})};var n=new t;t.prototype._init=o;var r={};return Object.keys(n).forEach(function(e){void 0!==n[e]&&(r[e]=n[e])}),r}var $internalHooks=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function componentFactory(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var o=e.prototype;Object.getOwnPropertyNames(o).forEach(function(e){if("constructor"!==e)if($internalHooks.indexOf(e)>-1)t[e]=o[e];else{var n=Object.getOwnPropertyDescriptor(o,e);void 0!==n.value?"function"==typeof n.value?(t.methods||(t.methods={}))[e]=n.value:(t.mixins||(t.mixins=[])).push({data:function(){var t;return(t={})[e]=n.value,t}}):(n.get||n.set)&&((t.computed||(t.computed={}))[e]={get:n.get,set:n.set})}}),(t.mixins||(t.mixins=[])).push({data:function(){return collectDataFromConstructor(this,e)}});var n=e.__decorators__;n&&(n.forEach(function(e){return e(t)}),delete e.__decorators__);var r=Object.getPrototypeOf(e.prototype),a=r instanceof Vue?r.constructor:Vue,i=a.extend(t);return forwardStaticMembers(i,e,a),reflectionIsSupported&©ReflectionMetadata(i,e),i}var shouldIgnore={prototype:!0,arguments:!0,callee:!0,caller:!0};function forwardStaticMembers(e,t,o){Object.getOwnPropertyNames(t).forEach(function(n){if(!shouldIgnore[n]){var r=Object.getOwnPropertyDescriptor(e,n);if(!r||r.configurable){var a=Object.getOwnPropertyDescriptor(t,n);if(!hasProto){if("cid"===n)return;var i=Object.getOwnPropertyDescriptor(o,n);if(!isPrimitive(a.value)&&i&&i.value===a.value)return}Object.defineProperty(e,n,a)}}})}function Component(e){return"function"==typeof e?componentFactory(e):function(t){return componentFactory(t,e)}}Component.registerHooks=function(e){$internalHooks.push.apply($internalHooks,e)};var reflectMetadataIsSupported="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function applyMetadata(e,t,o){reflectMetadataIsSupported&&(Array.isArray(e)||"function"==typeof e||void 0!==e.type||(e.type=Reflect.getMetadata("design:type",t,o)))}function Prop(e){return void 0===e&&(e={}),function(t,o){applyMetadata(e,t,o),createDecorator(function(t,o){(t.props||(t.props={}))[o]=e})(t,o)}}function Watch(e,t){void 0===t&&(t={});var o=t.deep,n=void 0!==o&&o,r=t.immediate,a=void 0!==r&&r;return createDecorator(function(t,o){"object"!=typeof t.watch&&(t.watch=Object.create(null));var r=t.watch;"object"!=typeof r[e]||Array.isArray(r[e])?void 0===r[e]&&(r[e]=[]):r[e]=[r[e]],r[e].push({handler:o,deep:n,immediate:a})})}!function(e){var t,o='<svg><symbol id="icon-prev" viewBox="0 0 1024 1024"><path d="M784.652701 955.6957 346.601985 517.644983c-2.822492-2.822492-2.822492-7.902977 0-11.289967l439.179713-439.179713c6.77398-6.77398 10.725469-16.370452 10.725469-25.966924L796.507166 36.692393c0-20.32194-16.370452-36.692393-36.692393-36.692393l-4.515987 0c-9.596472 0-19.192944 3.951488-25.966924 10.725469L250.072767 489.420066c-12.418964 12.418964-12.418964 32.740904 0 45.159868l477.565601 477.565601c7.338479 7.338479 17.499449 11.854465 28.224917 11.854465l0 0c22.015436 0 40.079383-18.063947 40.079383-40.079383l0 0C796.507166 973.759647 791.99118 963.598677 784.652701 955.6957z" ></path></symbol><symbol id="icon-next" viewBox="0 0 1024 1024"><path d="M246.121279 955.6957l438.050717-438.050717c2.822492-2.822492 2.822492-7.902977 0-11.289967L244.992282 67.175303c-6.77398-6.77398-10.725469-16.370452-10.725469-25.966924L234.266814 36.692393C234.266814 16.370452 250.637266 0 270.959206 0l4.515987 0c9.596472 0 19.192944 3.951488 25.966924 10.725469l478.694598 478.694598c12.418964 12.418964 12.418964 32.740904 0 45.159868l-477.565601 477.565601c-7.338479 7.338479-17.499449 11.854465-28.224917 11.854465l0 0c-22.015436 0-40.079383-18.063947-40.079383-40.079383l0 0C234.266814 973.759647 238.7828 963.598677 246.121279 955.6957z" ></path></symbol><symbol id="icon-zoomin" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path><path d="M367.488 238.144h127.104v390.72H367.488z" ></path></symbol><symbol id="icon-rotate" viewBox="0 0 1024 1024"><path d="M288 352v192h128v64h-128v64h192v-320h-192z m128 128h-64v-64h64v64zM544 352v320h192v-320h-192z m128 256h-64v-192h64v192zM957.44 531.84h1.344v-1.92l-1.344 1.92z" ></path><path d="M46.72 474.88l35.84 55.04 1.28 1.92 35.84 55.04 60.16-119.04-32 1.92C168.96 277.76 331.52 128 529.28 128c211.904 0 384 172.16 384 384s-172.096 384-384 384c-140.16 0-263.04-75.52-329.6-188.16h-1.92l-0.64 0.64-53.12 31.36A446.592 446.592 0 0 0 529.28 960c247.744 0 448-200.32 448-448s-200.256-448-448-448C294.4 64 102.4 243.84 83.2 472.96l-36.48 1.92z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M570.24 512l259.2 259.2-58.88 58.24L512 570.24l-261.12 261.12-58.24-58.24L453.76 512 194.56 252.8l58.24-58.24L512 453.76l261.12-261.12 58.24 58.24z" ></path></symbol><symbol id="icon-zoomout" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path></symbol><symbol id="icon-img-broken" viewBox="0 0 1024 1024"><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m0 682.666667H213.333333v-195.413334l42.24 42.24 170.666667-170.666666 170.666667 170.666666 170.666666-170.24L810.666667 530.346667V810.666667z m0-401.493334l-43.093334-43.093333-170.666666 171.093333-170.666667-170.666666-170.666667 170.666666-42.24-42.666666V213.333333h597.333334v195.84z" ></path></symbol></svg>';if((t=document.getElementsByTagName("script"))[t.length-1].getAttribute("data-injectcss")&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(t){console&&console.log(t)}}!function(t){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(t,0);else{var o=function(){document.removeEventListener("DOMContentLoaded",o,!1),t()};document.addEventListener("DOMContentLoaded",o,!1)}else document.attachEvent&&(r=t,a=e.document,i=!1,(s=function(){try{a.documentElement.doScroll("left")}catch(e){return void setTimeout(s,50)}n()})(),a.onreadystatechange=function(){"complete"==a.readyState&&(a.onreadystatechange=null,n())});function n(){i||(i=!0,r())}var r,a,i,s}(function(){var e,t;(e=document.createElement("div")).innerHTML=o,o=null,(t=e.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",function(e,t){t.firstChild?function(e,t){t.parentNode.insertBefore(e,t)}(e,t.firstChild):t.appendChild(e)}(t,document.body))})}(window);var script=Vue.extend({props:{type:{type:String,default:""}},data:function(){return{prefixCls:"vel"}}});function normalizeComponent(e,t,o,n,r,a,i,s,c,l){"boolean"!=typeof i&&(c=s,s=i,i=!1);var d,_="function"==typeof o?o.options:o;if(e&&e.render&&(_.render=e.render,_.staticRenderFns=e.staticRenderFns,_._compiled=!0,r&&(_.functional=!0)),n&&(_._scopeId=n),a?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},_._ssrRegister=d):t&&(d=i?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),d)if(_.functional){var p=_.render;_.render=function(e,t){return d.call(t),p(e,t)}}else{var u=_.beforeCreate;_.beforeCreate=u?[].concat(u,d):[d]}return o}var HEAD,normalizeComponent_1=normalizeComponent,isOldIE="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function createInjector(e){return function(e,t){return addStyle(e,t)}}var styles={};function addStyle(e,t){var o=isOldIE?t.media||"default":e,n=styles[o]||(styles[o]={ids:new Set,styles:[]});if(!n.ids.has(e)){n.ids.add(e);var r=t.source;if(t.map&&(r+="\n/*# sourceURL="+t.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",t.media&&n.element.setAttribute("media",t.media),void 0===HEAD&&(HEAD=document.head||document.getElementsByTagName("head")[0]),HEAD.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(r),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{var a=n.ids.size-1,i=document.createTextNode(r),s=n.element.childNodes;s[a]&&n.element.removeChild(s[a]),s.length?n.element.insertBefore(i,s[a]):n.element.appendChild(i)}}}var browser=createInjector;const __vue_script__=script;var __vue_render__=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{class:this.prefixCls+"-icon icon",attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-"+this.type}})])},__vue_staticRenderFns__=[];const __vue_inject_styles__=function(e){e&&e("data-v-7221e0ec_0",{source:".vel-icon[data-v-7221e0ec]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}",map:void 0,media:void 0})},__vue_scope_id__="data-v-7221e0ec",__vue_module_identifier__=void 0,__vue_is_functional_template__=!1;var SvgIcon=normalizeComponent_1({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__,__vue_scope_id__,!1,void 0,browser,void 0),prefixCls="vel",voidFn=function(){},script$1=Vue.extend({components:{SvgIcon:SvgIcon},props:{zoomIn:{type:Function,default:voidFn},zoomOut:{type:Function,default:voidFn},rotate:{type:Function,default:voidFn}},data:function(){return{prefixCls:prefixCls}}});const __vue_script__$1=script$1;var __vue_render__$1=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-toolbar"},[t("div",{staticClass:"toobar-btn toolbar-btn__zoomin",on:{click:this.zoomIn}},[t("svg-icon",{attrs:{type:"zoomin"}})],1),this._v(" "),t("div",{staticClass:"toobar-btn toolbar-btn__zoomout",on:{click:this.zoomOut}},[t("svg-icon",{attrs:{type:"zoomout"}})],1),this._v(" "),t("div",{staticClass:"toobar-btn toolbar-btn__rotate",on:{click:this.rotate}},[t("svg-icon",{attrs:{type:"rotate"}})],1)])},__vue_staticRenderFns__$1=[];const __vue_inject_styles__$1=function(e){e&&e("data-v-36fa02a2_0",{source:".vel-toolbar[data-v-36fa02a2]{user-select:none;position:absolute;bottom:0;left:50%;transform:translate(-50%);background:rgba(45,45,44,.8);border-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;padding:6px 24px 0}.vel-toolbar .toobar-btn[data-v-36fa02a2]{cursor:pointer;display:inline-block;padding:2px 4px}.vel-toolbar .toobar-btn[data-v-36fa02a2]{font-size:32px;color:#fff}.vel-toolbar .toobar-btn[data-v-36fa02a2]:hover{color:#54b4ee}",map:void 0,media:void 0})},__vue_scope_id__$1="data-v-36fa02a2",__vue_module_identifier__$1=void 0,__vue_is_functional_template__$1=!1;var Toolbar=normalizeComponent_1({render:__vue_render__$1,staticRenderFns:__vue_staticRenderFns__$1},__vue_inject_styles__$1,__vue_script__$1,"data-v-36fa02a2",!1,void 0,browser,void 0),script$2=Vue.extend({data:function(){return{prefixCls:prefixCls}}});const __vue_script__$2=script$2;var __vue_render__$2=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-loading"},[t("div",{staticClass:"ring"})])},__vue_staticRenderFns__$2=[];const __vue_inject_styles__$2=function(e){e&&e("data-v-0cefeb9a_0",{source:'.vel-loading[data-v-0cefeb9a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-loading .ring[data-v-0cefeb9a]{display:inline-block;width:64px;height:64px}.vel-loading .ring[data-v-0cefeb9a]:after{content:" ";display:block;width:46px;height:46px;margin:1px;border-radius:50%;border:5px solid rgba(255,255,255,.7);border-color:rgba(255,255,255,.7) transparent rgba(255,255,255,.7) transparent;animation:ring-data-v-0cefeb9a 1.2s linear infinite}@keyframes ring-data-v-0cefeb9a{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',map:void 0,media:void 0})},__vue_scope_id__$2="data-v-0cefeb9a",__vue_module_identifier__$2=void 0,__vue_is_functional_template__$2=!1;var ImgLoading=normalizeComponent_1({render:__vue_render__$2,staticRenderFns:__vue_staticRenderFns__$2},__vue_inject_styles__$2,__vue_script__$2,"data-v-0cefeb9a",!1,void 0,browser,void 0),script$3=Vue.extend({components:{SvgIcon:SvgIcon},data:function(){return{prefixCls:prefixCls}}});const __vue_script__$3=script$3;var __vue_render__$3=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-on-error"},[t("svg-icon",{attrs:{clas:"icon",type:"img-broken"}})],1)},__vue_staticRenderFns__$3=[];const __vue_inject_styles__$3=function(e){e&&e("data-v-137806a2_0",{source:".vel-on-error[data-v-137806a2]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-on-error .icon[data-v-137806a2]{font-size:80px;color:#aaa}",map:void 0,media:void 0})},__vue_scope_id__$3="data-v-137806a2",__vue_module_identifier__$3=void 0,__vue_is_functional_template__$3=!1;var ImgOnError=normalizeComponent_1({render:__vue_render__$3,staticRenderFns:__vue_staticRenderFns__$3},__vue_inject_styles__$3,__vue_script__$3,"data-v-137806a2",!1,void 0,browser,void 0),isServer=Vue.prototype.$isServer,supportsPassive=!1;if(!isServer)try{var options={};Object.defineProperty(options,"passive",{get:function(){supportsPassive=!0}}),window.addEventListener("test-passive",function(){},options)}catch(e){}var on=function(e,t,o,n){void 0===n&&(n=!1),isServer||e.addEventListener(t,o,!!supportsPassive&&{capture:!1,passive:n})},off=function(e,t,o){isServer||e.removeEventListener(t,o)},VueEasyLightbox=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.prefixCls=prefixCls,t.scale=1,t.rotateDeg=0,t.imgIndex=0,t.top=0,t.left=0,t.lastX=0,t.lastY=0,t.isDraging=!1,t.loading=!1,t.loadError=!1,t}return __extends(t,e),Object.defineProperty(t.prototype,"imgList",{get:function(){return Array.isArray(this.imgs)?this.imgs:[this.imgs]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleImgSrc",{get:function(){return this.imgList[this.imgIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imgTotal",{get:function(){return this.imgList.length||0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imgWrapperStyle",{get:function(){var e=this,t=e.scale,o=e.top,n=e.left,r=(e.rotateDeg,e.moveDisabled),a=e.loadError;return{transform:"translate(-50%, -50%) scale("+t+")",top:"calc(50% + "+o+"px)",left:"calc(50% + "+n+"px)",cursor:r||a?"default":"move"}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imgStyle",{get:function(){return{transform:"rotate(-"+this.rotateDeg+"deg)"}},enumerable:!0,configurable:!0}),t.prototype.checkMouseEventPropButton=function(e){return!this.moveDisabled&&0===e},t.prototype.handleMouseDown=function(e){this.checkMouseEventPropButton(e.button)&&(this.lastX=e.clientX,this.lastY=e.clientY,this.isDraging=!0,e.stopPropagation())},t.prototype.handleMouseUp=function(e){this.checkMouseEventPropButton(e.button)&&(this.isDraging=!1,this.lastX=this.lastY=0)},t.prototype.handleMouseMove=function(e){this.checkMouseEventPropButton(e.button)&&(this.isDraging&&(this.top=this.top-this.lastY+e.clientY,this.left=this.left-this.lastX+e.clientX,this.lastX=e.clientX,this.lastY=e.clientY),e.stopPropagation())},t.prototype.escapePressHandler=function(e){"Escape"===e.key&&this.visible&&this.closeDialog()},t.prototype.handleImgLoad=function(e){this.loading=!1},t.prototype.handleImgError=function(e){this.loading=!1,this.loadError=!0,this.$emit("on-error",e)},t.prototype.zoomIn=function(){this.scale+=.25},t.prototype.zoomOut=function(){0!==this.scale&&(this.scale-=.25)},t.prototype.rotate=function(){this.rotateDeg+=90},t.prototype.onNextClick=function(){this.onIndexChange(this.imgIndex+1)},t.prototype.onPrevClick=function(){this.onIndexChange(this.imgIndex-1)},t.prototype.closeDialog=function(){this.$emit("hide")},t.prototype.reset=function(){this.scale=1,this.rotateDeg=0,this.top=0,this.left=0,this.isDraging=!1,this.loading=!0,this.loadError=!1},t.prototype.init=function(){this.imgIndex=this.index,this.reset()},t.prototype.onVisibleChanged=function(e){this.visible&&this.init()},t.prototype.onIndexChange=function(e){this.visible&&(e>this.imgList.length-1||e<0||(this.reset(),this.imgIndex=e))},t.prototype.mounted=function(){this.escDisabled||on(document,"keydown",this.escapePressHandler)},t.prototype.beforeDestroy=function(){this.escDisabled||off(document,"keydown",this.escapePressHandler)},__decorate([Prop({type:[Array,String],default:function(){return""}})],t.prototype,"imgs",void 0),__decorate([Prop({type:Boolean,default:!1})],t.prototype,"visible",void 0),__decorate([Prop({type:Number,default:0})],t.prototype,"index",void 0),__decorate([Prop({type:Boolean,default:!1})],t.prototype,"escDisabled",void 0),__decorate([Prop({type:Boolean,default:!1})],t.prototype,"moveDisabled",void 0),__decorate([Watch("visible",{immediate:!0})],t.prototype,"onVisibleChanged",null),__decorate([Watch("index")],t.prototype,"onIndexChange",null),t=__decorate([Component({name:"vue-easy-lightbox",components:{SvgIcon:SvgIcon,Toolbar:Toolbar,ImgLoading:ImgLoading,ImgOnError:ImgOnError}})],t)}(Vue);const __vue_script__$4=VueEasyLightbox;var __vue_render__$4=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("transition",{attrs:{name:e.prefixCls+"-fade"}},[e.visible?o("div",{class:[e.prefixCls+"-img-modal",e.prefixCls+"-modal"],on:{click:function(t){return t.target!==t.currentTarget?null:e.closeDialog(t)}}},[o("transition",{attrs:{name:e.prefixCls+"-fade",mode:"out-in"}},[e.loading?e._t("loading",[o("img-loading")]):e._e(),e._v(" "),e.loadError?e._t("onerror",[o("img-on-error")]):e._e(),e._v(" "),e.loading||e.loadError?e._e():o("div",{class:e.prefixCls+"-img-wrapper",style:e.imgWrapperStyle},[o("img",{class:e.prefixCls+"-img",style:e.imgStyle,attrs:{src:e.visibleImgSrc,draggable:"false"},on:{mousedown:function(t){return e.handleMouseDown(t)},mouseup:function(t){return e.handleMouseUp(t)},mousemove:function(t){return e.handleMouseMove(t)}}})])],2),e._v(" "),o("img",{staticStyle:{display:"none"},attrs:{src:e.visibleImgSrc},on:{error:e.handleImgError,load:e.handleImgLoad}}),e._v(" "),o("div",{class:e.prefixCls+"-btns-wrapper"},[e._t("prev-btn",[1!==e.imgList.length?o("div",{staticClass:"btn__prev",class:{disable:0===e.imgIndex},on:{click:e.onPrevClick}},[o("svg-icon",{attrs:{type:"prev"}})],1):e._e()],{prev:e.onPrevClick}),e._v(" "),e._t("next-btn",[1!==e.imgList.length?o("div",{staticClass:"btn__next",class:{disable:e.imgIndex===e.imgList.length-1},on:{click:e.onNextClick}},[o("svg-icon",{attrs:{type:"next"}})],1):e._e()],{next:e.onNextClick}),e._v(" "),e._t("close-btn",[o("div",{staticClass:"btn__close",on:{click:e.closeDialog}},[o("svg-icon",{attrs:{type:"close"}})],1)],{close:e.closeDialog}),e._v(" "),e._t("toolbar",[o("toolbar",{attrs:{prefixCls:e.prefixCls,zoomIn:e.zoomIn,zoomOut:e.zoomOut,rotate:e.rotate}})],{toolbarMethods:{zoomIn:e.zoomIn,zoomOut:e.zoomOut,rotate:e.rotate}})],2),e._v(" "),1!==e.imgList.length?o("div",{class:e.prefixCls+"-pagination-total"},[e._v(e._s(e.imgIndex+1)+"/"+e._s(e.imgTotal))]):e._e()],1):e._e()])},__vue_staticRenderFns__$4=[];const __vue_inject_styles__$4=function(e){e&&e("data-v-66b25fea_0",{source:".vel-fade-enter-active[data-v-66b25fea],.vel-fade-leave-active[data-v-66b25fea]{transition:all .3s ease}.vel-fade-enter[data-v-66b25fea],.vel-fade-leave-to[data-v-66b25fea]{opacity:0}.vel-img-swiper[data-v-66b25fea]{position:relative;display:block}.vel-modal[data-v-66b25fea]{z-index:9998;position:fixed;top:0;left:0;right:0;bottom:0;margin:0;background:rgba(0,0,0,.5)}.vel-img-wrapper[data-v-66b25fea]{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50% -50%);transition:.3s ease-in-out}.vel-img[data-v-66b25fea]{max-width:80vw;max-height:80vh;vertical-align:middle;position:relative;transition:transform .3s ease-in-out;box-shadow:rgba(0,0,0,.7) 0 5px 20px 2px;background-color:rgba(0,0,0,.7)}.vel-btns-wrapper .btn__close[data-v-66b25fea],.vel-btns-wrapper .btn__next[data-v-66b25fea],.vel-btns-wrapper .btn__prev[data-v-66b25fea]{cursor:pointer;position:absolute;font-size:60px;color:#fff;opacity:.6;transition:.15s linear}.vel-btns-wrapper .btn__close[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__next[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__prev[data-v-66b25fea]:hover{opacity:1}.vel-btns-wrapper .btn__next.disable[data-v-66b25fea],.vel-btns-wrapper .btn__next.disable[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__prev.disable[data-v-66b25fea],.vel-btns-wrapper .btn__prev.disable[data-v-66b25fea]:hover{cursor:default;opacity:.2}.vel-btns-wrapper .btn__next[data-v-66b25fea]{top:50%;transform:translateY(-50%);right:20px;font-size:40px}.vel-btns-wrapper .btn__prev[data-v-66b25fea]{top:50%;transform:translateY(-50%);left:20px;font-size:40px}.vel-btns-wrapper .btn__close[data-v-66b25fea]{top:10px;right:10px;font-size:40px}.vel-pagination-total[data-v-66b25fea]{position:absolute;font-size:16px;top:16px;left:16px;color:#000}",map:void 0,media:void 0})},__vue_scope_id__$4="data-v-66b25fea",__vue_module_identifier__$4=void 0,__vue_is_functional_template__$4=!1;var VueEasyLightbox$1=normalizeComponent_1({render:__vue_render__$4,staticRenderFns:__vue_staticRenderFns__$4},__vue_inject_styles__$4,__vue_script__$4,"data-v-66b25fea",!1,void 0,browser,void 0),install=function(e){e.component("vue-easy-lightbox",VueEasyLightbox$1)};VueEasyLightbox$1.install=install,"undefined"!=typeof window&&window.Vue&&window.Vue.use(VueEasyLightbox$1.install),module.exports=VueEasyLightbox$1; +"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var Vue=_interopDefault(require("vue")),extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function __extends(e,t){function o(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}function __decorate(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}var reflectionIsSupported="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function copyReflectionMetadata(e,t){forwardMetadata(e,t),Object.getOwnPropertyNames(t.prototype).forEach(function(o){forwardMetadata(e.prototype,t.prototype,o)}),Object.getOwnPropertyNames(t).forEach(function(o){forwardMetadata(e,t,o)})}function forwardMetadata(e,t,o){(o?Reflect.getOwnMetadataKeys(t,o):Reflect.getOwnMetadataKeys(t)).forEach(function(n){var r=o?Reflect.getOwnMetadata(n,t,o):Reflect.getOwnMetadata(n,t);o?Reflect.defineMetadata(n,r,e,o):Reflect.defineMetadata(n,r,e)})}var fakeArray={__proto__:[]},hasProto=fakeArray instanceof Array;function createDecorator(e){return function(t,o,n){var r="function"==typeof t?t:t.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof n&&(n=void 0),r.__decorators__.push(function(t){return e(t,o,n)})}}function isPrimitive(e){var t=typeof e;return null==e||"object"!==t&&"function"!==t}function collectDataFromConstructor(e,t){var o=t.prototype._init;t.prototype._init=function(){var t=this,o=Object.getOwnPropertyNames(e);if(e.$options.props)for(var n in e.$options.props)e.hasOwnProperty(n)||o.push(n);o.forEach(function(o){"_"!==o.charAt(0)&&Object.defineProperty(t,o,{get:function(){return e[o]},set:function(t){e[o]=t},configurable:!0})})};var n=new t;t.prototype._init=o;var r={};return Object.keys(n).forEach(function(e){void 0!==n[e]&&(r[e]=n[e])}),r}var $internalHooks=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function componentFactory(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var o=e.prototype;Object.getOwnPropertyNames(o).forEach(function(e){if("constructor"!==e)if($internalHooks.indexOf(e)>-1)t[e]=o[e];else{var n=Object.getOwnPropertyDescriptor(o,e);void 0!==n.value?"function"==typeof n.value?(t.methods||(t.methods={}))[e]=n.value:(t.mixins||(t.mixins=[])).push({data:function(){var t;return(t={})[e]=n.value,t}}):(n.get||n.set)&&((t.computed||(t.computed={}))[e]={get:n.get,set:n.set})}}),(t.mixins||(t.mixins=[])).push({data:function(){return collectDataFromConstructor(this,e)}});var n=e.__decorators__;n&&(n.forEach(function(e){return e(t)}),delete e.__decorators__);var r=Object.getPrototypeOf(e.prototype),i=r instanceof Vue?r.constructor:Vue,a=i.extend(t);return forwardStaticMembers(a,e,i),reflectionIsSupported&©ReflectionMetadata(a,e),a}var shouldIgnore={prototype:!0,arguments:!0,callee:!0,caller:!0};function forwardStaticMembers(e,t,o){Object.getOwnPropertyNames(t).forEach(function(n){if(!shouldIgnore[n]){var r=Object.getOwnPropertyDescriptor(e,n);if(!r||r.configurable){var i=Object.getOwnPropertyDescriptor(t,n);if(!hasProto){if("cid"===n)return;var a=Object.getOwnPropertyDescriptor(o,n);if(!isPrimitive(i.value)&&a&&a.value===i.value)return}Object.defineProperty(e,n,i)}}})}function Component(e){return"function"==typeof e?componentFactory(e):function(t){return componentFactory(t,e)}}Component.registerHooks=function(e){$internalHooks.push.apply($internalHooks,e)};var reflectMetadataIsSupported="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function applyMetadata(e,t,o){reflectMetadataIsSupported&&(Array.isArray(e)||"function"==typeof e||void 0!==e.type||(e.type=Reflect.getMetadata("design:type",t,o)))}function Prop(e){return void 0===e&&(e={}),function(t,o){applyMetadata(e,t,o),createDecorator(function(t,o){(t.props||(t.props={}))[o]=e})(t,o)}}function Watch(e,t){void 0===t&&(t={});var o=t.deep,n=void 0!==o&&o,r=t.immediate,i=void 0!==r&&r;return createDecorator(function(t,o){"object"!=typeof t.watch&&(t.watch=Object.create(null));var r=t.watch;"object"!=typeof r[e]||Array.isArray(r[e])?void 0===r[e]&&(r[e]=[]):r[e]=[r[e]],r[e].push({handler:o,deep:n,immediate:i})})}!function(e){var t,o='<svg><symbol id="icon-prev" viewBox="0 0 1024 1024"><path d="M784.652701 955.6957 346.601985 517.644983c-2.822492-2.822492-2.822492-7.902977 0-11.289967l439.179713-439.179713c6.77398-6.77398 10.725469-16.370452 10.725469-25.966924L796.507166 36.692393c0-20.32194-16.370452-36.692393-36.692393-36.692393l-4.515987 0c-9.596472 0-19.192944 3.951488-25.966924 10.725469L250.072767 489.420066c-12.418964 12.418964-12.418964 32.740904 0 45.159868l477.565601 477.565601c7.338479 7.338479 17.499449 11.854465 28.224917 11.854465l0 0c22.015436 0 40.079383-18.063947 40.079383-40.079383l0 0C796.507166 973.759647 791.99118 963.598677 784.652701 955.6957z" ></path></symbol><symbol id="icon-next" viewBox="0 0 1024 1024"><path d="M246.121279 955.6957l438.050717-438.050717c2.822492-2.822492 2.822492-7.902977 0-11.289967L244.992282 67.175303c-6.77398-6.77398-10.725469-16.370452-10.725469-25.966924L234.266814 36.692393C234.266814 16.370452 250.637266 0 270.959206 0l4.515987 0c9.596472 0 19.192944 3.951488 25.966924 10.725469l478.694598 478.694598c12.418964 12.418964 12.418964 32.740904 0 45.159868l-477.565601 477.565601c-7.338479 7.338479-17.499449 11.854465-28.224917 11.854465l0 0c-22.015436 0-40.079383-18.063947-40.079383-40.079383l0 0C234.266814 973.759647 238.7828 963.598677 246.121279 955.6957z" ></path></symbol><symbol id="icon-zoomin" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path><path d="M367.488 238.144h127.104v390.72H367.488z" ></path></symbol><symbol id="icon-rotate" viewBox="0 0 1024 1024"><path d="M288 352v192h128v64h-128v64h192v-320h-192z m128 128h-64v-64h64v64zM544 352v320h192v-320h-192z m128 256h-64v-192h64v192zM957.44 531.84h1.344v-1.92l-1.344 1.92z" ></path><path d="M46.72 474.88l35.84 55.04 1.28 1.92 35.84 55.04 60.16-119.04-32 1.92C168.96 277.76 331.52 128 529.28 128c211.904 0 384 172.16 384 384s-172.096 384-384 384c-140.16 0-263.04-75.52-329.6-188.16h-1.92l-0.64 0.64-53.12 31.36A446.592 446.592 0 0 0 529.28 960c247.744 0 448-200.32 448-448s-200.256-448-448-448C294.4 64 102.4 243.84 83.2 472.96l-36.48 1.92z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M570.24 512l259.2 259.2-58.88 58.24L512 570.24l-261.12 261.12-58.24-58.24L453.76 512 194.56 252.8l58.24-58.24L512 453.76l261.12-261.12 58.24 58.24z" ></path></symbol><symbol id="icon-zoomout" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path></symbol><symbol id="icon-img-broken" viewBox="0 0 1024 1024"><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m0 682.666667H213.333333v-195.413334l42.24 42.24 170.666667-170.666666 170.666667 170.666666 170.666666-170.24L810.666667 530.346667V810.666667z m0-401.493334l-43.093334-43.093333-170.666666 171.093333-170.666667-170.666666-170.666667 170.666666-42.24-42.666666V213.333333h597.333334v195.84z" ></path></symbol></svg>';if((t=document.getElementsByTagName("script"))[t.length-1].getAttribute("data-injectcss")&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(t){console&&console.log(t)}}!function(t){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(t,0);else{var o=function(){document.removeEventListener("DOMContentLoaded",o,!1),t()};document.addEventListener("DOMContentLoaded",o,!1)}else document.attachEvent&&(r=t,i=e.document,a=!1,(s=function(){try{i.documentElement.doScroll("left")}catch(e){return void setTimeout(s,50)}n()})(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,n())});function n(){a||(a=!0,r())}var r,i,a,s}(function(){var e,t;(e=document.createElement("div")).innerHTML=o,o=null,(t=e.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",function(e,t){t.firstChild?function(e,t){t.parentNode.insertBefore(e,t)}(e,t.firstChild):t.appendChild(e)}(t,document.body))})}(window);var script=Vue.extend({props:{type:{type:String,default:""}},data:function(){return{prefixCls:"vel"}}});function normalizeComponent(e,t,o,n,r,i,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var d,_="function"==typeof o?o.options:o;if(e&&e.render&&(_.render=e.render,_.staticRenderFns=e.staticRenderFns,_._compiled=!0,r&&(_.functional=!0)),n&&(_._scopeId=n),i?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},_._ssrRegister=d):t&&(d=a?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),d)if(_.functional){var p=_.render;_.render=function(e,t){return d.call(t),p(e,t)}}else{var u=_.beforeCreate;_.beforeCreate=u?[].concat(u,d):[d]}return o}var HEAD,normalizeComponent_1=normalizeComponent,isOldIE="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function createInjector(e){return function(e,t){return addStyle(e,t)}}var styles={};function addStyle(e,t){var o=isOldIE?t.media||"default":e,n=styles[o]||(styles[o]={ids:new Set,styles:[]});if(!n.ids.has(e)){n.ids.add(e);var r=t.source;if(t.map&&(r+="\n/*# sourceURL="+t.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",t.media&&n.element.setAttribute("media",t.media),void 0===HEAD&&(HEAD=document.head||document.getElementsByTagName("head")[0]),HEAD.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(r),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{var i=n.ids.size-1,a=document.createTextNode(r),s=n.element.childNodes;s[i]&&n.element.removeChild(s[i]),s.length?n.element.insertBefore(a,s[i]):n.element.appendChild(a)}}}var browser=createInjector;const __vue_script__=script;var __vue_render__=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{class:this.prefixCls+"-icon icon",attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-"+this.type}})])},__vue_staticRenderFns__=[];const __vue_inject_styles__=function(e){e&&e("data-v-7221e0ec_0",{source:".vel-icon[data-v-7221e0ec]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}",map:void 0,media:void 0})},__vue_scope_id__="data-v-7221e0ec",__vue_module_identifier__=void 0,__vue_is_functional_template__=!1;var SvgIcon=normalizeComponent_1({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__,__vue_scope_id__,!1,void 0,browser,void 0),prefixCls="vel",voidFn=function(){},script$1=Vue.extend({components:{SvgIcon:SvgIcon},props:{zoomIn:{type:Function,default:voidFn},zoomOut:{type:Function,default:voidFn},rotate:{type:Function,default:voidFn}},data:function(){return{prefixCls:prefixCls}}});const __vue_script__$1=script$1;var __vue_render__$1=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-toolbar"},[t("div",{staticClass:"toobar-btn toolbar-btn__zoomin",on:{click:this.zoomIn}},[t("svg-icon",{attrs:{type:"zoomin"}})],1),this._v(" "),t("div",{staticClass:"toobar-btn toolbar-btn__zoomout",on:{click:this.zoomOut}},[t("svg-icon",{attrs:{type:"zoomout"}})],1),this._v(" "),t("div",{staticClass:"toobar-btn toolbar-btn__rotate",on:{click:this.rotate}},[t("svg-icon",{attrs:{type:"rotate"}})],1)])},__vue_staticRenderFns__$1=[];const __vue_inject_styles__$1=function(e){e&&e("data-v-36fa02a2_0",{source:".vel-toolbar[data-v-36fa02a2]{user-select:none;position:absolute;bottom:0;left:50%;transform:translate(-50%);background:rgba(45,45,44,.8);border-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;padding:6px 24px 0}.vel-toolbar .toobar-btn[data-v-36fa02a2]{cursor:pointer;display:inline-block;padding:2px 4px}.vel-toolbar .toobar-btn[data-v-36fa02a2]{font-size:32px;color:#fff}.vel-toolbar .toobar-btn[data-v-36fa02a2]:hover{color:#54b4ee}",map:void 0,media:void 0})},__vue_scope_id__$1="data-v-36fa02a2",__vue_module_identifier__$1=void 0,__vue_is_functional_template__$1=!1;var Toolbar=normalizeComponent_1({render:__vue_render__$1,staticRenderFns:__vue_staticRenderFns__$1},__vue_inject_styles__$1,__vue_script__$1,"data-v-36fa02a2",!1,void 0,browser,void 0),script$2=Vue.extend({data:function(){return{prefixCls:prefixCls}}});const __vue_script__$2=script$2;var __vue_render__$2=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-loading"},[t("div",{staticClass:"ring"})])},__vue_staticRenderFns__$2=[];const __vue_inject_styles__$2=function(e){e&&e("data-v-0cefeb9a_0",{source:'.vel-loading[data-v-0cefeb9a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-loading .ring[data-v-0cefeb9a]{display:inline-block;width:64px;height:64px}.vel-loading .ring[data-v-0cefeb9a]:after{content:" ";display:block;width:46px;height:46px;margin:1px;border-radius:50%;border:5px solid rgba(255,255,255,.7);border-color:rgba(255,255,255,.7) transparent rgba(255,255,255,.7) transparent;animation:ring-data-v-0cefeb9a 1.2s linear infinite}@keyframes ring-data-v-0cefeb9a{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',map:void 0,media:void 0})},__vue_scope_id__$2="data-v-0cefeb9a",__vue_module_identifier__$2=void 0,__vue_is_functional_template__$2=!1;var ImgLoading=normalizeComponent_1({render:__vue_render__$2,staticRenderFns:__vue_staticRenderFns__$2},__vue_inject_styles__$2,__vue_script__$2,"data-v-0cefeb9a",!1,void 0,browser,void 0),script$3=Vue.extend({components:{SvgIcon:SvgIcon},data:function(){return{prefixCls:prefixCls}}});const __vue_script__$3=script$3;var __vue_render__$3=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-on-error"},[t("svg-icon",{attrs:{clas:"icon",type:"img-broken"}})],1)},__vue_staticRenderFns__$3=[];const __vue_inject_styles__$3=function(e){e&&e("data-v-137806a2_0",{source:".vel-on-error[data-v-137806a2]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-on-error .icon[data-v-137806a2]{font-size:80px;color:#aaa}",map:void 0,media:void 0})},__vue_scope_id__$3="data-v-137806a2",__vue_module_identifier__$3=void 0,__vue_is_functional_template__$3=!1;var ImgOnError=normalizeComponent_1({render:__vue_render__$3,staticRenderFns:__vue_staticRenderFns__$3},__vue_inject_styles__$3,__vue_script__$3,"data-v-137806a2",!1,void 0,browser,void 0),isServer=Vue.prototype.$isServer,supportsPassive=!1;if(!isServer)try{var options={};Object.defineProperty(options,"passive",{get:function(){supportsPassive=!0}}),window.addEventListener("test-passive",function(){},options)}catch(e){}var on=function(e,t,o,n){void 0===n&&(n=!1),isServer||e.addEventListener(t,o,!!supportsPassive&&{capture:!1,passive:n})},off=function(e,t,o){isServer||e.removeEventListener(t,o)},VueEasyLightbox=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.prefixCls=prefixCls,t.scale=1,t.rotateDeg=0,t.imgIndex=0,t.top=0,t.left=0,t.lastX=0,t.lastY=0,t.isDraging=!1,t.loading=!1,t.loadError=!1,t}return __extends(t,e),Object.defineProperty(t.prototype,"imgList",{get:function(){return Array.isArray(this.imgs)?this.imgs:[this.imgs]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleImgSrc",{get:function(){return this.imgList[this.imgIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imgTotal",{get:function(){return this.imgList.length||0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imgWrapperStyle",{get:function(){var e=this,t=e.scale,o=e.top,n=e.left,r=(e.rotateDeg,e.moveDisabled),i=e.loadError;return{transform:"translate(-50%, -50%) scale("+t+")",top:"calc(50% + "+o+"px)",left:"calc(50% + "+n+"px)",cursor:r||i?"default":"move"}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imgStyle",{get:function(){return{transform:"rotate(-"+this.rotateDeg+"deg)"}},enumerable:!0,configurable:!0}),t.prototype.checkMouseEventPropButton=function(e){return!this.moveDisabled&&0===e},t.prototype.handleMouseDown=function(e){this.checkMouseEventPropButton(e.button)&&(this.lastX=e.clientX,this.lastY=e.clientY,this.isDraging=!0,e.stopPropagation())},t.prototype.handleMouseUp=function(e){this.checkMouseEventPropButton(e.button)&&(this.isDraging=!1,this.lastX=this.lastY=0)},t.prototype.handleMouseMove=function(e){this.checkMouseEventPropButton(e.button)&&(this.isDraging&&(this.top=this.top-this.lastY+e.clientY,this.left=this.left-this.lastX+e.clientX,this.lastX=e.clientX,this.lastY=e.clientY),e.stopPropagation())},t.prototype.escapePressHandler=function(e){"Escape"===e.key&&this.visible&&this.closeDialog()},t.prototype.handleImgLoad=function(e){this.loading=!1},t.prototype.handleImgError=function(e){this.loading=!1,this.loadError=!0,this.$emit("on-error",e)},t.prototype.zoomIn=function(){this.scale+=.25},t.prototype.zoomOut=function(){0!==this.scale&&(this.scale-=.25)},t.prototype.rotate=function(){this.rotateDeg+=90},t.prototype.onNextClick=function(){this.onIndexChange(this.imgIndex+1)},t.prototype.onPrevClick=function(){this.onIndexChange(this.imgIndex-1)},t.prototype.closeDialog=function(){this.$emit("hide")},t.prototype.reset=function(){this.scale=1,this.rotateDeg=0,this.top=0,this.left=0,this.isDraging=!1,this.loading=!0,this.loadError=!1},t.prototype.init=function(){this.imgIndex=this.index,this.reset()},t.prototype.onVisibleChanged=function(e){this.visible&&this.init()},t.prototype.onIndexChange=function(e){var t=this;this.visible&&(e>this.imgList.length-1||e<0||(this.reset(),this.imgIndex=e,this.imgList[this.imgIndex]===this.imgList[e]&&this.$nextTick(function(){t.loading=!1})))},t.prototype.mounted=function(){this.escDisabled||on(document,"keydown",this.escapePressHandler)},t.prototype.beforeDestroy=function(){this.escDisabled||off(document,"keydown",this.escapePressHandler)},__decorate([Prop({type:[Array,String],default:function(){return""}})],t.prototype,"imgs",void 0),__decorate([Prop({type:Boolean,default:!1})],t.prototype,"visible",void 0),__decorate([Prop({type:Number,default:0})],t.prototype,"index",void 0),__decorate([Prop({type:Boolean,default:!1})],t.prototype,"escDisabled",void 0),__decorate([Prop({type:Boolean,default:!1})],t.prototype,"moveDisabled",void 0),__decorate([Watch("visible",{immediate:!0})],t.prototype,"onVisibleChanged",null),__decorate([Watch("index")],t.prototype,"onIndexChange",null),t=__decorate([Component({name:"vue-easy-lightbox",components:{SvgIcon:SvgIcon,Toolbar:Toolbar,ImgLoading:ImgLoading,ImgOnError:ImgOnError}})],t)}(Vue);const __vue_script__$4=VueEasyLightbox;var __vue_render__$4=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("transition",{attrs:{name:e.prefixCls+"-fade"}},[e.visible?o("div",{class:[e.prefixCls+"-img-modal",e.prefixCls+"-modal"],on:{click:function(t){return t.target!==t.currentTarget?null:e.closeDialog(t)}}},[o("transition",{attrs:{name:e.prefixCls+"-fade",mode:"out-in"}},[e.loading?e._t("loading",[o("img-loading")]):e._e(),e._v(" "),e.loadError?e._t("onerror",[o("img-on-error")]):e._e(),e._v(" "),e.loading||e.loadError?e._e():o("div",{class:e.prefixCls+"-img-wrapper",style:e.imgWrapperStyle},[o("img",{class:e.prefixCls+"-img",style:e.imgStyle,attrs:{src:e.visibleImgSrc,draggable:"false"},on:{mousedown:function(t){return e.handleMouseDown(t)},mouseup:function(t){return e.handleMouseUp(t)},mousemove:function(t){return e.handleMouseMove(t)}}})])],2),e._v(" "),o("img",{staticStyle:{display:"none"},attrs:{src:e.visibleImgSrc},on:{error:e.handleImgError,load:e.handleImgLoad}}),e._v(" "),o("div",{class:e.prefixCls+"-btns-wrapper"},[e._t("prev-btn",[1!==e.imgList.length?o("div",{staticClass:"btn__prev",class:{disable:0===e.imgIndex},on:{click:e.onPrevClick}},[o("svg-icon",{attrs:{type:"prev"}})],1):e._e()],{prev:e.onPrevClick}),e._v(" "),e._t("next-btn",[1!==e.imgList.length?o("div",{staticClass:"btn__next",class:{disable:e.imgIndex===e.imgList.length-1},on:{click:e.onNextClick}},[o("svg-icon",{attrs:{type:"next"}})],1):e._e()],{next:e.onNextClick}),e._v(" "),e._t("close-btn",[o("div",{staticClass:"btn__close",on:{click:e.closeDialog}},[o("svg-icon",{attrs:{type:"close"}})],1)],{close:e.closeDialog}),e._v(" "),e._t("toolbar",[o("toolbar",{attrs:{prefixCls:e.prefixCls,zoomIn:e.zoomIn,zoomOut:e.zoomOut,rotate:e.rotate}})],{toolbarMethods:{zoomIn:e.zoomIn,zoomOut:e.zoomOut,rotate:e.rotate}})],2),e._v(" "),1!==e.imgList.length?o("div",{class:e.prefixCls+"-pagination-total"},[e._v(e._s(e.imgIndex+1)+"/"+e._s(e.imgTotal))]):e._e()],1):e._e()])},__vue_staticRenderFns__$4=[];const __vue_inject_styles__$4=function(e){e&&e("data-v-4de35050_0",{source:".vel-fade-enter-active[data-v-4de35050],.vel-fade-leave-active[data-v-4de35050]{transition:all .3s ease}.vel-fade-enter[data-v-4de35050],.vel-fade-leave-to[data-v-4de35050]{opacity:0}.vel-img-swiper[data-v-4de35050]{position:relative;display:block}.vel-modal[data-v-4de35050]{z-index:9998;position:fixed;top:0;left:0;right:0;bottom:0;margin:0;background:rgba(0,0,0,.5)}.vel-img-wrapper[data-v-4de35050]{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50% -50%);transition:.3s ease-in-out}.vel-img[data-v-4de35050]{max-width:80vw;max-height:80vh;vertical-align:middle;position:relative;transition:transform .3s ease-in-out;box-shadow:rgba(0,0,0,.7) 0 5px 20px 2px;background-color:rgba(0,0,0,.7)}.vel-btns-wrapper .btn__close[data-v-4de35050],.vel-btns-wrapper .btn__next[data-v-4de35050],.vel-btns-wrapper .btn__prev[data-v-4de35050]{cursor:pointer;position:absolute;font-size:60px;color:#fff;opacity:.6;transition:.15s linear}.vel-btns-wrapper .btn__close[data-v-4de35050]:hover,.vel-btns-wrapper .btn__next[data-v-4de35050]:hover,.vel-btns-wrapper .btn__prev[data-v-4de35050]:hover{opacity:1}.vel-btns-wrapper .btn__next.disable[data-v-4de35050],.vel-btns-wrapper .btn__next.disable[data-v-4de35050]:hover,.vel-btns-wrapper .btn__prev.disable[data-v-4de35050],.vel-btns-wrapper .btn__prev.disable[data-v-4de35050]:hover{cursor:default;opacity:.2}.vel-btns-wrapper .btn__next[data-v-4de35050]{top:50%;transform:translateY(-50%);right:20px;font-size:40px}.vel-btns-wrapper .btn__prev[data-v-4de35050]{top:50%;transform:translateY(-50%);left:20px;font-size:40px}.vel-btns-wrapper .btn__close[data-v-4de35050]{top:10px;right:10px;font-size:40px}.vel-pagination-total[data-v-4de35050]{position:absolute;font-size:16px;top:16px;left:16px;color:#000}",map:void 0,media:void 0})},__vue_scope_id__$4="data-v-4de35050",__vue_module_identifier__$4=void 0,__vue_is_functional_template__$4=!1;var VueEasyLightbox$1=normalizeComponent_1({render:__vue_render__$4,staticRenderFns:__vue_staticRenderFns__$4},__vue_inject_styles__$4,__vue_script__$4,"data-v-4de35050",!1,void 0,browser,void 0),install=function(e){e.component("vue-easy-lightbox",VueEasyLightbox$1)};VueEasyLightbox$1.install=install,"undefined"!=typeof window&&window.Vue&&window.Vue.use(VueEasyLightbox$1.install),module.exports=VueEasyLightbox$1; diff --git a/dist/vue-easy-lightbox.es5.common.min.js b/dist/vue-easy-lightbox.es5.common.min.js index 4a0aec1..93fc107 100644 --- a/dist/vue-easy-lightbox.es5.common.min.js +++ b/dist/vue-easy-lightbox.es5.common.min.js @@ -1 +1 @@ -"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var Vue=_interopDefault(require("vue"));function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var _global=createCommonjsModule(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),hasOwnProperty={}.hasOwnProperty,_has=function(e,t){return hasOwnProperty.call(e,t)},toString={}.toString,_cof=function(e){return toString.call(e).slice(8,-1)},_isObject=function(e){return"object"==typeof e?null!==e:"function"==typeof e},_anObject=function(e){if(!_isObject(e))throw TypeError(e+" is not an object!");return e},_aFunction=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},_ctx=function(e,t,o){if(_aFunction(e),void 0===t)return e;switch(o){case 1:return function(o){return e.call(t,o)};case 2:return function(o,r){return e.call(t,o,r)};case 3:return function(o,r,n){return e.call(t,o,r,n)}}return function(){return e.apply(t,arguments)}},f={}.propertyIsEnumerable,_objectPie={f:f},_propertyDesc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_iobject=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==_cof(e)?e.split(""):Object(e)},_defined=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},_toIobject=function(e){return _iobject(_defined(e))},_toPrimitive=function(e,t){if(!_isObject(e))return e;var o,r;if(t&&"function"==typeof(o=e.toString)&&!_isObject(r=o.call(e)))return r;if("function"==typeof(o=e.valueOf)&&!_isObject(r=o.call(e)))return r;if(!t&&"function"==typeof(o=e.toString)&&!_isObject(r=o.call(e)))return r;throw TypeError("Can't convert object to primitive value")},_fails=function(e){try{return!!e()}catch(e){return!0}},_descriptors=!_fails(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),document$1=_global.document,is=_isObject(document$1)&&_isObject(document$1.createElement),_domCreate=function(e){return is?document$1.createElement(e):{}},_ie8DomDefine=!_descriptors&&!_fails(function(){return 7!=Object.defineProperty(_domCreate("div"),"a",{get:function(){return 7}}).a}),gOPD=Object.getOwnPropertyDescriptor,f$1=_descriptors?gOPD:function(e,t){if(e=_toIobject(e),t=_toPrimitive(t,!0),_ie8DomDefine)try{return gOPD(e,t)}catch(e){}if(_has(e,t))return _propertyDesc(!_objectPie.f.call(e,t),e[t])},_objectGopd={f:f$1},check=function(e,t){if(_anObject(e),!_isObject(t)&&null!==t)throw TypeError(t+": can't set as prototype!")},_setProto={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=_ctx(Function.call,_objectGopd.f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return check(e,r),t?e.__proto__=r:o(e,r),e}}({},!1):void 0),check:check},setPrototypeOf=_setProto.set,_inheritIfRequired=function(e,t,o){var r,n=t.constructor;return n!==o&&"function"==typeof n&&(r=n.prototype)!==o.prototype&&_isObject(r)&&setPrototypeOf&&setPrototypeOf(e,r),e},ceil=Math.ceil,floor=Math.floor,_toInteger=function(e){return isNaN(e=+e)?0:(e>0?floor:ceil)(e)},min=Math.min,_toLength=function(e){return e>0?min(_toInteger(e),9007199254740991):0},max=Math.max,min$1=Math.min,_toAbsoluteIndex=function(e,t){return(e=_toInteger(e))<0?max(e+t,0):min$1(e,t)},_arrayIncludes=function(e){return function(t,o,r){var n,i=_toIobject(t),a=_toLength(i.length),s=_toAbsoluteIndex(r,a);if(e&&o!=o){for(;a>s;)if((n=i[s++])!=n)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===o)return e||s||0;return!e&&-1}},_core=createCommonjsModule(function(e){var t=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=t)}),_core_1=_core.version,_shared=createCommonjsModule(function(e){var t=_global["__core-js_shared__"]||(_global["__core-js_shared__"]={});(e.exports=function(e,o){return t[e]||(t[e]=void 0!==o?o:{})})("versions",[]).push({version:_core.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),id=0,px=Math.random(),_uid=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++id+px).toString(36))},shared=_shared("keys"),_sharedKey=function(e){return shared[e]||(shared[e]=_uid(e))},arrayIndexOf=_arrayIncludes(!1),IE_PROTO=_sharedKey("IE_PROTO"),_objectKeysInternal=function(e,t){var o,r=_toIobject(e),n=0,i=[];for(o in r)o!=IE_PROTO&&_has(r,o)&&i.push(o);for(;t.length>n;)_has(r,o=t[n++])&&(~arrayIndexOf(i,o)||i.push(o));return i},_enumBugKeys="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),hiddenKeys=_enumBugKeys.concat("length","prototype"),f$2=Object.getOwnPropertyNames||function(e){return _objectKeysInternal(e,hiddenKeys)},_objectGopn={f:f$2},dP=Object.defineProperty,f$3=_descriptors?Object.defineProperty:function(e,t,o){if(_anObject(e),t=_toPrimitive(t,!0),_anObject(o),_ie8DomDefine)try{return dP(e,t,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(e[t]=o.value),e},_objectDp={f:f$3},_hide=_descriptors?function(e,t,o){return _objectDp.f(e,t,_propertyDesc(1,o))}:function(e,t,o){return e[t]=o,e},_functionToString=_shared("native-function-to-string",Function.toString),_redefine=createCommonjsModule(function(e){var t=_uid("src"),o=(""+_functionToString).split("toString");_core.inspectSource=function(e){return _functionToString.call(e)},(e.exports=function(e,r,n,i){var a="function"==typeof n;a&&(_has(n,"name")||_hide(n,"name",r)),e[r]!==n&&(a&&(_has(n,t)||_hide(n,t,e[r]?""+e[r]:o.join(String(r)))),e===_global?e[r]=n:i?e[r]?e[r]=n:_hide(e,r,n):(delete e[r],_hide(e,r,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[t]||_functionToString.call(this)})}),PROTOTYPE="prototype",$export=function(e,t,o){var r,n,i,a,s=e&$export.F,c=e&$export.G,l=e&$export.S,_=e&$export.P,u=e&$export.B,p=c?_global:l?_global[t]||(_global[t]={}):(_global[t]||{})[PROTOTYPE],d=c?_core:_core[t]||(_core[t]={}),f=d[PROTOTYPE]||(d[PROTOTYPE]={});for(r in c&&(o=t),o)i=((n=!s&&p&&void 0!==p[r])?p:o)[r],a=u&&n?_ctx(i,_global):_&&"function"==typeof i?_ctx(Function.call,i):i,p&&_redefine(p,r,i,e&$export.U),d[r]!=i&&_hide(d,r,a),_&&f[r]!=i&&(f[r]=i)};_global.core=_core,$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128;var _export=$export,_stringWs="\t\n\v\f\r \u2028\u2029\ufeff",space="["+_stringWs+"]",non=" ",ltrim=RegExp("^"+space+space+"*"),rtrim=RegExp(space+space+"*$"),exporter=function(e,t,o){var r={},n=_fails(function(){return!!_stringWs[e]()||non[e]()!=non}),i=r[e]=n?t(trim):_stringWs[e];o&&(r[o]=i),_export(_export.P+_export.F*n,"String",r)},trim=exporter.trim=function(e,t){return e=String(_defined(e)),1&t&&(e=e.replace(ltrim,"")),2&t&&(e=e.replace(rtrim,"")),e},_stringTrim=exporter,_objectKeys=Object.keys||function(e){return _objectKeysInternal(e,_enumBugKeys)},_objectDps=_descriptors?Object.defineProperties:function(e,t){_anObject(e);for(var o,r=_objectKeys(t),n=r.length,i=0;n>i;)_objectDp.f(e,o=r[i++],t[o]);return e},document$2=_global.document,_html=document$2&&document$2.documentElement,IE_PROTO$1=_sharedKey("IE_PROTO"),Empty=function(){},PROTOTYPE$1="prototype",createDict=function(){var e,t=_domCreate("iframe"),o=_enumBugKeys.length;for(t.style.display="none",_html.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),createDict=e.F;o--;)delete createDict[PROTOTYPE$1][_enumBugKeys[o]];return createDict()},_objectCreate=Object.create||function(e,t){var o;return null!==e?(Empty[PROTOTYPE$1]=_anObject(e),o=new Empty,Empty[PROTOTYPE$1]=null,o[IE_PROTO$1]=e):o=createDict(),void 0===t?o:_objectDps(o,t)},gOPN=_objectGopn.f,gOPD$1=_objectGopd.f,dP$1=_objectDp.f,$trim=_stringTrim.trim,NUMBER="Number",$Number=_global[NUMBER],Base=$Number,proto=$Number.prototype,BROKEN_COF=_cof(_objectCreate(proto))==NUMBER,TRIM="trim"in String.prototype,toNumber=function(e){var t=_toPrimitive(e,!1);if("string"==typeof t&&t.length>2){var o,r,n,i=(t=TRIM?t.trim():$trim(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(o=t.charCodeAt(2))||120===o)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+t}for(var a,s=t.slice(2),c=0,l=s.length;c<l;c++)if((a=s.charCodeAt(c))<48||a>n)return NaN;return parseInt(s,r)}}return+t};if(!$Number(" 0o1")||!$Number("0b1")||$Number("+0x1")){$Number=function(e){var t=arguments.length<1?0:e,o=this;return o instanceof $Number&&(BROKEN_COF?_fails(function(){proto.valueOf.call(o)}):_cof(o)!=NUMBER)?_inheritIfRequired(new Base(toNumber(t)),o,$Number):toNumber(t)};for(var key,keys=_descriptors?gOPN(Base):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),j=0;keys.length>j;j++)_has(Base,key=keys[j])&&!_has($Number,key)&&dP$1($Number,key,gOPD$1(Base,key));$Number.prototype=proto,proto.constructor=$Number,_redefine(_global,NUMBER,$Number)}var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function __extends(e,t){function o(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}function __decorate(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}var reflectionIsSupported="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function copyReflectionMetadata(e,t){forwardMetadata(e,t),Object.getOwnPropertyNames(t.prototype).forEach(function(o){forwardMetadata(e.prototype,t.prototype,o)}),Object.getOwnPropertyNames(t).forEach(function(o){forwardMetadata(e,t,o)})}function forwardMetadata(e,t,o){(o?Reflect.getOwnMetadataKeys(t,o):Reflect.getOwnMetadataKeys(t)).forEach(function(r){var n=o?Reflect.getOwnMetadata(r,t,o):Reflect.getOwnMetadata(r,t);o?Reflect.defineMetadata(r,n,e,o):Reflect.defineMetadata(r,n,e)})}var fakeArray={__proto__:[]},hasProto=fakeArray instanceof Array;function createDecorator(e){return function(t,o,r){var n="function"==typeof t?t:t.constructor;n.__decorators__||(n.__decorators__=[]),"number"!=typeof r&&(r=void 0),n.__decorators__.push(function(t){return e(t,o,r)})}}function isPrimitive(e){var t=typeof e;return null==e||"object"!==t&&"function"!==t}function collectDataFromConstructor(e,t){var o=t.prototype._init;t.prototype._init=function(){var t=this,o=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||o.push(r);o.forEach(function(o){"_"!==o.charAt(0)&&Object.defineProperty(t,o,{get:function(){return e[o]},set:function(t){e[o]=t},configurable:!0})})};var r=new t;t.prototype._init=o;var n={};return Object.keys(r).forEach(function(e){void 0!==r[e]&&(n[e]=r[e])}),n}var $internalHooks=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function componentFactory(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var o=e.prototype;Object.getOwnPropertyNames(o).forEach(function(e){if("constructor"!==e)if($internalHooks.indexOf(e)>-1)t[e]=o[e];else{var r=Object.getOwnPropertyDescriptor(o,e);void 0!==r.value?"function"==typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(t.mixins||(t.mixins=[])).push({data:function(){var t;return(t={})[e]=r.value,t}}):(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}}),(t.mixins||(t.mixins=[])).push({data:function(){return collectDataFromConstructor(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(e){return e(t)}),delete e.__decorators__);var n=Object.getPrototypeOf(e.prototype),i=n instanceof Vue?n.constructor:Vue,a=i.extend(t);return forwardStaticMembers(a,e,i),reflectionIsSupported&©ReflectionMetadata(a,e),a}var shouldIgnore={prototype:!0,arguments:!0,callee:!0,caller:!0};function forwardStaticMembers(e,t,o){Object.getOwnPropertyNames(t).forEach(function(r){if(!shouldIgnore[r]){var n=Object.getOwnPropertyDescriptor(e,r);if(!n||n.configurable){var i=Object.getOwnPropertyDescriptor(t,r);if(!hasProto){if("cid"===r)return;var a=Object.getOwnPropertyDescriptor(o,r);if(!isPrimitive(i.value)&&a&&a.value===i.value)return}Object.defineProperty(e,r,i)}}})}function Component(e){return"function"==typeof e?componentFactory(e):function(t){return componentFactory(t,e)}}Component.registerHooks=function(e){$internalHooks.push.apply($internalHooks,e)};var reflectMetadataIsSupported="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function applyMetadata(e,t,o){reflectMetadataIsSupported&&(Array.isArray(e)||"function"==typeof e||void 0!==e.type||(e.type=Reflect.getMetadata("design:type",t,o)))}function Prop(e){return void 0===e&&(e={}),function(t,o){applyMetadata(e,t,o),createDecorator(function(t,o){(t.props||(t.props={}))[o]=e})(t,o)}}function Watch(e,t){void 0===t&&(t={});var o=t.deep,r=void 0!==o&&o,n=t.immediate,i=void 0!==n&&n;return createDecorator(function(t,o){"object"!=typeof t.watch&&(t.watch=Object.create(null));var n=t.watch;"object"!=typeof n[e]||Array.isArray(n[e])?void 0===n[e]&&(n[e]=[]):n[e]=[n[e]],n[e].push({handler:o,deep:r,immediate:i})})}!function(e){var t,o='<svg><symbol id="icon-prev" viewBox="0 0 1024 1024"><path d="M784.652701 955.6957 346.601985 517.644983c-2.822492-2.822492-2.822492-7.902977 0-11.289967l439.179713-439.179713c6.77398-6.77398 10.725469-16.370452 10.725469-25.966924L796.507166 36.692393c0-20.32194-16.370452-36.692393-36.692393-36.692393l-4.515987 0c-9.596472 0-19.192944 3.951488-25.966924 10.725469L250.072767 489.420066c-12.418964 12.418964-12.418964 32.740904 0 45.159868l477.565601 477.565601c7.338479 7.338479 17.499449 11.854465 28.224917 11.854465l0 0c22.015436 0 40.079383-18.063947 40.079383-40.079383l0 0C796.507166 973.759647 791.99118 963.598677 784.652701 955.6957z" ></path></symbol><symbol id="icon-next" viewBox="0 0 1024 1024"><path d="M246.121279 955.6957l438.050717-438.050717c2.822492-2.822492 2.822492-7.902977 0-11.289967L244.992282 67.175303c-6.77398-6.77398-10.725469-16.370452-10.725469-25.966924L234.266814 36.692393C234.266814 16.370452 250.637266 0 270.959206 0l4.515987 0c9.596472 0 19.192944 3.951488 25.966924 10.725469l478.694598 478.694598c12.418964 12.418964 12.418964 32.740904 0 45.159868l-477.565601 477.565601c-7.338479 7.338479-17.499449 11.854465-28.224917 11.854465l0 0c-22.015436 0-40.079383-18.063947-40.079383-40.079383l0 0C234.266814 973.759647 238.7828 963.598677 246.121279 955.6957z" ></path></symbol><symbol id="icon-zoomin" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path><path d="M367.488 238.144h127.104v390.72H367.488z" ></path></symbol><symbol id="icon-rotate" viewBox="0 0 1024 1024"><path d="M288 352v192h128v64h-128v64h192v-320h-192z m128 128h-64v-64h64v64zM544 352v320h192v-320h-192z m128 256h-64v-192h64v192zM957.44 531.84h1.344v-1.92l-1.344 1.92z" ></path><path d="M46.72 474.88l35.84 55.04 1.28 1.92 35.84 55.04 60.16-119.04-32 1.92C168.96 277.76 331.52 128 529.28 128c211.904 0 384 172.16 384 384s-172.096 384-384 384c-140.16 0-263.04-75.52-329.6-188.16h-1.92l-0.64 0.64-53.12 31.36A446.592 446.592 0 0 0 529.28 960c247.744 0 448-200.32 448-448s-200.256-448-448-448C294.4 64 102.4 243.84 83.2 472.96l-36.48 1.92z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M570.24 512l259.2 259.2-58.88 58.24L512 570.24l-261.12 261.12-58.24-58.24L453.76 512 194.56 252.8l58.24-58.24L512 453.76l261.12-261.12 58.24 58.24z" ></path></symbol><symbol id="icon-zoomout" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path></symbol><symbol id="icon-img-broken" viewBox="0 0 1024 1024"><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m0 682.666667H213.333333v-195.413334l42.24 42.24 170.666667-170.666666 170.666667 170.666666 170.666666-170.24L810.666667 530.346667V810.666667z m0-401.493334l-43.093334-43.093333-170.666666 171.093333-170.666667-170.666666-170.666667 170.666666-42.24-42.666666V213.333333h597.333334v195.84z" ></path></symbol></svg>';if((t=document.getElementsByTagName("script"))[t.length-1].getAttribute("data-injectcss")&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(t){console&&console.log(t)}}!function(t){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(t,0);else{document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e,!1),t()},!1)}else document.attachEvent&&(r=t,n=e.document,i=!1,(a=function(){try{n.documentElement.doScroll("left")}catch(e){return void setTimeout(a,50)}o()})(),n.onreadystatechange=function(){"complete"==n.readyState&&(n.onreadystatechange=null,o())});function o(){i||(i=!0,r())}var r,n,i,a}(function(){var e,t;(e=document.createElement("div")).innerHTML=o,o=null,(t=e.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",function(e,t){t.firstChild?function(e,t){t.parentNode.insertBefore(e,t)}(e,t.firstChild):t.appendChild(e)}(t,document.body))})}(window);var script=Vue.extend({props:{type:{type:String,default:""}},data:function(){return{prefixCls:"vel"}}});function normalizeComponent(e,t,o,r,n,i,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var _,u="function"==typeof o?o.options:o;if(e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,n&&(u.functional=!0)),r&&(u._scopeId=r),i?(_=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=_):t&&(_=a?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),_)if(u.functional){var p=u.render;u.render=function(e,t){return _.call(t),p(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,_):[_]}return o}var HEAD,normalizeComponent_1=normalizeComponent,isOldIE="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function createInjector(e){return function(e,t){return addStyle(e,t)}}var styles={};function addStyle(e,t){var o=isOldIE?t.media||"default":e,r=styles[o]||(styles[o]={ids:new Set,styles:[]});if(!r.ids.has(e)){r.ids.add(e);var n=t.source;if(t.map&&(n+="\n/*# sourceURL="+t.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",t.media&&r.element.setAttribute("media",t.media),void 0===HEAD&&(HEAD=document.head||document.getElementsByTagName("head")[0]),HEAD.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(n),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{var i=r.ids.size-1,a=document.createTextNode(n),s=r.element.childNodes;s[i]&&r.element.removeChild(s[i]),s.length?r.element.insertBefore(a,s[i]):r.element.appendChild(a)}}}var browser=createInjector;const __vue_script__=script;var __vue_render__=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{class:this.prefixCls+"-icon icon",attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-"+this.type}})])},__vue_staticRenderFns__=[];const __vue_inject_styles__=function(e){e&&e("data-v-7221e0ec_0",{source:".vel-icon[data-v-7221e0ec]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}",map:void 0,media:void 0})},__vue_scope_id__="data-v-7221e0ec",__vue_module_identifier__=void 0,__vue_is_functional_template__=!1;var SvgIcon=normalizeComponent_1({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__,__vue_scope_id__,!1,void 0,browser,void 0),prefixCls="vel",voidFn=function(){},script$1=Vue.extend({components:{SvgIcon:SvgIcon},props:{zoomIn:{type:Function,default:voidFn},zoomOut:{type:Function,default:voidFn},rotate:{type:Function,default:voidFn}},data:function(){return{prefixCls:prefixCls}}});const __vue_script__$1=script$1;var __vue_render__$1=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-toolbar"},[t("div",{staticClass:"toobar-btn toolbar-btn__zoomin",on:{click:this.zoomIn}},[t("svg-icon",{attrs:{type:"zoomin"}})],1),this._v(" "),t("div",{staticClass:"toobar-btn toolbar-btn__zoomout",on:{click:this.zoomOut}},[t("svg-icon",{attrs:{type:"zoomout"}})],1),this._v(" "),t("div",{staticClass:"toobar-btn toolbar-btn__rotate",on:{click:this.rotate}},[t("svg-icon",{attrs:{type:"rotate"}})],1)])},__vue_staticRenderFns__$1=[];const __vue_inject_styles__$1=function(e){e&&e("data-v-36fa02a2_0",{source:".vel-toolbar[data-v-36fa02a2]{user-select:none;position:absolute;bottom:0;left:50%;transform:translate(-50%);background:rgba(45,45,44,.8);border-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;padding:6px 24px 0}.vel-toolbar .toobar-btn[data-v-36fa02a2]{cursor:pointer;display:inline-block;padding:2px 4px}.vel-toolbar .toobar-btn[data-v-36fa02a2]{font-size:32px;color:#fff}.vel-toolbar .toobar-btn[data-v-36fa02a2]:hover{color:#54b4ee}",map:void 0,media:void 0})},__vue_scope_id__$1="data-v-36fa02a2",__vue_module_identifier__$1=void 0,__vue_is_functional_template__$1=!1;var Toolbar=normalizeComponent_1({render:__vue_render__$1,staticRenderFns:__vue_staticRenderFns__$1},__vue_inject_styles__$1,__vue_script__$1,"data-v-36fa02a2",!1,void 0,browser,void 0),script$2=Vue.extend({data:function(){return{prefixCls:prefixCls}}});const __vue_script__$2=script$2;var __vue_render__$2=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-loading"},[t("div",{staticClass:"ring"})])},__vue_staticRenderFns__$2=[];const __vue_inject_styles__$2=function(e){e&&e("data-v-0cefeb9a_0",{source:'.vel-loading[data-v-0cefeb9a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-loading .ring[data-v-0cefeb9a]{display:inline-block;width:64px;height:64px}.vel-loading .ring[data-v-0cefeb9a]:after{content:" ";display:block;width:46px;height:46px;margin:1px;border-radius:50%;border:5px solid rgba(255,255,255,.7);border-color:rgba(255,255,255,.7) transparent rgba(255,255,255,.7) transparent;animation:ring-data-v-0cefeb9a 1.2s linear infinite}@keyframes ring-data-v-0cefeb9a{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',map:void 0,media:void 0})},__vue_scope_id__$2="data-v-0cefeb9a",__vue_module_identifier__$2=void 0,__vue_is_functional_template__$2=!1;var ImgLoading=normalizeComponent_1({render:__vue_render__$2,staticRenderFns:__vue_staticRenderFns__$2},__vue_inject_styles__$2,__vue_script__$2,"data-v-0cefeb9a",!1,void 0,browser,void 0),script$3=Vue.extend({components:{SvgIcon:SvgIcon},data:function(){return{prefixCls:prefixCls}}});const __vue_script__$3=script$3;var __vue_render__$3=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-on-error"},[t("svg-icon",{attrs:{clas:"icon",type:"img-broken"}})],1)},__vue_staticRenderFns__$3=[];const __vue_inject_styles__$3=function(e){e&&e("data-v-137806a2_0",{source:".vel-on-error[data-v-137806a2]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-on-error .icon[data-v-137806a2]{font-size:80px;color:#aaa}",map:void 0,media:void 0})},__vue_scope_id__$3="data-v-137806a2",__vue_module_identifier__$3=void 0,__vue_is_functional_template__$3=!1;var ImgOnError=normalizeComponent_1({render:__vue_render__$3,staticRenderFns:__vue_staticRenderFns__$3},__vue_inject_styles__$3,__vue_script__$3,"data-v-137806a2",!1,void 0,browser,void 0),isServer=Vue.prototype.$isServer,supportsPassive=!1;if(!isServer)try{var options={};Object.defineProperty(options,"passive",{get:function(){supportsPassive=!0}}),window.addEventListener("test-passive",function(){},options)}catch(e){}var on=function(e,t,o,r){void 0===r&&(r=!1),isServer||e.addEventListener(t,o,!!supportsPassive&&{capture:!1,passive:r})},off=function(e,t,o){isServer||e.removeEventListener(t,o)},VueEasyLightbox=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.prefixCls=prefixCls,t.scale=1,t.rotateDeg=0,t.imgIndex=0,t.top=0,t.left=0,t.lastX=0,t.lastY=0,t.isDraging=!1,t.loading=!1,t.loadError=!1,t}return __extends(t,e),Object.defineProperty(t.prototype,"imgList",{get:function(){return Array.isArray(this.imgs)?this.imgs:[this.imgs]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleImgSrc",{get:function(){return this.imgList[this.imgIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imgTotal",{get:function(){return this.imgList.length||0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imgWrapperStyle",{get:function(){var e=this,t=e.scale,o=e.top,r=e.left,n=(e.rotateDeg,e.moveDisabled),i=e.loadError;return{transform:"translate(-50%, -50%) scale("+t+")",top:"calc(50% + "+o+"px)",left:"calc(50% + "+r+"px)",cursor:n||i?"default":"move"}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imgStyle",{get:function(){return{transform:"rotate(-"+this.rotateDeg+"deg)"}},enumerable:!0,configurable:!0}),t.prototype.checkMouseEventPropButton=function(e){return!this.moveDisabled&&0===e},t.prototype.handleMouseDown=function(e){this.checkMouseEventPropButton(e.button)&&(this.lastX=e.clientX,this.lastY=e.clientY,this.isDraging=!0,e.stopPropagation())},t.prototype.handleMouseUp=function(e){this.checkMouseEventPropButton(e.button)&&(this.isDraging=!1,this.lastX=this.lastY=0)},t.prototype.handleMouseMove=function(e){this.checkMouseEventPropButton(e.button)&&(this.isDraging&&(this.top=this.top-this.lastY+e.clientY,this.left=this.left-this.lastX+e.clientX,this.lastX=e.clientX,this.lastY=e.clientY),e.stopPropagation())},t.prototype.escapePressHandler=function(e){"Escape"===e.key&&this.visible&&this.closeDialog()},t.prototype.handleImgLoad=function(e){this.loading=!1},t.prototype.handleImgError=function(e){this.loading=!1,this.loadError=!0,this.$emit("on-error",e)},t.prototype.zoomIn=function(){this.scale+=.25},t.prototype.zoomOut=function(){0!==this.scale&&(this.scale-=.25)},t.prototype.rotate=function(){this.rotateDeg+=90},t.prototype.onNextClick=function(){this.onIndexChange(this.imgIndex+1)},t.prototype.onPrevClick=function(){this.onIndexChange(this.imgIndex-1)},t.prototype.closeDialog=function(){this.$emit("hide")},t.prototype.reset=function(){this.scale=1,this.rotateDeg=0,this.top=0,this.left=0,this.isDraging=!1,this.loading=!0,this.loadError=!1},t.prototype.init=function(){this.imgIndex=this.index,this.reset()},t.prototype.onVisibleChanged=function(e){this.visible&&this.init()},t.prototype.onIndexChange=function(e){this.visible&&(e>this.imgList.length-1||e<0||(this.reset(),this.imgIndex=e))},t.prototype.mounted=function(){this.escDisabled||on(document,"keydown",this.escapePressHandler)},t.prototype.beforeDestroy=function(){this.escDisabled||off(document,"keydown",this.escapePressHandler)},__decorate([Prop({type:[Array,String],default:function(){return""}})],t.prototype,"imgs",void 0),__decorate([Prop({type:Boolean,default:!1})],t.prototype,"visible",void 0),__decorate([Prop({type:Number,default:0})],t.prototype,"index",void 0),__decorate([Prop({type:Boolean,default:!1})],t.prototype,"escDisabled",void 0),__decorate([Prop({type:Boolean,default:!1})],t.prototype,"moveDisabled",void 0),__decorate([Watch("visible",{immediate:!0})],t.prototype,"onVisibleChanged",null),__decorate([Watch("index")],t.prototype,"onIndexChange",null),t=__decorate([Component({name:"vue-easy-lightbox",components:{SvgIcon:SvgIcon,Toolbar:Toolbar,ImgLoading:ImgLoading,ImgOnError:ImgOnError}})],t)}(Vue);const __vue_script__$4=VueEasyLightbox;var __vue_render__$4=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("transition",{attrs:{name:e.prefixCls+"-fade"}},[e.visible?o("div",{class:[e.prefixCls+"-img-modal",e.prefixCls+"-modal"],on:{click:function(t){return t.target!==t.currentTarget?null:e.closeDialog(t)}}},[o("transition",{attrs:{name:e.prefixCls+"-fade",mode:"out-in"}},[e.loading?e._t("loading",[o("img-loading")]):e._e(),e._v(" "),e.loadError?e._t("onerror",[o("img-on-error")]):e._e(),e._v(" "),e.loading||e.loadError?e._e():o("div",{class:e.prefixCls+"-img-wrapper",style:e.imgWrapperStyle},[o("img",{class:e.prefixCls+"-img",style:e.imgStyle,attrs:{src:e.visibleImgSrc,draggable:"false"},on:{mousedown:function(t){return e.handleMouseDown(t)},mouseup:function(t){return e.handleMouseUp(t)},mousemove:function(t){return e.handleMouseMove(t)}}})])],2),e._v(" "),o("img",{staticStyle:{display:"none"},attrs:{src:e.visibleImgSrc},on:{error:e.handleImgError,load:e.handleImgLoad}}),e._v(" "),o("div",{class:e.prefixCls+"-btns-wrapper"},[e._t("prev-btn",[1!==e.imgList.length?o("div",{staticClass:"btn__prev",class:{disable:0===e.imgIndex},on:{click:e.onPrevClick}},[o("svg-icon",{attrs:{type:"prev"}})],1):e._e()],{prev:e.onPrevClick}),e._v(" "),e._t("next-btn",[1!==e.imgList.length?o("div",{staticClass:"btn__next",class:{disable:e.imgIndex===e.imgList.length-1},on:{click:e.onNextClick}},[o("svg-icon",{attrs:{type:"next"}})],1):e._e()],{next:e.onNextClick}),e._v(" "),e._t("close-btn",[o("div",{staticClass:"btn__close",on:{click:e.closeDialog}},[o("svg-icon",{attrs:{type:"close"}})],1)],{close:e.closeDialog}),e._v(" "),e._t("toolbar",[o("toolbar",{attrs:{prefixCls:e.prefixCls,zoomIn:e.zoomIn,zoomOut:e.zoomOut,rotate:e.rotate}})],{toolbarMethods:{zoomIn:e.zoomIn,zoomOut:e.zoomOut,rotate:e.rotate}})],2),e._v(" "),1!==e.imgList.length?o("div",{class:e.prefixCls+"-pagination-total"},[e._v(e._s(e.imgIndex+1)+"/"+e._s(e.imgTotal))]):e._e()],1):e._e()])},__vue_staticRenderFns__$4=[];const __vue_inject_styles__$4=function(e){e&&e("data-v-66b25fea_0",{source:".vel-fade-enter-active[data-v-66b25fea],.vel-fade-leave-active[data-v-66b25fea]{transition:all .3s ease}.vel-fade-enter[data-v-66b25fea],.vel-fade-leave-to[data-v-66b25fea]{opacity:0}.vel-img-swiper[data-v-66b25fea]{position:relative;display:block}.vel-modal[data-v-66b25fea]{z-index:9998;position:fixed;top:0;left:0;right:0;bottom:0;margin:0;background:rgba(0,0,0,.5)}.vel-img-wrapper[data-v-66b25fea]{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50% -50%);transition:.3s ease-in-out}.vel-img[data-v-66b25fea]{max-width:80vw;max-height:80vh;vertical-align:middle;position:relative;transition:transform .3s ease-in-out;box-shadow:rgba(0,0,0,.7) 0 5px 20px 2px;background-color:rgba(0,0,0,.7)}.vel-btns-wrapper .btn__close[data-v-66b25fea],.vel-btns-wrapper .btn__next[data-v-66b25fea],.vel-btns-wrapper .btn__prev[data-v-66b25fea]{cursor:pointer;position:absolute;font-size:60px;color:#fff;opacity:.6;transition:.15s linear}.vel-btns-wrapper .btn__close[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__next[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__prev[data-v-66b25fea]:hover{opacity:1}.vel-btns-wrapper .btn__next.disable[data-v-66b25fea],.vel-btns-wrapper .btn__next.disable[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__prev.disable[data-v-66b25fea],.vel-btns-wrapper .btn__prev.disable[data-v-66b25fea]:hover{cursor:default;opacity:.2}.vel-btns-wrapper .btn__next[data-v-66b25fea]{top:50%;transform:translateY(-50%);right:20px;font-size:40px}.vel-btns-wrapper .btn__prev[data-v-66b25fea]{top:50%;transform:translateY(-50%);left:20px;font-size:40px}.vel-btns-wrapper .btn__close[data-v-66b25fea]{top:10px;right:10px;font-size:40px}.vel-pagination-total[data-v-66b25fea]{position:absolute;font-size:16px;top:16px;left:16px;color:#000}",map:void 0,media:void 0})},__vue_scope_id__$4="data-v-66b25fea",__vue_module_identifier__$4=void 0,__vue_is_functional_template__$4=!1;var VueEasyLightbox$1=normalizeComponent_1({render:__vue_render__$4,staticRenderFns:__vue_staticRenderFns__$4},__vue_inject_styles__$4,__vue_script__$4,"data-v-66b25fea",!1,void 0,browser,void 0),install=function(e){e.component("vue-easy-lightbox",VueEasyLightbox$1)};VueEasyLightbox$1.install=install,"undefined"!=typeof window&&window.Vue&&window.Vue.use(VueEasyLightbox$1.install),module.exports=VueEasyLightbox$1; +"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var Vue=_interopDefault(require("vue"));function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var _global=createCommonjsModule(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),hasOwnProperty={}.hasOwnProperty,_has=function(e,t){return hasOwnProperty.call(e,t)},toString={}.toString,_cof=function(e){return toString.call(e).slice(8,-1)},_isObject=function(e){return"object"==typeof e?null!==e:"function"==typeof e},_anObject=function(e){if(!_isObject(e))throw TypeError(e+" is not an object!");return e},_aFunction=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},_ctx=function(e,t,o){if(_aFunction(e),void 0===t)return e;switch(o){case 1:return function(o){return e.call(t,o)};case 2:return function(o,r){return e.call(t,o,r)};case 3:return function(o,r,n){return e.call(t,o,r,n)}}return function(){return e.apply(t,arguments)}},f={}.propertyIsEnumerable,_objectPie={f:f},_propertyDesc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_iobject=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==_cof(e)?e.split(""):Object(e)},_defined=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},_toIobject=function(e){return _iobject(_defined(e))},_toPrimitive=function(e,t){if(!_isObject(e))return e;var o,r;if(t&&"function"==typeof(o=e.toString)&&!_isObject(r=o.call(e)))return r;if("function"==typeof(o=e.valueOf)&&!_isObject(r=o.call(e)))return r;if(!t&&"function"==typeof(o=e.toString)&&!_isObject(r=o.call(e)))return r;throw TypeError("Can't convert object to primitive value")},_fails=function(e){try{return!!e()}catch(e){return!0}},_descriptors=!_fails(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),document$1=_global.document,is=_isObject(document$1)&&_isObject(document$1.createElement),_domCreate=function(e){return is?document$1.createElement(e):{}},_ie8DomDefine=!_descriptors&&!_fails(function(){return 7!=Object.defineProperty(_domCreate("div"),"a",{get:function(){return 7}}).a}),gOPD=Object.getOwnPropertyDescriptor,f$1=_descriptors?gOPD:function(e,t){if(e=_toIobject(e),t=_toPrimitive(t,!0),_ie8DomDefine)try{return gOPD(e,t)}catch(e){}if(_has(e,t))return _propertyDesc(!_objectPie.f.call(e,t),e[t])},_objectGopd={f:f$1},check=function(e,t){if(_anObject(e),!_isObject(t)&&null!==t)throw TypeError(t+": can't set as prototype!")},_setProto={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=_ctx(Function.call,_objectGopd.f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return check(e,r),t?e.__proto__=r:o(e,r),e}}({},!1):void 0),check:check},setPrototypeOf=_setProto.set,_inheritIfRequired=function(e,t,o){var r,n=t.constructor;return n!==o&&"function"==typeof n&&(r=n.prototype)!==o.prototype&&_isObject(r)&&setPrototypeOf&&setPrototypeOf(e,r),e},ceil=Math.ceil,floor=Math.floor,_toInteger=function(e){return isNaN(e=+e)?0:(e>0?floor:ceil)(e)},min=Math.min,_toLength=function(e){return e>0?min(_toInteger(e),9007199254740991):0},max=Math.max,min$1=Math.min,_toAbsoluteIndex=function(e,t){return(e=_toInteger(e))<0?max(e+t,0):min$1(e,t)},_arrayIncludes=function(e){return function(t,o,r){var n,i=_toIobject(t),a=_toLength(i.length),s=_toAbsoluteIndex(r,a);if(e&&o!=o){for(;a>s;)if((n=i[s++])!=n)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===o)return e||s||0;return!e&&-1}},_core=createCommonjsModule(function(e){var t=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=t)}),_core_1=_core.version,_shared=createCommonjsModule(function(e){var t=_global["__core-js_shared__"]||(_global["__core-js_shared__"]={});(e.exports=function(e,o){return t[e]||(t[e]=void 0!==o?o:{})})("versions",[]).push({version:_core.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),id=0,px=Math.random(),_uid=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++id+px).toString(36))},shared=_shared("keys"),_sharedKey=function(e){return shared[e]||(shared[e]=_uid(e))},arrayIndexOf=_arrayIncludes(!1),IE_PROTO=_sharedKey("IE_PROTO"),_objectKeysInternal=function(e,t){var o,r=_toIobject(e),n=0,i=[];for(o in r)o!=IE_PROTO&&_has(r,o)&&i.push(o);for(;t.length>n;)_has(r,o=t[n++])&&(~arrayIndexOf(i,o)||i.push(o));return i},_enumBugKeys="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),hiddenKeys=_enumBugKeys.concat("length","prototype"),f$2=Object.getOwnPropertyNames||function(e){return _objectKeysInternal(e,hiddenKeys)},_objectGopn={f:f$2},dP=Object.defineProperty,f$3=_descriptors?Object.defineProperty:function(e,t,o){if(_anObject(e),t=_toPrimitive(t,!0),_anObject(o),_ie8DomDefine)try{return dP(e,t,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(e[t]=o.value),e},_objectDp={f:f$3},_hide=_descriptors?function(e,t,o){return _objectDp.f(e,t,_propertyDesc(1,o))}:function(e,t,o){return e[t]=o,e},_functionToString=_shared("native-function-to-string",Function.toString),_redefine=createCommonjsModule(function(e){var t=_uid("src"),o=(""+_functionToString).split("toString");_core.inspectSource=function(e){return _functionToString.call(e)},(e.exports=function(e,r,n,i){var a="function"==typeof n;a&&(_has(n,"name")||_hide(n,"name",r)),e[r]!==n&&(a&&(_has(n,t)||_hide(n,t,e[r]?""+e[r]:o.join(String(r)))),e===_global?e[r]=n:i?e[r]?e[r]=n:_hide(e,r,n):(delete e[r],_hide(e,r,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[t]||_functionToString.call(this)})}),PROTOTYPE="prototype",$export=function(e,t,o){var r,n,i,a,s=e&$export.F,c=e&$export.G,l=e&$export.S,_=e&$export.P,d=e&$export.B,u=c?_global:l?_global[t]||(_global[t]={}):(_global[t]||{})[PROTOTYPE],p=c?_core:_core[t]||(_core[t]={}),f=p[PROTOTYPE]||(p[PROTOTYPE]={});for(r in c&&(o=t),o)i=((n=!s&&u&&void 0!==u[r])?u:o)[r],a=d&&n?_ctx(i,_global):_&&"function"==typeof i?_ctx(Function.call,i):i,u&&_redefine(u,r,i,e&$export.U),p[r]!=i&&_hide(p,r,a),_&&f[r]!=i&&(f[r]=i)};_global.core=_core,$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128;var _export=$export,_stringWs="\t\n\v\f\r \u2028\u2029\ufeff",space="["+_stringWs+"]",non=" ",ltrim=RegExp("^"+space+space+"*"),rtrim=RegExp(space+space+"*$"),exporter=function(e,t,o){var r={},n=_fails(function(){return!!_stringWs[e]()||non[e]()!=non}),i=r[e]=n?t(trim):_stringWs[e];o&&(r[o]=i),_export(_export.P+_export.F*n,"String",r)},trim=exporter.trim=function(e,t){return e=String(_defined(e)),1&t&&(e=e.replace(ltrim,"")),2&t&&(e=e.replace(rtrim,"")),e},_stringTrim=exporter,_objectKeys=Object.keys||function(e){return _objectKeysInternal(e,_enumBugKeys)},_objectDps=_descriptors?Object.defineProperties:function(e,t){_anObject(e);for(var o,r=_objectKeys(t),n=r.length,i=0;n>i;)_objectDp.f(e,o=r[i++],t[o]);return e},document$2=_global.document,_html=document$2&&document$2.documentElement,IE_PROTO$1=_sharedKey("IE_PROTO"),Empty=function(){},PROTOTYPE$1="prototype",createDict=function(){var e,t=_domCreate("iframe"),o=_enumBugKeys.length;for(t.style.display="none",_html.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),createDict=e.F;o--;)delete createDict[PROTOTYPE$1][_enumBugKeys[o]];return createDict()},_objectCreate=Object.create||function(e,t){var o;return null!==e?(Empty[PROTOTYPE$1]=_anObject(e),o=new Empty,Empty[PROTOTYPE$1]=null,o[IE_PROTO$1]=e):o=createDict(),void 0===t?o:_objectDps(o,t)},gOPN=_objectGopn.f,gOPD$1=_objectGopd.f,dP$1=_objectDp.f,$trim=_stringTrim.trim,NUMBER="Number",$Number=_global[NUMBER],Base=$Number,proto=$Number.prototype,BROKEN_COF=_cof(_objectCreate(proto))==NUMBER,TRIM="trim"in String.prototype,toNumber=function(e){var t=_toPrimitive(e,!1);if("string"==typeof t&&t.length>2){var o,r,n,i=(t=TRIM?t.trim():$trim(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(o=t.charCodeAt(2))||120===o)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+t}for(var a,s=t.slice(2),c=0,l=s.length;c<l;c++)if((a=s.charCodeAt(c))<48||a>n)return NaN;return parseInt(s,r)}}return+t};if(!$Number(" 0o1")||!$Number("0b1")||$Number("+0x1")){$Number=function(e){var t=arguments.length<1?0:e,o=this;return o instanceof $Number&&(BROKEN_COF?_fails(function(){proto.valueOf.call(o)}):_cof(o)!=NUMBER)?_inheritIfRequired(new Base(toNumber(t)),o,$Number):toNumber(t)};for(var key,keys=_descriptors?gOPN(Base):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),j=0;keys.length>j;j++)_has(Base,key=keys[j])&&!_has($Number,key)&&dP$1($Number,key,gOPD$1(Base,key));$Number.prototype=proto,proto.constructor=$Number,_redefine(_global,NUMBER,$Number)}var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function __extends(e,t){function o(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}function __decorate(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}var reflectionIsSupported="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function copyReflectionMetadata(e,t){forwardMetadata(e,t),Object.getOwnPropertyNames(t.prototype).forEach(function(o){forwardMetadata(e.prototype,t.prototype,o)}),Object.getOwnPropertyNames(t).forEach(function(o){forwardMetadata(e,t,o)})}function forwardMetadata(e,t,o){(o?Reflect.getOwnMetadataKeys(t,o):Reflect.getOwnMetadataKeys(t)).forEach(function(r){var n=o?Reflect.getOwnMetadata(r,t,o):Reflect.getOwnMetadata(r,t);o?Reflect.defineMetadata(r,n,e,o):Reflect.defineMetadata(r,n,e)})}var fakeArray={__proto__:[]},hasProto=fakeArray instanceof Array;function createDecorator(e){return function(t,o,r){var n="function"==typeof t?t:t.constructor;n.__decorators__||(n.__decorators__=[]),"number"!=typeof r&&(r=void 0),n.__decorators__.push(function(t){return e(t,o,r)})}}function isPrimitive(e){var t=typeof e;return null==e||"object"!==t&&"function"!==t}function collectDataFromConstructor(e,t){var o=t.prototype._init;t.prototype._init=function(){var t=this,o=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||o.push(r);o.forEach(function(o){"_"!==o.charAt(0)&&Object.defineProperty(t,o,{get:function(){return e[o]},set:function(t){e[o]=t},configurable:!0})})};var r=new t;t.prototype._init=o;var n={};return Object.keys(r).forEach(function(e){void 0!==r[e]&&(n[e]=r[e])}),n}var $internalHooks=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function componentFactory(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var o=e.prototype;Object.getOwnPropertyNames(o).forEach(function(e){if("constructor"!==e)if($internalHooks.indexOf(e)>-1)t[e]=o[e];else{var r=Object.getOwnPropertyDescriptor(o,e);void 0!==r.value?"function"==typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(t.mixins||(t.mixins=[])).push({data:function(){var t;return(t={})[e]=r.value,t}}):(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}}),(t.mixins||(t.mixins=[])).push({data:function(){return collectDataFromConstructor(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(e){return e(t)}),delete e.__decorators__);var n=Object.getPrototypeOf(e.prototype),i=n instanceof Vue?n.constructor:Vue,a=i.extend(t);return forwardStaticMembers(a,e,i),reflectionIsSupported&©ReflectionMetadata(a,e),a}var shouldIgnore={prototype:!0,arguments:!0,callee:!0,caller:!0};function forwardStaticMembers(e,t,o){Object.getOwnPropertyNames(t).forEach(function(r){if(!shouldIgnore[r]){var n=Object.getOwnPropertyDescriptor(e,r);if(!n||n.configurable){var i=Object.getOwnPropertyDescriptor(t,r);if(!hasProto){if("cid"===r)return;var a=Object.getOwnPropertyDescriptor(o,r);if(!isPrimitive(i.value)&&a&&a.value===i.value)return}Object.defineProperty(e,r,i)}}})}function Component(e){return"function"==typeof e?componentFactory(e):function(t){return componentFactory(t,e)}}Component.registerHooks=function(e){$internalHooks.push.apply($internalHooks,e)};var reflectMetadataIsSupported="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function applyMetadata(e,t,o){reflectMetadataIsSupported&&(Array.isArray(e)||"function"==typeof e||void 0!==e.type||(e.type=Reflect.getMetadata("design:type",t,o)))}function Prop(e){return void 0===e&&(e={}),function(t,o){applyMetadata(e,t,o),createDecorator(function(t,o){(t.props||(t.props={}))[o]=e})(t,o)}}function Watch(e,t){void 0===t&&(t={});var o=t.deep,r=void 0!==o&&o,n=t.immediate,i=void 0!==n&&n;return createDecorator(function(t,o){"object"!=typeof t.watch&&(t.watch=Object.create(null));var n=t.watch;"object"!=typeof n[e]||Array.isArray(n[e])?void 0===n[e]&&(n[e]=[]):n[e]=[n[e]],n[e].push({handler:o,deep:r,immediate:i})})}!function(e){var t,o='<svg><symbol id="icon-prev" viewBox="0 0 1024 1024"><path d="M784.652701 955.6957 346.601985 517.644983c-2.822492-2.822492-2.822492-7.902977 0-11.289967l439.179713-439.179713c6.77398-6.77398 10.725469-16.370452 10.725469-25.966924L796.507166 36.692393c0-20.32194-16.370452-36.692393-36.692393-36.692393l-4.515987 0c-9.596472 0-19.192944 3.951488-25.966924 10.725469L250.072767 489.420066c-12.418964 12.418964-12.418964 32.740904 0 45.159868l477.565601 477.565601c7.338479 7.338479 17.499449 11.854465 28.224917 11.854465l0 0c22.015436 0 40.079383-18.063947 40.079383-40.079383l0 0C796.507166 973.759647 791.99118 963.598677 784.652701 955.6957z" ></path></symbol><symbol id="icon-next" viewBox="0 0 1024 1024"><path d="M246.121279 955.6957l438.050717-438.050717c2.822492-2.822492 2.822492-7.902977 0-11.289967L244.992282 67.175303c-6.77398-6.77398-10.725469-16.370452-10.725469-25.966924L234.266814 36.692393C234.266814 16.370452 250.637266 0 270.959206 0l4.515987 0c9.596472 0 19.192944 3.951488 25.966924 10.725469l478.694598 478.694598c12.418964 12.418964 12.418964 32.740904 0 45.159868l-477.565601 477.565601c-7.338479 7.338479-17.499449 11.854465-28.224917 11.854465l0 0c-22.015436 0-40.079383-18.063947-40.079383-40.079383l0 0C234.266814 973.759647 238.7828 963.598677 246.121279 955.6957z" ></path></symbol><symbol id="icon-zoomin" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path><path d="M367.488 238.144h127.104v390.72H367.488z" ></path></symbol><symbol id="icon-rotate" viewBox="0 0 1024 1024"><path d="M288 352v192h128v64h-128v64h192v-320h-192z m128 128h-64v-64h64v64zM544 352v320h192v-320h-192z m128 256h-64v-192h64v192zM957.44 531.84h1.344v-1.92l-1.344 1.92z" ></path><path d="M46.72 474.88l35.84 55.04 1.28 1.92 35.84 55.04 60.16-119.04-32 1.92C168.96 277.76 331.52 128 529.28 128c211.904 0 384 172.16 384 384s-172.096 384-384 384c-140.16 0-263.04-75.52-329.6-188.16h-1.92l-0.64 0.64-53.12 31.36A446.592 446.592 0 0 0 529.28 960c247.744 0 448-200.32 448-448s-200.256-448-448-448C294.4 64 102.4 243.84 83.2 472.96l-36.48 1.92z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M570.24 512l259.2 259.2-58.88 58.24L512 570.24l-261.12 261.12-58.24-58.24L453.76 512 194.56 252.8l58.24-58.24L512 453.76l261.12-261.12 58.24 58.24z" ></path></symbol><symbol id="icon-zoomout" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path></symbol><symbol id="icon-img-broken" viewBox="0 0 1024 1024"><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m0 682.666667H213.333333v-195.413334l42.24 42.24 170.666667-170.666666 170.666667 170.666666 170.666666-170.24L810.666667 530.346667V810.666667z m0-401.493334l-43.093334-43.093333-170.666666 171.093333-170.666667-170.666666-170.666667 170.666666-42.24-42.666666V213.333333h597.333334v195.84z" ></path></symbol></svg>';if((t=document.getElementsByTagName("script"))[t.length-1].getAttribute("data-injectcss")&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(t){console&&console.log(t)}}!function(t){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(t,0);else{document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e,!1),t()},!1)}else document.attachEvent&&(r=t,n=e.document,i=!1,(a=function(){try{n.documentElement.doScroll("left")}catch(e){return void setTimeout(a,50)}o()})(),n.onreadystatechange=function(){"complete"==n.readyState&&(n.onreadystatechange=null,o())});function o(){i||(i=!0,r())}var r,n,i,a}(function(){var e,t;(e=document.createElement("div")).innerHTML=o,o=null,(t=e.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",function(e,t){t.firstChild?function(e,t){t.parentNode.insertBefore(e,t)}(e,t.firstChild):t.appendChild(e)}(t,document.body))})}(window);var script=Vue.extend({props:{type:{type:String,default:""}},data:function(){return{prefixCls:"vel"}}});function normalizeComponent(e,t,o,r,n,i,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var _,d="function"==typeof o?o.options:o;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,n&&(d.functional=!0)),r&&(d._scopeId=r),i?(_=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=_):t&&(_=a?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),_)if(d.functional){var u=d.render;d.render=function(e,t){return _.call(t),u(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,_):[_]}return o}var HEAD,normalizeComponent_1=normalizeComponent,isOldIE="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function createInjector(e){return function(e,t){return addStyle(e,t)}}var styles={};function addStyle(e,t){var o=isOldIE?t.media||"default":e,r=styles[o]||(styles[o]={ids:new Set,styles:[]});if(!r.ids.has(e)){r.ids.add(e);var n=t.source;if(t.map&&(n+="\n/*# sourceURL="+t.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",t.media&&r.element.setAttribute("media",t.media),void 0===HEAD&&(HEAD=document.head||document.getElementsByTagName("head")[0]),HEAD.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(n),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{var i=r.ids.size-1,a=document.createTextNode(n),s=r.element.childNodes;s[i]&&r.element.removeChild(s[i]),s.length?r.element.insertBefore(a,s[i]):r.element.appendChild(a)}}}var browser=createInjector;const __vue_script__=script;var __vue_render__=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{class:this.prefixCls+"-icon icon",attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-"+this.type}})])},__vue_staticRenderFns__=[];const __vue_inject_styles__=function(e){e&&e("data-v-7221e0ec_0",{source:".vel-icon[data-v-7221e0ec]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}",map:void 0,media:void 0})},__vue_scope_id__="data-v-7221e0ec",__vue_module_identifier__=void 0,__vue_is_functional_template__=!1;var SvgIcon=normalizeComponent_1({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__,__vue_scope_id__,!1,void 0,browser,void 0),prefixCls="vel",voidFn=function(){},script$1=Vue.extend({components:{SvgIcon:SvgIcon},props:{zoomIn:{type:Function,default:voidFn},zoomOut:{type:Function,default:voidFn},rotate:{type:Function,default:voidFn}},data:function(){return{prefixCls:prefixCls}}});const __vue_script__$1=script$1;var __vue_render__$1=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-toolbar"},[t("div",{staticClass:"toobar-btn toolbar-btn__zoomin",on:{click:this.zoomIn}},[t("svg-icon",{attrs:{type:"zoomin"}})],1),this._v(" "),t("div",{staticClass:"toobar-btn toolbar-btn__zoomout",on:{click:this.zoomOut}},[t("svg-icon",{attrs:{type:"zoomout"}})],1),this._v(" "),t("div",{staticClass:"toobar-btn toolbar-btn__rotate",on:{click:this.rotate}},[t("svg-icon",{attrs:{type:"rotate"}})],1)])},__vue_staticRenderFns__$1=[];const __vue_inject_styles__$1=function(e){e&&e("data-v-36fa02a2_0",{source:".vel-toolbar[data-v-36fa02a2]{user-select:none;position:absolute;bottom:0;left:50%;transform:translate(-50%);background:rgba(45,45,44,.8);border-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;padding:6px 24px 0}.vel-toolbar .toobar-btn[data-v-36fa02a2]{cursor:pointer;display:inline-block;padding:2px 4px}.vel-toolbar .toobar-btn[data-v-36fa02a2]{font-size:32px;color:#fff}.vel-toolbar .toobar-btn[data-v-36fa02a2]:hover{color:#54b4ee}",map:void 0,media:void 0})},__vue_scope_id__$1="data-v-36fa02a2",__vue_module_identifier__$1=void 0,__vue_is_functional_template__$1=!1;var Toolbar=normalizeComponent_1({render:__vue_render__$1,staticRenderFns:__vue_staticRenderFns__$1},__vue_inject_styles__$1,__vue_script__$1,"data-v-36fa02a2",!1,void 0,browser,void 0),script$2=Vue.extend({data:function(){return{prefixCls:prefixCls}}});const __vue_script__$2=script$2;var __vue_render__$2=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-loading"},[t("div",{staticClass:"ring"})])},__vue_staticRenderFns__$2=[];const __vue_inject_styles__$2=function(e){e&&e("data-v-0cefeb9a_0",{source:'.vel-loading[data-v-0cefeb9a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-loading .ring[data-v-0cefeb9a]{display:inline-block;width:64px;height:64px}.vel-loading .ring[data-v-0cefeb9a]:after{content:" ";display:block;width:46px;height:46px;margin:1px;border-radius:50%;border:5px solid rgba(255,255,255,.7);border-color:rgba(255,255,255,.7) transparent rgba(255,255,255,.7) transparent;animation:ring-data-v-0cefeb9a 1.2s linear infinite}@keyframes ring-data-v-0cefeb9a{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',map:void 0,media:void 0})},__vue_scope_id__$2="data-v-0cefeb9a",__vue_module_identifier__$2=void 0,__vue_is_functional_template__$2=!1;var ImgLoading=normalizeComponent_1({render:__vue_render__$2,staticRenderFns:__vue_staticRenderFns__$2},__vue_inject_styles__$2,__vue_script__$2,"data-v-0cefeb9a",!1,void 0,browser,void 0),script$3=Vue.extend({components:{SvgIcon:SvgIcon},data:function(){return{prefixCls:prefixCls}}});const __vue_script__$3=script$3;var __vue_render__$3=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-on-error"},[t("svg-icon",{attrs:{clas:"icon",type:"img-broken"}})],1)},__vue_staticRenderFns__$3=[];const __vue_inject_styles__$3=function(e){e&&e("data-v-137806a2_0",{source:".vel-on-error[data-v-137806a2]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-on-error .icon[data-v-137806a2]{font-size:80px;color:#aaa}",map:void 0,media:void 0})},__vue_scope_id__$3="data-v-137806a2",__vue_module_identifier__$3=void 0,__vue_is_functional_template__$3=!1;var ImgOnError=normalizeComponent_1({render:__vue_render__$3,staticRenderFns:__vue_staticRenderFns__$3},__vue_inject_styles__$3,__vue_script__$3,"data-v-137806a2",!1,void 0,browser,void 0),isServer=Vue.prototype.$isServer,supportsPassive=!1;if(!isServer)try{var options={};Object.defineProperty(options,"passive",{get:function(){supportsPassive=!0}}),window.addEventListener("test-passive",function(){},options)}catch(e){}var on=function(e,t,o,r){void 0===r&&(r=!1),isServer||e.addEventListener(t,o,!!supportsPassive&&{capture:!1,passive:r})},off=function(e,t,o){isServer||e.removeEventListener(t,o)},VueEasyLightbox=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.prefixCls=prefixCls,t.scale=1,t.rotateDeg=0,t.imgIndex=0,t.top=0,t.left=0,t.lastX=0,t.lastY=0,t.isDraging=!1,t.loading=!1,t.loadError=!1,t}return __extends(t,e),Object.defineProperty(t.prototype,"imgList",{get:function(){return Array.isArray(this.imgs)?this.imgs:[this.imgs]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleImgSrc",{get:function(){return this.imgList[this.imgIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imgTotal",{get:function(){return this.imgList.length||0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imgWrapperStyle",{get:function(){var e=this,t=e.scale,o=e.top,r=e.left,n=(e.rotateDeg,e.moveDisabled),i=e.loadError;return{transform:"translate(-50%, -50%) scale("+t+")",top:"calc(50% + "+o+"px)",left:"calc(50% + "+r+"px)",cursor:n||i?"default":"move"}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imgStyle",{get:function(){return{transform:"rotate(-"+this.rotateDeg+"deg)"}},enumerable:!0,configurable:!0}),t.prototype.checkMouseEventPropButton=function(e){return!this.moveDisabled&&0===e},t.prototype.handleMouseDown=function(e){this.checkMouseEventPropButton(e.button)&&(this.lastX=e.clientX,this.lastY=e.clientY,this.isDraging=!0,e.stopPropagation())},t.prototype.handleMouseUp=function(e){this.checkMouseEventPropButton(e.button)&&(this.isDraging=!1,this.lastX=this.lastY=0)},t.prototype.handleMouseMove=function(e){this.checkMouseEventPropButton(e.button)&&(this.isDraging&&(this.top=this.top-this.lastY+e.clientY,this.left=this.left-this.lastX+e.clientX,this.lastX=e.clientX,this.lastY=e.clientY),e.stopPropagation())},t.prototype.escapePressHandler=function(e){"Escape"===e.key&&this.visible&&this.closeDialog()},t.prototype.handleImgLoad=function(e){this.loading=!1},t.prototype.handleImgError=function(e){this.loading=!1,this.loadError=!0,this.$emit("on-error",e)},t.prototype.zoomIn=function(){this.scale+=.25},t.prototype.zoomOut=function(){0!==this.scale&&(this.scale-=.25)},t.prototype.rotate=function(){this.rotateDeg+=90},t.prototype.onNextClick=function(){this.onIndexChange(this.imgIndex+1)},t.prototype.onPrevClick=function(){this.onIndexChange(this.imgIndex-1)},t.prototype.closeDialog=function(){this.$emit("hide")},t.prototype.reset=function(){this.scale=1,this.rotateDeg=0,this.top=0,this.left=0,this.isDraging=!1,this.loading=!0,this.loadError=!1},t.prototype.init=function(){this.imgIndex=this.index,this.reset()},t.prototype.onVisibleChanged=function(e){this.visible&&this.init()},t.prototype.onIndexChange=function(e){var t=this;this.visible&&(e>this.imgList.length-1||e<0||(this.reset(),this.imgIndex=e,this.imgList[this.imgIndex]===this.imgList[e]&&this.$nextTick(function(){t.loading=!1})))},t.prototype.mounted=function(){this.escDisabled||on(document,"keydown",this.escapePressHandler)},t.prototype.beforeDestroy=function(){this.escDisabled||off(document,"keydown",this.escapePressHandler)},__decorate([Prop({type:[Array,String],default:function(){return""}})],t.prototype,"imgs",void 0),__decorate([Prop({type:Boolean,default:!1})],t.prototype,"visible",void 0),__decorate([Prop({type:Number,default:0})],t.prototype,"index",void 0),__decorate([Prop({type:Boolean,default:!1})],t.prototype,"escDisabled",void 0),__decorate([Prop({type:Boolean,default:!1})],t.prototype,"moveDisabled",void 0),__decorate([Watch("visible",{immediate:!0})],t.prototype,"onVisibleChanged",null),__decorate([Watch("index")],t.prototype,"onIndexChange",null),t=__decorate([Component({name:"vue-easy-lightbox",components:{SvgIcon:SvgIcon,Toolbar:Toolbar,ImgLoading:ImgLoading,ImgOnError:ImgOnError}})],t)}(Vue);const __vue_script__$4=VueEasyLightbox;var __vue_render__$4=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("transition",{attrs:{name:e.prefixCls+"-fade"}},[e.visible?o("div",{class:[e.prefixCls+"-img-modal",e.prefixCls+"-modal"],on:{click:function(t){return t.target!==t.currentTarget?null:e.closeDialog(t)}}},[o("transition",{attrs:{name:e.prefixCls+"-fade",mode:"out-in"}},[e.loading?e._t("loading",[o("img-loading")]):e._e(),e._v(" "),e.loadError?e._t("onerror",[o("img-on-error")]):e._e(),e._v(" "),e.loading||e.loadError?e._e():o("div",{class:e.prefixCls+"-img-wrapper",style:e.imgWrapperStyle},[o("img",{class:e.prefixCls+"-img",style:e.imgStyle,attrs:{src:e.visibleImgSrc,draggable:"false"},on:{mousedown:function(t){return e.handleMouseDown(t)},mouseup:function(t){return e.handleMouseUp(t)},mousemove:function(t){return e.handleMouseMove(t)}}})])],2),e._v(" "),o("img",{staticStyle:{display:"none"},attrs:{src:e.visibleImgSrc},on:{error:e.handleImgError,load:e.handleImgLoad}}),e._v(" "),o("div",{class:e.prefixCls+"-btns-wrapper"},[e._t("prev-btn",[1!==e.imgList.length?o("div",{staticClass:"btn__prev",class:{disable:0===e.imgIndex},on:{click:e.onPrevClick}},[o("svg-icon",{attrs:{type:"prev"}})],1):e._e()],{prev:e.onPrevClick}),e._v(" "),e._t("next-btn",[1!==e.imgList.length?o("div",{staticClass:"btn__next",class:{disable:e.imgIndex===e.imgList.length-1},on:{click:e.onNextClick}},[o("svg-icon",{attrs:{type:"next"}})],1):e._e()],{next:e.onNextClick}),e._v(" "),e._t("close-btn",[o("div",{staticClass:"btn__close",on:{click:e.closeDialog}},[o("svg-icon",{attrs:{type:"close"}})],1)],{close:e.closeDialog}),e._v(" "),e._t("toolbar",[o("toolbar",{attrs:{prefixCls:e.prefixCls,zoomIn:e.zoomIn,zoomOut:e.zoomOut,rotate:e.rotate}})],{toolbarMethods:{zoomIn:e.zoomIn,zoomOut:e.zoomOut,rotate:e.rotate}})],2),e._v(" "),1!==e.imgList.length?o("div",{class:e.prefixCls+"-pagination-total"},[e._v(e._s(e.imgIndex+1)+"/"+e._s(e.imgTotal))]):e._e()],1):e._e()])},__vue_staticRenderFns__$4=[];const __vue_inject_styles__$4=function(e){e&&e("data-v-4de35050_0",{source:".vel-fade-enter-active[data-v-4de35050],.vel-fade-leave-active[data-v-4de35050]{transition:all .3s ease}.vel-fade-enter[data-v-4de35050],.vel-fade-leave-to[data-v-4de35050]{opacity:0}.vel-img-swiper[data-v-4de35050]{position:relative;display:block}.vel-modal[data-v-4de35050]{z-index:9998;position:fixed;top:0;left:0;right:0;bottom:0;margin:0;background:rgba(0,0,0,.5)}.vel-img-wrapper[data-v-4de35050]{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50% -50%);transition:.3s ease-in-out}.vel-img[data-v-4de35050]{max-width:80vw;max-height:80vh;vertical-align:middle;position:relative;transition:transform .3s ease-in-out;box-shadow:rgba(0,0,0,.7) 0 5px 20px 2px;background-color:rgba(0,0,0,.7)}.vel-btns-wrapper .btn__close[data-v-4de35050],.vel-btns-wrapper .btn__next[data-v-4de35050],.vel-btns-wrapper .btn__prev[data-v-4de35050]{cursor:pointer;position:absolute;font-size:60px;color:#fff;opacity:.6;transition:.15s linear}.vel-btns-wrapper .btn__close[data-v-4de35050]:hover,.vel-btns-wrapper .btn__next[data-v-4de35050]:hover,.vel-btns-wrapper .btn__prev[data-v-4de35050]:hover{opacity:1}.vel-btns-wrapper .btn__next.disable[data-v-4de35050],.vel-btns-wrapper .btn__next.disable[data-v-4de35050]:hover,.vel-btns-wrapper .btn__prev.disable[data-v-4de35050],.vel-btns-wrapper .btn__prev.disable[data-v-4de35050]:hover{cursor:default;opacity:.2}.vel-btns-wrapper .btn__next[data-v-4de35050]{top:50%;transform:translateY(-50%);right:20px;font-size:40px}.vel-btns-wrapper .btn__prev[data-v-4de35050]{top:50%;transform:translateY(-50%);left:20px;font-size:40px}.vel-btns-wrapper .btn__close[data-v-4de35050]{top:10px;right:10px;font-size:40px}.vel-pagination-total[data-v-4de35050]{position:absolute;font-size:16px;top:16px;left:16px;color:#000}",map:void 0,media:void 0})},__vue_scope_id__$4="data-v-4de35050",__vue_module_identifier__$4=void 0,__vue_is_functional_template__$4=!1;var VueEasyLightbox$1=normalizeComponent_1({render:__vue_render__$4,staticRenderFns:__vue_staticRenderFns__$4},__vue_inject_styles__$4,__vue_script__$4,"data-v-4de35050",!1,void 0,browser,void 0),install=function(e){e.component("vue-easy-lightbox",VueEasyLightbox$1)};VueEasyLightbox$1.install=install,"undefined"!=typeof window&&window.Vue&&window.Vue.use(VueEasyLightbox$1.install),module.exports=VueEasyLightbox$1; diff --git a/dist/vue-easy-lightbox.es5.esm.min.js b/dist/vue-easy-lightbox.es5.esm.min.js index 9939e19..e0cb321 100644 --- a/dist/vue-easy-lightbox.es5.esm.min.js +++ b/dist/vue-easy-lightbox.es5.esm.min.js @@ -1 +1 @@ -import t from"vue";function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,o=e(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),r={}.hasOwnProperty,i=function(t,e){return r.call(t,e)},a={}.toString,s=function(t){return a.call(t).slice(8,-1)},c=function(t){return"object"==typeof t?null!==t:"function"==typeof t},l=function(t){if(!c(t))throw TypeError(t+" is not an object!");return t},p=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}},u={f:{}.propertyIsEnumerable},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==s(t)?t.split(""):Object(t)},v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},h=function(t){return d(v(t))},m=function(t,e){if(!c(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!c(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!c(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!c(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")},b=function(t){try{return!!t()}catch(t){return!0}},g=!b(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),y=o.document,_=c(y)&&c(y.createElement),x=function(t){return _?y.createElement(t):{}},w=!g&&!b(function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a}),O=Object.getOwnPropertyDescriptor,C={f:g?O:function(t,e){if(t=h(t),e=m(e,!0),w)try{return O(t,e)}catch(t){}if(i(t,e))return f(!u.f.call(t,e),t[e])}},E=function(t,e){if(l(t),!c(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},I={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=p(Function.call,C.f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,o){return E(t,o),e?t.__proto__=o:n(t,o),t}}({},!1):void 0),check:E}.set,j=Math.ceil,M=Math.floor,P=function(t){return isNaN(t=+t)?0:(t>0?M:j)(t)},z=Math.min,S=Math.max,N=Math.min,k=e(function(t){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)}),L=(k.version,e(function(t){var e=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return e[t]||(e[t]=void 0!==n?n:{})})("versions",[]).push({version:k.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),R=0,D=Math.random(),T=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++R+D).toString(36))},A=L("keys"),F=function(t){return A[t]||(A[t]=T(t))},B=(n=!1,function(t,e,o){var r,i,a=h(t),s=(r=a.length)>0?z(P(r),9007199254740991):0,c=function(t,e){return(t=P(t))<0?S(t+e,0):N(t,e)}(o,s);if(n&&e!=e){for(;s>c;)if((i=a[c++])!=i)return!0}else for(;s>c;c++)if((n||c in a)&&a[c]===e)return n||c||0;return!n&&-1}),$=F("IE_PROTO"),V=function(t,e){var n,o=h(t),r=0,a=[];for(n in o)n!=$&&i(o,n)&&a.push(n);for(;e.length>r;)i(o,n=e[r++])&&(~B(a,n)||a.push(n));return a},U="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),X=U.concat("length","prototype"),Y={f:Object.getOwnPropertyNames||function(t){return V(t,X)}},H=Object.defineProperty,G={f:g?Object.defineProperty:function(t,e,n){if(l(t),e=m(e,!0),l(n),w)try{return H(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},W=g?function(t,e,n){return G.f(t,e,f(1,n))}:function(t,e,n){return t[e]=n,t},K=L("native-function-to-string",Function.toString),J=e(function(t){var e=T("src"),n=(""+K).split("toString");k.inspectSource=function(t){return K.call(t)},(t.exports=function(t,r,a,s){var c="function"==typeof a;c&&(i(a,"name")||W(a,"name",r)),t[r]!==a&&(c&&(i(a,e)||W(a,e,t[r]?""+t[r]:n.join(String(r)))),t===o?t[r]=a:s?t[r]?t[r]=a:W(t,r,a):(delete t[r],W(t,r,a)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[e]||K.call(this)})}),q=function(t,e,n){var r,i,a,s,c=t&q.F,l=t&q.G,u=t&q.S,f=t&q.P,d=t&q.B,v=l?o:u?o[e]||(o[e]={}):(o[e]||{}).prototype,h=l?k:k[e]||(k[e]={}),m=h.prototype||(h.prototype={});for(r in l&&(n=e),n)a=((i=!c&&v&&void 0!==v[r])?v:n)[r],s=d&&i?p(a,o):f&&"function"==typeof a?p(Function.call,a):a,v&&J(v,r,a,t&q.U),h[r]!=a&&W(h,r,s),f&&m[r]!=a&&(m[r]=a)};o.core=k,q.F=1,q.G=2,q.S=4,q.P=8,q.B=16,q.W=32,q.U=64,q.R=128;var Q=q,Z="\t\n\v\f\r \u2028\u2029\ufeff",tt="["+Z+"]",et=RegExp("^"+tt+tt+"*"),nt=RegExp(tt+tt+"*$"),ot=function(t,e,n){var o={},r=b(function(){return!!Z[t]()||" "!=" "[t]()}),i=o[t]=r?e(rt):Z[t];n&&(o[n]=i),Q(Q.P+Q.F*r,"String",o)},rt=ot.trim=function(t,e){return t=String(v(t)),1&e&&(t=t.replace(et,"")),2&e&&(t=t.replace(nt,"")),t},it=ot,at=Object.keys||function(t){return V(t,U)},st=g?Object.defineProperties:function(t,e){l(t);for(var n,o=at(e),r=o.length,i=0;r>i;)G.f(t,n=o[i++],e[n]);return t},ct=o.document,lt=ct&&ct.documentElement,pt=F("IE_PROTO"),ut=function(){},ft=function(){var t,e=x("iframe"),n=U.length;for(e.style.display="none",lt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),ft=t.F;n--;)delete ft.prototype[U[n]];return ft()},dt=Object.create||function(t,e){var n;return null!==t?(ut.prototype=l(t),n=new ut,ut.prototype=null,n[pt]=t):n=ft(),void 0===e?n:st(n,e)},vt=Y.f,ht=C.f,mt=G.f,bt=it.trim,gt=o.Number,yt=gt,_t=gt.prototype,xt="Number"==s(dt(_t)),wt="trim"in String.prototype,Ot=function(t){var e=m(t,!1);if("string"==typeof e&&e.length>2){var n,o,r,i=(e=wt?e.trim():bt(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+e}for(var a,s=e.slice(2),c=0,l=s.length;c<l;c++)if((a=s.charCodeAt(c))<48||a>r)return NaN;return parseInt(s,o)}}return+e};if(!gt(" 0o1")||!gt("0b1")||gt("+0x1")){gt=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof gt&&(xt?b(function(){_t.valueOf.call(n)}):"Number"!=s(n))?function(t,e,n){var o,r=e.constructor;return r!==n&&"function"==typeof r&&(o=r.prototype)!==n.prototype&&c(o)&&I&&I(t,o),t}(new yt(Ot(e)),n,gt):Ot(e)};for(var Ct,Et=g?vt(yt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),It=0;Et.length>It;It++)i(yt,Ct=Et[It])&&!i(gt,Ct)&&mt(gt,Ct,ht(yt,Ct));gt.prototype=_t,_t.constructor=gt,J(o,"Number",gt)}var jt=function(t,e){return(jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function Mt(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}var Pt="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function zt(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach(function(o){var r=n?Reflect.getOwnMetadata(o,e,n):Reflect.getOwnMetadata(o,e);n?Reflect.defineMetadata(o,r,t,n):Reflect.defineMetadata(o,r,t)})}var St={__proto__:[]}instanceof Array;function Nt(t){return function(e,n,o){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof o&&(o=void 0),r.__decorators__.push(function(e){return t(e,n,o)})}}var kt=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function Lt(e,n){void 0===n&&(n={}),n.name=n.name||e._componentTag||e.name;var o=e.prototype;Object.getOwnPropertyNames(o).forEach(function(t){if("constructor"!==t)if(kt.indexOf(t)>-1)n[t]=o[t];else{var e=Object.getOwnPropertyDescriptor(o,t);void 0!==e.value?"function"==typeof e.value?(n.methods||(n.methods={}))[t]=e.value:(n.mixins||(n.mixins=[])).push({data:function(){var n;return(n={})[t]=e.value,n}}):(e.get||e.set)&&((n.computed||(n.computed={}))[t]={get:e.get,set:e.set})}}),(n.mixins||(n.mixins=[])).push({data:function(){return function(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var o in t.$options.props)t.hasOwnProperty(o)||n.push(o);n.forEach(function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})})};var o=new e;e.prototype._init=n;var r={};return Object.keys(o).forEach(function(t){void 0!==o[t]&&(r[t]=o[t])}),r}(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(t){return t(n)}),delete e.__decorators__);var i,a,s=Object.getPrototypeOf(e.prototype),c=s instanceof t?s.constructor:t,l=c.extend(n);return function(t,e,n){Object.getOwnPropertyNames(e).forEach(function(o){if(!Rt[o]){var r=Object.getOwnPropertyDescriptor(t,o);if(!r||r.configurable){var i,a,s=Object.getOwnPropertyDescriptor(e,o);if(!St){if("cid"===o)return;var c=Object.getOwnPropertyDescriptor(n,o);if(i=s.value,a=typeof i,null!=i&&("object"===a||"function"===a)&&c&&c.value===s.value)return}Object.defineProperty(t,o,s)}}})}(l,e,c),Pt&&(zt(i=l,a=e),Object.getOwnPropertyNames(a.prototype).forEach(function(t){zt(i.prototype,a.prototype,t)}),Object.getOwnPropertyNames(a).forEach(function(t){zt(i,a,t)})),l}var Rt={prototype:!0,arguments:!0,callee:!0,caller:!0};function Dt(t){return"function"==typeof t?Lt(t):function(e){return Lt(e,t)}}Dt.registerHooks=function(t){kt.push.apply(kt,t)};var Tt="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function At(t){return void 0===t&&(t={}),function(e,n){!function(t,e,n){Tt&&(Array.isArray(t)||"function"==typeof t||void 0!==t.type||(t.type=Reflect.getMetadata("design:type",e,n)))}(t,e,n),Nt(function(e,n){(e.props||(e.props={}))[n]=t})(e,n)}}function Ft(t,e){void 0===e&&(e={});var n=e.deep,o=void 0!==n&&n,r=e.immediate,i=void 0!==r&&r;return Nt(function(e,n){"object"!=typeof e.watch&&(e.watch=Object.create(null));var r=e.watch;"object"!=typeof r[t]||Array.isArray(r[t])?void 0===r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:o,immediate:i})})}!function(t){var e,n='<svg><symbol id="icon-prev" viewBox="0 0 1024 1024"><path d="M784.652701 955.6957 346.601985 517.644983c-2.822492-2.822492-2.822492-7.902977 0-11.289967l439.179713-439.179713c6.77398-6.77398 10.725469-16.370452 10.725469-25.966924L796.507166 36.692393c0-20.32194-16.370452-36.692393-36.692393-36.692393l-4.515987 0c-9.596472 0-19.192944 3.951488-25.966924 10.725469L250.072767 489.420066c-12.418964 12.418964-12.418964 32.740904 0 45.159868l477.565601 477.565601c7.338479 7.338479 17.499449 11.854465 28.224917 11.854465l0 0c22.015436 0 40.079383-18.063947 40.079383-40.079383l0 0C796.507166 973.759647 791.99118 963.598677 784.652701 955.6957z" ></path></symbol><symbol id="icon-next" viewBox="0 0 1024 1024"><path d="M246.121279 955.6957l438.050717-438.050717c2.822492-2.822492 2.822492-7.902977 0-11.289967L244.992282 67.175303c-6.77398-6.77398-10.725469-16.370452-10.725469-25.966924L234.266814 36.692393C234.266814 16.370452 250.637266 0 270.959206 0l4.515987 0c9.596472 0 19.192944 3.951488 25.966924 10.725469l478.694598 478.694598c12.418964 12.418964 12.418964 32.740904 0 45.159868l-477.565601 477.565601c-7.338479 7.338479-17.499449 11.854465-28.224917 11.854465l0 0c-22.015436 0-40.079383-18.063947-40.079383-40.079383l0 0C234.266814 973.759647 238.7828 963.598677 246.121279 955.6957z" ></path></symbol><symbol id="icon-zoomin" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path><path d="M367.488 238.144h127.104v390.72H367.488z" ></path></symbol><symbol id="icon-rotate" viewBox="0 0 1024 1024"><path d="M288 352v192h128v64h-128v64h192v-320h-192z m128 128h-64v-64h64v64zM544 352v320h192v-320h-192z m128 256h-64v-192h64v192zM957.44 531.84h1.344v-1.92l-1.344 1.92z" ></path><path d="M46.72 474.88l35.84 55.04 1.28 1.92 35.84 55.04 60.16-119.04-32 1.92C168.96 277.76 331.52 128 529.28 128c211.904 0 384 172.16 384 384s-172.096 384-384 384c-140.16 0-263.04-75.52-329.6-188.16h-1.92l-0.64 0.64-53.12 31.36A446.592 446.592 0 0 0 529.28 960c247.744 0 448-200.32 448-448s-200.256-448-448-448C294.4 64 102.4 243.84 83.2 472.96l-36.48 1.92z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M570.24 512l259.2 259.2-58.88 58.24L512 570.24l-261.12 261.12-58.24-58.24L453.76 512 194.56 252.8l58.24-58.24L512 453.76l261.12-261.12 58.24 58.24z" ></path></symbol><symbol id="icon-zoomout" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path></symbol><symbol id="icon-img-broken" viewBox="0 0 1024 1024"><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m0 682.666667H213.333333v-195.413334l42.24 42.24 170.666667-170.666666 170.666667 170.666666 170.666666-170.24L810.666667 530.346667V810.666667z m0-401.493334l-43.093334-43.093333-170.666666 171.093333-170.666667-170.666666-170.666667 170.666666-42.24-42.666666V213.333333h597.333334v195.84z" ></path></symbol></svg>';if((e=document.getElementsByTagName("script"))[e.length-1].getAttribute("data-injectcss")&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console&&console.log(e)}}!function(e){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(e,0);else{document.addEventListener("DOMContentLoaded",function t(){document.removeEventListener("DOMContentLoaded",t,!1),e()},!1)}else document.attachEvent&&(o=e,r=t.document,i=!1,(a=function(){try{r.documentElement.doScroll("left")}catch(t){return void setTimeout(a,50)}n()})(),r.onreadystatechange=function(){"complete"==r.readyState&&(r.onreadystatechange=null,n())});function n(){i||(i=!0,o())}var o,r,i,a}(function(){var t,e;(t=document.createElement("div")).innerHTML=n,n=null,(e=t.getElementsByTagName("svg")[0])&&(e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.width=0,e.style.height=0,e.style.overflow="hidden",function(t,e){e.firstChild?function(t,e){e.parentNode.insertBefore(t,e)}(t,e.firstChild):e.appendChild(t)}(e,document.body))})}(window);var Bt=t.extend({props:{type:{type:String,default:""}},data:function(){return{prefixCls:"vel"}}});var $t,Vt=function(t,e,n,o,r,i,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var p,u="function"==typeof n?n.options:n;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),o&&(u._scopeId=o),i?(p=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=p):e&&(p=a?function(){e.call(this,l(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),p)if(u.functional){var f=u.render;u.render=function(t,e){return p.call(e),f(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,p):[p]}return n},Ut="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var Xt={};var Yt=function(t){return function(t,e){return function(t,e){var n=Ut?e.media||"default":t,o=Xt[n]||(Xt[n]={ids:new Set,styles:[]});if(!o.ids.has(t)){o.ids.add(t);var r=e.source;if(e.map&&(r+="\n/*# sourceURL="+e.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),o.element||(o.element=document.createElement("style"),o.element.type="text/css",e.media&&o.element.setAttribute("media",e.media),void 0===$t&&($t=document.head||document.getElementsByTagName("head")[0]),$t.appendChild(o.element)),"styleSheet"in o.element)o.styles.push(r),o.element.styleSheet.cssText=o.styles.filter(Boolean).join("\n");else{var i=o.ids.size-1,a=document.createTextNode(r),s=o.element.childNodes;s[i]&&o.element.removeChild(s[i]),s.length?o.element.insertBefore(a,s[i]):o.element.appendChild(a)}}}(t,e)}};var Ht=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{class:this.prefixCls+"-icon icon",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":"#icon-"+this.type}})])},staticRenderFns:[]},function(t){t&&t("data-v-7221e0ec_0",{source:".vel-icon[data-v-7221e0ec]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}",map:void 0,media:void 0})},Bt,"data-v-7221e0ec",!1,void 0,Yt,void 0),Gt="vel",Wt=function(){};var Kt=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-toolbar"},[e("div",{staticClass:"toobar-btn toolbar-btn__zoomin",on:{click:this.zoomIn}},[e("svg-icon",{attrs:{type:"zoomin"}})],1),this._v(" "),e("div",{staticClass:"toobar-btn toolbar-btn__zoomout",on:{click:this.zoomOut}},[e("svg-icon",{attrs:{type:"zoomout"}})],1),this._v(" "),e("div",{staticClass:"toobar-btn toolbar-btn__rotate",on:{click:this.rotate}},[e("svg-icon",{attrs:{type:"rotate"}})],1)])},staticRenderFns:[]},function(t){t&&t("data-v-36fa02a2_0",{source:".vel-toolbar[data-v-36fa02a2]{user-select:none;position:absolute;bottom:0;left:50%;transform:translate(-50%);background:rgba(45,45,44,.8);border-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;padding:6px 24px 0}.vel-toolbar .toobar-btn[data-v-36fa02a2]{cursor:pointer;display:inline-block;padding:2px 4px}.vel-toolbar .toobar-btn[data-v-36fa02a2]{font-size:32px;color:#fff}.vel-toolbar .toobar-btn[data-v-36fa02a2]:hover{color:#54b4ee}",map:void 0,media:void 0})},t.extend({components:{SvgIcon:Ht},props:{zoomIn:{type:Function,default:Wt},zoomOut:{type:Function,default:Wt},rotate:{type:Function,default:Wt}},data:function(){return{prefixCls:Gt}}}),"data-v-36fa02a2",!1,void 0,Yt,void 0);var Jt=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-loading"},[e("div",{staticClass:"ring"})])},staticRenderFns:[]},function(t){t&&t("data-v-0cefeb9a_0",{source:'.vel-loading[data-v-0cefeb9a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-loading .ring[data-v-0cefeb9a]{display:inline-block;width:64px;height:64px}.vel-loading .ring[data-v-0cefeb9a]:after{content:" ";display:block;width:46px;height:46px;margin:1px;border-radius:50%;border:5px solid rgba(255,255,255,.7);border-color:rgba(255,255,255,.7) transparent rgba(255,255,255,.7) transparent;animation:ring-data-v-0cefeb9a 1.2s linear infinite}@keyframes ring-data-v-0cefeb9a{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',map:void 0,media:void 0})},t.extend({data:function(){return{prefixCls:Gt}}}),"data-v-0cefeb9a",!1,void 0,Yt,void 0);var qt=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-on-error"},[e("svg-icon",{attrs:{clas:"icon",type:"img-broken"}})],1)},staticRenderFns:[]},function(t){t&&t("data-v-137806a2_0",{source:".vel-on-error[data-v-137806a2]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-on-error .icon[data-v-137806a2]{font-size:80px;color:#aaa}",map:void 0,media:void 0})},t.extend({components:{SvgIcon:Ht},data:function(){return{prefixCls:Gt}}}),"data-v-137806a2",!1,void 0,Yt,void 0),Qt=t.prototype.$isServer,Zt=!1;if(!Qt)try{var te={};Object.defineProperty(te,"passive",{get:function(){Zt=!0}}),window.addEventListener("test-passive",function(){},te)}catch(t){}var ee=Vt({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.prefixCls+"-fade"}},[t.visible?n("div",{class:[t.prefixCls+"-img-modal",t.prefixCls+"-modal"],on:{click:function(e){return e.target!==e.currentTarget?null:t.closeDialog(e)}}},[n("transition",{attrs:{name:t.prefixCls+"-fade",mode:"out-in"}},[t.loading?t._t("loading",[n("img-loading")]):t._e(),t._v(" "),t.loadError?t._t("onerror",[n("img-on-error")]):t._e(),t._v(" "),t.loading||t.loadError?t._e():n("div",{class:t.prefixCls+"-img-wrapper",style:t.imgWrapperStyle},[n("img",{class:t.prefixCls+"-img",style:t.imgStyle,attrs:{src:t.visibleImgSrc,draggable:"false"},on:{mousedown:function(e){return t.handleMouseDown(e)},mouseup:function(e){return t.handleMouseUp(e)},mousemove:function(e){return t.handleMouseMove(e)}}})])],2),t._v(" "),n("img",{staticStyle:{display:"none"},attrs:{src:t.visibleImgSrc},on:{error:t.handleImgError,load:t.handleImgLoad}}),t._v(" "),n("div",{class:t.prefixCls+"-btns-wrapper"},[t._t("prev-btn",[1!==t.imgList.length?n("div",{staticClass:"btn__prev",class:{disable:0===t.imgIndex},on:{click:t.onPrevClick}},[n("svg-icon",{attrs:{type:"prev"}})],1):t._e()],{prev:t.onPrevClick}),t._v(" "),t._t("next-btn",[1!==t.imgList.length?n("div",{staticClass:"btn__next",class:{disable:t.imgIndex===t.imgList.length-1},on:{click:t.onNextClick}},[n("svg-icon",{attrs:{type:"next"}})],1):t._e()],{next:t.onNextClick}),t._v(" "),t._t("close-btn",[n("div",{staticClass:"btn__close",on:{click:t.closeDialog}},[n("svg-icon",{attrs:{type:"close"}})],1)],{close:t.closeDialog}),t._v(" "),t._t("toolbar",[n("toolbar",{attrs:{prefixCls:t.prefixCls,zoomIn:t.zoomIn,zoomOut:t.zoomOut,rotate:t.rotate}})],{toolbarMethods:{zoomIn:t.zoomIn,zoomOut:t.zoomOut,rotate:t.rotate}})],2),t._v(" "),1!==t.imgList.length?n("div",{class:t.prefixCls+"-pagination-total"},[t._v(t._s(t.imgIndex+1)+"/"+t._s(t.imgTotal))]):t._e()],1):t._e()])},staticRenderFns:[]},function(t){t&&t("data-v-66b25fea_0",{source:".vel-fade-enter-active[data-v-66b25fea],.vel-fade-leave-active[data-v-66b25fea]{transition:all .3s ease}.vel-fade-enter[data-v-66b25fea],.vel-fade-leave-to[data-v-66b25fea]{opacity:0}.vel-img-swiper[data-v-66b25fea]{position:relative;display:block}.vel-modal[data-v-66b25fea]{z-index:9998;position:fixed;top:0;left:0;right:0;bottom:0;margin:0;background:rgba(0,0,0,.5)}.vel-img-wrapper[data-v-66b25fea]{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50% -50%);transition:.3s ease-in-out}.vel-img[data-v-66b25fea]{max-width:80vw;max-height:80vh;vertical-align:middle;position:relative;transition:transform .3s ease-in-out;box-shadow:rgba(0,0,0,.7) 0 5px 20px 2px;background-color:rgba(0,0,0,.7)}.vel-btns-wrapper .btn__close[data-v-66b25fea],.vel-btns-wrapper .btn__next[data-v-66b25fea],.vel-btns-wrapper .btn__prev[data-v-66b25fea]{cursor:pointer;position:absolute;font-size:60px;color:#fff;opacity:.6;transition:.15s linear}.vel-btns-wrapper .btn__close[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__next[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__prev[data-v-66b25fea]:hover{opacity:1}.vel-btns-wrapper .btn__next.disable[data-v-66b25fea],.vel-btns-wrapper .btn__next.disable[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__prev.disable[data-v-66b25fea],.vel-btns-wrapper .btn__prev.disable[data-v-66b25fea]:hover{cursor:default;opacity:.2}.vel-btns-wrapper .btn__next[data-v-66b25fea]{top:50%;transform:translateY(-50%);right:20px;font-size:40px}.vel-btns-wrapper .btn__prev[data-v-66b25fea]{top:50%;transform:translateY(-50%);left:20px;font-size:40px}.vel-btns-wrapper .btn__close[data-v-66b25fea]{top:10px;right:10px;font-size:40px}.vel-pagination-total[data-v-66b25fea]{position:absolute;font-size:16px;top:16px;left:16px;color:#000}",map:void 0,media:void 0})},function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.prefixCls=Gt,e.scale=1,e.rotateDeg=0,e.imgIndex=0,e.top=0,e.left=0,e.lastX=0,e.lastY=0,e.isDraging=!1,e.loading=!1,e.loadError=!1,e}return function(t,e){function n(){this.constructor=t}jt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e.prototype,"imgList",{get:function(){return Array.isArray(this.imgs)?this.imgs:[this.imgs]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleImgSrc",{get:function(){return this.imgList[this.imgIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imgTotal",{get:function(){return this.imgList.length||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imgWrapperStyle",{get:function(){var t=this,e=t.scale,n=t.top,o=t.left,r=(t.rotateDeg,t.moveDisabled),i=t.loadError;return{transform:"translate(-50%, -50%) scale("+e+")",top:"calc(50% + "+n+"px)",left:"calc(50% + "+o+"px)",cursor:r||i?"default":"move"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imgStyle",{get:function(){return{transform:"rotate(-"+this.rotateDeg+"deg)"}},enumerable:!0,configurable:!0}),e.prototype.checkMouseEventPropButton=function(t){return!this.moveDisabled&&0===t},e.prototype.handleMouseDown=function(t){this.checkMouseEventPropButton(t.button)&&(this.lastX=t.clientX,this.lastY=t.clientY,this.isDraging=!0,t.stopPropagation())},e.prototype.handleMouseUp=function(t){this.checkMouseEventPropButton(t.button)&&(this.isDraging=!1,this.lastX=this.lastY=0)},e.prototype.handleMouseMove=function(t){this.checkMouseEventPropButton(t.button)&&(this.isDraging&&(this.top=this.top-this.lastY+t.clientY,this.left=this.left-this.lastX+t.clientX,this.lastX=t.clientX,this.lastY=t.clientY),t.stopPropagation())},e.prototype.escapePressHandler=function(t){"Escape"===t.key&&this.visible&&this.closeDialog()},e.prototype.handleImgLoad=function(t){this.loading=!1},e.prototype.handleImgError=function(t){this.loading=!1,this.loadError=!0,this.$emit("on-error",t)},e.prototype.zoomIn=function(){this.scale+=.25},e.prototype.zoomOut=function(){0!==this.scale&&(this.scale-=.25)},e.prototype.rotate=function(){this.rotateDeg+=90},e.prototype.onNextClick=function(){this.onIndexChange(this.imgIndex+1)},e.prototype.onPrevClick=function(){this.onIndexChange(this.imgIndex-1)},e.prototype.closeDialog=function(){this.$emit("hide")},e.prototype.reset=function(){this.scale=1,this.rotateDeg=0,this.top=0,this.left=0,this.isDraging=!1,this.loading=!0,this.loadError=!1},e.prototype.init=function(){this.imgIndex=this.index,this.reset()},e.prototype.onVisibleChanged=function(t){this.visible&&this.init()},e.prototype.onIndexChange=function(t){this.visible&&(t>this.imgList.length-1||t<0||(this.reset(),this.imgIndex=t))},e.prototype.mounted=function(){var t,e,n,o;this.escDisabled||(t=document,e="keydown",n=this.escapePressHandler,void 0===o&&(o=!1),Qt||t.addEventListener(e,n,!!Zt&&{capture:!1,passive:o}))},e.prototype.beforeDestroy=function(){var t,e,n;this.escDisabled||(t=document,e="keydown",n=this.escapePressHandler,Qt||t.removeEventListener(e,n))},Mt([At({type:[Array,String],default:function(){return""}})],e.prototype,"imgs",void 0),Mt([At({type:Boolean,default:!1})],e.prototype,"visible",void 0),Mt([At({type:Number,default:0})],e.prototype,"index",void 0),Mt([At({type:Boolean,default:!1})],e.prototype,"escDisabled",void 0),Mt([At({type:Boolean,default:!1})],e.prototype,"moveDisabled",void 0),Mt([Ft("visible",{immediate:!0})],e.prototype,"onVisibleChanged",null),Mt([Ft("index")],e.prototype,"onIndexChange",null),e=Mt([Dt({name:"vue-easy-lightbox",components:{SvgIcon:Ht,Toolbar:Kt,ImgLoading:Jt,ImgOnError:qt}})],e)}(t),"data-v-66b25fea",!1,void 0,Yt,void 0);ee.install=function(t){t.component("vue-easy-lightbox",ee)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(ee.install);export default ee; +import t from"vue";function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,o=e(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),r={}.hasOwnProperty,i=function(t,e){return r.call(t,e)},a={}.toString,s=function(t){return a.call(t).slice(8,-1)},c=function(t){return"object"==typeof t?null!==t:"function"==typeof t},l=function(t){if(!c(t))throw TypeError(t+" is not an object!");return t},p=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}},d={f:{}.propertyIsEnumerable},u=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},f=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==s(t)?t.split(""):Object(t)},v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},h=function(t){return f(v(t))},m=function(t,e){if(!c(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!c(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!c(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!c(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")},g=function(t){try{return!!t()}catch(t){return!0}},y=!g(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),b=o.document,_=c(b)&&c(b.createElement),x=function(t){return _?b.createElement(t):{}},w=!y&&!g(function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a}),O=Object.getOwnPropertyDescriptor,C={f:y?O:function(t,e){if(t=h(t),e=m(e,!0),w)try{return O(t,e)}catch(t){}if(i(t,e))return u(!d.f.call(t,e),t[e])}},E=function(t,e){if(l(t),!c(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},I={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=p(Function.call,C.f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,o){return E(t,o),e?t.__proto__=o:n(t,o),t}}({},!1):void 0),check:E}.set,j=Math.ceil,M=Math.floor,P=function(t){return isNaN(t=+t)?0:(t>0?M:j)(t)},z=Math.min,S=Math.max,N=Math.min,k=e(function(t){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)}),L=(k.version,e(function(t){var e=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return e[t]||(e[t]=void 0!==n?n:{})})("versions",[]).push({version:k.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),R=0,D=Math.random(),T=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++R+D).toString(36))},A=L("keys"),F=function(t){return A[t]||(A[t]=T(t))},B=(n=!1,function(t,e,o){var r,i,a=h(t),s=(r=a.length)>0?z(P(r),9007199254740991):0,c=function(t,e){return(t=P(t))<0?S(t+e,0):N(t,e)}(o,s);if(n&&e!=e){for(;s>c;)if((i=a[c++])!=i)return!0}else for(;s>c;c++)if((n||c in a)&&a[c]===e)return n||c||0;return!n&&-1}),$=F("IE_PROTO"),V=function(t,e){var n,o=h(t),r=0,a=[];for(n in o)n!=$&&i(o,n)&&a.push(n);for(;e.length>r;)i(o,n=e[r++])&&(~B(a,n)||a.push(n));return a},U="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),X=U.concat("length","prototype"),Y={f:Object.getOwnPropertyNames||function(t){return V(t,X)}},H=Object.defineProperty,G={f:y?Object.defineProperty:function(t,e,n){if(l(t),e=m(e,!0),l(n),w)try{return H(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},W=y?function(t,e,n){return G.f(t,e,u(1,n))}:function(t,e,n){return t[e]=n,t},K=L("native-function-to-string",Function.toString),J=e(function(t){var e=T("src"),n=(""+K).split("toString");k.inspectSource=function(t){return K.call(t)},(t.exports=function(t,r,a,s){var c="function"==typeof a;c&&(i(a,"name")||W(a,"name",r)),t[r]!==a&&(c&&(i(a,e)||W(a,e,t[r]?""+t[r]:n.join(String(r)))),t===o?t[r]=a:s?t[r]?t[r]=a:W(t,r,a):(delete t[r],W(t,r,a)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[e]||K.call(this)})}),q=function(t,e,n){var r,i,a,s,c=t&q.F,l=t&q.G,d=t&q.S,u=t&q.P,f=t&q.B,v=l?o:d?o[e]||(o[e]={}):(o[e]||{}).prototype,h=l?k:k[e]||(k[e]={}),m=h.prototype||(h.prototype={});for(r in l&&(n=e),n)a=((i=!c&&v&&void 0!==v[r])?v:n)[r],s=f&&i?p(a,o):u&&"function"==typeof a?p(Function.call,a):a,v&&J(v,r,a,t&q.U),h[r]!=a&&W(h,r,s),u&&m[r]!=a&&(m[r]=a)};o.core=k,q.F=1,q.G=2,q.S=4,q.P=8,q.B=16,q.W=32,q.U=64,q.R=128;var Q=q,Z="\t\n\v\f\r \u2028\u2029\ufeff",tt="["+Z+"]",et=RegExp("^"+tt+tt+"*"),nt=RegExp(tt+tt+"*$"),ot=function(t,e,n){var o={},r=g(function(){return!!Z[t]()||" "!=" "[t]()}),i=o[t]=r?e(rt):Z[t];n&&(o[n]=i),Q(Q.P+Q.F*r,"String",o)},rt=ot.trim=function(t,e){return t=String(v(t)),1&e&&(t=t.replace(et,"")),2&e&&(t=t.replace(nt,"")),t},it=ot,at=Object.keys||function(t){return V(t,U)},st=y?Object.defineProperties:function(t,e){l(t);for(var n,o=at(e),r=o.length,i=0;r>i;)G.f(t,n=o[i++],e[n]);return t},ct=o.document,lt=ct&&ct.documentElement,pt=F("IE_PROTO"),dt=function(){},ut=function(){var t,e=x("iframe"),n=U.length;for(e.style.display="none",lt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),ut=t.F;n--;)delete ut.prototype[U[n]];return ut()},ft=Object.create||function(t,e){var n;return null!==t?(dt.prototype=l(t),n=new dt,dt.prototype=null,n[pt]=t):n=ut(),void 0===e?n:st(n,e)},vt=Y.f,ht=C.f,mt=G.f,gt=it.trim,yt=o.Number,bt=yt,_t=yt.prototype,xt="Number"==s(ft(_t)),wt="trim"in String.prototype,Ot=function(t){var e=m(t,!1);if("string"==typeof e&&e.length>2){var n,o,r,i=(e=wt?e.trim():gt(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+e}for(var a,s=e.slice(2),c=0,l=s.length;c<l;c++)if((a=s.charCodeAt(c))<48||a>r)return NaN;return parseInt(s,o)}}return+e};if(!yt(" 0o1")||!yt("0b1")||yt("+0x1")){yt=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof yt&&(xt?g(function(){_t.valueOf.call(n)}):"Number"!=s(n))?function(t,e,n){var o,r=e.constructor;return r!==n&&"function"==typeof r&&(o=r.prototype)!==n.prototype&&c(o)&&I&&I(t,o),t}(new bt(Ot(e)),n,yt):Ot(e)};for(var Ct,Et=y?vt(bt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),It=0;Et.length>It;It++)i(bt,Ct=Et[It])&&!i(yt,Ct)&&mt(yt,Ct,ht(bt,Ct));yt.prototype=_t,_t.constructor=yt,J(o,"Number",yt)}var jt=function(t,e){return(jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function Mt(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}var Pt="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function zt(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach(function(o){var r=n?Reflect.getOwnMetadata(o,e,n):Reflect.getOwnMetadata(o,e);n?Reflect.defineMetadata(o,r,t,n):Reflect.defineMetadata(o,r,t)})}var St={__proto__:[]}instanceof Array;function Nt(t){return function(e,n,o){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof o&&(o=void 0),r.__decorators__.push(function(e){return t(e,n,o)})}}var kt=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function Lt(e,n){void 0===n&&(n={}),n.name=n.name||e._componentTag||e.name;var o=e.prototype;Object.getOwnPropertyNames(o).forEach(function(t){if("constructor"!==t)if(kt.indexOf(t)>-1)n[t]=o[t];else{var e=Object.getOwnPropertyDescriptor(o,t);void 0!==e.value?"function"==typeof e.value?(n.methods||(n.methods={}))[t]=e.value:(n.mixins||(n.mixins=[])).push({data:function(){var n;return(n={})[t]=e.value,n}}):(e.get||e.set)&&((n.computed||(n.computed={}))[t]={get:e.get,set:e.set})}}),(n.mixins||(n.mixins=[])).push({data:function(){return function(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var o in t.$options.props)t.hasOwnProperty(o)||n.push(o);n.forEach(function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})})};var o=new e;e.prototype._init=n;var r={};return Object.keys(o).forEach(function(t){void 0!==o[t]&&(r[t]=o[t])}),r}(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(t){return t(n)}),delete e.__decorators__);var i,a,s=Object.getPrototypeOf(e.prototype),c=s instanceof t?s.constructor:t,l=c.extend(n);return function(t,e,n){Object.getOwnPropertyNames(e).forEach(function(o){if(!Rt[o]){var r=Object.getOwnPropertyDescriptor(t,o);if(!r||r.configurable){var i,a,s=Object.getOwnPropertyDescriptor(e,o);if(!St){if("cid"===o)return;var c=Object.getOwnPropertyDescriptor(n,o);if(i=s.value,a=typeof i,null!=i&&("object"===a||"function"===a)&&c&&c.value===s.value)return}Object.defineProperty(t,o,s)}}})}(l,e,c),Pt&&(zt(i=l,a=e),Object.getOwnPropertyNames(a.prototype).forEach(function(t){zt(i.prototype,a.prototype,t)}),Object.getOwnPropertyNames(a).forEach(function(t){zt(i,a,t)})),l}var Rt={prototype:!0,arguments:!0,callee:!0,caller:!0};function Dt(t){return"function"==typeof t?Lt(t):function(e){return Lt(e,t)}}Dt.registerHooks=function(t){kt.push.apply(kt,t)};var Tt="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function At(t){return void 0===t&&(t={}),function(e,n){!function(t,e,n){Tt&&(Array.isArray(t)||"function"==typeof t||void 0!==t.type||(t.type=Reflect.getMetadata("design:type",e,n)))}(t,e,n),Nt(function(e,n){(e.props||(e.props={}))[n]=t})(e,n)}}function Ft(t,e){void 0===e&&(e={});var n=e.deep,o=void 0!==n&&n,r=e.immediate,i=void 0!==r&&r;return Nt(function(e,n){"object"!=typeof e.watch&&(e.watch=Object.create(null));var r=e.watch;"object"!=typeof r[t]||Array.isArray(r[t])?void 0===r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:o,immediate:i})})}!function(t){var e,n='<svg><symbol id="icon-prev" viewBox="0 0 1024 1024"><path d="M784.652701 955.6957 346.601985 517.644983c-2.822492-2.822492-2.822492-7.902977 0-11.289967l439.179713-439.179713c6.77398-6.77398 10.725469-16.370452 10.725469-25.966924L796.507166 36.692393c0-20.32194-16.370452-36.692393-36.692393-36.692393l-4.515987 0c-9.596472 0-19.192944 3.951488-25.966924 10.725469L250.072767 489.420066c-12.418964 12.418964-12.418964 32.740904 0 45.159868l477.565601 477.565601c7.338479 7.338479 17.499449 11.854465 28.224917 11.854465l0 0c22.015436 0 40.079383-18.063947 40.079383-40.079383l0 0C796.507166 973.759647 791.99118 963.598677 784.652701 955.6957z" ></path></symbol><symbol id="icon-next" viewBox="0 0 1024 1024"><path d="M246.121279 955.6957l438.050717-438.050717c2.822492-2.822492 2.822492-7.902977 0-11.289967L244.992282 67.175303c-6.77398-6.77398-10.725469-16.370452-10.725469-25.966924L234.266814 36.692393C234.266814 16.370452 250.637266 0 270.959206 0l4.515987 0c9.596472 0 19.192944 3.951488 25.966924 10.725469l478.694598 478.694598c12.418964 12.418964 12.418964 32.740904 0 45.159868l-477.565601 477.565601c-7.338479 7.338479-17.499449 11.854465-28.224917 11.854465l0 0c-22.015436 0-40.079383-18.063947-40.079383-40.079383l0 0C234.266814 973.759647 238.7828 963.598677 246.121279 955.6957z" ></path></symbol><symbol id="icon-zoomin" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path><path d="M367.488 238.144h127.104v390.72H367.488z" ></path></symbol><symbol id="icon-rotate" viewBox="0 0 1024 1024"><path d="M288 352v192h128v64h-128v64h192v-320h-192z m128 128h-64v-64h64v64zM544 352v320h192v-320h-192z m128 256h-64v-192h64v192zM957.44 531.84h1.344v-1.92l-1.344 1.92z" ></path><path d="M46.72 474.88l35.84 55.04 1.28 1.92 35.84 55.04 60.16-119.04-32 1.92C168.96 277.76 331.52 128 529.28 128c211.904 0 384 172.16 384 384s-172.096 384-384 384c-140.16 0-263.04-75.52-329.6-188.16h-1.92l-0.64 0.64-53.12 31.36A446.592 446.592 0 0 0 529.28 960c247.744 0 448-200.32 448-448s-200.256-448-448-448C294.4 64 102.4 243.84 83.2 472.96l-36.48 1.92z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M570.24 512l259.2 259.2-58.88 58.24L512 570.24l-261.12 261.12-58.24-58.24L453.76 512 194.56 252.8l58.24-58.24L512 453.76l261.12-261.12 58.24 58.24z" ></path></symbol><symbol id="icon-zoomout" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path></symbol><symbol id="icon-img-broken" viewBox="0 0 1024 1024"><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m0 682.666667H213.333333v-195.413334l42.24 42.24 170.666667-170.666666 170.666667 170.666666 170.666666-170.24L810.666667 530.346667V810.666667z m0-401.493334l-43.093334-43.093333-170.666666 171.093333-170.666667-170.666666-170.666667 170.666666-42.24-42.666666V213.333333h597.333334v195.84z" ></path></symbol></svg>';if((e=document.getElementsByTagName("script"))[e.length-1].getAttribute("data-injectcss")&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console&&console.log(e)}}!function(e){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(e,0);else{document.addEventListener("DOMContentLoaded",function t(){document.removeEventListener("DOMContentLoaded",t,!1),e()},!1)}else document.attachEvent&&(o=e,r=t.document,i=!1,(a=function(){try{r.documentElement.doScroll("left")}catch(t){return void setTimeout(a,50)}n()})(),r.onreadystatechange=function(){"complete"==r.readyState&&(r.onreadystatechange=null,n())});function n(){i||(i=!0,o())}var o,r,i,a}(function(){var t,e;(t=document.createElement("div")).innerHTML=n,n=null,(e=t.getElementsByTagName("svg")[0])&&(e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.width=0,e.style.height=0,e.style.overflow="hidden",function(t,e){e.firstChild?function(t,e){e.parentNode.insertBefore(t,e)}(t,e.firstChild):e.appendChild(t)}(e,document.body))})}(window);var Bt=t.extend({props:{type:{type:String,default:""}},data:function(){return{prefixCls:"vel"}}});var $t,Vt=function(t,e,n,o,r,i,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var p,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),o&&(d._scopeId=o),i?(p=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},d._ssrRegister=p):e&&(p=a?function(){e.call(this,l(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),p)if(d.functional){var u=d.render;d.render=function(t,e){return p.call(e),u(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,p):[p]}return n},Ut="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var Xt={};var Yt=function(t){return function(t,e){return function(t,e){var n=Ut?e.media||"default":t,o=Xt[n]||(Xt[n]={ids:new Set,styles:[]});if(!o.ids.has(t)){o.ids.add(t);var r=e.source;if(e.map&&(r+="\n/*# sourceURL="+e.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),o.element||(o.element=document.createElement("style"),o.element.type="text/css",e.media&&o.element.setAttribute("media",e.media),void 0===$t&&($t=document.head||document.getElementsByTagName("head")[0]),$t.appendChild(o.element)),"styleSheet"in o.element)o.styles.push(r),o.element.styleSheet.cssText=o.styles.filter(Boolean).join("\n");else{var i=o.ids.size-1,a=document.createTextNode(r),s=o.element.childNodes;s[i]&&o.element.removeChild(s[i]),s.length?o.element.insertBefore(a,s[i]):o.element.appendChild(a)}}}(t,e)}};var Ht=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{class:this.prefixCls+"-icon icon",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":"#icon-"+this.type}})])},staticRenderFns:[]},function(t){t&&t("data-v-7221e0ec_0",{source:".vel-icon[data-v-7221e0ec]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}",map:void 0,media:void 0})},Bt,"data-v-7221e0ec",!1,void 0,Yt,void 0),Gt="vel",Wt=function(){};var Kt=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-toolbar"},[e("div",{staticClass:"toobar-btn toolbar-btn__zoomin",on:{click:this.zoomIn}},[e("svg-icon",{attrs:{type:"zoomin"}})],1),this._v(" "),e("div",{staticClass:"toobar-btn toolbar-btn__zoomout",on:{click:this.zoomOut}},[e("svg-icon",{attrs:{type:"zoomout"}})],1),this._v(" "),e("div",{staticClass:"toobar-btn toolbar-btn__rotate",on:{click:this.rotate}},[e("svg-icon",{attrs:{type:"rotate"}})],1)])},staticRenderFns:[]},function(t){t&&t("data-v-36fa02a2_0",{source:".vel-toolbar[data-v-36fa02a2]{user-select:none;position:absolute;bottom:0;left:50%;transform:translate(-50%);background:rgba(45,45,44,.8);border-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;padding:6px 24px 0}.vel-toolbar .toobar-btn[data-v-36fa02a2]{cursor:pointer;display:inline-block;padding:2px 4px}.vel-toolbar .toobar-btn[data-v-36fa02a2]{font-size:32px;color:#fff}.vel-toolbar .toobar-btn[data-v-36fa02a2]:hover{color:#54b4ee}",map:void 0,media:void 0})},t.extend({components:{SvgIcon:Ht},props:{zoomIn:{type:Function,default:Wt},zoomOut:{type:Function,default:Wt},rotate:{type:Function,default:Wt}},data:function(){return{prefixCls:Gt}}}),"data-v-36fa02a2",!1,void 0,Yt,void 0);var Jt=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-loading"},[e("div",{staticClass:"ring"})])},staticRenderFns:[]},function(t){t&&t("data-v-0cefeb9a_0",{source:'.vel-loading[data-v-0cefeb9a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-loading .ring[data-v-0cefeb9a]{display:inline-block;width:64px;height:64px}.vel-loading .ring[data-v-0cefeb9a]:after{content:" ";display:block;width:46px;height:46px;margin:1px;border-radius:50%;border:5px solid rgba(255,255,255,.7);border-color:rgba(255,255,255,.7) transparent rgba(255,255,255,.7) transparent;animation:ring-data-v-0cefeb9a 1.2s linear infinite}@keyframes ring-data-v-0cefeb9a{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',map:void 0,media:void 0})},t.extend({data:function(){return{prefixCls:Gt}}}),"data-v-0cefeb9a",!1,void 0,Yt,void 0);var qt=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-on-error"},[e("svg-icon",{attrs:{clas:"icon",type:"img-broken"}})],1)},staticRenderFns:[]},function(t){t&&t("data-v-137806a2_0",{source:".vel-on-error[data-v-137806a2]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-on-error .icon[data-v-137806a2]{font-size:80px;color:#aaa}",map:void 0,media:void 0})},t.extend({components:{SvgIcon:Ht},data:function(){return{prefixCls:Gt}}}),"data-v-137806a2",!1,void 0,Yt,void 0),Qt=t.prototype.$isServer,Zt=!1;if(!Qt)try{var te={};Object.defineProperty(te,"passive",{get:function(){Zt=!0}}),window.addEventListener("test-passive",function(){},te)}catch(t){}var ee=Vt({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.prefixCls+"-fade"}},[t.visible?n("div",{class:[t.prefixCls+"-img-modal",t.prefixCls+"-modal"],on:{click:function(e){return e.target!==e.currentTarget?null:t.closeDialog(e)}}},[n("transition",{attrs:{name:t.prefixCls+"-fade",mode:"out-in"}},[t.loading?t._t("loading",[n("img-loading")]):t._e(),t._v(" "),t.loadError?t._t("onerror",[n("img-on-error")]):t._e(),t._v(" "),t.loading||t.loadError?t._e():n("div",{class:t.prefixCls+"-img-wrapper",style:t.imgWrapperStyle},[n("img",{class:t.prefixCls+"-img",style:t.imgStyle,attrs:{src:t.visibleImgSrc,draggable:"false"},on:{mousedown:function(e){return t.handleMouseDown(e)},mouseup:function(e){return t.handleMouseUp(e)},mousemove:function(e){return t.handleMouseMove(e)}}})])],2),t._v(" "),n("img",{staticStyle:{display:"none"},attrs:{src:t.visibleImgSrc},on:{error:t.handleImgError,load:t.handleImgLoad}}),t._v(" "),n("div",{class:t.prefixCls+"-btns-wrapper"},[t._t("prev-btn",[1!==t.imgList.length?n("div",{staticClass:"btn__prev",class:{disable:0===t.imgIndex},on:{click:t.onPrevClick}},[n("svg-icon",{attrs:{type:"prev"}})],1):t._e()],{prev:t.onPrevClick}),t._v(" "),t._t("next-btn",[1!==t.imgList.length?n("div",{staticClass:"btn__next",class:{disable:t.imgIndex===t.imgList.length-1},on:{click:t.onNextClick}},[n("svg-icon",{attrs:{type:"next"}})],1):t._e()],{next:t.onNextClick}),t._v(" "),t._t("close-btn",[n("div",{staticClass:"btn__close",on:{click:t.closeDialog}},[n("svg-icon",{attrs:{type:"close"}})],1)],{close:t.closeDialog}),t._v(" "),t._t("toolbar",[n("toolbar",{attrs:{prefixCls:t.prefixCls,zoomIn:t.zoomIn,zoomOut:t.zoomOut,rotate:t.rotate}})],{toolbarMethods:{zoomIn:t.zoomIn,zoomOut:t.zoomOut,rotate:t.rotate}})],2),t._v(" "),1!==t.imgList.length?n("div",{class:t.prefixCls+"-pagination-total"},[t._v(t._s(t.imgIndex+1)+"/"+t._s(t.imgTotal))]):t._e()],1):t._e()])},staticRenderFns:[]},function(t){t&&t("data-v-4de35050_0",{source:".vel-fade-enter-active[data-v-4de35050],.vel-fade-leave-active[data-v-4de35050]{transition:all .3s ease}.vel-fade-enter[data-v-4de35050],.vel-fade-leave-to[data-v-4de35050]{opacity:0}.vel-img-swiper[data-v-4de35050]{position:relative;display:block}.vel-modal[data-v-4de35050]{z-index:9998;position:fixed;top:0;left:0;right:0;bottom:0;margin:0;background:rgba(0,0,0,.5)}.vel-img-wrapper[data-v-4de35050]{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50% -50%);transition:.3s ease-in-out}.vel-img[data-v-4de35050]{max-width:80vw;max-height:80vh;vertical-align:middle;position:relative;transition:transform .3s ease-in-out;box-shadow:rgba(0,0,0,.7) 0 5px 20px 2px;background-color:rgba(0,0,0,.7)}.vel-btns-wrapper .btn__close[data-v-4de35050],.vel-btns-wrapper .btn__next[data-v-4de35050],.vel-btns-wrapper .btn__prev[data-v-4de35050]{cursor:pointer;position:absolute;font-size:60px;color:#fff;opacity:.6;transition:.15s linear}.vel-btns-wrapper .btn__close[data-v-4de35050]:hover,.vel-btns-wrapper .btn__next[data-v-4de35050]:hover,.vel-btns-wrapper .btn__prev[data-v-4de35050]:hover{opacity:1}.vel-btns-wrapper .btn__next.disable[data-v-4de35050],.vel-btns-wrapper .btn__next.disable[data-v-4de35050]:hover,.vel-btns-wrapper .btn__prev.disable[data-v-4de35050],.vel-btns-wrapper .btn__prev.disable[data-v-4de35050]:hover{cursor:default;opacity:.2}.vel-btns-wrapper .btn__next[data-v-4de35050]{top:50%;transform:translateY(-50%);right:20px;font-size:40px}.vel-btns-wrapper .btn__prev[data-v-4de35050]{top:50%;transform:translateY(-50%);left:20px;font-size:40px}.vel-btns-wrapper .btn__close[data-v-4de35050]{top:10px;right:10px;font-size:40px}.vel-pagination-total[data-v-4de35050]{position:absolute;font-size:16px;top:16px;left:16px;color:#000}",map:void 0,media:void 0})},function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.prefixCls=Gt,e.scale=1,e.rotateDeg=0,e.imgIndex=0,e.top=0,e.left=0,e.lastX=0,e.lastY=0,e.isDraging=!1,e.loading=!1,e.loadError=!1,e}return function(t,e){function n(){this.constructor=t}jt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e.prototype,"imgList",{get:function(){return Array.isArray(this.imgs)?this.imgs:[this.imgs]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleImgSrc",{get:function(){return this.imgList[this.imgIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imgTotal",{get:function(){return this.imgList.length||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imgWrapperStyle",{get:function(){var t=this,e=t.scale,n=t.top,o=t.left,r=(t.rotateDeg,t.moveDisabled),i=t.loadError;return{transform:"translate(-50%, -50%) scale("+e+")",top:"calc(50% + "+n+"px)",left:"calc(50% + "+o+"px)",cursor:r||i?"default":"move"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imgStyle",{get:function(){return{transform:"rotate(-"+this.rotateDeg+"deg)"}},enumerable:!0,configurable:!0}),e.prototype.checkMouseEventPropButton=function(t){return!this.moveDisabled&&0===t},e.prototype.handleMouseDown=function(t){this.checkMouseEventPropButton(t.button)&&(this.lastX=t.clientX,this.lastY=t.clientY,this.isDraging=!0,t.stopPropagation())},e.prototype.handleMouseUp=function(t){this.checkMouseEventPropButton(t.button)&&(this.isDraging=!1,this.lastX=this.lastY=0)},e.prototype.handleMouseMove=function(t){this.checkMouseEventPropButton(t.button)&&(this.isDraging&&(this.top=this.top-this.lastY+t.clientY,this.left=this.left-this.lastX+t.clientX,this.lastX=t.clientX,this.lastY=t.clientY),t.stopPropagation())},e.prototype.escapePressHandler=function(t){"Escape"===t.key&&this.visible&&this.closeDialog()},e.prototype.handleImgLoad=function(t){this.loading=!1},e.prototype.handleImgError=function(t){this.loading=!1,this.loadError=!0,this.$emit("on-error",t)},e.prototype.zoomIn=function(){this.scale+=.25},e.prototype.zoomOut=function(){0!==this.scale&&(this.scale-=.25)},e.prototype.rotate=function(){this.rotateDeg+=90},e.prototype.onNextClick=function(){this.onIndexChange(this.imgIndex+1)},e.prototype.onPrevClick=function(){this.onIndexChange(this.imgIndex-1)},e.prototype.closeDialog=function(){this.$emit("hide")},e.prototype.reset=function(){this.scale=1,this.rotateDeg=0,this.top=0,this.left=0,this.isDraging=!1,this.loading=!0,this.loadError=!1},e.prototype.init=function(){this.imgIndex=this.index,this.reset()},e.prototype.onVisibleChanged=function(t){this.visible&&this.init()},e.prototype.onIndexChange=function(t){var e=this;this.visible&&(t>this.imgList.length-1||t<0||(this.reset(),this.imgIndex=t,this.imgList[this.imgIndex]===this.imgList[t]&&this.$nextTick(function(){e.loading=!1})))},e.prototype.mounted=function(){var t,e,n,o;this.escDisabled||(t=document,e="keydown",n=this.escapePressHandler,void 0===o&&(o=!1),Qt||t.addEventListener(e,n,!!Zt&&{capture:!1,passive:o}))},e.prototype.beforeDestroy=function(){var t,e,n;this.escDisabled||(t=document,e="keydown",n=this.escapePressHandler,Qt||t.removeEventListener(e,n))},Mt([At({type:[Array,String],default:function(){return""}})],e.prototype,"imgs",void 0),Mt([At({type:Boolean,default:!1})],e.prototype,"visible",void 0),Mt([At({type:Number,default:0})],e.prototype,"index",void 0),Mt([At({type:Boolean,default:!1})],e.prototype,"escDisabled",void 0),Mt([At({type:Boolean,default:!1})],e.prototype,"moveDisabled",void 0),Mt([Ft("visible",{immediate:!0})],e.prototype,"onVisibleChanged",null),Mt([Ft("index")],e.prototype,"onIndexChange",null),e=Mt([Dt({name:"vue-easy-lightbox",components:{SvgIcon:Ht,Toolbar:Kt,ImgLoading:Jt,ImgOnError:qt}})],e)}(t),"data-v-4de35050",!1,void 0,Yt,void 0);ee.install=function(t){t.component("vue-easy-lightbox",ee)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(ee.install);export default ee; diff --git a/dist/vue-easy-lightbox.es5.umd.min.js b/dist/vue-easy-lightbox.es5.umd.min.js index bdc0a0c..e4700d0 100644 --- a/dist/vue-easy-lightbox.es5.umd.min.js +++ b/dist/vue-easy-lightbox.es5.umd.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):(t=t||self)["vue-easy-lightbox"]=e(t.Vue)}(this,function(t){"use strict";function e(t,e){return t(e={exports:{}},e.exports),e.exports}t=t&&t.hasOwnProperty("default")?t.default:t;var n,o=e(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),r={}.hasOwnProperty,i=function(t,e){return r.call(t,e)},a={}.toString,s=function(t){return a.call(t).slice(8,-1)},c=function(t){return"object"==typeof t?null!==t:"function"==typeof t},l=function(t){if(!c(t))throw TypeError(t+" is not an object!");return t},p=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}},u={f:{}.propertyIsEnumerable},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==s(t)?t.split(""):Object(t)},v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},h=function(t){return d(v(t))},m=function(t,e){if(!c(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!c(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!c(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!c(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")},b=function(t){try{return!!t()}catch(t){return!0}},g=!b(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),y=o.document,_=c(y)&&c(y.createElement),x=function(t){return _?y.createElement(t):{}},w=!g&&!b(function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a}),O=Object.getOwnPropertyDescriptor,C={f:g?O:function(t,e){if(t=h(t),e=m(e,!0),w)try{return O(t,e)}catch(t){}if(i(t,e))return f(!u.f.call(t,e),t[e])}},E=function(t,e){if(l(t),!c(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},I={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=p(Function.call,C.f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,o){return E(t,o),e?t.__proto__=o:n(t,o),t}}({},!1):void 0),check:E}.set,j=Math.ceil,P=Math.floor,M=function(t){return isNaN(t=+t)?0:(t>0?P:j)(t)},z=Math.min,S=Math.max,N=Math.min,k=e(function(t){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)}),L=(k.version,e(function(t){var e=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return e[t]||(e[t]=void 0!==n?n:{})})("versions",[]).push({version:k.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),R=0,D=Math.random(),T=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++R+D).toString(36))},A=L("keys"),F=function(t){return A[t]||(A[t]=T(t))},B=(n=!1,function(t,e,o){var r,i,a=h(t),s=(r=a.length)>0?z(M(r),9007199254740991):0,c=function(t,e){return(t=M(t))<0?S(t+e,0):N(t,e)}(o,s);if(n&&e!=e){for(;s>c;)if((i=a[c++])!=i)return!0}else for(;s>c;c++)if((n||c in a)&&a[c]===e)return n||c||0;return!n&&-1}),$=F("IE_PROTO"),V=function(t,e){var n,o=h(t),r=0,a=[];for(n in o)n!=$&&i(o,n)&&a.push(n);for(;e.length>r;)i(o,n=e[r++])&&(~B(a,n)||a.push(n));return a},U="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),X=U.concat("length","prototype"),Y={f:Object.getOwnPropertyNames||function(t){return V(t,X)}},H=Object.defineProperty,G={f:g?Object.defineProperty:function(t,e,n){if(l(t),e=m(e,!0),l(n),w)try{return H(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},W=g?function(t,e,n){return G.f(t,e,f(1,n))}:function(t,e,n){return t[e]=n,t},K=L("native-function-to-string",Function.toString),q=e(function(t){var e=T("src"),n=(""+K).split("toString");k.inspectSource=function(t){return K.call(t)},(t.exports=function(t,r,a,s){var c="function"==typeof a;c&&(i(a,"name")||W(a,"name",r)),t[r]!==a&&(c&&(i(a,e)||W(a,e,t[r]?""+t[r]:n.join(String(r)))),t===o?t[r]=a:s?t[r]?t[r]=a:W(t,r,a):(delete t[r],W(t,r,a)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[e]||K.call(this)})}),J=function(t,e,n){var r,i,a,s,c=t&J.F,l=t&J.G,u=t&J.S,f=t&J.P,d=t&J.B,v=l?o:u?o[e]||(o[e]={}):(o[e]||{}).prototype,h=l?k:k[e]||(k[e]={}),m=h.prototype||(h.prototype={});for(r in l&&(n=e),n)a=((i=!c&&v&&void 0!==v[r])?v:n)[r],s=d&&i?p(a,o):f&&"function"==typeof a?p(Function.call,a):a,v&&q(v,r,a,t&J.U),h[r]!=a&&W(h,r,s),f&&m[r]!=a&&(m[r]=a)};o.core=k,J.F=1,J.G=2,J.S=4,J.P=8,J.B=16,J.W=32,J.U=64,J.R=128;var Q=J,Z="\t\n\v\f\r \u2028\u2029\ufeff",tt="["+Z+"]",et=RegExp("^"+tt+tt+"*"),nt=RegExp(tt+tt+"*$"),ot=function(t,e,n){var o={},r=b(function(){return!!Z[t]()||" "!=" "[t]()}),i=o[t]=r?e(rt):Z[t];n&&(o[n]=i),Q(Q.P+Q.F*r,"String",o)},rt=ot.trim=function(t,e){return t=String(v(t)),1&e&&(t=t.replace(et,"")),2&e&&(t=t.replace(nt,"")),t},it=ot,at=Object.keys||function(t){return V(t,U)},st=g?Object.defineProperties:function(t,e){l(t);for(var n,o=at(e),r=o.length,i=0;r>i;)G.f(t,n=o[i++],e[n]);return t},ct=o.document,lt=ct&&ct.documentElement,pt=F("IE_PROTO"),ut=function(){},ft=function(){var t,e=x("iframe"),n=U.length;for(e.style.display="none",lt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),ft=t.F;n--;)delete ft.prototype[U[n]];return ft()},dt=Object.create||function(t,e){var n;return null!==t?(ut.prototype=l(t),n=new ut,ut.prototype=null,n[pt]=t):n=ft(),void 0===e?n:st(n,e)},vt=Y.f,ht=C.f,mt=G.f,bt=it.trim,gt=o.Number,yt=gt,_t=gt.prototype,xt="Number"==s(dt(_t)),wt="trim"in String.prototype,Ot=function(t){var e=m(t,!1);if("string"==typeof e&&e.length>2){var n,o,r,i=(e=wt?e.trim():bt(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+e}for(var a,s=e.slice(2),c=0,l=s.length;c<l;c++)if((a=s.charCodeAt(c))<48||a>r)return NaN;return parseInt(s,o)}}return+e};if(!gt(" 0o1")||!gt("0b1")||gt("+0x1")){gt=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof gt&&(xt?b(function(){_t.valueOf.call(n)}):"Number"!=s(n))?function(t,e,n){var o,r=e.constructor;return r!==n&&"function"==typeof r&&(o=r.prototype)!==n.prototype&&c(o)&&I&&I(t,o),t}(new yt(Ot(e)),n,gt):Ot(e)};for(var Ct,Et=g?vt(yt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),It=0;Et.length>It;It++)i(yt,Ct=Et[It])&&!i(gt,Ct)&&mt(gt,Ct,ht(yt,Ct));gt.prototype=_t,_t.constructor=gt,q(o,"Number",gt)}var jt=function(t,e){return(jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function Pt(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}var Mt="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function zt(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach(function(o){var r=n?Reflect.getOwnMetadata(o,e,n):Reflect.getOwnMetadata(o,e);n?Reflect.defineMetadata(o,r,t,n):Reflect.defineMetadata(o,r,t)})}var St={__proto__:[]}instanceof Array;function Nt(t){return function(e,n,o){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof o&&(o=void 0),r.__decorators__.push(function(e){return t(e,n,o)})}}var kt=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function Lt(e,n){void 0===n&&(n={}),n.name=n.name||e._componentTag||e.name;var o=e.prototype;Object.getOwnPropertyNames(o).forEach(function(t){if("constructor"!==t)if(kt.indexOf(t)>-1)n[t]=o[t];else{var e=Object.getOwnPropertyDescriptor(o,t);void 0!==e.value?"function"==typeof e.value?(n.methods||(n.methods={}))[t]=e.value:(n.mixins||(n.mixins=[])).push({data:function(){var n;return(n={})[t]=e.value,n}}):(e.get||e.set)&&((n.computed||(n.computed={}))[t]={get:e.get,set:e.set})}}),(n.mixins||(n.mixins=[])).push({data:function(){return function(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var o in t.$options.props)t.hasOwnProperty(o)||n.push(o);n.forEach(function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})})};var o=new e;e.prototype._init=n;var r={};return Object.keys(o).forEach(function(t){void 0!==o[t]&&(r[t]=o[t])}),r}(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(t){return t(n)}),delete e.__decorators__);var i,a,s=Object.getPrototypeOf(e.prototype),c=s instanceof t?s.constructor:t,l=c.extend(n);return function(t,e,n){Object.getOwnPropertyNames(e).forEach(function(o){if(!Rt[o]){var r=Object.getOwnPropertyDescriptor(t,o);if(!r||r.configurable){var i,a,s=Object.getOwnPropertyDescriptor(e,o);if(!St){if("cid"===o)return;var c=Object.getOwnPropertyDescriptor(n,o);if(i=s.value,a=typeof i,null!=i&&("object"===a||"function"===a)&&c&&c.value===s.value)return}Object.defineProperty(t,o,s)}}})}(l,e,c),Mt&&(zt(i=l,a=e),Object.getOwnPropertyNames(a.prototype).forEach(function(t){zt(i.prototype,a.prototype,t)}),Object.getOwnPropertyNames(a).forEach(function(t){zt(i,a,t)})),l}var Rt={prototype:!0,arguments:!0,callee:!0,caller:!0};function Dt(t){return"function"==typeof t?Lt(t):function(e){return Lt(e,t)}}Dt.registerHooks=function(t){kt.push.apply(kt,t)};var Tt="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function At(t){return void 0===t&&(t={}),function(e,n){!function(t,e,n){Tt&&(Array.isArray(t)||"function"==typeof t||void 0!==t.type||(t.type=Reflect.getMetadata("design:type",e,n)))}(t,e,n),Nt(function(e,n){(e.props||(e.props={}))[n]=t})(e,n)}}function Ft(t,e){void 0===e&&(e={});var n=e.deep,o=void 0!==n&&n,r=e.immediate,i=void 0!==r&&r;return Nt(function(e,n){"object"!=typeof e.watch&&(e.watch=Object.create(null));var r=e.watch;"object"!=typeof r[t]||Array.isArray(r[t])?void 0===r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:o,immediate:i})})}!function(t){var e,n='<svg><symbol id="icon-prev" viewBox="0 0 1024 1024"><path d="M784.652701 955.6957 346.601985 517.644983c-2.822492-2.822492-2.822492-7.902977 0-11.289967l439.179713-439.179713c6.77398-6.77398 10.725469-16.370452 10.725469-25.966924L796.507166 36.692393c0-20.32194-16.370452-36.692393-36.692393-36.692393l-4.515987 0c-9.596472 0-19.192944 3.951488-25.966924 10.725469L250.072767 489.420066c-12.418964 12.418964-12.418964 32.740904 0 45.159868l477.565601 477.565601c7.338479 7.338479 17.499449 11.854465 28.224917 11.854465l0 0c22.015436 0 40.079383-18.063947 40.079383-40.079383l0 0C796.507166 973.759647 791.99118 963.598677 784.652701 955.6957z" ></path></symbol><symbol id="icon-next" viewBox="0 0 1024 1024"><path d="M246.121279 955.6957l438.050717-438.050717c2.822492-2.822492 2.822492-7.902977 0-11.289967L244.992282 67.175303c-6.77398-6.77398-10.725469-16.370452-10.725469-25.966924L234.266814 36.692393C234.266814 16.370452 250.637266 0 270.959206 0l4.515987 0c9.596472 0 19.192944 3.951488 25.966924 10.725469l478.694598 478.694598c12.418964 12.418964 12.418964 32.740904 0 45.159868l-477.565601 477.565601c-7.338479 7.338479-17.499449 11.854465-28.224917 11.854465l0 0c-22.015436 0-40.079383-18.063947-40.079383-40.079383l0 0C234.266814 973.759647 238.7828 963.598677 246.121279 955.6957z" ></path></symbol><symbol id="icon-zoomin" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path><path d="M367.488 238.144h127.104v390.72H367.488z" ></path></symbol><symbol id="icon-rotate" viewBox="0 0 1024 1024"><path d="M288 352v192h128v64h-128v64h192v-320h-192z m128 128h-64v-64h64v64zM544 352v320h192v-320h-192z m128 256h-64v-192h64v192zM957.44 531.84h1.344v-1.92l-1.344 1.92z" ></path><path d="M46.72 474.88l35.84 55.04 1.28 1.92 35.84 55.04 60.16-119.04-32 1.92C168.96 277.76 331.52 128 529.28 128c211.904 0 384 172.16 384 384s-172.096 384-384 384c-140.16 0-263.04-75.52-329.6-188.16h-1.92l-0.64 0.64-53.12 31.36A446.592 446.592 0 0 0 529.28 960c247.744 0 448-200.32 448-448s-200.256-448-448-448C294.4 64 102.4 243.84 83.2 472.96l-36.48 1.92z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M570.24 512l259.2 259.2-58.88 58.24L512 570.24l-261.12 261.12-58.24-58.24L453.76 512 194.56 252.8l58.24-58.24L512 453.76l261.12-261.12 58.24 58.24z" ></path></symbol><symbol id="icon-zoomout" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path></symbol><symbol id="icon-img-broken" viewBox="0 0 1024 1024"><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m0 682.666667H213.333333v-195.413334l42.24 42.24 170.666667-170.666666 170.666667 170.666666 170.666666-170.24L810.666667 530.346667V810.666667z m0-401.493334l-43.093334-43.093333-170.666666 171.093333-170.666667-170.666666-170.666667 170.666666-42.24-42.666666V213.333333h597.333334v195.84z" ></path></symbol></svg>';if((e=document.getElementsByTagName("script"))[e.length-1].getAttribute("data-injectcss")&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console&&console.log(e)}}!function(e){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(e,0);else{document.addEventListener("DOMContentLoaded",function t(){document.removeEventListener("DOMContentLoaded",t,!1),e()},!1)}else document.attachEvent&&(o=e,r=t.document,i=!1,(a=function(){try{r.documentElement.doScroll("left")}catch(t){return void setTimeout(a,50)}n()})(),r.onreadystatechange=function(){"complete"==r.readyState&&(r.onreadystatechange=null,n())});function n(){i||(i=!0,o())}var o,r,i,a}(function(){var t,e;(t=document.createElement("div")).innerHTML=n,n=null,(e=t.getElementsByTagName("svg")[0])&&(e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.width=0,e.style.height=0,e.style.overflow="hidden",function(t,e){e.firstChild?function(t,e){e.parentNode.insertBefore(t,e)}(t,e.firstChild):e.appendChild(t)}(e,document.body))})}(window);var Bt=t.extend({props:{type:{type:String,default:""}},data:function(){return{prefixCls:"vel"}}});var $t,Vt=function(t,e,n,o,r,i,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var p,u="function"==typeof n?n.options:n;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),o&&(u._scopeId=o),i?(p=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=p):e&&(p=a?function(){e.call(this,l(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),p)if(u.functional){var f=u.render;u.render=function(t,e){return p.call(e),f(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,p):[p]}return n},Ut="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var Xt={};var Yt=function(t){return function(t,e){return function(t,e){var n=Ut?e.media||"default":t,o=Xt[n]||(Xt[n]={ids:new Set,styles:[]});if(!o.ids.has(t)){o.ids.add(t);var r=e.source;if(e.map&&(r+="\n/*# sourceURL="+e.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),o.element||(o.element=document.createElement("style"),o.element.type="text/css",e.media&&o.element.setAttribute("media",e.media),void 0===$t&&($t=document.head||document.getElementsByTagName("head")[0]),$t.appendChild(o.element)),"styleSheet"in o.element)o.styles.push(r),o.element.styleSheet.cssText=o.styles.filter(Boolean).join("\n");else{var i=o.ids.size-1,a=document.createTextNode(r),s=o.element.childNodes;s[i]&&o.element.removeChild(s[i]),s.length?o.element.insertBefore(a,s[i]):o.element.appendChild(a)}}}(t,e)}};var Ht=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{class:this.prefixCls+"-icon icon",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":"#icon-"+this.type}})])},staticRenderFns:[]},function(t){t&&t("data-v-7221e0ec_0",{source:".vel-icon[data-v-7221e0ec]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}",map:void 0,media:void 0})},Bt,"data-v-7221e0ec",!1,void 0,Yt,void 0),Gt="vel",Wt=function(){};var Kt=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-toolbar"},[e("div",{staticClass:"toobar-btn toolbar-btn__zoomin",on:{click:this.zoomIn}},[e("svg-icon",{attrs:{type:"zoomin"}})],1),this._v(" "),e("div",{staticClass:"toobar-btn toolbar-btn__zoomout",on:{click:this.zoomOut}},[e("svg-icon",{attrs:{type:"zoomout"}})],1),this._v(" "),e("div",{staticClass:"toobar-btn toolbar-btn__rotate",on:{click:this.rotate}},[e("svg-icon",{attrs:{type:"rotate"}})],1)])},staticRenderFns:[]},function(t){t&&t("data-v-36fa02a2_0",{source:".vel-toolbar[data-v-36fa02a2]{user-select:none;position:absolute;bottom:0;left:50%;transform:translate(-50%);background:rgba(45,45,44,.8);border-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;padding:6px 24px 0}.vel-toolbar .toobar-btn[data-v-36fa02a2]{cursor:pointer;display:inline-block;padding:2px 4px}.vel-toolbar .toobar-btn[data-v-36fa02a2]{font-size:32px;color:#fff}.vel-toolbar .toobar-btn[data-v-36fa02a2]:hover{color:#54b4ee}",map:void 0,media:void 0})},t.extend({components:{SvgIcon:Ht},props:{zoomIn:{type:Function,default:Wt},zoomOut:{type:Function,default:Wt},rotate:{type:Function,default:Wt}},data:function(){return{prefixCls:Gt}}}),"data-v-36fa02a2",!1,void 0,Yt,void 0);var qt=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-loading"},[e("div",{staticClass:"ring"})])},staticRenderFns:[]},function(t){t&&t("data-v-0cefeb9a_0",{source:'.vel-loading[data-v-0cefeb9a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-loading .ring[data-v-0cefeb9a]{display:inline-block;width:64px;height:64px}.vel-loading .ring[data-v-0cefeb9a]:after{content:" ";display:block;width:46px;height:46px;margin:1px;border-radius:50%;border:5px solid rgba(255,255,255,.7);border-color:rgba(255,255,255,.7) transparent rgba(255,255,255,.7) transparent;animation:ring-data-v-0cefeb9a 1.2s linear infinite}@keyframes ring-data-v-0cefeb9a{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',map:void 0,media:void 0})},t.extend({data:function(){return{prefixCls:Gt}}}),"data-v-0cefeb9a",!1,void 0,Yt,void 0);var Jt=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-on-error"},[e("svg-icon",{attrs:{clas:"icon",type:"img-broken"}})],1)},staticRenderFns:[]},function(t){t&&t("data-v-137806a2_0",{source:".vel-on-error[data-v-137806a2]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-on-error .icon[data-v-137806a2]{font-size:80px;color:#aaa}",map:void 0,media:void 0})},t.extend({components:{SvgIcon:Ht},data:function(){return{prefixCls:Gt}}}),"data-v-137806a2",!1,void 0,Yt,void 0),Qt=t.prototype.$isServer,Zt=!1;if(!Qt)try{var te={};Object.defineProperty(te,"passive",{get:function(){Zt=!0}}),window.addEventListener("test-passive",function(){},te)}catch(t){}var ee=Vt({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.prefixCls+"-fade"}},[t.visible?n("div",{class:[t.prefixCls+"-img-modal",t.prefixCls+"-modal"],on:{click:function(e){return e.target!==e.currentTarget?null:t.closeDialog(e)}}},[n("transition",{attrs:{name:t.prefixCls+"-fade",mode:"out-in"}},[t.loading?t._t("loading",[n("img-loading")]):t._e(),t._v(" "),t.loadError?t._t("onerror",[n("img-on-error")]):t._e(),t._v(" "),t.loading||t.loadError?t._e():n("div",{class:t.prefixCls+"-img-wrapper",style:t.imgWrapperStyle},[n("img",{class:t.prefixCls+"-img",style:t.imgStyle,attrs:{src:t.visibleImgSrc,draggable:"false"},on:{mousedown:function(e){return t.handleMouseDown(e)},mouseup:function(e){return t.handleMouseUp(e)},mousemove:function(e){return t.handleMouseMove(e)}}})])],2),t._v(" "),n("img",{staticStyle:{display:"none"},attrs:{src:t.visibleImgSrc},on:{error:t.handleImgError,load:t.handleImgLoad}}),t._v(" "),n("div",{class:t.prefixCls+"-btns-wrapper"},[t._t("prev-btn",[1!==t.imgList.length?n("div",{staticClass:"btn__prev",class:{disable:0===t.imgIndex},on:{click:t.onPrevClick}},[n("svg-icon",{attrs:{type:"prev"}})],1):t._e()],{prev:t.onPrevClick}),t._v(" "),t._t("next-btn",[1!==t.imgList.length?n("div",{staticClass:"btn__next",class:{disable:t.imgIndex===t.imgList.length-1},on:{click:t.onNextClick}},[n("svg-icon",{attrs:{type:"next"}})],1):t._e()],{next:t.onNextClick}),t._v(" "),t._t("close-btn",[n("div",{staticClass:"btn__close",on:{click:t.closeDialog}},[n("svg-icon",{attrs:{type:"close"}})],1)],{close:t.closeDialog}),t._v(" "),t._t("toolbar",[n("toolbar",{attrs:{prefixCls:t.prefixCls,zoomIn:t.zoomIn,zoomOut:t.zoomOut,rotate:t.rotate}})],{toolbarMethods:{zoomIn:t.zoomIn,zoomOut:t.zoomOut,rotate:t.rotate}})],2),t._v(" "),1!==t.imgList.length?n("div",{class:t.prefixCls+"-pagination-total"},[t._v(t._s(t.imgIndex+1)+"/"+t._s(t.imgTotal))]):t._e()],1):t._e()])},staticRenderFns:[]},function(t){t&&t("data-v-66b25fea_0",{source:".vel-fade-enter-active[data-v-66b25fea],.vel-fade-leave-active[data-v-66b25fea]{transition:all .3s ease}.vel-fade-enter[data-v-66b25fea],.vel-fade-leave-to[data-v-66b25fea]{opacity:0}.vel-img-swiper[data-v-66b25fea]{position:relative;display:block}.vel-modal[data-v-66b25fea]{z-index:9998;position:fixed;top:0;left:0;right:0;bottom:0;margin:0;background:rgba(0,0,0,.5)}.vel-img-wrapper[data-v-66b25fea]{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50% -50%);transition:.3s ease-in-out}.vel-img[data-v-66b25fea]{max-width:80vw;max-height:80vh;vertical-align:middle;position:relative;transition:transform .3s ease-in-out;box-shadow:rgba(0,0,0,.7) 0 5px 20px 2px;background-color:rgba(0,0,0,.7)}.vel-btns-wrapper .btn__close[data-v-66b25fea],.vel-btns-wrapper .btn__next[data-v-66b25fea],.vel-btns-wrapper .btn__prev[data-v-66b25fea]{cursor:pointer;position:absolute;font-size:60px;color:#fff;opacity:.6;transition:.15s linear}.vel-btns-wrapper .btn__close[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__next[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__prev[data-v-66b25fea]:hover{opacity:1}.vel-btns-wrapper .btn__next.disable[data-v-66b25fea],.vel-btns-wrapper .btn__next.disable[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__prev.disable[data-v-66b25fea],.vel-btns-wrapper .btn__prev.disable[data-v-66b25fea]:hover{cursor:default;opacity:.2}.vel-btns-wrapper .btn__next[data-v-66b25fea]{top:50%;transform:translateY(-50%);right:20px;font-size:40px}.vel-btns-wrapper .btn__prev[data-v-66b25fea]{top:50%;transform:translateY(-50%);left:20px;font-size:40px}.vel-btns-wrapper .btn__close[data-v-66b25fea]{top:10px;right:10px;font-size:40px}.vel-pagination-total[data-v-66b25fea]{position:absolute;font-size:16px;top:16px;left:16px;color:#000}",map:void 0,media:void 0})},function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.prefixCls=Gt,e.scale=1,e.rotateDeg=0,e.imgIndex=0,e.top=0,e.left=0,e.lastX=0,e.lastY=0,e.isDraging=!1,e.loading=!1,e.loadError=!1,e}return function(t,e){function n(){this.constructor=t}jt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e.prototype,"imgList",{get:function(){return Array.isArray(this.imgs)?this.imgs:[this.imgs]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleImgSrc",{get:function(){return this.imgList[this.imgIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imgTotal",{get:function(){return this.imgList.length||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imgWrapperStyle",{get:function(){var t=this,e=t.scale,n=t.top,o=t.left,r=(t.rotateDeg,t.moveDisabled),i=t.loadError;return{transform:"translate(-50%, -50%) scale("+e+")",top:"calc(50% + "+n+"px)",left:"calc(50% + "+o+"px)",cursor:r||i?"default":"move"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imgStyle",{get:function(){return{transform:"rotate(-"+this.rotateDeg+"deg)"}},enumerable:!0,configurable:!0}),e.prototype.checkMouseEventPropButton=function(t){return!this.moveDisabled&&0===t},e.prototype.handleMouseDown=function(t){this.checkMouseEventPropButton(t.button)&&(this.lastX=t.clientX,this.lastY=t.clientY,this.isDraging=!0,t.stopPropagation())},e.prototype.handleMouseUp=function(t){this.checkMouseEventPropButton(t.button)&&(this.isDraging=!1,this.lastX=this.lastY=0)},e.prototype.handleMouseMove=function(t){this.checkMouseEventPropButton(t.button)&&(this.isDraging&&(this.top=this.top-this.lastY+t.clientY,this.left=this.left-this.lastX+t.clientX,this.lastX=t.clientX,this.lastY=t.clientY),t.stopPropagation())},e.prototype.escapePressHandler=function(t){"Escape"===t.key&&this.visible&&this.closeDialog()},e.prototype.handleImgLoad=function(t){this.loading=!1},e.prototype.handleImgError=function(t){this.loading=!1,this.loadError=!0,this.$emit("on-error",t)},e.prototype.zoomIn=function(){this.scale+=.25},e.prototype.zoomOut=function(){0!==this.scale&&(this.scale-=.25)},e.prototype.rotate=function(){this.rotateDeg+=90},e.prototype.onNextClick=function(){this.onIndexChange(this.imgIndex+1)},e.prototype.onPrevClick=function(){this.onIndexChange(this.imgIndex-1)},e.prototype.closeDialog=function(){this.$emit("hide")},e.prototype.reset=function(){this.scale=1,this.rotateDeg=0,this.top=0,this.left=0,this.isDraging=!1,this.loading=!0,this.loadError=!1},e.prototype.init=function(){this.imgIndex=this.index,this.reset()},e.prototype.onVisibleChanged=function(t){this.visible&&this.init()},e.prototype.onIndexChange=function(t){this.visible&&(t>this.imgList.length-1||t<0||(this.reset(),this.imgIndex=t))},e.prototype.mounted=function(){var t,e,n,o;this.escDisabled||(t=document,e="keydown",n=this.escapePressHandler,void 0===o&&(o=!1),Qt||t.addEventListener(e,n,!!Zt&&{capture:!1,passive:o}))},e.prototype.beforeDestroy=function(){var t,e,n;this.escDisabled||(t=document,e="keydown",n=this.escapePressHandler,Qt||t.removeEventListener(e,n))},Pt([At({type:[Array,String],default:function(){return""}})],e.prototype,"imgs",void 0),Pt([At({type:Boolean,default:!1})],e.prototype,"visible",void 0),Pt([At({type:Number,default:0})],e.prototype,"index",void 0),Pt([At({type:Boolean,default:!1})],e.prototype,"escDisabled",void 0),Pt([At({type:Boolean,default:!1})],e.prototype,"moveDisabled",void 0),Pt([Ft("visible",{immediate:!0})],e.prototype,"onVisibleChanged",null),Pt([Ft("index")],e.prototype,"onIndexChange",null),e=Pt([Dt({name:"vue-easy-lightbox",components:{SvgIcon:Ht,Toolbar:Kt,ImgLoading:qt,ImgOnError:Jt}})],e)}(t),"data-v-66b25fea",!1,void 0,Yt,void 0);return ee.install=function(t){t.component("vue-easy-lightbox",ee)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(ee.install),ee}); +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):(t=t||self)["vue-easy-lightbox"]=e(t.Vue)}(this,function(t){"use strict";function e(t,e){return t(e={exports:{}},e.exports),e.exports}t=t&&t.hasOwnProperty("default")?t.default:t;var n,o=e(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),r={}.hasOwnProperty,i=function(t,e){return r.call(t,e)},a={}.toString,s=function(t){return a.call(t).slice(8,-1)},c=function(t){return"object"==typeof t?null!==t:"function"==typeof t},l=function(t){if(!c(t))throw TypeError(t+" is not an object!");return t},p=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}},u={f:{}.propertyIsEnumerable},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},f=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==s(t)?t.split(""):Object(t)},v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},h=function(t){return f(v(t))},m=function(t,e){if(!c(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!c(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!c(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!c(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")},g=function(t){try{return!!t()}catch(t){return!0}},y=!g(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),b=o.document,_=c(b)&&c(b.createElement),x=function(t){return _?b.createElement(t):{}},w=!y&&!g(function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a}),O=Object.getOwnPropertyDescriptor,C={f:y?O:function(t,e){if(t=h(t),e=m(e,!0),w)try{return O(t,e)}catch(t){}if(i(t,e))return d(!u.f.call(t,e),t[e])}},E=function(t,e){if(l(t),!c(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},I={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=p(Function.call,C.f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,o){return E(t,o),e?t.__proto__=o:n(t,o),t}}({},!1):void 0),check:E}.set,j=Math.ceil,P=Math.floor,M=function(t){return isNaN(t=+t)?0:(t>0?P:j)(t)},z=Math.min,S=Math.max,N=Math.min,k=e(function(t){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)}),L=(k.version,e(function(t){var e=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return e[t]||(e[t]=void 0!==n?n:{})})("versions",[]).push({version:k.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),R=0,D=Math.random(),T=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++R+D).toString(36))},A=L("keys"),F=function(t){return A[t]||(A[t]=T(t))},B=(n=!1,function(t,e,o){var r,i,a=h(t),s=(r=a.length)>0?z(M(r),9007199254740991):0,c=function(t,e){return(t=M(t))<0?S(t+e,0):N(t,e)}(o,s);if(n&&e!=e){for(;s>c;)if((i=a[c++])!=i)return!0}else for(;s>c;c++)if((n||c in a)&&a[c]===e)return n||c||0;return!n&&-1}),$=F("IE_PROTO"),V=function(t,e){var n,o=h(t),r=0,a=[];for(n in o)n!=$&&i(o,n)&&a.push(n);for(;e.length>r;)i(o,n=e[r++])&&(~B(a,n)||a.push(n));return a},U="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),X=U.concat("length","prototype"),Y={f:Object.getOwnPropertyNames||function(t){return V(t,X)}},H=Object.defineProperty,G={f:y?Object.defineProperty:function(t,e,n){if(l(t),e=m(e,!0),l(n),w)try{return H(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},W=y?function(t,e,n){return G.f(t,e,d(1,n))}:function(t,e,n){return t[e]=n,t},K=L("native-function-to-string",Function.toString),q=e(function(t){var e=T("src"),n=(""+K).split("toString");k.inspectSource=function(t){return K.call(t)},(t.exports=function(t,r,a,s){var c="function"==typeof a;c&&(i(a,"name")||W(a,"name",r)),t[r]!==a&&(c&&(i(a,e)||W(a,e,t[r]?""+t[r]:n.join(String(r)))),t===o?t[r]=a:s?t[r]?t[r]=a:W(t,r,a):(delete t[r],W(t,r,a)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[e]||K.call(this)})}),J=function(t,e,n){var r,i,a,s,c=t&J.F,l=t&J.G,u=t&J.S,d=t&J.P,f=t&J.B,v=l?o:u?o[e]||(o[e]={}):(o[e]||{}).prototype,h=l?k:k[e]||(k[e]={}),m=h.prototype||(h.prototype={});for(r in l&&(n=e),n)a=((i=!c&&v&&void 0!==v[r])?v:n)[r],s=f&&i?p(a,o):d&&"function"==typeof a?p(Function.call,a):a,v&&q(v,r,a,t&J.U),h[r]!=a&&W(h,r,s),d&&m[r]!=a&&(m[r]=a)};o.core=k,J.F=1,J.G=2,J.S=4,J.P=8,J.B=16,J.W=32,J.U=64,J.R=128;var Q=J,Z="\t\n\v\f\r \u2028\u2029\ufeff",tt="["+Z+"]",et=RegExp("^"+tt+tt+"*"),nt=RegExp(tt+tt+"*$"),ot=function(t,e,n){var o={},r=g(function(){return!!Z[t]()||" "!=" "[t]()}),i=o[t]=r?e(rt):Z[t];n&&(o[n]=i),Q(Q.P+Q.F*r,"String",o)},rt=ot.trim=function(t,e){return t=String(v(t)),1&e&&(t=t.replace(et,"")),2&e&&(t=t.replace(nt,"")),t},it=ot,at=Object.keys||function(t){return V(t,U)},st=y?Object.defineProperties:function(t,e){l(t);for(var n,o=at(e),r=o.length,i=0;r>i;)G.f(t,n=o[i++],e[n]);return t},ct=o.document,lt=ct&&ct.documentElement,pt=F("IE_PROTO"),ut=function(){},dt=function(){var t,e=x("iframe"),n=U.length;for(e.style.display="none",lt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),dt=t.F;n--;)delete dt.prototype[U[n]];return dt()},ft=Object.create||function(t,e){var n;return null!==t?(ut.prototype=l(t),n=new ut,ut.prototype=null,n[pt]=t):n=dt(),void 0===e?n:st(n,e)},vt=Y.f,ht=C.f,mt=G.f,gt=it.trim,yt=o.Number,bt=yt,_t=yt.prototype,xt="Number"==s(ft(_t)),wt="trim"in String.prototype,Ot=function(t){var e=m(t,!1);if("string"==typeof e&&e.length>2){var n,o,r,i=(e=wt?e.trim():gt(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+e}for(var a,s=e.slice(2),c=0,l=s.length;c<l;c++)if((a=s.charCodeAt(c))<48||a>r)return NaN;return parseInt(s,o)}}return+e};if(!yt(" 0o1")||!yt("0b1")||yt("+0x1")){yt=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof yt&&(xt?g(function(){_t.valueOf.call(n)}):"Number"!=s(n))?function(t,e,n){var o,r=e.constructor;return r!==n&&"function"==typeof r&&(o=r.prototype)!==n.prototype&&c(o)&&I&&I(t,o),t}(new bt(Ot(e)),n,yt):Ot(e)};for(var Ct,Et=y?vt(bt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),It=0;Et.length>It;It++)i(bt,Ct=Et[It])&&!i(yt,Ct)&&mt(yt,Ct,ht(bt,Ct));yt.prototype=_t,_t.constructor=yt,q(o,"Number",yt)}var jt=function(t,e){return(jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function Pt(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}var Mt="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function zt(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach(function(o){var r=n?Reflect.getOwnMetadata(o,e,n):Reflect.getOwnMetadata(o,e);n?Reflect.defineMetadata(o,r,t,n):Reflect.defineMetadata(o,r,t)})}var St={__proto__:[]}instanceof Array;function Nt(t){return function(e,n,o){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof o&&(o=void 0),r.__decorators__.push(function(e){return t(e,n,o)})}}var kt=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function Lt(e,n){void 0===n&&(n={}),n.name=n.name||e._componentTag||e.name;var o=e.prototype;Object.getOwnPropertyNames(o).forEach(function(t){if("constructor"!==t)if(kt.indexOf(t)>-1)n[t]=o[t];else{var e=Object.getOwnPropertyDescriptor(o,t);void 0!==e.value?"function"==typeof e.value?(n.methods||(n.methods={}))[t]=e.value:(n.mixins||(n.mixins=[])).push({data:function(){var n;return(n={})[t]=e.value,n}}):(e.get||e.set)&&((n.computed||(n.computed={}))[t]={get:e.get,set:e.set})}}),(n.mixins||(n.mixins=[])).push({data:function(){return function(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var o in t.$options.props)t.hasOwnProperty(o)||n.push(o);n.forEach(function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})})};var o=new e;e.prototype._init=n;var r={};return Object.keys(o).forEach(function(t){void 0!==o[t]&&(r[t]=o[t])}),r}(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(t){return t(n)}),delete e.__decorators__);var i,a,s=Object.getPrototypeOf(e.prototype),c=s instanceof t?s.constructor:t,l=c.extend(n);return function(t,e,n){Object.getOwnPropertyNames(e).forEach(function(o){if(!Rt[o]){var r=Object.getOwnPropertyDescriptor(t,o);if(!r||r.configurable){var i,a,s=Object.getOwnPropertyDescriptor(e,o);if(!St){if("cid"===o)return;var c=Object.getOwnPropertyDescriptor(n,o);if(i=s.value,a=typeof i,null!=i&&("object"===a||"function"===a)&&c&&c.value===s.value)return}Object.defineProperty(t,o,s)}}})}(l,e,c),Mt&&(zt(i=l,a=e),Object.getOwnPropertyNames(a.prototype).forEach(function(t){zt(i.prototype,a.prototype,t)}),Object.getOwnPropertyNames(a).forEach(function(t){zt(i,a,t)})),l}var Rt={prototype:!0,arguments:!0,callee:!0,caller:!0};function Dt(t){return"function"==typeof t?Lt(t):function(e){return Lt(e,t)}}Dt.registerHooks=function(t){kt.push.apply(kt,t)};var Tt="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function At(t){return void 0===t&&(t={}),function(e,n){!function(t,e,n){Tt&&(Array.isArray(t)||"function"==typeof t||void 0!==t.type||(t.type=Reflect.getMetadata("design:type",e,n)))}(t,e,n),Nt(function(e,n){(e.props||(e.props={}))[n]=t})(e,n)}}function Ft(t,e){void 0===e&&(e={});var n=e.deep,o=void 0!==n&&n,r=e.immediate,i=void 0!==r&&r;return Nt(function(e,n){"object"!=typeof e.watch&&(e.watch=Object.create(null));var r=e.watch;"object"!=typeof r[t]||Array.isArray(r[t])?void 0===r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:o,immediate:i})})}!function(t){var e,n='<svg><symbol id="icon-prev" viewBox="0 0 1024 1024"><path d="M784.652701 955.6957 346.601985 517.644983c-2.822492-2.822492-2.822492-7.902977 0-11.289967l439.179713-439.179713c6.77398-6.77398 10.725469-16.370452 10.725469-25.966924L796.507166 36.692393c0-20.32194-16.370452-36.692393-36.692393-36.692393l-4.515987 0c-9.596472 0-19.192944 3.951488-25.966924 10.725469L250.072767 489.420066c-12.418964 12.418964-12.418964 32.740904 0 45.159868l477.565601 477.565601c7.338479 7.338479 17.499449 11.854465 28.224917 11.854465l0 0c22.015436 0 40.079383-18.063947 40.079383-40.079383l0 0C796.507166 973.759647 791.99118 963.598677 784.652701 955.6957z" ></path></symbol><symbol id="icon-next" viewBox="0 0 1024 1024"><path d="M246.121279 955.6957l438.050717-438.050717c2.822492-2.822492 2.822492-7.902977 0-11.289967L244.992282 67.175303c-6.77398-6.77398-10.725469-16.370452-10.725469-25.966924L234.266814 36.692393C234.266814 16.370452 250.637266 0 270.959206 0l4.515987 0c9.596472 0 19.192944 3.951488 25.966924 10.725469l478.694598 478.694598c12.418964 12.418964 12.418964 32.740904 0 45.159868l-477.565601 477.565601c-7.338479 7.338479-17.499449 11.854465-28.224917 11.854465l0 0c-22.015436 0-40.079383-18.063947-40.079383-40.079383l0 0C234.266814 973.759647 238.7828 963.598677 246.121279 955.6957z" ></path></symbol><symbol id="icon-zoomin" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path><path d="M367.488 238.144h127.104v390.72H367.488z" ></path></symbol><symbol id="icon-rotate" viewBox="0 0 1024 1024"><path d="M288 352v192h128v64h-128v64h192v-320h-192z m128 128h-64v-64h64v64zM544 352v320h192v-320h-192z m128 256h-64v-192h64v192zM957.44 531.84h1.344v-1.92l-1.344 1.92z" ></path><path d="M46.72 474.88l35.84 55.04 1.28 1.92 35.84 55.04 60.16-119.04-32 1.92C168.96 277.76 331.52 128 529.28 128c211.904 0 384 172.16 384 384s-172.096 384-384 384c-140.16 0-263.04-75.52-329.6-188.16h-1.92l-0.64 0.64-53.12 31.36A446.592 446.592 0 0 0 529.28 960c247.744 0 448-200.32 448-448s-200.256-448-448-448C294.4 64 102.4 243.84 83.2 472.96l-36.48 1.92z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M570.24 512l259.2 259.2-58.88 58.24L512 570.24l-261.12 261.12-58.24-58.24L453.76 512 194.56 252.8l58.24-58.24L512 453.76l261.12-261.12 58.24 58.24z" ></path></symbol><symbol id="icon-zoomout" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path></symbol><symbol id="icon-img-broken" viewBox="0 0 1024 1024"><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m0 682.666667H213.333333v-195.413334l42.24 42.24 170.666667-170.666666 170.666667 170.666666 170.666666-170.24L810.666667 530.346667V810.666667z m0-401.493334l-43.093334-43.093333-170.666666 171.093333-170.666667-170.666666-170.666667 170.666666-42.24-42.666666V213.333333h597.333334v195.84z" ></path></symbol></svg>';if((e=document.getElementsByTagName("script"))[e.length-1].getAttribute("data-injectcss")&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console&&console.log(e)}}!function(e){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(e,0);else{document.addEventListener("DOMContentLoaded",function t(){document.removeEventListener("DOMContentLoaded",t,!1),e()},!1)}else document.attachEvent&&(o=e,r=t.document,i=!1,(a=function(){try{r.documentElement.doScroll("left")}catch(t){return void setTimeout(a,50)}n()})(),r.onreadystatechange=function(){"complete"==r.readyState&&(r.onreadystatechange=null,n())});function n(){i||(i=!0,o())}var o,r,i,a}(function(){var t,e;(t=document.createElement("div")).innerHTML=n,n=null,(e=t.getElementsByTagName("svg")[0])&&(e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.width=0,e.style.height=0,e.style.overflow="hidden",function(t,e){e.firstChild?function(t,e){e.parentNode.insertBefore(t,e)}(t,e.firstChild):e.appendChild(t)}(e,document.body))})}(window);var Bt=t.extend({props:{type:{type:String,default:""}},data:function(){return{prefixCls:"vel"}}});var $t,Vt=function(t,e,n,o,r,i,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var p,u="function"==typeof n?n.options:n;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),o&&(u._scopeId=o),i?(p=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=p):e&&(p=a?function(){e.call(this,l(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),p)if(u.functional){var d=u.render;u.render=function(t,e){return p.call(e),d(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,p):[p]}return n},Ut="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var Xt={};var Yt=function(t){return function(t,e){return function(t,e){var n=Ut?e.media||"default":t,o=Xt[n]||(Xt[n]={ids:new Set,styles:[]});if(!o.ids.has(t)){o.ids.add(t);var r=e.source;if(e.map&&(r+="\n/*# sourceURL="+e.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),o.element||(o.element=document.createElement("style"),o.element.type="text/css",e.media&&o.element.setAttribute("media",e.media),void 0===$t&&($t=document.head||document.getElementsByTagName("head")[0]),$t.appendChild(o.element)),"styleSheet"in o.element)o.styles.push(r),o.element.styleSheet.cssText=o.styles.filter(Boolean).join("\n");else{var i=o.ids.size-1,a=document.createTextNode(r),s=o.element.childNodes;s[i]&&o.element.removeChild(s[i]),s.length?o.element.insertBefore(a,s[i]):o.element.appendChild(a)}}}(t,e)}};var Ht=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{class:this.prefixCls+"-icon icon",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":"#icon-"+this.type}})])},staticRenderFns:[]},function(t){t&&t("data-v-7221e0ec_0",{source:".vel-icon[data-v-7221e0ec]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}",map:void 0,media:void 0})},Bt,"data-v-7221e0ec",!1,void 0,Yt,void 0),Gt="vel",Wt=function(){};var Kt=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-toolbar"},[e("div",{staticClass:"toobar-btn toolbar-btn__zoomin",on:{click:this.zoomIn}},[e("svg-icon",{attrs:{type:"zoomin"}})],1),this._v(" "),e("div",{staticClass:"toobar-btn toolbar-btn__zoomout",on:{click:this.zoomOut}},[e("svg-icon",{attrs:{type:"zoomout"}})],1),this._v(" "),e("div",{staticClass:"toobar-btn toolbar-btn__rotate",on:{click:this.rotate}},[e("svg-icon",{attrs:{type:"rotate"}})],1)])},staticRenderFns:[]},function(t){t&&t("data-v-36fa02a2_0",{source:".vel-toolbar[data-v-36fa02a2]{user-select:none;position:absolute;bottom:0;left:50%;transform:translate(-50%);background:rgba(45,45,44,.8);border-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;padding:6px 24px 0}.vel-toolbar .toobar-btn[data-v-36fa02a2]{cursor:pointer;display:inline-block;padding:2px 4px}.vel-toolbar .toobar-btn[data-v-36fa02a2]{font-size:32px;color:#fff}.vel-toolbar .toobar-btn[data-v-36fa02a2]:hover{color:#54b4ee}",map:void 0,media:void 0})},t.extend({components:{SvgIcon:Ht},props:{zoomIn:{type:Function,default:Wt},zoomOut:{type:Function,default:Wt},rotate:{type:Function,default:Wt}},data:function(){return{prefixCls:Gt}}}),"data-v-36fa02a2",!1,void 0,Yt,void 0);var qt=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-loading"},[e("div",{staticClass:"ring"})])},staticRenderFns:[]},function(t){t&&t("data-v-0cefeb9a_0",{source:'.vel-loading[data-v-0cefeb9a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-loading .ring[data-v-0cefeb9a]{display:inline-block;width:64px;height:64px}.vel-loading .ring[data-v-0cefeb9a]:after{content:" ";display:block;width:46px;height:46px;margin:1px;border-radius:50%;border:5px solid rgba(255,255,255,.7);border-color:rgba(255,255,255,.7) transparent rgba(255,255,255,.7) transparent;animation:ring-data-v-0cefeb9a 1.2s linear infinite}@keyframes ring-data-v-0cefeb9a{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',map:void 0,media:void 0})},t.extend({data:function(){return{prefixCls:Gt}}}),"data-v-0cefeb9a",!1,void 0,Yt,void 0);var Jt=Vt({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-on-error"},[e("svg-icon",{attrs:{clas:"icon",type:"img-broken"}})],1)},staticRenderFns:[]},function(t){t&&t("data-v-137806a2_0",{source:".vel-on-error[data-v-137806a2]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-on-error .icon[data-v-137806a2]{font-size:80px;color:#aaa}",map:void 0,media:void 0})},t.extend({components:{SvgIcon:Ht},data:function(){return{prefixCls:Gt}}}),"data-v-137806a2",!1,void 0,Yt,void 0),Qt=t.prototype.$isServer,Zt=!1;if(!Qt)try{var te={};Object.defineProperty(te,"passive",{get:function(){Zt=!0}}),window.addEventListener("test-passive",function(){},te)}catch(t){}var ee=Vt({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.prefixCls+"-fade"}},[t.visible?n("div",{class:[t.prefixCls+"-img-modal",t.prefixCls+"-modal"],on:{click:function(e){return e.target!==e.currentTarget?null:t.closeDialog(e)}}},[n("transition",{attrs:{name:t.prefixCls+"-fade",mode:"out-in"}},[t.loading?t._t("loading",[n("img-loading")]):t._e(),t._v(" "),t.loadError?t._t("onerror",[n("img-on-error")]):t._e(),t._v(" "),t.loading||t.loadError?t._e():n("div",{class:t.prefixCls+"-img-wrapper",style:t.imgWrapperStyle},[n("img",{class:t.prefixCls+"-img",style:t.imgStyle,attrs:{src:t.visibleImgSrc,draggable:"false"},on:{mousedown:function(e){return t.handleMouseDown(e)},mouseup:function(e){return t.handleMouseUp(e)},mousemove:function(e){return t.handleMouseMove(e)}}})])],2),t._v(" "),n("img",{staticStyle:{display:"none"},attrs:{src:t.visibleImgSrc},on:{error:t.handleImgError,load:t.handleImgLoad}}),t._v(" "),n("div",{class:t.prefixCls+"-btns-wrapper"},[t._t("prev-btn",[1!==t.imgList.length?n("div",{staticClass:"btn__prev",class:{disable:0===t.imgIndex},on:{click:t.onPrevClick}},[n("svg-icon",{attrs:{type:"prev"}})],1):t._e()],{prev:t.onPrevClick}),t._v(" "),t._t("next-btn",[1!==t.imgList.length?n("div",{staticClass:"btn__next",class:{disable:t.imgIndex===t.imgList.length-1},on:{click:t.onNextClick}},[n("svg-icon",{attrs:{type:"next"}})],1):t._e()],{next:t.onNextClick}),t._v(" "),t._t("close-btn",[n("div",{staticClass:"btn__close",on:{click:t.closeDialog}},[n("svg-icon",{attrs:{type:"close"}})],1)],{close:t.closeDialog}),t._v(" "),t._t("toolbar",[n("toolbar",{attrs:{prefixCls:t.prefixCls,zoomIn:t.zoomIn,zoomOut:t.zoomOut,rotate:t.rotate}})],{toolbarMethods:{zoomIn:t.zoomIn,zoomOut:t.zoomOut,rotate:t.rotate}})],2),t._v(" "),1!==t.imgList.length?n("div",{class:t.prefixCls+"-pagination-total"},[t._v(t._s(t.imgIndex+1)+"/"+t._s(t.imgTotal))]):t._e()],1):t._e()])},staticRenderFns:[]},function(t){t&&t("data-v-4de35050_0",{source:".vel-fade-enter-active[data-v-4de35050],.vel-fade-leave-active[data-v-4de35050]{transition:all .3s ease}.vel-fade-enter[data-v-4de35050],.vel-fade-leave-to[data-v-4de35050]{opacity:0}.vel-img-swiper[data-v-4de35050]{position:relative;display:block}.vel-modal[data-v-4de35050]{z-index:9998;position:fixed;top:0;left:0;right:0;bottom:0;margin:0;background:rgba(0,0,0,.5)}.vel-img-wrapper[data-v-4de35050]{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50% -50%);transition:.3s ease-in-out}.vel-img[data-v-4de35050]{max-width:80vw;max-height:80vh;vertical-align:middle;position:relative;transition:transform .3s ease-in-out;box-shadow:rgba(0,0,0,.7) 0 5px 20px 2px;background-color:rgba(0,0,0,.7)}.vel-btns-wrapper .btn__close[data-v-4de35050],.vel-btns-wrapper .btn__next[data-v-4de35050],.vel-btns-wrapper .btn__prev[data-v-4de35050]{cursor:pointer;position:absolute;font-size:60px;color:#fff;opacity:.6;transition:.15s linear}.vel-btns-wrapper .btn__close[data-v-4de35050]:hover,.vel-btns-wrapper .btn__next[data-v-4de35050]:hover,.vel-btns-wrapper .btn__prev[data-v-4de35050]:hover{opacity:1}.vel-btns-wrapper .btn__next.disable[data-v-4de35050],.vel-btns-wrapper .btn__next.disable[data-v-4de35050]:hover,.vel-btns-wrapper .btn__prev.disable[data-v-4de35050],.vel-btns-wrapper .btn__prev.disable[data-v-4de35050]:hover{cursor:default;opacity:.2}.vel-btns-wrapper .btn__next[data-v-4de35050]{top:50%;transform:translateY(-50%);right:20px;font-size:40px}.vel-btns-wrapper .btn__prev[data-v-4de35050]{top:50%;transform:translateY(-50%);left:20px;font-size:40px}.vel-btns-wrapper .btn__close[data-v-4de35050]{top:10px;right:10px;font-size:40px}.vel-pagination-total[data-v-4de35050]{position:absolute;font-size:16px;top:16px;left:16px;color:#000}",map:void 0,media:void 0})},function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.prefixCls=Gt,e.scale=1,e.rotateDeg=0,e.imgIndex=0,e.top=0,e.left=0,e.lastX=0,e.lastY=0,e.isDraging=!1,e.loading=!1,e.loadError=!1,e}return function(t,e){function n(){this.constructor=t}jt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e.prototype,"imgList",{get:function(){return Array.isArray(this.imgs)?this.imgs:[this.imgs]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleImgSrc",{get:function(){return this.imgList[this.imgIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imgTotal",{get:function(){return this.imgList.length||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imgWrapperStyle",{get:function(){var t=this,e=t.scale,n=t.top,o=t.left,r=(t.rotateDeg,t.moveDisabled),i=t.loadError;return{transform:"translate(-50%, -50%) scale("+e+")",top:"calc(50% + "+n+"px)",left:"calc(50% + "+o+"px)",cursor:r||i?"default":"move"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imgStyle",{get:function(){return{transform:"rotate(-"+this.rotateDeg+"deg)"}},enumerable:!0,configurable:!0}),e.prototype.checkMouseEventPropButton=function(t){return!this.moveDisabled&&0===t},e.prototype.handleMouseDown=function(t){this.checkMouseEventPropButton(t.button)&&(this.lastX=t.clientX,this.lastY=t.clientY,this.isDraging=!0,t.stopPropagation())},e.prototype.handleMouseUp=function(t){this.checkMouseEventPropButton(t.button)&&(this.isDraging=!1,this.lastX=this.lastY=0)},e.prototype.handleMouseMove=function(t){this.checkMouseEventPropButton(t.button)&&(this.isDraging&&(this.top=this.top-this.lastY+t.clientY,this.left=this.left-this.lastX+t.clientX,this.lastX=t.clientX,this.lastY=t.clientY),t.stopPropagation())},e.prototype.escapePressHandler=function(t){"Escape"===t.key&&this.visible&&this.closeDialog()},e.prototype.handleImgLoad=function(t){this.loading=!1},e.prototype.handleImgError=function(t){this.loading=!1,this.loadError=!0,this.$emit("on-error",t)},e.prototype.zoomIn=function(){this.scale+=.25},e.prototype.zoomOut=function(){0!==this.scale&&(this.scale-=.25)},e.prototype.rotate=function(){this.rotateDeg+=90},e.prototype.onNextClick=function(){this.onIndexChange(this.imgIndex+1)},e.prototype.onPrevClick=function(){this.onIndexChange(this.imgIndex-1)},e.prototype.closeDialog=function(){this.$emit("hide")},e.prototype.reset=function(){this.scale=1,this.rotateDeg=0,this.top=0,this.left=0,this.isDraging=!1,this.loading=!0,this.loadError=!1},e.prototype.init=function(){this.imgIndex=this.index,this.reset()},e.prototype.onVisibleChanged=function(t){this.visible&&this.init()},e.prototype.onIndexChange=function(t){var e=this;this.visible&&(t>this.imgList.length-1||t<0||(this.reset(),this.imgIndex=t,this.imgList[this.imgIndex]===this.imgList[t]&&this.$nextTick(function(){e.loading=!1})))},e.prototype.mounted=function(){var t,e,n,o;this.escDisabled||(t=document,e="keydown",n=this.escapePressHandler,void 0===o&&(o=!1),Qt||t.addEventListener(e,n,!!Zt&&{capture:!1,passive:o}))},e.prototype.beforeDestroy=function(){var t,e,n;this.escDisabled||(t=document,e="keydown",n=this.escapePressHandler,Qt||t.removeEventListener(e,n))},Pt([At({type:[Array,String],default:function(){return""}})],e.prototype,"imgs",void 0),Pt([At({type:Boolean,default:!1})],e.prototype,"visible",void 0),Pt([At({type:Number,default:0})],e.prototype,"index",void 0),Pt([At({type:Boolean,default:!1})],e.prototype,"escDisabled",void 0),Pt([At({type:Boolean,default:!1})],e.prototype,"moveDisabled",void 0),Pt([Ft("visible",{immediate:!0})],e.prototype,"onVisibleChanged",null),Pt([Ft("index")],e.prototype,"onIndexChange",null),e=Pt([Dt({name:"vue-easy-lightbox",components:{SvgIcon:Ht,Toolbar:Kt,ImgLoading:qt,ImgOnError:Jt}})],e)}(t),"data-v-4de35050",!1,void 0,Yt,void 0);return ee.install=function(t){t.component("vue-easy-lightbox",ee)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(ee.install),ee}); diff --git a/dist/vue-easy-lightbox.esm.min.js b/dist/vue-easy-lightbox.esm.min.js index 555b1a2..c49bce0 100644 --- a/dist/vue-easy-lightbox.esm.min.js +++ b/dist/vue-easy-lightbox.esm.min.js @@ -1 +1 @@ -import t from"vue";var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,o)};function o(t,e,o,n){var a,r=arguments.length,i=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(i=(r<3?a(i):r>3?a(e,o,i):a(e,o))||i);return r>3&&i&&Object.defineProperty(e,o,i),i}var n="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function a(t,e,o){(o?Reflect.getOwnMetadataKeys(e,o):Reflect.getOwnMetadataKeys(e)).forEach(function(n){var a=o?Reflect.getOwnMetadata(n,e,o):Reflect.getOwnMetadata(n,e);o?Reflect.defineMetadata(n,a,t,o):Reflect.defineMetadata(n,a,t)})}var r={__proto__:[]}instanceof Array;function i(t){return function(e,o,n){var a="function"==typeof e?e:e.constructor;a.__decorators__||(a.__decorators__=[]),"number"!=typeof n&&(n=void 0),a.__decorators__.push(function(e){return t(e,o,n)})}}var s=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function l(e,o){void 0===o&&(o={}),o.name=o.name||e._componentTag||e.name;var i=e.prototype;Object.getOwnPropertyNames(i).forEach(function(t){if("constructor"!==t)if(s.indexOf(t)>-1)o[t]=i[t];else{var e=Object.getOwnPropertyDescriptor(i,t);void 0!==e.value?"function"==typeof e.value?(o.methods||(o.methods={}))[t]=e.value:(o.mixins||(o.mixins=[])).push({data:function(){var o;return(o={})[t]=e.value,o}}):(e.get||e.set)&&((o.computed||(o.computed={}))[t]={get:e.get,set:e.set})}}),(o.mixins||(o.mixins=[])).push({data:function(){return function(t,e){var o=e.prototype._init;e.prototype._init=function(){var e=this,o=Object.getOwnPropertyNames(t);if(t.$options.props)for(var n in t.$options.props)t.hasOwnProperty(n)||o.push(n);o.forEach(function(o){"_"!==o.charAt(0)&&Object.defineProperty(e,o,{get:function(){return t[o]},set:function(e){t[o]=e},configurable:!0})})};var n=new e;e.prototype._init=o;var a={};return Object.keys(n).forEach(function(t){void 0!==n[t]&&(a[t]=n[t])}),a}(this,e)}});var l=e.__decorators__;l&&(l.forEach(function(t){return t(o)}),delete e.__decorators__);var d,p,f=Object.getPrototypeOf(e.prototype),v=f instanceof t?f.constructor:t,u=v.extend(o);return function(t,e,o){Object.getOwnPropertyNames(e).forEach(function(n){if(!c[n]){var a=Object.getOwnPropertyDescriptor(t,n);if(!a||a.configurable){var i,s,l=Object.getOwnPropertyDescriptor(e,n);if(!r){if("cid"===n)return;var d=Object.getOwnPropertyDescriptor(o,n);if(i=l.value,s=typeof i,null!=i&&("object"===s||"function"===s)&&d&&d.value===l.value)return}Object.defineProperty(t,n,l)}}})}(u,e,v),n&&(a(d=u,p=e),Object.getOwnPropertyNames(p.prototype).forEach(function(t){a(d.prototype,p.prototype,t)}),Object.getOwnPropertyNames(p).forEach(function(t){a(d,p,t)})),u}var c={prototype:!0,arguments:!0,callee:!0,caller:!0};function d(t){return"function"==typeof t?l(t):function(e){return l(e,t)}}d.registerHooks=function(t){s.push.apply(s,t)};var p="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function f(t){return void 0===t&&(t={}),function(e,o){!function(t,e,o){p&&(Array.isArray(t)||"function"==typeof t||void 0!==t.type||(t.type=Reflect.getMetadata("design:type",e,o)))}(t,e,o),i(function(e,o){(e.props||(e.props={}))[o]=t})(e,o)}}function v(t,e){void 0===e&&(e={});var o=e.deep,n=void 0!==o&&o,a=e.immediate,r=void 0!==a&&a;return i(function(e,o){"object"!=typeof e.watch&&(e.watch=Object.create(null));var a=e.watch;"object"!=typeof a[t]||Array.isArray(a[t])?void 0===a[t]&&(a[t]=[]):a[t]=[a[t]],a[t].push({handler:o,deep:n,immediate:r})})}!function(t){var e,o='<svg><symbol id="icon-prev" viewBox="0 0 1024 1024"><path d="M784.652701 955.6957 346.601985 517.644983c-2.822492-2.822492-2.822492-7.902977 0-11.289967l439.179713-439.179713c6.77398-6.77398 10.725469-16.370452 10.725469-25.966924L796.507166 36.692393c0-20.32194-16.370452-36.692393-36.692393-36.692393l-4.515987 0c-9.596472 0-19.192944 3.951488-25.966924 10.725469L250.072767 489.420066c-12.418964 12.418964-12.418964 32.740904 0 45.159868l477.565601 477.565601c7.338479 7.338479 17.499449 11.854465 28.224917 11.854465l0 0c22.015436 0 40.079383-18.063947 40.079383-40.079383l0 0C796.507166 973.759647 791.99118 963.598677 784.652701 955.6957z" ></path></symbol><symbol id="icon-next" viewBox="0 0 1024 1024"><path d="M246.121279 955.6957l438.050717-438.050717c2.822492-2.822492 2.822492-7.902977 0-11.289967L244.992282 67.175303c-6.77398-6.77398-10.725469-16.370452-10.725469-25.966924L234.266814 36.692393C234.266814 16.370452 250.637266 0 270.959206 0l4.515987 0c9.596472 0 19.192944 3.951488 25.966924 10.725469l478.694598 478.694598c12.418964 12.418964 12.418964 32.740904 0 45.159868l-477.565601 477.565601c-7.338479 7.338479-17.499449 11.854465-28.224917 11.854465l0 0c-22.015436 0-40.079383-18.063947-40.079383-40.079383l0 0C234.266814 973.759647 238.7828 963.598677 246.121279 955.6957z" ></path></symbol><symbol id="icon-zoomin" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path><path d="M367.488 238.144h127.104v390.72H367.488z" ></path></symbol><symbol id="icon-rotate" viewBox="0 0 1024 1024"><path d="M288 352v192h128v64h-128v64h192v-320h-192z m128 128h-64v-64h64v64zM544 352v320h192v-320h-192z m128 256h-64v-192h64v192zM957.44 531.84h1.344v-1.92l-1.344 1.92z" ></path><path d="M46.72 474.88l35.84 55.04 1.28 1.92 35.84 55.04 60.16-119.04-32 1.92C168.96 277.76 331.52 128 529.28 128c211.904 0 384 172.16 384 384s-172.096 384-384 384c-140.16 0-263.04-75.52-329.6-188.16h-1.92l-0.64 0.64-53.12 31.36A446.592 446.592 0 0 0 529.28 960c247.744 0 448-200.32 448-448s-200.256-448-448-448C294.4 64 102.4 243.84 83.2 472.96l-36.48 1.92z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M570.24 512l259.2 259.2-58.88 58.24L512 570.24l-261.12 261.12-58.24-58.24L453.76 512 194.56 252.8l58.24-58.24L512 453.76l261.12-261.12 58.24 58.24z" ></path></symbol><symbol id="icon-zoomout" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path></symbol><symbol id="icon-img-broken" viewBox="0 0 1024 1024"><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m0 682.666667H213.333333v-195.413334l42.24 42.24 170.666667-170.666666 170.666667 170.666666 170.666666-170.24L810.666667 530.346667V810.666667z m0-401.493334l-43.093334-43.093333-170.666666 171.093333-170.666667-170.666666-170.666667 170.666666-42.24-42.666666V213.333333h597.333334v195.84z" ></path></symbol></svg>';if((e=document.getElementsByTagName("script"))[e.length-1].getAttribute("data-injectcss")&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console&&console.log(e)}}!function(e){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(e,0);else{var o=function(){document.removeEventListener("DOMContentLoaded",o,!1),e()};document.addEventListener("DOMContentLoaded",o,!1)}else document.attachEvent&&(a=e,r=t.document,i=!1,(s=function(){try{r.documentElement.doScroll("left")}catch(t){return void setTimeout(s,50)}n()})(),r.onreadystatechange=function(){"complete"==r.readyState&&(r.onreadystatechange=null,n())});function n(){i||(i=!0,a())}var a,r,i,s}(function(){var t,e;(t=document.createElement("div")).innerHTML=o,o=null,(e=t.getElementsByTagName("svg")[0])&&(e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.width=0,e.style.height=0,e.style.overflow="hidden",function(t,e){e.firstChild?function(t,e){e.parentNode.insertBefore(t,e)}(t,e.firstChild):e.appendChild(t)}(e,document.body))})}(window);var u=t.extend({props:{type:{type:String,default:""}},data:function(){return{prefixCls:"vel"}}});var h,m=function(t,e,o,n,a,r,i,s,l,c){"boolean"!=typeof i&&(l=s,s=i,i=!1);var d,p="function"==typeof o?o.options:o;if(t&&t.render&&(p.render=t.render,p.staticRenderFns=t.staticRenderFns,p._compiled=!0,a&&(p.functional=!0)),n&&(p._scopeId=n),r?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},p._ssrRegister=d):e&&(d=i?function(){e.call(this,c(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),d)if(p.functional){var f=p.render;p.render=function(t,e){return d.call(e),f(t,e)}}else{var v=p.beforeCreate;p.beforeCreate=v?[].concat(v,d):[d]}return o},b="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var g={};var y=function(t){return function(t,e){return function(t,e){var o=b?e.media||"default":t,n=g[o]||(g[o]={ids:new Set,styles:[]});if(!n.ids.has(t)){n.ids.add(t);var a=e.source;if(e.map&&(a+="\n/*# sourceURL="+e.map.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",e.media&&n.element.setAttribute("media",e.media),void 0===h&&(h=document.head||document.getElementsByTagName("head")[0]),h.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(a),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{var r=n.ids.size-1,i=document.createTextNode(a),s=n.element.childNodes;s[r]&&n.element.removeChild(s[r]),s.length?n.element.insertBefore(i,s[r]):n.element.appendChild(i)}}}(t,e)}};var _=m({render:function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{class:this.prefixCls+"-icon icon",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":"#icon-"+this.type}})])},staticRenderFns:[]},function(t){t&&t("data-v-7221e0ec_0",{source:".vel-icon[data-v-7221e0ec]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}",map:void 0,media:void 0})},u,"data-v-7221e0ec",!1,void 0,y,void 0),x="vel",w=function(){};var C=m({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-toolbar"},[e("div",{staticClass:"toobar-btn toolbar-btn__zoomin",on:{click:this.zoomIn}},[e("svg-icon",{attrs:{type:"zoomin"}})],1),this._v(" "),e("div",{staticClass:"toobar-btn toolbar-btn__zoomout",on:{click:this.zoomOut}},[e("svg-icon",{attrs:{type:"zoomout"}})],1),this._v(" "),e("div",{staticClass:"toobar-btn toolbar-btn__rotate",on:{click:this.rotate}},[e("svg-icon",{attrs:{type:"rotate"}})],1)])},staticRenderFns:[]},function(t){t&&t("data-v-36fa02a2_0",{source:".vel-toolbar[data-v-36fa02a2]{user-select:none;position:absolute;bottom:0;left:50%;transform:translate(-50%);background:rgba(45,45,44,.8);border-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;padding:6px 24px 0}.vel-toolbar .toobar-btn[data-v-36fa02a2]{cursor:pointer;display:inline-block;padding:2px 4px}.vel-toolbar .toobar-btn[data-v-36fa02a2]{font-size:32px;color:#fff}.vel-toolbar .toobar-btn[data-v-36fa02a2]:hover{color:#54b4ee}",map:void 0,media:void 0})},t.extend({components:{SvgIcon:_},props:{zoomIn:{type:Function,default:w},zoomOut:{type:Function,default:w},rotate:{type:Function,default:w}},data:function(){return{prefixCls:x}}}),"data-v-36fa02a2",!1,void 0,y,void 0);var O=m({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-loading"},[e("div",{staticClass:"ring"})])},staticRenderFns:[]},function(t){t&&t("data-v-0cefeb9a_0",{source:'.vel-loading[data-v-0cefeb9a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-loading .ring[data-v-0cefeb9a]{display:inline-block;width:64px;height:64px}.vel-loading .ring[data-v-0cefeb9a]:after{content:" ";display:block;width:46px;height:46px;margin:1px;border-radius:50%;border:5px solid rgba(255,255,255,.7);border-color:rgba(255,255,255,.7) transparent rgba(255,255,255,.7) transparent;animation:ring-data-v-0cefeb9a 1.2s linear infinite}@keyframes ring-data-v-0cefeb9a{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',map:void 0,media:void 0})},t.extend({data:function(){return{prefixCls:x}}}),"data-v-0cefeb9a",!1,void 0,y,void 0);var z=m({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-on-error"},[e("svg-icon",{attrs:{clas:"icon",type:"img-broken"}})],1)},staticRenderFns:[]},function(t){t&&t("data-v-137806a2_0",{source:".vel-on-error[data-v-137806a2]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-on-error .icon[data-v-137806a2]{font-size:80px;color:#aaa}",map:void 0,media:void 0})},t.extend({components:{SvgIcon:_},data:function(){return{prefixCls:x}}}),"data-v-137806a2",!1,void 0,y,void 0),E=t.prototype.$isServer,M=!1;if(!E)try{var P={};Object.defineProperty(P,"passive",{get:function(){M=!0}}),window.addEventListener("test-passive",function(){},P)}catch(t){}var k=m({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("transition",{attrs:{name:t.prefixCls+"-fade"}},[t.visible?o("div",{class:[t.prefixCls+"-img-modal",t.prefixCls+"-modal"],on:{click:function(e){return e.target!==e.currentTarget?null:t.closeDialog(e)}}},[o("transition",{attrs:{name:t.prefixCls+"-fade",mode:"out-in"}},[t.loading?t._t("loading",[o("img-loading")]):t._e(),t._v(" "),t.loadError?t._t("onerror",[o("img-on-error")]):t._e(),t._v(" "),t.loading||t.loadError?t._e():o("div",{class:t.prefixCls+"-img-wrapper",style:t.imgWrapperStyle},[o("img",{class:t.prefixCls+"-img",style:t.imgStyle,attrs:{src:t.visibleImgSrc,draggable:"false"},on:{mousedown:function(e){return t.handleMouseDown(e)},mouseup:function(e){return t.handleMouseUp(e)},mousemove:function(e){return t.handleMouseMove(e)}}})])],2),t._v(" "),o("img",{staticStyle:{display:"none"},attrs:{src:t.visibleImgSrc},on:{error:t.handleImgError,load:t.handleImgLoad}}),t._v(" "),o("div",{class:t.prefixCls+"-btns-wrapper"},[t._t("prev-btn",[1!==t.imgList.length?o("div",{staticClass:"btn__prev",class:{disable:0===t.imgIndex},on:{click:t.onPrevClick}},[o("svg-icon",{attrs:{type:"prev"}})],1):t._e()],{prev:t.onPrevClick}),t._v(" "),t._t("next-btn",[1!==t.imgList.length?o("div",{staticClass:"btn__next",class:{disable:t.imgIndex===t.imgList.length-1},on:{click:t.onNextClick}},[o("svg-icon",{attrs:{type:"next"}})],1):t._e()],{next:t.onNextClick}),t._v(" "),t._t("close-btn",[o("div",{staticClass:"btn__close",on:{click:t.closeDialog}},[o("svg-icon",{attrs:{type:"close"}})],1)],{close:t.closeDialog}),t._v(" "),t._t("toolbar",[o("toolbar",{attrs:{prefixCls:t.prefixCls,zoomIn:t.zoomIn,zoomOut:t.zoomOut,rotate:t.rotate}})],{toolbarMethods:{zoomIn:t.zoomIn,zoomOut:t.zoomOut,rotate:t.rotate}})],2),t._v(" "),1!==t.imgList.length?o("div",{class:t.prefixCls+"-pagination-total"},[t._v(t._s(t.imgIndex+1)+"/"+t._s(t.imgTotal))]):t._e()],1):t._e()])},staticRenderFns:[]},function(t){t&&t("data-v-66b25fea_0",{source:".vel-fade-enter-active[data-v-66b25fea],.vel-fade-leave-active[data-v-66b25fea]{transition:all .3s ease}.vel-fade-enter[data-v-66b25fea],.vel-fade-leave-to[data-v-66b25fea]{opacity:0}.vel-img-swiper[data-v-66b25fea]{position:relative;display:block}.vel-modal[data-v-66b25fea]{z-index:9998;position:fixed;top:0;left:0;right:0;bottom:0;margin:0;background:rgba(0,0,0,.5)}.vel-img-wrapper[data-v-66b25fea]{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50% -50%);transition:.3s ease-in-out}.vel-img[data-v-66b25fea]{max-width:80vw;max-height:80vh;vertical-align:middle;position:relative;transition:transform .3s ease-in-out;box-shadow:rgba(0,0,0,.7) 0 5px 20px 2px;background-color:rgba(0,0,0,.7)}.vel-btns-wrapper .btn__close[data-v-66b25fea],.vel-btns-wrapper .btn__next[data-v-66b25fea],.vel-btns-wrapper .btn__prev[data-v-66b25fea]{cursor:pointer;position:absolute;font-size:60px;color:#fff;opacity:.6;transition:.15s linear}.vel-btns-wrapper .btn__close[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__next[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__prev[data-v-66b25fea]:hover{opacity:1}.vel-btns-wrapper .btn__next.disable[data-v-66b25fea],.vel-btns-wrapper .btn__next.disable[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__prev.disable[data-v-66b25fea],.vel-btns-wrapper .btn__prev.disable[data-v-66b25fea]:hover{cursor:default;opacity:.2}.vel-btns-wrapper .btn__next[data-v-66b25fea]{top:50%;transform:translateY(-50%);right:20px;font-size:40px}.vel-btns-wrapper .btn__prev[data-v-66b25fea]{top:50%;transform:translateY(-50%);left:20px;font-size:40px}.vel-btns-wrapper .btn__close[data-v-66b25fea]{top:10px;right:10px;font-size:40px}.vel-pagination-total[data-v-66b25fea]{position:absolute;font-size:16px;top:16px;left:16px;color:#000}",map:void 0,media:void 0})},function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.prefixCls=x,e.scale=1,e.rotateDeg=0,e.imgIndex=0,e.top=0,e.left=0,e.lastX=0,e.lastY=0,e.isDraging=!1,e.loading=!1,e.loadError=!1,e}return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}(n,t),Object.defineProperty(n.prototype,"imgList",{get:function(){return Array.isArray(this.imgs)?this.imgs:[this.imgs]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visibleImgSrc",{get:function(){return this.imgList[this.imgIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"imgTotal",{get:function(){return this.imgList.length||0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"imgWrapperStyle",{get:function(){var t=this,e=t.scale,o=t.top,n=t.left,a=(t.rotateDeg,t.moveDisabled),r=t.loadError;return{transform:"translate(-50%, -50%) scale("+e+")",top:"calc(50% + "+o+"px)",left:"calc(50% + "+n+"px)",cursor:a||r?"default":"move"}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"imgStyle",{get:function(){return{transform:"rotate(-"+this.rotateDeg+"deg)"}},enumerable:!0,configurable:!0}),n.prototype.checkMouseEventPropButton=function(t){return!this.moveDisabled&&0===t},n.prototype.handleMouseDown=function(t){this.checkMouseEventPropButton(t.button)&&(this.lastX=t.clientX,this.lastY=t.clientY,this.isDraging=!0,t.stopPropagation())},n.prototype.handleMouseUp=function(t){this.checkMouseEventPropButton(t.button)&&(this.isDraging=!1,this.lastX=this.lastY=0)},n.prototype.handleMouseMove=function(t){this.checkMouseEventPropButton(t.button)&&(this.isDraging&&(this.top=this.top-this.lastY+t.clientY,this.left=this.left-this.lastX+t.clientX,this.lastX=t.clientX,this.lastY=t.clientY),t.stopPropagation())},n.prototype.escapePressHandler=function(t){"Escape"===t.key&&this.visible&&this.closeDialog()},n.prototype.handleImgLoad=function(t){this.loading=!1},n.prototype.handleImgError=function(t){this.loading=!1,this.loadError=!0,this.$emit("on-error",t)},n.prototype.zoomIn=function(){this.scale+=.25},n.prototype.zoomOut=function(){0!==this.scale&&(this.scale-=.25)},n.prototype.rotate=function(){this.rotateDeg+=90},n.prototype.onNextClick=function(){this.onIndexChange(this.imgIndex+1)},n.prototype.onPrevClick=function(){this.onIndexChange(this.imgIndex-1)},n.prototype.closeDialog=function(){this.$emit("hide")},n.prototype.reset=function(){this.scale=1,this.rotateDeg=0,this.top=0,this.left=0,this.isDraging=!1,this.loading=!0,this.loadError=!1},n.prototype.init=function(){this.imgIndex=this.index,this.reset()},n.prototype.onVisibleChanged=function(t){this.visible&&this.init()},n.prototype.onIndexChange=function(t){this.visible&&(t>this.imgList.length-1||t<0||(this.reset(),this.imgIndex=t))},n.prototype.mounted=function(){var t,e,o,n;this.escDisabled||(t=document,e="keydown",o=this.escapePressHandler,void 0===n&&(n=!1),E||t.addEventListener(e,o,!!M&&{capture:!1,passive:n}))},n.prototype.beforeDestroy=function(){var t,e,o;this.escDisabled||(t=document,e="keydown",o=this.escapePressHandler,E||t.removeEventListener(e,o))},o([f({type:[Array,String],default:function(){return""}})],n.prototype,"imgs",void 0),o([f({type:Boolean,default:!1})],n.prototype,"visible",void 0),o([f({type:Number,default:0})],n.prototype,"index",void 0),o([f({type:Boolean,default:!1})],n.prototype,"escDisabled",void 0),o([f({type:Boolean,default:!1})],n.prototype,"moveDisabled",void 0),o([v("visible",{immediate:!0})],n.prototype,"onVisibleChanged",null),o([v("index")],n.prototype,"onIndexChange",null),n=o([d({name:"vue-easy-lightbox",components:{SvgIcon:_,Toolbar:C,ImgLoading:O,ImgOnError:z}})],n)}(t),"data-v-66b25fea",!1,void 0,y,void 0);k.install=function(t){t.component("vue-easy-lightbox",k)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(k.install);export default k; +import t from"vue";var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,o)};function o(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a}var n="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function i(t,e,o){(o?Reflect.getOwnMetadataKeys(e,o):Reflect.getOwnMetadataKeys(e)).forEach(function(n){var i=o?Reflect.getOwnMetadata(n,e,o):Reflect.getOwnMetadata(n,e);o?Reflect.defineMetadata(n,i,t,o):Reflect.defineMetadata(n,i,t)})}var r={__proto__:[]}instanceof Array;function a(t){return function(e,o,n){var i="function"==typeof e?e:e.constructor;i.__decorators__||(i.__decorators__=[]),"number"!=typeof n&&(n=void 0),i.__decorators__.push(function(e){return t(e,o,n)})}}var s=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function l(e,o){void 0===o&&(o={}),o.name=o.name||e._componentTag||e.name;var a=e.prototype;Object.getOwnPropertyNames(a).forEach(function(t){if("constructor"!==t)if(s.indexOf(t)>-1)o[t]=a[t];else{var e=Object.getOwnPropertyDescriptor(a,t);void 0!==e.value?"function"==typeof e.value?(o.methods||(o.methods={}))[t]=e.value:(o.mixins||(o.mixins=[])).push({data:function(){var o;return(o={})[t]=e.value,o}}):(e.get||e.set)&&((o.computed||(o.computed={}))[t]={get:e.get,set:e.set})}}),(o.mixins||(o.mixins=[])).push({data:function(){return function(t,e){var o=e.prototype._init;e.prototype._init=function(){var e=this,o=Object.getOwnPropertyNames(t);if(t.$options.props)for(var n in t.$options.props)t.hasOwnProperty(n)||o.push(n);o.forEach(function(o){"_"!==o.charAt(0)&&Object.defineProperty(e,o,{get:function(){return t[o]},set:function(e){t[o]=e},configurable:!0})})};var n=new e;e.prototype._init=o;var i={};return Object.keys(n).forEach(function(t){void 0!==n[t]&&(i[t]=n[t])}),i}(this,e)}});var l=e.__decorators__;l&&(l.forEach(function(t){return t(o)}),delete e.__decorators__);var d,p,f=Object.getPrototypeOf(e.prototype),v=f instanceof t?f.constructor:t,u=v.extend(o);return function(t,e,o){Object.getOwnPropertyNames(e).forEach(function(n){if(!c[n]){var i=Object.getOwnPropertyDescriptor(t,n);if(!i||i.configurable){var a,s,l=Object.getOwnPropertyDescriptor(e,n);if(!r){if("cid"===n)return;var d=Object.getOwnPropertyDescriptor(o,n);if(a=l.value,s=typeof a,null!=a&&("object"===s||"function"===s)&&d&&d.value===l.value)return}Object.defineProperty(t,n,l)}}})}(u,e,v),n&&(i(d=u,p=e),Object.getOwnPropertyNames(p.prototype).forEach(function(t){i(d.prototype,p.prototype,t)}),Object.getOwnPropertyNames(p).forEach(function(t){i(d,p,t)})),u}var c={prototype:!0,arguments:!0,callee:!0,caller:!0};function d(t){return"function"==typeof t?l(t):function(e){return l(e,t)}}d.registerHooks=function(t){s.push.apply(s,t)};var p="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function f(t){return void 0===t&&(t={}),function(e,o){!function(t,e,o){p&&(Array.isArray(t)||"function"==typeof t||void 0!==t.type||(t.type=Reflect.getMetadata("design:type",e,o)))}(t,e,o),a(function(e,o){(e.props||(e.props={}))[o]=t})(e,o)}}function v(t,e){void 0===e&&(e={});var o=e.deep,n=void 0!==o&&o,i=e.immediate,r=void 0!==i&&i;return a(function(e,o){"object"!=typeof e.watch&&(e.watch=Object.create(null));var i=e.watch;"object"!=typeof i[t]||Array.isArray(i[t])?void 0===i[t]&&(i[t]=[]):i[t]=[i[t]],i[t].push({handler:o,deep:n,immediate:r})})}!function(t){var e,o='<svg><symbol id="icon-prev" viewBox="0 0 1024 1024"><path d="M784.652701 955.6957 346.601985 517.644983c-2.822492-2.822492-2.822492-7.902977 0-11.289967l439.179713-439.179713c6.77398-6.77398 10.725469-16.370452 10.725469-25.966924L796.507166 36.692393c0-20.32194-16.370452-36.692393-36.692393-36.692393l-4.515987 0c-9.596472 0-19.192944 3.951488-25.966924 10.725469L250.072767 489.420066c-12.418964 12.418964-12.418964 32.740904 0 45.159868l477.565601 477.565601c7.338479 7.338479 17.499449 11.854465 28.224917 11.854465l0 0c22.015436 0 40.079383-18.063947 40.079383-40.079383l0 0C796.507166 973.759647 791.99118 963.598677 784.652701 955.6957z" ></path></symbol><symbol id="icon-next" viewBox="0 0 1024 1024"><path d="M246.121279 955.6957l438.050717-438.050717c2.822492-2.822492 2.822492-7.902977 0-11.289967L244.992282 67.175303c-6.77398-6.77398-10.725469-16.370452-10.725469-25.966924L234.266814 36.692393C234.266814 16.370452 250.637266 0 270.959206 0l4.515987 0c9.596472 0 19.192944 3.951488 25.966924 10.725469l478.694598 478.694598c12.418964 12.418964 12.418964 32.740904 0 45.159868l-477.565601 477.565601c-7.338479 7.338479-17.499449 11.854465-28.224917 11.854465l0 0c-22.015436 0-40.079383-18.063947-40.079383-40.079383l0 0C234.266814 973.759647 238.7828 963.598677 246.121279 955.6957z" ></path></symbol><symbol id="icon-zoomin" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path><path d="M367.488 238.144h127.104v390.72H367.488z" ></path></symbol><symbol id="icon-rotate" viewBox="0 0 1024 1024"><path d="M288 352v192h128v64h-128v64h192v-320h-192z m128 128h-64v-64h64v64zM544 352v320h192v-320h-192z m128 256h-64v-192h64v192zM957.44 531.84h1.344v-1.92l-1.344 1.92z" ></path><path d="M46.72 474.88l35.84 55.04 1.28 1.92 35.84 55.04 60.16-119.04-32 1.92C168.96 277.76 331.52 128 529.28 128c211.904 0 384 172.16 384 384s-172.096 384-384 384c-140.16 0-263.04-75.52-329.6-188.16h-1.92l-0.64 0.64-53.12 31.36A446.592 446.592 0 0 0 529.28 960c247.744 0 448-200.32 448-448s-200.256-448-448-448C294.4 64 102.4 243.84 83.2 472.96l-36.48 1.92z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M570.24 512l259.2 259.2-58.88 58.24L512 570.24l-261.12 261.12-58.24-58.24L453.76 512 194.56 252.8l58.24-58.24L512 453.76l261.12-261.12 58.24 58.24z" ></path></symbol><symbol id="icon-zoomout" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path></symbol><symbol id="icon-img-broken" viewBox="0 0 1024 1024"><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m0 682.666667H213.333333v-195.413334l42.24 42.24 170.666667-170.666666 170.666667 170.666666 170.666666-170.24L810.666667 530.346667V810.666667z m0-401.493334l-43.093334-43.093333-170.666666 171.093333-170.666667-170.666666-170.666667 170.666666-42.24-42.666666V213.333333h597.333334v195.84z" ></path></symbol></svg>';if((e=document.getElementsByTagName("script"))[e.length-1].getAttribute("data-injectcss")&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console&&console.log(e)}}!function(e){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(e,0);else{var o=function(){document.removeEventListener("DOMContentLoaded",o,!1),e()};document.addEventListener("DOMContentLoaded",o,!1)}else document.attachEvent&&(i=e,r=t.document,a=!1,(s=function(){try{r.documentElement.doScroll("left")}catch(t){return void setTimeout(s,50)}n()})(),r.onreadystatechange=function(){"complete"==r.readyState&&(r.onreadystatechange=null,n())});function n(){a||(a=!0,i())}var i,r,a,s}(function(){var t,e;(t=document.createElement("div")).innerHTML=o,o=null,(e=t.getElementsByTagName("svg")[0])&&(e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.width=0,e.style.height=0,e.style.overflow="hidden",function(t,e){e.firstChild?function(t,e){e.parentNode.insertBefore(t,e)}(t,e.firstChild):e.appendChild(t)}(e,document.body))})}(window);var u=t.extend({props:{type:{type:String,default:""}},data:function(){return{prefixCls:"vel"}}});var h,m=function(t,e,o,n,i,r,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);var d,p="function"==typeof o?o.options:o;if(t&&t.render&&(p.render=t.render,p.staticRenderFns=t.staticRenderFns,p._compiled=!0,i&&(p.functional=!0)),n&&(p._scopeId=n),r?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},p._ssrRegister=d):e&&(d=a?function(){e.call(this,c(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),d)if(p.functional){var f=p.render;p.render=function(t,e){return d.call(e),f(t,e)}}else{var v=p.beforeCreate;p.beforeCreate=v?[].concat(v,d):[d]}return o},g="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var b={};var y=function(t){return function(t,e){return function(t,e){var o=g?e.media||"default":t,n=b[o]||(b[o]={ids:new Set,styles:[]});if(!n.ids.has(t)){n.ids.add(t);var i=e.source;if(e.map&&(i+="\n/*# sourceURL="+e.map.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",e.media&&n.element.setAttribute("media",e.media),void 0===h&&(h=document.head||document.getElementsByTagName("head")[0]),h.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(i),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{var r=n.ids.size-1,a=document.createTextNode(i),s=n.element.childNodes;s[r]&&n.element.removeChild(s[r]),s.length?n.element.insertBefore(a,s[r]):n.element.appendChild(a)}}}(t,e)}};var _=m({render:function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{class:this.prefixCls+"-icon icon",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":"#icon-"+this.type}})])},staticRenderFns:[]},function(t){t&&t("data-v-7221e0ec_0",{source:".vel-icon[data-v-7221e0ec]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}",map:void 0,media:void 0})},u,"data-v-7221e0ec",!1,void 0,y,void 0),x="vel",w=function(){};var C=m({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-toolbar"},[e("div",{staticClass:"toobar-btn toolbar-btn__zoomin",on:{click:this.zoomIn}},[e("svg-icon",{attrs:{type:"zoomin"}})],1),this._v(" "),e("div",{staticClass:"toobar-btn toolbar-btn__zoomout",on:{click:this.zoomOut}},[e("svg-icon",{attrs:{type:"zoomout"}})],1),this._v(" "),e("div",{staticClass:"toobar-btn toolbar-btn__rotate",on:{click:this.rotate}},[e("svg-icon",{attrs:{type:"rotate"}})],1)])},staticRenderFns:[]},function(t){t&&t("data-v-36fa02a2_0",{source:".vel-toolbar[data-v-36fa02a2]{user-select:none;position:absolute;bottom:0;left:50%;transform:translate(-50%);background:rgba(45,45,44,.8);border-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;padding:6px 24px 0}.vel-toolbar .toobar-btn[data-v-36fa02a2]{cursor:pointer;display:inline-block;padding:2px 4px}.vel-toolbar .toobar-btn[data-v-36fa02a2]{font-size:32px;color:#fff}.vel-toolbar .toobar-btn[data-v-36fa02a2]:hover{color:#54b4ee}",map:void 0,media:void 0})},t.extend({components:{SvgIcon:_},props:{zoomIn:{type:Function,default:w},zoomOut:{type:Function,default:w},rotate:{type:Function,default:w}},data:function(){return{prefixCls:x}}}),"data-v-36fa02a2",!1,void 0,y,void 0);var O=m({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-loading"},[e("div",{staticClass:"ring"})])},staticRenderFns:[]},function(t){t&&t("data-v-0cefeb9a_0",{source:'.vel-loading[data-v-0cefeb9a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-loading .ring[data-v-0cefeb9a]{display:inline-block;width:64px;height:64px}.vel-loading .ring[data-v-0cefeb9a]:after{content:" ";display:block;width:46px;height:46px;margin:1px;border-radius:50%;border:5px solid rgba(255,255,255,.7);border-color:rgba(255,255,255,.7) transparent rgba(255,255,255,.7) transparent;animation:ring-data-v-0cefeb9a 1.2s linear infinite}@keyframes ring-data-v-0cefeb9a{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',map:void 0,media:void 0})},t.extend({data:function(){return{prefixCls:x}}}),"data-v-0cefeb9a",!1,void 0,y,void 0);var z=m({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.prefixCls+"-on-error"},[e("svg-icon",{attrs:{clas:"icon",type:"img-broken"}})],1)},staticRenderFns:[]},function(t){t&&t("data-v-137806a2_0",{source:".vel-on-error[data-v-137806a2]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-on-error .icon[data-v-137806a2]{font-size:80px;color:#aaa}",map:void 0,media:void 0})},t.extend({components:{SvgIcon:_},data:function(){return{prefixCls:x}}}),"data-v-137806a2",!1,void 0,y,void 0),E=t.prototype.$isServer,M=!1;if(!E)try{var P={};Object.defineProperty(P,"passive",{get:function(){M=!0}}),window.addEventListener("test-passive",function(){},P)}catch(t){}var k=m({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("transition",{attrs:{name:t.prefixCls+"-fade"}},[t.visible?o("div",{class:[t.prefixCls+"-img-modal",t.prefixCls+"-modal"],on:{click:function(e){return e.target!==e.currentTarget?null:t.closeDialog(e)}}},[o("transition",{attrs:{name:t.prefixCls+"-fade",mode:"out-in"}},[t.loading?t._t("loading",[o("img-loading")]):t._e(),t._v(" "),t.loadError?t._t("onerror",[o("img-on-error")]):t._e(),t._v(" "),t.loading||t.loadError?t._e():o("div",{class:t.prefixCls+"-img-wrapper",style:t.imgWrapperStyle},[o("img",{class:t.prefixCls+"-img",style:t.imgStyle,attrs:{src:t.visibleImgSrc,draggable:"false"},on:{mousedown:function(e){return t.handleMouseDown(e)},mouseup:function(e){return t.handleMouseUp(e)},mousemove:function(e){return t.handleMouseMove(e)}}})])],2),t._v(" "),o("img",{staticStyle:{display:"none"},attrs:{src:t.visibleImgSrc},on:{error:t.handleImgError,load:t.handleImgLoad}}),t._v(" "),o("div",{class:t.prefixCls+"-btns-wrapper"},[t._t("prev-btn",[1!==t.imgList.length?o("div",{staticClass:"btn__prev",class:{disable:0===t.imgIndex},on:{click:t.onPrevClick}},[o("svg-icon",{attrs:{type:"prev"}})],1):t._e()],{prev:t.onPrevClick}),t._v(" "),t._t("next-btn",[1!==t.imgList.length?o("div",{staticClass:"btn__next",class:{disable:t.imgIndex===t.imgList.length-1},on:{click:t.onNextClick}},[o("svg-icon",{attrs:{type:"next"}})],1):t._e()],{next:t.onNextClick}),t._v(" "),t._t("close-btn",[o("div",{staticClass:"btn__close",on:{click:t.closeDialog}},[o("svg-icon",{attrs:{type:"close"}})],1)],{close:t.closeDialog}),t._v(" "),t._t("toolbar",[o("toolbar",{attrs:{prefixCls:t.prefixCls,zoomIn:t.zoomIn,zoomOut:t.zoomOut,rotate:t.rotate}})],{toolbarMethods:{zoomIn:t.zoomIn,zoomOut:t.zoomOut,rotate:t.rotate}})],2),t._v(" "),1!==t.imgList.length?o("div",{class:t.prefixCls+"-pagination-total"},[t._v(t._s(t.imgIndex+1)+"/"+t._s(t.imgTotal))]):t._e()],1):t._e()])},staticRenderFns:[]},function(t){t&&t("data-v-4de35050_0",{source:".vel-fade-enter-active[data-v-4de35050],.vel-fade-leave-active[data-v-4de35050]{transition:all .3s ease}.vel-fade-enter[data-v-4de35050],.vel-fade-leave-to[data-v-4de35050]{opacity:0}.vel-img-swiper[data-v-4de35050]{position:relative;display:block}.vel-modal[data-v-4de35050]{z-index:9998;position:fixed;top:0;left:0;right:0;bottom:0;margin:0;background:rgba(0,0,0,.5)}.vel-img-wrapper[data-v-4de35050]{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50% -50%);transition:.3s ease-in-out}.vel-img[data-v-4de35050]{max-width:80vw;max-height:80vh;vertical-align:middle;position:relative;transition:transform .3s ease-in-out;box-shadow:rgba(0,0,0,.7) 0 5px 20px 2px;background-color:rgba(0,0,0,.7)}.vel-btns-wrapper .btn__close[data-v-4de35050],.vel-btns-wrapper .btn__next[data-v-4de35050],.vel-btns-wrapper .btn__prev[data-v-4de35050]{cursor:pointer;position:absolute;font-size:60px;color:#fff;opacity:.6;transition:.15s linear}.vel-btns-wrapper .btn__close[data-v-4de35050]:hover,.vel-btns-wrapper .btn__next[data-v-4de35050]:hover,.vel-btns-wrapper .btn__prev[data-v-4de35050]:hover{opacity:1}.vel-btns-wrapper .btn__next.disable[data-v-4de35050],.vel-btns-wrapper .btn__next.disable[data-v-4de35050]:hover,.vel-btns-wrapper .btn__prev.disable[data-v-4de35050],.vel-btns-wrapper .btn__prev.disable[data-v-4de35050]:hover{cursor:default;opacity:.2}.vel-btns-wrapper .btn__next[data-v-4de35050]{top:50%;transform:translateY(-50%);right:20px;font-size:40px}.vel-btns-wrapper .btn__prev[data-v-4de35050]{top:50%;transform:translateY(-50%);left:20px;font-size:40px}.vel-btns-wrapper .btn__close[data-v-4de35050]{top:10px;right:10px;font-size:40px}.vel-pagination-total[data-v-4de35050]{position:absolute;font-size:16px;top:16px;left:16px;color:#000}",map:void 0,media:void 0})},function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.prefixCls=x,e.scale=1,e.rotateDeg=0,e.imgIndex=0,e.top=0,e.left=0,e.lastX=0,e.lastY=0,e.isDraging=!1,e.loading=!1,e.loadError=!1,e}return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}(n,t),Object.defineProperty(n.prototype,"imgList",{get:function(){return Array.isArray(this.imgs)?this.imgs:[this.imgs]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visibleImgSrc",{get:function(){return this.imgList[this.imgIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"imgTotal",{get:function(){return this.imgList.length||0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"imgWrapperStyle",{get:function(){var t=this,e=t.scale,o=t.top,n=t.left,i=(t.rotateDeg,t.moveDisabled),r=t.loadError;return{transform:"translate(-50%, -50%) scale("+e+")",top:"calc(50% + "+o+"px)",left:"calc(50% + "+n+"px)",cursor:i||r?"default":"move"}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"imgStyle",{get:function(){return{transform:"rotate(-"+this.rotateDeg+"deg)"}},enumerable:!0,configurable:!0}),n.prototype.checkMouseEventPropButton=function(t){return!this.moveDisabled&&0===t},n.prototype.handleMouseDown=function(t){this.checkMouseEventPropButton(t.button)&&(this.lastX=t.clientX,this.lastY=t.clientY,this.isDraging=!0,t.stopPropagation())},n.prototype.handleMouseUp=function(t){this.checkMouseEventPropButton(t.button)&&(this.isDraging=!1,this.lastX=this.lastY=0)},n.prototype.handleMouseMove=function(t){this.checkMouseEventPropButton(t.button)&&(this.isDraging&&(this.top=this.top-this.lastY+t.clientY,this.left=this.left-this.lastX+t.clientX,this.lastX=t.clientX,this.lastY=t.clientY),t.stopPropagation())},n.prototype.escapePressHandler=function(t){"Escape"===t.key&&this.visible&&this.closeDialog()},n.prototype.handleImgLoad=function(t){this.loading=!1},n.prototype.handleImgError=function(t){this.loading=!1,this.loadError=!0,this.$emit("on-error",t)},n.prototype.zoomIn=function(){this.scale+=.25},n.prototype.zoomOut=function(){0!==this.scale&&(this.scale-=.25)},n.prototype.rotate=function(){this.rotateDeg+=90},n.prototype.onNextClick=function(){this.onIndexChange(this.imgIndex+1)},n.prototype.onPrevClick=function(){this.onIndexChange(this.imgIndex-1)},n.prototype.closeDialog=function(){this.$emit("hide")},n.prototype.reset=function(){this.scale=1,this.rotateDeg=0,this.top=0,this.left=0,this.isDraging=!1,this.loading=!0,this.loadError=!1},n.prototype.init=function(){this.imgIndex=this.index,this.reset()},n.prototype.onVisibleChanged=function(t){this.visible&&this.init()},n.prototype.onIndexChange=function(t){var e=this;this.visible&&(t>this.imgList.length-1||t<0||(this.reset(),this.imgIndex=t,this.imgList[this.imgIndex]===this.imgList[t]&&this.$nextTick(function(){e.loading=!1})))},n.prototype.mounted=function(){var t,e,o,n;this.escDisabled||(t=document,e="keydown",o=this.escapePressHandler,void 0===n&&(n=!1),E||t.addEventListener(e,o,!!M&&{capture:!1,passive:n}))},n.prototype.beforeDestroy=function(){var t,e,o;this.escDisabled||(t=document,e="keydown",o=this.escapePressHandler,E||t.removeEventListener(e,o))},o([f({type:[Array,String],default:function(){return""}})],n.prototype,"imgs",void 0),o([f({type:Boolean,default:!1})],n.prototype,"visible",void 0),o([f({type:Number,default:0})],n.prototype,"index",void 0),o([f({type:Boolean,default:!1})],n.prototype,"escDisabled",void 0),o([f({type:Boolean,default:!1})],n.prototype,"moveDisabled",void 0),o([v("visible",{immediate:!0})],n.prototype,"onVisibleChanged",null),o([v("index")],n.prototype,"onIndexChange",null),n=o([d({name:"vue-easy-lightbox",components:{SvgIcon:_,Toolbar:C,ImgLoading:O,ImgOnError:z}})],n)}(t),"data-v-4de35050",!1,void 0,y,void 0);k.install=function(t){t.component("vue-easy-lightbox",k)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(k.install);export default k; diff --git a/dist/vue-easy-lightbox.umd.min.js b/dist/vue-easy-lightbox.umd.min.js index a14b4f7..a257289 100644 --- a/dist/vue-easy-lightbox.umd.min.js +++ b/dist/vue-easy-lightbox.umd.min.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e=e||self)["vue-easy-lightbox"]=t(e.Vue)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,o)};function o(e,t,o,n){var a,r=arguments.length,i=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}var n="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function a(e,t,o){(o?Reflect.getOwnMetadataKeys(t,o):Reflect.getOwnMetadataKeys(t)).forEach(function(n){var a=o?Reflect.getOwnMetadata(n,t,o):Reflect.getOwnMetadata(n,t);o?Reflect.defineMetadata(n,a,e,o):Reflect.defineMetadata(n,a,e)})}var r={__proto__:[]}instanceof Array;function i(e){return function(t,o,n){var a="function"==typeof t?t:t.constructor;a.__decorators__||(a.__decorators__=[]),"number"!=typeof n&&(n=void 0),a.__decorators__.push(function(t){return e(t,o,n)})}}var s=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function l(t,o){void 0===o&&(o={}),o.name=o.name||t._componentTag||t.name;var i=t.prototype;Object.getOwnPropertyNames(i).forEach(function(e){if("constructor"!==e)if(s.indexOf(e)>-1)o[e]=i[e];else{var t=Object.getOwnPropertyDescriptor(i,e);void 0!==t.value?"function"==typeof t.value?(o.methods||(o.methods={}))[e]=t.value:(o.mixins||(o.mixins=[])).push({data:function(){var o;return(o={})[e]=t.value,o}}):(t.get||t.set)&&((o.computed||(o.computed={}))[e]={get:t.get,set:t.set})}}),(o.mixins||(o.mixins=[])).push({data:function(){return function(e,t){var o=t.prototype._init;t.prototype._init=function(){var t=this,o=Object.getOwnPropertyNames(e);if(e.$options.props)for(var n in e.$options.props)e.hasOwnProperty(n)||o.push(n);o.forEach(function(o){"_"!==o.charAt(0)&&Object.defineProperty(t,o,{get:function(){return e[o]},set:function(t){e[o]=t},configurable:!0})})};var n=new t;t.prototype._init=o;var a={};return Object.keys(n).forEach(function(e){void 0!==n[e]&&(a[e]=n[e])}),a}(this,t)}});var l=t.__decorators__;l&&(l.forEach(function(e){return e(o)}),delete t.__decorators__);var d,p,f=Object.getPrototypeOf(t.prototype),u=f instanceof e?f.constructor:e,v=u.extend(o);return function(e,t,o){Object.getOwnPropertyNames(t).forEach(function(n){if(!c[n]){var a=Object.getOwnPropertyDescriptor(e,n);if(!a||a.configurable){var i,s,l=Object.getOwnPropertyDescriptor(t,n);if(!r){if("cid"===n)return;var d=Object.getOwnPropertyDescriptor(o,n);if(i=l.value,s=typeof i,null!=i&&("object"===s||"function"===s)&&d&&d.value===l.value)return}Object.defineProperty(e,n,l)}}})}(v,t,u),n&&(a(d=v,p=t),Object.getOwnPropertyNames(p.prototype).forEach(function(e){a(d.prototype,p.prototype,e)}),Object.getOwnPropertyNames(p).forEach(function(e){a(d,p,e)})),v}var c={prototype:!0,arguments:!0,callee:!0,caller:!0};function d(e){return"function"==typeof e?l(e):function(t){return l(t,e)}}d.registerHooks=function(e){s.push.apply(s,e)};var p="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function f(e){return void 0===e&&(e={}),function(t,o){!function(e,t,o){p&&(Array.isArray(e)||"function"==typeof e||void 0!==e.type||(e.type=Reflect.getMetadata("design:type",t,o)))}(e,t,o),i(function(t,o){(t.props||(t.props={}))[o]=e})(t,o)}}function u(e,t){void 0===t&&(t={});var o=t.deep,n=void 0!==o&&o,a=t.immediate,r=void 0!==a&&a;return i(function(t,o){"object"!=typeof t.watch&&(t.watch=Object.create(null));var a=t.watch;"object"!=typeof a[e]||Array.isArray(a[e])?void 0===a[e]&&(a[e]=[]):a[e]=[a[e]],a[e].push({handler:o,deep:n,immediate:r})})}!function(e){var t,o='<svg><symbol id="icon-prev" viewBox="0 0 1024 1024"><path d="M784.652701 955.6957 346.601985 517.644983c-2.822492-2.822492-2.822492-7.902977 0-11.289967l439.179713-439.179713c6.77398-6.77398 10.725469-16.370452 10.725469-25.966924L796.507166 36.692393c0-20.32194-16.370452-36.692393-36.692393-36.692393l-4.515987 0c-9.596472 0-19.192944 3.951488-25.966924 10.725469L250.072767 489.420066c-12.418964 12.418964-12.418964 32.740904 0 45.159868l477.565601 477.565601c7.338479 7.338479 17.499449 11.854465 28.224917 11.854465l0 0c22.015436 0 40.079383-18.063947 40.079383-40.079383l0 0C796.507166 973.759647 791.99118 963.598677 784.652701 955.6957z" ></path></symbol><symbol id="icon-next" viewBox="0 0 1024 1024"><path d="M246.121279 955.6957l438.050717-438.050717c2.822492-2.822492 2.822492-7.902977 0-11.289967L244.992282 67.175303c-6.77398-6.77398-10.725469-16.370452-10.725469-25.966924L234.266814 36.692393C234.266814 16.370452 250.637266 0 270.959206 0l4.515987 0c9.596472 0 19.192944 3.951488 25.966924 10.725469l478.694598 478.694598c12.418964 12.418964 12.418964 32.740904 0 45.159868l-477.565601 477.565601c-7.338479 7.338479-17.499449 11.854465-28.224917 11.854465l0 0c-22.015436 0-40.079383-18.063947-40.079383-40.079383l0 0C234.266814 973.759647 238.7828 963.598677 246.121279 955.6957z" ></path></symbol><symbol id="icon-zoomin" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path><path d="M367.488 238.144h127.104v390.72H367.488z" ></path></symbol><symbol id="icon-rotate" viewBox="0 0 1024 1024"><path d="M288 352v192h128v64h-128v64h192v-320h-192z m128 128h-64v-64h64v64zM544 352v320h192v-320h-192z m128 256h-64v-192h64v192zM957.44 531.84h1.344v-1.92l-1.344 1.92z" ></path><path d="M46.72 474.88l35.84 55.04 1.28 1.92 35.84 55.04 60.16-119.04-32 1.92C168.96 277.76 331.52 128 529.28 128c211.904 0 384 172.16 384 384s-172.096 384-384 384c-140.16 0-263.04-75.52-329.6-188.16h-1.92l-0.64 0.64-53.12 31.36A446.592 446.592 0 0 0 529.28 960c247.744 0 448-200.32 448-448s-200.256-448-448-448C294.4 64 102.4 243.84 83.2 472.96l-36.48 1.92z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M570.24 512l259.2 259.2-58.88 58.24L512 570.24l-261.12 261.12-58.24-58.24L453.76 512 194.56 252.8l58.24-58.24L512 453.76l261.12-261.12 58.24 58.24z" ></path></symbol><symbol id="icon-zoomout" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path></symbol><symbol id="icon-img-broken" viewBox="0 0 1024 1024"><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m0 682.666667H213.333333v-195.413334l42.24 42.24 170.666667-170.666666 170.666667 170.666666 170.666666-170.24L810.666667 530.346667V810.666667z m0-401.493334l-43.093334-43.093333-170.666666 171.093333-170.666667-170.666666-170.666667 170.666666-42.24-42.666666V213.333333h597.333334v195.84z" ></path></symbol></svg>';if((t=document.getElementsByTagName("script"))[t.length-1].getAttribute("data-injectcss")&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(t){console&&console.log(t)}}!function(t){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(t,0);else{var o=function(){document.removeEventListener("DOMContentLoaded",o,!1),t()};document.addEventListener("DOMContentLoaded",o,!1)}else document.attachEvent&&(a=t,r=e.document,i=!1,(s=function(){try{r.documentElement.doScroll("left")}catch(e){return void setTimeout(s,50)}n()})(),r.onreadystatechange=function(){"complete"==r.readyState&&(r.onreadystatechange=null,n())});function n(){i||(i=!0,a())}var a,r,i,s}(function(){var e,t;(e=document.createElement("div")).innerHTML=o,o=null,(t=e.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",function(e,t){t.firstChild?function(e,t){t.parentNode.insertBefore(e,t)}(e,t.firstChild):t.appendChild(e)}(t,document.body))})}(window);var v=e.extend({props:{type:{type:String,default:""}},data:function(){return{prefixCls:"vel"}}});var h,m=function(e,t,o,n,a,r,i,s,l,c){"boolean"!=typeof i&&(l=s,s=i,i=!1);var d,p="function"==typeof o?o.options:o;if(e&&e.render&&(p.render=e.render,p.staticRenderFns=e.staticRenderFns,p._compiled=!0,a&&(p.functional=!0)),n&&(p._scopeId=n),r?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},p._ssrRegister=d):t&&(d=i?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),d)if(p.functional){var f=p.render;p.render=function(e,t){return d.call(t),f(e,t)}}else{var u=p.beforeCreate;p.beforeCreate=u?[].concat(u,d):[d]}return o},b="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var g={};var y=function(e){return function(e,t){return function(e,t){var o=b?t.media||"default":e,n=g[o]||(g[o]={ids:new Set,styles:[]});if(!n.ids.has(e)){n.ids.add(e);var a=t.source;if(t.map&&(a+="\n/*# sourceURL="+t.map.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",t.media&&n.element.setAttribute("media",t.media),void 0===h&&(h=document.head||document.getElementsByTagName("head")[0]),h.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(a),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{var r=n.ids.size-1,i=document.createTextNode(a),s=n.element.childNodes;s[r]&&n.element.removeChild(s[r]),s.length?n.element.insertBefore(i,s[r]):n.element.appendChild(i)}}}(e,t)}};var _=m({render:function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{class:this.prefixCls+"-icon icon",attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-"+this.type}})])},staticRenderFns:[]},function(e){e&&e("data-v-7221e0ec_0",{source:".vel-icon[data-v-7221e0ec]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}",map:void 0,media:void 0})},v,"data-v-7221e0ec",!1,void 0,y,void 0),x="vel",w=function(){};var C=m({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-toolbar"},[t("div",{staticClass:"toobar-btn toolbar-btn__zoomin",on:{click:this.zoomIn}},[t("svg-icon",{attrs:{type:"zoomin"}})],1),this._v(" "),t("div",{staticClass:"toobar-btn toolbar-btn__zoomout",on:{click:this.zoomOut}},[t("svg-icon",{attrs:{type:"zoomout"}})],1),this._v(" "),t("div",{staticClass:"toobar-btn toolbar-btn__rotate",on:{click:this.rotate}},[t("svg-icon",{attrs:{type:"rotate"}})],1)])},staticRenderFns:[]},function(e){e&&e("data-v-36fa02a2_0",{source:".vel-toolbar[data-v-36fa02a2]{user-select:none;position:absolute;bottom:0;left:50%;transform:translate(-50%);background:rgba(45,45,44,.8);border-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;padding:6px 24px 0}.vel-toolbar .toobar-btn[data-v-36fa02a2]{cursor:pointer;display:inline-block;padding:2px 4px}.vel-toolbar .toobar-btn[data-v-36fa02a2]{font-size:32px;color:#fff}.vel-toolbar .toobar-btn[data-v-36fa02a2]:hover{color:#54b4ee}",map:void 0,media:void 0})},e.extend({components:{SvgIcon:_},props:{zoomIn:{type:Function,default:w},zoomOut:{type:Function,default:w},rotate:{type:Function,default:w}},data:function(){return{prefixCls:x}}}),"data-v-36fa02a2",!1,void 0,y,void 0);var O=m({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-loading"},[t("div",{staticClass:"ring"})])},staticRenderFns:[]},function(e){e&&e("data-v-0cefeb9a_0",{source:'.vel-loading[data-v-0cefeb9a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-loading .ring[data-v-0cefeb9a]{display:inline-block;width:64px;height:64px}.vel-loading .ring[data-v-0cefeb9a]:after{content:" ";display:block;width:46px;height:46px;margin:1px;border-radius:50%;border:5px solid rgba(255,255,255,.7);border-color:rgba(255,255,255,.7) transparent rgba(255,255,255,.7) transparent;animation:ring-data-v-0cefeb9a 1.2s linear infinite}@keyframes ring-data-v-0cefeb9a{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',map:void 0,media:void 0})},e.extend({data:function(){return{prefixCls:x}}}),"data-v-0cefeb9a",!1,void 0,y,void 0);var z=m({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-on-error"},[t("svg-icon",{attrs:{clas:"icon",type:"img-broken"}})],1)},staticRenderFns:[]},function(e){e&&e("data-v-137806a2_0",{source:".vel-on-error[data-v-137806a2]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-on-error .icon[data-v-137806a2]{font-size:80px;color:#aaa}",map:void 0,media:void 0})},e.extend({components:{SvgIcon:_},data:function(){return{prefixCls:x}}}),"data-v-137806a2",!1,void 0,y,void 0),E=e.prototype.$isServer,M=!1;if(!E)try{var P={};Object.defineProperty(P,"passive",{get:function(){M=!0}}),window.addEventListener("test-passive",function(){},P)}catch(e){}var j=m({render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("transition",{attrs:{name:e.prefixCls+"-fade"}},[e.visible?o("div",{class:[e.prefixCls+"-img-modal",e.prefixCls+"-modal"],on:{click:function(t){return t.target!==t.currentTarget?null:e.closeDialog(t)}}},[o("transition",{attrs:{name:e.prefixCls+"-fade",mode:"out-in"}},[e.loading?e._t("loading",[o("img-loading")]):e._e(),e._v(" "),e.loadError?e._t("onerror",[o("img-on-error")]):e._e(),e._v(" "),e.loading||e.loadError?e._e():o("div",{class:e.prefixCls+"-img-wrapper",style:e.imgWrapperStyle},[o("img",{class:e.prefixCls+"-img",style:e.imgStyle,attrs:{src:e.visibleImgSrc,draggable:"false"},on:{mousedown:function(t){return e.handleMouseDown(t)},mouseup:function(t){return e.handleMouseUp(t)},mousemove:function(t){return e.handleMouseMove(t)}}})])],2),e._v(" "),o("img",{staticStyle:{display:"none"},attrs:{src:e.visibleImgSrc},on:{error:e.handleImgError,load:e.handleImgLoad}}),e._v(" "),o("div",{class:e.prefixCls+"-btns-wrapper"},[e._t("prev-btn",[1!==e.imgList.length?o("div",{staticClass:"btn__prev",class:{disable:0===e.imgIndex},on:{click:e.onPrevClick}},[o("svg-icon",{attrs:{type:"prev"}})],1):e._e()],{prev:e.onPrevClick}),e._v(" "),e._t("next-btn",[1!==e.imgList.length?o("div",{staticClass:"btn__next",class:{disable:e.imgIndex===e.imgList.length-1},on:{click:e.onNextClick}},[o("svg-icon",{attrs:{type:"next"}})],1):e._e()],{next:e.onNextClick}),e._v(" "),e._t("close-btn",[o("div",{staticClass:"btn__close",on:{click:e.closeDialog}},[o("svg-icon",{attrs:{type:"close"}})],1)],{close:e.closeDialog}),e._v(" "),e._t("toolbar",[o("toolbar",{attrs:{prefixCls:e.prefixCls,zoomIn:e.zoomIn,zoomOut:e.zoomOut,rotate:e.rotate}})],{toolbarMethods:{zoomIn:e.zoomIn,zoomOut:e.zoomOut,rotate:e.rotate}})],2),e._v(" "),1!==e.imgList.length?o("div",{class:e.prefixCls+"-pagination-total"},[e._v(e._s(e.imgIndex+1)+"/"+e._s(e.imgTotal))]):e._e()],1):e._e()])},staticRenderFns:[]},function(e){e&&e("data-v-66b25fea_0",{source:".vel-fade-enter-active[data-v-66b25fea],.vel-fade-leave-active[data-v-66b25fea]{transition:all .3s ease}.vel-fade-enter[data-v-66b25fea],.vel-fade-leave-to[data-v-66b25fea]{opacity:0}.vel-img-swiper[data-v-66b25fea]{position:relative;display:block}.vel-modal[data-v-66b25fea]{z-index:9998;position:fixed;top:0;left:0;right:0;bottom:0;margin:0;background:rgba(0,0,0,.5)}.vel-img-wrapper[data-v-66b25fea]{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50% -50%);transition:.3s ease-in-out}.vel-img[data-v-66b25fea]{max-width:80vw;max-height:80vh;vertical-align:middle;position:relative;transition:transform .3s ease-in-out;box-shadow:rgba(0,0,0,.7) 0 5px 20px 2px;background-color:rgba(0,0,0,.7)}.vel-btns-wrapper .btn__close[data-v-66b25fea],.vel-btns-wrapper .btn__next[data-v-66b25fea],.vel-btns-wrapper .btn__prev[data-v-66b25fea]{cursor:pointer;position:absolute;font-size:60px;color:#fff;opacity:.6;transition:.15s linear}.vel-btns-wrapper .btn__close[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__next[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__prev[data-v-66b25fea]:hover{opacity:1}.vel-btns-wrapper .btn__next.disable[data-v-66b25fea],.vel-btns-wrapper .btn__next.disable[data-v-66b25fea]:hover,.vel-btns-wrapper .btn__prev.disable[data-v-66b25fea],.vel-btns-wrapper .btn__prev.disable[data-v-66b25fea]:hover{cursor:default;opacity:.2}.vel-btns-wrapper .btn__next[data-v-66b25fea]{top:50%;transform:translateY(-50%);right:20px;font-size:40px}.vel-btns-wrapper .btn__prev[data-v-66b25fea]{top:50%;transform:translateY(-50%);left:20px;font-size:40px}.vel-btns-wrapper .btn__close[data-v-66b25fea]{top:10px;right:10px;font-size:40px}.vel-pagination-total[data-v-66b25fea]{position:absolute;font-size:16px;top:16px;left:16px;color:#000}",map:void 0,media:void 0})},function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.prefixCls=x,t.scale=1,t.rotateDeg=0,t.imgIndex=0,t.top=0,t.left=0,t.lastX=0,t.lastY=0,t.isDraging=!1,t.loading=!1,t.loadError=!1,t}return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}(n,e),Object.defineProperty(n.prototype,"imgList",{get:function(){return Array.isArray(this.imgs)?this.imgs:[this.imgs]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visibleImgSrc",{get:function(){return this.imgList[this.imgIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"imgTotal",{get:function(){return this.imgList.length||0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"imgWrapperStyle",{get:function(){var e=this,t=e.scale,o=e.top,n=e.left,a=(e.rotateDeg,e.moveDisabled),r=e.loadError;return{transform:"translate(-50%, -50%) scale("+t+")",top:"calc(50% + "+o+"px)",left:"calc(50% + "+n+"px)",cursor:a||r?"default":"move"}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"imgStyle",{get:function(){return{transform:"rotate(-"+this.rotateDeg+"deg)"}},enumerable:!0,configurable:!0}),n.prototype.checkMouseEventPropButton=function(e){return!this.moveDisabled&&0===e},n.prototype.handleMouseDown=function(e){this.checkMouseEventPropButton(e.button)&&(this.lastX=e.clientX,this.lastY=e.clientY,this.isDraging=!0,e.stopPropagation())},n.prototype.handleMouseUp=function(e){this.checkMouseEventPropButton(e.button)&&(this.isDraging=!1,this.lastX=this.lastY=0)},n.prototype.handleMouseMove=function(e){this.checkMouseEventPropButton(e.button)&&(this.isDraging&&(this.top=this.top-this.lastY+e.clientY,this.left=this.left-this.lastX+e.clientX,this.lastX=e.clientX,this.lastY=e.clientY),e.stopPropagation())},n.prototype.escapePressHandler=function(e){"Escape"===e.key&&this.visible&&this.closeDialog()},n.prototype.handleImgLoad=function(e){this.loading=!1},n.prototype.handleImgError=function(e){this.loading=!1,this.loadError=!0,this.$emit("on-error",e)},n.prototype.zoomIn=function(){this.scale+=.25},n.prototype.zoomOut=function(){0!==this.scale&&(this.scale-=.25)},n.prototype.rotate=function(){this.rotateDeg+=90},n.prototype.onNextClick=function(){this.onIndexChange(this.imgIndex+1)},n.prototype.onPrevClick=function(){this.onIndexChange(this.imgIndex-1)},n.prototype.closeDialog=function(){this.$emit("hide")},n.prototype.reset=function(){this.scale=1,this.rotateDeg=0,this.top=0,this.left=0,this.isDraging=!1,this.loading=!0,this.loadError=!1},n.prototype.init=function(){this.imgIndex=this.index,this.reset()},n.prototype.onVisibleChanged=function(e){this.visible&&this.init()},n.prototype.onIndexChange=function(e){this.visible&&(e>this.imgList.length-1||e<0||(this.reset(),this.imgIndex=e))},n.prototype.mounted=function(){var e,t,o,n;this.escDisabled||(e=document,t="keydown",o=this.escapePressHandler,void 0===n&&(n=!1),E||e.addEventListener(t,o,!!M&&{capture:!1,passive:n}))},n.prototype.beforeDestroy=function(){var e,t,o;this.escDisabled||(e=document,t="keydown",o=this.escapePressHandler,E||e.removeEventListener(t,o))},o([f({type:[Array,String],default:function(){return""}})],n.prototype,"imgs",void 0),o([f({type:Boolean,default:!1})],n.prototype,"visible",void 0),o([f({type:Number,default:0})],n.prototype,"index",void 0),o([f({type:Boolean,default:!1})],n.prototype,"escDisabled",void 0),o([f({type:Boolean,default:!1})],n.prototype,"moveDisabled",void 0),o([u("visible",{immediate:!0})],n.prototype,"onVisibleChanged",null),o([u("index")],n.prototype,"onIndexChange",null),n=o([d({name:"vue-easy-lightbox",components:{SvgIcon:_,Toolbar:C,ImgLoading:O,ImgOnError:z}})],n)}(e),"data-v-66b25fea",!1,void 0,y,void 0);return j.install=function(e){e.component("vue-easy-lightbox",j)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(j.install),j}); +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e=e||self)["vue-easy-lightbox"]=t(e.Vue)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,o)};function o(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}var n="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function i(e,t,o){(o?Reflect.getOwnMetadataKeys(t,o):Reflect.getOwnMetadataKeys(t)).forEach(function(n){var i=o?Reflect.getOwnMetadata(n,t,o):Reflect.getOwnMetadata(n,t);o?Reflect.defineMetadata(n,i,e,o):Reflect.defineMetadata(n,i,e)})}var r={__proto__:[]}instanceof Array;function a(e){return function(t,o,n){var i="function"==typeof t?t:t.constructor;i.__decorators__||(i.__decorators__=[]),"number"!=typeof n&&(n=void 0),i.__decorators__.push(function(t){return e(t,o,n)})}}var s=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function l(t,o){void 0===o&&(o={}),o.name=o.name||t._componentTag||t.name;var a=t.prototype;Object.getOwnPropertyNames(a).forEach(function(e){if("constructor"!==e)if(s.indexOf(e)>-1)o[e]=a[e];else{var t=Object.getOwnPropertyDescriptor(a,e);void 0!==t.value?"function"==typeof t.value?(o.methods||(o.methods={}))[e]=t.value:(o.mixins||(o.mixins=[])).push({data:function(){var o;return(o={})[e]=t.value,o}}):(t.get||t.set)&&((o.computed||(o.computed={}))[e]={get:t.get,set:t.set})}}),(o.mixins||(o.mixins=[])).push({data:function(){return function(e,t){var o=t.prototype._init;t.prototype._init=function(){var t=this,o=Object.getOwnPropertyNames(e);if(e.$options.props)for(var n in e.$options.props)e.hasOwnProperty(n)||o.push(n);o.forEach(function(o){"_"!==o.charAt(0)&&Object.defineProperty(t,o,{get:function(){return e[o]},set:function(t){e[o]=t},configurable:!0})})};var n=new t;t.prototype._init=o;var i={};return Object.keys(n).forEach(function(e){void 0!==n[e]&&(i[e]=n[e])}),i}(this,t)}});var l=t.__decorators__;l&&(l.forEach(function(e){return e(o)}),delete t.__decorators__);var d,p,f=Object.getPrototypeOf(t.prototype),u=f instanceof e?f.constructor:e,v=u.extend(o);return function(e,t,o){Object.getOwnPropertyNames(t).forEach(function(n){if(!c[n]){var i=Object.getOwnPropertyDescriptor(e,n);if(!i||i.configurable){var a,s,l=Object.getOwnPropertyDescriptor(t,n);if(!r){if("cid"===n)return;var d=Object.getOwnPropertyDescriptor(o,n);if(a=l.value,s=typeof a,null!=a&&("object"===s||"function"===s)&&d&&d.value===l.value)return}Object.defineProperty(e,n,l)}}})}(v,t,u),n&&(i(d=v,p=t),Object.getOwnPropertyNames(p.prototype).forEach(function(e){i(d.prototype,p.prototype,e)}),Object.getOwnPropertyNames(p).forEach(function(e){i(d,p,e)})),v}var c={prototype:!0,arguments:!0,callee:!0,caller:!0};function d(e){return"function"==typeof e?l(e):function(t){return l(t,e)}}d.registerHooks=function(e){s.push.apply(s,e)};var p="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function f(e){return void 0===e&&(e={}),function(t,o){!function(e,t,o){p&&(Array.isArray(e)||"function"==typeof e||void 0!==e.type||(e.type=Reflect.getMetadata("design:type",t,o)))}(e,t,o),a(function(t,o){(t.props||(t.props={}))[o]=e})(t,o)}}function u(e,t){void 0===t&&(t={});var o=t.deep,n=void 0!==o&&o,i=t.immediate,r=void 0!==i&&i;return a(function(t,o){"object"!=typeof t.watch&&(t.watch=Object.create(null));var i=t.watch;"object"!=typeof i[e]||Array.isArray(i[e])?void 0===i[e]&&(i[e]=[]):i[e]=[i[e]],i[e].push({handler:o,deep:n,immediate:r})})}!function(e){var t,o='<svg><symbol id="icon-prev" viewBox="0 0 1024 1024"><path d="M784.652701 955.6957 346.601985 517.644983c-2.822492-2.822492-2.822492-7.902977 0-11.289967l439.179713-439.179713c6.77398-6.77398 10.725469-16.370452 10.725469-25.966924L796.507166 36.692393c0-20.32194-16.370452-36.692393-36.692393-36.692393l-4.515987 0c-9.596472 0-19.192944 3.951488-25.966924 10.725469L250.072767 489.420066c-12.418964 12.418964-12.418964 32.740904 0 45.159868l477.565601 477.565601c7.338479 7.338479 17.499449 11.854465 28.224917 11.854465l0 0c22.015436 0 40.079383-18.063947 40.079383-40.079383l0 0C796.507166 973.759647 791.99118 963.598677 784.652701 955.6957z" ></path></symbol><symbol id="icon-next" viewBox="0 0 1024 1024"><path d="M246.121279 955.6957l438.050717-438.050717c2.822492-2.822492 2.822492-7.902977 0-11.289967L244.992282 67.175303c-6.77398-6.77398-10.725469-16.370452-10.725469-25.966924L234.266814 36.692393C234.266814 16.370452 250.637266 0 270.959206 0l4.515987 0c9.596472 0 19.192944 3.951488 25.966924 10.725469l478.694598 478.694598c12.418964 12.418964 12.418964 32.740904 0 45.159868l-477.565601 477.565601c-7.338479 7.338479-17.499449 11.854465-28.224917 11.854465l0 0c-22.015436 0-40.079383-18.063947-40.079383-40.079383l0 0C234.266814 973.759647 238.7828 963.598677 246.121279 955.6957z" ></path></symbol><symbol id="icon-zoomin" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path><path d="M367.488 238.144h127.104v390.72H367.488z" ></path></symbol><symbol id="icon-rotate" viewBox="0 0 1024 1024"><path d="M288 352v192h128v64h-128v64h192v-320h-192z m128 128h-64v-64h64v64zM544 352v320h192v-320h-192z m128 256h-64v-192h64v192zM957.44 531.84h1.344v-1.92l-1.344 1.92z" ></path><path d="M46.72 474.88l35.84 55.04 1.28 1.92 35.84 55.04 60.16-119.04-32 1.92C168.96 277.76 331.52 128 529.28 128c211.904 0 384 172.16 384 384s-172.096 384-384 384c-140.16 0-263.04-75.52-329.6-188.16h-1.92l-0.64 0.64-53.12 31.36A446.592 446.592 0 0 0 529.28 960c247.744 0 448-200.32 448-448s-200.256-448-448-448C294.4 64 102.4 243.84 83.2 472.96l-36.48 1.92z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M570.24 512l259.2 259.2-58.88 58.24L512 570.24l-261.12 261.12-58.24-58.24L453.76 512 194.56 252.8l58.24-58.24L512 453.76l261.12-261.12 58.24 58.24z" ></path></symbol><symbol id="icon-zoomout" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path></symbol><symbol id="icon-img-broken" viewBox="0 0 1024 1024"><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m0 682.666667H213.333333v-195.413334l42.24 42.24 170.666667-170.666666 170.666667 170.666666 170.666666-170.24L810.666667 530.346667V810.666667z m0-401.493334l-43.093334-43.093333-170.666666 171.093333-170.666667-170.666666-170.666667 170.666666-42.24-42.666666V213.333333h597.333334v195.84z" ></path></symbol></svg>';if((t=document.getElementsByTagName("script"))[t.length-1].getAttribute("data-injectcss")&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(t){console&&console.log(t)}}!function(t){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(t,0);else{var o=function(){document.removeEventListener("DOMContentLoaded",o,!1),t()};document.addEventListener("DOMContentLoaded",o,!1)}else document.attachEvent&&(i=t,r=e.document,a=!1,(s=function(){try{r.documentElement.doScroll("left")}catch(e){return void setTimeout(s,50)}n()})(),r.onreadystatechange=function(){"complete"==r.readyState&&(r.onreadystatechange=null,n())});function n(){a||(a=!0,i())}var i,r,a,s}(function(){var e,t;(e=document.createElement("div")).innerHTML=o,o=null,(t=e.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",function(e,t){t.firstChild?function(e,t){t.parentNode.insertBefore(e,t)}(e,t.firstChild):t.appendChild(e)}(t,document.body))})}(window);var v=e.extend({props:{type:{type:String,default:""}},data:function(){return{prefixCls:"vel"}}});var h,m=function(e,t,o,n,i,r,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);var d,p="function"==typeof o?o.options:o;if(e&&e.render&&(p.render=e.render,p.staticRenderFns=e.staticRenderFns,p._compiled=!0,i&&(p.functional=!0)),n&&(p._scopeId=n),r?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},p._ssrRegister=d):t&&(d=a?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),d)if(p.functional){var f=p.render;p.render=function(e,t){return d.call(t),f(e,t)}}else{var u=p.beforeCreate;p.beforeCreate=u?[].concat(u,d):[d]}return o},g="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var b={};var y=function(e){return function(e,t){return function(e,t){var o=g?t.media||"default":e,n=b[o]||(b[o]={ids:new Set,styles:[]});if(!n.ids.has(e)){n.ids.add(e);var i=t.source;if(t.map&&(i+="\n/*# sourceURL="+t.map.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",t.media&&n.element.setAttribute("media",t.media),void 0===h&&(h=document.head||document.getElementsByTagName("head")[0]),h.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(i),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{var r=n.ids.size-1,a=document.createTextNode(i),s=n.element.childNodes;s[r]&&n.element.removeChild(s[r]),s.length?n.element.insertBefore(a,s[r]):n.element.appendChild(a)}}}(e,t)}};var _=m({render:function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{class:this.prefixCls+"-icon icon",attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-"+this.type}})])},staticRenderFns:[]},function(e){e&&e("data-v-7221e0ec_0",{source:".vel-icon[data-v-7221e0ec]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}",map:void 0,media:void 0})},v,"data-v-7221e0ec",!1,void 0,y,void 0),x="vel",w=function(){};var C=m({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-toolbar"},[t("div",{staticClass:"toobar-btn toolbar-btn__zoomin",on:{click:this.zoomIn}},[t("svg-icon",{attrs:{type:"zoomin"}})],1),this._v(" "),t("div",{staticClass:"toobar-btn toolbar-btn__zoomout",on:{click:this.zoomOut}},[t("svg-icon",{attrs:{type:"zoomout"}})],1),this._v(" "),t("div",{staticClass:"toobar-btn toolbar-btn__rotate",on:{click:this.rotate}},[t("svg-icon",{attrs:{type:"rotate"}})],1)])},staticRenderFns:[]},function(e){e&&e("data-v-36fa02a2_0",{source:".vel-toolbar[data-v-36fa02a2]{user-select:none;position:absolute;bottom:0;left:50%;transform:translate(-50%);background:rgba(45,45,44,.8);border-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;padding:6px 24px 0}.vel-toolbar .toobar-btn[data-v-36fa02a2]{cursor:pointer;display:inline-block;padding:2px 4px}.vel-toolbar .toobar-btn[data-v-36fa02a2]{font-size:32px;color:#fff}.vel-toolbar .toobar-btn[data-v-36fa02a2]:hover{color:#54b4ee}",map:void 0,media:void 0})},e.extend({components:{SvgIcon:_},props:{zoomIn:{type:Function,default:w},zoomOut:{type:Function,default:w},rotate:{type:Function,default:w}},data:function(){return{prefixCls:x}}}),"data-v-36fa02a2",!1,void 0,y,void 0);var O=m({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-loading"},[t("div",{staticClass:"ring"})])},staticRenderFns:[]},function(e){e&&e("data-v-0cefeb9a_0",{source:'.vel-loading[data-v-0cefeb9a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-loading .ring[data-v-0cefeb9a]{display:inline-block;width:64px;height:64px}.vel-loading .ring[data-v-0cefeb9a]:after{content:" ";display:block;width:46px;height:46px;margin:1px;border-radius:50%;border:5px solid rgba(255,255,255,.7);border-color:rgba(255,255,255,.7) transparent rgba(255,255,255,.7) transparent;animation:ring-data-v-0cefeb9a 1.2s linear infinite}@keyframes ring-data-v-0cefeb9a{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',map:void 0,media:void 0})},e.extend({data:function(){return{prefixCls:x}}}),"data-v-0cefeb9a",!1,void 0,y,void 0);var z=m({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.prefixCls+"-on-error"},[t("svg-icon",{attrs:{clas:"icon",type:"img-broken"}})],1)},staticRenderFns:[]},function(e){e&&e("data-v-137806a2_0",{source:".vel-on-error[data-v-137806a2]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vel-on-error .icon[data-v-137806a2]{font-size:80px;color:#aaa}",map:void 0,media:void 0})},e.extend({components:{SvgIcon:_},data:function(){return{prefixCls:x}}}),"data-v-137806a2",!1,void 0,y,void 0),E=e.prototype.$isServer,M=!1;if(!E)try{var P={};Object.defineProperty(P,"passive",{get:function(){M=!0}}),window.addEventListener("test-passive",function(){},P)}catch(e){}var k=m({render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("transition",{attrs:{name:e.prefixCls+"-fade"}},[e.visible?o("div",{class:[e.prefixCls+"-img-modal",e.prefixCls+"-modal"],on:{click:function(t){return t.target!==t.currentTarget?null:e.closeDialog(t)}}},[o("transition",{attrs:{name:e.prefixCls+"-fade",mode:"out-in"}},[e.loading?e._t("loading",[o("img-loading")]):e._e(),e._v(" "),e.loadError?e._t("onerror",[o("img-on-error")]):e._e(),e._v(" "),e.loading||e.loadError?e._e():o("div",{class:e.prefixCls+"-img-wrapper",style:e.imgWrapperStyle},[o("img",{class:e.prefixCls+"-img",style:e.imgStyle,attrs:{src:e.visibleImgSrc,draggable:"false"},on:{mousedown:function(t){return e.handleMouseDown(t)},mouseup:function(t){return e.handleMouseUp(t)},mousemove:function(t){return e.handleMouseMove(t)}}})])],2),e._v(" "),o("img",{staticStyle:{display:"none"},attrs:{src:e.visibleImgSrc},on:{error:e.handleImgError,load:e.handleImgLoad}}),e._v(" "),o("div",{class:e.prefixCls+"-btns-wrapper"},[e._t("prev-btn",[1!==e.imgList.length?o("div",{staticClass:"btn__prev",class:{disable:0===e.imgIndex},on:{click:e.onPrevClick}},[o("svg-icon",{attrs:{type:"prev"}})],1):e._e()],{prev:e.onPrevClick}),e._v(" "),e._t("next-btn",[1!==e.imgList.length?o("div",{staticClass:"btn__next",class:{disable:e.imgIndex===e.imgList.length-1},on:{click:e.onNextClick}},[o("svg-icon",{attrs:{type:"next"}})],1):e._e()],{next:e.onNextClick}),e._v(" "),e._t("close-btn",[o("div",{staticClass:"btn__close",on:{click:e.closeDialog}},[o("svg-icon",{attrs:{type:"close"}})],1)],{close:e.closeDialog}),e._v(" "),e._t("toolbar",[o("toolbar",{attrs:{prefixCls:e.prefixCls,zoomIn:e.zoomIn,zoomOut:e.zoomOut,rotate:e.rotate}})],{toolbarMethods:{zoomIn:e.zoomIn,zoomOut:e.zoomOut,rotate:e.rotate}})],2),e._v(" "),1!==e.imgList.length?o("div",{class:e.prefixCls+"-pagination-total"},[e._v(e._s(e.imgIndex+1)+"/"+e._s(e.imgTotal))]):e._e()],1):e._e()])},staticRenderFns:[]},function(e){e&&e("data-v-4de35050_0",{source:".vel-fade-enter-active[data-v-4de35050],.vel-fade-leave-active[data-v-4de35050]{transition:all .3s ease}.vel-fade-enter[data-v-4de35050],.vel-fade-leave-to[data-v-4de35050]{opacity:0}.vel-img-swiper[data-v-4de35050]{position:relative;display:block}.vel-modal[data-v-4de35050]{z-index:9998;position:fixed;top:0;left:0;right:0;bottom:0;margin:0;background:rgba(0,0,0,.5)}.vel-img-wrapper[data-v-4de35050]{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50% -50%);transition:.3s ease-in-out}.vel-img[data-v-4de35050]{max-width:80vw;max-height:80vh;vertical-align:middle;position:relative;transition:transform .3s ease-in-out;box-shadow:rgba(0,0,0,.7) 0 5px 20px 2px;background-color:rgba(0,0,0,.7)}.vel-btns-wrapper .btn__close[data-v-4de35050],.vel-btns-wrapper .btn__next[data-v-4de35050],.vel-btns-wrapper .btn__prev[data-v-4de35050]{cursor:pointer;position:absolute;font-size:60px;color:#fff;opacity:.6;transition:.15s linear}.vel-btns-wrapper .btn__close[data-v-4de35050]:hover,.vel-btns-wrapper .btn__next[data-v-4de35050]:hover,.vel-btns-wrapper .btn__prev[data-v-4de35050]:hover{opacity:1}.vel-btns-wrapper .btn__next.disable[data-v-4de35050],.vel-btns-wrapper .btn__next.disable[data-v-4de35050]:hover,.vel-btns-wrapper .btn__prev.disable[data-v-4de35050],.vel-btns-wrapper .btn__prev.disable[data-v-4de35050]:hover{cursor:default;opacity:.2}.vel-btns-wrapper .btn__next[data-v-4de35050]{top:50%;transform:translateY(-50%);right:20px;font-size:40px}.vel-btns-wrapper .btn__prev[data-v-4de35050]{top:50%;transform:translateY(-50%);left:20px;font-size:40px}.vel-btns-wrapper .btn__close[data-v-4de35050]{top:10px;right:10px;font-size:40px}.vel-pagination-total[data-v-4de35050]{position:absolute;font-size:16px;top:16px;left:16px;color:#000}",map:void 0,media:void 0})},function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.prefixCls=x,t.scale=1,t.rotateDeg=0,t.imgIndex=0,t.top=0,t.left=0,t.lastX=0,t.lastY=0,t.isDraging=!1,t.loading=!1,t.loadError=!1,t}return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}(n,e),Object.defineProperty(n.prototype,"imgList",{get:function(){return Array.isArray(this.imgs)?this.imgs:[this.imgs]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visibleImgSrc",{get:function(){return this.imgList[this.imgIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"imgTotal",{get:function(){return this.imgList.length||0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"imgWrapperStyle",{get:function(){var e=this,t=e.scale,o=e.top,n=e.left,i=(e.rotateDeg,e.moveDisabled),r=e.loadError;return{transform:"translate(-50%, -50%) scale("+t+")",top:"calc(50% + "+o+"px)",left:"calc(50% + "+n+"px)",cursor:i||r?"default":"move"}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"imgStyle",{get:function(){return{transform:"rotate(-"+this.rotateDeg+"deg)"}},enumerable:!0,configurable:!0}),n.prototype.checkMouseEventPropButton=function(e){return!this.moveDisabled&&0===e},n.prototype.handleMouseDown=function(e){this.checkMouseEventPropButton(e.button)&&(this.lastX=e.clientX,this.lastY=e.clientY,this.isDraging=!0,e.stopPropagation())},n.prototype.handleMouseUp=function(e){this.checkMouseEventPropButton(e.button)&&(this.isDraging=!1,this.lastX=this.lastY=0)},n.prototype.handleMouseMove=function(e){this.checkMouseEventPropButton(e.button)&&(this.isDraging&&(this.top=this.top-this.lastY+e.clientY,this.left=this.left-this.lastX+e.clientX,this.lastX=e.clientX,this.lastY=e.clientY),e.stopPropagation())},n.prototype.escapePressHandler=function(e){"Escape"===e.key&&this.visible&&this.closeDialog()},n.prototype.handleImgLoad=function(e){this.loading=!1},n.prototype.handleImgError=function(e){this.loading=!1,this.loadError=!0,this.$emit("on-error",e)},n.prototype.zoomIn=function(){this.scale+=.25},n.prototype.zoomOut=function(){0!==this.scale&&(this.scale-=.25)},n.prototype.rotate=function(){this.rotateDeg+=90},n.prototype.onNextClick=function(){this.onIndexChange(this.imgIndex+1)},n.prototype.onPrevClick=function(){this.onIndexChange(this.imgIndex-1)},n.prototype.closeDialog=function(){this.$emit("hide")},n.prototype.reset=function(){this.scale=1,this.rotateDeg=0,this.top=0,this.left=0,this.isDraging=!1,this.loading=!0,this.loadError=!1},n.prototype.init=function(){this.imgIndex=this.index,this.reset()},n.prototype.onVisibleChanged=function(e){this.visible&&this.init()},n.prototype.onIndexChange=function(e){var t=this;this.visible&&(e>this.imgList.length-1||e<0||(this.reset(),this.imgIndex=e,this.imgList[this.imgIndex]===this.imgList[e]&&this.$nextTick(function(){t.loading=!1})))},n.prototype.mounted=function(){var e,t,o,n;this.escDisabled||(e=document,t="keydown",o=this.escapePressHandler,void 0===n&&(n=!1),E||e.addEventListener(t,o,!!M&&{capture:!1,passive:n}))},n.prototype.beforeDestroy=function(){var e,t,o;this.escDisabled||(e=document,t="keydown",o=this.escapePressHandler,E||e.removeEventListener(t,o))},o([f({type:[Array,String],default:function(){return""}})],n.prototype,"imgs",void 0),o([f({type:Boolean,default:!1})],n.prototype,"visible",void 0),o([f({type:Number,default:0})],n.prototype,"index",void 0),o([f({type:Boolean,default:!1})],n.prototype,"escDisabled",void 0),o([f({type:Boolean,default:!1})],n.prototype,"moveDisabled",void 0),o([u("visible",{immediate:!0})],n.prototype,"onVisibleChanged",null),o([u("index")],n.prototype,"onIndexChange",null),n=o([d({name:"vue-easy-lightbox",components:{SvgIcon:_,Toolbar:C,ImgLoading:O,ImgOnError:z}})],n)}(e),"data-v-4de35050",!1,void 0,y,void 0);return k.install=function(e){e.component("vue-easy-lightbox",k)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(k.install),k}); diff --git a/package.json b/package.json index c71154e..a4dce6e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-easy-lightbox", - "version": "0.8.0", + "version": "0.8.1", "description": "Very lightweight, JavaScript-only, lightbox plugin for Vue.js", "private": false, "author": "Zichao Xiong <onycat@live.cn>",