diff options
Diffstat (limited to 'js/preview.js')
-rw-r--r-- | js/preview.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/preview.js b/js/preview.js index 7b6301f83..00db51255 100644 --- a/js/preview.js +++ b/js/preview.js @@ -1,4 +1,4 @@ -(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)} +(window.textWebpackJsonp=window.textWebpackJsonp||[]).push([[186],{327:function(e,r,t){var o=t(552);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,t(154).default)("e7906548",o,!0,{})},333:function(e,r,t){var o=t(615);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,t(154).default)("5ba6a5c3",o,!0,{})},334:function(e,r,t){var o=t(617);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,t(154).default)("ed017fbc",o,!0,{})},538:function(e,r,t){"use strict";var o=t(316),n=t(321);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> * @@ -19,7 +19,7 @@ * 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)} + */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(551),t(31)),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,"2ac49a8a",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> * @@ -40,7 +40,7 @@ * 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)} + */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(326);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> * @@ -61,7 +61,7 @@ * 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); + */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(343),L=t.n(T),N=t(608); /* * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net> * @@ -104,5 +104,5 @@ * 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
\ No newline at end of file +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(609)("./"+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}},551:function(e,r,t){"use strict";var o=t(327);t.n(o).a},552:function(e,r,t){(e.exports=t(153)(!1)).push([e.i,".image[data-v-2ac49a8a]{margin:0;padding:0}.image__caption[data-v-2ac49a8a]{text-align:center;color:var(--color-text-lighter)}.image__caption input[type='text'][data-v-2ac49a8a]{width:100%;border:none;text-align:center}.icon-image[data-v-2ac49a8a]{margin-top:10px;height:32px;padding:20px;background-size:contain}.image__loading[data-v-2ac49a8a]{height:100px}.image__placeholder .image__main[data-v-2ac49a8a]{background-color:var(--color-background-dark);text-align:center;padding:20px;border-radius:var(--border-radius)}.image__placeholder .image__main .icon-image[data-v-2ac49a8a]{opacity:0.7}.fade-enter-active[data-v-2ac49a8a]{transition:opacity .3s ease-in-out}.fade-enter-to[data-v-2ac49a8a]{opacity:1}.fade-enter[data-v-2ac49a8a]{opacity:0}\n",""])},609:function(e,r,t){var o={"./1c":[353,1],"./1c.js":[353,1],"./abnf":[354,2],"./abnf.js":[354,2],"./accesslog":[355,3],"./accesslog.js":[355,3],"./actionscript":[356,4],"./actionscript.js":[356,4],"./ada":[357,5],"./ada.js":[357,5],"./angelscript":[358,6],"./angelscript.js":[358,6],"./apache":[359,7],"./apache.js":[359,7],"./applescript":[360,8],"./applescript.js":[360,8],"./arcade":[361,9],"./arcade.js":[361,9],"./arduino":[362,10],"./arduino.js":[362,10],"./armasm":[363,11],"./armasm.js":[363,11],"./asciidoc":[364,12],"./asciidoc.js":[364,12],"./aspectj":[365,13],"./aspectj.js":[365,13],"./autohotkey":[366,14],"./autohotkey.js":[366,14],"./autoit":[367,15],"./autoit.js":[367,15],"./avrasm":[368,16],"./avrasm.js":[368,16],"./awk":[369,17],"./awk.js":[369,17],"./axapta":[370,18],"./axapta.js":[370,18],"./bash":[371,19],"./bash.js":[371,19],"./basic":[372,20],"./basic.js":[372,20],"./bnf":[373,21],"./bnf.js":[373,21],"./brainfuck":[374,22],"./brainfuck.js":[374,22],"./cal":[375,23],"./cal.js":[375,23],"./capnproto":[376,24],"./capnproto.js":[376,24],"./ceylon":[377,25],"./ceylon.js":[377,25],"./clean":[378,26],"./clean.js":[378,26],"./clojure":[380,27],"./clojure-repl":[379,28],"./clojure-repl.js":[379,28],"./clojure.js":[380,27],"./cmake":[381,29],"./cmake.js":[381,29],"./coffeescript":[382,30],"./coffeescript.js":[382,30],"./coq":[383,31],"./coq.js":[383,31],"./cos":[384,32],"./cos.js":[384,32],"./cpp":[385,33],"./cpp.js":[385,33],"./crmsh":[386,34],"./crmsh.js":[386,34],"./crystal":[387,35],"./crystal.js":[387,35],"./cs":[388,36],"./cs.js":[388,36],"./csp":[389,37],"./csp.js":[389,37],"./css":[390,38],"./css.js":[390,38],"./d":[391,39],"./d.js":[391,39],"./dart":[392,40],"./dart.js":[392,40],"./delphi":[393,41],"./delphi.js":[393,41],"./diff":[394,42],"./diff.js":[394,42],"./django":[395,43],"./django.js":[395,43],"./dns":[396,44],"./dns.js":[396,44],"./dockerfile":[397,45],"./dockerfile.js":[397,45],"./dos":[398,46],"./dos.js":[398,46],"./dsconfig":[399,47],"./dsconfig.js":[399,47],"./dts":[400,48],"./dts.js":[400,48],"./dust":[401,49],"./dust.js":[401,49],"./ebnf":[402,50],"./ebnf.js":[402,50],"./elixir":[403,51],"./elixir.js":[403,51],"./elm":[404,52],"./elm.js":[404,52],"./erb":[405,53],"./erb.js":[405,53],"./erlang":[407,54],"./erlang-repl":[406,55],"./erlang-repl.js":[406,55],"./erlang.js":[407,54],"./excel":[408,56],"./excel.js":[408,56],"./fix":[409,57],"./fix.js":[409,57],"./flix":[410,58],"./flix.js":[410,58],"./fortran":[411,59],"./fortran.js":[411,59],"./fsharp":[412,60],"./fsharp.js":[412,60],"./gams":[413,61],"./gams.js":[413,61],"./gauss":[414,62],"./gauss.js":[414,62],"./gcode":[415,63],"./gcode.js":[415,63],"./gherkin":[416,64],"./gherkin.js":[416,64],"./glsl":[417,65],"./glsl.js":[417,65],"./gml":[418,66],"./gml.js":[418,66],"./go":[419,67],"./go.js":[419,67],"./golo":[420,68],"./golo.js":[420,68],"./gradle":[421,69],"./gradle.js":[421,69],"./groovy":[422,70],"./groovy.js":[422,70],"./haml":[423,71],"./haml.js":[423,71],"./handlebars":[424,72],"./handlebars.js":[424,72],"./haskell":[425,73],"./haskell.js":[425,73],"./haxe":[426,74],"./haxe.js":[426,74],"./hsp":[427,75],"./hsp.js":[427,75],"./htmlbars":[428,76],"./htmlbars.js":[428,76],"./http":[429,77],"./http.js":[429,77],"./hy":[430,78],"./hy.js":[430,78],"./inform7":[431,79],"./inform7.js":[431,79],"./ini":[432,80],"./ini.js":[432,80],"./irpf90":[433,81],"./irpf90.js":[433,81],"./isbl":[434,82],"./isbl.js":[434,82],"./java":[435,83],"./java.js":[435,83],"./javascript":[436,84],"./javascript.js":[436,84],"./jboss-cli":[437,85],"./jboss-cli.js":[437,85],"./json":[438,86],"./json.js":[438,86],"./julia":[440,87],"./julia-repl":[439,88],"./julia-repl.js":[439,88],"./julia.js":[440,87],"./kotlin":[441,89],"./kotlin.js":[441,89],"./lasso":[442,90],"./lasso.js":[442,90],"./ldif":[443,91],"./ldif.js":[443,91],"./leaf":[444,92],"./leaf.js":[444,92],"./less":[445,93],"./less.js":[445,93],"./lisp":[446,94],"./lisp.js":[446,94],"./livecodeserver":[447,95],"./livecodeserver.js":[447,95],"./livescript":[448,96],"./livescript.js":[448,96],"./llvm":[449,97],"./llvm.js":[449,97],"./lsl":[450,98],"./lsl.js":[450,98],"./lua":[451,99],"./lua.js":[451,99],"./makefile":[452,100],"./makefile.js":[452,100],"./markdown":[453,101],"./markdown.js":[453,101],"./mathematica":[454,102],"./mathematica.js":[454,102],"./matlab":[455,103],"./matlab.js":[455,103],"./maxima":[456,104],"./maxima.js":[456,104],"./mel":[457,105],"./mel.js":[457,105],"./mercury":[458,106],"./mercury.js":[458,106],"./mipsasm":[459,107],"./mipsasm.js":[459,107],"./mizar":[460,108],"./mizar.js":[460,108],"./mojolicious":[461,109],"./mojolicious.js":[461,109],"./monkey":[462,110],"./monkey.js":[462,110],"./moonscript":[463,111],"./moonscript.js":[463,111],"./n1ql":[464,112],"./n1ql.js":[464,112],"./nginx":[465,113],"./nginx.js":[465,113],"./nimrod":[466,114],"./nimrod.js":[466,114],"./nix":[467,115],"./nix.js":[467,115],"./nsis":[468,116],"./nsis.js":[468,116],"./objectivec":[469,117],"./objectivec.js":[469,117],"./ocaml":[470,118],"./ocaml.js":[470,118],"./openscad":[471,119],"./openscad.js":[471,119],"./oxygene":[472,120],"./oxygene.js":[472,120],"./parser3":[473,121],"./parser3.js":[473,121],"./perl":[474,122],"./perl.js":[474,122],"./pf":[475,123],"./pf.js":[475,123],"./pgsql":[476,124],"./pgsql.js":[476,124],"./php":[477,125],"./php.js":[477,125],"./plaintext":[478,126],"./plaintext.js":[478,126],"./pony":[479,127],"./pony.js":[479,127],"./powershell":[480,128],"./powershell.js":[480,128],"./processing":[481,129],"./processing.js":[481,129],"./profile":[482,130],"./profile.js":[482,130],"./prolog":[483,131],"./prolog.js":[483,131],"./properties":[484,132],"./properties.js":[484,132],"./protobuf":[485,133],"./protobuf.js":[485,133],"./puppet":[486,134],"./puppet.js":[486,134],"./purebasic":[487,135],"./purebasic.js":[487,135],"./python":[488,136],"./python.js":[488,136],"./q":[489,137],"./q.js":[489,137],"./qml":[490,138],"./qml.js":[490,138],"./r":[491,139],"./r.js":[491,139],"./reasonml":[492,140],"./reasonml.js":[492,140],"./rib":[493,141],"./rib.js":[493,141],"./roboconf":[494,142],"./roboconf.js":[494,142],"./routeros":[495,143],"./routeros.js":[495,143],"./rsl":[496,144],"./rsl.js":[496,144],"./ruby":[497,145],"./ruby.js":[497,145],"./ruleslanguage":[498,146],"./ruleslanguage.js":[498,146],"./rust":[499,147],"./rust.js":[499,147],"./sas":[500,148],"./sas.js":[500,148],"./scala":[501,149],"./scala.js":[501,149],"./scheme":[502,150],"./scheme.js":[502,150],"./scilab":[503,151],"./scilab.js":[503,151],"./scss":[504,152],"./scss.js":[504,152],"./shell":[505,153],"./shell.js":[505,153],"./smali":[506,154],"./smali.js":[506,154],"./smalltalk":[507,155],"./smalltalk.js":[507,155],"./sml":[508,156],"./sml.js":[508,156],"./sqf":[509,157],"./sqf.js":[509,157],"./sql":[510,158],"./sql.js":[510,158],"./stan":[511,159],"./stan.js":[511,159],"./stata":[512,160],"./stata.js":[512,160],"./step21":[513,161],"./step21.js":[513,161],"./stylus":[514,162],"./stylus.js":[514,162],"./subunit":[515,163],"./subunit.js":[515,163],"./swift":[516,164],"./swift.js":[516,164],"./taggerscript":[517,165],"./taggerscript.js":[517,165],"./tap":[518,166],"./tap.js":[518,166],"./tcl":[519,167],"./tcl.js":[519,167],"./tex":[520,168],"./tex.js":[520,168],"./thrift":[521,169],"./thrift.js":[521,169],"./tp":[522,170],"./tp.js":[522,170],"./twig":[523,171],"./twig.js":[523,171],"./typescript":[524,172],"./typescript.js":[524,172],"./vala":[525,173],"./vala.js":[525,173],"./vbnet":[526,174],"./vbnet.js":[526,174],"./vbscript":[528,175],"./vbscript-html":[527,176],"./vbscript-html.js":[527,176],"./vbscript.js":[528,175],"./verilog":[529,177],"./verilog.js":[529,177],"./vhdl":[530,178],"./vhdl.js":[530,178],"./vim":[531,179],"./vim.js":[531,179],"./x86asm":[532,180],"./x86asm.js":[532,180],"./xl":[533,181],"./xl.js":[533,181],"./xml":[534,182],"./xml.js":[534,182],"./xquery":[535,183],"./xquery.js":[535,183],"./yaml":[536,184],"./yaml.js":[536,184],"./zephir":[537,185],"./zephir.js":[537,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=609,e.exports=n},614:function(e,r,t){"use strict";var o=t(333);t.n(o).a},615:function(e,r,t){(e.exports=t(153)(!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',""])},616:function(e,r,t){"use strict";var o=t(334);t.n(o).a},617:function(e,r,t){(e.exports=t(153)(!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',""])},633:function(e,r,t){"use strict";t.r(r);var o=t(316),n=t(341),i=t.n(n),a=t(538),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(614),t(616),t(31)),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=c79d90140ed82c79b410
\ No newline at end of file |