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:
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 1803d04b0..33905c6d0 100644
--- a/js/viewer.js
+++ b/js/viewer.js
@@ -1,4 +1,4 @@
-!function(e){function t(t){for(var i,a,h=t[0],r=t[1],c=0,l=[];c<h.length;c++)a=h[c],Object.prototype.hasOwnProperty.call(n,a)&&n[a]&&l.push(n[a][0]),n[a]=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={},n={206:0};function a(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.e=function(e){var t=[],i=n[e];if(0!==i)if(i)t.push(i[2]);else{var h=new Promise((function(t,a){i=n[e]=[t,a]}));t.push(i[2]=h);var r,c=document.createElement("script");c.charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.nc),c.src=function(e){return a.p+""+({0:"vendor",1:"vendors~editor-collab~editor-guest~editor-rich~files-modal",2:"highlight/1c",3:"highlight/abnf",4:"highlight/accesslog",5:"highlight/actionscript",6:"highlight/ada",7:"highlight/angelscript",8:"highlight/apache",9:"highlight/applescript",10:"highlight/arcade",11:"highlight/arduino",12:"highlight/armasm",13:"highlight/asciidoc",14:"highlight/aspectj",15:"highlight/autohotkey",16:"highlight/autoit",17:"highlight/avrasm",18:"highlight/awk",19:"highlight/axapta",20:"highlight/bash",21:"highlight/basic",22:"highlight/bnf",23:"highlight/brainfuck",24:"highlight/c",25:"highlight/c-like",26:"highlight/cal",27:"highlight/capnproto",28:"highlight/ceylon",29:"highlight/clean",30:"highlight/clojure",31:"highlight/clojure-repl",32:"highlight/cmake",33:"highlight/coffeescript",34:"highlight/coq",35:"highlight/cos",36:"highlight/cpp",37:"highlight/crmsh",38:"highlight/crystal",39:"highlight/csharp",40:"highlight/csp",41:"highlight/css",42:"highlight/d",43:"highlight/dart",44:"highlight/delphi",45:"highlight/diff",46:"highlight/django",47:"highlight/dns",48:"highlight/dockerfile",49:"highlight/dos",50:"highlight/dsconfig",51:"highlight/dts",52:"highlight/dust",53:"highlight/ebnf",54:"highlight/elixir",55:"highlight/elm",56:"highlight/erb",57:"highlight/erlang",58:"highlight/erlang-repl",59:"highlight/excel",60:"highlight/fix",61:"highlight/flix",62:"highlight/fortran",63:"highlight/fsharp",64:"highlight/gams",65:"highlight/gauss",66:"highlight/gcode",67:"highlight/gherkin",68:"highlight/glsl",69:"highlight/gml",70:"highlight/go",71:"highlight/golo",72:"highlight/gradle",73:"highlight/groovy",74:"highlight/haml",75:"highlight/handlebars",76:"highlight/haskell",77:"highlight/haxe",78:"highlight/hsp",79:"highlight/htmlbars",80:"highlight/http",81:"highlight/hy",82:"highlight/inform7",83:"highlight/ini",84:"highlight/irpf90",85:"highlight/isbl",86:"highlight/java",87:"highlight/javascript",88:"highlight/jboss-cli",89:"highlight/json",90:"highlight/julia",91:"highlight/julia-repl",92:"highlight/kotlin",93:"highlight/lasso",94:"highlight/latex",95:"highlight/ldif",96:"highlight/leaf",97:"highlight/less",98:"highlight/lisp",99:"highlight/livecodeserver",100:"highlight/livescript",101:"highlight/llvm",102:"highlight/lsl",103:"highlight/lua",104:"highlight/makefile",105:"highlight/markdown",106:"highlight/mathematica",107:"highlight/matlab",108:"highlight/maxima",109:"highlight/mel",110:"highlight/mercury",111:"highlight/mipsasm",112:"highlight/mizar",113:"highlight/mojolicious",114:"highlight/monkey",115:"highlight/moonscript",116:"highlight/n1ql",117:"highlight/nginx",118:"highlight/nim",119:"highlight/nix",120:"highlight/node-repl",121:"highlight/nsis",122:"highlight/objectivec",123:"highlight/ocaml",124:"highlight/openscad",125:"highlight/oxygene",126:"highlight/parser3",127:"highlight/perl",128:"highlight/pf",129:"highlight/pgsql",130:"highlight/php",131:"highlight/php-template",132:"highlight/plaintext",133:"highlight/pony",134:"highlight/powershell",135:"highlight/processing",136:"highlight/profile",137:"highlight/prolog",138:"highlight/properties",139:"highlight/protobuf",140:"highlight/puppet",141:"highlight/purebasic",142:"highlight/python",143:"highlight/python-repl",144:"highlight/q",145:"highlight/qml",146:"highlight/r",147:"highlight/reasonml",148:"highlight/rib",149:"highlight/roboconf",150:"highlight/routeros",151:"highlight/rsl",152:"highlight/ruby",153:"highlight/ruleslanguage",154:"highlight/rust",155:"highlight/sas",156:"highlight/scala",157:"highlight/scheme",158:"highlight/scilab",159:"highlight/scss",160:"highlight/shell",161:"highlight/smali",162:"highlight/smalltalk",163:"highlight/sml",164:"highlight/sqf",165:"highlight/sql",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-collab~editor-rich",194:"vendors~editor~files-modal",195:"editor",196:"editor-collab",197:"editor-guest",198:"editor-rich",200:"files-modal",203:"vendors~editor",204:"vendors~editor-rich",205:"vendors~files-modal"}[e]||e)+".js?v="+{0:"0418afbf4b7f9a87c3c5",1:"c0f3c95d5adad39aa4d3",2:"8abbfbe1210414170701",3:"c137bcab9ecaa070fe3f",4:"4186c2d8ee942c9a1c8b",5:"c7f7d475e85b52550fb6",6:"2b7d6d77e0027149994e",7:"0b66801886128d3d731b",8:"81a2a9752d6e42821fc5",9:"a7378f6e707197f7ab4c",10:"1183b43341c87d554b70",11:"0d4d5def7c24877f151a",12:"680fcbe04f464680e603",13:"30003d2812f497f1e560",14:"7076164b8b2a9daf33c3",15:"fc73c7a5c13e753b6f59",16:"dc316c2504faef229545",17:"fc76409ecb686e900c99",18:"7062bf9587ec0eea12a2",19:"bef8d32a5a9d7415224b",20:"14e30e2d317832099229",21:"5c670b9d350273ea11fb",22:"9a9eaa0b8d7d9cd06e57",23:"5b54d2a6bd9cb8d1d1a2",24:"fc306cc10fe0611a1876",25:"01170bb49d8ea171d716",26:"2d406f027fe751f344e6",27:"b28dbded609599b79414",28:"c200e4cf0888323711fa",29:"1b616e25117cdb98d4f1",30:"dbf1fc7f43ac253aeb30",31:"68422447c25633f13129",32:"ccfeada5918c4f9aeddb",33:"c60069d82e528215b14a",34:"71a840b44f4072558b1a",35:"1452de80b0a3ee64f1f7",36:"4414b8da17cedac1572f",37:"0252e5ab31638164dc16",38:"1c75035634bdd7d5982d",39:"f623d3c2d30b867d00e2",40:"0078f9f32873e351591d",41:"db9650188e37c89ec771",42:"41bae99dee14303f3d97",43:"34efff2f0144261c0ee5",44:"6748a1b9d4ee180a78ad",45:"0b7289872e09889f2a31",46:"2b5f92ceda38b4c643a9",47:"20556b82ae894fa2c7e4",48:"88210ddae45842aeb71b",49:"ba1c4f3601c246750846",50:"635cb169cc212b9bf153",51:"f32a9f4f02b06a5b350d",52:"a393b296d236cbaf3166",53:"3d69ec19898f46c96a1e",54:"b349577acd551df129fb",55:"8912ac0b9ad4b7065d50",56:"12a2cd32c1339551d571",57:"3269d77e7e89aeb3b42d",58:"a1236619c00f68b97b07",59:"e01534e0bafc187736aa",60:"eae09964f523526a76e4",61:"7e8b1d6bf9add607e7ba",62:"e2c81c18dfa87070bee6",63:"602d4d79f7e367a195d9",64:"96abebcd1dbb12ec0bf9",65:"20ab8d7b107ea963139c",66:"ef3ed372000e178bc36c",67:"c0c1e4f8cf8729e2aca5",68:"a59739d94409a32fefcf",69:"75f53085b07b6ce2f110",70:"da74ec904630b1696da5",71:"187880929ddbeb7b5dbf",72:"70e625acfff650bffd6e",73:"6dba99e1561658677dc5",74:"5f822039bf0de70cc3e0",75:"f4ff462c6ca939fa350c",76:"1297b796e9195dff8ff6",77:"3807d510b9ba39cfef57",78:"f762b7824c148bd898c0",79:"0f2853c05a5627af0439",80:"a5c07529c62f4c335dbc",81:"69be0be8e6afc13ba810",82:"ef18f75cd59d9aa7c2c7",83:"1b30787eff7994854d87",84:"5e1e7ca94f4c280c9c4f",85:"04bfd4f9787f2c1795c5",86:"f791f094696e739920da",87:"24eb1ea17fdc8e5d6c31",88:"48cfab43934d806237dc",89:"55a415e8472d3aa275fa",90:"088aebaa5a676cc393da",91:"a64126cad0acd9d6107b",92:"511a96b39a6d6483bebe",93:"814f7efd6957478145bf",94:"4034ef73393c2c85399d",95:"fa4872faf671b8018800",96:"403ffc5c8ebd7bfe3b4e",97:"8de93e4e4df33e71e4fd",98:"4c5b015300dc4800cd10",99:"0d520e5412d7923a269f",100:"772eccca51cf689ab169",101:"f8f0e9eabe5bd337a19a",102:"115933238c6c371bf28a",103:"15ef411d1d2e4c63e7a8",104:"ade28f56477a308b2361",105:"1eae1084ecfa6f489ada",106:"15e038d9a0b141d6b7c0",107:"ce15aac9b3e74a7bb0a8",108:"1beded160eac6b8199b1",109:"11390d4fce4ccaf32656",110:"cb09ed5dab85fab89f53",111:"9baa041221206f6724fb",112:"c50238e1265d98a8bfd6",113:"babe1fcccf7861b40fb1",114:"7eefcc1070425bf0c564",115:"84a50dc4c834b91b2f25",116:"c0b3f7890eb4de094e30",117:"942ed045765c70783435",118:"3cbd60fd667e95a922ac",119:"0b022f0b7085e6f16771",120:"e4ff00cfc767fc7d89e8",121:"be3e303f198f8dc08079",122:"dcfdcbbd467f17008ebe",123:"d521ae0970bd91c50577",124:"2dedc9189837bda20ec2",125:"1a61416b7c1ad3d60ddd",126:"f346d8e1860c30c8f217",127:"396b390d55948b03acc6",128:"607874786f59f7e98418",129:"4a2d0104de44b6352871",130:"c2a634d8fdbb72d2ddfa",131:"4d5726a3be2c1fd96752",132:"883209f105956d9f37da",133:"c7144f4a49a05c3e1889",134:"4d26d16a70f000e415f7",135:"62282e7ca6c89bb8912c",136:"72e5cebb46ff3319ca12",137:"e2e6d0530077618015c8",138:"739768fc734abaab55e6",139:"71770f3835569e42e48d",140:"a53d2cf34200bea291a5",141:"86e732aa609f20a0a98b",142:"379ae521c2448a5b2af9",143:"ee85469cdf7f59d0291b",144:"0f82aca186ec2b6ece92",145:"aaa6059c36dbce4a7146",146:"303cb1a178db945b6e3c",147:"920f15c4deea64cfe644",148:"1032678d1e0310c8939d",149:"1cd3a81c1692b16c200f",150:"5b155cd57211436922dd",151:"dad38f9a356d4d84723e",152:"565789542a0d007c80fd",153:"4435093f8e33e3e6688d",154:"05e1111e8117f67b6560",155:"34876ec6f45cc3ad1222",156:"c829584c876eae685951",157:"c3b15a74bd9eae42d7df",158:"37a41dee8f3ddca9f4be",159:"71be53d43620bf4124d9",160:"43c7410713894a5597b1",161:"494b9df1fb3909abb24c",162:"33dcc50105704f86ea1d",163:"9839e97794b9f43077fd",164:"1db88e1b54cb7a5cacde",165:"8751e34537f14e76a365",166:"f5a5083a0dcda08d5ae6",167:"33c02a39c99fd09e3a40",168:"84fca6fc8103a2768eff",169:"d38264a80cb62e50f920",170:"6692c6c7b2f4b0e127b0",171:"80032de9afc10a6d34c2",172:"bf07576d23d4219640b5",173:"90f0d5a14b4c63338cd0",174:"7d0107d72972f6269a91",175:"830152ad6d362c3338e2",176:"4961215448541db18073",177:"27f743be7a0ba9ca1294",178:"f6a7da33d4e967548675",179:"1175a0ee0266d75f8c97",180:"60d0ab9e960c95e1c8c3",181:"d52b87f93718cd2a7549",182:"487c256778b56eb414a0",183:"e950251639f3d1a6a9d3",184:"26a02f672fd5059cbddf",185:"6a8e8a8d1fee50bb1b79",186:"17465185f085379a1efd",187:"49763bb35dd202e7c4f3",188:"5d0de9893df3bc08fe6b",189:"70110e4ce1c31ec93d47",190:"007c3559b3b672cdf2b3",191:"6042209b3f11b92e9592",192:"70f36aa8b49f135be138",193:"d773d54abf4e6f54ab03",194:"6da2c0af69186fae0e3c",195:"88aa0fd532dcc8990269",196:"fbe2f40a217e0200bc2d",197:"592d8b354a1954707efa",198:"3f4f3650c531341abec0",200:"f8f76b0e365edd2ee65d",203:"b8f115885cd765ae5389",204:"ace9993bb1c0582c6581",205:"71a49ca67e21c2074be1"}[e]}(e);var o=new Error;r=function(t){c.onerror=c.onload=null,clearTimeout(l);var i=n[e];if(0!==i){if(i){var a=t&&("load"===t.type?"missing":t.type),h=t&&t.target&&t.target.src;o.message="Loading chunk "+e+" failed.\n("+a+": "+h+")",o.name="ChunkLoadError",o.type=a,o.request=h,i[1](o)}n[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)},a.m=e,a.c=i,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(i,n,function(t){return e[t]}.bind(null,n));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/js/",a.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;a(a.s=186)}({102:function(e,t,i){"use strict";i.r(t);var n=i(103),a=i.n(n);for(var h in n)["default"].indexOf(h)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(h);t.default=a.a},103:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={name:"ViewerComponent",components:{EditorWrapper:function(){return Promise.all([i.e(0),i.e(194),i.e(203),i.e(195)]).then(i.bind(null,123))}},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=n},15:function(e,t,i){"use strict";function n(e,t,i,n,a,h,r,c){var o,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(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__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=o):a&&(o=c?function(){a.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:a),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 n}))},175:function(e,t,i){"use strict";var n=i(27),a=i.n(n),h=i(28),r=i.n(h)()(a.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},177:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a}));var n=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}})},a=[]},186:function(e,t,i){"use strict";var n,a=(n=i(187))&&n.__esModule?n:{default:n},h=i(52);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,n=new Array(t);i<t;i++)n[i]=e[i];return n}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:a.default,group:null}):console.error("Viewer app is not installed")}))},187:function(e,t,i){"use strict";i.r(t);var n=i(177),a=i(102);for(var h in a)["default"].indexOf(h)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(h);i(188);var r=i(15),c=Object(r.a)(a.default,n.a,n.b,!1,null,null,null);t.default=c.exports},188:function(e,t,i){"use strict";var n=i(26),a=i.n(n),h=i(175),r={insert:"head",singleton:!1};a()(h.a,r),h.a.locals},26:function(e,t,i){"use strict";var n,a=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},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={},n=[],a=0;a<e.length;a++){var h=e[a],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}),n.push(f)}return n}function l(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var a=i.nc;a&&(n.nonce=a)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[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,n){var a=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,a);else{var h=document.createTextNode(a),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 n=i.css,a=i.media,h=i.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),h&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(h))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var b=null,u=0;function p(e,t){var i,n,a;if(t.singleton){var h=u++;i=b||(b=l(t)),n=g.bind(null,i,h,!1),a=g.bind(null,i,h,!0)}else i=l(t),n=s.bind(null,i,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var i=o(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var a=c(i[n]);r[a].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}}}},27:function(e,t,i){"use strict";function n(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=[],n=!0,a=!1,h=void 0;try{for(var r,c=e[Symbol.iterator]();!(n=(r=c.next()).done)&&(i.push(r.value),!t||i.length!==t);n=!0);}catch(e){a=!0,h=e}finally{try{n||null==c.return||c.return()}finally{if(a)throw h}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(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 a(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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}e.exports=function(e){var t=n(e,4),i=t[1],a=t[3];if("function"==typeof btoa){var h=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(h),c="/*# ".concat(r," */"),o=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(o).concat([c]).join("\n")}return[i].join("\n")}},28: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,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var h=0;h<this.length;h++){var r=this[h][0];null!=r&&(a[r]=!0)}for(var c=0;c<e.length;c++){var o=[].concat(e[c]);n&&a[o[0]]||(i&&(o[2]?o[2]="".concat(i," and ").concat(o[2]):o[2]=i),t.push(o))}},t}},52: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,a,h=t[0],r=t[1],c=0,l=[];c<h.length;c++)a=h[c],Object.prototype.hasOwnProperty.call(n,a)&&n[a]&&l.push(n[a][0]),n[a]=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={},n={206:0};function a(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.e=function(e){var t=[],i=n[e];if(0!==i)if(i)t.push(i[2]);else{var h=new Promise((function(t,a){i=n[e]=[t,a]}));t.push(i[2]=h);var r,c=document.createElement("script");c.charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.nc),c.src=function(e){return a.p+""+({0:"vendor",1:"vendors~editor-collab~editor-guest~editor-rich~files-modal",2:"highlight/1c",3:"highlight/abnf",4:"highlight/accesslog",5:"highlight/actionscript",6:"highlight/ada",7:"highlight/angelscript",8:"highlight/apache",9:"highlight/applescript",10:"highlight/arcade",11:"highlight/arduino",12:"highlight/armasm",13:"highlight/asciidoc",14:"highlight/aspectj",15:"highlight/autohotkey",16:"highlight/autoit",17:"highlight/avrasm",18:"highlight/awk",19:"highlight/axapta",20:"highlight/bash",21:"highlight/basic",22:"highlight/bnf",23:"highlight/brainfuck",24:"highlight/c",25:"highlight/c-like",26:"highlight/cal",27:"highlight/capnproto",28:"highlight/ceylon",29:"highlight/clean",30:"highlight/clojure",31:"highlight/clojure-repl",32:"highlight/cmake",33:"highlight/coffeescript",34:"highlight/coq",35:"highlight/cos",36:"highlight/cpp",37:"highlight/crmsh",38:"highlight/crystal",39:"highlight/csharp",40:"highlight/csp",41:"highlight/css",42:"highlight/d",43:"highlight/dart",44:"highlight/delphi",45:"highlight/diff",46:"highlight/django",47:"highlight/dns",48:"highlight/dockerfile",49:"highlight/dos",50:"highlight/dsconfig",51:"highlight/dts",52:"highlight/dust",53:"highlight/ebnf",54:"highlight/elixir",55:"highlight/elm",56:"highlight/erb",57:"highlight/erlang",58:"highlight/erlang-repl",59:"highlight/excel",60:"highlight/fix",61:"highlight/flix",62:"highlight/fortran",63:"highlight/fsharp",64:"highlight/gams",65:"highlight/gauss",66:"highlight/gcode",67:"highlight/gherkin",68:"highlight/glsl",69:"highlight/gml",70:"highlight/go",71:"highlight/golo",72:"highlight/gradle",73:"highlight/groovy",74:"highlight/haml",75:"highlight/handlebars",76:"highlight/haskell",77:"highlight/haxe",78:"highlight/hsp",79:"highlight/htmlbars",80:"highlight/http",81:"highlight/hy",82:"highlight/inform7",83:"highlight/ini",84:"highlight/irpf90",85:"highlight/isbl",86:"highlight/java",87:"highlight/javascript",88:"highlight/jboss-cli",89:"highlight/json",90:"highlight/julia",91:"highlight/julia-repl",92:"highlight/kotlin",93:"highlight/lasso",94:"highlight/latex",95:"highlight/ldif",96:"highlight/leaf",97:"highlight/less",98:"highlight/lisp",99:"highlight/livecodeserver",100:"highlight/livescript",101:"highlight/llvm",102:"highlight/lsl",103:"highlight/lua",104:"highlight/makefile",105:"highlight/markdown",106:"highlight/mathematica",107:"highlight/matlab",108:"highlight/maxima",109:"highlight/mel",110:"highlight/mercury",111:"highlight/mipsasm",112:"highlight/mizar",113:"highlight/mojolicious",114:"highlight/monkey",115:"highlight/moonscript",116:"highlight/n1ql",117:"highlight/nginx",118:"highlight/nim",119:"highlight/nix",120:"highlight/node-repl",121:"highlight/nsis",122:"highlight/objectivec",123:"highlight/ocaml",124:"highlight/openscad",125:"highlight/oxygene",126:"highlight/parser3",127:"highlight/perl",128:"highlight/pf",129:"highlight/pgsql",130:"highlight/php",131:"highlight/php-template",132:"highlight/plaintext",133:"highlight/pony",134:"highlight/powershell",135:"highlight/processing",136:"highlight/profile",137:"highlight/prolog",138:"highlight/properties",139:"highlight/protobuf",140:"highlight/puppet",141:"highlight/purebasic",142:"highlight/python",143:"highlight/python-repl",144:"highlight/q",145:"highlight/qml",146:"highlight/r",147:"highlight/reasonml",148:"highlight/rib",149:"highlight/roboconf",150:"highlight/routeros",151:"highlight/rsl",152:"highlight/ruby",153:"highlight/ruleslanguage",154:"highlight/rust",155:"highlight/sas",156:"highlight/scala",157:"highlight/scheme",158:"highlight/scilab",159:"highlight/scss",160:"highlight/shell",161:"highlight/smali",162:"highlight/smalltalk",163:"highlight/sml",164:"highlight/sqf",165:"highlight/sql",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-collab~editor-rich",194:"vendors~editor~files-modal",195:"editor",196:"editor-collab",197:"editor-guest",198:"editor-rich",200:"files-modal",203:"vendors~editor",204:"vendors~editor-rich",205:"vendors~files-modal"}[e]||e)+".js?v="+{0:"0418afbf4b7f9a87c3c5",1:"c0f3c95d5adad39aa4d3",2:"8abbfbe1210414170701",3:"c137bcab9ecaa070fe3f",4:"4186c2d8ee942c9a1c8b",5:"c7f7d475e85b52550fb6",6:"2b7d6d77e0027149994e",7:"0b66801886128d3d731b",8:"81a2a9752d6e42821fc5",9:"a7378f6e707197f7ab4c",10:"1183b43341c87d554b70",11:"0d4d5def7c24877f151a",12:"680fcbe04f464680e603",13:"30003d2812f497f1e560",14:"7076164b8b2a9daf33c3",15:"fc73c7a5c13e753b6f59",16:"dc316c2504faef229545",17:"fc76409ecb686e900c99",18:"7062bf9587ec0eea12a2",19:"bef8d32a5a9d7415224b",20:"14e30e2d317832099229",21:"5c670b9d350273ea11fb",22:"9a9eaa0b8d7d9cd06e57",23:"5b54d2a6bd9cb8d1d1a2",24:"fc306cc10fe0611a1876",25:"01170bb49d8ea171d716",26:"2d406f027fe751f344e6",27:"b28dbded609599b79414",28:"c200e4cf0888323711fa",29:"1b616e25117cdb98d4f1",30:"dbf1fc7f43ac253aeb30",31:"68422447c25633f13129",32:"ccfeada5918c4f9aeddb",33:"c60069d82e528215b14a",34:"71a840b44f4072558b1a",35:"1452de80b0a3ee64f1f7",36:"4414b8da17cedac1572f",37:"0252e5ab31638164dc16",38:"1c75035634bdd7d5982d",39:"f623d3c2d30b867d00e2",40:"0078f9f32873e351591d",41:"db9650188e37c89ec771",42:"41bae99dee14303f3d97",43:"34efff2f0144261c0ee5",44:"6748a1b9d4ee180a78ad",45:"0b7289872e09889f2a31",46:"2b5f92ceda38b4c643a9",47:"20556b82ae894fa2c7e4",48:"88210ddae45842aeb71b",49:"ba1c4f3601c246750846",50:"635cb169cc212b9bf153",51:"f32a9f4f02b06a5b350d",52:"a393b296d236cbaf3166",53:"3d69ec19898f46c96a1e",54:"b349577acd551df129fb",55:"8912ac0b9ad4b7065d50",56:"12a2cd32c1339551d571",57:"3269d77e7e89aeb3b42d",58:"a1236619c00f68b97b07",59:"e01534e0bafc187736aa",60:"eae09964f523526a76e4",61:"7e8b1d6bf9add607e7ba",62:"e2c81c18dfa87070bee6",63:"602d4d79f7e367a195d9",64:"96abebcd1dbb12ec0bf9",65:"20ab8d7b107ea963139c",66:"ef3ed372000e178bc36c",67:"c0c1e4f8cf8729e2aca5",68:"a59739d94409a32fefcf",69:"75f53085b07b6ce2f110",70:"da74ec904630b1696da5",71:"187880929ddbeb7b5dbf",72:"70e625acfff650bffd6e",73:"6dba99e1561658677dc5",74:"5f822039bf0de70cc3e0",75:"f4ff462c6ca939fa350c",76:"1297b796e9195dff8ff6",77:"3807d510b9ba39cfef57",78:"f762b7824c148bd898c0",79:"0f2853c05a5627af0439",80:"a5c07529c62f4c335dbc",81:"69be0be8e6afc13ba810",82:"ef18f75cd59d9aa7c2c7",83:"1b30787eff7994854d87",84:"5e1e7ca94f4c280c9c4f",85:"04bfd4f9787f2c1795c5",86:"f791f094696e739920da",87:"24eb1ea17fdc8e5d6c31",88:"48cfab43934d806237dc",89:"55a415e8472d3aa275fa",90:"088aebaa5a676cc393da",91:"a64126cad0acd9d6107b",92:"511a96b39a6d6483bebe",93:"814f7efd6957478145bf",94:"4034ef73393c2c85399d",95:"fa4872faf671b8018800",96:"403ffc5c8ebd7bfe3b4e",97:"8de93e4e4df33e71e4fd",98:"4c5b015300dc4800cd10",99:"0d520e5412d7923a269f",100:"772eccca51cf689ab169",101:"f8f0e9eabe5bd337a19a",102:"115933238c6c371bf28a",103:"15ef411d1d2e4c63e7a8",104:"ade28f56477a308b2361",105:"1eae1084ecfa6f489ada",106:"15e038d9a0b141d6b7c0",107:"ce15aac9b3e74a7bb0a8",108:"1beded160eac6b8199b1",109:"11390d4fce4ccaf32656",110:"cb09ed5dab85fab89f53",111:"9baa041221206f6724fb",112:"c50238e1265d98a8bfd6",113:"babe1fcccf7861b40fb1",114:"7eefcc1070425bf0c564",115:"84a50dc4c834b91b2f25",116:"c0b3f7890eb4de094e30",117:"942ed045765c70783435",118:"3cbd60fd667e95a922ac",119:"0b022f0b7085e6f16771",120:"e4ff00cfc767fc7d89e8",121:"be3e303f198f8dc08079",122:"dcfdcbbd467f17008ebe",123:"d521ae0970bd91c50577",124:"2dedc9189837bda20ec2",125:"1a61416b7c1ad3d60ddd",126:"f346d8e1860c30c8f217",127:"396b390d55948b03acc6",128:"607874786f59f7e98418",129:"4a2d0104de44b6352871",130:"c2a634d8fdbb72d2ddfa",131:"4d5726a3be2c1fd96752",132:"883209f105956d9f37da",133:"c7144f4a49a05c3e1889",134:"4d26d16a70f000e415f7",135:"62282e7ca6c89bb8912c",136:"72e5cebb46ff3319ca12",137:"e2e6d0530077618015c8",138:"739768fc734abaab55e6",139:"71770f3835569e42e48d",140:"a53d2cf34200bea291a5",141:"86e732aa609f20a0a98b",142:"379ae521c2448a5b2af9",143:"ee85469cdf7f59d0291b",144:"0f82aca186ec2b6ece92",145:"aaa6059c36dbce4a7146",146:"303cb1a178db945b6e3c",147:"920f15c4deea64cfe644",148:"1032678d1e0310c8939d",149:"1cd3a81c1692b16c200f",150:"5b155cd57211436922dd",151:"dad38f9a356d4d84723e",152:"565789542a0d007c80fd",153:"4435093f8e33e3e6688d",154:"05e1111e8117f67b6560",155:"34876ec6f45cc3ad1222",156:"c829584c876eae685951",157:"c3b15a74bd9eae42d7df",158:"37a41dee8f3ddca9f4be",159:"71be53d43620bf4124d9",160:"43c7410713894a5597b1",161:"494b9df1fb3909abb24c",162:"33dcc50105704f86ea1d",163:"9839e97794b9f43077fd",164:"1db88e1b54cb7a5cacde",165:"8751e34537f14e76a365",166:"f5a5083a0dcda08d5ae6",167:"33c02a39c99fd09e3a40",168:"84fca6fc8103a2768eff",169:"d38264a80cb62e50f920",170:"6692c6c7b2f4b0e127b0",171:"80032de9afc10a6d34c2",172:"bf07576d23d4219640b5",173:"90f0d5a14b4c63338cd0",174:"7d0107d72972f6269a91",175:"830152ad6d362c3338e2",176:"4961215448541db18073",177:"27f743be7a0ba9ca1294",178:"f6a7da33d4e967548675",179:"1175a0ee0266d75f8c97",180:"60d0ab9e960c95e1c8c3",181:"d52b87f93718cd2a7549",182:"487c256778b56eb414a0",183:"e950251639f3d1a6a9d3",184:"26a02f672fd5059cbddf",185:"6a8e8a8d1fee50bb1b79",186:"17465185f085379a1efd",187:"49763bb35dd202e7c4f3",188:"5d0de9893df3bc08fe6b",189:"70110e4ce1c31ec93d47",190:"007c3559b3b672cdf2b3",191:"6042209b3f11b92e9592",192:"70f36aa8b49f135be138",193:"d773d54abf4e6f54ab03",194:"6da2c0af69186fae0e3c",195:"88aa0fd532dcc8990269",196:"fbe2f40a217e0200bc2d",197:"592d8b354a1954707efa",198:"3f4f3650c531341abec0",200:"f8f76b0e365edd2ee65d",203:"3d285586e165ca0c90b5",204:"ace9993bb1c0582c6581",205:"71a49ca67e21c2074be1"}[e]}(e);var o=new Error;r=function(t){c.onerror=c.onload=null,clearTimeout(l);var i=n[e];if(0!==i){if(i){var a=t&&("load"===t.type?"missing":t.type),h=t&&t.target&&t.target.src;o.message="Loading chunk "+e+" failed.\n("+a+": "+h+")",o.name="ChunkLoadError",o.type=a,o.request=h,i[1](o)}n[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)},a.m=e,a.c=i,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(i,n,function(t){return e[t]}.bind(null,n));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/js/",a.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;a(a.s=186)}({102:function(e,t,i){"use strict";i.r(t);var n=i(103),a=i.n(n);for(var h in n)["default"].indexOf(h)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(h);t.default=a.a},103:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={name:"ViewerComponent",components:{EditorWrapper:function(){return Promise.all([i.e(0),i.e(194),i.e(203),i.e(195)]).then(i.bind(null,123))}},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=n},15:function(e,t,i){"use strict";function n(e,t,i,n,a,h,r,c){var o,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(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__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=o):a&&(o=c?function(){a.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:a),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 n}))},175:function(e,t,i){"use strict";var n=i(27),a=i.n(n),h=i(28),r=i.n(h)()(a.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},177:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a}));var n=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}})},a=[]},186:function(e,t,i){"use strict";var n,a=(n=i(187))&&n.__esModule?n:{default:n},h=i(52);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,n=new Array(t);i<t;i++)n[i]=e[i];return n}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:a.default,group:null}):console.error("Viewer app is not installed")}))},187:function(e,t,i){"use strict";i.r(t);var n=i(177),a=i(102);for(var h in a)["default"].indexOf(h)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(h);i(188);var r=i(15),c=Object(r.a)(a.default,n.a,n.b,!1,null,null,null);t.default=c.exports},188:function(e,t,i){"use strict";var n=i(26),a=i.n(n),h=i(175),r={insert:"head",singleton:!1};a()(h.a,r),h.a.locals},26:function(e,t,i){"use strict";var n,a=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},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={},n=[],a=0;a<e.length;a++){var h=e[a],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}),n.push(f)}return n}function l(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var a=i.nc;a&&(n.nonce=a)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[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,n){var a=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,a);else{var h=document.createTextNode(a),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 n=i.css,a=i.media,h=i.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),h&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(h))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var b=null,u=0;function p(e,t){var i,n,a;if(t.singleton){var h=u++;i=b||(b=l(t)),n=g.bind(null,i,h,!1),a=g.bind(null,i,h,!0)}else i=l(t),n=s.bind(null,i,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var i=o(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var a=c(i[n]);r[a].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}}}},27:function(e,t,i){"use strict";function n(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=[],n=!0,a=!1,h=void 0;try{for(var r,c=e[Symbol.iterator]();!(n=(r=c.next()).done)&&(i.push(r.value),!t||i.length!==t);n=!0);}catch(e){a=!0,h=e}finally{try{n||null==c.return||c.return()}finally{if(a)throw h}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(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 a(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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}e.exports=function(e){var t=n(e,4),i=t[1],a=t[3];if("function"==typeof btoa){var h=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(h),c="/*# ".concat(r," */"),o=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(o).concat([c]).join("\n")}return[i].join("\n")}},28: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,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var h=0;h<this.length;h++){var r=this[h][0];null!=r&&(a[r]=!0)}for(var c=0;c<e.length;c++){var o=[].concat(e[c]);n&&a[o[0]]||(i&&(o[2]?o[2]="".concat(i," and ").concat(o[2]):o[2]=i),t.push(o))}},t}},52: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>
*