Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-04-16 18:58:14 +0300
committerJulius Härtl <jus@bitgrid.net>2021-04-16 18:58:14 +0300
commit29c6ec26ba612ee219fdf69fa3c9996c9620c1e7 (patch)
treecaaebed61bd8da8c45e508d18944280ad2528905 /js/viewer.js
parent65e77e14366ba4a6ec4dd8b5e60b150e85e98f2b (diff)
Bump all minor dependency updates
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'js/viewer.js')
-rw-r--r--js/viewer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/viewer.js b/js/viewer.js
index 52c73fba1..245f06279 100644
--- a/js/viewer.js
+++ b/js/viewer.js
@@ -1,4 +1,4 @@
-!function(e){function t(t){for(var i,n,h=t[0],r=t[1],c=0,l=[];c<h.length;c++)n=h[c],Object.prototype.hasOwnProperty.call(a,n)&&a[n]&&l.push(a[n][0]),a[n]=0;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);for(o&&o(t);l.length;)l.shift()()}var i={},a={204:0};function n(t){if(i[t])return i[t].exports;var a=i[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.e=function(e){var t=[],i=a[e];if(0!==i)if(i)t.push(i[2]);else{var h=new Promise((function(t,n){i=a[e]=[t,n]}));t.push(i[2]=h);var r,c=document.createElement("script");c.charset="utf-8",c.timeout=120,n.nc&&c.setAttribute("nonce",n.nc),c.src=function(e){return n.p+""+({0:"vendors~editor-collab~editor-guest~editor-rich~files-modal",1:"highlight/1c",2:"highlight/abnf",3:"highlight/accesslog",4:"highlight/actionscript",5:"highlight/ada",6:"highlight/angelscript",7:"highlight/apache",8:"highlight/applescript",9:"highlight/arcade",10:"highlight/arduino",11:"highlight/armasm",12:"highlight/asciidoc",13:"highlight/aspectj",14:"highlight/autohotkey",15:"highlight/autoit",16:"highlight/avrasm",17:"highlight/awk",18:"highlight/axapta",19:"highlight/bash",20:"highlight/basic",21:"highlight/bnf",22:"highlight/brainfuck",23:"highlight/c",24:"highlight/c-like",25:"highlight/cal",26:"highlight/capnproto",27:"highlight/ceylon",28:"highlight/clean",29:"highlight/clojure",30:"highlight/clojure-repl",31:"highlight/cmake",32:"highlight/coffeescript",33:"highlight/coq",34:"highlight/cos",35:"highlight/cpp",36:"highlight/crmsh",37:"highlight/crystal",38:"highlight/csharp",39:"highlight/csp",40:"highlight/css",41:"highlight/d",42:"highlight/dart",43:"highlight/delphi",44:"highlight/diff",45:"highlight/django",46:"highlight/dns",47:"highlight/dockerfile",48:"highlight/dos",49:"highlight/dsconfig",50:"highlight/dts",51:"highlight/dust",52:"highlight/ebnf",53:"highlight/elixir",54:"highlight/elm",55:"highlight/erb",56:"highlight/erlang",57:"highlight/erlang-repl",58:"highlight/excel",59:"highlight/fix",60:"highlight/flix",61:"highlight/fortran",62:"highlight/fsharp",63:"highlight/gams",64:"highlight/gauss",65:"highlight/gcode",66:"highlight/gherkin",67:"highlight/glsl",68:"highlight/gml",69:"highlight/go",70:"highlight/golo",71:"highlight/gradle",72:"highlight/groovy",73:"highlight/haml",74:"highlight/handlebars",75:"highlight/haskell",76:"highlight/haxe",77:"highlight/hsp",78:"highlight/htmlbars",79:"highlight/http",80:"highlight/hy",81:"highlight/inform7",82:"highlight/ini",83:"highlight/irpf90",84:"highlight/isbl",85:"highlight/java",86:"highlight/javascript",87:"highlight/jboss-cli",88:"highlight/json",89:"highlight/julia",90:"highlight/julia-repl",91:"highlight/kotlin",92:"highlight/lasso",93:"highlight/latex",94:"highlight/ldif",95:"highlight/leaf",96:"highlight/less",97:"highlight/lisp",98:"highlight/livecodeserver",99:"highlight/livescript",100:"highlight/llvm",101:"highlight/lsl",102:"highlight/lua",103:"highlight/makefile",104:"highlight/markdown",105:"highlight/mathematica",106:"highlight/matlab",107:"highlight/maxima",108:"highlight/mel",109:"highlight/mercury",110:"highlight/mipsasm",111:"highlight/mizar",112:"highlight/mojolicious",113:"highlight/monkey",114:"highlight/moonscript",115:"highlight/n1ql",116:"highlight/nginx",117:"highlight/nim",118:"highlight/nix",119:"highlight/node-repl",120:"highlight/nsis",121:"highlight/objectivec",122:"highlight/ocaml",123:"highlight/openscad",124:"highlight/oxygene",125:"highlight/parser3",126:"highlight/perl",127:"highlight/pf",128:"highlight/pgsql",129:"highlight/php",130:"highlight/php-template",131:"highlight/plaintext",132:"highlight/pony",133:"highlight/powershell",134:"highlight/processing",135:"highlight/profile",136:"highlight/prolog",137:"highlight/properties",138:"highlight/protobuf",139:"highlight/puppet",140:"highlight/purebasic",141:"highlight/python",142:"highlight/python-repl",143:"highlight/q",144:"highlight/qml",145:"highlight/r",146:"highlight/reasonml",147:"highlight/rib",148:"highlight/roboconf",149:"highlight/routeros",150:"highlight/rsl",151:"highlight/ruby",152:"highlight/ruleslanguage",153:"highlight/rust",154:"highlight/sas",155:"highlight/scala",156:"highlight/scheme",157:"highlight/scilab",158:"highlight/scss",159:"highlight/shell",160:"highlight/smali",161:"highlight/smalltalk",162:"highlight/sml",163:"highlight/sqf",164:"highlight/sql",165:"highlight/stan",166:"highlight/stata",167:"highlight/step21",168:"highlight/stylus",169:"highlight/subunit",170:"highlight/swift",171:"highlight/taggerscript",172:"highlight/tap",173:"highlight/tcl",174:"highlight/thrift",175:"highlight/tp",176:"highlight/twig",177:"highlight/typescript",178:"highlight/vala",179:"highlight/vbnet",180:"highlight/vbscript",181:"highlight/vbscript-html",182:"highlight/verilog",183:"highlight/vhdl",184:"highlight/vim",185:"highlight/x86asm",186:"highlight/xl",187:"highlight/xml",188:"highlight/xquery",189:"highlight/yaml",190:"highlight/zephir",191:"vendors~editor-collab~editor-guest",192:"vendors~editor~files-modal",193:"editor",194:"editor-collab",195:"editor-guest",196:"editor-rich",198:"files-modal",201:"vendors~editor",202:"vendors~editor-rich",203:"vendors~files-modal"}[e]||e)+".js?v="+{0:"69d8df3344a35797822a",1:"e66c8cdc6612bf2a9a5c",2:"b9119df6ab89bbda7875",3:"0beb03cb0e924345aa9e",4:"1c2708a2a309cebaff75",5:"432c54ead16032de4735",6:"39176e67774923f44140",7:"ac3fb12ecee1fdbbb76c",8:"87db0dbe47adf20518a2",9:"6dcbde0219a80011b318",10:"62b6f9248787017d7b50",11:"e04acdbac0cebb682e7a",12:"dea775cf26be5a5319d0",13:"b53815fc11314c658888",14:"fb9cf8a88c98f2519975",15:"2d887f2ab4969f6989c6",16:"80497215b9bfd60711fd",17:"17060588f634a81acc5e",18:"39b7914dbb6341b642bc",19:"8d53f943fd7e94e1b678",20:"96c8ae616e08159869c8",21:"060b299e0035f2868c27",22:"8d0e8686fe124295039c",23:"e4d86849f1ff037e739d",24:"4b82e796295f8309dbc9",25:"44b0e584487b12fd1b3c",26:"724dff1dbe01c9cde7d9",27:"db34865281f9bb6241f3",28:"00911511fbc649dcea22",29:"4562ffbce1f525bd1c45",30:"6a49fb9ffffbdc501e1a",31:"d8b7f693070e4502380e",32:"df77e89e63a39d9845c3",33:"92b9ad2235fee61b4767",34:"efea96eb685efcac5759",35:"7fc7231055efcc062666",36:"e6e962fe014785866537",37:"1270a58d45a09a57f873",38:"296b244f40ee6dad5f2a",39:"384cf2bc7d0baacfe91b",40:"75bf9e2d804a2f186016",41:"c286669881fc98daf0ba",42:"8337bef9388558436823",43:"d22c1c37c3ff0947b9a8",44:"acbe0bab9ab76d0f8506",45:"fe1284a079f4008212e1",46:"7dd5b7d5eeea2a1e9da4",47:"0f7d601171de336c2815",48:"007bcb5a0d2ca28d516b",49:"416764b8c61fc9d20b01",50:"cea0255705a3f88d63bf",51:"372ac14c26d4e6ba7f21",52:"d8ec6cfa1c90f4a87d2a",53:"ad91e15071affcd27b32",54:"eeaae9eae35fc7d2117d",55:"d736c8da012463917bac",56:"7c059289511952d34377",57:"9e13e20724ef6298ce11",58:"a4c3cd8b3d376dde506e",59:"a1987340708ebbcee3d4",60:"967d1bbf369a3ea76dcd",61:"ce25a03c744c75b4f6bd",62:"e60e8c90b3c3e2600286",63:"bef3743dec9433e78825",64:"d52928051a1c5439b23e",65:"a3a5ac08c36b943a5f22",66:"5a6b2ae032af6961a045",67:"a118f8ac9bf07ae83e64",68:"bae06a62a6bbf92efa26",69:"c2d8994146b2428beaaf",70:"19ce1de0af4989f6a0be",71:"97219276d4fb2d05a95c",72:"4c20e1fa8e37aeabc333",73:"4536266dfc3ca2c1a9e3",74:"80754807b77d24af825f",75:"996a39184d8b0545ba31",76:"8ba0ee79d49d6f336789",77:"add285ccbd02cde99d0b",78:"255e2008a5f9a55f16bf",79:"bdaef75b7d649b8cb9e8",80:"d92862fe9a188775c6ad",81:"e6a3f6f7fe7968ff65b1",82:"57819a679e3ff8c693fa",83:"6d75f584c3c1716f3888",84:"0b3057df97e075360fea",85:"0467de1ed6479a26cb46",86:"77526655675e5f24057c",87:"58b50874f1c3b3026560",88:"71affdfb4c852d97b288",89:"229b013ace5e3df8755d",90:"d6622eb1952797edbb2b",91:"9e29c2b6d82f023220a8",92:"e22c165d2d59ae8cd9c0",93:"652b7391d888ee1e4550",94:"3617916e569ee9adf2b2",95:"15bd7928af064652b93a",96:"462de208b3374f022432",97:"c9b4d2d89e98c5ec01b0",98:"88d10e307a5bc18b87f6",99:"2acb5251bafc229cde4b",100:"3e2ceb80593224e8c949",101:"e651df3fe417c83468e2",102:"194c44ca5c08e64fe572",103:"c7ada5f929f756cf7bcd",104:"4ac7676920734b11b627",105:"6ffd3098d260a5c3a993",106:"a4f1d8c7e134379a6ced",107:"1b3b5d8afb7ad892d9e1",108:"3e482247f3ae4a423a47",109:"9c82baa4d1fff1573791",110:"d1bf5392eeb59650743b",111:"dbc3a76086cacc6bd7eb",112:"e46d0baba0c6b27d1e30",113:"5475fcd9691225c704e9",114:"8d5c374e08ee447ac2f1",115:"3097e3783d05e9a35718",116:"7c68a7b09ecaa83eff7b",117:"5f6d409abbd39dbd8e92",118:"94dcf38760f760efb00e",119:"30d3a0dbcc281f6a690e",120:"acda8fb8213990bc9848",121:"79abbd4dae9f211e9bf0",122:"167c27f61ab490523d24",123:"4809055a6bfe86027f6e",124:"d27d34a79aa373032417",125:"b7f095393e06c9ca51b0",126:"fd67423f0906c5bb21e8",127:"2ccda489ecf64272860b",128:"7a9b4bb4d4ae00f28f6b",129:"bdae0d0d2e577d9bfa1c",130:"1661d98032b19a8fe818",131:"18ed69487dc45bdfbd2e",132:"b9c0a6d5905b631e1395",133:"1556f4ee36b598f00d98",134:"52ddc1e8a4f440a1f1d6",135:"5d2bc74f04e90461272c",136:"55bd26046b9a6d006fa5",137:"c267a424e9df09690c09",138:"ae0b56c2daa57f1c0b10",139:"498a27450794980dc73f",140:"bd483a5fb2b5eec567f9",141:"a4f9f974e61ddc229dcf",142:"13552c007a072e64ac63",143:"608a8e9519051cddef23",144:"8f32a1bb33f7949c3a25",145:"f82145465343ce377560",146:"843c299daf1cb7c87b8c",147:"7da694a3b0a543905f8d",148:"ad2cf8c410ed9b4f461b",149:"103b15f4098097e2d4c1",150:"a4f91176a08a89b19fff",151:"6664f92424d0159d1daa",152:"699145f5c8aaad4299b9",153:"e26f1fa8fa1fb1f6611c",154:"820a123f76ae53e370ad",155:"cd1fc5e5f20574a50dfa",156:"6f39e7bdf9164ae174bc",157:"b1172c1399724fddd234",158:"38c342aa8d262c4bf623",159:"bde723904665ac1b926e",160:"edc8ad5800db949593e6",161:"6fdf2b9066f67ddad5f2",162:"8cde7e3bbc5e8c4963c6",163:"c2c6889154f0848f827c",164:"666b825685bae8655e6b",165:"148f82f93d8c1a4b426e",166:"d757bea8a8640d16e0a9",167:"40215f18ebc51f8fbd7f",168:"50f6e35da82b66585744",169:"6c96f998466d2483bbe7",170:"46055df9f52e33c86567",171:"3a3c8dac0f6ed45fc530",172:"dbba0b438ebd9c40a2e9",173:"cccd7ddb73928571f7d3",174:"6e87f8e3b3db22b2f628",175:"2b019b195f223b2bd742",176:"e78d4c33e14bfb54024d",177:"41246ba9a6de1de69c31",178:"d49d957645fc52a1878e",179:"261deeb0a265430c9d43",180:"e63ed2682e93aa93b106",181:"3a0d54aaf0a915732e96",182:"128bf0eccb7ecc3a9b7b",183:"b8f54d94a13ea07fbd44",184:"15dbbab350350a6d65ca",185:"d228389c3563cadc7363",186:"dd76f53caa053a38e235",187:"729619c3e38db95ec342",188:"17923164e0616c99c550",189:"61bb75e1172d5ef37e89",190:"4cbf3eafbf57ebfd432b",191:"68c35fd480a72d119333",192:"cb4cf1ab68cfae30ad24",193:"8da39b1af04a86a06dc2",194:"dab8088d81801f19ba24",195:"6e8b5a7679f7bb9bc2d0",196:"5dd89e3450633a765813",198:"80b32436aaeb31d7ad0f",201:"85ab5100dc53211e2f3d",202:"b2c52b1fe6abc0d4dded",203:"22f4021876ecddad87c8"}[e]}(e);var o=new Error;r=function(t){c.onerror=c.onload=null,clearTimeout(l);var i=a[e];if(0!==i){if(i){var n=t&&("load"===t.type?"missing":t.type),h=t&&t.target&&t.target.src;o.message="Loading chunk "+e+" failed.\n("+n+": "+h+")",o.name="ChunkLoadError",o.type=n,o.request=h,i[1](o)}a[e]=void 0}};var l=setTimeout((function(){r({type:"timeout",target:c})}),12e4);c.onerror=c.onload=r,document.head.appendChild(c)}return Promise.all(t)},n.m=e,n.c=i,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/js/",n.oe=function(e){throw console.error(e),e};var h=window.textWebpackJsonp=window.textWebpackJsonp||[],r=h.push.bind(h);h.push=t,h=h.slice();for(var c=0;c<h.length;c++)t(h[c]);var o=r;n(n.s=199)}({126:function(e,t,i){"use strict";i.r(t);var a=i(127),n=i.n(a);for(var h in a)["default"].indexOf(h)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(h);t.default=n.a},127:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={name:"ViewerComponent",components:{EditorWrapper:function(){return Promise.all([i.e(192),i.e(201),i.e(193)]).then(i.bind(null,142))}},props:{filename:{type:String,default:null},fileid:{type:Number,default:null},active:{type:Boolean,default:!1},shareToken:{type:String,default:null},mime:{type:String,default:null}},beforeMount:function(){void 0!==this.$parent.$parent&&this.$parent.$parent.onResize&&window.removeEventListener("resize",this.$parent.$parent.onResize)}};t.default=a},190:function(e,t,i){"use strict";var a=i(46),n=i.n(a),h=i(47),r=i.n(h)()(n.a);r.push([e.i,"\n#editor-container {\n\theight: calc(100% - 50px);\n\ttop: 50px;\n}\n","",{version:3,sources:["webpack://./src/components/ViewerComponent.vue"],names:[],mappings:";AAmEA;CACA,yBAAA;CACA,SAAA;AACA",sourcesContent:['\x3c!--\n - @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n -\n - @author Julius Härtl <jus@bitgrid.net>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n --\x3e\n\n<template>\n\t<EditorWrapper :file-id="fileid"\n\t\t:relative-path="filename"\n\t\t:active="active"\n\t\t:share-token="shareToken"\n\t\t:mime="mime" />\n</template>\n\n<script>\nexport default {\n\tname: \'ViewerComponent\',\n\tcomponents: {\n\t\tEditorWrapper: () => import(/* webpackChunkName: "editor" */\'./EditorWrapper\'),\n\t},\n\tprops: {\n\t\tfilename: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\tfileid: {\n\t\t\ttype: Number,\n\t\t\tdefault: null,\n\t\t},\n\t\tactive: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\tshareToken: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\tmime: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\tbeforeMount() {\n\t\t// FIXME Dirty fix to avoid recreating the component on stable16\n\t\tif (typeof this.$parent.$parent !== \'undefined\' && this.$parent.$parent.onResize) {\n\t\t\twindow.removeEventListener(\'resize\', this.$parent.$parent.onResize)\n\t\t}\n\t},\n}\n<\/script>\n<style>\n#editor-container {\n\theight: calc(100% - 50px);\n\ttop: 50px;\n}\n</style>\n'],sourceRoot:""}]),t.a=r},192:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return n}));var a=function(){var e=this.$createElement;return(this._self._c||e)("EditorWrapper",{attrs:{"file-id":this.fileid,"relative-path":this.filename,active:this.active,"share-token":this.shareToken,mime:this.mime}})},n=[]},199:function(e,t,i){"use strict";var a,n=(a=i(200))&&a.__esModule?a:{default:a},h=i(75);function r(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return c(e,t)}(e)||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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}i.nc=btoa(OC.requestToken),i.p=OC.linkTo("text","js/"),document.addEventListener("DOMContentLoaded",(function(){void 0!==OCA.Viewer?OCA.Viewer.registerHandler({id:"text",mimes:[].concat(r(h.openMimetypesMarkdown),r(h.openMimetypesPlainText)),component:n.default,group:null}):console.error("Viewer app is not installed")}))},200:function(e,t,i){"use strict";i.r(t);var a=i(192),n=i(126);for(var h in n)["default"].indexOf(h)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(h);i(201);var r=i(32),c=Object(r.a)(n.default,a.a,a.b,!1,null,null,null);t.default=c.exports},201:function(e,t,i){"use strict";var a=i(45),n=i.n(a),h=i(190),r={insert:"head",singleton:!1};n()(h.a,r),h.a.locals},32:function(e,t,i){"use strict";function a(e,t,i,a,n,h,r,c){var o,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),a&&(l.functional=!0),h&&(l._scopeId="data-v-"+h),r?(o=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=o):n&&(o=c?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),o)if(l.functional){l._injectStyles=o;var f=l.render;l.render=function(e,t){return o.call(t),f(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,o):[o]}return{exports:e,options:l}}i.d(t,"a",(function(){return a}))},45:function(e,t,i){"use strict";var a,n=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},h=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),r=[];function c(e){for(var t=-1,i=0;i<r.length;i++)if(r[i].identifier===e){t=i;break}return t}function o(e,t){for(var i={},a=[],n=0;n<e.length;n++){var h=e[n],o=t.base?h[0]+t.base:h[0],l=i[o]||0,f="".concat(o," ").concat(l);i[o]=l+1;var d=c(f),g={css:h[1],media:h[2],sourceMap:h[3]};-1!==d?(r[d].references++,r[d].updater(g)):r.push({identifier:f,updater:p(g,t),references:1}),a.push(f)}return a}function l(e){var t=document.createElement("style"),a=e.attributes||{};if(void 0===a.nonce){var n=i.nc;n&&(a.nonce=n)}if(Object.keys(a).forEach((function(e){t.setAttribute(e,a[e])})),"function"==typeof e.insert)e.insert(t);else{var r=h(e.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}return t}var f,d=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function g(e,t,i,a){var n=i?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(e.styleSheet)e.styleSheet.cssText=d(t,n);else{var h=document.createTextNode(n),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(h,r[t]):e.appendChild(h)}}function s(e,t,i){var a=i.css,n=i.media,h=i.sourceMap;if(n?e.setAttribute("media",n):e.removeAttribute("media"),h&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(h))))," */")),e.styleSheet)e.styleSheet.cssText=a;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(a))}}var b=null,u=0;function p(e,t){var i,a,n;if(t.singleton){var h=u++;i=b||(b=l(t)),a=g.bind(null,i,h,!1),n=g.bind(null,i,h,!0)}else i=l(t),a=s.bind(null,i,t),n=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return a(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;a(e=t)}else n()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=n());var i=o(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var a=0;a<i.length;a++){var n=c(i[a]);r[n].references--}for(var h=o(e,t),l=0;l<i.length;l++){var f=c(i[l]);0===r[f].references&&(r[f].updater(),r.splice(f,1))}i=h}}}},46:function(e,t,i){"use strict";function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var i=[],a=!0,n=!1,h=void 0;try{for(var r,c=e[Symbol.iterator]();!(a=(r=c.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){n=!0,h=e}finally{try{a||null==c.return||c.return()}finally{if(n)throw h}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}e.exports=function(e){var t=a(e,4),i=t[1],n=t[3];if("function"==typeof btoa){var h=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(h),c="/*# ".concat(r," */"),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[i].concat(o).concat([c]).join("\n")}return[i].join("\n")}},47:function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=e(t);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,a){"string"==typeof e&&(e=[[null,e,""]]);var n={};if(a)for(var h=0;h<this.length;h++){var r=this[h][0];null!=r&&(n[r]=!0)}for(var c=0;c<e.length;c++){var o=[].concat(e[c]);a&&n[o[0]]||(i&&(o[2]?o[2]="".concat(i," and ").concat(o[2]):o[2]=i),t.push(o))}},t}},75:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openMimetypesPlainText=t.openMimetypesMarkdown=t.openMimetypes=void 0;
+!function(e){function t(t){for(var i,n,h=t[0],r=t[1],c=0,l=[];c<h.length;c++)n=h[c],Object.prototype.hasOwnProperty.call(a,n)&&a[n]&&l.push(a[n][0]),a[n]=0;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);for(o&&o(t);l.length;)l.shift()()}var i={},a={205:0};function n(t){if(i[t])return i[t].exports;var a=i[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.e=function(e){var t=[],i=a[e];if(0!==i)if(i)t.push(i[2]);else{var h=new Promise((function(t,n){i=a[e]=[t,n]}));t.push(i[2]=h);var r,c=document.createElement("script");c.charset="utf-8",c.timeout=120,n.nc&&c.setAttribute("nonce",n.nc),c.src=function(e){return n.p+""+({0:"vendors~editor-collab~editor-guest~editor-rich~files-modal",1:"highlight/1c",2:"highlight/abnf",3:"highlight/accesslog",4:"highlight/actionscript",5:"highlight/ada",6:"highlight/angelscript",7:"highlight/apache",8:"highlight/applescript",9:"highlight/arcade",10:"highlight/arduino",11:"highlight/armasm",12:"highlight/asciidoc",13:"highlight/aspectj",14:"highlight/autohotkey",15:"highlight/autoit",16:"highlight/avrasm",17:"highlight/awk",18:"highlight/axapta",19:"highlight/bash",20:"highlight/basic",21:"highlight/bnf",22:"highlight/brainfuck",23:"highlight/c",24:"highlight/c-like",25:"highlight/cal",26:"highlight/capnproto",27:"highlight/ceylon",28:"highlight/clean",29:"highlight/clojure",30:"highlight/clojure-repl",31:"highlight/cmake",32:"highlight/coffeescript",33:"highlight/coq",34:"highlight/cos",35:"highlight/cpp",36:"highlight/crmsh",37:"highlight/crystal",38:"highlight/csharp",39:"highlight/csp",40:"highlight/css",41:"highlight/d",42:"highlight/dart",43:"highlight/delphi",44:"highlight/diff",45:"highlight/django",46:"highlight/dns",47:"highlight/dockerfile",48:"highlight/dos",49:"highlight/dsconfig",50:"highlight/dts",51:"highlight/dust",52:"highlight/ebnf",53:"highlight/elixir",54:"highlight/elm",55:"highlight/erb",56:"highlight/erlang",57:"highlight/erlang-repl",58:"highlight/excel",59:"highlight/fix",60:"highlight/flix",61:"highlight/fortran",62:"highlight/fsharp",63:"highlight/gams",64:"highlight/gauss",65:"highlight/gcode",66:"highlight/gherkin",67:"highlight/glsl",68:"highlight/gml",69:"highlight/go",70:"highlight/golo",71:"highlight/gradle",72:"highlight/groovy",73:"highlight/haml",74:"highlight/handlebars",75:"highlight/haskell",76:"highlight/haxe",77:"highlight/hsp",78:"highlight/htmlbars",79:"highlight/http",80:"highlight/hy",81:"highlight/inform7",82:"highlight/ini",83:"highlight/irpf90",84:"highlight/isbl",85:"highlight/java",86:"highlight/javascript",87:"highlight/jboss-cli",88:"highlight/json",89:"highlight/julia",90:"highlight/julia-repl",91:"highlight/kotlin",92:"highlight/lasso",93:"highlight/latex",94:"highlight/ldif",95:"highlight/leaf",96:"highlight/less",97:"highlight/lisp",98:"highlight/livecodeserver",99:"highlight/livescript",100:"highlight/llvm",101:"highlight/lsl",102:"highlight/lua",103:"highlight/makefile",104:"highlight/markdown",105:"highlight/mathematica",106:"highlight/matlab",107:"highlight/maxima",108:"highlight/mel",109:"highlight/mercury",110:"highlight/mipsasm",111:"highlight/mizar",112:"highlight/mojolicious",113:"highlight/monkey",114:"highlight/moonscript",115:"highlight/n1ql",116:"highlight/nginx",117:"highlight/nim",118:"highlight/nix",119:"highlight/node-repl",120:"highlight/nsis",121:"highlight/objectivec",122:"highlight/ocaml",123:"highlight/openscad",124:"highlight/oxygene",125:"highlight/parser3",126:"highlight/perl",127:"highlight/pf",128:"highlight/pgsql",129:"highlight/php",130:"highlight/php-template",131:"highlight/plaintext",132:"highlight/pony",133:"highlight/powershell",134:"highlight/processing",135:"highlight/profile",136:"highlight/prolog",137:"highlight/properties",138:"highlight/protobuf",139:"highlight/puppet",140:"highlight/purebasic",141:"highlight/python",142:"highlight/python-repl",143:"highlight/q",144:"highlight/qml",145:"highlight/r",146:"highlight/reasonml",147:"highlight/rib",148:"highlight/roboconf",149:"highlight/routeros",150:"highlight/rsl",151:"highlight/ruby",152:"highlight/ruleslanguage",153:"highlight/rust",154:"highlight/sas",155:"highlight/scala",156:"highlight/scheme",157:"highlight/scilab",158:"highlight/scss",159:"highlight/shell",160:"highlight/smali",161:"highlight/smalltalk",162:"highlight/sml",163:"highlight/sqf",164:"highlight/sql",165:"highlight/sql_more",166:"highlight/stan",167:"highlight/stata",168:"highlight/step21",169:"highlight/stylus",170:"highlight/subunit",171:"highlight/swift",172:"highlight/taggerscript",173:"highlight/tap",174:"highlight/tcl",175:"highlight/thrift",176:"highlight/tp",177:"highlight/twig",178:"highlight/typescript",179:"highlight/vala",180:"highlight/vbnet",181:"highlight/vbscript",182:"highlight/vbscript-html",183:"highlight/verilog",184:"highlight/vhdl",185:"highlight/vim",186:"highlight/x86asm",187:"highlight/xl",188:"highlight/xml",189:"highlight/xquery",190:"highlight/yaml",191:"highlight/zephir",192:"vendors~editor-collab~editor-guest",193:"vendors~editor~files-modal",194:"editor",195:"editor-collab",196:"editor-guest",197:"editor-rich",199:"files-modal",202:"vendors~editor",203:"vendors~editor-rich",204:"vendors~files-modal"}[e]||e)+".js?v="+{0:"742fb3dc83cd7522e984",1:"e4292cca4cb34ecd7258",2:"72e35c3b6ddccfd1c042",3:"56b7c5231a2644a3ba72",4:"0ae08dc1ed1c98920702",5:"d7b2e3bd8dc97d0aaa3c",6:"3bd81c88a0cdf6d8a986",7:"36310fd5a194aadf5fc4",8:"57c529443dd03c0d79e3",9:"70c7e30b8de0dbdb982b",10:"129d1434bb0286c2ab9a",11:"389685b8886f8b0c1979",12:"de28273237b5bb409b1e",13:"fe19dcc1a173a761c3f1",14:"8ca234c5416c8e2b3c0a",15:"db2a0838513bd7caf6ff",16:"da0ce7c0a00f5de98970",17:"eee7c2e7459f4be08af2",18:"c1a11623e28689e648ed",19:"5485afbda1f3554934a0",20:"5d928f7fea416d23d682",21:"9ba20893d09ef6a46770",22:"7830d6592fe249892432",23:"99515cc861fdce9a6969",24:"52583048f797ffbd7d83",25:"3982d393e560f57cf5da",26:"d7ff92795bc42920cd0c",27:"e8790a56711f3095f56a",28:"49cf101da1cda927d487",29:"226eaa1f8a851ba05a9b",30:"cb69e1d94354b859b777",31:"af954c3c105c3bb5c063",32:"acee66eecaa17d557b0b",33:"de6471a36e36098a908d",34:"531f1210a754e5ed351f",35:"6bcfd85622fdd7f3cfd1",36:"283de7d4e0f12e64e637",37:"49bb0149f9ba453544ad",38:"f5587455245527d8aadb",39:"2f24a9286ef184aedd85",40:"d5de71e8547f17a39017",41:"e91ddf1243d164977df5",42:"07850861c91298e5ca46",43:"7c3170aedbb700734260",44:"631d6db856d7e64c406c",45:"8f81641a91d023439347",46:"11939fa0a054f15bb044",47:"939eb5665ec7daba8ffb",48:"d25904759e66d7073ff8",49:"a0a768b1a3ea049e133d",50:"2166ee7b8d6bb24ffbeb",51:"959dec4e94d4b4be15e3",52:"2f50a3dfc5757de5e78f",53:"7820302da304ee672daa",54:"aa0c5b07ce96a0d801f8",55:"0777fdacd1d2bd0e397d",56:"33a79fe07b69371a3a9b",57:"191c86b7979d1e544014",58:"ec486c8ef91c88f258d1",59:"8f60fb08e05e989726a6",60:"f717a3ece8db47a3c979",61:"689c7f74f6415ece9172",62:"b3891a413278cf183dd0",63:"979e0ec23f982aff7ed1",64:"19887d4a8eb33f05a300",65:"d09d7ed2803e717161dd",66:"be3dfac4ec1d6feceda9",67:"9808ad8c60b7d85ab24f",68:"acaac35b1817ec148ff3",69:"5ac2a587a11817406f0a",70:"ed72f0f383012dbd3d9f",71:"56cbe6419353e7f2b4c4",72:"bfe0ae34b456d797b20a",73:"91f2066a5d731a1d72cd",74:"270ef095b2c0f5b19636",75:"174d183facd0ca6ddbe1",76:"29d1bddd14af36786566",77:"eadcd5cc70fab04ae550",78:"7991e601aee84fca5789",79:"c073f521c68ae9a95a75",80:"8217cfa2a27e363f1938",81:"e17e21427240ade6ed49",82:"9db760ab2e35519bd952",83:"0cbfae1064269aa6a0b5",84:"7c3df9ec8f88797f9553",85:"0ba478036e76ada0c8a1",86:"6c4b9eb37bff881ca1cb",87:"92b131d22e434e8de88f",88:"f76075fe7c60b7971d60",89:"bede460c9a0785b3bb13",90:"25b3055dea6bceaeb65b",91:"f1962148aa10fc8dee6a",92:"bc51e5418fa71cd45b66",93:"0e1df0c721f33e80623b",94:"7bdd3e0799463cad5b19",95:"3c545d840b29de49a621",96:"04bfd263ab7d28c7e5ea",97:"f4396d5acb4ff2fd3509",98:"b4d9f4223872c45258e9",99:"46ce1d50c293a789b644",100:"50fcd379ea6056931118",101:"918462bcb19104015a16",102:"a0625bfdde2c91141bb2",103:"8bfb528cd168a2ad8fd4",104:"d810d63318794a90bd72",105:"c86ca4093bda8120e6ec",106:"f13b259acef59ffe67b4",107:"10c3c694ae71b779fa6c",108:"683e5c937ce8c57cb8c2",109:"3dc2a9a0788613ec6f0f",110:"8f01a30006f14bfc4c05",111:"56390998270dcdcdf65c",112:"de44e2b9fb90e1117475",113:"4939f688a3aca9b1644f",114:"c258cb7542db9d626441",115:"6a1c8a24670f13dfadf2",116:"1e1e280440246159cde1",117:"f16de51989f361d2fc91",118:"b26ea08c24b35aa3e143",119:"f77fee133ad0ca113bf8",120:"b485500d03e9045e500d",121:"74963b7b36a153960a5c",122:"f83284bdc627ffc5b978",123:"0f9253c37c2a431879b6",124:"4ae1e054da2df570b107",125:"68984077ecde7555aafe",126:"70ad366fa520ce824579",127:"2179a3acf03bd6524976",128:"eb951bfc40a8ee544a10",129:"5187c75f0c29d6a97969",130:"43676cdd182529273e7a",131:"af084a9b1d30cd3bc4c4",132:"b6c618ffe731c61b6821",133:"23db2d48af0364ca0ff9",134:"5fdce97df3a316a4e1a3",135:"a5120d7934fdf7d1e734",136:"3ce5d4acf52365613a59",137:"380e16bc13a7f226b58c",138:"64e1560d9b9033f75857",139:"ba3dc48c0caba3b1528c",140:"5b035ccfc5d799a2928b",141:"3af7d08c0c040d98472b",142:"40104b309f444063ed1a",143:"8b8a75712f877511d00e",144:"96f88a3cb568f3b9fde4",145:"34ec92f888548281ddd3",146:"c596c826c6f5265c635e",147:"c3a43e66998d0d53102c",148:"be273c48c1faac63703d",149:"55b3e74fa6547fd23620",150:"83f482bc38d817e55ac6",151:"bcabc53057b2970c5372",152:"2f3bdc758421944aa574",153:"0f6cc95595c504e8bbea",154:"4645b855824f47caee63",155:"022ff02713ef25a0f778",156:"927b1744db75a08900ac",157:"1636a533b7b06c08dc34",158:"d662b4a28b0068560946",159:"d5a11ab85e0649eed86b",160:"642620d84fce7f383583",161:"c396646ec970fbe16f65",162:"7b4763f904fb36bcbc6d",163:"1bcec5bcf6907281428c",164:"9b59e603ae5a4de23fde",165:"c8adc2d6a1fd59c569c0",166:"87dccafbfa73ad1f6f65",167:"5a49dcf3e71b515379e5",168:"033ddcb66d8d476821ac",169:"c61b9a412c8c4a50b85d",170:"bf428f8f7fbfded3a58b",171:"6ed673d70c5cefe4a66e",172:"676d45d8a80d70f339ea",173:"84d1a1382d2d9048cf2b",174:"b5b34e71de4ec8191d40",175:"66aa847f7ad32a3e71a6",176:"a6ce8285556412b96036",177:"8b2a00abfbfd856dfaee",178:"b6a0f73eff229f31e810",179:"88a7f40c83c90adc1e00",180:"98f0da5c10e9f3f5bd04",181:"25c9229394e8978f3dee",182:"771896ef9b1170e72d72",183:"e4d0f39f0eac92260769",184:"6e929fdb49503b312f7e",185:"4f969a2a637eeffe6041",186:"8b8eaa94abc4885ca4ea",187:"b27fd23a57bab4c92a50",188:"b65cde65fe85dd1bdc0e",189:"a05d39bc05ae1ea855c1",190:"edbc507bac3623f64cf8",191:"505d4dc4f0e03b04d212",192:"0abc538ad55523b47a62",193:"ca32af9eeaf6330b2fb7",194:"e29d82b60a06c40d7cb7",195:"45a7d2dcef5a4a153744",196:"f45c2f986fe68286319d",197:"9a96d8137483dab6efad",199:"8f75fbe41018fb22426a",202:"54535e39b4fee1fdb393",203:"1576a84cd8aeb2ee698c",204:"1cfd491baa44b0347b84"}[e]}(e);var o=new Error;r=function(t){c.onerror=c.onload=null,clearTimeout(l);var i=a[e];if(0!==i){if(i){var n=t&&("load"===t.type?"missing":t.type),h=t&&t.target&&t.target.src;o.message="Loading chunk "+e+" failed.\n("+n+": "+h+")",o.name="ChunkLoadError",o.type=n,o.request=h,i[1](o)}a[e]=void 0}};var l=setTimeout((function(){r({type:"timeout",target:c})}),12e4);c.onerror=c.onload=r,document.head.appendChild(c)}return Promise.all(t)},n.m=e,n.c=i,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/js/",n.oe=function(e){throw console.error(e),e};var h=window.textWebpackJsonp=window.textWebpackJsonp||[],r=h.push.bind(h);h.push=t,h=h.slice();for(var c=0;c<h.length;c++)t(h[c]);var o=r;n(n.s=197)}({123:function(e,t,i){"use strict";i.r(t);var a=i(124),n=i.n(a);for(var h in a)["default"].indexOf(h)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(h);t.default=n.a},124:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={name:"ViewerComponent",components:{EditorWrapper:function(){return Promise.all([i.e(193),i.e(202),i.e(194)]).then(i.bind(null,140))}},props:{filename:{type:String,default:null},fileid:{type:Number,default:null},active:{type:Boolean,default:!1},shareToken:{type:String,default:null},mime:{type:String,default:null}},beforeMount:function(){void 0!==this.$parent.$parent&&this.$parent.$parent.onResize&&window.removeEventListener("resize",this.$parent.$parent.onResize)}};t.default=a},188:function(e,t,i){"use strict";var a=i(47),n=i.n(a),h=i(48),r=i.n(h)()(n.a);r.push([e.i,"\n#editor-container {\n\theight: calc(100% - 50px);\n\ttop: 50px;\n}\n","",{version:3,sources:["webpack://./src/components/ViewerComponent.vue"],names:[],mappings:";AAmEA;CACA,yBAAA;CACA,SAAA;AACA",sourcesContent:['\x3c!--\n - @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n -\n - @author Julius Härtl <jus@bitgrid.net>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n --\x3e\n\n<template>\n\t<EditorWrapper :file-id="fileid"\n\t\t:relative-path="filename"\n\t\t:active="active"\n\t\t:share-token="shareToken"\n\t\t:mime="mime" />\n</template>\n\n<script>\nexport default {\n\tname: \'ViewerComponent\',\n\tcomponents: {\n\t\tEditorWrapper: () => import(/* webpackChunkName: "editor" */\'./EditorWrapper\'),\n\t},\n\tprops: {\n\t\tfilename: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\tfileid: {\n\t\t\ttype: Number,\n\t\t\tdefault: null,\n\t\t},\n\t\tactive: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\tshareToken: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\tmime: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\tbeforeMount() {\n\t\t// FIXME Dirty fix to avoid recreating the component on stable16\n\t\tif (typeof this.$parent.$parent !== \'undefined\' && this.$parent.$parent.onResize) {\n\t\t\twindow.removeEventListener(\'resize\', this.$parent.$parent.onResize)\n\t\t}\n\t},\n}\n<\/script>\n<style>\n#editor-container {\n\theight: calc(100% - 50px);\n\ttop: 50px;\n}\n</style>\n'],sourceRoot:""}]),t.a=r},190:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return n}));var a=function(){var e=this.$createElement;return(this._self._c||e)("EditorWrapper",{attrs:{"file-id":this.fileid,"relative-path":this.filename,active:this.active,"share-token":this.shareToken,mime:this.mime}})},n=[]},197:function(e,t,i){"use strict";var a,n=(a=i(198))&&a.__esModule?a:{default:a},h=i(73);function r(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return c(e,t)}(e)||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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}i.nc=btoa(OC.requestToken),i.p=OC.linkTo("text","js/"),document.addEventListener("DOMContentLoaded",(function(){void 0!==OCA.Viewer?OCA.Viewer.registerHandler({id:"text",mimes:[].concat(r(h.openMimetypesMarkdown),r(h.openMimetypesPlainText)),component:n.default,group:null}):console.error("Viewer app is not installed")}))},198:function(e,t,i){"use strict";i.r(t);var a=i(190),n=i(123);for(var h in n)["default"].indexOf(h)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(h);i(199);var r=i(32),c=Object(r.a)(n.default,a.a,a.b,!1,null,null,null);t.default=c.exports},199:function(e,t,i){"use strict";var a=i(46),n=i.n(a),h=i(188),r={insert:"head",singleton:!1};n()(h.a,r),h.a.locals},32:function(e,t,i){"use strict";function a(e,t,i,a,n,h,r,c){var o,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),a&&(l.functional=!0),h&&(l._scopeId="data-v-"+h),r?(o=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=o):n&&(o=c?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),o)if(l.functional){l._injectStyles=o;var d=l.render;l.render=function(e,t){return o.call(t),d(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,o):[o]}return{exports:e,options:l}}i.d(t,"a",(function(){return a}))},46:function(e,t,i){"use strict";var a,n=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},h=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),r=[];function c(e){for(var t=-1,i=0;i<r.length;i++)if(r[i].identifier===e){t=i;break}return t}function o(e,t){for(var i={},a=[],n=0;n<e.length;n++){var h=e[n],o=t.base?h[0]+t.base:h[0],l=i[o]||0,d="".concat(o," ").concat(l);i[o]=l+1;var f=c(d),g={css:h[1],media:h[2],sourceMap:h[3]};-1!==f?(r[f].references++,r[f].updater(g)):r.push({identifier:d,updater:p(g,t),references:1}),a.push(d)}return a}function l(e){var t=document.createElement("style"),a=e.attributes||{};if(void 0===a.nonce){var n=i.nc;n&&(a.nonce=n)}if(Object.keys(a).forEach((function(e){t.setAttribute(e,a[e])})),"function"==typeof e.insert)e.insert(t);else{var r=h(e.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}return t}var d,f=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function g(e,t,i,a){var n=i?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(e.styleSheet)e.styleSheet.cssText=f(t,n);else{var h=document.createTextNode(n),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(h,r[t]):e.appendChild(h)}}function s(e,t,i){var a=i.css,n=i.media,h=i.sourceMap;if(n?e.setAttribute("media",n):e.removeAttribute("media"),h&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(h))))," */")),e.styleSheet)e.styleSheet.cssText=a;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(a))}}var b=null,u=0;function p(e,t){var i,a,n;if(t.singleton){var h=u++;i=b||(b=l(t)),a=g.bind(null,i,h,!1),n=g.bind(null,i,h,!0)}else i=l(t),a=s.bind(null,i,t),n=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return a(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;a(e=t)}else n()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=n());var i=o(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var a=0;a<i.length;a++){var n=c(i[a]);r[n].references--}for(var h=o(e,t),l=0;l<i.length;l++){var d=c(i[l]);0===r[d].references&&(r[d].updater(),r.splice(d,1))}i=h}}}},47:function(e,t,i){"use strict";function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var i=[],a=!0,n=!1,h=void 0;try{for(var r,c=e[Symbol.iterator]();!(a=(r=c.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){n=!0,h=e}finally{try{a||null==c.return||c.return()}finally{if(n)throw h}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}e.exports=function(e){var t=a(e,4),i=t[1],n=t[3];if("function"==typeof btoa){var h=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(h),c="/*# ".concat(r," */"),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[i].concat(o).concat([c]).join("\n")}return[i].join("\n")}},48:function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=e(t);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,a){"string"==typeof e&&(e=[[null,e,""]]);var n={};if(a)for(var h=0;h<this.length;h++){var r=this[h][0];null!=r&&(n[r]=!0)}for(var c=0;c<e.length;c++){var o=[].concat(e[c]);a&&n[o[0]]||(i&&(o[2]?o[2]="".concat(i," and ").concat(o[2]):o[2]=i),t.push(o))}},t}},73:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openMimetypesPlainText=t.openMimetypesMarkdown=t.openMimetypes=void 0;
/*
* @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
*