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

preview.js « js - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7b6301f8368c1995b9a4cd2c9839d2ec06137cbb (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
(window.textWebpackJsonp=window.textWebpackJsonp||[]).push([[186],{323:function(e,r,t){var o=t(549);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,t(148).default)("32fa0fe1",o,!0,{})},329:function(e,r,t){var o=t(612);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,t(148).default)("5ba6a5c3",o,!0,{})},330:function(e,r,t){var o=t(614);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,t(148).default)("ed017fbc",o,!0,{})},535:function(e,r,t){"use strict";var o=t(312),n=t(317);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function s(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,r,t){return r&&s(e.prototype,r),t&&s(e,t),e}function l(e,r){return!r||"object"!==i(r)&&"function"!=typeof r?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):r}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&p(e,r)}function p(e,r){return(p=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,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 f=function(e){function r(){return a(this,r),l(this,d(r).apply(this,arguments))}return u(r,e),c(r,[{key:"name",get:function(){return"strong"}}]),r}(n.b),m=function(e){function r(){return a(this,r),l(this,d(r).apply(this,arguments))}return u(r,e),c(r,[{key:"name",get:function(){return"em"}}]),r}(n.m),h=function(e){function r(){return a(this,r),l(this,d(r).apply(this,arguments))}return u(r,e),c(r,[{key:"schema",get:function(){return{parseDOM:[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",getAttrs:function(e){return"line-through"===e}}],toDOM:function(){return["s",0]},toMarkdown:{open:"~~",close:"~~",mixable:!0,expelEnclosingWhitespace:!0}}}}]),r}(n.r),j=["image/png","image/jpeg","image/gif","image/x-xbitmap","image/bmp","image/svg+xml"],g=function(e,r){var t=e.split("#")[1];if(void 0!==t){var o=t.split("&");if(void 0!==o)for(var n=0;n<o.length;n++){var i=o[n].split("=");if(decodeURIComponent(i[0])===r)return decodeURIComponent(i[1])}}},v={name:"ImageView",props:["node","updateAttrs","view"],data:function(){return{imageLoaded:!1,loaded:!1,failed:!1}},computed:{mimeIcon:function(){var e=g(this.src,"mimetype");return e?{backgroundImage:"url("+window.OC.MimeType.getIconUrl(e)+")"}:{}},isSupportedImage:function(){var e=g(this.src,"mimetype");return void 0===e||-1!==j.indexOf(e)},internalLinkOrImage:function(){var e=g(this.src,"fileId");return e?OC.generateUrl("/f/"+e):this.src},src:{get:function(){return this.node.attrs.src},set:function(e){this.updateAttrs({src:e})}},alt:{get:function(){return this.node.attrs.alt?this.node.attrs.alt:""},set:function(e){this.updateAttrs({alt:e})}},t:function(){return function(e,r){return window.t(e,r)}}},beforeMount:function(){var e=this;if(!this.isSupportedImage)return this.failed=!0,this.imageLoaded=!1,void(this.loaded=!0);var r=new Image;r.src=this.node.attrs.src,r.onload=function(){e.imageLoaded=!0},r.onerror=function(){e.failed=!0,e.imageLoaded=!1,e.loaded=!0}},methods:{updateAlt:function(){this.alt=this.$refs.altInput.value},onLoaded:function(){this.loaded=!0}}},y=(t(548),t(29)),b=Object(y.a)(v,(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"image",class:{"icon-loading":!e.loaded},attrs:{"data-src":e.src}},[e.imageLoaded&&e.isSupportedImage?t("div",[t("transition",{attrs:{name:"fade"}},[t("img",{directives:[{name:"show",rawName:"v-show",value:e.loaded,expression:"loaded"}],staticClass:"image__main",attrs:{src:e.src},on:{load:e.onLoaded}})]),e._v(" "),t("transition",{attrs:{name:"fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.loaded,expression:"loaded"}],staticClass:"image__caption"},[t("input",{ref:"altInput",attrs:{type:"text"},domProps:{value:e.alt},on:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.updateAlt()}}})])])],1):t("div",{staticClass:"image__placeholder"},[t("transition",{attrs:{name:"fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.loaded,expression:"loaded"}],staticClass:"image__main"},[t("div",{staticClass:"icon-image",style:e.mimeIcon}),e._v(" "),t("p",[t("a",{attrs:{href:e.internalLinkOrImage,target:"_blank"}},[e._v(e._s(e.isSupportedImage?e.t("text","Show image"):e.t("text","Show file")))])])])]),t("transition",{attrs:{name:"fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.loaded,expression:"loaded"}],staticClass:"image__caption"},[t("input",{ref:"altInput",attrs:{type:"text"},domProps:{value:e.alt},on:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.updateAlt()}}})])])],1)])}),[],!1,null,"a10dc050",null).exports;function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function P(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function k(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function O(e,r){return!r||"object"!==x(r)&&"function"!=typeof r?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):r}function M(e,r,t){return(M="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,r,t){var o=function(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&null!==(e=_(e)););return e}(e,r);if(o){var n=Object.getOwnPropertyDescriptor(o,r);return n.get?n.get.call(t):n.value}})(e,r,t||e)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e,r){return(S=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,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 E=function(e){function r(){return function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),O(this,_(r).apply(this,arguments))}var t,o,n;return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&S(e,r)}(r,e),t=r,(o=[{key:"view",get:function(){return b}},{key:"schema",get:function(){return function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?w(t,!0).forEach((function(r){P(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(t).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({},M(_(r.prototype),"schema",this),{selectable:!1})}}])&&k(t.prototype,o),n&&k(t,n),r}(n.l),z=t(322);function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function q(e,r){return!r||"object"!==I(r)&&"function"!=typeof r?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):r}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e,r){return(R=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,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 D=function(e){function r(){return function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),q(this,A(r).apply(this,arguments))}var t,o,n;return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&R(e,r)}(r,e),t=r,(o=[{key:"keys",value:function(){var e=this;return{Tab:function(r){return Object(z.c)("\t")(r,e.editor.view.dispatch,e.editor.view),!0}}}},{key:"name",get:function(){return"doc"}},{key:"schema",get:function(){return{content:"block"}}}])&&C(t.prototype,o),n&&C(t,n),r}(o.g),T=t(340),L=t.n(T),N=t(605);
/*
 * @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/>.
 *
 */function U(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var t=[],o=!0,n=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(t.push(a.value),!r||t.length!==r);o=!0);}catch(e){n=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(n)throw i}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function W(e){return function(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(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")}()}function F(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function J(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?F(t,!0).forEach((function(r){$(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):F(t).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function $(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function B(e,r,t,o,n,i,a){try{var s=e[i](a),c=s.value}catch(e){return void t(e)}s.done?r(c):Promise.resolve(c).then(o,n)}t.d(r,"d",(function(){return H})),t.d(r,"a",(function(){return G})),t.d(r,"b",(function(){return Q})),t.d(r,"e",(function(){return X})),t.d(r,"c",(function(){return V}));
/*
 * @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 V=function(){var e,r=(e=regeneratorRuntime.mark((function e(r){var o,n,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=[r],n={},i=0;case 3:if(!(i<o.length)){e.next=17;break}return e.prev=4,e.next=7,t(606)("./"+o[i]);case 7:a=e.sent,n[o[i]]=a.default,e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(4),e.abrupt("return",void 0);case 14:i++,e.next=3;break;case 17:if(0!==Object.keys(n).length||n.constructor!==Object){e.next=19;break}return e.abrupt("return",void 0);case 19:return e.abrupt("return",{languages:n});case 20:case"end":return e.stop()}}),e,null,[[4,11]])})),function(){var r=this,t=arguments;return new Promise((function(o,n){var i=e.apply(r,t);function a(e){B(i,o,n,a,s,"next",e)}function s(e){B(i,o,n,a,s,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),G=function(e){var r=e.content,t=e.onInit,i=e.onUpdate,a=e.extensions,s=e.enableRichEditing,c=e.languages,l=[];return l=s?[new n.i,new n.d,new f,new m,new h,new n.h,new n.k,new n.c,new n.p,new n.a,new n.e,new n.o,new n.n,new E,new n.q({emptyNodeClass:"is-empty",emptyNodeText:"Add notes, lists or links …",showOnlyWhenEditable:!0})]:[new D,new o.j,new n.f(J({},c))],a=a||[],new o.a({content:r,onInit:t,onUpdate:i,extensions:[].concat(W(l),[new n.j]).concat(a),useBuiltInExtensions:s})},H=L()("commonmark",{html:!1,breaks:!1}).enable("strikethrough"),K=function(e){this.message=e},Q=function(e,r){var t=Object.entries(e).filter((function(e){return U(e,2)[1].toMarkdown})).reduce((function(e,r){var t=U(r,2);return J({},e,$({},t[0],t[1].toMarkdown))}),{}),o=Object.entries(r).filter((function(e){return U(e,2)[1].toMarkdown})).reduce((function(e,r){var t=U(r,2);return J({},e,$({},t[0],t[1].toMarkdown))}),{});return{serializer:new N.MarkdownSerializer(J({},N.defaultMarkdownSerializer.nodes,{},t),J({},N.defaultMarkdownSerializer.marks,{},o)),serialize:function(e,r){return this.serializer.serialize(e,J({},r,{tightLists:!0})).split("\\[ \\]").join("[ ]").split("\\[x\\]").join("[x]")}}},X=function(e){var r=e.getJSON();if(1!==r.content.length||void 0===r.content[0].content||1!==r.content[0].content.length){if("code_block"===r.content[0].type&&void 0===r.content[0].content)return"";throw new K("Failed to serialize document to plain text")}var t=r.content[0].content[0];if("text"!==t.type)throw new K("Failed to serialize document to plain text");return t.text}},548:function(e,r,t){"use strict";var o=t(323);t.n(o).a},549:function(e,r,t){(e.exports=t(147)(!1)).push([e.i,".image[data-v-a10dc050]{margin:0;padding:0}.image__caption[data-v-a10dc050]{text-align:center;color:var(--color-text-lighter)}.image__caption input[type='text'][data-v-a10dc050]{width:100%;border:none;text-align:center}.icon-image[data-v-a10dc050]{margin-top:10px;height:32px;padding:20px;background-size:contain}.image__loading[data-v-a10dc050]{height:100px}.image__placeholder .image__main[data-v-a10dc050]{background-color:var(--color-background-dark);text-align:center;padding:20px;border-radius:var(--border-radius)}.image__placeholder .image__main .icon-image[data-v-a10dc050]{opacity:0.7}.fade-enter-active[data-v-a10dc050]{transition:opacity .3s ease-in-out}.fade-enter-to[data-v-a10dc050]{opacity:1}.fade-enter[data-v-a10dc050]{opacity:0}\n",""])},606:function(e,r,t){var o={"./1c":[350,1],"./1c.js":[350,1],"./abnf":[351,2],"./abnf.js":[351,2],"./accesslog":[352,3],"./accesslog.js":[352,3],"./actionscript":[353,4],"./actionscript.js":[353,4],"./ada":[354,5],"./ada.js":[354,5],"./angelscript":[355,6],"./angelscript.js":[355,6],"./apache":[356,7],"./apache.js":[356,7],"./applescript":[357,8],"./applescript.js":[357,8],"./arcade":[358,9],"./arcade.js":[358,9],"./arduino":[359,10],"./arduino.js":[359,10],"./armasm":[360,11],"./armasm.js":[360,11],"./asciidoc":[361,12],"./asciidoc.js":[361,12],"./aspectj":[362,13],"./aspectj.js":[362,13],"./autohotkey":[363,14],"./autohotkey.js":[363,14],"./autoit":[364,15],"./autoit.js":[364,15],"./avrasm":[365,16],"./avrasm.js":[365,16],"./awk":[366,17],"./awk.js":[366,17],"./axapta":[367,18],"./axapta.js":[367,18],"./bash":[368,19],"./bash.js":[368,19],"./basic":[369,20],"./basic.js":[369,20],"./bnf":[370,21],"./bnf.js":[370,21],"./brainfuck":[371,22],"./brainfuck.js":[371,22],"./cal":[372,23],"./cal.js":[372,23],"./capnproto":[373,24],"./capnproto.js":[373,24],"./ceylon":[374,25],"./ceylon.js":[374,25],"./clean":[375,26],"./clean.js":[375,26],"./clojure":[377,27],"./clojure-repl":[376,28],"./clojure-repl.js":[376,28],"./clojure.js":[377,27],"./cmake":[378,29],"./cmake.js":[378,29],"./coffeescript":[379,30],"./coffeescript.js":[379,30],"./coq":[380,31],"./coq.js":[380,31],"./cos":[381,32],"./cos.js":[381,32],"./cpp":[382,33],"./cpp.js":[382,33],"./crmsh":[383,34],"./crmsh.js":[383,34],"./crystal":[384,35],"./crystal.js":[384,35],"./cs":[385,36],"./cs.js":[385,36],"./csp":[386,37],"./csp.js":[386,37],"./css":[387,38],"./css.js":[387,38],"./d":[388,39],"./d.js":[388,39],"./dart":[389,40],"./dart.js":[389,40],"./delphi":[390,41],"./delphi.js":[390,41],"./diff":[391,42],"./diff.js":[391,42],"./django":[392,43],"./django.js":[392,43],"./dns":[393,44],"./dns.js":[393,44],"./dockerfile":[394,45],"./dockerfile.js":[394,45],"./dos":[395,46],"./dos.js":[395,46],"./dsconfig":[396,47],"./dsconfig.js":[396,47],"./dts":[397,48],"./dts.js":[397,48],"./dust":[398,49],"./dust.js":[398,49],"./ebnf":[399,50],"./ebnf.js":[399,50],"./elixir":[400,51],"./elixir.js":[400,51],"./elm":[401,52],"./elm.js":[401,52],"./erb":[402,53],"./erb.js":[402,53],"./erlang":[404,54],"./erlang-repl":[403,55],"./erlang-repl.js":[403,55],"./erlang.js":[404,54],"./excel":[405,56],"./excel.js":[405,56],"./fix":[406,57],"./fix.js":[406,57],"./flix":[407,58],"./flix.js":[407,58],"./fortran":[408,59],"./fortran.js":[408,59],"./fsharp":[409,60],"./fsharp.js":[409,60],"./gams":[410,61],"./gams.js":[410,61],"./gauss":[411,62],"./gauss.js":[411,62],"./gcode":[412,63],"./gcode.js":[412,63],"./gherkin":[413,64],"./gherkin.js":[413,64],"./glsl":[414,65],"./glsl.js":[414,65],"./gml":[415,66],"./gml.js":[415,66],"./go":[416,67],"./go.js":[416,67],"./golo":[417,68],"./golo.js":[417,68],"./gradle":[418,69],"./gradle.js":[418,69],"./groovy":[419,70],"./groovy.js":[419,70],"./haml":[420,71],"./haml.js":[420,71],"./handlebars":[421,72],"./handlebars.js":[421,72],"./haskell":[422,73],"./haskell.js":[422,73],"./haxe":[423,74],"./haxe.js":[423,74],"./hsp":[424,75],"./hsp.js":[424,75],"./htmlbars":[425,76],"./htmlbars.js":[425,76],"./http":[426,77],"./http.js":[426,77],"./hy":[427,78],"./hy.js":[427,78],"./inform7":[428,79],"./inform7.js":[428,79],"./ini":[429,80],"./ini.js":[429,80],"./irpf90":[430,81],"./irpf90.js":[430,81],"./isbl":[431,82],"./isbl.js":[431,82],"./java":[432,83],"./java.js":[432,83],"./javascript":[433,84],"./javascript.js":[433,84],"./jboss-cli":[434,85],"./jboss-cli.js":[434,85],"./json":[435,86],"./json.js":[435,86],"./julia":[437,87],"./julia-repl":[436,88],"./julia-repl.js":[436,88],"./julia.js":[437,87],"./kotlin":[438,89],"./kotlin.js":[438,89],"./lasso":[439,90],"./lasso.js":[439,90],"./ldif":[440,91],"./ldif.js":[440,91],"./leaf":[441,92],"./leaf.js":[441,92],"./less":[442,93],"./less.js":[442,93],"./lisp":[443,94],"./lisp.js":[443,94],"./livecodeserver":[444,95],"./livecodeserver.js":[444,95],"./livescript":[445,96],"./livescript.js":[445,96],"./llvm":[446,97],"./llvm.js":[446,97],"./lsl":[447,98],"./lsl.js":[447,98],"./lua":[448,99],"./lua.js":[448,99],"./makefile":[449,100],"./makefile.js":[449,100],"./markdown":[450,101],"./markdown.js":[450,101],"./mathematica":[451,102],"./mathematica.js":[451,102],"./matlab":[452,103],"./matlab.js":[452,103],"./maxima":[453,104],"./maxima.js":[453,104],"./mel":[454,105],"./mel.js":[454,105],"./mercury":[455,106],"./mercury.js":[455,106],"./mipsasm":[456,107],"./mipsasm.js":[456,107],"./mizar":[457,108],"./mizar.js":[457,108],"./mojolicious":[458,109],"./mojolicious.js":[458,109],"./monkey":[459,110],"./monkey.js":[459,110],"./moonscript":[460,111],"./moonscript.js":[460,111],"./n1ql":[461,112],"./n1ql.js":[461,112],"./nginx":[462,113],"./nginx.js":[462,113],"./nimrod":[463,114],"./nimrod.js":[463,114],"./nix":[464,115],"./nix.js":[464,115],"./nsis":[465,116],"./nsis.js":[465,116],"./objectivec":[466,117],"./objectivec.js":[466,117],"./ocaml":[467,118],"./ocaml.js":[467,118],"./openscad":[468,119],"./openscad.js":[468,119],"./oxygene":[469,120],"./oxygene.js":[469,120],"./parser3":[470,121],"./parser3.js":[470,121],"./perl":[471,122],"./perl.js":[471,122],"./pf":[472,123],"./pf.js":[472,123],"./pgsql":[473,124],"./pgsql.js":[473,124],"./php":[474,125],"./php.js":[474,125],"./plaintext":[475,126],"./plaintext.js":[475,126],"./pony":[476,127],"./pony.js":[476,127],"./powershell":[477,128],"./powershell.js":[477,128],"./processing":[478,129],"./processing.js":[478,129],"./profile":[479,130],"./profile.js":[479,130],"./prolog":[480,131],"./prolog.js":[480,131],"./properties":[481,132],"./properties.js":[481,132],"./protobuf":[482,133],"./protobuf.js":[482,133],"./puppet":[483,134],"./puppet.js":[483,134],"./purebasic":[484,135],"./purebasic.js":[484,135],"./python":[485,136],"./python.js":[485,136],"./q":[486,137],"./q.js":[486,137],"./qml":[487,138],"./qml.js":[487,138],"./r":[488,139],"./r.js":[488,139],"./reasonml":[489,140],"./reasonml.js":[489,140],"./rib":[490,141],"./rib.js":[490,141],"./roboconf":[491,142],"./roboconf.js":[491,142],"./routeros":[492,143],"./routeros.js":[492,143],"./rsl":[493,144],"./rsl.js":[493,144],"./ruby":[494,145],"./ruby.js":[494,145],"./ruleslanguage":[495,146],"./ruleslanguage.js":[495,146],"./rust":[496,147],"./rust.js":[496,147],"./sas":[497,148],"./sas.js":[497,148],"./scala":[498,149],"./scala.js":[498,149],"./scheme":[499,150],"./scheme.js":[499,150],"./scilab":[500,151],"./scilab.js":[500,151],"./scss":[501,152],"./scss.js":[501,152],"./shell":[502,153],"./shell.js":[502,153],"./smali":[503,154],"./smali.js":[503,154],"./smalltalk":[504,155],"./smalltalk.js":[504,155],"./sml":[505,156],"./sml.js":[505,156],"./sqf":[506,157],"./sqf.js":[506,157],"./sql":[507,158],"./sql.js":[507,158],"./stan":[508,159],"./stan.js":[508,159],"./stata":[509,160],"./stata.js":[509,160],"./step21":[510,161],"./step21.js":[510,161],"./stylus":[511,162],"./stylus.js":[511,162],"./subunit":[512,163],"./subunit.js":[512,163],"./swift":[513,164],"./swift.js":[513,164],"./taggerscript":[514,165],"./taggerscript.js":[514,165],"./tap":[515,166],"./tap.js":[515,166],"./tcl":[516,167],"./tcl.js":[516,167],"./tex":[517,168],"./tex.js":[517,168],"./thrift":[518,169],"./thrift.js":[518,169],"./tp":[519,170],"./tp.js":[519,170],"./twig":[520,171],"./twig.js":[520,171],"./typescript":[521,172],"./typescript.js":[521,172],"./vala":[522,173],"./vala.js":[522,173],"./vbnet":[523,174],"./vbnet.js":[523,174],"./vbscript":[525,175],"./vbscript-html":[524,176],"./vbscript-html.js":[524,176],"./vbscript.js":[525,175],"./verilog":[526,177],"./verilog.js":[526,177],"./vhdl":[527,178],"./vhdl.js":[527,178],"./vim":[528,179],"./vim.js":[528,179],"./x86asm":[529,180],"./x86asm.js":[529,180],"./xl":[530,181],"./xl.js":[530,181],"./xml":[531,182],"./xml.js":[531,182],"./xquery":[532,183],"./xquery.js":[532,183],"./yaml":[533,184],"./yaml.js":[533,184],"./zephir":[534,185],"./zephir.js":[534,185]};function n(e){if(!t.o(o,e))return Promise.resolve().then((function(){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=o[e],n=r[0];return t.e(r[1]).then((function(){return t.t(n,7)}))}n.keys=function(){return Object.keys(o)},n.id=606,e.exports=n},611:function(e,r,t){"use strict";var o=t(329);t.n(o).a},612:function(e,r,t){(e.exports=t(147)(!1)).push([e.i,'#read-only-editor{overflow:scroll}#read-only-editor div.ProseMirror{margin-top:44px;height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}#read-only-editor div.ProseMirror[contenteditable=true],#read-only-editor div.ProseMirror[contenteditable=false]{border:none !important;width:100%;background-color:transparent;color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}#read-only-editor div.ProseMirror p:first-child,#read-only-editor div.ProseMirror h1:first-child,#read-only-editor div.ProseMirror h2:first-child,#read-only-editor div.ProseMirror h3:first-child,#read-only-editor div.ProseMirror h4:first-child,#read-only-editor div.ProseMirror h5:first-child,#read-only-editor div.ProseMirror h6:first-child{margin-top:10px}#read-only-editor div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}#read-only-editor div.ProseMirror p{margin-bottom:1em;line-height:150%}#read-only-editor div.ProseMirror em{font-style:italic}#read-only-editor div.ProseMirror h1{font-size:36px}#read-only-editor div.ProseMirror h2{font-size:28px}#read-only-editor div.ProseMirror h3{font-size:24px}#read-only-editor div.ProseMirror h4{font-size:21px}#read-only-editor div.ProseMirror h5{font-size:17px}#read-only-editor div.ProseMirror h6{font-size:14px}#read-only-editor div.ProseMirror h1,#read-only-editor div.ProseMirror h2,#read-only-editor div.ProseMirror h3,#read-only-editor div.ProseMirror h4,#read-only-editor div.ProseMirror h5,#read-only-editor div.ProseMirror h6{font-weight:600;line-height:120%;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}#read-only-editor div.ProseMirror img{cursor:default;max-width:100%}#read-only-editor div.ProseMirror hr{padding:2px 0;border:none;margin:1em 0;width:100%}#read-only-editor div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}#read-only-editor div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}#read-only-editor div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}#read-only-editor div.ProseMirror li{position:relative}#read-only-editor div.ProseMirror ul,#read-only-editor div.ProseMirror ol{padding-left:14px}#read-only-editor div.ProseMirror ul li{list-style-type:disc}#read-only-editor div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}#read-only-editor .ProseMirror-focused .ProseMirror-gapcursor{display:block}#read-only-editor .editor__content p.is-empty:first-child::before{content:attr(data-empty-text);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.thumbnailContainer #read-only-editor{width:100%}.thumbnailContainer #read-only-editor .ProseMirror{height:auto;margin:0 0 0 0;padding:0}\n',""])},613:function(e,r,t){"use strict";var o=t(330);t.n(o).a},614:function(e,r,t){(e.exports=t(147)(!1)).push([e.i,'div.ProseMirror{margin-top:44px;height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}div.ProseMirror[contenteditable=true],div.ProseMirror[contenteditable=false]{border:none !important;width:100%;background-color:transparent;color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}div.ProseMirror p:first-child,div.ProseMirror h1:first-child,div.ProseMirror h2:first-child,div.ProseMirror h3:first-child,div.ProseMirror h4:first-child,div.ProseMirror h5:first-child,div.ProseMirror h6:first-child{margin-top:10px}div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}div.ProseMirror p{margin-bottom:1em;line-height:150%}div.ProseMirror em{font-style:italic}div.ProseMirror h1{font-size:36px}div.ProseMirror h2{font-size:28px}div.ProseMirror h3{font-size:24px}div.ProseMirror h4{font-size:21px}div.ProseMirror h5{font-size:17px}div.ProseMirror h6{font-size:14px}div.ProseMirror h1,div.ProseMirror h2,div.ProseMirror h3,div.ProseMirror h4,div.ProseMirror h5,div.ProseMirror h6{font-weight:600;line-height:120%;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}div.ProseMirror img{cursor:default;max-width:100%}div.ProseMirror hr{padding:2px 0;border:none;margin:1em 0;width:100%}div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}div.ProseMirror li{position:relative}div.ProseMirror ul,div.ProseMirror ol{padding-left:14px}div.ProseMirror ul li{list-style-type:disc}div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}.ProseMirror-focused .ProseMirror-gapcursor{display:block}.editor__content p.is-empty:first-child::before{content:attr(data-empty-text);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}\n',""])},635:function(e,r,t){"use strict";t.r(r);var o=t(312),n=t(337),i=t.n(n),a=t(535),s={name:"ReadOnlyEditor",components:{EditorContent:o.b},props:{content:{type:String,required:!0},isRichEditor:{type:Boolean,default:!0}},data:function(){return{editor:null}},mounted:function(){this.editor=Object(a.a)({content:this.isRichEditor?a.d.render(this.content):"<pre>"+i()(this.content)+"</pre>",enableRichEditing:this.isRichEditor}),this.editor.setOptions({editable:!1})},beforeDestroy:function(){this.editor.destroy()}},c=(t(611),t(613),t(29)),l=Object(c.a)(s,(function(){var e=this.$createElement,r=this._self._c||e;return this.editor?r("EditorContent",{attrs:{id:"read-only-editor",editor:this.editor}}):this._e()}),[],!1,null,null,null);r.default=l.exports}}]);
//# sourceMappingURL=preview.js.map?v=1c0efe6e78b6c6c39ccb