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: 58a0d3c4775ed36c95e5c00627eca5664bd714c7 (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:"28c3bc5b50efaaa8d014",1:"ca5a2b890d491ae945e7",2:"9d97189f448cd113e712",3:"307b198ba5aa74c8d4ec",4:"3a0af318423250545685",5:"c30d1fb7a7eecfa522f5",6:"25f211b30800279c97e1",7:"1f5988ab8c666d788f03",8:"86d11837468b7be95674",9:"ef1d99d95a1468581171",10:"e38e5a7b772dd3c9c31e",11:"f483d5f84f9974335887",12:"fa3ed4ae0e262bdac538",13:"32c9a0b2f202b279f58e",14:"aa65ab56b3fb3c0a78f7",15:"818f4562f559472458e7",16:"2bc9e6648056b7a5cfee",17:"42f20aa9bd52033e4e8c",18:"1973e9f9c205734a5911",19:"5c89d1e21beab8e1d8aa",20:"141954463270ac192fd3",21:"d7ce6b08123082af29a2",22:"cf4abdb4bef6a9cf1850",23:"351d7a8c2c27cbb962cc",24:"140ddd48ac81c09228aa",25:"f4876300943189c07e72",26:"493a87663fa4e29b24ca",27:"c9fa40b201dd6cef63e3",28:"071f9623a30f54250980",29:"e5b6aba64808569cb6e9",30:"f067ccc1b42821cfbe41",31:"b3d912e0123436fa9f3b",32:"50db77f095c2da13befa",33:"36cd02b930dc104a589f",34:"5fb9ed680a68297db4ae",35:"6886b1b67cd6ce405e1e",36:"2036aa823ad4bc4b4cfc",37:"f81178f673ead325b972",38:"cb041c875243a86037e8",39:"c04a0fbc937eaef4a85f",40:"34cdadc52e7a8c296f0c",41:"b33caad3d80856a2421e",42:"4630919f9ef4bcdaca50",43:"6b0e9de16a18b94e747c",44:"a6186131ff58070a5ac1",45:"1998d77ea32bf327dfce",46:"b3606d9852ff3f46974f",47:"55712223735758cc9d9d",48:"8ebd37e5890e6d6697b3",49:"5a56735c4e1fca52d841",50:"1fd3e6ebd10f44a771c8",51:"4e830dc9db5c932719b4",52:"bcce32b58c900595393f",53:"ff1da29a81ec0d1925ee",54:"2d4e52c1146170700a34",55:"15ee7455e2f9aeb07c1c",56:"42d61e8084b35c6dcb6d",57:"ee69d4912bd8aac98bdb",58:"d50dccf4588be43e27e3",59:"99f3422fe1a0c431c97d",60:"7ee7c85b946768da6b60",61:"478e9890616a13e24cc8",62:"066f980b3d73bd5dfa7a",63:"7d5bc23ec2b8a8743a59",64:"15f68b7f04f43a36ed80",65:"6259a760f053d8c70893",66:"99816ff51d77a03f8a5c",67:"abe95adb3010b0ae1f96",68:"bd5248901d4081778727",69:"94bd58ee7461d5702219",70:"9b3e03dab190357d9c33",71:"2460f6ab35d646a2c859",72:"c0ebcf7dfb1f094102fb",73:"765de25904dc38c5ebfe",74:"296320d002a2184ba224",75:"a4a54b5c59d8138de447",76:"d751d4c387c3683394f9",77:"bcc7d45c6ace7564ed74",78:"56a2954ddc231f2a2725",79:"fbf13c8f4c1d02885606",80:"396aee1c2e9df3ce0800",81:"c526c27182cc4ab8430d",82:"a33fe97bc882fb260073",83:"3014ac2e21550a8b30f5",84:"02e9fc51b558b18a88c0",85:"b2f71cbdba215f548148",86:"b829e8a5b6611ed73ea2",87:"d57057987e4aafd4c1ba",88:"62da9b8396a9e1b63f1c",89:"421e5e195a06ea2d0f21",90:"3c69edd8d857f4b9da71",91:"7673c08fba7b5054a34c",92:"635a1c27fdc64b3de004",93:"e391e31f7700d5cf3b35",94:"8c564f427b4903539a23",95:"a19366ab7808c21dabf1",96:"ec396aba8e60a4bc5ba3",97:"2909e3479fb409de88b3",98:"d387546a99ae921dec5b",99:"7b6eeb0b4d83f1205a71",100:"d472031dba21be536338",101:"b2dbeed4174e6293d1af",102:"9561f878f43d59372bbb",103:"3c76705d7aeb5e071e94",104:"fa6aad981504d97ab01c",105:"313abf8ea8f6eca09348",106:"a1d0e567de62cdb7f5e9",107:"65161ff4eaaa039c1a14",108:"09d192c84d29d03802eb",109:"468e0b22655ea5bb8c30",110:"f58445f55fb17dd638fe",111:"d27ae3d16b12a2a6d36e",112:"a17a02bfcafd827f63f6",113:"cfc25088bd9f2f6ff5a1",114:"f0e9d40833e080af1932",115:"664914ee0d4b14649451",116:"1a82bde01ef78b6df029",117:"5fdad43d5b0537af3a02",118:"c9759d3b79e53b509ff1",119:"d5435413e1d84885c152",120:"5c4732369efb3a13cc56",121:"451df0d297968a612056",122:"3027910735e6151c3162",123:"5266a6cb6f97aa53b666",124:"b742ae3f0e4085dfe7b8",125:"e7129d26f8a76aad3eb0",126:"66a591c10150b7d81c6e",127:"a4034104de825dc4eb8a",128:"0f8c24fcfac812b5db13",129:"342595a34cc31cb17c30",130:"ee99c1673e65da56a9df",131:"6d753e6968f72b25569b",132:"ead58905eddbf6d9d061",133:"1adbccd3dc2350de4ab1",134:"648eb031ab4d204576b6",135:"b46e760e92b36c31da70",136:"efd24c5d4b3dfe322609",137:"5391fc9f8f39c21a6bcb",138:"44b762688104d38368d5",139:"89a727c8f398977536e5",140:"96a87326a3584a167d99",141:"d198d796c36bb8895380",142:"7748142bc0813c3aa962",143:"352b055dd4e6a1fce083",144:"2f3f10033d229bb4346d",145:"cae2aec4b68e829024a0",146:"afac79133f3995617764",147:"0af4e155fdb79476903e",148:"43c8e8168cfec96ca04e",149:"b5c510941ac6100195b2",150:"2f71381a8c490882721a",151:"ce1c7bb437f918b2b9cc",152:"a3616f9b5281c9512146",153:"bf92993458dcf73a9187",154:"9dfcd141659214e6fc92",155:"f42008d86aa21b19611d",156:"96b98229d86bc3859cc9",157:"ed543ae4beba20d79380",158:"878f8bb23bc9d58cef7f",159:"1f860b4d98f82f848903",160:"fc5dabe5dd020630de38",161:"f4d5c59d572968dbfca8",162:"788809193682e8c20765",163:"9424b37b118817d7b62f",164:"58bd4d4fc837fec44c77",165:"f7171f8d2d14396cc0c9",166:"c7046198129da20b589c",167:"8070289b12d0794f39f8",168:"d5b5e8085d4b3bfae430",169:"5cf71cd13c675ae29a75",170:"81b89d5353fba9201ee1",171:"dc047d62203c68102ce0",172:"e485c82653a3102b3af4",173:"cddc61b164a12e471493",174:"e2f0f082023fc392ea10",175:"485640845ec0024bfa1e",176:"68e3ac295a725028c03d",177:"fa5e721481962b241f89",178:"46a3622cb7863721c084",179:"1d47c22e2ef49795c628",180:"46a3cff0b834c8d7d86b",181:"ceffc1dba8abdf9fabf0",182:"2fd75892a548001569a8",183:"4ad920f5256fb0bfb300",184:"37278e129ccbe314eb72",185:"f4c34718b20c11deebaa",186:"a1f98d5656e592c1aa81",187:"d7f247c27c6a4ab1cc91",188:"9dd1084337a4c4d5783a",189:"54335c0bb0d08ade4456",190:"00ca0a20c46a9bfe7c0c",192:"774056b6f63765f2d385",195:"b1a82d040269e0d614c7",196:"372687799c16a15c0e91",197:"6f5adbfdd4ff63440992"}[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.webpackJsonp=window.webpackJsonp||[],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