(()=>{var e={83(e,i,t){"use strict";let r,o,s;t.d(i,{A:()=>a}),r=t(330),o=t(219),s=_.filter(OC.appConfig.core.enabledPreviewProviders,e=>!e.search("image")),s=_.map(s,e=>e.replace(/\\/g,"")),o.mimetypes=o.mimetypes.concat(s),r.config=o;const a=r},219(e){"use strict";e.exports=JSON.parse('{"swiper":{"speed":300,"effect":"slide"},"mimetypes":["video/mp4","video/ogg","video/webm","video/quicktime"]}')},330(e){"use strict";e.exports=JSON.parse('{"name":"files_mediaviewer","version":"1.0.1","description":"Viewer for pictures and videos integrated in the files app","dependencies":{"@types/moment-duration-format":"^2.2.7","easygettext":"^2.17.0","moment-duration-format":"^2.3.2","svelte":"^3.x","swiper":"^12.1.2","vue":"^2.7.16","vue-router":"^3.6.5","vuex":"^3.6.2"},"devDependencies":{"@babel/core":"^7.28.5","@babel/preset-env":"^7.28.5","babel-loader":"^8.2.5","css-loader":"^6.11.0","sass":"^1.94.1","sass-loader":"^12.1.0","style-loader":"^3.3.4","vue-loader":"^15.11.1","vue-template-compiler":"^2.7.16","webpack":"^5.104.1","webpack-cli":"^4.10.0"},"scripts":{"build":"webpack --progress --mode=production","watch":"webpack --watch --mode=development"},"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"}')}},i={};function r(t){var o=i[t];if(void 0!==o)return o.exports;var s=i[t]={exports:{}};return e[t](s,s.exports,r),s.exports}r.d=(e,i)=>{for(var t in i)r.o(i,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:i[t]})},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),OCA.Mediaviewer||(OCA.Mediaviewer={}),OCA.Mediaviewer.app=r(83).A,$(document).ready(function(){const e=OCA.Mediaviewer.app,i=$("<div>",{id:e.name,html:"<div>"});if(!OCA.Files)return;let r=(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=>{if(!(0!==i.search("video")||document.createElement("video").canPlayType&&document.createElement("video").canPlayType(i)))return;let o={mime:i,name:e.name,permissions:OC.PERMISSION_READ,displayName:t("files_mediaviewer","Open in Media Viewer"),iconClass:"icon-toggle",actionHandler:r};OCA.Files.fileActions&&(OCA.Files.fileActions.registerAction(o),OCA.Files.fileActions.setDefault(i,e.name))})})})();