2021-05-21 12:14:23 +02:00
|
|
|
this.wp=this.wp||{},this.wp.formatLibrary=function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="./node_modules/@wordpress/format-library/build-module/index.js")}({"./node_modules/@wordpress/format-library/build-module/index.js":function(e,t,o){"use strict";o.r(t);var r=o("@wordpress/rich-text"),n=o("@wordpress/element"),c=o("@wordpress/i18n"),s=o("@wordpress/block-editor"),i=o("@wordpress/primitives");var l=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"}));const a=Object(c.__)("Bold"),u={name:"core/bold",title:a,tagName:"strong",className:null,edit({isActive:e,value:t,onChange:o,onFocus:c}){function i(){o(Object(r.toggleFormat)(t,{type:"core/bold"}))}return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(s.RichTextShortcut,{type:"primary",character:"b",onUse:i}),Object(n.createElement)(s.RichTextToolbarButton,{name:"bold",icon:l,title:a,onClick:function(){i(),c()},isActive:e,shortcutType:"primary",shortcutCharacter:"b"}),Object(n.createElement)(s.__unstableRichTextInputEvent,{inputType:"formatBold",onInput:i}))}};var b=o("./node_modules/@wordpress/icons/build-module/library/code.js");const m=Object(c.__)("Inline code"),d={name:"core/code",title:m,tagName:"code",className:null,__unstableInputRule(e){const{start:t,text:o}=e;if("`"!==o.slice(t-1,t))return e;const n=o.slice(0,t-1).lastIndexOf("`");if(-1===n)return e;const c=n,s=t-2;return c===s?e:(e=Object(r.remove)(e,c,c+1),e=Object(r.remove)(e,s,s+1),e=Object(r.applyFormat)(e,{type:"core/code"},c,s))},edit:({value:e,onChange:t,onFocus:o,isActive:c})=>Object(n.createElement)(s.RichTextToolbarButton,{icon:b.a,title:m,onClick:function(){t(Object(r.toggleFormat)(e,{type:"core/code"})),o()},isActive:c})};var p=o("@wordpress/components"),j=o("./node_modules/@wordpress/icons/build-module/library/keyboard-return.js");const h=["image"],O=Object(c.__)("Inline image"),v={name:"core/image",title:O,keywords:[Object(c.__)("photo"),Object(c.__)("media")],object:!0,tagName:"img",className:null,attributes:{className:"class",style:"style",url:"src",alt:"alt"},edit:function({value:e,onChange:t,onFocus:o,isObjectActive:c,activeObjectAttributes:i,contentRef:l}){const[a,u]=Object(n.useState)(!1);function b(){u(!1)}return Object(n.createElement)(s.MediaUploadCheck,null,Object(n.createElement)(s.RichTextToolbarButton,{icon:Object(n.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(p.Path,{d:"M4 18.5h16V17H4v1.5zM16 13v1.5h4V13h-4zM5.1 15h7.8c.6 0 1.1-.5 1.1-1.1V6.1c0-.6-.5-1.1-1.1-1.1H5.1C4.5 5 4 5.5 4 6.1v7.8c0 .6.5 1.1 1.1 1.1zm.4-8.5h7V10l-1-1c-.3-.3-.8-.3-1 0l-1.6 1.5-1.2-.7c-.3-.2-.6-.2-.9 0l-1.3 1V6.5zm0 6.1l1.8-1.3 1.3.8c.3.2.7.2.9-.1l1.5-1.4 1.5 1.4v1.5h-7v-.9z"})),title:O,onClick:function(){u(!0)},isActive:c}),a&&Object(n.createElement)(s.MediaUpload,{allowedTypes:h,onSelect:({id:n,url:c,alt:s,width:i})=>{b(),t(Object(r.i
|