diff options
Diffstat (limited to 'js/preview.js')
-rw-r--r-- | js/preview.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/preview.js b/js/preview.js index 932d44ca0..5091cd1b0 100644 --- a/js/preview.js +++ b/js/preview.js @@ -1,4 +1,4 @@ -(window.textWebpackJsonp=window.textWebpackJsonp||[]).push([[196],{175:function(e,r,t){var o=t(377);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,t(91).default)("e7906548",o,!0,{})},176:function(e,r,t){var o=t(387);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,t(91).default)("5ba6a5c3",o,!0,{})},177:function(e,r,t){var o=t(389);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,t(91).default)("ed017fbc",o,!0,{})},372:function(e,r,t){"use strict";t.d(r,"d",(function(){return ce})),t.d(r,"a",(function(){return le})),t.d(r,"b",(function(){return pe})),t.d(r,"e",(function(){return ue})),t.d(r,"c",(function(){return se}));var o=t(171),i=t(174);function n(e){return(n="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 l(e,r,t){return r&&s(e.prototype,r),t&&s(e,t),e}function c(e,r){return!r||"object"!==n(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 p(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&&u(e,r)}function u(e,r){return(u=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)} +(window.textWebpackJsonp=window.textWebpackJsonp||[]).push([[197],{177:function(e,r,t){var o=t(377);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,t(93).default)("e7906548",o,!0,{})},178:function(e,r,t){var o=t(387);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,t(93).default)("5ba6a5c3",o,!0,{})},179:function(e,r,t){var o=t(389);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,t(93).default)("ed017fbc",o,!0,{})},372:function(e,r,t){"use strict";t.d(r,"d",(function(){return be})),t.d(r,"a",(function(){return he})),t.d(r,"b",(function(){return ve})),t.d(r,"e",(function(){return ge})),t.d(r,"c",(function(){return me}));var o=t(173),n=t(176);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){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&&d(e,r)}function d(e,r){return(d=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function u(e){return function(){var r,t=m(e);if(f()){var o=m(this).constructor;r=Reflect.construct(t,arguments,o)}else r=t.apply(this,arguments);return p(this,r)}}function p(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 f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)} /* * @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),c(this,d(r).apply(this,arguments))}return p(r,e),l(r,[{key:"name",get:function(){return"strong"}}]),r}(i.b),m=function(e){function r(){return a(this,r),c(this,d(r).apply(this,arguments))}return p(r,e),l(r,[{key:"name",get:function(){return"em"}}]),r}(i.m),b=function(e){function r(){return a(this,r),c(this,d(r).apply(this,arguments))}return p(r,e),l(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}(i.r),h=["image/png","image/jpeg","image/gif","image/x-xbitmap","image/bmp","image/svg+xml"],y=function(e,r){var t=e.split("#")[1];if(void 0!==t){var o=t.split("&");if(void 0!==o)for(var i=0;i<o.length;i++){var n=o[i].split("=");if(decodeURIComponent(n[0])===r)return decodeURIComponent(n[1])}}},g={name:"ImageView",props:["node","updateAttrs","view"],data:function(){return{imageLoaded:!1,loaded:!1,failed:!1}},computed:{mimeIcon:function(){var e=y(this.src,"mimetype");return e?{backgroundImage:"url("+window.OC.MimeType.getIconUrl(e)+")"}:{}},isSupportedImage:function(){var e=y(this.src,"mimetype");return void 0===e||-1!==h.indexOf(e)},internalLinkOrImage:function(){var e=y(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}}},v=(t(376),t(19)),j=Object(v.a)(g,(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 k(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function P(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function O(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 M(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 _(e,r,t){return(_="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=S(e)););return e}(e,r);if(o){var i=Object.getOwnPropertyDescriptor(o,r);return i.get?i.get.call(t):i.value}})(e,r,t||e)}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,r){return(E=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)} + */var h=function(e){l(t,e);var r=u(t);function t(){return a(this,t),r.apply(this,arguments)}return c(t,[{key:"name",get:function(){return"strong"}}]),t}(n.b),b=function(e){l(t,e);var r=u(t);function t(){return a(this,t),r.apply(this,arguments)}return c(t,[{key:"name",get:function(){return"em"}}]),t}(n.m),y=function(e){l(t,e);var r=u(t);function t(){return a(this,t),r.apply(this,arguments)}return c(t,[{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}}}}]),t}(n.r),v=["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])}}},j={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!==v.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}}},x=(t(376),t(19)),w=Object(x.a)(j,(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 k(e){return(k="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 P(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 O(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function M(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _(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 S(e,r,t){return(S="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=z(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 R(e,r){return(R=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function E(e,r){return!r||"object"!==k(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 C(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)} /* * @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 C=function(e){function r(){return P(this,r),M(this,S(r).apply(this,arguments))}var t,o,i;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&&E(e,r)}(r,e),t=r,(o=[{key:"view",get:function(){return j}},{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(Object(t),!0).forEach((function(r){k(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({},_(S(r.prototype),"schema",this),{selectable:!1})}}])&&O(t.prototype,o),i&&O(t,i),r}(i.l),z=t(178);function q(e){return(q="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 I(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function A(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 R(e,r){return!r||"object"!==q(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 T(e,r){return(T=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)} + */var I=function(e){!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)}(a,e);var r,t,o,n,i=(r=a,function(){var e,t=z(r);if(C()){var o=z(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return E(this,e)});function a(){return M(this,a),i.apply(this,arguments)}return t=a,(o=[{key:"view",get:function(){return w}},{key:"schema",get:function(){return function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?P(Object(t),!0).forEach((function(r){O(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({},S(z(a.prototype),"schema",this),{selectable:!1})}}])&&_(t.prototype,o),n&&_(t,n),a}(n.l),q=t(180);function D(e){return(D="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 T(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 N(e,r){return(N=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function L(e,r){return!r||"object"!==D(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 U(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function $(e){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)} /* * @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 N=function(e){function r(){return I(this,r),R(this,D(r).apply(this,arguments))}var t,o,i;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&&T(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"}}}])&&A(t.prototype,o),i&&A(t,i),r}(o.g),L=t(180);function U(e){return(U="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 $(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function W(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 F(e,r){return!r||"object"!==U(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 J(e){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,r){return(B=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)} + */var W=function(e){!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&&N(e,r)}(a,e);var r,t,o,n,i=(r=a,function(){var e,t=$(r);if(U()){var o=$(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return L(this,e)});function a(){return A(this,a),i.apply(this,arguments)}return t=a,(o=[{key:"keys",value:function(){var e=this;return{Tab:function(r){return Object(q.c)("\t")(r,e.editor.view.dispatch,e.editor.view),!0}}}},{key:"name",get:function(){return"doc"}},{key:"schema",get:function(){return{content:"block"}}}])&&T(t.prototype,o),n&&T(t,n),a}(o.g),F=t(182);function J(e){return(J="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 B(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function V(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 X(e,r){return(X=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function Y(e,r){return!r||"object"!==J(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 G(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)} /* * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net> * @@ -82,7 +82,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 V=0,X=1,Y=function(e,r){return Object(L.findParentNode)((function(r){return r.type===e.nodes.list_item}))(r)},G=function(e){function r(){return $(this,r),F(this,J(r).apply(this,arguments))}var t,i,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&&B(e,r)}(r,e),t=r,(i=[{key:"commands",value:function(e){var r=e.type,t=e.schema;return{bullet_list_item:function(){return function(e,o,i){return Object(z.q)(t.nodes.bullet_list,r)(e,o,i)}},todo_item:function(){return function(e,t,o){var i=e.schema,n=e.selection,a=n.$from,s=n.$to,l=a.blockRange(s),c=e.tr,d=Y(i,n);if(void 0===d&&(Object(z.q)(i.nodes.bullet_list,r)(e,(function(e){c=e}),o),d=Y(i,c.selection)),!l||void 0===d)return!1;c.setNodeMarkup(d.pos,i.nodes.list_item,{type:d.node.attrs.type===X?V:X}),c.scrollIntoView(),t&&t(c)}}}}},{key:"defaultOptions",get:function(){return{nested:!0}}},{key:"schema",get:function(){return{attrs:{done:{default:!1},type:{default:V}},draggable:!1,content:"paragraph block*",toDOM:function(e){if(e.attrs.type===V)return["li",0];var r={class:"checkbox-item"},t={type:"checkbox",class:"",contenteditable:!1};return e.attrs.done&&(t.checked=!0,r.class+=" checked"),["li",r,["input",t],["label",0]]},parseDOM:[{priority:100,tag:"li",getAttrs:function(e){var r=e.querySelector("input[type=checkbox]");return{done:r&&r.checked,type:r?X:V}}}],toMarkdown:function(e,r){r.attrs.type===X&&e.write("[".concat(r.attrs.done?"x":" ","] ")),e.renderContent(r)}}}},{key:"plugins",get:function(){return[new o.h({props:{handleClick:function(e,r,t){var o=e.state,i=o.schema,n=e.posAtCoords({left:t.clientX,top:t.clientY}),a=o.doc.resolve(n.pos),s=Object(L.findParentNodeClosestToPos)(a,(function(e){return e.type===i.nodes.list_item})),l="li"===t.target.tagName.toLowerCase();if(void 0!==s&&s.node.attrs.type===X&&l){var c=o.tr;c.setNodeMarkup(s.pos,i.nodes.list_item,{done:!s.node.attrs.done,type:X}),e.dispatch(c)}}}})]}}])&&W(t.prototype,i),n&&W(t,n),r}(i.o),H=t(378),K=t.n(H),Q=t(413),Z=t.n(Q),ee=t(414);function re(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,i=!1,n=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){i=!0,n=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw n}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function te(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 oe(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 ie(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?oe(Object(t),!0).forEach((function(r){ne(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):oe(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ne(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ae(e,r,t,o,i,n,a){try{var s=e[n](a),l=s.value}catch(e){return void t(e)}s.done?r(l):Promise.resolve(l).then(o,i)} + */var K=0,Q=1,Z=function(e,r){return Object(F.findParentNode)((function(r){return r.type===e.nodes.list_item}))(r)},ee=function(e){!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&&X(e,r)}(s,e);var r,t,n,i,a=(r=s,function(){var e,t=H(r);if(G()){var o=H(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return Y(this,e)});function s(){return B(this,s),a.apply(this,arguments)}return t=s,(n=[{key:"commands",value:function(e){var r=e.type,t=e.schema;return{bullet_list_item:function(){return function(e,o,n){return Object(q.q)(t.nodes.bullet_list,r)(e,o,n)}},todo_item:function(){return function(e,t,o){var n=e.schema,i=e.selection,a=i.$from,s=i.$to,c=a.blockRange(s),l=e.tr,d=Z(n,i);if(void 0===d&&(Object(q.q)(n.nodes.bullet_list,r)(e,(function(e){l=e}),o),d=Z(n,l.selection)),!c||void 0===d)return!1;l.setNodeMarkup(d.pos,n.nodes.list_item,{type:d.node.attrs.type===Q?K:Q}),l.scrollIntoView(),t&&t(l)}}}}},{key:"defaultOptions",get:function(){return{nested:!0}}},{key:"schema",get:function(){return{attrs:{done:{default:!1},type:{default:K}},draggable:!1,content:"paragraph block*",toDOM:function(e){if(e.attrs.type===K)return["li",0];var r={class:"checkbox-item"},t={type:"checkbox",class:"",contenteditable:!1};return e.attrs.done&&(t.checked=!0,r.class+=" checked"),["li",r,["input",t],["label",0]]},parseDOM:[{priority:100,tag:"li",getAttrs:function(e){var r=e.querySelector("input[type=checkbox]");return{done:r&&r.checked,type:r?Q:K}}}],toMarkdown:function(e,r){r.attrs.type===Q&&e.write("[".concat(r.attrs.done?"x":" ","] ")),e.renderContent(r)}}}},{key:"plugins",get:function(){return[new o.h({props:{handleClick:function(e,r,t){var o=e.state,n=o.schema,i=e.posAtCoords({left:t.clientX,top:t.clientY}),a=o.doc.resolve(i.pos),s=Object(F.findParentNodeClosestToPos)(a,(function(e){return e.type===n.nodes.list_item})),c="li"===t.target.tagName.toLowerCase();if(void 0!==s&&s.node.attrs.type===Q&&c){var l=o.tr;l.setNodeMarkup(s.pos,n.nodes.list_item,{done:!s.node.attrs.done,type:Q}),e.dispatch(l)}}}})]}}])&&V(t.prototype,n),i&&V(t,i),s}(n.o),re=t(378),te=t.n(re),oe=t(411),ne=t.n(oe),ie=t(412);function ae(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(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)||ce(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e){return function(e){if(Array.isArray(e))return le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ce(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e,r){if(e){if("string"==typeof e)return le(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?le(e,r):void 0}}function le(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function de(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 ue(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?de(Object(t),!0).forEach((function(r){pe(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function pe(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function fe(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)} /* * @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 se=function(){var e,r=(e=regeneratorRuntime.mark((function e(r){var o,i,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=[r],i={},n=0;case 3:if(!(n<o.length)){e.next=17;break}return e.prev=4,e.next=7,t(382)("./"+o[n]);case 7:a=e.sent,i[o[n]]=a.default,e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(4),e.abrupt("return",void 0);case 14:n++,e.next=3;break;case 17:if(0!==Object.keys(i).length||i.constructor!==Object){e.next=19;break}return e.abrupt("return",void 0);case 19:return e.abrupt("return",{languages:i});case 20:case"end":return e.stop()}}),e,null,[[4,11]])})),function(){var r=this,t=arguments;return new Promise((function(o,i){var n=e.apply(r,t);function a(e){ae(n,o,i,a,s,"next",e)}function s(e){ae(n,o,i,a,s,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),le=function(e){var r=e.content,t=e.onInit,n=e.onUpdate,a=e.extensions,s=e.enableRichEditing,l=e.languages,c=[];return c=s?[new i.i,new i.d,new f,new m,new b,new i.h,new i.k,new i.c,new i.p,new i.a,new i.e,new G,new i.n({openOnClick:!0}),new C,new i.q({emptyNodeClass:"is-empty",emptyNodeText:"Add notes, lists or links …",showOnlyWhenEditable:!0})]:[new N,new o.j,new i.f(ie({},l))],a=a||[],new o.a({content:r,onInit:t,onUpdate:n,extensions:[].concat(te(c),[new i.j]).concat(a),useBuiltInExtensions:s})},ce=K()("commonmark",{html:!1,breaks:!1}).enable("strikethrough").use(Z.a,{enable:!0,labelAfter:!0}),de=function(e){this.message=e},pe=function(e,r){var t=Object.entries(e).filter((function(e){return re(e,2)[1].toMarkdown})).reduce((function(e,r){var t=re(r,2);return ie({},e,ne({},t[0],t[1].toMarkdown))}),{}),o=Object.entries(r).filter((function(e){return re(e,2)[1].toMarkdown})).reduce((function(e,r){var t=re(r,2);return ie({},e,ne({},t[0],t[1].toMarkdown))}),{});return{serializer:new ee.a(ie({},ee.b.nodes,{},t),ie({},ee.b.marks,{},o)),serialize:function(e,r){return this.serializer.serialize(e,ie({},r,{tightLists:!0})).split("\\[").join("[").split("\\]").join("]")}}},ue=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 de("Failed to serialize document to plain text")}var t=r.content[0].content[0];if("text"!==t.type)throw new de("Failed to serialize document to plain text");return t.text}},376:function(e,r,t){"use strict";var o=t(175);t.n(o).a},377:function(e,r,t){(r=t(90)(!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",""]),e.exports=r},382:function(e,r,t){var o={"./1c":[187,2],"./1c.js":[187,2],"./abnf":[188,3],"./abnf.js":[188,3],"./accesslog":[189,4],"./accesslog.js":[189,4],"./actionscript":[190,5],"./actionscript.js":[190,5],"./ada":[191,6],"./ada.js":[191,6],"./angelscript":[192,7],"./angelscript.js":[192,7],"./apache":[193,8],"./apache.js":[193,8],"./applescript":[194,9],"./applescript.js":[194,9],"./arcade":[195,10],"./arcade.js":[195,10],"./arduino":[196,11],"./arduino.js":[196,11],"./armasm":[197,12],"./armasm.js":[197,12],"./asciidoc":[198,13],"./asciidoc.js":[198,13],"./aspectj":[199,14],"./aspectj.js":[199,14],"./autohotkey":[200,15],"./autohotkey.js":[200,15],"./autoit":[201,16],"./autoit.js":[201,16],"./avrasm":[202,17],"./avrasm.js":[202,17],"./awk":[203,18],"./awk.js":[203,18],"./axapta":[204,19],"./axapta.js":[204,19],"./bash":[205,20],"./bash.js":[205,20],"./basic":[206,21],"./basic.js":[206,21],"./bnf":[207,22],"./bnf.js":[207,22],"./brainfuck":[208,23],"./brainfuck.js":[208,23],"./cal":[209,24],"./cal.js":[209,24],"./capnproto":[210,25],"./capnproto.js":[210,25],"./ceylon":[211,26],"./ceylon.js":[211,26],"./clean":[212,27],"./clean.js":[212,27],"./clojure":[214,28],"./clojure-repl":[213,29],"./clojure-repl.js":[213,29],"./clojure.js":[214,28],"./cmake":[215,30],"./cmake.js":[215,30],"./coffeescript":[216,31],"./coffeescript.js":[216,31],"./coq":[217,32],"./coq.js":[217,32],"./cos":[218,33],"./cos.js":[218,33],"./cpp":[219,34],"./cpp.js":[219,34],"./crmsh":[220,35],"./crmsh.js":[220,35],"./crystal":[221,36],"./crystal.js":[221,36],"./cs":[222,37],"./cs.js":[222,37],"./csp":[223,38],"./csp.js":[223,38],"./css":[224,39],"./css.js":[224,39],"./d":[225,40],"./d.js":[225,40],"./dart":[226,41],"./dart.js":[226,41],"./delphi":[227,42],"./delphi.js":[227,42],"./diff":[228,43],"./diff.js":[228,43],"./django":[229,44],"./django.js":[229,44],"./dns":[230,45],"./dns.js":[230,45],"./dockerfile":[231,46],"./dockerfile.js":[231,46],"./dos":[232,47],"./dos.js":[232,47],"./dsconfig":[233,48],"./dsconfig.js":[233,48],"./dts":[234,49],"./dts.js":[234,49],"./dust":[235,50],"./dust.js":[235,50],"./ebnf":[236,51],"./ebnf.js":[236,51],"./elixir":[237,52],"./elixir.js":[237,52],"./elm":[238,53],"./elm.js":[238,53],"./erb":[239,54],"./erb.js":[239,54],"./erlang":[241,55],"./erlang-repl":[240,56],"./erlang-repl.js":[240,56],"./erlang.js":[241,55],"./excel":[242,57],"./excel.js":[242,57],"./fix":[243,58],"./fix.js":[243,58],"./flix":[244,59],"./flix.js":[244,59],"./fortran":[245,60],"./fortran.js":[245,60],"./fsharp":[246,61],"./fsharp.js":[246,61],"./gams":[247,62],"./gams.js":[247,62],"./gauss":[248,63],"./gauss.js":[248,63],"./gcode":[249,64],"./gcode.js":[249,64],"./gherkin":[250,65],"./gherkin.js":[250,65],"./glsl":[251,66],"./glsl.js":[251,66],"./gml":[252,67],"./gml.js":[252,67],"./go":[253,68],"./go.js":[253,68],"./golo":[254,69],"./golo.js":[254,69],"./gradle":[255,70],"./gradle.js":[255,70],"./groovy":[256,71],"./groovy.js":[256,71],"./haml":[257,72],"./haml.js":[257,72],"./handlebars":[258,73],"./handlebars.js":[258,73],"./haskell":[259,74],"./haskell.js":[259,74],"./haxe":[260,75],"./haxe.js":[260,75],"./hsp":[261,76],"./hsp.js":[261,76],"./htmlbars":[262,77],"./htmlbars.js":[262,77],"./http":[263,78],"./http.js":[263,78],"./hy":[264,79],"./hy.js":[264,79],"./inform7":[265,80],"./inform7.js":[265,80],"./ini":[266,81],"./ini.js":[266,81],"./irpf90":[267,82],"./irpf90.js":[267,82],"./isbl":[268,83],"./isbl.js":[268,83],"./java":[269,84],"./java.js":[269,84],"./javascript":[270,85],"./javascript.js":[270,85],"./jboss-cli":[271,86],"./jboss-cli.js":[271,86],"./json":[272,87],"./json.js":[272,87],"./julia":[274,88],"./julia-repl":[273,89],"./julia-repl.js":[273,89],"./julia.js":[274,88],"./kotlin":[275,90],"./kotlin.js":[275,90],"./lasso":[276,91],"./lasso.js":[276,91],"./ldif":[277,92],"./ldif.js":[277,92],"./leaf":[278,93],"./leaf.js":[278,93],"./less":[279,94],"./less.js":[279,94],"./lisp":[280,95],"./lisp.js":[280,95],"./livecodeserver":[281,96],"./livecodeserver.js":[281,96],"./livescript":[282,97],"./livescript.js":[282,97],"./llvm":[283,98],"./llvm.js":[283,98],"./lsl":[284,99],"./lsl.js":[284,99],"./lua":[285,100],"./lua.js":[285,100],"./makefile":[286,101],"./makefile.js":[286,101],"./markdown":[287,102],"./markdown.js":[287,102],"./mathematica":[288,103],"./mathematica.js":[288,103],"./matlab":[289,104],"./matlab.js":[289,104],"./maxima":[290,105],"./maxima.js":[290,105],"./mel":[291,106],"./mel.js":[291,106],"./mercury":[292,107],"./mercury.js":[292,107],"./mipsasm":[293,108],"./mipsasm.js":[293,108],"./mizar":[294,109],"./mizar.js":[294,109],"./mojolicious":[295,110],"./mojolicious.js":[295,110],"./monkey":[296,111],"./monkey.js":[296,111],"./moonscript":[297,112],"./moonscript.js":[297,112],"./n1ql":[298,113],"./n1ql.js":[298,113],"./nginx":[299,114],"./nginx.js":[299,114],"./nimrod":[300,115],"./nimrod.js":[300,115],"./nix":[301,116],"./nix.js":[301,116],"./nsis":[302,117],"./nsis.js":[302,117],"./objectivec":[303,118],"./objectivec.js":[303,118],"./ocaml":[304,119],"./ocaml.js":[304,119],"./openscad":[305,120],"./openscad.js":[305,120],"./oxygene":[306,121],"./oxygene.js":[306,121],"./parser3":[307,122],"./parser3.js":[307,122],"./perl":[308,123],"./perl.js":[308,123],"./pf":[309,124],"./pf.js":[309,124],"./pgsql":[310,125],"./pgsql.js":[310,125],"./php":[311,126],"./php.js":[311,126],"./plaintext":[312,127],"./plaintext.js":[312,127],"./pony":[313,128],"./pony.js":[313,128],"./powershell":[314,129],"./powershell.js":[314,129],"./processing":[315,130],"./processing.js":[315,130],"./profile":[316,131],"./profile.js":[316,131],"./prolog":[317,132],"./prolog.js":[317,132],"./properties":[318,133],"./properties.js":[318,133],"./protobuf":[319,134],"./protobuf.js":[319,134],"./puppet":[320,135],"./puppet.js":[320,135],"./purebasic":[321,136],"./purebasic.js":[321,136],"./python":[322,137],"./python.js":[322,137],"./q":[323,138],"./q.js":[323,138],"./qml":[324,139],"./qml.js":[324,139],"./r":[325,140],"./r.js":[325,140],"./reasonml":[326,141],"./reasonml.js":[326,141],"./rib":[327,142],"./rib.js":[327,142],"./roboconf":[328,143],"./roboconf.js":[328,143],"./routeros":[329,144],"./routeros.js":[329,144],"./rsl":[330,145],"./rsl.js":[330,145],"./ruby":[331,146],"./ruby.js":[331,146],"./ruleslanguage":[332,147],"./ruleslanguage.js":[332,147],"./rust":[333,148],"./rust.js":[333,148],"./sas":[334,149],"./sas.js":[334,149],"./scala":[335,150],"./scala.js":[335,150],"./scheme":[336,151],"./scheme.js":[336,151],"./scilab":[337,152],"./scilab.js":[337,152],"./scss":[338,153],"./scss.js":[338,153],"./shell":[339,154],"./shell.js":[339,154],"./smali":[340,155],"./smali.js":[340,155],"./smalltalk":[341,156],"./smalltalk.js":[341,156],"./sml":[342,157],"./sml.js":[342,157],"./sqf":[343,158],"./sqf.js":[343,158],"./sql":[344,159],"./sql.js":[344,159],"./stan":[345,160],"./stan.js":[345,160],"./stata":[346,161],"./stata.js":[346,161],"./step21":[347,162],"./step21.js":[347,162],"./stylus":[348,163],"./stylus.js":[348,163],"./subunit":[349,164],"./subunit.js":[349,164],"./swift":[350,165],"./swift.js":[350,165],"./taggerscript":[351,166],"./taggerscript.js":[351,166],"./tap":[352,167],"./tap.js":[352,167],"./tcl":[353,168],"./tcl.js":[353,168],"./tex":[354,169],"./tex.js":[354,169],"./thrift":[355,170],"./thrift.js":[355,170],"./tp":[356,171],"./tp.js":[356,171],"./twig":[357,172],"./twig.js":[357,172],"./typescript":[358,173],"./typescript.js":[358,173],"./vala":[359,174],"./vala.js":[359,174],"./vbnet":[360,175],"./vbnet.js":[360,175],"./vbscript":[362,176],"./vbscript-html":[361,177],"./vbscript-html.js":[361,177],"./vbscript.js":[362,176],"./verilog":[363,178],"./verilog.js":[363,178],"./vhdl":[364,179],"./vhdl.js":[364,179],"./vim":[365,180],"./vim.js":[365,180],"./x86asm":[366,181],"./x86asm.js":[366,181],"./xl":[367,182],"./xl.js":[367,182],"./xml":[368,183],"./xml.js":[368,183],"./xquery":[369,184],"./xquery.js":[369,184],"./yaml":[370,185],"./yaml.js":[370,185],"./zephir":[371,186],"./zephir.js":[371,186]};function i(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],i=r[0];return t.e(r[1]).then((function(){return t.t(i,7)}))}i.keys=function(){return Object.keys(o)},i.id=382,e.exports=i},386:function(e,r,t){"use strict";var o=t(176);t.n(o).a},387:function(e,r,t){(r=t(90)(!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 .checkbox-item{display:flex;align-items:start}#read-only-editor div.ProseMirror .checkbox-item input[type=checkbox]{display:none}#read-only-editor div.ProseMirror .checkbox-item:before{content:\'\';display:inline-block;height:14px;width:14px;vertical-align:middle;border-radius:50%;margin:0 6px 3px 3px;margin-left:3px;border:1px solid #878787;content:"";position:relative;width:44px;height:44px;display:block;border-radius:1px;height:14px;width:14px;box-shadow:none !important;background-position:center}#read-only-editor div.ProseMirror .checkbox-item.checked:before{background-image:url("/core/css/../img/actions/checkbox-mark.svg");background-color:var(--color-primary-element)}#read-only-editor div.ProseMirror .checkbox-item label{display:block;flex-grow:1}#read-only-editor div.ProseMirror .checkbox-item label>*:first-child{margin-top:0}#read-only-editor div.ProseMirror li label.checkbox-label{width:100%;display:flex;margin-top:10px;margin-bottom:1em}#read-only-editor div.ProseMirror li label.checkbox-label:before{position:relative;top:2px}#read-only-editor div.ProseMirror li label.checkbox-label div.checkbox-wrapper{margin-bottom:-1em;width:100%}#read-only-editor div.ProseMirror li label.checkbox-label div.checkbox-wrapper>p{margin-top:-1px;margin-bottom:0;padding-bottom:10px}#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,#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 h1{font-size:36px;margin-top:48px}#read-only-editor div.ProseMirror h2{font-size:28px;margin-top:48px}#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 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;overflow-x:auto;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:10px;margin-left:10px}#read-only-editor div.ProseMirror ul li{list-style-type:disc}#read-only-editor div.ProseMirror ul>li>ul>li{list-style-type:circle}#read-only-editor div.ProseMirror ul>li>ul>li ul li{list-style-type:square}#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',""]),e.exports=r},388:function(e,r,t){"use strict";var o=t(177);t.n(o).a},389:function(e,r,t){(r=t(90)(!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 .checkbox-item{display:flex;align-items:start}div.ProseMirror .checkbox-item input[type=checkbox]{display:none}div.ProseMirror .checkbox-item:before{content:\'\';display:inline-block;height:14px;width:14px;vertical-align:middle;border-radius:50%;margin:0 6px 3px 3px;margin-left:3px;border:1px solid #878787;content:"";position:relative;width:44px;height:44px;display:block;border-radius:1px;height:14px;width:14px;box-shadow:none !important;background-position:center}div.ProseMirror .checkbox-item.checked:before{background-image:url("/core/css/../img/actions/checkbox-mark.svg");background-color:var(--color-primary-element)}div.ProseMirror .checkbox-item label{display:block;flex-grow:1}div.ProseMirror .checkbox-item label>*:first-child{margin-top:0}div.ProseMirror li label.checkbox-label{width:100%;display:flex;margin-top:10px;margin-bottom:1em}div.ProseMirror li label.checkbox-label:before{position:relative;top:2px}div.ProseMirror li label.checkbox-label div.checkbox-wrapper{margin-bottom:-1em;width:100%}div.ProseMirror li label.checkbox-label div.checkbox-wrapper>p{margin-top:-1px;margin-bottom:0;padding-bottom:10px}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,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 h1{font-size:36px;margin-top:48px}div.ProseMirror h2{font-size:28px;margin-top:48px}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 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;overflow-x:auto;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:10px;margin-left:10px}div.ProseMirror ul li{list-style-type:disc}div.ProseMirror ul>li>ul>li{list-style-type:circle}div.ProseMirror ul>li>ul>li ul li{list-style-type:square}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',""]),e.exports=r},525:function(e,r,t){"use strict";t.r(r);var o=t(171),i=t(373),n=t.n(i),a=t(372),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>"+n()(this.content)+"</pre>",enableRichEditing:this.isRichEditor}),this.editor.setOptions({editable:!1})},beforeDestroy:function(){this.editor.destroy()}},l=(t(386),t(388),t(19)),c=Object(l.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=c.exports}}]); -//# sourceMappingURL=preview.js.map?v=1db6788a15890955e764
\ No newline at end of file +var me=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(382)("./"+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){fe(i,o,n,a,s,"next",e)}function s(e){fe(i,o,n,a,s,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),he=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 h,new b,new y,new n.h,new n.k,new n.c,new n.p,new n.a,new n.e,new ee,new n.n({openOnClick:!0}),new I,new n.q({emptyNodeClass:"is-empty",emptyNodeText:"Add notes, lists or links …",showOnlyWhenEditable:!0})]:[new W,new o.j,new n.f(ue({},c))],a=a||[],new o.a({content:r,onInit:t,onUpdate:i,extensions:[].concat(se(l),[new n.j]).concat(a),useBuiltInExtensions:s})},be=te()("commonmark",{html:!1,breaks:!1}).enable("strikethrough").use(ne.a,{enable:!0,labelAfter:!0}),ye=function(e){this.message=e},ve=function(e,r){var t=Object.entries(e).filter((function(e){return ae(e,2)[1].toMarkdown})).reduce((function(e,r){var t=ae(r,2);return ue({},e,pe({},t[0],t[1].toMarkdown))}),{}),o=Object.entries(r).filter((function(e){return ae(e,2)[1].toMarkdown})).reduce((function(e,r){var t=ae(r,2);return ue({},e,pe({},t[0],t[1].toMarkdown))}),{});return{serializer:new ie.a(ue({},ie.b.nodes,{},t),ue({},ie.b.marks,{},o)),serialize:function(e,r){return this.serializer.serialize(e,ue({},r,{tightLists:!0})).split("\\[").join("[").split("\\]").join("]")}}},ge=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 ye("Failed to serialize document to plain text")}var t=r.content[0].content[0];if("text"!==t.type)throw new ye("Failed to serialize document to plain text");return t.text}},376:function(e,r,t){"use strict";var o=t(177);t.n(o).a},377:function(e,r,t){(r=t(92)(!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",""]),e.exports=r},382:function(e,r,t){var o={"./1c":[187,2],"./1c.js":[187,2],"./abnf":[188,3],"./abnf.js":[188,3],"./accesslog":[189,4],"./accesslog.js":[189,4],"./actionscript":[190,5],"./actionscript.js":[190,5],"./ada":[191,6],"./ada.js":[191,6],"./angelscript":[192,7],"./angelscript.js":[192,7],"./apache":[193,8],"./apache.js":[193,8],"./applescript":[194,9],"./applescript.js":[194,9],"./arcade":[195,10],"./arcade.js":[195,10],"./arduino":[196,11],"./arduino.js":[196,11],"./armasm":[197,12],"./armasm.js":[197,12],"./asciidoc":[198,13],"./asciidoc.js":[198,13],"./aspectj":[199,14],"./aspectj.js":[199,14],"./autohotkey":[200,15],"./autohotkey.js":[200,15],"./autoit":[201,16],"./autoit.js":[201,16],"./avrasm":[202,17],"./avrasm.js":[202,17],"./awk":[203,18],"./awk.js":[203,18],"./axapta":[204,19],"./axapta.js":[204,19],"./bash":[205,20],"./bash.js":[205,20],"./basic":[206,21],"./basic.js":[206,21],"./bnf":[207,22],"./bnf.js":[207,22],"./brainfuck":[208,23],"./brainfuck.js":[208,23],"./cal":[209,24],"./cal.js":[209,24],"./capnproto":[210,25],"./capnproto.js":[210,25],"./ceylon":[211,26],"./ceylon.js":[211,26],"./clean":[212,27],"./clean.js":[212,27],"./clojure":[214,28],"./clojure-repl":[213,29],"./clojure-repl.js":[213,29],"./clojure.js":[214,28],"./cmake":[215,30],"./cmake.js":[215,30],"./coffeescript":[216,31],"./coffeescript.js":[216,31],"./coq":[217,32],"./coq.js":[217,32],"./cos":[218,33],"./cos.js":[218,33],"./cpp":[219,34],"./cpp.js":[219,34],"./crmsh":[220,35],"./crmsh.js":[220,35],"./crystal":[221,36],"./crystal.js":[221,36],"./cs":[222,37],"./cs.js":[222,37],"./csp":[223,38],"./csp.js":[223,38],"./css":[224,39],"./css.js":[224,39],"./d":[225,40],"./d.js":[225,40],"./dart":[226,41],"./dart.js":[226,41],"./delphi":[227,42],"./delphi.js":[227,42],"./diff":[228,43],"./diff.js":[228,43],"./django":[229,44],"./django.js":[229,44],"./dns":[230,45],"./dns.js":[230,45],"./dockerfile":[231,46],"./dockerfile.js":[231,46],"./dos":[232,47],"./dos.js":[232,47],"./dsconfig":[233,48],"./dsconfig.js":[233,48],"./dts":[234,49],"./dts.js":[234,49],"./dust":[235,50],"./dust.js":[235,50],"./ebnf":[236,51],"./ebnf.js":[236,51],"./elixir":[237,52],"./elixir.js":[237,52],"./elm":[238,53],"./elm.js":[238,53],"./erb":[239,54],"./erb.js":[239,54],"./erlang":[241,55],"./erlang-repl":[240,56],"./erlang-repl.js":[240,56],"./erlang.js":[241,55],"./excel":[242,57],"./excel.js":[242,57],"./fix":[243,58],"./fix.js":[243,58],"./flix":[244,59],"./flix.js":[244,59],"./fortran":[245,60],"./fortran.js":[245,60],"./fsharp":[246,61],"./fsharp.js":[246,61],"./gams":[247,62],"./gams.js":[247,62],"./gauss":[248,63],"./gauss.js":[248,63],"./gcode":[249,64],"./gcode.js":[249,64],"./gherkin":[250,65],"./gherkin.js":[250,65],"./glsl":[251,66],"./glsl.js":[251,66],"./gml":[252,67],"./gml.js":[252,67],"./go":[253,68],"./go.js":[253,68],"./golo":[254,69],"./golo.js":[254,69],"./gradle":[255,70],"./gradle.js":[255,70],"./groovy":[256,71],"./groovy.js":[256,71],"./haml":[257,72],"./haml.js":[257,72],"./handlebars":[258,73],"./handlebars.js":[258,73],"./haskell":[259,74],"./haskell.js":[259,74],"./haxe":[260,75],"./haxe.js":[260,75],"./hsp":[261,76],"./hsp.js":[261,76],"./htmlbars":[262,77],"./htmlbars.js":[262,77],"./http":[263,78],"./http.js":[263,78],"./hy":[264,79],"./hy.js":[264,79],"./inform7":[265,80],"./inform7.js":[265,80],"./ini":[266,81],"./ini.js":[266,81],"./irpf90":[267,82],"./irpf90.js":[267,82],"./isbl":[268,83],"./isbl.js":[268,83],"./java":[269,84],"./java.js":[269,84],"./javascript":[270,85],"./javascript.js":[270,85],"./jboss-cli":[271,86],"./jboss-cli.js":[271,86],"./json":[272,87],"./json.js":[272,87],"./julia":[274,88],"./julia-repl":[273,89],"./julia-repl.js":[273,89],"./julia.js":[274,88],"./kotlin":[275,90],"./kotlin.js":[275,90],"./lasso":[276,91],"./lasso.js":[276,91],"./ldif":[277,92],"./ldif.js":[277,92],"./leaf":[278,93],"./leaf.js":[278,93],"./less":[279,94],"./less.js":[279,94],"./lisp":[280,95],"./lisp.js":[280,95],"./livecodeserver":[281,96],"./livecodeserver.js":[281,96],"./livescript":[282,97],"./livescript.js":[282,97],"./llvm":[283,98],"./llvm.js":[283,98],"./lsl":[284,99],"./lsl.js":[284,99],"./lua":[285,100],"./lua.js":[285,100],"./makefile":[286,101],"./makefile.js":[286,101],"./markdown":[287,102],"./markdown.js":[287,102],"./mathematica":[288,103],"./mathematica.js":[288,103],"./matlab":[289,104],"./matlab.js":[289,104],"./maxima":[290,105],"./maxima.js":[290,105],"./mel":[291,106],"./mel.js":[291,106],"./mercury":[292,107],"./mercury.js":[292,107],"./mipsasm":[293,108],"./mipsasm.js":[293,108],"./mizar":[294,109],"./mizar.js":[294,109],"./mojolicious":[295,110],"./mojolicious.js":[295,110],"./monkey":[296,111],"./monkey.js":[296,111],"./moonscript":[297,112],"./moonscript.js":[297,112],"./n1ql":[298,113],"./n1ql.js":[298,113],"./nginx":[299,114],"./nginx.js":[299,114],"./nimrod":[300,115],"./nimrod.js":[300,115],"./nix":[301,116],"./nix.js":[301,116],"./nsis":[302,117],"./nsis.js":[302,117],"./objectivec":[303,118],"./objectivec.js":[303,118],"./ocaml":[304,119],"./ocaml.js":[304,119],"./openscad":[305,120],"./openscad.js":[305,120],"./oxygene":[306,121],"./oxygene.js":[306,121],"./parser3":[307,122],"./parser3.js":[307,122],"./perl":[308,123],"./perl.js":[308,123],"./pf":[309,124],"./pf.js":[309,124],"./pgsql":[310,125],"./pgsql.js":[310,125],"./php":[311,126],"./php.js":[311,126],"./plaintext":[312,127],"./plaintext.js":[312,127],"./pony":[313,128],"./pony.js":[313,128],"./powershell":[314,129],"./powershell.js":[314,129],"./processing":[315,130],"./processing.js":[315,130],"./profile":[316,131],"./profile.js":[316,131],"./prolog":[317,132],"./prolog.js":[317,132],"./properties":[318,133],"./properties.js":[318,133],"./protobuf":[319,134],"./protobuf.js":[319,134],"./puppet":[320,135],"./puppet.js":[320,135],"./purebasic":[321,136],"./purebasic.js":[321,136],"./python":[322,137],"./python.js":[322,137],"./q":[323,138],"./q.js":[323,138],"./qml":[324,139],"./qml.js":[324,139],"./r":[325,140],"./r.js":[325,140],"./reasonml":[326,141],"./reasonml.js":[326,141],"./rib":[327,142],"./rib.js":[327,142],"./roboconf":[328,143],"./roboconf.js":[328,143],"./routeros":[329,144],"./routeros.js":[329,144],"./rsl":[330,145],"./rsl.js":[330,145],"./ruby":[331,146],"./ruby.js":[331,146],"./ruleslanguage":[332,147],"./ruleslanguage.js":[332,147],"./rust":[333,148],"./rust.js":[333,148],"./sas":[334,149],"./sas.js":[334,149],"./scala":[335,150],"./scala.js":[335,150],"./scheme":[336,151],"./scheme.js":[336,151],"./scilab":[337,152],"./scilab.js":[337,152],"./scss":[338,153],"./scss.js":[338,153],"./shell":[339,154],"./shell.js":[339,154],"./smali":[340,155],"./smali.js":[340,155],"./smalltalk":[341,156],"./smalltalk.js":[341,156],"./sml":[342,157],"./sml.js":[342,157],"./sqf":[343,158],"./sqf.js":[343,158],"./sql":[344,159],"./sql.js":[344,159],"./stan":[345,160],"./stan.js":[345,160],"./stata":[346,161],"./stata.js":[346,161],"./step21":[347,162],"./step21.js":[347,162],"./stylus":[348,163],"./stylus.js":[348,163],"./subunit":[349,164],"./subunit.js":[349,164],"./swift":[350,165],"./swift.js":[350,165],"./taggerscript":[351,166],"./taggerscript.js":[351,166],"./tap":[352,167],"./tap.js":[352,167],"./tcl":[353,168],"./tcl.js":[353,168],"./tex":[354,169],"./tex.js":[354,169],"./thrift":[355,170],"./thrift.js":[355,170],"./tp":[356,171],"./tp.js":[356,171],"./twig":[357,172],"./twig.js":[357,172],"./typescript":[358,173],"./typescript.js":[358,173],"./vala":[359,174],"./vala.js":[359,174],"./vbnet":[360,175],"./vbnet.js":[360,175],"./vbscript":[362,176],"./vbscript-html":[361,177],"./vbscript-html.js":[361,177],"./vbscript.js":[362,176],"./verilog":[363,178],"./verilog.js":[363,178],"./vhdl":[364,179],"./vhdl.js":[364,179],"./vim":[365,180],"./vim.js":[365,180],"./x86asm":[366,181],"./x86asm.js":[366,181],"./xl":[367,182],"./xl.js":[367,182],"./xml":[368,183],"./xml.js":[368,183],"./xquery":[369,184],"./xquery.js":[369,184],"./yaml":[370,185],"./yaml.js":[370,185],"./zephir":[371,186],"./zephir.js":[371,186]};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=382,e.exports=n},386:function(e,r,t){"use strict";var o=t(178);t.n(o).a},387:function(e,r,t){(r=t(92)(!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 .checkbox-item{display:flex;align-items:start}#read-only-editor div.ProseMirror .checkbox-item input[type=checkbox]{display:none}#read-only-editor div.ProseMirror .checkbox-item:before{content:\'\';display:inline-block;height:14px;width:14px;vertical-align:middle;border-radius:50%;margin:0 6px 3px 3px;margin-left:3px;border:1px solid #878787;content:"";position:relative;width:44px;height:44px;display:block;border-radius:1px;height:14px;width:14px;box-shadow:none !important;background-position:center}#read-only-editor div.ProseMirror .checkbox-item.checked:before{background-image:url("/core/css/../img/actions/checkbox-mark.svg");background-color:var(--color-primary-element)}#read-only-editor div.ProseMirror .checkbox-item label{display:block;flex-grow:1}#read-only-editor div.ProseMirror .checkbox-item label>*:first-child{margin-top:0}#read-only-editor div.ProseMirror li label.checkbox-label{width:100%;display:flex;margin-top:10px;margin-bottom:1em}#read-only-editor div.ProseMirror li label.checkbox-label:before{position:relative;top:2px}#read-only-editor div.ProseMirror li label.checkbox-label div.checkbox-wrapper{margin-bottom:-1em;width:100%}#read-only-editor div.ProseMirror li label.checkbox-label div.checkbox-wrapper>p{margin-top:-1px;margin-bottom:0;padding-bottom:10px}#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,#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 h1{font-size:36px;margin-top:48px}#read-only-editor div.ProseMirror h2{font-size:28px;margin-top:48px}#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 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;overflow-x:auto;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:10px;margin-left:10px}#read-only-editor div.ProseMirror ul li{list-style-type:disc}#read-only-editor div.ProseMirror ul>li>ul>li{list-style-type:circle}#read-only-editor div.ProseMirror ul>li>ul>li ul li{list-style-type:square}#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',""]),e.exports=r},388:function(e,r,t){"use strict";var o=t(179);t.n(o).a},389:function(e,r,t){(r=t(92)(!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 .checkbox-item{display:flex;align-items:start}div.ProseMirror .checkbox-item input[type=checkbox]{display:none}div.ProseMirror .checkbox-item:before{content:\'\';display:inline-block;height:14px;width:14px;vertical-align:middle;border-radius:50%;margin:0 6px 3px 3px;margin-left:3px;border:1px solid #878787;content:"";position:relative;width:44px;height:44px;display:block;border-radius:1px;height:14px;width:14px;box-shadow:none !important;background-position:center}div.ProseMirror .checkbox-item.checked:before{background-image:url("/core/css/../img/actions/checkbox-mark.svg");background-color:var(--color-primary-element)}div.ProseMirror .checkbox-item label{display:block;flex-grow:1}div.ProseMirror .checkbox-item label>*:first-child{margin-top:0}div.ProseMirror li label.checkbox-label{width:100%;display:flex;margin-top:10px;margin-bottom:1em}div.ProseMirror li label.checkbox-label:before{position:relative;top:2px}div.ProseMirror li label.checkbox-label div.checkbox-wrapper{margin-bottom:-1em;width:100%}div.ProseMirror li label.checkbox-label div.checkbox-wrapper>p{margin-top:-1px;margin-bottom:0;padding-bottom:10px}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,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 h1{font-size:36px;margin-top:48px}div.ProseMirror h2{font-size:28px;margin-top:48px}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 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;overflow-x:auto;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:10px;margin-left:10px}div.ProseMirror ul li{list-style-type:disc}div.ProseMirror ul>li>ul>li{list-style-type:circle}div.ProseMirror ul>li>ul>li ul li{list-style-type:square}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',""]),e.exports=r},527:function(e,r,t){"use strict";t.r(r);var o=t(173),n=t(373),i=t.n(n),a=t(372),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(386),t(388),t(19)),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=4714ba97c5b2077695fe
\ No newline at end of file |