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

files.js « js - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 187672847e3f712e1a25eab009ae214805bd302f (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
!function(e){function t(t){for(var i,r,a=t[0],o=t[1],c=0,s=[];c<a.length;c++)r=a[c],Object.prototype.hasOwnProperty.call(n,r)&&n[r]&&s.push(n[r][0]),n[r]=0;for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i]);for(h&&h(t);s.length;)s.shift()()}var i={},n={191:0};function r(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,r),n.l=!0,n.exports}r.e=function(e){var t=[],i=n[e];if(0!==i)if(i)t.push(i[2]);else{var a=new Promise(function(t,r){i=n[e]=[t,r]});t.push(i[2]=a);var o,c=document.createElement("script");c.charset="utf-8",c.timeout=120,r.nc&&c.setAttribute("nonce",r.nc),c.src=function(e){return r.p+""+({0:"vendor",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/cal",24:"highlight/capnproto",25:"highlight/ceylon",26:"highlight/clean",27:"highlight/clojure",28:"highlight/clojure-repl",29:"highlight/cmake",30:"highlight/coffeescript",31:"highlight/coq",32:"highlight/cos",33:"highlight/cpp",34:"highlight/crmsh",35:"highlight/crystal",36:"highlight/cs",37:"highlight/csp",38:"highlight/css",39:"highlight/d",40:"highlight/dart",41:"highlight/delphi",42:"highlight/diff",43:"highlight/django",44:"highlight/dns",45:"highlight/dockerfile",46:"highlight/dos",47:"highlight/dsconfig",48:"highlight/dts",49:"highlight/dust",50:"highlight/ebnf",51:"highlight/elixir",52:"highlight/elm",53:"highlight/erb",54:"highlight/erlang",55:"highlight/erlang-repl",56:"highlight/excel",57:"highlight/fix",58:"highlight/flix",59:"highlight/fortran",60:"highlight/fsharp",61:"highlight/gams",62:"highlight/gauss",63:"highlight/gcode",64:"highlight/gherkin",65:"highlight/glsl",66:"highlight/gml",67:"highlight/go",68:"highlight/golo",69:"highlight/gradle",70:"highlight/groovy",71:"highlight/haml",72:"highlight/handlebars",73:"highlight/haskell",74:"highlight/haxe",75:"highlight/hsp",76:"highlight/htmlbars",77:"highlight/http",78:"highlight/hy",79:"highlight/inform7",80:"highlight/ini",81:"highlight/irpf90",82:"highlight/isbl",83:"highlight/java",84:"highlight/javascript",85:"highlight/jboss-cli",86:"highlight/json",87:"highlight/julia",88:"highlight/julia-repl",89:"highlight/kotlin",90:"highlight/lasso",91:"highlight/ldif",92:"highlight/leaf",93:"highlight/less",94:"highlight/lisp",95:"highlight/livecodeserver",96:"highlight/livescript",97:"highlight/llvm",98:"highlight/lsl",99:"highlight/lua",100:"highlight/makefile",101:"highlight/markdown",102:"highlight/mathematica",103:"highlight/matlab",104:"highlight/maxima",105:"highlight/mel",106:"highlight/mercury",107:"highlight/mipsasm",108:"highlight/mizar",109:"highlight/mojolicious",110:"highlight/monkey",111:"highlight/moonscript",112:"highlight/n1ql",113:"highlight/nginx",114:"highlight/nimrod",115:"highlight/nix",116:"highlight/nsis",117:"highlight/objectivec",118:"highlight/ocaml",119:"highlight/openscad",120:"highlight/oxygene",121:"highlight/parser3",122:"highlight/perl",123:"highlight/pf",124:"highlight/pgsql",125:"highlight/php",126:"highlight/plaintext",127:"highlight/pony",128:"highlight/powershell",129:"highlight/processing",130:"highlight/profile",131:"highlight/prolog",132:"highlight/properties",133:"highlight/protobuf",134:"highlight/puppet",135:"highlight/purebasic",136:"highlight/python",137:"highlight/q",138:"highlight/qml",139:"highlight/r",140:"highlight/reasonml",141:"highlight/rib",142:"highlight/roboconf",143:"highlight/routeros",144:"highlight/rsl",145:"highlight/ruby",146:"highlight/ruleslanguage",147:"highlight/rust",148:"highlight/sas",149:"highlight/scala",150:"highlight/scheme",151:"highlight/scilab",152:"highlight/scss",153:"highlight/shell",154:"highlight/smali",155:"highlight/smalltalk",156:"highlight/sml",157:"highlight/sqf",158:"highlight/sql",159:"highlight/stan",160:"highlight/stata",161:"highlight/step21",162:"highlight/stylus",163:"highlight/subunit",164:"highlight/swift",165:"highlight/taggerscript",166:"highlight/tap",167:"highlight/tcl",168:"highlight/tex",169:"highlight/thrift",170:"highlight/tp",171:"highlight/twig",172:"highlight/typescript",173:"highlight/vala",174:"highlight/vbnet",175:"highlight/vbscript",176:"highlight/vbscript-html",177:"highlight/verilog",178:"highlight/vhdl",179:"highlight/vim",180:"highlight/x86asm",181:"highlight/xl",182:"highlight/xml",183:"highlight/xquery",184:"highlight/yaml",185:"highlight/zephir",186:"vendors~editor-collab~editor-guest",187:"editor",188:"editor-collab",189:"editor-guest",190:"editor-rich",192:"files-modal",195:"vendors~editor",196:"vendors~editor-rich",197:"vendors~files-modal"}[e]||e)+".js?v="+{0:"6dce47ecf0c075d40367",1:"3724c18a071999e46c97",2:"a6dfc67bfcd69cd2737a",3:"30aac4036800ae8c3ba2",4:"ceb122a166b48e372c02",5:"22780c175e13ebb25c04",6:"98865f7471cf55cd26f4",7:"863597146070e415fcd3",8:"971d1f954a38e3bf7f79",9:"3ffdd250400dddd1b88f",10:"a68674c5388bbf4e080d",11:"3ac0336e6a287674e5a2",12:"ae4c63a988fa5652c149",13:"7b4df62fd1d4ea258f12",14:"a91df3070af6c76d4ccb",15:"7a6406112ed16470fe17",16:"f6b286c1a5c92ddf3015",17:"7bfdac76fe07b62bd2af",18:"b15bce537c17feb21fb6",19:"69ce1ce3b2b1d3af7e4c",20:"66ad9fc1b877cfae07e3",21:"89c1dc37d662472a68d2",22:"89eb003d444abc980c7f",23:"7d2a23179d9b97aab231",24:"36d6617256ee5f2228d3",25:"f86dfb701c9e8f1783ac",26:"58d727be5c47fd0067df",27:"7cb33b083abdf7cefc41",28:"cec5026ffeb0d6436216",29:"8570d64b6dfbca8e547f",30:"a555c0d3037958ee5d04",31:"93c8899e81dadafd305d",32:"5fba7af7b2997c5dd787",33:"91edf1ea8bdcf2d49e56",34:"3a05c3928aa2c09ee9fd",35:"7d2f28a59738fd7eaf0b",36:"80eaca7754e63e4be8c3",37:"6ac84ed95c19905c4554",38:"38f7e09e7f9e7ce94a77",39:"faa57b430597162bfd81",40:"298ad9860610faa18434",41:"4056f6bb3e527ac8c4be",42:"7cd4e883c3486fb2a6a4",43:"fbccf4cf5bcd13f2ea93",44:"0b4f75de0b9f42a8aa85",45:"0161f0121cf6cff535df",46:"de8ee588f71a339d97af",47:"2e87f249c100cdf65b1a",48:"cd29bd4a807f5bcb2592",49:"253da41e4bdfde58f706",50:"583ddc18d1d851c6d008",51:"d0d7435c3e02667a71f4",52:"698ae8a2e965d415ba1e",53:"c2beecb8dc6f56419cc1",54:"a1f49af299d989085124",55:"f275c34bdb38163315ca",56:"33099e3ea7e80e1f254a",57:"af6a6e205ed8967034e5",58:"4ef39f1f527d3ff4695c",59:"521edc32822672db9e25",60:"539f48f62291b1e365d3",61:"060a85978bf08f1ac10e",62:"c046cae9d7dde9cefb89",63:"617927cb2277c6244cfb",64:"f9aa58d8d8c65def3937",65:"1487e0ea1fdf0aeb48c0",66:"8b496dccae7bf68f7f40",67:"b00c570a01761f222959",68:"81d963e3a058719d8ef6",69:"40ea341ee2700e94d906",70:"a14efe60fe31f1aa799f",71:"7a30e2d4a8066006c797",72:"10405265c9526dbd73c4",73:"01c9324024e54785d427",74:"7257bd06acadd907dc29",75:"cdf1526f31ec6cb84a14",76:"8d867366343bbb809f2c",77:"2dc0bea79c7c55aea676",78:"40fa17e4a2a36662c8c2",79:"2fb83bcb9def5dd0547b",80:"4c1d23dfa42d318a3e6a",81:"55f9c2a8084d3e273a62",82:"ee48c255be718c87849d",83:"232e94a9898f7a705ef3",84:"01d49e78763eceeaedd7",85:"c29286c2c9c3a305a210",86:"81d72e2b0532a5eb24eb",87:"d92aebe6fd3b438b63b0",88:"b52f85581d33ec6e7454",89:"cf265986f746f2da2248",90:"8f6a59074a11d0ef626a",91:"bc83dac0911871ece35a",92:"71ffe47b804687d236e3",93:"a8840bff4f8f6deb3e42",94:"d5e9c196892749999011",95:"b7d06c7a6bc8d5970da3",96:"1031b9490284bda7c180",97:"7b385e01e1586732d098",98:"b70dce3a8581f20cc14d",99:"5d3e6a91d3ce9cedd0cb",100:"4d0b7ec69abad07d73c8",101:"eeec5bee2ade944e3f2e",102:"a28b126175e894b25374",103:"cdbb156b273f03064583",104:"dbdefe515727b52337e2",105:"bb83fc7ce4a1f170c096",106:"11c372572b0a006c4453",107:"612514d7d348445ca270",108:"0faf57a9ba563f5294b1",109:"9f9d12377f2def35b3dc",110:"fd3e05e942ab53711955",111:"60cbd5dc202a550768ed",112:"1c983364216bedef4476",113:"871515aa6b0bc29aa048",114:"190df3149057730e2277",115:"fb3895f1d4fa09f8ec56",116:"12953a08bd969625698c",117:"3c60d7679176ea78f75b",118:"01038bd0bdd6e631ca39",119:"9ba28f07badf1dccbfb7",120:"6ddf82bb2815a04e4909",121:"6e78f0092435cf64217f",122:"fe8745496c2449682538",123:"0faaf717806119373ac2",124:"af204faa1118650b4f5c",125:"26ca938b04ad73eab922",126:"d5116f2315b379cd7326",127:"a04ab7105dda436133eb",128:"38d690b78e8a07a1c7b8",129:"553dd5e6b0b634dc7b99",130:"abb8c11503de78ffb44b",131:"143631a114a10276a4eb",132:"009ab4a8bab85e5e9f05",133:"f4ca16e7e9290c6e8816",134:"b849a1dbfd5ca26cfe10",135:"4552ca2e1dab99c67d59",136:"28420e8339f693c0cbdf",137:"031ea32b38e64d6f80fd",138:"db16190ecf043a043a8b",139:"8d8204128d284a7fb6ad",140:"b9bcb02d0163ecbc2af4",141:"89b02023d71c63685999",142:"5c7247b40630ed454c81",143:"0a23d3a18b0e3edaf1e1",144:"621e3527417d6f9135ff",145:"2d5f45ca31a69da7e79f",146:"ead08fe1a4f68dce0d3d",147:"bbd035295a74805f8eaf",148:"92edcf6cd49aa341f63a",149:"52b84f5a3a629ba84ddc",150:"7a07c6bce66e37b58a11",151:"70df6555c74949449d67",152:"b8ffc7071b810848ab15",153:"bd1900bef3a41bacdf35",154:"9a96cd63e85c887bdb23",155:"67bd1215f0c573cbf959",156:"53efbb36465659dfd8f5",157:"6d841947556763ca4f83",158:"bef78177ca3dc503e5fc",159:"914a377efbe90d59ff31",160:"65e8bf4acb9493f77baa",161:"8da1079a757cda872729",162:"04c2c5c17aa84ab715d1",163:"15d4d0efd455b2bfcbc3",164:"6a18fae0250b61e9848e",165:"79244f4e2e8e69db3aee",166:"c665c4c9fccea901624a",167:"3749ab9fe8174746fb84",168:"d9a14ff3c97217ec1a38",169:"368f59e1e68282fd278b",170:"ba739802bec57b6ae997",171:"9f21c3bfe3eff9f53c2d",172:"a038b6cdf8656054897e",173:"ee148e5e8907392d9805",174:"edf407f945882f285267",175:"f68d44a1d33280b11a0e",176:"edb950c6b760addc42fa",177:"654251b5972282e723c4",178:"877f04b04078c149c961",179:"4cd896bbe27c87430865",180:"aac5aeb26ccdf5703c08",181:"9dd5772c8c1e7052b93c",182:"43cb8a57fa9a8b7dc33d",183:"7a8569fae0710902c08b",184:"a4e827a778e8838a36a3",185:"0e8ade3d3766e88a318f",186:"ef47d6ad97ee38bc3556",187:"a248d508b452bc1c32dd",188:"70a12555324b7ca6caf5",189:"c86725d2deb898f249f4",190:"308c40b9d5021d1ebe39",192:"7627ea5829b31b0f8fda",195:"396b0d88cb6b52f70331",196:"807969dd8eeb3904d792",197:"987bd56be9e883e57b3d"}[e]}(e);var h=new Error;o=function(t){c.onerror=c.onload=null,clearTimeout(s);var i=n[e];if(0!==i){if(i){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;h.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",h.name="ChunkLoadError",h.type=r,h.request=a,i[1](h)}n[e]=void 0}};var s=setTimeout(function(){o({type:"timeout",target:c})},12e4);c.onerror=c.onload=o,document.head.appendChild(c)}return Promise.all(t)},r.m=e,r.c=i,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/js/",r.oe=function(e){throw console.error(e),e};var a=window.textWebpackJsonp=window.textWebpackJsonp||[],o=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c<a.length;c++)t(a[c]);var h=o;r(r.s=37)}([function(e,t,i){"use strict";var n=i(6),r=i(18),a=Object.prototype.toString;function o(e){return"[object Array]"===a.call(e)}function c(e){return null!==e&&"object"==typeof e}function h(e){return"[object Function]"===a.call(e)}function s(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isBuffer:r,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:c,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:h,isStream:function(e){return c(e)&&h(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:s,merge:function e(){var t={};function i(i,n){"object"==typeof t[n]&&"object"==typeof i?t[n]=e(t[n],i):t[n]=i}for(var n=0,r=arguments.length;n<r;n++)s(arguments[n],i);return t},deepMerge:function e(){var t={};function i(i,n){"object"==typeof t[n]&&"object"==typeof i?t[n]=e(t[n],i):t[n]="object"==typeof i?e({},i):i}for(var n=0,r=arguments.length;n<r;n++)s(arguments[n],i);return t},extend:function(e,t,i){return s(t,function(t,r){e[r]=i&&"function"==typeof t?n(t,i):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return n}),i.d(t,"c",function(){return r});
/*
 * @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/>.
 *
 */
