rumine-web/static/wagtailadmin/js/draftail.3174a9a8a29b.js

2 lines
287 KiB
JavaScript
Raw Normal View History

2024-03-13 07:49:06 +01:00
/*! For license information please see draftail.js.LICENSE.txt */
(()=>{var t,e={7020:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(7647),s=(r=a)&&r.__esModule?r:{default:r};e.default=function(t,e){var n,r,c;return r=n=function(n){function r(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,n),i(r,[{key:"render",value:function(){return s.default.createElement(t,o({},this.props,e))}}]),r}(a.Component),n.displayName="Decorated("+((c=t).displayName||c.name||"Component")+")",r}},4842:(t,e,n)=>{"use strict";var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=(r=n(3393))&&r.__esModule?r:{default:r},a="-",s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.decorators=i.default.List(e)}return o(t,[{key:"getDecorations",value:function(t,e){var n=new Array(t.getText().length).fill(null);return this.decorators.forEach((function(r,o){r.getDecorations(t,e).forEach((function(t,e){t&&(n[e]=o+a+t)}))})),i.default.List(n)}},{key:"getComponentForKey",value:function(e){return this.getDecoratorForKey(e).getComponentForKey(t.getInnerKey(e))}},{key:"getPropsForKey",value:function(e){return this.getDecoratorForKey(e).getPropsForKey(t.getInnerKey(e))}},{key:"getDecoratorForKey",value:function(t){var e=t.split(a),n=Number(e[0]);return this.decorators.get(n)}}],[{key:"getInnerKey",value:function(t){return t.split(a).slice(1).join(a)}}]),t}();t.exports=s},604:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(3393),a=n(7804),s=(r=n(7020))&&r.__esModule?r:{default:r};e.default=function(t,e,n){var r=(0,i.List)(t).map((function(t){return o({},t,{component:(0,s.default)(t.component,{getEditorState:e,setEditorState:n})})})).toJS();return new a.CompositeDecorator(r)}},3532:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7804);e.default={keyBindingFn:function(t){return(0,r.getDefaultKeyBinding)(t)}}},9795:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7804);e.default={handleKeyCommand:function(t,e,n){var o=n.setEditorState,i=void 0;switch(t){case"backspace":case"backspace-word":case"backspace-to-start-of-line":i=r.RichUtils.onBackspace(e);break;case"delete":case"delete-word":case"delete-to-end-of-block":i=r.RichUtils.onDelete(e);break;default:return"not-handled"}return null!=i?(o(i),"handled"):"not-handled"}}},2690:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r