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

viewer.js « js - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f06cd7ddc211a510c7866df1dfe2c64eb96cb676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
!function(e){function t(t){for(var i,n,a=t[0],r=t[1],c=0,o=[];c<a.length;c++)n=a[c],Object.prototype.hasOwnProperty.call(h,n)&&h[n]&&o.push(h[n][0]),h[n]=0;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);for(l&&l(t);o.length;)o.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:"a4ced4e9a39f3193502c",203:"8390647539703e76e17a",204:"c0dfd3e42fc12ec67777"}[e]}(e);var l=new Error;r=function(t){c.onerror=c.onload=null,clearTimeout(o);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;l.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",l.name="ChunkLoadError",l.type=n,l.request=a,i[1](l)}h[e]=void 0}};var o=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 l=r;n(n.s=156)}({12:function(e,t,i){"use strict";function h(e,t,i,h,n,a,r,c){var l,o="function"==typeof e?e.options:e;if(t&&(o.render=t,o.staticRenderFns=i,o._compiled=!0),h&&(o.functional=!0),a&&(o._scopeId="data-v-"+a),r?(l=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)},o._ssrRegister=l):n&&(l=c?function(){n.call(this,(o.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(o.functional){o._injectStyles=l;var d=o.render;o.render=function(e,t){return l.call(t),d(e,t)}}else{var f=o.beforeCreate;o.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:o}}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:";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},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,"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);
/*
 * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * 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 l(e,t){for(var i={},h=[],n=0;n<e.length;n++){var a=e[n],l=t.base?a[0]+t.base:a[0],o=i[l]||0,d="".concat(l," ").concat(o);i[l]=o+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 o(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=o(t)),h=g.bind(null,i,a,!1),n=g.bind(null,i,a,!0)}else i=o(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=l(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=l(e,t),o=0;o<i.length;o++){var d=c(i[o]);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){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var i=[],h=!0,n=!1,a=void 0;try{for(var r,c=e[Symbol.iterator]();!(h=(r=c.next()).done)&&(i.push(r.value),!t||i.length!==t);h=!0);}catch(e){n=!0,a=e}finally{try{h||null==c.return||c.return()}finally{if(n)throw a}}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,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," */"),l=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[i].concat(l).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 l=[].concat(e[c]);h&&n[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),t.push(l))}},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>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * 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},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}});
//# sourceMappingURL=viewer.js.map