ScopeSentry/static/assets/ImageCropping-xaMAE1nt.js

11 lines
39 KiB
JavaScript
Raw Normal View History

2024-06-17 14:41:04 +00:00
import{_ as t}from"./ContentWrap.vue_vue_type_script_setup_true_lang-CLuWlWlx.js";import{d as e,r as i,Y as a,a3 as n,aO as o,a as r,P as h,o as s,c,f as l,n as d,k as p,U as u,i as m,w as g,e as f,H as v,Z as w}from"./index-rxu9Faad.js";import"./el-card-C0XrHsE5.js";import"./el-tooltip-l0sNRNKZ.js";import"./el-popper-BJkW0SkV.js";
2024-06-11 13:57:44 +00:00
/*!
* Cropper.js v1.6.1
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2023-09-17T03:44:19.860Z
2024-06-16 15:27:55 +00:00
*/function b(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function y(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?b(Object(i),!0).forEach((function(e){C(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):b(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,k(a.key),a)}}function C(t,e,i){return(e=k(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function D(t){return function(t){if(Array.isArray(t))return B(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return B(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return B(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i<e;i++)a[i]=t[i];return a}function k(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var a=i.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var O="undefined"!=typeof window&&void 0!==window.document,E=O?window:{},T=!(!O||!E.document.documentElement)&&"ontouchstart"in E.document.documentElement,W=!!O&&"PointerEvent"in E,H="cropper",N="all",L="crop",z="move",R="zoom",Y="e",X="w",j="s",S="n",A="ne",P="nw",I="se",U="sw",_="".concat(H,"-crop"),q="".concat(H,"-disabled"),$="".concat(H,"-hidden"),Q="".concat(H,"-hide"),V="".concat(H,"-invisible"),Z="".concat(H,"-modal"),K="".concat(H,"-move"),G="".concat(H,"Action"),F="".concat(H,"Preview"),J="crop",tt="move",et="none",it="crop",at="cropend",nt="cropmove",ot="cropstart",rt="dblclick",ht=W?"pointerdown":T?"touchstart":"mousedown",st=W?"pointermove":T?"touchmove":"mousemove",ct=W?"pointerup pointercancel":T?"touchend touchcancel":"mouseup",lt="ready",dt="resize",pt="wheel",ut="zoom",mt="image/jpeg",gt=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,ft=/^data:/,vt=/^data:image\/jpeg;base64,/,wt=/^img|canvas$/i,bt={viewMode:0,dragMode:J,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},yt=Number.isNaN||E.isNaN;function xt(t){return"number"==typeof t&&!yt(t)}var Mt=function(t){return t>0&&t<1/0};function Ct(t){return void 0===t}function Dt(t){return"object"===x(t)&&null!==t}var Bt=Object.prototype.hasOwnProperty;function kt(t){if(!Dt(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&Bt.call(i,"isPrototypeOf")}catch(a){return!1}}function Ot(t){return"fu