var n=["text/markdown"],r=["text/plain","application/cmd","application/javascript","application/json","application/xml","application/x-empty","application/x-msdos-program","application/x-php","application/x-pearl","application/x-text","application/yaml"],a=[].concat(n,r)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRootUrl=function(){return OC.getRootPath()},t.generateUrl=function(e,t,i){return OC.generateUrl(e,t,i)},t.generateFilePath=function(e,t,i){return OC.filePath(e,t,i)},t.generateRemoteUrl=function(e){return OC.linkToRemote(e)},t.generateOcsUrl=function(e,t){return void 0===t&&(t=2),OC.linkToOCS(e,t)}},function(e,i,n){"use strict";n.d(i,"a",function(){return s}),n.d(i,"b",function(){return l}),n.d(i,"c",function(){return f});var r=n(14),a=n.n(r),o=n(2),c=n(1);function h(e,t,i,n,r,a,o){try{var c=e[a](o),h=c.value}catch(e){return void i(e)}c.done?t(h):Promise.resolve(h).then(n,r)}
/*
 * @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/>.
 *
 */
var s=function(){var e,t=(e=regeneratorRuntime.mark(function e(t,i){var n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a()({method:"PROPFIND",url:Object(o.generateRemoteUrl)("dav/files/".concat(t).concat(i)),headers:{requesttoken:OC.requestToken,"content-Type":"text/xml"},data:'<?xml version="1.0"?>\n<d:propfind  xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns" xmlns:ocs="http://open-collaboration-services.org/ns">\n  <d:prop>\n    <d:getlastmodified />\n    <d:getetag />\n    <d:getcontenttype />\n    <d:resourcetype />\n    <oc:fileid />\n    <oc:permissions />\n    <oc:size />\n    <d:getcontentlength />\n    <nc:has-preview />\n    <nc:mount-type />\n    <nc:is-encrypted />\n    <ocs:share-permissions />\n    <oc:tags />\n    <oc:favorite />\n    <oc:comments-unread />\n    <oc:owner-id />\n    <oc:owner-display-name />\n    <oc:share-types />\n  </d:prop>\n</d:propfind>'});case 2:return n=e.sent,r=OCA.Files.App.fileList.filesClient._client.parseMultiStatus(n.data),e.abrupt("return",r.map(function(e){var t=OCA.Files.App.fileList.filesClient._parseFileInfo(e);return t.href=e.href,t}));case 5:case"end":return e.stop()}},e)}),function(){var t=this,i=arguments;return new Promise(function(n,r){var a=e.apply(t,i);function o(e){h(a,n,r,o,c,"next",e)}function c(e){h(a,n,r,o,c,"throw",e)}o(void 0)})});return function(e,i){return t.apply(this,arguments)}}(),f=function(){var e={attach:function(e){var i=e.fileList;"files"!==i.id&&"files.public"!==i.id||e.addMenuEntry({id:"file",displayName:t("text","New text document"),templateName:t("text","New text document.md"),iconClass:"icon-filetype-text",fileType:"file",actionHandler:function(e){i.createFile(e).then(function(e,t){var n=new OCA.Files.FileInfoModel(t);void 0!==OCA.Viewer?OCA.Files.fileActions.triggerAction("view",n,i):void 0===OCA.Viewer&&OCA.Files.fileActions.triggerAction("Edit with text app",n,i)})}})}};OC.Plugins.register("OCA.Files.NewFileMenu",e)},l=function(){var e,i=document.getElementById("sharingToken")?document.getElementById("sharingToken").value:null,r=document.getElementById("dir").value;if(!i||""!==r){var a=document.createElement("div");a.id="text-viewer-fallback",document.body.appendChild(a);for(var o=0;o<c.a.length;o++)e=c.a[o],OCA.Files.fileActions.register(e,"Edit with text app",OC.PERMISSION_UPDATE|OC.PERMISSION_READ,OC.imagePath("core","actions/rename"),function(e){var t=window.FileList.findFile(e);Promise.all([n.e(0).then(n.bind(null,15)),Promise.all([n.e(0),n.e(197),n.e(192)]).then(n.bind(null,34))]).then(function(n){var r=window.FileList.getCurrentDirectory()+"/"+e,o=n[0].default;o.prototype.t=window.t,o.prototype.n=window.n,o.prototype.OCA=window.OCA;var c=n[1].default;new o({render:function(e){return e(c,{props:{fileId:t?t.id:null,active:!0,shareToken:i,relativePath:r,mimeType:t.mimetype}})}}).$mount(a)})},t("text","Edit")),OCA.Files.fileActions.setDefault(c.a[o],"Edit with text app")}}},function(e,t,i){"use strict";var n={name:"FilesEditor",components:{EditorWrapper:function(){return Promise.all([i.e(0),i.e(195),i.e(187)]).then(i.bind(null,35))}},props:{davPath:{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)}},r=i(5),a=Object(r.a)(n,function(){var e=this.$createElement;return(this._self._c||e)("editor-wrapper",{attrs:{"file-id":this.fileId,"relative-path":this.davPath,active:this.active,"share-token":this.shareToken,mime:this.mime}})},[],!1,null,null,null);t.a=a.exports},function(e,t,i){"use strict";function n(e,t,i,n,r,a,o,c){var h,s="function"==typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=i,s._compiled=!0),n&&(s.functional=!0),a&&(s._scopeId="data-v-"+a),o?(h=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},s._ssrRegister=h):r&&(h=c?function(){r.call(this,this.$root.$options.shadowRoot)}:r),h)if(s.functional){s._injectStyles=h;var f=s.render;s.render=function(e,t){return h.call(t),f(e,t)}}else{var l=s.beforeCreate;s.beforeCreate=l?[].concat(l,h):[h]}return{exports:e,options:s}}i.d(t,"a",function(){return n})},function(e,t,i){"use strict";e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return e.apply(t,i)}}},function(e,t,i){"use strict";var n=i(0);function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,i){if(!t)return e;var a;if(i)a=i(t);else if(n.isURLSearchParams(t))a=t.toString();else{var o=[];n.forEach(t,function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),o.push(r(t)+"="+r(e))}))}),a=o.join("&")}if(a){var c=e.indexOf("#");-1!==c&&(e=e.slice(0,c)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,i){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,i){"use strict";(function(t){var n=i(0),r=i(23),a={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,h={adapter:(void 0!==t&&"[object process]"===Object.prototype.toString.call(t)?c=i(10):"undefined"!=typeof XMLHttpRequest&&(c=i(10)),c),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};h.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){h.headers[e]={}}),n.forEach(["post","put","patch"],function(e){h.headers[e]=n.merge(a)}),e.exports=h}).call(this,i(16))},function(e,t,i){"use strict";var n=i(0),r=i(24),a=i(7),o=i(26),c=i(27),h=i(11);e.exports=function(e){return new Promise(function(t,s){var f=e.data,l=e.headers;n.isFormData(f)&&delete l["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",g=e.auth.password||"";l.Authorization="Basic "+btoa(d+":"+g)}if(u.open(e.method.toUpperCase(),a(e.url,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,u.onreadystatechange=function(){if(u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in u?o(u.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:i,config:e,request:u};r(t,s,n),u=null}},u.onabort=function(){u&&(s(h("Request aborted",e,"ECONNABORTED",u)),u=null)},u.onerror=function(){s(h("Network Error",e,null,u)),u=null},u.ontimeout=function(){s(h("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",u)),u=null},n.isStandardBrowserEnv()){var p=i(28),b=(e.withCredentials||c(e.url))&&e.xsrfCookieName?p.read(e.xsrfCookieName):void 0;b&&(l[e.xsrfHeaderName]=b)}if("setRequestHeader"in u&&n.forEach(l,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete l[t]:u.setRequestHeader(t,e)}),e.withCredentials&&(u.withCredentials=!0),e.responseType)try{u.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){u&&(u.abort(),s(e),u=null)}),void 0===f&&(f=null),u.send(f)})}},function(e,t,i){"use strict";var n=i(25);e.exports=function(e,t,i,r,a){var o=new Error(e);return n(o,t,i,r,a)}},function(e,t,i){"use strict";var n=i(0);e.exports=function(e,t){t=t||{};var i={};return n.forEach(["url","method","params","data"],function(e){void 0!==t[e]&&(i[e]=t[e])}),n.forEach(["headers","auth","proxy"],function(r){n.isObject(t[r])?i[r]=n.deepMerge(e[r],t[r]):void 0!==t[r]?i[r]=t[r]:n.isObject(e[r])?i[r]=n.deepMerge(e[r]):void 0!==e[r]&&(i[r]=e[r])}),n.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(n){void 0!==t[n]?i[n]=t[n]:void 0!==e[n]&&(i[n]=e[n])}),i}},function(e,t,i){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,i){e.exports=i(17)},,function(e,t){var i,n,r=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function c(e){if(i===setTimeout)return setTimeout(e,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var h,s=[],f=!1,l=-1;function u(){f&&h&&(f=!1,h.length?s=h.concat(s):l=-1,s.length&&d())}function d(){if(!f){var e=c(u);f=!0;for(var t=s.length;t;){for(h=s,s=[];++l<t;)h&&h[l].run();l=-1,t=s.length}h=null,f=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function p(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];s.push(new g(e,t)),1!==s.length||f||c(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,i){"use strict";var n=i(0),r=i(6),a=i(19),o=i(12);function c(e){var t=new a(e),i=r(a.prototype.request,t);return n.extend(i,a.prototype,t),n.extend(i,t),i}var h=c(i(9));h.Axios=a,h.create=function(e){return c(o(h.defaults,e))},h.Cancel=i(13),h.CancelToken=i(31),h.isCancel=i(8),h.all=function(e){return Promise.all(e)},h.spread=i(32),e.exports=h,e.exports.default=h},function(e,t){
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,i){"use strict";var n=i(0),r=i(7),a=i(20),o=i(21),c=i(12);function h(e){this.defaults=e,this.interceptors={request:new a,response:new a}}h.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=c(this.defaults,e)).method=e.method?e.method.toLowerCase():"get";var t=[o,void 0],i=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)i=i.then(t.shift(),t.shift());return i},h.prototype.getUri=function(e){return e=c(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(e){h.prototype[e]=function(t,i){return this.request(n.merge(i||{},{method:e,url:t}))}}),n.forEach(["post","put","patch"],function(e){h.prototype[e]=function(t,i,r){return this.request(n.merge(r||{},{method:e,url:t,data:i}))}}),e.exports=h},function(e,t,i){"use strict";var n=i(0);function r(){this.handlers=[]}r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,i){"use strict";var n=i(0),r=i(22),a=i(8),o=i(9),c=i(29),h=i(30);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.baseURL&&!c(e.url)&&(e.url=h(e.baseURL,e.url)),e.headers=e.headers||{},e.data=r(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||o.adapter)(e).then(function(t){return s(e),t.data=r(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(s(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,i){"use strict";var n=i(0);e.exports=function(e,t,i){return n.forEach(i,function(i){e=i(e,t)}),e}},function(e,t,i){"use strict";var n=i(0);e.exports=function(e,t){n.forEach(e,function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])})}},function(e,t,i){"use strict";var n=i(11);e.exports=function(e,t,i){var r=i.config.validateStatus;!r||r(i.status)?e(i):t(n("Request failed with status code "+i.status,i.config,null,i.request,i))}},function(e,t,i){"use strict";e.exports=function(e,t,i,n,r){return e.config=t,i&&(e.code=i),e.request=n,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,i){"use strict";var n=i(0),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,i,a,o={};return e?(n.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=n.trim(e.substr(0,a)).toLowerCase(),i=n.trim(e.substr(a+1)),t){if(o[t]&&r.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([i]):o[t]?o[t]+", "+i:i}}),o):o}},function(e,t,i){"use strict";var n=i(0);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(e){var n=e;return t&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=r(window.location.href),function(t){var i=n.isString(t)?r(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return!0}},function(e,t,i){"use strict";var n=i(0);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,i,r,a,o){var c=[];c.push(e+"="+encodeURIComponent(t)),n.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),n.isString(r)&&c.push("path="+r),n.isString(a)&&c.push("domain="+a),!0===o&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,i){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,i){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,i){"use strict";var n=i(13);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var i=this;e(function(e){i.reason||(i.reason=new n(e),t(i.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},function(e,t,i){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},,,,,function(e,t,i){"use strict";i.r(t);var n=i(4),r=i(3),a=i(1);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,i=new Array(e.length);t<e.length;t++)i[t]=e[t];return i}}
/*
 * @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/>.
 *
 */(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}i.nc=btoa(OC.requestToken),i.p=OC.linkTo("text","js/"),Object(r.c)(),document.addEventListener("DOMContentLoaded",function(){if(void 0===OCA.Viewer)return console.error("Viewer app is not installed"),void Object(r.b)();OCA.Viewer.registerHandler({id:"text",mimes:[].concat(o(a.b),o(a.c)),component:n.a,group:null})}),OCA.Text={Editor:n.a}}]);
//# sourceMappingURL=files.js.map