Files
fad_oa/ruoyi-ui/public/file-viewer/assets/ImageViewer-DnZM9hve.js

1 line
45 KiB
JavaScript
Raw Normal View History

import{D as e,M as t,h as n}from"./package-Bop5TfAT.js";import{A as r,C as i,D as a,_ as o,a as s,b as c,f as l,h as u,r as d,s as f,t as p,v as m,w as h,x as g,y as _}from"./runtime-core.esm-bundler-DO-WTVbd.js";var v=t(e(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.Viewer=r())})(e,(function(){function e(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?i(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function s(e){var t=o(e,`string`);return typeof t==`symbol`?t:t+``}function c(e){"@babel/helpers - typeof";return c=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},c(e)}var l={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:``,container:`body`,filter:null,fullscreen:!0,inheritedAttributes:[`crossOrigin`,`decoding`,`isMap`,`loading`,`referrerPolicy`,`sizes`,`srcset`,`useMap`],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:`src`,ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},u=`<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>`,d=typeof window<`u`&&window.document!==void 0,f=d?window:{},p=d&&f.document.documentElement?`ontouchstart`in f.document.documentElement:!1,m=d?`PointerEvent`in f:!1,h=`viewer`,g=`move`,_=`switch`,v=`zoom`,y=`${h}-active`,ee=`${h}-close`,b=`${h}-fade`,x=`${h}-fixed`,te=`${h}-fullscreen`,ne=`${h}-fullscreen-exit`,S=`${h}-hide`,C=`${h}-hide-md-down`,re=`${h}-hide-sm-down`,ie=`${h}-hide-xs-down`,w=`${h}-in`,ae=`${h}-invisible`,T=`${h}-loading`,oe=`${h}-move`,se=`${h}-open`,E=`${h}-show`,D=`${h}-transition`,O=`click`,ce=`dblclick`,le=`dragstart`,ue=`focusin`,de=`keydown`,k=`load`,A=`error`,fe=p?`touchend touchcancel`:`mouseup`,pe=p?`touchmove`:`mousemove`,me=m?`pointerdown`:p?`touchstart`:`mousedown`,he=m?`pointermove`:pe,ge=m?`pointerup pointercancel`:fe,_e=`resize`,j=`transitionend`,ve=`wheel`,ye=`ready`,be=`show