react-viewer-imgs
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,2 +0,2 @@ | ||
!function(A,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports["react-viewer"]=e(require("react"),require("react-dom")):A["react-viewer"]=e(A.React,A.ReactDOM)}(this,(function(A,e){return function(A){var e={};function t(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return A[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=A,t.c=e,t.d=function(A,e,n){t.o(A,e)||Object.defineProperty(A,e,{enumerable:!0,get:n})},t.r=function(A){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},t.t=function(A,e){if(1&e&&(A=t(A)),8&e)return A;if(4&e&&"object"==typeof A&&A&&A.__esModule)return A;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:A}),2&e&&"string"!=typeof A)for(var i in A)t.d(n,i,function(e){return A[e]}.bind(null,i));return n},t.n=function(A){var e=A&&A.__esModule?function(){return A.default}:function(){return A};return t.d(e,"a",e),e},t.o=function(A,e){return Object.prototype.hasOwnProperty.call(A,e)},t.p="",t(t.s=6)}([function(e,t){e.exports=A},function(A,e,t){var n; | ||
!function(A,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports["react-viewer"]=e(require("react"),require("react-dom")):A["react-viewer"]=e(A.React,A.ReactDOM)}(this,(function(A,e){return function(A){var e={};function t(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return A[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=A,t.c=e,t.d=function(A,e,n){t.o(A,e)||Object.defineProperty(A,e,{enumerable:!0,get:n})},t.r=function(A){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},t.t=function(A,e){if(1&e&&(A=t(A)),8&e)return A;if(4&e&&"object"==typeof A&&A&&A.__esModule)return A;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:A}),2&e&&"string"!=typeof A)for(var i in A)t.d(n,i,function(e){return A[e]}.bind(null,i));return n},t.n=function(A){var e=A&&A.__esModule?function(){return A.default}:function(){return A};return t.d(e,"a",e),e},t.o=function(A,e){return Object.prototype.hasOwnProperty.call(A,e)},t.p="",t(t.s=3)}([function(e,t){e.exports=A},function(A,e,t){var n; | ||
/*! | ||
@@ -6,2 +6,2 @@ Copyright (c) 2018 Jed Watson. | ||
http://jedwatson.github.io/classnames | ||
*/!function(){"use strict";var t={}.hasOwnProperty;function i(){for(var A=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var r=typeof n;if("string"===r||"number"===r)A.push(n);else if(Array.isArray(n)){if(n.length){var o=i.apply(null,n);o&&A.push(o)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var a in n)t.call(n,a)&&n[a]&&A.push(a);else A.push(n.toString())}}return A.join(" ")}A.exports?(i.default=i,A.exports=i):void 0===(n=function(){return i}.apply(e,[]))||(A.exports=n)}()},function(A,t){A.exports=e},function(A,e,t){A.exports=t.p+"9647ecdd0ab738653b466063fff31397.png"},function(A,e,t){A.exports=t.p+"c426f7c33341dc38db9e6e5a30fb5bed.png"},function(A,e,t){A.exports=t.p+"5088e500748ae93be12558c7529d13a3.png"},function(A,e,t){A.exports=t(16)},function(A,e,t){var n=t(8),i=t(9);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[A.i,i,""]]);var r={insert:"head",singleton:!1};n(i,r);A.exports=i.locals||{}},function(A,e,t){"use strict";var n,i=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var A={};return function(e){if(void 0===A[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(A){t=null}A[e]=t}return A[e]}}(),o=[];function a(A){for(var e=-1,t=0;t<o.length;t++)if(o[t].identifier===A){e=t;break}return e}function c(A,e){for(var t={},n=[],i=0;i<A.length;i++){var r=A[i],c=e.base?r[0]+e.base:r[0],l=t[c]||0,u="".concat(c," ").concat(l);t[c]=l+1;var g=a(u),s={css:r[1],media:r[2],sourceMap:r[3]};-1!==g?(o[g].references++,o[g].updater(s)):o.push({identifier:u,updater:w(s,e),references:1}),n.push(u)}return n}function l(A){var e=document.createElement("style"),n=A.attributes||{};if(void 0===n.nonce){var i=t.nc;i&&(n.nonce=i)}if(Object.keys(n).forEach((function(A){e.setAttribute(A,n[A])})),"function"==typeof A.insert)A.insert(e);else{var o=r(A.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(e)}return e}var u,g=(u=[],function(A,e){return u[A]=e,u.filter(Boolean).join("\n")});function s(A,e,t,n){var i=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(A.styleSheet)A.styleSheet.cssText=g(e,i);else{var r=document.createTextNode(i),o=A.childNodes;o[e]&&A.removeChild(o[e]),o.length?A.insertBefore(r,o[e]):A.appendChild(r)}}function M(A,e,t){var n=t.css,i=t.media,r=t.sourceMap;if(i?A.setAttribute("media",i):A.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),A.styleSheet)A.styleSheet.cssText=n;else{for(;A.firstChild;)A.removeChild(A.firstChild);A.appendChild(document.createTextNode(n))}}var d=null,f=0;function w(A,e){var t,n,i;if(e.singleton){var r=f++;t=d||(d=l(e)),n=s.bind(null,t,r,!1),i=s.bind(null,t,r,!0)}else t=l(e),n=M.bind(null,t,e),i=function(){!function(A){if(null===A.parentNode)return!1;A.parentNode.removeChild(A)}(t)};return n(A),function(e){if(e){if(e.css===A.css&&e.media===A.media&&e.sourceMap===A.sourceMap)return;n(A=e)}else i()}}A.exports=function(A,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var t=c(A=A||[],e);return function(A){if(A=A||[],"[object Array]"===Object.prototype.toString.call(A)){for(var n=0;n<t.length;n++){var i=a(t[n]);o[i].references--}for(var r=c(A,e),l=0;l<t.length;l++){var u=a(t[l]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}t=r}}}},function(A,e,t){var n=t(10),i=t(11),r=t(12),o=t(13),a=t(14),c=t(15);e=n(!1);var l=i(r),u=i(r,{hash:"?#iefix"}),g=i(o),s=i(a),M=i(c);e.push([A.i,'@font-face {\n font-family: "icomoon";\n src: url('+l+");\n src: url("+u+') format("embedded-opentype"), url('+g+') format("truetype"), url('+s+') format("woff"), url('+M+') format("svg");\n font-weight: normal;\n font-style: normal;\n}\n.react-viewer {\n opacity: 0;\n}\n.react-viewer-inline {\n position: relative;\n width: 100%;\n height: 100%;\n min-height: 400px;\n}\n.react-viewer ul {\n margin: 0;\n padding: 0;\n}\n.react-viewer li {\n list-style: none;\n}\n.react-viewer-mask {\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background-color: #373737;\n background-color: rgba(55, 55, 55, 0.6);\n height: 100%;\n filter: alpha(opacity=50);\n z-index: 1000;\n}\n.react-viewer-btn {\n background-color: rgba(0, 0, 0, 0.5);\n color: white;\n}\n.react-viewer-btn:hover {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.react-viewer-close {\n position: fixed;\n top: 40px;\n right: 40px;\n overflow: hidden;\n cursor: pointer;\n z-index: 1010;\n}\n.react-viewer-close > i {\n position: relative;\n top: 8px;\n left: 13px;\n}\n.react-viewer-canvas {\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n overflow: hidden;\n z-index: 1005;\n}\n.react-viewer-canvas > img {\n display: block;\n width: auto;\n height: auto;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.react-viewer-canvas > img.drag {\n cursor: move;\n}\n.react-viewer-footer {\n position: fixed;\n right: 0;\n bottom: 88px;\n left: 0;\n overflow: hidden;\n text-align: center;\n z-index: 1005;\n}\n.react-viewer-inline > .react-viewer-mask,\n.react-viewer-inline > .react-viewer-close,\n.react-viewer-inline > .react-viewer-canvas,\n.react-viewer-inline > .react-viewer-footer {\n position: absolute;\n}\n.react-viewer-attribute {\n margin: 0 20px;\n margin-bottom: 6px;\n opacity: 0.8;\n color: #ccc;\n font-size: 15px;\n}\n.react-viewer-showTotal {\n float: right;\n}\n.react-viewer-toolbar {\n overflow: hidden;\n height: 28px;\n margin-bottom: 6px !important;\n}\n.react-viewer-toolbar li {\n display: inline-block;\n width: 28px;\n height: 28px;\n border-radius: 28px;\n margin-right: 3px;\n cursor: pointer;\n line-height: 28px;\n}\n.react-viewer-toolbar li:hover {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.react-viewer li.empty {\n background-color: transparent;\n cursor: default;\n}\n.react-viewer-navbar {\n overflow: hidden;\n}\n.react-viewer-list {\n padding: 1px;\n text-align: left;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.react-viewer-list > li {\n display: inline-block;\n cursor: pointer;\n overflow: hidden;\n margin-right: 36px;\n}\n.react-viewer-list > li > img {\n width: 148px;\n height: 104px;\n opacity: 1;\n border-radius: 8px;\n}\n.react-viewer-list > li.active > img {\n width: 168px;\n height: 118px;\n border: 3px solid rgba(255, 255, 255, 0.48);\n opacity: 1;\n}\n.react-viewer-transition {\n -webkit-transition: opacity 0.3s ease-out;\n -o-transition: opacity 0.3s ease-out;\n transition: opacity 0.3s ease-out;\n}\n.react-viewer-image-transition {\n -webkit-transition-property: width, height, margin, -webkit-transform;\n transition-property: width, height, margin, -webkit-transform;\n -o-transition-property: width, height, margin, transform;\n transition-property: width, height, margin, transform;\n transition-property: width, height, margin, transform, -webkit-transform;\n -webkit-transition-duration: 0.3s;\n -o-transition-duration: 0.3s;\n transition-duration: 0.3s;\n -webkit-transition-timing-function: ease-out;\n -o-transition-timing-function: ease-out;\n transition-timing-function: ease-out;\n}\n.react-viewer-list-transition {\n -webkit-transition: margin 0.3s ease-out;\n -o-transition: margin 0.3s ease-out;\n transition: margin 0.3s ease-out;\n}\n.react-viewer-icon {\n font-family: "icomoon" !important;\n display: inline-block;\n font-style: normal;\n vertical-align: baseline;\n text-align: center;\n text-transform: none;\n text-rendering: auto;\n line-height: 1;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n color: white;\n font-size: 13px;\n}\n.react-viewer-icon-zoomIn:before {\n content: "\\ea0a";\n}\n.react-viewer-icon-zoomOut:before {\n content: "\\ea0b";\n}\n.react-viewer-icon-prev:before {\n content: "\\ea38";\n}\n.react-viewer-icon-next:before {\n content: "\\ea34";\n}\n.react-viewer-icon-close:before {\n content: "\\ea0f";\n}\n.react-viewer-icon-rotateLeft:before {\n content: "\\e967";\n}\n.react-viewer-icon-rotateRight:before {\n content: "\\e968";\n}\n.react-viewer-icon-reset:before {\n content: "\\e984";\n}\n.react-viewer-icon-scaleX:before {\n content: "\\ea60";\n}\n.react-viewer-icon-scaleY:before {\n content: "\\ea5f";\n}\n.react-viewer-icon-download:before {\n content: "\\e9c7";\n}\n.circle-loading {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n width: 80px;\n height: 80px;\n border-radius: 100%;\n border: 10px solid rgba(255, 255, 255, 0.2);\n border-top-color: #fff;\n -webkit-animation: spin 1s infinite linear;\n animation: spin 1s infinite linear;\n}\n@-webkit-keyframes spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n',""]),A.exports=e},function(A,e,t){"use strict";A.exports=function(A){var e=[];return e.toString=function(){return this.map((function(e){var t=function(A,e){var t=A[1]||"",n=A[3];if(!n)return t;if(e&&"function"==typeof btoa){var i=(o=n,a=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(c," */")),r=n.sources.map((function(A){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(A," */")}));return[t].concat(r).concat([i]).join("\n")}var o,a,c;return[t].join("\n")}(e,A);return e[2]?"@media ".concat(e[2]," {").concat(t,"}"):t})).join("")},e.i=function(A,t,n){"string"==typeof A&&(A=[[null,A,""]]);var i={};if(n)for(var r=0;r<this.length;r++){var o=this[r][0];null!=o&&(i[o]=!0)}for(var a=0;a<A.length;a++){var c=[].concat(A[a]);n&&i[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),e.push(c))}},e}},function(A,e,t){"use strict";A.exports=function(A,e){return e||(e={}),"string"!=typeof(A=A&&A.__esModule?A.default:A)?A:(/^['"].*['"]$/.test(A)&&(A=A.slice(1,-1)),e.hash&&(A+=e.hash),/["'() \t\n]/.test(A)||e.needQuotes?'"'.concat(A.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):A)}},function(A,e){A.exports="data:application/vnd.ms-fontobject;base64,EAkAAGwIAAABAAIAAAAAAAAAAAAAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAtY+ntwAAAAAAAAAAAAAAAAAAAAAAAA4AaQBjAG8AbQBvAG8AbgAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAADgBpAGMAbwBtAG8AbwBuAAAAAAAAAQAAAAsAgAADADBPUy8yDxIHXwAAALwAAABgY21hcKiOqIYAAAEcAAAAjGdhc3AAAAAQAAABqAAAAAhnbHlmIUjQ2AAAAbAAAAQ8aGVhZBDtn4cAAAXsAAA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MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAIAQP/AA8ADgAAJABcAACUVJzcVITUXBzUTEScjETMVITUzESMHEQEAwMACAMDAQEDAgP6AgMBAQICgoICAoKCAA0D/AID+QEBAAcCAAQAAAQAAAAAAALenj7VfDzz1AAsEAAAAAADW562FAAAAANbnrYUAAP/ABAADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAAAAAEAAABAAAAAAAAAAAAAAAAAAAADwQAAAAAAAAAAAAAAAIAAAAEAABABAAAdgQAAAAEAAAABAAAAAQAAAAEAAACBAAAAAQAACAEAAAABAAAQAAAAAAACgAUAB4AQgBoALwA3gEUATABpgG6Ac4B9gIeAAEAAAAPAFQAAwAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(A,e){A.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPC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TJ2LTM4NGg1MTJ2LTI4OHoiIC8+DQo8Z2x5cGggdW5pY29kZT0iJiN4ZWEzODsiIGdseXBoLW5hbWU9InByZXYiIGQ9Ik0zMiA0NDhsNDgwLTQ4MHYyODhoNTEydjM4NGgtNTEydjI4OHoiIC8+DQo8Z2x5cGggdW5pY29kZT0iJiN4ZWE1ZjsiIGdseXBoLW5hbWU9InNjYWxlWSIgZD0iTTg5NiAxOTJoMTI4bC0xNjAtMTkyLTE2MCAxOTJoMTI4djUxMmgtMTI4bDE2MCAxOTIgMTYwLTE5MmgtMTI4ek02NDAgODk2di0yNTZsLTY0IDEyOGgtMTkydi03MDRoMTI4di02NGgtMzg0djY0aDEyOHY3MDRoLTE5MmwtNjQtMTI4djI1NnoiIC8+DQo8Z2x5cGggdW5pY29kZT0iJiN4ZWE2MDsiIGdseXBoLW5hbWU9InNjYWxlWCIgZD0iTTI1NiA2NHYtMTI4bC0xOTIgMTYwIDE5MiAxNjB2LTEyOGg1MTJ2MTI4bDE5Mi0xNjAtMTkyLTE2MHYxMjh6TTgzMiA4OTZ2LTI1NmwtNjQgMTI4aC0xOTJ2LTQ0OGgxMjh2LTY0aC0zODR2NjRoMTI4djQ0OGgtMTkybC02NC0xMjh2MjU2eiIgLz4NCjwvZm9udD48L2RlZnM+PC9zdmc+"},function(A,e,t){"use strict";t.r(e);var n=t(0),i=t.n(n),r=t(2);t(7);function o(A){return n.createElement("div",{className:"loading-wrap",style:A.style},n.createElement("div",{className:"circle-loading"}))}var a=t(1),c=t.n(a);function l(A,e){return function(A){if(Array.isArray(A))return A}(A)||function(A,e){var t=A&&("undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"]);if(null==t)return;var n,i,r=[],o=!0,a=!1;try{for(t=t.call(A);!(o=(n=t.next()).done)&&(r.push(n.value),!e||r.length!==e);o=!0);}catch(A){a=!0,i=A}finally{try{o||null==t.return||t.return()}finally{if(a)throw i}}return r}(A,e)||function(A,e){if(!A)return;if("string"==typeof A)return u(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);"Object"===t&&A.constructor&&(t=A.constructor.name);if("Map"===t||"Set"===t)return Array.from(A);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(A,e)}(A,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=A[t];return n}function g(A){var e=n.useRef(!1),t=n.useRef({x:0,y:0}),i=l(n.useState({x:0,y:0}),2),r=i[0],a=i[1];function u(e){A.onResize()}function g(n){0===n.button&&A.visible&&A.drag&&(n.preventDefault(),n.stopPropagation(),e.current=!0,t.current={x:n.nativeEvent.clientX,y:n.nativeEvent.clientY})}n.useEffect((function(){return function(){f(!0),d(!0)}}),[]),n.useEffect((function(){return d(),function(){d(!0)}})),n.useEffect((function(){return A.visible&&A.drag&&f(),!A.visible&&A.drag&&M({}),function(){f(!0)}}),[A.drag,A.visible]),n.useEffect((function(){var e=r.x-t.current.x,n=r.y-t.current.y;t.current={x:r.x,y:r.y},A.onChangeImgState(A.width,A.height,A.top+n,A.left+e)}),[r]);var s=function(A){e.current&&a({x:A.clientX,y:A.clientY})};function M(A){e.current=!1}function d(A){var e="addEventListener";A&&(e="removeEventListener"),window[e]("resize",u,!1)}function f(A){var e="addEventListener";A&&(e="removeEventListener"),document[e]("click",M,!1),document[e]("mousemove",s,!1)}var w,E,I,B={width:"".concat(A.width,"px"),height:"".concat(A.height,"px"),transform:"\ntranslateX(".concat(null!==A.left?A.left+"px":"aoto",") translateY(").concat(A.top,"px)\n rotate(").concat(A.rotate,"deg) scaleX(").concat(A.scaleX,") scaleY(").concat(A.scaleY,")")},y=c()("".concat(A.prefixCls,"-image"),(w={drag:A.drag},E="".concat(A.prefixCls,"-image-transition"),I=!e.current,E in w?Object.defineProperty(w,E,{value:I,enumerable:!0,configurable:!0,writable:!0}):w[E]=I,w)),D={zIndex:A.zIndex},v=null;return""!==A.imgSrc&&(v=n.createElement("img",{className:y,src:A.imgSrc,style:B,onMouseDown:g})),A.loading&&(v=n.createElement("div",{style:{display:"flex",height:"".concat(window.innerHeight-84,"px"),justifyContent:"center",alignItems:"center"}},n.createElement(o,null))),n.createElement("div",{className:"".concat(A.prefixCls,"-canvas"),onMouseDown:function(e){A.onCanvasMouseDown(e),g(e)},style:D},v)}var s,M=t(3),d=t.n(M),f=t(4),w=t.n(f);function E(A,e){return function(A){if(Array.isArray(A))return A}(A)||function(A,e){var t=A&&("undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"]);if(null==t)return;var n,i,r=[],o=!0,a=!1;try{for(t=t.call(A);!(o=(n=t.next()).done)&&(r.push(n.value),!e||r.length!==e);o=!0);}catch(A){a=!0,i=A}finally{try{o||null==t.return||t.return()}finally{if(a)throw i}}return r}(A,e)||function(A,e){if(!A)return;if("string"==typeof A)return I(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);"Object"===t&&A.constructor&&(t=A.constructor.name);if("Map"===t||"Set"===t)return Array.from(A);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return I(A,e)}(A,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=A[t];return n}function B(A){var e=E(Object(n.useState)([]),2),t=e[0],r=e[1],o=E(Object(n.useState)(0),2),a=o[0],c=o[1],l=A.activeIndex,u=void 0===l?0:l,g=A.images,s=void 0===g?[]:g,M=A.navImgs;return Object(n.useEffect)((function(){if(s.length>M){var A=Math.floor(u/M);r(s.slice(A*M,A*M+M)),c(A)}else r(s)}),[u]),i.a.createElement("div",{className:"".concat(A.prefixCls,"-navbar")},i.a.createElement("ul",{className:"".concat(A.prefixCls,"-list ").concat(A.prefixCls,"-list-transition"),style:{textAlign:"center"}},a>0&&i.a.createElement("img",{onClick:function(){A.onChangeImg(u-M)},src:d.a,style:{marginRight:36}}),t.map((function(e,t){return i.a.createElement("li",{key:t,className:t+a*M===u?"active":"",onClick:function(){var e;u!==(e=t+a*M)&&A.onChangeImg(e)}},i.a.createElement("img",{src:e.src,alt:e.alt}))})),a<Math.floor(s.length/M)&&i.a.createElement("img",{onClick:function(){A.onChangeImg(u+M)},src:w.a})))}function y(A){return n.createElement("i",{className:"".concat("react-viewer-icon"," ").concat("react-viewer-icon","-").concat(s[A.type])})}!function(A){A[A.zoomIn=1]="zoomIn",A[A.zoomOut=2]="zoomOut",A[A.prev=3]="prev",A[A.next=4]="next",A[A.rotateLeft=5]="rotateLeft",A[A.rotateRight=6]="rotateRight",A[A.reset=7]="reset",A[A.close=8]="close",A[A.scaleX=9]="scaleX",A[A.scaleY=10]="scaleY",A[A.download=11]="download"}(s||(s={}));var D=[{key:"zoomIn",actionType:s.zoomIn},{key:"zoomOut",actionType:s.zoomOut},{key:"prev",actionType:s.prev},{key:"reset",actionType:s.reset},{key:"next",actionType:s.next},{key:"rotateLeft",actionType:s.rotateLeft},{key:"rotateRight",actionType:s.rotateRight},{key:"scaleX",actionType:s.scaleX},{key:"scaleY",actionType:s.scaleY},{key:"download",actionType:s.download}];function v(A,e){return A.filter((function(A){return e.indexOf(A.key)<0}))}function h(A){function e(e){var t=null;return void 0!==s[e.actionType]&&(t=n.createElement(y,{type:e.actionType})),e.render&&(t=e.render),n.createElement("li",{key:e.key,className:"".concat(A.prefixCls,"-btn"),onClick:function(){!function(e){A.onAction(e)}(e)},"data-key":e.key},t)}var t=A.attribute?n.createElement("p",{className:"".concat(A.prefixCls,"-attribute")},A.alt&&"".concat(A.alt),A.noImgDetails||n.createElement("span",{className:"".concat(A.prefixCls,"-img-details")},"(".concat(A.width," x ").concat(A.height,")")),A.showTotal&&n.createElement("span",{className:"".concat(A.prefixCls,"-showTotal")},"".concat(A.activeIndex+1," of ").concat(A.count))):null,i=A.toolbars;return A.zoomable||(i=v(i,["zoomIn","zoomOut"])),A.changeable||(i=v(i,["prev","next"])),A.rotatable||(i=v(i,["rotateLeft","rotateRight"])),A.scalable||(i=v(i,["scaleX","scaleY"])),A.downloadable||(i=v(i,["download"])),n.createElement("div",null,t,n.createElement("ul",{className:"".concat(A.prefixCls,"-toolbar")},i.map((function(A){return e(A)}))))}var T=t(5),b=t.n(T);function m(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function p(A,e){return function(A){if(Array.isArray(A))return A}(A)||function(A,e){var t=A&&("undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"]);if(null==t)return;var n,i,r=[],o=!0,a=!1;try{for(t=t.call(A);!(o=(n=t.next()).done)&&(r.push(n.value),!e||r.length!==e);o=!0);}catch(A){a=!0,i=A}finally{try{o||null==t.return||t.return()}finally{if(a)throw i}}return r}(A,e)||function(A,e){if(!A)return;if("string"==typeof A)return N(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);"Object"===t&&A.constructor&&(t=A.constructor.name);if("Map"===t||"Set"===t)return Array.from(A);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return N(A,e)}(A,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=A[t];return n}function Q(){return(Q=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(A[n]=t[n])}return A}).apply(this,arguments)}function x(){}var j="setVisible",C="setActiveIndex",z="update",Y="clear";function L(A,e){return{type:A,payload:e||{}}}var k=function(A){var e,t=A.visible,i=void 0!==t&&t,r=A.onClose,o=void 0===r?x:r,a=A.images,l=void 0===a?[]:a,u=A.activeIndex,M=void 0===u?0:u,d=A.zIndex,f=void 0===d?1e3:d,w=A.drag,E=void 0===w||w,I=A.attribute,y=void 0===I||I,v=A.zoomable,T=void 0===v||v,N=A.rotatable,k=void 0===N||N,G=A.scalable,O=void 0===G||G,S=A.onMaskClick,R=void 0===S?x:S,J=A.changeable,U=void 0===J||J,P=A.customToolbar,H=void 0===P?function(A){return A}:P,W=A.zoomSpeed,F=void 0===W?.05:W,Z=A.disableKeyboardSupport,X=void 0!==Z&&Z,V=A.noResetZoomAfterChange,K=void 0!==V&&V,q=A.noLimitInitializationSize,_=void 0!==q&&q,$=A.defaultScale,AA=void 0===$?1:$,eA=A.loop,tA=void 0===eA||eA,nA=A.disableMouseZoom,iA=void 0!==nA&&nA,rA=A.downloadable,oA=void 0!==rA&&rA,aA=A.noImgDetails,cA=void 0!==aA&&aA,lA=A.noToolbar,uA=void 0!==lA&&lA,gA=A.showTotal,sA=void 0===gA||gA,MA=A.minScale,dA=void 0===MA?.1:MA,fA=A.navImgs,wA=void 0===fA?5:fA,EA={visible:!1,visibleStart:!1,transitionEnd:!1,activeIndex:A.activeIndex,width:0,height:0,top:15,left:null,rotate:0,imageWidth:0,imageHeight:0,scaleX:AA,scaleY:AA,loading:!1,loadFailed:!1,startLoading:!1};function IA(){var e=window.innerWidth,t=window.innerHeight;return A.container&&(e=A.container.offsetWidth,t=A.container.offsetHeight),{width:e,height:t}}var BA=n.useRef(IA());var yA=n.useRef(null),DA=n.useRef(!1),vA=n.useRef(0),hA=p(n.useReducer((function(A,e){switch(e.type){case j:return Q(Q({},A),{visible:e.payload.visible});case C:return Q(Q({},A),{activeIndex:e.payload.index,startLoading:!0});case z:return Q(Q({},A),e.payload);case Y:return Q(Q({},A),{width:0,height:0,scaleX:AA,scaleY:AA,rotate:1,imageWidth:0,imageHeight:0,loadFailed:!1,top:0,left:0,loading:!1})}return A}),EA),2),TA=hA[0],bA=hA[1];function mA(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];bA(L(z,{loading:!0,loadFailed:!1}));var n=null;l.length>0&&(n=l[e]);var i=!1,r=new Image;function o(i,r,o){if(e===vA.current){var a=i,c=r;A.defaultSize&&(a=A.defaultSize.width,c=A.defaultSize.height),n.defaultSize&&(a=n.defaultSize.width,c=n.defaultSize.height);var l=p(pA(a,c),2),u=l[0],g=l[1],s=(BA.current.width-u)/2,M=(BA.current.height-g-240)/2,d=AA,f=AA;K&&!t&&(d=TA.scaleX,f=TA.scaleY),bA(L(z,{width:u,height:g,left:s,top:M,imageWidth:i,imageHeight:r,loading:!1,rotate:0,scaleX:d,scaleY:f,loadFailed:!o,startLoading:!1}))}}r.onload=function(){DA.current&&(i||o(r.width,r.height,!0))},r.onerror=function(){DA.current&&(A.defaultImg?(bA(L(z,{loading:!1,loadFailed:!0,startLoading:!1})),o(A.defaultImg.width||.5*BA.current.width,A.defaultImg.height||.5*BA.current.height,!1)):bA(L(z,{loading:!1,loadFailed:!1,startLoading:!1})))},r.src=n.src,r.complete&&(i=!0,o(r.width,r.height,!0))}function pA(A,e){var t=0,n=0,i=.8*BA.current.width,r=.8*(BA.current.height-240);return(n=(t=Math.min(i,A))/A*e)>r&&(t=(n=r)/e*A),_&&(t=A,n=e),[t,n]}function NA(e){if((tA||!(e>=l.length||e<0))&&(e>=l.length&&(e=0),e<0&&(e=l.length-1),e!==TA.activeIndex)){if(A.onChange){var t=QA(e);A.onChange(t,e)}bA(L(C,{index:e}))}}function QA(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e={src:"",alt:"",downloadUrl:""},t=null;return t=void 0!==A?A:TA.activeIndex,l.length>0&&t>=0&&(e=l[t]),e}function xA(){var A=arguments.length>0&&void 0!==arguments[0]&&arguments[0];bA(L(z,{rotate:TA.rotate+90*(A?1:-1)}))}function jA(e){switch(e){case s.prev:NA(TA.activeIndex-1);break;case s.next:NA(TA.activeIndex+1);break;case s.zoomIn:var t=LA();kA(t.x,t.y,1,F);break;case s.zoomOut:var n=LA();kA(n.x,n.y,-1,F);break;case s.rotateLeft:xA();break;case s.rotateRight:xA(!0);break;case s.reset:mA(TA.activeIndex,!0);break;case s.scaleX:r=-1,bA(L(z,{scaleX:TA.scaleX*r}));break;case s.scaleY:!function(A){bA(L(z,{scaleY:TA.scaleY*A}))}(-1);break;case s.download:(i=QA()).downloadUrl&&(A.downloadInNewWindow?window.open(i.downloadUrl,"_blank"):location.href=i.downloadUrl)}var i,r}function CA(){var A=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e="addEventListener";A&&(e="removeEventListener"),X||document[e]("keydown",zA,!0),yA.current&&yA.current[e]("wheel",YA,!1)}function zA(A){var e=!1;switch(A.keyCode||A.which||A.charCode){case 27:o(),e=!0;break;case 37:A.ctrlKey?jA(s.rotateLeft):jA(s.prev),e=!0;break;case 39:A.ctrlKey?jA(s.rotateRight):jA(s.next),e=!0;break;case 38:jA(s.zoomIn),e=!0;break;case 40:jA(s.zoomOut),e=!0;break;case 49:A.ctrlKey&&(mA(TA.activeIndex),e=!0)}e&&(A.preventDefault(),A.stopPropagation())}function YA(e){if(!iA&&!TA.loading){e.preventDefault();var t=0,n=e.deltaY;if(0!==(t=0===n?0:n>0?-1:1)){var i=e.clientX,r=e.clientY;if(A.container){var o=A.container.getBoundingClientRect();i-=o.left,r-=o.top}kA(i,r,t,F)}}}function LA(){return{x:TA.left+TA.width/2,y:TA.top+TA.height/2}}function kA(e,t,n,i){var r=LA(),o=e-r.x,a=t-r.y,c=0,l=0,u=0,g=0,s=0,M=0;if(0===TA.width){var d=p(pA(TA.imageWidth,TA.imageHeight),2),f=d[0],w=d[1];l=(BA.current.width-f)/2,c=(BA.current.height-240-w)/2,u=TA.width+f,g=TA.height+w,s=M=1}else{var E=TA.scaleX>0?1:-1,I=TA.scaleY>0?1:-1;s=TA.scaleX+i*n*E,M=TA.scaleY+i*n*I,void 0!==A.maxScale&&(Math.abs(s)>A.maxScale&&(s=A.maxScale*E),Math.abs(M)>A.maxScale&&(M=A.maxScale*I)),Math.abs(s)<dA&&(s=dA*E),Math.abs(M)<dA&&(M=dA*I),c=TA.top+-n*a/TA.scaleX*i*E,l=TA.left+-n*o/TA.scaleY*i*I,u=TA.width,g=TA.height}bA(L(z,{width:u,scaleX:s,scaleY:M,height:g,top:c,left:l,loading:!1}))}n.useEffect((function(){return DA.current=!0,function(){DA.current=!1}}),[]),n.useEffect((function(){BA.current=IA()}),[A.container]),n.useEffect((function(){i&&DA.current&&bA(L(j,{visible:!0}))}),[i]),n.useEffect((function(){return CA(),function(){CA(!0)}})),n.useEffect((function(){return i?A.container||(document.body.style.overflow="hidden",document.body.scrollHeight>document.body.clientHeight&&(document.body.style.paddingRight="15px")):bA(L(Y,{})),function(){document.body.style.overflow="",document.body.style.paddingRight=""}}),[TA.visible]),n.useEffect((function(){i&&bA(L(C,{index:M}))}),[M,i,l]),n.useEffect((function(){TA.startLoading&&(vA.current=TA.activeIndex,mA(TA.activeIndex))}),[TA.startLoading,TA.activeIndex]);var GA="react-viewer",OA=c()("".concat(GA),"".concat(GA,"-transition"),(m(e={},"".concat(GA,"-inline"),A.container),m(e,A.className,A.className),e)),SA={opacity:i&&TA.visible?1:0,display:i||TA.visible?"block":"none"},RA={src:"",alt:""};return i&&TA.visible&&!TA.loading&&null!==TA.activeIndex&&!TA.startLoading&&(RA=QA()),n.createElement("div",{className:OA,style:SA,onTransitionEnd:function(){i||bA(L(j,{visible:!1}))},ref:yA},n.createElement("div",{className:"".concat(GA,"-mask"),style:{zIndex:f}}),A.noClose||n.createElement("img",{src:b.a,className:"".concat(GA,"-close"),onClick:function(){o()},style:{zIndex:f+10}}),n.createElement(g,{prefixCls:GA,imgSrc:TA.loadFailed&&A.defaultImg.src||RA.src,visible:i,width:TA.width,height:TA.height,top:TA.top,left:TA.left,rotate:TA.rotate,onChangeImgState:function(A,e,t,n){bA(L(z,{width:A,height:e,top:t,left:n}))},onResize:function(){if(BA.current=IA(),i){var A=(BA.current.width-TA.width)/2,e=(BA.current.height-TA.height-240)/2;bA(L(z,{left:A,top:e}))}},zIndex:f+5,scaleX:TA.scaleX,scaleY:TA.scaleY,loading:TA.loading,drag:E,container:A.container,onCanvasMouseDown:function(A){R(A)}}),A.noFooter||n.createElement("div",{className:"".concat(GA,"-footer"),style:{zIndex:f+5}},uA||n.createElement(h,{prefixCls:GA,onAction:function(A){if(jA(A.actionType),A.onClick){var e=QA();A.onClick(e)}},alt:RA.alt,width:TA.imageWidth,height:TA.imageHeight,attribute:y,zoomable:T,rotatable:k,scalable:O,changeable:U,downloadable:oA,noImgDetails:cA,toolbars:H(D),activeIndex:TA.activeIndex,count:l.length,showTotal:sA}),A.noNavbar||n.createElement(B,{prefixCls:GA,images:A.images,activeIndex:TA.activeIndex,onChangeImg:NA,navImgs:wA})))};function G(A,e){return function(A){if(Array.isArray(A))return A}(A)||function(A,e){var t=A&&("undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"]);if(null==t)return;var n,i,r=[],o=!0,a=!1;try{for(t=t.call(A);!(o=(n=t.next()).done)&&(r.push(n.value),!e||r.length!==e);o=!0);}catch(A){a=!0,i=A}finally{try{o||null==t.return||t.return()}finally{if(a)throw i}}return r}(A,e)||function(A,e){if(!A)return;if("string"==typeof A)return O(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);"Object"===t&&A.constructor&&(t=A.constructor.name);if("Map"===t||"Set"===t)return Array.from(A);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return O(A,e)}(A,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=A[t];return n}e.default=function(A){var e=n.useRef("undefined"!=typeof document?document.createElement("div"):null),t=G(n.useState(A.container),2),i=t[0],o=t[1],a=G(n.useState(!1),2),c=a[0],l=a[1];return n.useEffect((function(){document.body.appendChild(e.current)}),[]),n.useEffect((function(){A.visible&&!c&&l(!0)}),[A.visible,c]),n.useEffect((function(){A.container?o(A.container):o(e.current)}),[A.container]),c?r.createPortal(n.createElement(k,A),i):null}}])})); | ||
*/!function(){"use strict";var t={}.hasOwnProperty;function i(){for(var A=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var r=typeof n;if("string"===r||"number"===r)A.push(n);else if(Array.isArray(n)){if(n.length){var o=i.apply(null,n);o&&A.push(o)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var a in n)t.call(n,a)&&n[a]&&A.push(a);else A.push(n.toString())}}return A.join(" ")}A.exports?(i.default=i,A.exports=i):void 0===(n=function(){return i}.apply(e,[]))||(A.exports=n)}()},function(A,t){A.exports=e},function(A,e,t){A.exports=t(13)},function(A,e,t){var n=t(5),i=t(6);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[A.i,i,""]]);var r={insert:"head",singleton:!1};n(i,r);A.exports=i.locals||{}},function(A,e,t){"use strict";var n,i=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var A={};return function(e){if(void 0===A[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(A){t=null}A[e]=t}return A[e]}}(),o=[];function a(A){for(var e=-1,t=0;t<o.length;t++)if(o[t].identifier===A){e=t;break}return e}function c(A,e){for(var t={},n=[],i=0;i<A.length;i++){var r=A[i],c=e.base?r[0]+e.base:r[0],l=t[c]||0,u="".concat(c," ").concat(l);t[c]=l+1;var g=a(u),s={css:r[1],media:r[2],sourceMap:r[3]};-1!==g?(o[g].references++,o[g].updater(s)):o.push({identifier:u,updater:w(s,e),references:1}),n.push(u)}return n}function l(A){var e=document.createElement("style"),n=A.attributes||{};if(void 0===n.nonce){var i=t.nc;i&&(n.nonce=i)}if(Object.keys(n).forEach((function(A){e.setAttribute(A,n[A])})),"function"==typeof A.insert)A.insert(e);else{var o=r(A.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(e)}return e}var u,g=(u=[],function(A,e){return u[A]=e,u.filter(Boolean).join("\n")});function s(A,e,t,n){var i=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(A.styleSheet)A.styleSheet.cssText=g(e,i);else{var r=document.createTextNode(i),o=A.childNodes;o[e]&&A.removeChild(o[e]),o.length?A.insertBefore(r,o[e]):A.appendChild(r)}}function M(A,e,t){var n=t.css,i=t.media,r=t.sourceMap;if(i?A.setAttribute("media",i):A.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),A.styleSheet)A.styleSheet.cssText=n;else{for(;A.firstChild;)A.removeChild(A.firstChild);A.appendChild(document.createTextNode(n))}}var d=null,f=0;function w(A,e){var t,n,i;if(e.singleton){var r=f++;t=d||(d=l(e)),n=s.bind(null,t,r,!1),i=s.bind(null,t,r,!0)}else t=l(e),n=M.bind(null,t,e),i=function(){!function(A){if(null===A.parentNode)return!1;A.parentNode.removeChild(A)}(t)};return n(A),function(e){if(e){if(e.css===A.css&&e.media===A.media&&e.sourceMap===A.sourceMap)return;n(A=e)}else i()}}A.exports=function(A,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var t=c(A=A||[],e);return function(A){if(A=A||[],"[object Array]"===Object.prototype.toString.call(A)){for(var n=0;n<t.length;n++){var i=a(t[n]);o[i].references--}for(var r=c(A,e),l=0;l<t.length;l++){var u=a(t[l]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}t=r}}}},function(A,e,t){var n=t(7),i=t(8),r=t(9),o=t(10),a=t(11),c=t(12);e=n(!1);var l=i(r),u=i(r,{hash:"?#iefix"}),g=i(o),s=i(a),M=i(c);e.push([A.i,'@font-face {\n font-family: "icomoon";\n src: url('+l+");\n src: url("+u+') format("embedded-opentype"), url('+g+') format("truetype"), url('+s+') format("woff"), url('+M+') format("svg");\n font-weight: normal;\n font-style: normal;\n}\n.react-viewer {\n opacity: 0;\n}\n.react-viewer-inline {\n position: relative;\n width: 100%;\n height: 100%;\n min-height: 400px;\n}\n.react-viewer ul {\n margin: 0;\n padding: 0;\n}\n.react-viewer li {\n list-style: none;\n}\n.react-viewer-mask {\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background-color: #373737;\n background-color: rgba(55, 55, 55, 0.6);\n height: 100%;\n filter: alpha(opacity=50);\n z-index: 1000;\n}\n.react-viewer-btn {\n background-color: rgba(0, 0, 0, 0.5);\n color: white;\n}\n.react-viewer-btn:hover {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.react-viewer-close {\n position: fixed;\n top: 40px;\n right: 40px;\n overflow: hidden;\n cursor: pointer;\n z-index: 1010;\n}\n.react-viewer-close > i {\n position: relative;\n top: 8px;\n left: 13px;\n}\n.react-viewer-canvas {\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n overflow: hidden;\n z-index: 1005;\n}\n.react-viewer-canvas > img {\n display: block;\n width: auto;\n height: auto;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.react-viewer-canvas > img.drag {\n cursor: move;\n}\n.react-viewer-footer {\n position: fixed;\n right: 0;\n bottom: 88px;\n left: 0;\n overflow: hidden;\n text-align: center;\n z-index: 1005;\n}\n.react-viewer-inline > .react-viewer-mask,\n.react-viewer-inline > .react-viewer-close,\n.react-viewer-inline > .react-viewer-canvas,\n.react-viewer-inline > .react-viewer-footer {\n position: absolute;\n}\n.react-viewer-attribute {\n margin: 0 20px;\n margin-bottom: 6px;\n opacity: 0.8;\n color: #ccc;\n font-size: 15px;\n}\n.react-viewer-showTotal {\n float: right;\n}\n.react-viewer-toolbar {\n overflow: hidden;\n height: 28px;\n margin-bottom: 6px !important;\n}\n.react-viewer-toolbar li {\n display: inline-block;\n width: 28px;\n height: 28px;\n border-radius: 28px;\n margin-right: 3px;\n cursor: pointer;\n line-height: 28px;\n}\n.react-viewer-toolbar li:hover {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.react-viewer li.empty {\n background-color: transparent;\n cursor: default;\n}\n.react-viewer-navbar {\n overflow: hidden;\n}\n.react-viewer-list {\n padding: 1px;\n text-align: left;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.react-viewer-list > li {\n display: inline-block;\n cursor: pointer;\n overflow: hidden;\n margin-right: 36px;\n}\n.react-viewer-list > li > img {\n width: 148px;\n height: 104px;\n opacity: 1;\n border-radius: 8px;\n}\n.react-viewer-list > li.active > img {\n width: 168px;\n height: 118px;\n border: 3px solid rgba(255, 255, 255, 0.48);\n opacity: 1;\n}\n.react-viewer-transition {\n -webkit-transition: opacity 0.3s ease-out;\n -o-transition: opacity 0.3s ease-out;\n transition: opacity 0.3s ease-out;\n}\n.react-viewer-image-transition {\n -webkit-transition-property: width, height, margin, -webkit-transform;\n transition-property: width, height, margin, -webkit-transform;\n -o-transition-property: width, height, margin, transform;\n transition-property: width, height, margin, transform;\n transition-property: width, height, margin, transform, -webkit-transform;\n -webkit-transition-duration: 0.3s;\n -o-transition-duration: 0.3s;\n transition-duration: 0.3s;\n -webkit-transition-timing-function: ease-out;\n -o-transition-timing-function: ease-out;\n transition-timing-function: ease-out;\n}\n.react-viewer-list-transition {\n -webkit-transition: margin 0.3s ease-out;\n -o-transition: margin 0.3s ease-out;\n transition: margin 0.3s ease-out;\n}\n.react-viewer-icon {\n font-family: "icomoon" !important;\n display: inline-block;\n font-style: normal;\n vertical-align: baseline;\n text-align: center;\n text-transform: none;\n text-rendering: auto;\n line-height: 1;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n color: white;\n font-size: 13px;\n}\n.react-viewer-icon-zoomIn:before {\n content: "\\ea0a";\n}\n.react-viewer-icon-zoomOut:before {\n content: "\\ea0b";\n}\n.react-viewer-icon-prev:before {\n content: "\\ea38";\n}\n.react-viewer-icon-next:before {\n content: "\\ea34";\n}\n.react-viewer-icon-close:before {\n content: "\\ea0f";\n}\n.react-viewer-icon-rotateLeft:before {\n content: "\\e967";\n}\n.react-viewer-icon-rotateRight:before {\n content: "\\e968";\n}\n.react-viewer-icon-reset:before {\n content: "\\e984";\n}\n.react-viewer-icon-scaleX:before {\n content: "\\ea60";\n}\n.react-viewer-icon-scaleY:before {\n content: "\\ea5f";\n}\n.react-viewer-icon-download:before {\n content: "\\e9c7";\n}\n.circle-loading {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n width: 80px;\n height: 80px;\n border-radius: 100%;\n border: 10px solid rgba(255, 255, 255, 0.2);\n border-top-color: #fff;\n -webkit-animation: spin 1s infinite linear;\n animation: spin 1s infinite linear;\n}\n@-webkit-keyframes spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n',""]),A.exports=e},function(A,e,t){"use strict";A.exports=function(A){var e=[];return e.toString=function(){return this.map((function(e){var t=function(A,e){var t=A[1]||"",n=A[3];if(!n)return t;if(e&&"function"==typeof btoa){var i=(o=n,a=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(c," */")),r=n.sources.map((function(A){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(A," */")}));return[t].concat(r).concat([i]).join("\n")}var o,a,c;return[t].join("\n")}(e,A);return e[2]?"@media ".concat(e[2]," {").concat(t,"}"):t})).join("")},e.i=function(A,t,n){"string"==typeof A&&(A=[[null,A,""]]);var i={};if(n)for(var r=0;r<this.length;r++){var o=this[r][0];null!=o&&(i[o]=!0)}for(var a=0;a<A.length;a++){var c=[].concat(A[a]);n&&i[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),e.push(c))}},e}},function(A,e,t){"use strict";A.exports=function(A,e){return e||(e={}),"string"!=typeof(A=A&&A.__esModule?A.default:A)?A:(/^['"].*['"]$/.test(A)&&(A=A.slice(1,-1)),e.hash&&(A+=e.hash),/["'() \t\n]/.test(A)||e.needQuotes?'"'.concat(A.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):A)}},function(A,e){A.exports="data:application/vnd.ms-fontobject;base64,EAkAAGwIAAABAAIAAAAAAAAAAAAAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAtY+ntwAAAAAAAAAAAAAAAAAAAAAAAA4AaQBjAG8AbQBvAG8AbgAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAADgBpAGMAbwBtAG8AbwBuAAAAAAAAAQAAAAsAgAADADBPUy8yDxIHXwAAALwAAABgY21hcKiOqIYAAAEcAAAAjGdhc3AAAAAQAAABqAAAAAhnbHlmIUjQ2AAAAbAAAAQ8aGVhZBDtn4cAAAXsAAAANmhoZWEHwgPQAAAGJAAAACRobXR4MgABGAAABkgAAAA8bG9jYQZOB7gAAAaEAAAAIG1heHAAEwBWAAAGpAAAACBuYW1lmUoJ+wAABsQAAAGGcG9zdAADAAAAAAhMAAAAIAADA9UBkAAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAAAAAAAAAAAAAAEAAAOpgA8D/wABAA8AAQAAAAAEAAAAAAAAAAAAAACAAAAAAAAMAAAADAAAAHAABAAMAAAAcAAMAAQAAABwABABwAAAAGAAQAAMACAABACDpaOmE6cfqC+oP6jTqOOpg//3//wAAAAAAIOln6YTpx+oK6g/qNOo46l///f//AAH/4xadFoIWQBX+FfsV1xXUFa4AAwABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAA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YUAAAAA1uethQAA/8AEAAPAAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAQAAAEAAAAAAAAAAAAAAAAAAAAPBAAAAAAAAAAAAAAAAgAAAAQAAEAEAAB2BAAAAAQAAAAEAAAABAAAAAQAAAIEAAAABAAAIAQAAAAEAABAAAAAAAAKABQAHgBCAGgAvADeARQBMAGmAboBzgH2Ah4AAQAAAA8AVAADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},function(A,e){A.exports="data:font/woff;base64,d09GRgABAAAAAAi4AAsAAAAACGwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIHX2NtYXAAAAFoAAAAjAAAAIyojqiGZ2FzcAAAAfQAAAAIAAAACAAAABBnbHlmAAAB/AAABDwAAAQ8IUjQ2GhlYWQAAAY4AAAANgAAADYQ7Z+HaGhlYQAABnAAAAAkAAAAJAfCA9BobXR4AAAGlAAAADwAAAA8MgABGGxvY2EAAAbQAA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iTTI1NiA2NHYtMTI4bC0xOTIgMTYwIDE5MiAxNjB2LTEyOGg1MTJ2MTI4bDE5Mi0xNjAtMTkyLTE2MHYxMjh6TTgzMiA4OTZ2LTI1NmwtNjQgMTI4aC0xOTJ2LTQ0OGgxMjh2LTY0aC0zODR2NjRoMTI4djQ0OGgtMTkybC02NC0xMjh2MjU2eiIgLz4NCjwvZm9udD48L2RlZnM+PC9zdmc+"},function(A,e,t){"use strict";t.r(e);var n=t(0),i=t.n(n),r=t(2);t(4);function o(A){return n.createElement("div",{className:"loading-wrap",style:A.style},n.createElement("div",{className:"circle-loading"}))}var a,c=t(1),l=t.n(c);function u(A,e){return function(A){if(Array.isArray(A))return A}(A)||function(A,e){var t=A&&("undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"]);if(null==t)return;var n,i,r=[],o=!0,a=!1;try{for(t=t.call(A);!(o=(n=t.next()).done)&&(r.push(n.value),!e||r.length!==e);o=!0);}catch(A){a=!0,i=A}finally{try{o||null==t.return||t.return()}finally{if(a)throw i}}return r}(A,e)||function(A,e){if(!A)return;if("string"==typeof A)return g(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);"Object"===t&&A.constructor&&(t=A.constructor.name);if("Map"===t||"Set"===t)return Array.from(A);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return g(A,e)}(A,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=A[t];return n}function s(A){var e=n.useRef(!1),t=n.useRef({x:0,y:0}),i=u(n.useState({x:0,y:0}),2),r=i[0],a=i[1];function c(e){A.onResize()}function g(n){0===n.button&&A.visible&&A.drag&&(n.preventDefault(),n.stopPropagation(),e.current=!0,t.current={x:n.nativeEvent.clientX,y:n.nativeEvent.clientY})}n.useEffect((function(){return function(){f(!0),d(!0)}}),[]),n.useEffect((function(){return d(),function(){d(!0)}})),n.useEffect((function(){return A.visible&&A.drag&&f(),!A.visible&&A.drag&&M({}),function(){f(!0)}}),[A.drag,A.visible]),n.useEffect((function(){var e=r.x-t.current.x,n=r.y-t.current.y;t.current={x:r.x,y:r.y},A.onChangeImgState(A.width,A.height,A.top+n,A.left+e)}),[r]);var s=function(A){e.current&&a({x:A.clientX,y:A.clientY})};function M(A){e.current=!1}function d(A){var e="addEventListener";A&&(e="removeEventListener"),window[e]("resize",c,!1)}function f(A){var e="addEventListener";A&&(e="removeEventListener"),document[e]("click",M,!1),document[e]("mousemove",s,!1)}var w,E,I,B={width:"".concat(A.width,"px"),height:"".concat(A.height,"px"),transform:"\ntranslateX(".concat(null!==A.left?A.left+"px":"aoto",") translateY(").concat(A.top,"px)\n rotate(").concat(A.rotate,"deg) scaleX(").concat(A.scaleX,") scaleY(").concat(A.scaleY,")")},y=l()("".concat(A.prefixCls,"-image"),(w={drag:A.drag},E="".concat(A.prefixCls,"-image-transition"),I=!e.current,E in w?Object.defineProperty(w,E,{value:I,enumerable:!0,configurable:!0,writable:!0}):w[E]=I,w)),D={zIndex:A.zIndex},v=null;return""!==A.imgSrc&&(v=n.createElement("img",{className:y,src:A.imgSrc,style:B,onMouseDown:g})),A.loading&&(v=n.createElement("div",{style:{display:"flex",height:"".concat(window.innerHeight-84,"px"),justifyContent:"center",alignItems:"center"}},n.createElement(o,null))),n.createElement("div",{className:"".concat(A.prefixCls,"-canvas"),onMouseDown:function(e){A.onCanvasMouseDown(e),g(e)},style:D},v)}function M(A,e){return function(A){if(Array.isArray(A))return A}(A)||function(A,e){var t=A&&("undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"]);if(null==t)return;var n,i,r=[],o=!0,a=!1;try{for(t=t.call(A);!(o=(n=t.next()).done)&&(r.push(n.value),!e||r.length!==e);o=!0);}catch(A){a=!0,i=A}finally{try{o||null==t.return||t.return()}finally{if(a)throw i}}return r}(A,e)||function(A,e){if(!A)return;if("string"==typeof A)return d(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);"Object"===t&&A.constructor&&(t=A.constructor.name);if("Map"===t||"Set"===t)return Array.from(A);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(A,e)}(A,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=A[t];return n}function f(A){var e=M(Object(n.useState)([]),2),t=e[0],r=e[1],o=M(Object(n.useState)(0),2),a=o[0],c=o[1],l=A.activeIndex,u=void 0===l?0:l,g=A.images,s=void 0===g?[]:g,d=A.navImgs,f=A.imgIcons;return Object(n.useEffect)((function(){if(s.length>d){var A=Math.floor(u/d);r(s.slice(A*d,A*d+d)),c(A)}else r(s)}),[u]),i.a.createElement("div",{className:"".concat(A.prefixCls,"-navbar")},i.a.createElement("ul",{className:"".concat(A.prefixCls,"-list ").concat(A.prefixCls,"-list-transition"),style:{textAlign:"center"}},a>0&&i.a.createElement("img",{onClick:function(){A.onChangeImg(u-d)},src:f.left,style:{marginRight:36}}),t.map((function(e,t){return i.a.createElement("li",{key:t,className:t+a*d===u?"active":"",onClick:function(){var e;u!==(e=t+a*d)&&A.onChangeImg(e)}},i.a.createElement("img",{src:e.src,alt:e.alt}))})),a<Math.floor(s.length/d)&&i.a.createElement("img",{onClick:function(){A.onChangeImg(u+d)},src:f.right})))}function w(A){return n.createElement("i",{className:"".concat("react-viewer-icon"," ").concat("react-viewer-icon","-").concat(a[A.type])})}!function(A){A[A.zoomIn=1]="zoomIn",A[A.zoomOut=2]="zoomOut",A[A.prev=3]="prev",A[A.next=4]="next",A[A.rotateLeft=5]="rotateLeft",A[A.rotateRight=6]="rotateRight",A[A.reset=7]="reset",A[A.close=8]="close",A[A.scaleX=9]="scaleX",A[A.scaleY=10]="scaleY",A[A.download=11]="download"}(a||(a={}));var E=[{key:"zoomIn",actionType:a.zoomIn},{key:"zoomOut",actionType:a.zoomOut},{key:"prev",actionType:a.prev},{key:"reset",actionType:a.reset},{key:"next",actionType:a.next},{key:"rotateLeft",actionType:a.rotateLeft},{key:"rotateRight",actionType:a.rotateRight},{key:"scaleX",actionType:a.scaleX},{key:"scaleY",actionType:a.scaleY},{key:"download",actionType:a.download}];function I(A,e){return A.filter((function(A){return e.indexOf(A.key)<0}))}function B(A){function e(e){var t=null;return void 0!==a[e.actionType]&&(t=n.createElement(w,{type:e.actionType})),e.render&&(t=e.render),n.createElement("li",{key:e.key,className:"".concat(A.prefixCls,"-btn"),onClick:function(){!function(e){A.onAction(e)}(e)},"data-key":e.key},t)}var t=A.attribute?n.createElement("p",{className:"".concat(A.prefixCls,"-attribute")},A.alt&&"".concat(A.alt),A.noImgDetails||n.createElement("span",{className:"".concat(A.prefixCls,"-img-details")},"(".concat(A.width," x ").concat(A.height,")")),A.showTotal&&n.createElement("span",{className:"".concat(A.prefixCls,"-showTotal")},"".concat(A.activeIndex+1," of ").concat(A.count))):null,i=A.toolbars;return A.zoomable||(i=I(i,["zoomIn","zoomOut"])),A.changeable||(i=I(i,["prev","next"])),A.rotatable||(i=I(i,["rotateLeft","rotateRight"])),A.scalable||(i=I(i,["scaleX","scaleY"])),A.downloadable||(i=I(i,["download"])),n.createElement("div",null,t,n.createElement("ul",{className:"".concat(A.prefixCls,"-toolbar")},i.map((function(A){return e(A)}))))}function y(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function D(A,e){return function(A){if(Array.isArray(A))return A}(A)||function(A,e){var t=A&&("undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"]);if(null==t)return;var n,i,r=[],o=!0,a=!1;try{for(t=t.call(A);!(o=(n=t.next()).done)&&(r.push(n.value),!e||r.length!==e);o=!0);}catch(A){a=!0,i=A}finally{try{o||null==t.return||t.return()}finally{if(a)throw i}}return r}(A,e)||function(A,e){if(!A)return;if("string"==typeof A)return v(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);"Object"===t&&A.constructor&&(t=A.constructor.name);if("Map"===t||"Set"===t)return Array.from(A);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v(A,e)}(A,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=A[t];return n}function h(){return(h=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(A[n]=t[n])}return A}).apply(this,arguments)}function T(){}var m="setVisible",b="setActiveIndex",N="update",Q="clear";function p(A,e){return{type:A,payload:e||{}}}var x=function(A){var e,t=A.visible,i=void 0!==t&&t,r=A.onClose,o=void 0===r?T:r,c=A.images,u=void 0===c?[]:c,g=A.activeIndex,M=void 0===g?0:g,d=A.zIndex,w=void 0===d?1e3:d,I=A.drag,v=void 0===I||I,x=A.attribute,j=void 0===x||x,C=A.zoomable,z=void 0===C||C,Y=A.rotatable,L=void 0===Y||Y,k=A.scalable,G=void 0===k||k,O=A.onMaskClick,S=void 0===O?T:O,R=A.changeable,J=void 0===R||R,U=A.customToolbar,P=void 0===U?function(A){return A}:U,H=A.zoomSpeed,W=void 0===H?.05:H,F=A.disableKeyboardSupport,Z=void 0!==F&&F,X=A.noResetZoomAfterChange,V=void 0!==X&&X,K=A.noLimitInitializationSize,q=void 0!==K&&K,_=A.defaultScale,$=void 0===_?1:_,AA=A.loop,eA=void 0===AA||AA,tA=A.disableMouseZoom,nA=void 0!==tA&&tA,iA=A.downloadable,rA=void 0!==iA&&iA,oA=A.noImgDetails,aA=void 0!==oA&&oA,cA=A.noToolbar,lA=void 0!==cA&&cA,uA=A.showTotal,gA=void 0===uA||uA,sA=A.minScale,MA=void 0===sA?.1:sA,dA=A.navImgs,fA=void 0===dA?5:dA,wA=A.imgIcons,EA={visible:!1,visibleStart:!1,transitionEnd:!1,activeIndex:A.activeIndex,width:0,height:0,top:15,left:null,rotate:0,imageWidth:0,imageHeight:0,scaleX:$,scaleY:$,loading:!1,loadFailed:!1,startLoading:!1};function IA(){var e=window.innerWidth,t=window.innerHeight;return A.container&&(e=A.container.offsetWidth,t=A.container.offsetHeight),{width:e,height:t}}var BA=n.useRef(IA());var yA=n.useRef(null),DA=n.useRef(!1),vA=n.useRef(0),hA=D(n.useReducer((function(A,e){switch(e.type){case m:return h(h({},A),{visible:e.payload.visible});case b:return h(h({},A),{activeIndex:e.payload.index,startLoading:!0});case N:return h(h({},A),e.payload);case Q:return h(h({},A),{width:0,height:0,scaleX:$,scaleY:$,rotate:1,imageWidth:0,imageHeight:0,loadFailed:!1,top:0,left:0,loading:!1})}return A}),EA),2),TA=hA[0],mA=hA[1];function bA(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];mA(p(N,{loading:!0,loadFailed:!1}));var n=null;u.length>0&&(n=u[e]);var i=!1,r=new Image;function o(i,r,o){if(e===vA.current){var a=i,c=r;A.defaultSize&&(a=A.defaultSize.width,c=A.defaultSize.height),n.defaultSize&&(a=n.defaultSize.width,c=n.defaultSize.height);var l=D(NA(a,c),2),u=l[0],g=l[1],s=(BA.current.width-u)/2,M=(BA.current.height-g-240)/2,d=$,f=$;V&&!t&&(d=TA.scaleX,f=TA.scaleY),mA(p(N,{width:u,height:g,left:s,top:M,imageWidth:i,imageHeight:r,loading:!1,rotate:0,scaleX:d,scaleY:f,loadFailed:!o,startLoading:!1}))}}r.onload=function(){DA.current&&(i||o(r.width,r.height,!0))},r.onerror=function(){DA.current&&(A.defaultImg?(mA(p(N,{loading:!1,loadFailed:!0,startLoading:!1})),o(A.defaultImg.width||.5*BA.current.width,A.defaultImg.height||.5*BA.current.height,!1)):mA(p(N,{loading:!1,loadFailed:!1,startLoading:!1})))},r.src=n.src,r.complete&&(i=!0,o(r.width,r.height,!0))}function NA(A,e){var t=0,n=0,i=.8*BA.current.width,r=.8*(BA.current.height-240);return(n=(t=Math.min(i,A))/A*e)>r&&(t=(n=r)/e*A),q&&(t=A,n=e),[t,n]}function QA(e){if((eA||!(e>=u.length||e<0))&&(e>=u.length&&(e=0),e<0&&(e=u.length-1),e!==TA.activeIndex)){if(A.onChange){var t=pA(e);A.onChange(t,e)}mA(p(b,{index:e}))}}function pA(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e={src:"",alt:"",downloadUrl:""},t=null;return t=void 0!==A?A:TA.activeIndex,u.length>0&&t>=0&&(e=u[t]),e}function xA(){var A=arguments.length>0&&void 0!==arguments[0]&&arguments[0];mA(p(N,{rotate:TA.rotate+90*(A?1:-1)}))}function jA(e){switch(e){case a.prev:QA(TA.activeIndex-1);break;case a.next:QA(TA.activeIndex+1);break;case a.zoomIn:var t=LA();kA(t.x,t.y,1,W);break;case a.zoomOut:var n=LA();kA(n.x,n.y,-1,W);break;case a.rotateLeft:xA();break;case a.rotateRight:xA(!0);break;case a.reset:bA(TA.activeIndex,!0);break;case a.scaleX:r=-1,mA(p(N,{scaleX:TA.scaleX*r}));break;case a.scaleY:!function(A){mA(p(N,{scaleY:TA.scaleY*A}))}(-1);break;case a.download:(i=pA()).downloadUrl&&(A.downloadInNewWindow?window.open(i.downloadUrl,"_blank"):location.href=i.downloadUrl)}var i,r}function CA(){var A=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e="addEventListener";A&&(e="removeEventListener"),Z||document[e]("keydown",zA,!0),yA.current&&yA.current[e]("wheel",YA,!1)}function zA(A){var e=!1;switch(A.keyCode||A.which||A.charCode){case 27:o(),e=!0;break;case 37:A.ctrlKey?jA(a.rotateLeft):jA(a.prev),e=!0;break;case 39:A.ctrlKey?jA(a.rotateRight):jA(a.next),e=!0;break;case 38:jA(a.zoomIn),e=!0;break;case 40:jA(a.zoomOut),e=!0;break;case 49:A.ctrlKey&&(bA(TA.activeIndex),e=!0)}e&&(A.preventDefault(),A.stopPropagation())}function YA(e){if(!nA&&!TA.loading){e.preventDefault();var t=0,n=e.deltaY;if(0!==(t=0===n?0:n>0?-1:1)){var i=e.clientX,r=e.clientY;if(A.container){var o=A.container.getBoundingClientRect();i-=o.left,r-=o.top}kA(i,r,t,W)}}}function LA(){return{x:TA.left+TA.width/2,y:TA.top+TA.height/2}}function kA(e,t,n,i){var r=LA(),o=e-r.x,a=t-r.y,c=0,l=0,u=0,g=0,s=0,M=0;if(0===TA.width){var d=D(NA(TA.imageWidth,TA.imageHeight),2),f=d[0],w=d[1];l=(BA.current.width-f)/2,c=(BA.current.height-240-w)/2,u=TA.width+f,g=TA.height+w,s=M=1}else{var E=TA.scaleX>0?1:-1,I=TA.scaleY>0?1:-1;s=TA.scaleX+i*n*E,M=TA.scaleY+i*n*I,void 0!==A.maxScale&&(Math.abs(s)>A.maxScale&&(s=A.maxScale*E),Math.abs(M)>A.maxScale&&(M=A.maxScale*I)),Math.abs(s)<MA&&(s=MA*E),Math.abs(M)<MA&&(M=MA*I),c=TA.top+-n*a/TA.scaleX*i*E,l=TA.left+-n*o/TA.scaleY*i*I,u=TA.width,g=TA.height}mA(p(N,{width:u,scaleX:s,scaleY:M,height:g,top:c,left:l,loading:!1}))}n.useEffect((function(){return DA.current=!0,function(){DA.current=!1}}),[]),n.useEffect((function(){BA.current=IA()}),[A.container]),n.useEffect((function(){i&&DA.current&&mA(p(m,{visible:!0}))}),[i]),n.useEffect((function(){return CA(),function(){CA(!0)}})),n.useEffect((function(){return i?A.container||(document.body.style.overflow="hidden",document.body.scrollHeight>document.body.clientHeight&&(document.body.style.paddingRight="15px")):mA(p(Q,{})),function(){document.body.style.overflow="",document.body.style.paddingRight=""}}),[TA.visible]),n.useEffect((function(){i&&mA(p(b,{index:M}))}),[M,i,u]),n.useEffect((function(){TA.startLoading&&(vA.current=TA.activeIndex,bA(TA.activeIndex))}),[TA.startLoading,TA.activeIndex]);var GA="react-viewer",OA=l()("".concat(GA),"".concat(GA,"-transition"),(y(e={},"".concat(GA,"-inline"),A.container),y(e,A.className,A.className),e)),SA={opacity:i&&TA.visible?1:0,display:i||TA.visible?"block":"none"},RA={src:"",alt:""};return i&&TA.visible&&!TA.loading&&null!==TA.activeIndex&&!TA.startLoading&&(RA=pA()),n.createElement("div",{className:OA,style:SA,onTransitionEnd:function(){i||mA(p(m,{visible:!1}))},ref:yA},n.createElement("div",{className:"".concat(GA,"-mask"),style:{zIndex:w}}),A.noClose||n.createElement("img",{src:wA.close,className:"".concat(GA,"-close"),onClick:function(){o()},style:{zIndex:w+10}}),n.createElement(s,{prefixCls:GA,imgSrc:TA.loadFailed&&A.defaultImg.src||RA.src,visible:i,width:TA.width,height:TA.height,top:TA.top,left:TA.left,rotate:TA.rotate,onChangeImgState:function(A,e,t,n){mA(p(N,{width:A,height:e,top:t,left:n}))},onResize:function(){if(BA.current=IA(),i){var A=(BA.current.width-TA.width)/2,e=(BA.current.height-TA.height-240)/2;mA(p(N,{left:A,top:e}))}},zIndex:w+5,scaleX:TA.scaleX,scaleY:TA.scaleY,loading:TA.loading,drag:v,container:A.container,onCanvasMouseDown:function(A){S(A)}}),A.noFooter||n.createElement("div",{className:"".concat(GA,"-footer"),style:{zIndex:w+5}},lA||n.createElement(B,{prefixCls:GA,onAction:function(A){if(jA(A.actionType),A.onClick){var e=pA();A.onClick(e)}},alt:RA.alt,width:TA.imageWidth,height:TA.imageHeight,attribute:j,zoomable:z,rotatable:L,scalable:G,changeable:J,downloadable:rA,noImgDetails:aA,toolbars:P(E),activeIndex:TA.activeIndex,count:u.length,showTotal:gA}),A.noNavbar||n.createElement(f,{prefixCls:GA,images:A.images,activeIndex:TA.activeIndex,onChangeImg:QA,navImgs:fA,imgIcons:wA})))};function j(A,e){return function(A){if(Array.isArray(A))return A}(A)||function(A,e){var t=A&&("undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"]);if(null==t)return;var n,i,r=[],o=!0,a=!1;try{for(t=t.call(A);!(o=(n=t.next()).done)&&(r.push(n.value),!e||r.length!==e);o=!0);}catch(A){a=!0,i=A}finally{try{o||null==t.return||t.return()}finally{if(a)throw i}}return r}(A,e)||function(A,e){if(!A)return;if("string"==typeof A)return C(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);"Object"===t&&A.constructor&&(t=A.constructor.name);if("Map"===t||"Set"===t)return Array.from(A);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return C(A,e)}(A,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=A[t];return n}e.default=function(A){var e=n.useRef("undefined"!=typeof document?document.createElement("div"):null),t=j(n.useState(A.container),2),i=t[0],o=t[1],a=j(n.useState(!1),2),c=a[0],l=a[1];return n.useEffect((function(){document.body.appendChild(e.current)}),[]),n.useEffect((function(){A.visible&&!c&&l(!0)}),[A.visible,c]),n.useEffect((function(){A.container?o(A.container):o(e.current)}),[A.container]),c?r.createPortal(n.createElement(x,A),i):null}}])})); |
@@ -9,3 +9,4 @@ /// <reference types="react" /> | ||
navImgs?: number; | ||
imgIcons?: any; | ||
} | ||
export default function ViewerNav(props: ViewerNavProps): JSX.Element; |
@@ -74,3 +74,4 @@ /// <reference types="react" /> | ||
navImgs?: number; | ||
imgIcons?: any; | ||
} | ||
export default ViewerProps; |
{ | ||
"name": "react-viewer-imgs", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "react image viewer", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
200
59963
14
1