react-viewer-imgs
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -6,2 +6,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=3)}([function(e,t){e.exports=A},function(A,e,t){var n; | ||
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(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,g="".concat(c," ").concat(l);t[c]=l+1;var u=a(g),s={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(o[u].references++,o[u].updater(s)):o.push({identifier:g,updater:w(s,e),references:1}),n.push(g)}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 g,u=(g=[],function(A,e){return g[A]=e,g.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=u(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 g=a(t[l]);0===o[g].references&&(o[g].updater(),o.splice(g,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),g=i(r,{hash:"?#iefix"}),u=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("+g+') format("embedded-opentype"), url('+u+') 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+ntwAAAAAAAAAAAAAAAAAAAAAAAA4AaQBjAG8AbQBvAG8AbgAAAA4AUgBlAGcAdQBsAG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EuNTcgMjIuNDU0IDcuMzI0IDMzLjgzLTEuNTUyIDQuMTYtMy45NyA4LjA2OC03LjMxNCAxMS40MTR6IiAvPg0KPGdseXBoIHVuaWNvZGU9IiYjeGVhMzQ7IiBnbHlwaC1uYW1lPSJuZXh0IiBkPSJNOTkyIDQ0OGwtNDgwIDQ4MHYtMjg4aC01MTJ2LTM4NGg1MTJ2LTI4OHoiIC8+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(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 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 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 s(A){var e=n.useRef(!1),t=n.useRef({x:0,y:0}),i=g(n.useState({x:0,y:0}),2),r=i[0],a=i[1];function c(e){A.onResize()}function u(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:u})),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),u(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,g=void 0===l?0:l,u=A.images,s=void 0===u?[]:u,d=A.navImgs;return Object(n.useEffect)((function(){if(s.length>d){var A=Math.floor(g/d);r(s.slice(A*d,A*d+d)),c(A)}else r(s)}),[g]),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(g-d)},src:"/static/images/left.png",style:{marginRight:36}}),t.map((function(e,t){return i.a.createElement("li",{key:t,className:t+a*d===g?"active":"",onClick:function(){var e;g!==(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(g+d)},src:"/static/images/right.png"})))}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,g=void 0===c?[]:c,u=A.activeIndex,M=void 0===u?0:u,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,gA=A.showTotal,uA=void 0===gA||gA,sA=A.minScale,MA=void 0===sA?.1:sA,dA=A.navImgs,fA=void 0===dA?5:dA,wA={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 EA(){var e=window.innerWidth,t=window.innerHeight;return A.container&&(e=A.container.offsetWidth,t=A.container.offsetHeight),{width:e,height:t}}var IA=n.useRef(EA());var BA=n.useRef(null),yA=n.useRef(!1),DA=n.useRef(0),vA=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}),wA),2),hA=vA[0],TA=vA[1];function mA(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];TA(p(N,{loading:!0,loadFailed:!1}));var n=null;g.length>0&&(n=g[e]);var i=!1,r=new Image;function o(i,r,o){if(e===DA.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(bA(a,c),2),g=l[0],u=l[1],s=(IA.current.width-g)/2,M=(IA.current.height-u-240)/2,d=$,f=$;V&&!t&&(d=hA.scaleX,f=hA.scaleY),TA(p(N,{width:g,height:u,left:s,top:M,imageWidth:i,imageHeight:r,loading:!1,rotate:0,scaleX:d,scaleY:f,loadFailed:!o,startLoading:!1}))}}r.onload=function(){yA.current&&(i||o(r.width,r.height,!0))},r.onerror=function(){yA.current&&(A.defaultImg?(TA(p(N,{loading:!1,loadFailed:!0,startLoading:!1})),o(A.defaultImg.width||.5*IA.current.width,A.defaultImg.height||.5*IA.current.height,!1)):TA(p(N,{loading:!1,loadFailed:!1,startLoading:!1})))},r.src=n.src,r.complete&&(i=!0,o(r.width,r.height,!0))}function bA(A,e){var t=0,n=0,i=.8*IA.current.width,r=.8*(IA.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 NA(e){if((eA||!(e>=g.length||e<0))&&(e>=g.length&&(e=0),e<0&&(e=g.length-1),e!==hA.activeIndex)){if(A.onChange){var t=QA(e);A.onChange(t,e)}TA(p(b,{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:hA.activeIndex,g.length>0&&t>=0&&(e=g[t]),e}function pA(){var A=arguments.length>0&&void 0!==arguments[0]&&arguments[0];TA(p(N,{rotate:hA.rotate+90*(A?1:-1)}))}function xA(e){switch(e){case a.prev:NA(hA.activeIndex-1);break;case a.next:NA(hA.activeIndex+1);break;case a.zoomIn:var t=YA();LA(t.x,t.y,1,W);break;case a.zoomOut:var n=YA();LA(n.x,n.y,-1,W);break;case a.rotateLeft:pA();break;case a.rotateRight:pA(!0);break;case a.reset:mA(hA.activeIndex,!0);break;case a.scaleX:r=-1,TA(p(N,{scaleX:hA.scaleX*r}));break;case a.scaleY:!function(A){TA(p(N,{scaleY:hA.scaleY*A}))}(-1);break;case a.download:(i=QA()).downloadUrl&&(A.downloadInNewWindow?window.open(i.downloadUrl,"_blank"):location.href=i.downloadUrl)}var i,r}function jA(){var A=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e="addEventListener";A&&(e="removeEventListener"),Z||document[e]("keydown",CA,!0),BA.current&&BA.current[e]("wheel",zA,!1)}function CA(A){var e=!1;switch(A.keyCode||A.which||A.charCode){case 27:o(),e=!0;break;case 37:A.ctrlKey?xA(a.rotateLeft):xA(a.prev),e=!0;break;case 39:A.ctrlKey?xA(a.rotateRight):xA(a.next),e=!0;break;case 38:xA(a.zoomIn),e=!0;break;case 40:xA(a.zoomOut),e=!0;break;case 49:A.ctrlKey&&(mA(hA.activeIndex),e=!0)}e&&(A.preventDefault(),A.stopPropagation())}function zA(e){if(!nA&&!hA.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}LA(i,r,t,W)}}}function YA(){return{x:hA.left+hA.width/2,y:hA.top+hA.height/2}}function LA(e,t,n,i){var r=YA(),o=e-r.x,a=t-r.y,c=0,l=0,g=0,u=0,s=0,M=0;if(0===hA.width){var d=D(bA(hA.imageWidth,hA.imageHeight),2),f=d[0],w=d[1];l=(IA.current.width-f)/2,c=(IA.current.height-240-w)/2,g=hA.width+f,u=hA.height+w,s=M=1}else{var E=hA.scaleX>0?1:-1,I=hA.scaleY>0?1:-1;s=hA.scaleX+i*n*E,M=hA.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=hA.top+-n*a/hA.scaleX*i*E,l=hA.left+-n*o/hA.scaleY*i*I,g=hA.width,u=hA.height}TA(p(N,{width:g,scaleX:s,scaleY:M,height:u,top:c,left:l,loading:!1}))}n.useEffect((function(){return yA.current=!0,function(){yA.current=!1}}),[]),n.useEffect((function(){IA.current=EA()}),[A.container]),n.useEffect((function(){i&&yA.current&&TA(p(m,{visible:!0}))}),[i]),n.useEffect((function(){return jA(),function(){jA(!0)}})),n.useEffect((function(){return i?A.container||(document.body.style.overflow="hidden",document.body.scrollHeight>document.body.clientHeight&&(document.body.style.paddingRight="15px")):TA(p(Q,{})),function(){document.body.style.overflow="",document.body.style.paddingRight=""}}),[hA.visible]),n.useEffect((function(){i&&TA(p(b,{index:M}))}),[M,i,g]),n.useEffect((function(){hA.startLoading&&(DA.current=hA.activeIndex,mA(hA.activeIndex))}),[hA.startLoading,hA.activeIndex]);var kA="react-viewer",GA=l()("".concat(kA),"".concat(kA,"-transition"),(y(e={},"".concat(kA,"-inline"),A.container),y(e,A.className,A.className),e)),OA={opacity:i&&hA.visible?1:0,display:i||hA.visible?"block":"none"},SA={src:"",alt:""};return i&&hA.visible&&!hA.loading&&null!==hA.activeIndex&&!hA.startLoading&&(SA=QA()),n.createElement("div",{className:GA,style:OA,onTransitionEnd:function(){i||TA(p(m,{visible:!1}))},ref:BA},n.createElement("div",{className:"".concat(kA,"-mask"),style:{zIndex:w}}),A.noClose||n.createElement("img",{src:"/static/images/close.png",className:"".concat(kA,"-close"),onClick:function(){o()},style:{zIndex:w+10}}),n.createElement(s,{prefixCls:kA,imgSrc:hA.loadFailed&&A.defaultImg.src||SA.src,visible:i,width:hA.width,height:hA.height,top:hA.top,left:hA.left,rotate:hA.rotate,onChangeImgState:function(A,e,t,n){TA(p(N,{width:A,height:e,top:t,left:n}))},onResize:function(){if(IA.current=EA(),i){var A=(IA.current.width-hA.width)/2,e=(IA.current.height-hA.height-240)/2;TA(p(N,{left:A,top:e}))}},zIndex:w+5,scaleX:hA.scaleX,scaleY:hA.scaleY,loading:hA.loading,drag:v,container:A.container,onCanvasMouseDown:function(A){S(A)}}),A.noFooter||n.createElement("div",{className:"".concat(kA,"-footer"),style:{zIndex:w+5}},lA||n.createElement(B,{prefixCls:kA,onAction:function(A){if(xA(A.actionType),A.onClick){var e=QA();A.onClick(e)}},alt:SA.alt,width:hA.imageWidth,height:hA.imageHeight,attribute:j,zoomable:z,rotatable:L,scalable:G,changeable:J,downloadable:rA,noImgDetails:aA,toolbars:P(E),activeIndex:hA.activeIndex,count:g.length,showTotal:uA}),A.noNavbar||n.createElement(f,{prefixCls:kA,images:A.images,activeIndex:hA.activeIndex,onChangeImg:NA,navImgs:fA})))};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}}])})); | ||
*/!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,g="".concat(c," ").concat(l);t[c]=l+1;var u=a(g),s={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(o[u].references++,o[u].updater(s)):o.push({identifier:g,updater:w(s,e),references:1}),n.push(g)}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 g,u=(g=[],function(A,e){return g[A]=e,g.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=u(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 g=a(t[l]);0===o[g].references&&(o[g].updater(),o.splice(g,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),g=i(r,{hash:"?#iefix"}),u=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("+g+') format("embedded-opentype"), url('+u+') 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: 168px !important;\n height: 118px;\n opacity: 1;\n border-radius: 8px;\n}\n.react-viewer-list > li.active > img {\n width: 168px !important;\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+o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QEBAAsCAAQAAAgBA/8ADwAOAAAkAFwAAJRUnNxUhNRcHNRMRJyMRMxUhNTMRIwcRAQDAwAIAwMBAQMCA/oCAwEBAgKCggICgoIADQP8AgP5AQEABwIABAAABAAAAAAAAt6ePtV8PPPUACwQAAAAAANbnrYUAAAAA1uethQAA/8AEAAPAAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAQAAAEAAAAAAAAAAAAAAAAAAAAPBAAAAAAAAAAAAAAAAgAAAAQAAEAEAAB2BAAAAAQAAAAEAAAABAAAAAQAAAIEAAAABAAAIAQAAAAEAABAAAAAAAAKABQAHgBCAGgAvADeARQBMAGmAboBzgH2Ah4AAQAAAA8AVAADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},function(A,e){A.exports="data:font/woff;base64,d09GRgABAAAAAAi4AAsAAAAACGwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIHX2NtYXAAAAFoAAAAjAAAAIyoj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ZsLTY0IDEyOGgtMTkydi03MDRoMTI4di02NGgtMzg0djY0aDEyOHY3MDRoLTE5MmwtNjQtMTI4djI1NnoiIC8+DQo8Z2x5cGggdW5pY29kZT0iJiN4ZWE2MDsiIGdseXBoLW5hbWU9InNjYWxlWCIgZD0iTTI1NiA2NHYtMTI4bC0xOTIgMTYwIDE5MiAxNjB2LTEyOGg1MTJ2MTI4bDE5Mi0xNjAtMTkyLTE2MHYxMjh6TTgzMiA4OTZ2LTI1NmwtNjQgMTI4aC0xOTJ2LTQ0OGgxMjh2LTY0aC0zODR2NjRoMTI4djQ0OGgtMTkybC02NC0xMjh2MjU2eiIgLz4NCjwvZm9udD48L2RlZnM+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 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 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 s(A){var e=n.useRef(!1),t=n.useRef({x:0,y:0}),i=g(n.useState({x:0,y:0}),2),r=i[0],a=i[1];function c(e){A.onResize()}function u(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:u})),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),u(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,g=void 0===l?0:l,u=A.images,s=void 0===u?[]:u,d=A.navImgs;return Object(n.useEffect)((function(){if(s.length>d){var A=Math.floor(g/d);r(s.slice(A*d,A*d+d)),c(A)}else r(s)}),[g]),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(g-d)},src:"/static/images/left.png",style:{marginRight:36}}),t.map((function(e,t){return i.a.createElement("li",{key:t,className:t+a*d===g?"active":"",onClick:function(){var e;g!==(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(g+d)},src:"/static/images/right.png"})))}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,g=void 0===c?[]:c,u=A.activeIndex,M=void 0===u?0:u,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,gA=A.showTotal,uA=void 0===gA||gA,sA=A.minScale,MA=void 0===sA?.1:sA,dA=A.navImgs,fA=void 0===dA?5:dA,wA={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 EA(){var e=window.innerWidth,t=window.innerHeight;return A.container&&(e=A.container.offsetWidth,t=A.container.offsetHeight),{width:e,height:t}}var IA=n.useRef(EA());var BA=n.useRef(null),yA=n.useRef(!1),DA=n.useRef(0),vA=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}),wA),2),hA=vA[0],TA=vA[1];function mA(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];TA(p(N,{loading:!0,loadFailed:!1}));var n=null;g.length>0&&(n=g[e]);var i=!1,r=new Image;function o(i,r,o){if(e===DA.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(bA(a,c),2),g=l[0],u=l[1],s=(IA.current.width-g)/2,M=(IA.current.height-u-240)/2,d=$,f=$;V&&!t&&(d=hA.scaleX,f=hA.scaleY),TA(p(N,{width:g,height:u,left:s,top:M,imageWidth:i,imageHeight:r,loading:!1,rotate:0,scaleX:d,scaleY:f,loadFailed:!o,startLoading:!1}))}}r.onload=function(){yA.current&&(i||o(r.width,r.height,!0))},r.onerror=function(){yA.current&&(A.defaultImg?(TA(p(N,{loading:!1,loadFailed:!0,startLoading:!1})),o(A.defaultImg.width||.5*IA.current.width,A.defaultImg.height||.5*IA.current.height,!1)):TA(p(N,{loading:!1,loadFailed:!1,startLoading:!1})))},r.src=n.src,r.complete&&(i=!0,o(r.width,r.height,!0))}function bA(A,e){var t=0,n=0,i=.8*IA.current.width,r=.8*(IA.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 NA(e){if((eA||!(e>=g.length||e<0))&&(e>=g.length&&(e=0),e<0&&(e=g.length-1),e!==hA.activeIndex)){if(A.onChange){var t=QA(e);A.onChange(t,e)}TA(p(b,{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:hA.activeIndex,g.length>0&&t>=0&&(e=g[t]),e}function pA(){var A=arguments.length>0&&void 0!==arguments[0]&&arguments[0];TA(p(N,{rotate:hA.rotate+90*(A?1:-1)}))}function xA(e){switch(e){case a.prev:NA(hA.activeIndex-1);break;case a.next:NA(hA.activeIndex+1);break;case a.zoomIn:var t=YA();LA(t.x,t.y,1,W);break;case a.zoomOut:var n=YA();LA(n.x,n.y,-1,W);break;case a.rotateLeft:pA();break;case a.rotateRight:pA(!0);break;case a.reset:mA(hA.activeIndex,!0);break;case a.scaleX:r=-1,TA(p(N,{scaleX:hA.scaleX*r}));break;case a.scaleY:!function(A){TA(p(N,{scaleY:hA.scaleY*A}))}(-1);break;case a.download:(i=QA()).downloadUrl&&(A.downloadInNewWindow?window.open(i.downloadUrl,"_blank"):location.href=i.downloadUrl)}var i,r}function jA(){var A=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e="addEventListener";A&&(e="removeEventListener"),Z||document[e]("keydown",CA,!0),BA.current&&BA.current[e]("wheel",zA,!1)}function CA(A){var e=!1;switch(A.keyCode||A.which||A.charCode){case 27:o(),e=!0;break;case 37:A.ctrlKey?xA(a.rotateLeft):xA(a.prev),e=!0;break;case 39:A.ctrlKey?xA(a.rotateRight):xA(a.next),e=!0;break;case 38:xA(a.zoomIn),e=!0;break;case 40:xA(a.zoomOut),e=!0;break;case 49:A.ctrlKey&&(mA(hA.activeIndex),e=!0)}e&&(A.preventDefault(),A.stopPropagation())}function zA(e){if(!nA&&!hA.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}LA(i,r,t,W)}}}function YA(){return{x:hA.left+hA.width/2,y:hA.top+hA.height/2}}function LA(e,t,n,i){var r=YA(),o=e-r.x,a=t-r.y,c=0,l=0,g=0,u=0,s=0,M=0;if(0===hA.width){var d=D(bA(hA.imageWidth,hA.imageHeight),2),f=d[0],w=d[1];l=(IA.current.width-f)/2,c=(IA.current.height-240-w)/2,g=hA.width+f,u=hA.height+w,s=M=1}else{var E=hA.scaleX>0?1:-1,I=hA.scaleY>0?1:-1;s=hA.scaleX+i*n*E,M=hA.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=hA.top+-n*a/hA.scaleX*i*E,l=hA.left+-n*o/hA.scaleY*i*I,g=hA.width,u=hA.height}TA(p(N,{width:g,scaleX:s,scaleY:M,height:u,top:c,left:l,loading:!1}))}n.useEffect((function(){return yA.current=!0,function(){yA.current=!1}}),[]),n.useEffect((function(){IA.current=EA()}),[A.container]),n.useEffect((function(){i&&yA.current&&TA(p(m,{visible:!0}))}),[i]),n.useEffect((function(){return jA(),function(){jA(!0)}})),n.useEffect((function(){return i?A.container||(document.body.style.overflow="hidden",document.body.scrollHeight>document.body.clientHeight&&(document.body.style.paddingRight="15px")):TA(p(Q,{})),function(){document.body.style.overflow="",document.body.style.paddingRight=""}}),[hA.visible]),n.useEffect((function(){i&&TA(p(b,{index:M}))}),[M,i,g]),n.useEffect((function(){hA.startLoading&&(DA.current=hA.activeIndex,mA(hA.activeIndex))}),[hA.startLoading,hA.activeIndex]);var kA="react-viewer",GA=l()("".concat(kA),"".concat(kA,"-transition"),(y(e={},"".concat(kA,"-inline"),A.container),y(e,A.className,A.className),e)),OA={opacity:i&&hA.visible?1:0,display:i||hA.visible?"block":"none"},SA={src:"",alt:""};return i&&hA.visible&&!hA.loading&&null!==hA.activeIndex&&!hA.startLoading&&(SA=QA()),n.createElement("div",{className:GA,style:OA,onTransitionEnd:function(){i||TA(p(m,{visible:!1}))},ref:BA},n.createElement("div",{className:"".concat(kA,"-mask"),style:{zIndex:w}}),A.noClose||n.createElement("img",{src:"/static/images/close.png",className:"".concat(kA,"-close"),onClick:function(){o()},style:{zIndex:w+10}}),n.createElement(s,{prefixCls:kA,imgSrc:hA.loadFailed&&A.defaultImg.src||SA.src,visible:i,width:hA.width,height:hA.height,top:hA.top,left:hA.left,rotate:hA.rotate,onChangeImgState:function(A,e,t,n){TA(p(N,{width:A,height:e,top:t,left:n}))},onResize:function(){if(IA.current=EA(),i){var A=(IA.current.width-hA.width)/2,e=(IA.current.height-hA.height-240)/2;TA(p(N,{left:A,top:e}))}},zIndex:w+5,scaleX:hA.scaleX,scaleY:hA.scaleY,loading:hA.loading,drag:v,container:A.container,onCanvasMouseDown:function(A){S(A)}}),A.noFooter||n.createElement("div",{className:"".concat(kA,"-footer"),style:{zIndex:w+5}},lA||n.createElement(B,{prefixCls:kA,onAction:function(A){if(xA(A.actionType),A.onClick){var e=QA();A.onClick(e)}},alt:SA.alt,width:hA.imageWidth,height:hA.imageHeight,attribute:j,zoomable:z,rotatable:L,scalable:G,changeable:J,downloadable:rA,noImgDetails:aA,toolbars:P(E),activeIndex:hA.activeIndex,count:g.length,showTotal:uA}),A.noNavbar||n.createElement(f,{prefixCls:kA,images:A.images,activeIndex:hA.activeIndex,onChangeImg:NA,navImgs:fA})))};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}}])})); |
{ | ||
"name": "react-viewer-imgs", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
59982