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:
authorszaimen <szaimen@e.mail.de>2021-07-08 16:29:05 +0300
committernpmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>2021-07-08 16:53:31 +0300
commit7172ad1962d099f893146cc0e2a87c4159e20ee7 (patch)
treeeff9385d88416437abac23e1df349eb5a1e4599f /js/viewer.js
parente96f62b5c625233393875430f5caf5b0f5879f9e (diff)
Some Design fixes
Signed-off-by: szaimen <szaimen@e.mail.de> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Diffstat (limited to 'js/viewer.js')
-rw-r--r--js/viewer.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/viewer.js b/js/viewer.js
index c26544627..655bccce9 100644
--- a/js/viewer.js
+++ b/js/viewer.js
@@ -1,4 +1,4 @@
-!function(e){function t(t){for(var i,n,a=t[0],r=t[1],c=0,l=[];c<a.length;c++)n=a[c],Object.prototype.hasOwnProperty.call(h,n)&&h[n]&&l.push(h[n][0]),h[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={},h={205:0};function n(t){if(i[t])return i[t].exports;var h=i[t]={i:t,l:!1,exports:{}};return e[t].call(h.exports,h,h.exports,n),h.l=!0,h.exports}n.e=function(e){var t=[],i=h[e];if(0!==i)if(i)t.push(i[2]);else{var a=new Promise((function(t,n){i=h[e]=[t,n]}));t.push(i[2]=a);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:"df119b2f469eb730c902",1:"52a993a4c8d9d2b2350e",2:"5f69781b74ccc3b60dc0",3:"8f0ce5c5847c988153b9",4:"caba8b54197de7aac4ab",5:"bce6bf48333ca265a9bd",6:"1cc0b9197cde16e19ef5",7:"33b70f738feb04bd666d",8:"e921642fbd78856a02fb",9:"5e943743d203f9621660",10:"642de7cdbbc622c6c964",11:"68318d367e52aa608c3b",12:"e8f4669c77b85621b541",13:"7a21bb856451084a498c",14:"1284b651d72aacb59c58",15:"5af87d9b6b7c5658c3b1",16:"ef29b34f03a81c974e01",17:"d89b106164e4e50a6482",18:"fc4528450771898783fa",19:"7e560c8ddd7893648fb8",20:"efad1f74b7e99e0fc0f7",21:"907d55bae3f00acf675d",22:"15b1142126773ed54848",23:"e04bc9601bac45061e99",24:"18eb3a0b1f67b02c0ea8",25:"520e6df5707eb0d4442b",26:"846ae93612274ab08549",27:"60a65547f0eda87840f3",28:"a825f3b2d4fcafdba1c4",29:"cea64e45f31a6d2a44fe",30:"5a1ffffbb254df9aca9f",31:"6ecc65bed4c3a092fed0",32:"75b7283144f440c9e6a0",33:"2df4cb1839c535344450",34:"35dffd82cc85d1f72295",35:"c85d1992c884ee64552a",36:"ee0a64906fc261f6d240",37:"2cbedda6cad7d987d24c",38:"fab4dcac57115352d5eb",39:"a10b032bfc089d7305eb",40:"444673b4194e88ae455e",41:"eceee48b780e8506b62a",42:"8d595b45c405becb92ca",43:"bd0677de445b95b064c8",44:"b705b791adf9ddeb668b",45:"969f37a1d779b978580a",46:"a7ac2641959c2192b97c",47:"8bddecc3c5b5d9d2e41f",48:"1d395d6d0fba8c5e3768",49:"99610f29ebb60e21e31d",50:"8ef84f310dd9e68c2a15",51:"d05e2724aa075b450299",52:"95c11a2a006100a74298",53:"f8a99fc84ba89be40790",54:"1226fb84aa82da609098",55:"5ab43af30f8d3f8c1dfe",56:"b674876bddde4d9a1d86",57:"154a3025d1f233799f93",58:"3a7371646e4e1b2781c4",59:"718dbf9dc23aa76fdb99",60:"bfe630c95de1a48a654f",61:"f651a9cffc5ebd958184",62:"0940db17c832be19941e",63:"21f00066f127650278f6",64:"a3f0cb674e342fe6ccca",65:"769c0de2f28632dee5cd",66:"a37fc2fdfad1d97ce57b",67:"1bff7392e781ef0377c5",68:"7936017dcaa764d412ac",69:"bfae018b850b8b637506",70:"feefa992b532605915f9",71:"c2ec08d5ef1695cdedb4",72:"8e746d002569ce4d52d3",73:"0dc129af17ed2b0957b5",74:"ac86e46991e1b7c14f99",75:"c4c833fbbbe0d5f264ac",76:"5dbd6ccb4290d15dffdb",77:"e8cd3e348bf1b30aaf9a",78:"5b4a87c5690b63afdf90",79:"4cdf6c1c3452a441153a",80:"4706f6738444ed358ec5",81:"91ba6154c88d29190080",82:"a4f320b3d50bcb50146c",83:"dfbb51f5a3fb24906054",84:"9b9d6134b0cf2d4dcb0d",85:"8b6c247197f3256ee7d5",86:"ee97573bb4b67ac7b626",87:"4f37e09331b46f7c9924",88:"6e9027d64a921ed09144",89:"f06d5f918ed2ee14693c",90:"fcd836b4ca96e6d69805",91:"83660107d45167374d77",92:"53547b3f8ae4d4d1f52f",93:"6d616d263b70a717146e",94:"7e4299da1f6109d823b2",95:"6f903c3549f91cc324e8",96:"3324753b7161ceab6441",97:"7a35a518548490fbd734",98:"3ad4d167f17ba9386c40",99:"e5ed4501e6ba6bffaf14",100:"e98cd755986bf58817ea",101:"b7754c826eba1f9f5326",102:"20a0a0d4a2c90775ac43",103:"37b85d609f41126e5e9f",104:"ac1b3c5e66d653727e29",105:"ae183557b54d35f6912e",106:"95732f1260fc3e35cb38",107:"fe651cfdff72e69cc0e6",108:"fb91bc6299789671b253",109:"48fb52f8fa450a65523d",110:"2dce7f7496def8010b81",111:"63a56117a32da0a1ecc2",112:"e9d74c314a77cbff747c",113:"f20ec3e1cafa1ece5057",114:"f3007d5948f573a9d392",115:"9ba5dcc9e2a6c0c546ac",116:"5b987a2de37e6081816a",117:"b217a90be1f9e9ac3cd8",118:"67865d8d01350ee6080c",119:"a6b1b1b3e5daf4282ea7",120:"345b3eb8de5d46c1419f",121:"dc629e23aac34a7427bf",122:"dc28c7c94e2b2d5e56d9",123:"0fae72e5f08d032faec9",124:"064355a8accae2891d62",125:"22e905df115c5d48012f",126:"3641e795f80e54c50bde",127:"1a8b033a2939399de7d0",128:"d500e730d50b490c39cc",129:"fb793649768e2bc9c949",130:"e90db75435ecd8f9606c",131:"fa32597d3866050d6d64",132:"93ba0e2af9f0f1b437b9",133:"93d8ab5415b1e081ec1d",134:"93954c41cd109425ffad",135:"2f5efaf76941f8dccd39",136:"fe74b9470559d9dffb15",137:"7080e77dd8a95e01f617",138:"92161cb7083c689d57b8",139:"1c694a0eed941037cd75",140:"01195da06e771e37da88",141:"c83a9565159f98437f3d",142:"382e567d237b3a955b30",143:"2ce506541e19a8dfe447",144:"718130217f518ab50063",145:"b0c9dba13d79b7edc2b8",146:"09272e8e58996ee34fb5",147:"02c220555394fc408d66",148:"94f1bd0f1fa2f38b655c",149:"c97d3040a559d190b67e",150:"e87235a73598e7bb5ce4",151:"67f08ad2008587ec548f",152:"74a78fb60284ef546e9e",153:"bd4453c606aadfec97e3",154:"abaaa49a38c0d36db589",155:"53f90fecd5e82df1e0d9",156:"8cb2b580a7fd900b0d0a",157:"4a5f1ca5db0ca79def38",158:"5d1bf52d4671ee5851ed",159:"bd2dce9912b128ef3882",160:"af2c93e64545474b6471",161:"81568067e85c6b3dd94f",162:"c6c5616660cf1639d9a1",163:"764c265cbefad8105178",164:"bb92e90d876cb7e5198b",165:"ed369933766f36555108",166:"ef7512cb51bb9ac82174",167:"d3e51a48864349f4d6c3",168:"b69b376bb36b9d1b1a94",169:"053b8cc48decfef552bc",170:"bb69e19d61572c18f86d",171:"319bdc6670303351b34e",172:"d0df2746316493b4b5cf",173:"ba585949b1ac36cef65e",174:"f799c7574b886f7ee26a",175:"e0d706f53fbe56891c5a",176:"08d372bb66b800e526d4",177:"1db0f7a5e0d19c2355f0",178:"e57bfd5dea42f344e530",179:"d2c28ccb67ce121f29fb",180:"d25a72f1f4283f75e52d",181:"655b1c922f8dbfb88c96",182:"2d20c6d9a6e432a6f5b0",183:"260704a9ed1237758908",184:"26cac1636c8fefdb3636",185:"53a7b015185b12672440",186:"f15fde6b2c0ee557ea33",187:"9d72e8a82593c302a98e",188:"684a502f806807fbd6e9",189:"eeb50911a45f0a16e9c5",190:"304cda5d6edac73204d0",191:"596bc5d44a52a1a7a985",192:"a4f25c9f27523b79bae0",193:"2d290c954132ddc68d24",194:"5bd90de73ce1355cb525",195:"ce205fa1a3bbabebd71f",196:"6c1feaddd5f2a6d13671",197:"4677b7e37a5b2810c671",199:"e0cb826e32581027c99e",202:"b54b930036d737bf2815",203:"8390647539703e76e17a",204:"c0dfd3e42fc12ec67777"}[e]}(e);var o=new Error;r=function(t){c.onerror=c.onload=null,clearTimeout(l);var i=h[e];if(0!==i){if(i){var n=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;o.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",o.name="ChunkLoadError",o.type=n,o.request=a,i[1](o)}h[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 h in e)n.d(i,h,function(t){return e[t]}.bind(null,h));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 a=window.textWebpackJsonp=window.textWebpackJsonp||[],r=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c<a.length;c++)t(a[c]);var o=r;n(n.s=156)}({12:function(e,t,i){"use strict";function h(e,t,i,h,n,a,r,c){var o,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),h&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),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 h}))},147:function(e,t,i){"use strict";var h=i(20),n=i.n(h),a=i(21),r=i.n(a)()(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:";AAwEA;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:autofocus="autofocus"\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\tautofocus: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\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},149:function(e,t,i){"use strict";i.d(t,"a",(function(){return h})),i.d(t,"b",(function(){return n}));var h=function(){var e=this.$createElement;return(this._self._c||e)("EditorWrapper",{attrs:{"file-id":this.fileid,"relative-path":this.filename,active:this.active,autofocus:this.autofocus,"share-token":this.shareToken,mime:this.mime}})},n=[]},156:function(e,t,i){"use strict";var h,n=(h=i(157))&&h.__esModule?h:{default:h},a=i(42);
+!function(e){function t(t){for(var i,h,n=t[0],c=t[1],r=0,l=[];r<n.length;r++)h=n[r],Object.prototype.hasOwnProperty.call(a,h)&&a[h]&&l.push(a[h][0]),a[h]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(o&&o(t);l.length;)l.shift()()}var i={},a={205:0};function h(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,h),a.l=!0,a.exports}h.e=function(e){var t=[],i=a[e];if(0!==i)if(i)t.push(i[2]);else{var n=new Promise((function(t,h){i=a[e]=[t,h]}));t.push(i[2]=n);var c,r=document.createElement("script");r.charset="utf-8",r.timeout=120,h.nc&&r.setAttribute("nonce",h.nc),r.src=function(e){return h.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:"6b945c487869101fda5b",1:"5f246fa518883b11f038",2:"01992ffb01f4177f2eeb",3:"78f29df0a2e627dfad80",4:"06f82b9f129f659cecf6",5:"f5dfb69a87d93a59ef41",6:"b5e98132f8cc5d1ed588",7:"7c3fce14df55a798b6fe",8:"b30939f083c63750eaad",9:"59211ca8fb698b91c44c",10:"509b434523dbfcba157b",11:"9349a935483da3f11a3b",12:"e95e5e08f0c7e4b2c179",13:"d77dce9b578801f03342",14:"30f3a26b3a0b69052089",15:"8c4e5acf7248a4f568f6",16:"e7702371f278f4b09707",17:"7ce00cb06e5e4a70b5d7",18:"d4e3d0cd37bf3fe422ba",19:"21e79a34d580f86282cb",20:"1b38b6bec973a7da0e11",21:"0a41aef305ba1c908d32",22:"7f5ff60a3dd2cb1399d2",23:"d4351eb8c77529bc1fd5",24:"4d9125dd82d0f8855495",25:"34881f4d49038c7afdf1",26:"93f9c5c005809a4e9d0e",27:"8d5081c5eedd6d39ca5d",28:"40cd01cc933e3c9de8dd",29:"231e8e690b2785abe2ce",30:"77993e424440389fa5ad",31:"64733f4ca693122ffcdd",32:"8646f8b2bcc7062bbf95",33:"5c90442eda77267bd301",34:"38dcb9bb39b3a6d26020",35:"a4c6dd6d86d3966ce0aa",36:"21e06b98c07ce515c483",37:"adef7faf03f51d295efd",38:"9fcc3fc946f785ca7e12",39:"9981dfed618a3539bfb0",40:"cd2d36da761faf9a5c3f",41:"eed59106a51e9f4341cb",42:"46defe1ae2d46fe5be79",43:"e5c459ee840d3d653649",44:"f120a9631e4eefbca4af",45:"dbdb403fb60658adc55a",46:"879ddbc9024bd17892fe",47:"c828b55c12feafba674c",48:"35b2a12b0ada89391e5b",49:"c6bf7cd7a9d2736bd8d0",50:"1f228e2532a521743563",51:"20f165ab83360ccef9d8",52:"d67802d04fd314bb07ad",53:"133fdf653f3474c947d0",54:"81f38b536d2a911f48a9",55:"a48dcc89c9b3d83c0426",56:"7a5c317381e4d3f08291",57:"92e81bf4f34be390191c",58:"cc3555df159ed6d89af6",59:"75c0569b1393f0f7e275",60:"eb2a9085ab1736a31c4a",61:"653997100d262ff03151",62:"75157e3b91969453972b",63:"05347c05c1b8977b9b30",64:"41deb7b234c30f074f57",65:"82da32c4133281c5e4a3",66:"2ca45aa99ff06b7f8274",67:"f13f6e0a917df1b0753f",68:"ade675e1b54a554bc96a",69:"cf9ccf411e9c2c35a6dc",70:"c0d0e72ac3cb678c1e46",71:"d77a1031ac3f05e352af",72:"f623caca885ca3da5de0",73:"7358c5c76c9372802b4c",74:"a20a70b8d28a21696db5",75:"df37fce39183bf168c71",76:"b83c7a11114cbe500f61",77:"7d743e66cab6b2fe0de1",78:"c2d897ecd21948978b35",79:"a673fe033d15265d11e6",80:"4c85c950c459fbaa515c",81:"a747aaa04962fc19bc02",82:"83fdb4e1822e9403881a",83:"b6f0ddfc7d0e5932e44e",84:"3040d92a95d1eaef5f73",85:"0b207ac0334bf5795922",86:"c1bdd0a049ff81e14446",87:"ed4428691d75a65cb4af",88:"bbb9a3e238aa4719494f",89:"ee16184f2f6af45646d1",90:"e335afc30349c863b636",91:"53ea6add0559647179d2",92:"0156c13f712c43da1bcf",93:"cc0b55795f134f5e956d",94:"7e8ebd6839ff6e787b1e",95:"6ede4c7ac5efb38a58b9",96:"cb722df9ba0242548b34",97:"5da7656f4cd5a437dfee",98:"87b23845114904c54c19",99:"6d8b9eb68f1039005b5d",100:"8910fca8569ecec9e47b",101:"3180d18786c075d22475",102:"25bfc74dfa1129739e8c",103:"510b5f0255d0c5c0e0e7",104:"c7d773c946862d55b516",105:"00d6cf77862e14e3c3d1",106:"64cdc986042018e1e1c2",107:"1ed55e07bf01c38dc720",108:"5c0fb298bd4fd7050802",109:"06e699b2704637010be4",110:"0ab2fb6c0e505a7326a1",111:"55459a3538837c7083cf",112:"ca6d0ce25f44f5ee47b5",113:"4d98457b4688693ed03d",114:"00d3b8fbf8e75abec3ca",115:"4e52484550e693057c3f",116:"56b57c5ff73da60c4675",117:"6e11782c65cdd7724df6",118:"95246598593a76ce0ea3",119:"80823958dc0d91809988",120:"c56443ce5b3eda3905d1",121:"7af6abecee9037b1004f",122:"53785d6d1893358e8d7a",123:"00417d9e9cea935eab65",124:"08179970c0a1daf922ee",125:"f56d7cdad6d05f8ccb4a",126:"b452ebdcdcbe13f91e41",127:"6156987eed7468440b5e",128:"3b51f8b9719d9a052305",129:"bb3fab236ca7a3bbfe68",130:"86fb5fed135dfff70bce",131:"4a61663f61df47f8b30e",132:"a9147b690717734e080c",133:"5ffd555e8ac53f4b42c4",134:"60ddaa364e724472e20e",135:"28112565c1ca02820ca9",136:"144b00141e7bc93982fe",137:"2fd65ad3a6f8d9cbdc99",138:"0e722b87c0719b0b1371",139:"b6dc3c5ce508861bb548",140:"2137ea9a2040bc2760c3",141:"10d8cd8545fca3627a6b",142:"a8e2661bb8cf78455f2a",143:"8f16a5eabedc59fcbd51",144:"48ef4983838ecdee50bf",145:"b36576e1beac2873b145",146:"419a46a6322bb4d89392",147:"821725d0c30cabb779bc",148:"284881fc4a67fa829d34",149:"a26d897627c8d087f445",150:"14553548e022d45854b6",151:"59df5d4a3ed90f688ee3",152:"7c2d8d090efed702812c",153:"4bfb4cd8444958d27927",154:"5f17fbca48cb9c253f41",155:"594ea3c244d573acd1cf",156:"09d8302d5e6f0a5518eb",157:"59961f5d1cafedc968dd",158:"e0336828d9713443a9b2",159:"e205d37bc9c2d76726fb",160:"8f48a91067a08d13924c",161:"d1c28ef7e1677dbb08c5",162:"b3d946239db97ebd957f",163:"0e496c0fbd56a99626d9",164:"21eba52f1ac7bfe3aea7",165:"ccb53cf6a1284cd0315d",166:"b787ea17cb588fc174ae",167:"fa606c241d2cb7c35bd8",168:"87120ad8dcd175de5d06",169:"85448b0fb8ec03f5150f",170:"024632884925f134cf1a",171:"ba5cf14c87cee8fa230f",172:"15c8bb6d954138958426",173:"1d9fca20639011f3cd13",174:"562add97c20edfb3a5c7",175:"ba7a1cfe5b68b8d946d5",176:"c5c6def4294aef7afc03",177:"5efadb38e11cfd42ad01",178:"3a50b5dfc19f7b7a00e2",179:"e495ef286fd2f08a203f",180:"00a4b6035dd648fc8f0b",181:"54d508b7e575649f3d41",182:"e162fa395f7c6a337166",183:"43df5f40d079290fdbc3",184:"0c4eec9119fa216327b7",185:"ef9a72a53fa6fae79775",186:"19fed3b0cc1d521c91a8",187:"a2effd77e3f0359a7515",188:"1e66f5581eaecd41b492",189:"bff67bf6134442e516ff",190:"e5d27a0f62b21b38ac44",191:"4d554411177863fba004",192:"83d6df2c825b8a0cc938",193:"a8627b7e61794caae3f9",194:"2e51c6d1c90e987823d2",195:"f8656d2a382cc29371eb",196:"58822be2d7b6aa137969",197:"b079ec18760c520194a7",199:"320f9bfd5ed71c561145",202:"703a78577de93cc1c391",203:"7a1b4c41246cfcad3cb2",204:"d6d0e92d3a16e524a13a"}[e]}(e);var o=new Error;c=function(t){r.onerror=r.onload=null,clearTimeout(l);var i=a[e];if(0!==i){if(i){var h=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;o.message="Loading chunk "+e+" failed.\n("+h+": "+n+")",o.name="ChunkLoadError",o.type=h,o.request=n,i[1](o)}a[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:r})}),12e4);r.onerror=r.onload=c,document.head.appendChild(r)}return Promise.all(t)},h.m=e,h.c=i,h.d=function(e,t,i){h.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},h.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h.t=function(e,t){if(1&t&&(e=h(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(h.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)h.d(i,a,function(t){return e[t]}.bind(null,a));return i},h.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return h.d(t,"a",t),t},h.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},h.p="/js/",h.oe=function(e){throw console.error(e),e};var n=window.textWebpackJsonp=window.textWebpackJsonp||[],c=n.push.bind(n);n.push=t,n=n.slice();for(var r=0;r<n.length;r++)t(n[r]);var o=c;h(h.s=157)}({12:function(e,t,i){"use strict";function a(e,t,i,a,h,n,c,r){var o,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),a&&(l.functional=!0),n&&(l._scopeId="data-v-"+n),c?(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__),h&&h.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},l._ssrRegister=o):h&&(o=r?function(){h.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:h),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}))},148:function(e,t,i){"use strict";var a=i(20),h=i.n(a),n=i(21),c=i.n(n)()(h.a);c.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:";AAwEA;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:autofocus="autofocus"\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\tautofocus: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\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=c},150:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return h}));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,autofocus:this.autofocus,"share-token":this.shareToken,mime:this.mime}})},h=[]},157:function(e,t,i){"use strict";var a,h=(a=i(158))&&a.__esModule?a:{default:a},n=i(42);
/*
* @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
*
@@ -20,7 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-i.nc=btoa(OC.requestToken),i.p=OC.linkTo("text","js/"),document.addEventListener("DOMContentLoaded",()=>{void 0!==OCA.Viewer?OCA.Viewer.registerHandler({id:"text",mimes:[...a.openMimetypesMarkdown,...a.openMimetypesPlainText],component:n.default,group:null}):console.error("Viewer app is not installed")})},157:function(e,t,i){"use strict";i.r(t);var h=i(149),n=i(78);for(var a in n)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(a);i(158);var r=i(12),c=Object(r.a)(n.default,h.a,h.b,!1,null,null,null);t.default=c.exports},158:function(e,t,i){"use strict";var h=i(19),n=i.n(h),a=i(147),r={insert:"head",singleton:!1};n()(a.a,r),a.a.locals},19:function(e,t,i){"use strict";var h,n=function(){return void 0===h&&(h=Boolean(window&&document&&document.all&&!window.atob)),h},a=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={},h=[],n=0;n<e.length;n++){var a=e[n],o=t.base?a[0]+t.base:a[0],l=i[o]||0,d="".concat(o," ").concat(l);i[o]=l+1;var f=c(d),g={css:a[1],media:a[2],sourceMap:a[3]};-1!==f?(r[f].references++,r[f].updater(g)):r.push({identifier:d,updater:p(g,t),references:1}),h.push(d)}return h}function l(e){var t=document.createElement("style"),h=e.attributes||{};if(void 0===h.nonce){var n=i.nc;n&&(h.nonce=n)}if(Object.keys(h).forEach((function(e){t.setAttribute(e,h[e])})),"function"==typeof e.insert)e.insert(t);else{var r=a(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,h){var n=i?"":h.media?"@media ".concat(h.media," {").concat(h.css,"}"):h.css;if(e.styleSheet)e.styleSheet.cssText=f(t,n);else{var a=document.createTextNode(n),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(a,r[t]):e.appendChild(a)}}function s(e,t,i){var h=i.css,n=i.media,a=i.sourceMap;if(n?e.setAttribute("media",n):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(h+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=h;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(h))}}var b=null,u=0;function p(e,t){var i,h,n;if(t.singleton){var a=u++;i=b||(b=l(t)),h=g.bind(null,i,a,!1),n=g.bind(null,i,a,!0)}else i=l(t),h=s.bind(null,i,t),n=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return h(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;h(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 h=0;h<i.length;h++){var n=c(i[h]);r[n].references--}for(var a=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=a}}}},20:function(e,t,i){"use strict";function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==i)return;var h,n,a=[],r=!0,c=!1;try{for(i=i.call(e);!(r=(h=i.next()).done)&&(a.push(h.value),!t||a.length!==t);r=!0);}catch(e){c=!0,n=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw n}}return a}(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,h=new Array(t);i<t;i++)h[i]=e[i];return h}e.exports=function(e){var t=h(e,4),i=t[1],n=t[3];if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),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")}},21: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,h){"string"==typeof e&&(e=[[null,e,""]]);var n={};if(h)for(var a=0;a<this.length;a++){var r=this[a][0];null!=r&&(n[r]=!0)}for(var c=0;c<e.length;c++){var o=[].concat(e[c]);h&&n[o[0]]||(i&&(o[2]?o[2]="".concat(i," and ").concat(o[2]):o[2]=i),t.push(o))}},t}},42:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openMimetypesPlainText=t.openMimetypesMarkdown=t.openMimetypes=void 0;
+i.nc=btoa(OC.requestToken),i.p=OC.linkTo("text","js/"),document.addEventListener("DOMContentLoaded",()=>{void 0!==OCA.Viewer?OCA.Viewer.registerHandler({id:"text",mimes:[...n.openMimetypesMarkdown,...n.openMimetypesPlainText],component:h.default,group:null}):console.error("Viewer app is not installed")})},158:function(e,t,i){"use strict";i.r(t);var a=i(150),h=i(79);for(var n in h)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return h[e]}))}(n);i(159);var c=i(12),r=Object(c.a)(h.default,a.a,a.b,!1,null,null,null);t.default=r.exports},159:function(e,t,i){"use strict";var a=i(19),h=i.n(a),n=i(148),c={insert:"head",singleton:!1};h()(n.a,c),n.a.locals},19:function(e,t,i){"use strict";var a,h=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},n=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]}}(),c=[];function r(e){for(var t=-1,i=0;i<c.length;i++)if(c[i].identifier===e){t=i;break}return t}function o(e,t){for(var i={},a=[],h=0;h<e.length;h++){var n=e[h],o=t.base?n[0]+t.base:n[0],l=i[o]||0,f="".concat(o," ").concat(l);i[o]=l+1;var d=r(f),g={css:n[1],media:n[2],sourceMap:n[3]};-1!==d?(c[d].references++,c[d].updater(g)):c.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 h=i.nc;h&&(a.nonce=h)}if(Object.keys(a).forEach((function(e){t.setAttribute(e,a[e])})),"function"==typeof e.insert)e.insert(t);else{var c=n(e.insert||"head");if(!c)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");c.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 h=i?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(e.styleSheet)e.styleSheet.cssText=d(t,h);else{var n=document.createTextNode(h),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(n,c[t]):e.appendChild(n)}}function s(e,t,i){var a=i.css,h=i.media,n=i.sourceMap;if(h?e.setAttribute("media",h):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),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,h;if(t.singleton){var n=u++;i=b||(b=l(t)),a=g.bind(null,i,n,!1),h=g.bind(null,i,n,!0)}else i=l(t),a=s.bind(null,i,t),h=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 h()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=h());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 h=r(i[a]);c[h].references--}for(var n=o(e,t),l=0;l<i.length;l++){var f=r(i[l]);0===c[f].references&&(c[f].updater(),c.splice(f,1))}i=n}}}},20:function(e,t,i){"use strict";function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==i)return;var a,h,n=[],c=!0,r=!1;try{for(i=i.call(e);!(c=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);c=!0);}catch(e){r=!0,h=e}finally{try{c||null==i.return||i.return()}finally{if(r)throw h}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(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 h(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 h(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],h=t[3];if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(h)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),r="/*# ".concat(c," */"),o=h.sources.map((function(e){return"/*# sourceURL=".concat(h.sourceRoot||"").concat(e," */")}));return[i].concat(o).concat([r]).join("\n")}return[i].join("\n")}},21: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 h={};if(a)for(var n=0;n<this.length;n++){var c=this[n][0];null!=c&&(h[c]=!0)}for(var r=0;r<e.length;r++){var o=[].concat(e[r]);a&&h[o[0]]||(i&&(o[2]?o[2]="".concat(i," and ").concat(o[2]):o[2]=i),t.push(o))}},t}},42: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>
*
@@ -42,5 +42,5 @@ i.nc=btoa(OC.requestToken),i.p=OC.linkTo("text","js/"),document.addEventListener
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-const h=["text/markdown"];t.openMimetypesMarkdown=h;const n=["text/plain","application/cmd","application/x-empty","application/x-msdos-program","application/javascript","application/json","application/x-perl","application/x-php","application/x-tex","application/xml","application/yaml","text/css","text/csv","text/html","text/org","text/x-c","text/x-c++src","text/x-h","text/x-java-source","text/x-ldif","text/x-python","text/x-shellscript"];t.openMimetypesPlainText=n;const a=[...h,...n];t.openMimetypes=a},78:function(e,t,i){"use strict";i.r(t);var h=i(79),n=i.n(h);for(var a in h)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return h[e]}))}(a);t.default=n.a},79:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var h={name:"ViewerComponent",components:{EditorWrapper:()=>Promise.all([i.e(193),i.e(202),i.e(194)]).then(i.bind(null,103))},props:{filename:{type:String,default:null},fileid:{type:Number,default:null},active:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!0},shareToken:{type:String,default:null},mime:{type:String,default:null}},beforeMount(){void 0!==this.$parent.$parent&&this.$parent.$parent.onResize&&window.removeEventListener("resize",this.$parent.$parent.onResize)}};t.default=h}});
+const a=["text/markdown"];t.openMimetypesMarkdown=a;const h=["text/plain","application/cmd","application/x-empty","application/x-msdos-program","application/javascript","application/json","application/x-perl","application/x-php","application/x-tex","application/xml","application/yaml","text/css","text/csv","text/html","text/org","text/x-c","text/x-c++src","text/x-h","text/x-java-source","text/x-ldif","text/x-python","text/x-shellscript"];t.openMimetypesPlainText=h;const n=[...a,...h];t.openMimetypes=n},79:function(e,t,i){"use strict";i.r(t);var a=i(80),h=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(n);t.default=h.a},80:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={name:"ViewerComponent",components:{EditorWrapper:()=>Promise.all([i.e(193),i.e(202),i.e(194)]).then(i.bind(null,104))},props:{filename:{type:String,default:null},fileid:{type:Number,default:null},active:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!0},shareToken:{type:String,default:null},mime:{type:String,default:null}},beforeMount(){void 0!==this.$parent.$parent&&this.$parent.$parent.onResize&&window.removeEventListener("resize",this.$parent.$parent.onResize)}};t.default=a}});
//# sourceMappingURL=viewer.js.map \ No newline at end of file