pleroma/priv/static/static/js/48.d7e479b200a6c89c4958.js

3 lines
62 KiB
JavaScript
Raw Normal View History

2023-02-20 18:37:44 +01:00
/*! For license information please see 48.d7e479b200a6c89c4958.js.LICENSE.txt */
(self.webpackChunkpleroma_fe=self.webpackChunkpleroma_fe||[]).push([[48],{99990:(t,e,i)=>{"use strict";i.d(e,{Z:()=>o});var n=i(66252),r=i(92592);const a="ready";var o=(0,n.aZ)({name:"VueQrcode",props:{value:{type:String,default:void 0},options:{type:Object,default:void 0},tag:{type:String,default:"canvas"}},emits:[a],watch:{$props:{deep:!0,immediate:!0,handler(){this.$el&&this.generate()}}},mounted(){this.generate()},methods:{generate(){const t=this.options||{},e=String(this.value),i=()=>{this.$emit(a,this.$el)};switch(this.tag){case"canvas":(0,r.rT)(this.$el,e,t,(t=>{if(t)throw t;i()}));break;case"img":(0,r.hz)(e,t,((t,e)=>{if(t)throw t;this.$el.src=e,this.$el.onload=i}));break;case"svg":(0,r.toString)(e,t,((t,e)=>{if(t)throw t;const n=document.createElement("div");n.innerHTML=e;const r=n.querySelector("svg");if(r){const{attributes:t,childNodes:e}=r;Object.keys(t).forEach((e=>{const i=t[Number(e)];this.$el.setAttribute(i.name,i.value)})),Object.keys(e).forEach((t=>{const i=e[Number(t)];this.$el.appendChild(i.cloneNode(!0))})),i()}}))}}},render(){return(0,n.h)(this.tag,this.$slots.default)}})},33129:function(t){t.exports=function(){"use strict";function t(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function e(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?t(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(t){return i="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},i(t)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t){return function(t){if(Array.isArray(t))return s(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){if("string"==typeof t)return s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(t,e):void 0}}(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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var h="undefined"!=typeof window&&void 0!==window.document,c=h?window:{},l=!(!h||!c.document.documentElement)&&"ontouchstart"in c.document.documentElement,d=!!h&&"PointerEvent"in c,u="cropper",p="all",g="crop",f="move",m="zoom",v="e",w="w",y="s",b="n",x="ne",M="nw",C="se",E="sw",B="".concat(u,"-crop"),T="".concat(u,"-disabled"),D="".concat(u,"-hidden"),A="".concat(u,"-hide"),N="".concat(u,"-invisible"),k="".concat(u,"-modal"),R="".concat(u,"-move"),I="".concat(u,"Action"),L="".concat(u,"Preview"),P="crop",S="move",O="none",H="crop",z="cropend",Y="cropmove",U="cropstart",W="dblclick",j=d?"pointerdown":l?"touchstart":"mousedown",X=d?"pointermove":l?"touchmove":"mousemove",F=d?"pointerup pointercancel":l?"touchend touchcancel":"mouseup",K="ready",q="resize",$="wheel",_="zoom",J="image/jpeg",Q=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,V=/^data:/,Z=/^data:image\/jpeg;base64,/,G=/^img|canvas$/i,tt={viewMode:0,dragMode:P,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",respo
//# sourceMappingURL=48.d7e479b200a6c89c4958.js.map