!function(e){var i={};function t(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=e,t.c=i,t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,i){if(1&i&&(e=t(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var n in e)t.d(r,n,function(i){return e[i]}.bind(null,n));return r},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},t.p="",t(t.s=0)}([function(e,i,t){OCA.Mediaviewer||(OCA.Mediaviewer={}),OCA.Mediaviewer.app=t(1).default,$(document).ready(function(){const e=OCA.Mediaviewer.app,i=$("<div>",{id:e.name,html:"<div>"});if(!OCA.Files)return;let t=(t,r)=>{$("body").append(i),OCA.Mediaviewer.files=r.fileList.files,OC.addScript(e.name,e.name).then(()=>{OC.redirect(OC.joinPaths("#",e.name,t))})};e.config.mimetypes.forEach(i=>{let r={mime:i,name:e.name,permissions:OC.PERMISSION_READ,actionHandler:t};OCA.Files.fileActions.registerAction(r),OCA.Files.fileActions.setDefault(i,e.name)})})},function(e,i,t){"use strict";let r,n,o;t.r(i),r=t(2),n=t(3),o=_.filter(OC.appConfig.core.enabledPreviewProviders,e=>!e.search("image")),o=_.map(o,e=>e.replace(/\\/g,"")),n.mimetypes=n.mimetypes.concat(o),r.config=n,i.default=r},function(e){e.exports=JSON.parse('{"name":"files_mediaviewer","version":"1.0.1","description":"Viewer for pictures and videos integrated in the files app","dependencies":{"swiper":"^4.5.0","vue":"^2.6.10","vue-router":"^3.1.2","vuex":"^3.1.1"},"devDependencies":{"@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","babel-loader":"^8.0.6","css-loader":"^3.2.0","node-sass":"^4.12.0","sass-loader":"^7.3.1","style-loader":"^1.0.0","vue-loader":"^15.7.1","vue-template-compiler":"^2.6.10","webpack":"^4.39.2","webpack-cli":"^3.3.7"},"scripts":{"build":"webpack -p","watch":"webpack --watch"},"repository":{"type":"git","url":"git+https://github.com/owncloud/files_mediaviewer.git"},"keywords":["owncloud","media","gallery"],"author":"Felix Heidecke","license":"GPL-2.0","bugs":{"url":"https://github.com/owncloud/files_mediaviewer/issues"},"homepage":"https://github.com/owncloud/files_mediaviewer#readme"}')},function(e){e.exports=JSON.parse('{"swiper":{"speed":300,"effect":"slide"},"mimetypes":["video/mp4","video/ogg","video/webm"]}')}]);