@progress/kendo-react-editor 5.14.0-dev.202306051641 → 5.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@progress/kendo-react-editor",["react","prop-types","@progress/kendo-react-buttons","@progress/kendo-react-common","@progress/kendo-editor-common","@progress/kendo-svg-icons","@progress/kendo-react-dialogs","@progress/kendo-react-inputs","@progress/kendo-react-intl","@progress/kendo-react-layout","@progress/kendo-licensing","@progress/kendo-react-popup","@progress/kendo-react-dropdowns","@progress/kendo-react-pdf"],function(e,t){var f={},m={},g={},h={},y={},v={},b={},w={},k={},O={},_={},T={},S={},C={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.defineProperty(m,"__esModule",{value:!0}),Object.defineProperty(g,"__esModule",{value:!0}),Object.defineProperty(h,"__esModule",{value:!0}),Object.defineProperty(y,"__esModule",{value:!0}),Object.defineProperty(v,"__esModule",{value:!0}),Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(w,"__esModule",{value:!0}),Object.defineProperty(k,"__esModule",{value:!0}),Object.defineProperty(O,"__esModule",{value:!0}),Object.defineProperty(_,"__esModule",{value:!0}),Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(S,"__esModule",{value:!0}),Object.defineProperty(C,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){f[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){m[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){g[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){h[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){y[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){v[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){b[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){w[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){k[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){O[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){_[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){T[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){S[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){C[e]=t[e]})}],execute:function(){e((()=>{"use strict";var n={1801:function(e,t,n){var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},l=(Object.defineProperty(t,"__esModule",{value:!0}),t.Editor=void 0,n(5954)),a=n(1895),p=n(3536),s=n(3811),d=n(7403),f=n(2346),m=n(3605),g=n(2804),h=n(3695),y=n(5538),v=n(580),b=n(1457),w=g.EditorToolsSettings.link,k=g.EditorToolsSettings.bold,O=g.EditorToolsSettings.italic,_=g.EditorToolsSettings.underline,T=n(3131),S=n(2527),C=n(7363),E=n(3364),P=n(4987),g=(r=l.Component,i(I,r),Object.defineProperty(I.prototype,"value",{get:function(){return null!==this.trOnChange?this.trOnChange.doc:void 0!==this.props.value?this.props.value:this.view?this.view.state.doc:this.props.defaultContent||""},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"contentElement",{get:function(){return this._contentElement},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"view",{get:function(){return this._view},enumerable:!1,configurable:!0}),I.prototype.componentDidMount=function(){this.iframe&&T.firefox||this.initialize()},I.prototype.componentDidUpdate=function(e){var t=this.props.value,n=this.view;void 0!==t&&n&&((0,b.updateEditorValue)(n,t,e.value,this.trOnChange,this.htmlOnChange),this.trOnChange=null,this.htmlOnChange=null)},I.prototype.componentWillUnmount=function(){this.view&&this.view.destroy(),this._view=void 0;var e=this.iframe&&this.iframe.contentWindow;if(e){this._contentElement&&this._contentElement.parentNode&&this._contentElement.parentNode.removeChild(this._contentElement);for(var t=e.document.head;t&&t.firstChild;)t.removeChild(t.firstChild)}},I.prototype.render=function(){var n=this,e=this.props,t=e.tools,t=void 0===t?[]:t,o=e.defaultEditMode,o=void 0===o?"iframe":o,r=e.preserveWhitespace,r=void 0===r?"full":r,i=e.style,e=e.className,a=(0,P.provideLocalizationService)(this),r=(this.view&&(v.editorPropsKey.getState(this.view.state).preserveWhitespace=r),this.props.contentStyle),t=(void 0===r&&void 0===(i||{}).height&&(r={height:"300px"}),t.map(function(e,t){return Array.isArray(e)?l.createElement(p.ButtonGroup,{key:t},e.map(n.renderTool,t)):n.renderTool(e,t)}));return l.createElement("div",{ref:function(e){return n._element=e},className:(0,s.classNames)("k-editor",e,{"k-editor-resizable":this.props.resizable}),dir:this.props.dir,style:i},0<t.length&&l.createElement(p.Toolbar,{className:"k-editor-toolbar",keyboardNavigation:this.props.keyboardNavigation},t),"iframe"===o?l.createElement("div",{className:"k-editor-content"},l.createElement("iframe",{onLoad:T.firefox?function(){n.initialize()}:void 0,ref:function(e){return n.iframe=e},frameBorder:"0",title:a.toLanguageString(E.keys.iframeTitle,E.messages[E.keys.iframeTitle]),style:r,className:"k-iframe"})):l.createElement("div",{style:r,className:"k-editor-content"},l.createElement("div",{ref:function(e){return n._contentElement=e},suppressContentEditableWarning:!0,role:"textbox","aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,"aria-label":this.props.ariaLabel})),this.renderDialog(h.EditorDialogs.InsertLinkDialog,w,"linkDialog"))},I.prototype.initialize=function(){var n,e,t,o,r,i,a,l=this,s=this.iframe&&this.iframe.contentWindow,s=(s&&(n=s.document,[m.defaultStyle,m.tablesStyles,"rtl"===this.props.dir?m.rtlStyles:void 0].forEach(function(e){var t;e&&((t=n.createElement("style")).appendChild(n.createTextNode(e)),n.head.appendChild(t))}),(s=n.createElement("meta")).setAttribute("charset","utf-8"),n.head.appendChild(s),this._contentElement=n.createElement("div"),n.body.appendChild(this._contentElement),this._contentElement.classList.add("k-content")),this._contentElement);s&&(t=this.props.preserveWhitespace,e=void 0===t?"full":t,t=[new d.Plugin({view:function(){return{update:l.updateTools}},key:new d.PluginKey("toolbar-tools-update-plugin")}),new d.Plugin({filterTransaction:this.filterTransaction,key:new d.PluginKey("onExecute-event-plugin")}),new d.Plugin({key:v.editorPropsKey,state:{init:function(){return{preserveWhitespace:e}},apply:function(e,t){return t}}}),(0,d.spacesFix)(),(0,d.caretColor)(),(0,d.history)(),(0,d.dropCursor)(),(0,d.gapCursor)(),(0,d.tableEditing)()],o=c(c({},y.EditorUtils.getShortcuts({types:{listItem:"list_item",hardBreak:"hard_break"},toolsSettings:{bold:k,italic:O,underline:_}})),{"Mod-k":function(){var e,t=l.state.linkDialog,n=l.view;return n&&(e=(n=n.state).selection.empty,n=(0,d.getMark)(n,n.schema.marks[w.mark]),t||e&&!n||l.setState({linkDialog:!0})),!t},"Alt-F10":function(){var e=null==(e=l.element)?void 0:e.querySelector(".k-toolbar");if(e){e=e.querySelector(p.toolbarButtons.join(","));if(e)return e.focus(),!0}return!1}}),i=void 0===(i=(r=this.props).defaultContent)?"":i,a=r.value,r=r.onMount,a=a&&"string"!=typeof a?a:y.EditorUtils.createDocument(new d.Schema({nodes:f.nodes,marks:f.marks}),a||i,{preserveWhitespace:e}),i={state:d.EditorState.create({plugins:u(u([],t,!0),[(0,d.keymap)(o),(0,d.keymap)(d.baseKeymap)],!1),doc:a}),transformPastedHTML:this.onPasteHtml,dispatchTransaction:this.dispatchTransaction,handleDOMEvents:{focus:this.onFocus,blur:this.onBlur,paste:this.onPaste}},a=this._view=r&&r.call(void 0,{plugins:t,shortcuts:o,target:this,viewProps:i,dom:s})||new d.EditorView({mount:s},i),this.setState({view:a}))},I.propTypes={defaultContent:a.string,value:a.oneOfType([a.object,a.string]),defaultEditMode:a.oneOf(["iframe","div"]),contentStyle:a.object,dir:a.string,className:a.string,ariaDescribedBy:a.string,ariaLabelledBy:a.string,ariaLabel:a.string,style:a.object,tools:a.arrayOf(a.any),keyboardNavigation:a.bool,resizable:a.bool,preserveWhitespace:a.oneOf([!0,!1,"full"]),onMount:a.func,onFocus:a.func,onBlur:a.func,onChange:a.func,onPasteHtml:a.func,onExecute:a.func},I);function I(e){var i=r.call(this,e)||this;return i.state={view:void 0,linkDialog:!1},i._element=null,i._contentElement=null,i.iframe=null,i.trOnChange=null,i.htmlOnChange=null,i.focus=function(){i.view&&i.view.focus()},i.renderDialog=function(e,t,n){return i.state[n]&&l.createElement(e,{view:i.view,settings:t,dir:i.props.dir,onClose:function(){var e;return i.setState(((e={})[n]=!1,e))}})},i.renderTool=function(e,t){var n=l.createElement(e,{view:i.view,dir:i.props.dir,key:t});return n.type===p.ToolbarSeparator?l.createElement(e,{key:t}):n},i.updateTools=function(e,t){i.setState({view:e})},i.filterTransaction=function(e,t){return!1!==(i.props.onExecute&&i.props.onExecute.call(void 0,{target:i,transaction:e,state:t}))},i.onPasteHtml=function(e){if(i.props.onPasteHtml&&i.pasteEvent){var t={target:i,pastedHtml:e,nativeEvent:i.pasteEvent},t=i.props.onPasteHtml.call(void 0,t);if(i.pasteEvent=void 0,"string"==typeof t)return t}return e},i.dispatchTransaction=function(e){var t,n,o,r=e.docChanged;i.props.onChange&&r&&(t=(i.trOnChange=e).doc,n=e.doc.type.schema,(o=i).props.onChange.call(void 0,{target:o,value:t,get html(){return o.htmlOnChange=y.EditorUtils.getHtml({doc:t,schema:n}),o.htmlOnChange},transaction:e,schema:n})),!i.view||void 0!==i.props.value&&r||i.view.updateState(i.view.state.apply(e))},i.onFocus=function(e,t){return i.props.onFocus&&i.props.onFocus.call(void 0,{target:i,nativeEvent:t}),!1},i.onBlur=function(e,t){return i.props.onBlur&&i.props.onBlur.call(void 0,{target:i,nativeEvent:t}),!1},i.onPaste=function(e,t){return i.props.onPasteHtml&&(i.pasteEvent=t),!1},void 0!==S?S.validatePackage(C.packageMetadata):(e="License activation failed for ".concat(C.packageMetadata.name,"\n"),e=(e+="The @progress/kendo-licensing script is not loaded.\n")+"See ".concat(C.packageMetadata.licensingDocsUrl," for more information.\n"),console.warn(e)),i}t.Editor=g,(0,P.registerForLocalization)(g)},3605:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.rtlStyles=t.tablesStyles=t.defaultStyle=void 0,t.defaultStyle='\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n word-wrap: break-word;\n padding: 8px;\n}\n\nbody > .k-content {\n outline: 0;\n height: 100%;\n white-space: pre-wrap;\n}\n\n.k-content > p {\n margin: 0 0 1em;\n}\n\n.k-content table {\n white-space: pre-wrap;\n}\n\n.k-content .k-text-selected, .k-content::selection {\n color: HighlightText;\n background-color: Highlight;\n}\n\n.k-content .k-text-highlighted {\n background-color: #bbdefb;\n}\n\n.k-content .ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.k-editor-resize-handles-wrapper {\n position: absolute;\n visibility: hidden;\n}\n\n.k-editor-resize-handle {\n position: absolute;\n visibility: visible;\n background-color: #fff;\n border: 1px solid #000;\n z-index: 100;\n width: 5px;\n height: 5px;\n}\n\n.k-editor-resize-handle.northwest {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n}\n\n.k-editor-resize-handle.north {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n}\n\n.k-editor-resize-handle.northeast {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n}\n\n.k-editor-resize-handle.southwest {\n left: 0;\n bottom: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n}\n\n.k-editor-resize-handle.south {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n}\n\n.k-editor-resize-handle.southeast {\n right: 0;\n bottom: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n}\n\n.k-editor-resize-handle.west {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n}\n\n.k-editor-resize-handle.east {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n}\n\n.k-editor-resize-wrap-element {\n display: inline-block;\n position: relative;\n}\n\n.ProseMirror .row-resize-handle {\n position: absolute;\n right: 0; left: 0; bottom: 0;\n transform: translate(0, 50%);\n height: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n}\n\n.ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n}\n\n.ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n}\n\n.ProseMirror.resize-cursor-vertical {\n cursor: sn-resize;\n cursor: row-resize;\n}\n\n.k-editor-resize-wrap-element table td p,\n.k-editor-resize-wrap-element table th p {\n margin: 0 auto;\n}\n',t.tablesStyles='\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n',t.rtlStyles="body { direction: rtl }"},2346:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=t.marks=void 0;var o=n(7403);Object.defineProperty(t,"marks",{enumerable:!0,get:function(){return o.marks}}),Object.defineProperty(t,"nodes",{enumerable:!0,get:function(){return o.nodes}})},4394:function(e,t,n){var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=(Object.defineProperty(t,"__esModule",{value:!0}),t.getShortcuts=void 0,n(7403)),n=n(2804),l=n.EditorToolsSettings.bold,s=n.EditorToolsSettings.underline,c=n.EditorToolsSettings.italic,u="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.getShortcuts=function(o){var e=(0,a.chainCommands)(a.exitCode,function(e,t){var n=o&&o.types&&o.types.hardBreak||"hard_break",n=e.schema.nodes[n];return t&&t(e.tr.replaceSelectionWith(n.create()).scrollIntoView()),!0}),n=o&&o.types&&o.types.listItem||"list_item",r=o&&o.toolsSettings||{};return i(i(i(i({"Mod-b":function(e,t){return(0,a.toggleInlineFormat)(r.bold||l)(e,t)},"Mod-i":function(e,t){return(0,a.toggleInlineFormat)(r.italic||c)(e,t)},"Mod-u":function(e,t){return(0,a.toggleInlineFormat)(r.underline||s)(e,t)},"Mod-z":a.undo,"Shift-Mod-z":a.redo},i({},u?{}:{"Mod-y":a.redo})),{Backspace:a.undoInputRule,"Mod-Enter":e,"Shift-Enter":e}),i({},u?{"Ctrl-Enter":e}:{})),{Enter:function(e,t){return(0,a.splitListItem)(e.schema.nodes[n])(e,t)},Tab:(0,a.goToNextCell)(1),"Shift-Tab":(0,a.goToNextCell)(-1)})}},2804:function(e,t,n){var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorToolsSettings=t.listsTypes=void 0;var i,a,l=n(3364),s=n(6233),n=n(7403);t.listsTypes=o({},n.indentRules.listsTypes),a={type:"button"},(i=t.EditorToolsSettings||(t.EditorToolsSettings={})).bold=o(o({},n.bold),{props:o({icon:"bold",svgIcon:s.boldIcon},a),messages:{title:l.keys.bold},commandName:"Bold"}),i.italic=o(o({},n.italic),{props:o({icon:"italic",svgIcon:s.italicIcon},a),messages:{title:l.keys.italic},commandName:"Italic"}),i.underline=o(o({},n.underline),{props:o({icon:"underline",svgIcon:s.underlineIcon},a),messages:{title:l.keys.underline},commandName:"Underline"}),i.strikethrough=o(o({},n.strikethrough),{props:o({icon:"strikethrough",svgIcon:s.strikethroughIcon},a),messages:{title:l.keys.strikethrough},commandName:"Strikethrough"}),i.subscript=o(o({},n.subscript),{props:o({icon:"subscript",svgIcon:s.subscriptIcon},a),messages:{title:l.keys.subscript},commandName:"Subscript"}),i.superscript=o(o({},n.superscript),{props:o({icon:"supscript",svgIcon:s.supscriptIcon},a),messages:{title:l.keys.superscript},commandName:"Superscript"}),i.link=o(o({},n.link),{props:o({icon:"link",svgIcon:s.linkIcon},a),messages:{insertHyperlink:l.keys.insertHyperlink,insertHyperlinkDialogTitle:l.keys.insertHyperlinkDialogTitle,insertHyperlinkAddress:l.keys.insertHyperlinkAddress,insertHyperlinkTitle:l.keys.insertHyperlinkTitle,insertHyperlinkNewWindow:l.keys.insertHyperlinkNewWindow,insertHyperlinkCancel:l.keys.insertHyperlinkCancel,insertHyperlinkInsert:l.keys.insertHyperlinkInsert},commandName:"Link"}),i.insertFile=o(o({},n.link),{props:o({icon:"file-add",svgIcon:s.fileAddIcon},a),messages:{insertHyperlink:l.keys.insertFile,insertHyperlinkDialogTitle:l.keys.insertFileDialogTitle,insertHyperlinkAddress:l.keys.insertFileAddress,insertHyperlinkTitle:l.keys.insertFileTitle,insertHyperlinkNewWindow:"",insertHyperlinkCancel:l.keys.insertFileCancel,insertHyperlinkInsert:l.keys.insertFileInsert},commandName:"InsertFile",linkTarget:!1}),i.insertTable={props:o({icon:"table-add",svgIcon:s.tableAddIcon},a),messages:{createTable:l.keys.createTable,createTableHint:l.keys.createTableHint},commandName:"InsertTable"},i.addRowBefore={props:o({icon:"table-row-insert-above",svgIcon:s.tableRowInsertAboveIcon},a),messages:{title:l.keys.addRowBefore},commandName:"AddRowBefore"},i.addRowAfter={props:o({icon:"table-row-insert-below",svgIcon:s.tableRowInsertBelowIcon},a),messages:{title:l.keys.addRowAfter},commandName:"AddRowAfter"},i.addColumnBefore={props:o({icon:"table-column-insert-left",svgIcon:s.tableColumnInsertLeftIcon},a),messages:{title:l.keys.addColumnBefore},commandName:"AddColumnBefore"},i.addColumnAfter={props:o({icon:"table-column-insert-right",svgIcon:s.tableColumnInsertRightIcon},a),messages:{title:l.keys.addColumnAfter},commandName:"AddColumnAfter"},i.deleteRow={props:o({icon:"table-row-delete",svgIcon:s.tableRowDeleteIcon},a),messages:{title:l.keys.deleteRow},commandName:"DeleteRow"},i.deleteColumn={props:o({icon:"table-column-delete",svgIcon:s.tableColumnDeleteIcon},a),messages:{title:l.keys.deleteColumn},commandName:"DeleteColumn"},i.deleteTable={props:o({icon:"table-delete",svgIcon:s.tableDeleteIcon},a),messages:{title:l.keys.deleteTable},commandName:"DeleteTable"},i.mergeCells={props:o({icon:"cells-merge",svgIcon:s.cellsMergeIcon},a),messages:{title:l.keys.mergeCells},commandName:"MergeCells"},i.splitCell={props:o({icon:"cell-split-horizontally",svgIcon:s.cellSplitHorizontallyIcon},a),messages:{title:l.keys.splitCell},commandName:"SplitCell"},i.print={props:o({icon:"print",svgIcon:s.printIcon},a),messages:{title:l.keys.print}},i.selectAll={props:o({icon:"select-all",svgIcon:s.selectAllIcon},a),messages:{title:l.keys.selectAll}},i.pdf={props:o({icon:"file-pdf",svgIcon:s.filePdfIcon},a),messages:{title:l.keys.pdf}},i.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},i.cleanFormatting={props:o({icon:"clear-css",svgIcon:s.clearCssIcon},a),messages:{title:l.keys.cleanFormatting},commandName:"CleanFormatting"},i.image={node:"image",props:o({icon:"image",svgIcon:s.imageIcon},a),messages:{insertImage:l.keys.insertImage,insertImageDialogTitle:l.keys.insertImageDialogTitle,insertImageAddress:l.keys.insertImageAddress,insertImageTitle:l.keys.insertImageTitle,insertImageAltText:l.keys.insertImageAltText,insertImageWidth:l.keys.insertImageWidth,insertImageHeight:l.keys.insertImageHeight,insertImageCancel:l.keys.insertImageCancel,insertImageInsert:l.keys.insertImageInsert},commandName:"InsertImage"},i.viewHtml={props:o({icon:"code",svgIcon:s.codeIcon},a),messages:{viewHtml:l.keys.viewHtml,viewHtmlDialogTitle:l.keys.viewHtmlDialogTitle,viewHtmlCancel:l.keys.viewHtmlCancel,viewHtmlUpdate:l.keys.viewHtmlUpdate},commandName:"SetContent"},i.findAndReplace={props:o({icon:"find",svgIcon:s.binocularsIcon},a),messages:{findReplaceToolTitle:l.keys.findReplaceToolTitle,findReplaceDialogTitle:l.keys.findReplaceDialogTitle,findReplaceTabFind:l.keys.findReplaceTabFind,findReplaceTabReplace:l.keys.findReplaceTabReplace,findReplaceFindWhat:l.keys.findReplaceFindWhat,findReplaceReplaceWith:l.keys.findReplaceReplaceWith,findReplaceReplace:l.keys.findReplaceReplace,findReplaceReplaceAll:l.keys.findReplaceReplaceAll,findReplaceMatchCase:l.keys.findReplaceMatchCase,findReplaceMatchWord:l.keys.findReplaceMatchWord,findReplaceMatchCyclic:l.keys.findReplaceMatchCyclic,findReplaceUseRegExp:l.keys.findReplaceUseRegExp,findReplacePrevMatch:l.keys.findReplacePrevMatch,findReplaceNextMatch:l.keys.findReplaceNextMatch,findReplaceMatches:l.keys.findReplaceMatches}},i.unlink=o(o({},n.link),{props:o({icon:"unlink",svgIcon:s.unlinkIcon},a),messages:{title:l.keys.unlink},commandName:"Unlink"}),i.undo={props:o({icon:"undo",svgIcon:s.undoIcon},a),messages:{title:l.keys.undo},commandName:"Undo"},i.redo={props:o({icon:"redo",svgIcon:s.redoIcon},a),messages:{title:l.keys.redo},commandName:"Redo"},i.fontSize={style:"font-size",defaultItem:{text:l.messages[l.keys.fontSize],value:"",localizationKey:l.keys.fontSize},items:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],commandName:"FontSize"},i.fontName={style:"font-family",defaultItem:{text:l.messages[l.keys.fontName],value:"",localizationKey:l.keys.fontName},items:[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],commandName:"FontName"},i.formatBlock={defaultItem:{text:l.messages[l.keys.format],value:"",localizationKey:l.keys.format},items:[{text:"Paragraph",value:"p",style:{display:"block",marginLeft:0}},{text:"Heading 1",value:"h1",style:{display:"block",fontSize:"2em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 2",value:"h2",style:{display:"block",fontSize:"1.5em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 3",value:"h3",style:{display:"block",fontSize:"1.17em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 4",value:"h4",style:{display:"block",fontSize:"1em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 5",value:"h5",style:{display:"block",fontSize:"0.83em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 6",value:"h6",style:{display:"block",fontSize:"0.67em",marginLeft:0,fontWeight:"bold"}}],commandName:"FormatBlock"},i.foreColor={style:"color",colorPickerProps:{icon:"foreground-color",svgIcon:s.foregroundColorIcon,view:"palette",title:l.keys.foregroundColor,ariaLabel:l.keys.foreColorLabel},commandName:"ForeColor"},i.backColor={style:"background-color",colorPickerProps:{icon:"droplet",svgIcon:s.dropletIcon,view:"palette",title:l.keys.backgroundColor,ariaLabel:l.keys.backColorLabel},commandName:"BackColor"},i.alignLeft={actions:r([],n.alignLeftRules,!0),props:o({icon:"align-left",svgIcon:s.alignLeftIcon},a),messages:{title:l.keys.alignLeft},commandName:"AlignLeft"},i.alignRight={actions:r([],n.alignRightRules,!0),props:o({icon:"align-right",svgIcon:s.alignRightIcon},a),messages:{title:l.keys.alignRight},commandName:"AlignRight"},i.alignCenter={actions:r([],n.alignCenterRules,!0),props:o({icon:"align-center",svgIcon:s.alignCenterIcon},a),messages:{title:l.keys.alignCenter},commandName:"AlignCenter"},i.alignJustify={actions:r([],n.alignJustifyRules,!0),props:o({icon:"align-justify",svgIcon:s.alignJustifyIcon},a),messages:{title:l.keys.alignJustify},commandName:"AlignJustify"},i.alignRemove={actions:r([],n.alignRemoveRules,!0),props:o({icon:"align-remove",svgIcon:s.alignRemoveIcon},a),messages:{},commandName:"AlignRemove"},i.indent={actions:n.indentRules.nodes,listsTypes:t.listsTypes,props:o({icon:"indent",svgIcon:s.indentIcon},a),messages:{title:l.keys.indent},commandName:"Indent"},i.outdent={actions:n.outdentRules.nodes,listsTypes:t.listsTypes,props:o({icon:"outdent",svgIcon:s.outdentIcon},a),messages:{title:l.keys.outdent},commandName:"Outdent"},i.orderedList={listType:t.listsTypes.orderedList,props:o({icon:"list-ordered",svgIcon:s.listOrderedIcon},a),messages:{title:l.keys.orderedList},commandName:"OrderedList",types:o({},t.listsTypes)},i.bulletList={listType:t.listsTypes.bulletList,props:o({icon:"list-unordered",svgIcon:s.listUnorderedIcon},a),messages:{title:l.keys.bulletList},commandName:"UnorderedList",types:o({},t.listsTypes)}},9953:function(e,t,n){var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},_=(Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplaceDialog=void 0,n(5954)),T=n(3536),S=n(8343),C=n(6561),E=n(4987),P=n(3364),a=n(2804),l=n(2226),u=n(7403),I=n(3811),x=n(4021),j=n(1448),N=n(6233),s=a.EditorToolsSettings.findAndReplace,n=(r=_.Component,i(p,r),Object.defineProperty(p.prototype,"settings",{get:function(){return this.props.settings||s},enumerable:!1,configurable:!0}),p.prototype.componentDidUpdate=function(e,t){var n,o=this.props.view,r=this.state,i=r.matches,i=void 0===i?[]:i,a=r.nextMatch;t.nextMatch!==a&&(t=(r=o.state).tr,n=[],i.forEach(function(e){n.push({from:e.from,to:e.to,attrs:{class:a&&e.eq(a)?"k-text-selected":"k-text-highlighted"}})}),t.setMeta(u.textHighlightKey,n),t.setSelection(a||u.TextSelection.create(r.doc,r.selection.from)),o.dispatch(t))},p.prototype.render=function(){var e=this,t=(0,E.provideLocalizationService)(this),n=this.settings.messages,o=n.findReplaceDialogTitle,r=n.findReplaceTabFind,i=n.findReplaceTabReplace,a=n.findReplaceFindWhat,l=n.findReplaceReplaceWith,s=n.findReplaceReplace,c=n.findReplaceReplaceAll,u=n.findReplaceMatchCase,p=n.findReplaceMatchWord,d=n.findReplaceMatchCyclic,f=n.findReplaceUseRegExp,m=n.findReplacePrevMatch,g=n.findReplaceNextMatch,n=n.findReplaceMatches,h=this.state,y=h.matchCase,v=h.matchWord,b=h.matchCyclic,w=h.useRegExp,k=h.searchText,O=h.replaceText,h=h.nextMatch,y=_.createElement("div",{className:"k-search-options"},_.createElement("span",null,_.createElement(x.Checkbox,{id:"match-case",checked:y,onChange:this.onMatchCaseChecked}),_.createElement("label",{htmlFor:"match-case",className:"k-checkbox-label"},t.toLanguageString(u,P.messages[u]))),_.createElement("span",null,_.createElement(x.Checkbox,{id:"match-whole",checked:v,onChange:this.onMatchWordChecked}),_.createElement("label",{htmlFor:"match-whole",className:"k-checkbox-label"},t.toLanguageString(p,P.messages[p]))),_.createElement("span",null,_.createElement(x.Checkbox,{id:"match-cyclic",checked:b,onChange:this.onMatchCyclicChecked}),_.createElement("label",{htmlFor:"match-cyclic",className:"k-checkbox-label"},t.toLanguageString(d,P.messages[d]))),_.createElement("span",null,_.createElement(x.Checkbox,{id:"regular-expression",checked:w,onChange:this.onUseRegExpChecked}),_.createElement("label",{htmlFor:"regular-expression",className:"k-checkbox-label"},t.toLanguageString(f,P.messages[f])))),u=_.createElement("div",{className:"k-matches-container"},_.createElement(T.Button,{fillMode:"flat",themeColor:"primary",onClick:this.onFindPrev},_.createElement(I.IconWrap,{name:"chevron-left",icon:N.chevronLeftIcon}),t.toLanguageString(m,P.messages[m])),_.createElement("span",null,this.matchesMessage(t.toLanguageString(n,P.messages[n]))),_.createElement(T.Button,{fillMode:"flat",themeColor:"primary",onClick:this.onFindNext},t.toLanguageString(g,P.messages[g]),_.createElement(I.IconWrap,{name:"chevron-right",icon:N.chevronRightIcon}))),v=_.createElement(j.Form,{render:function(){return _.createElement(j.FormElement,{horizontal:!0},_.createElement(j.FieldWrapper,null,_.createElement("label",{htmlFor:"findWhat",className:"k-form-label"},t.toLanguageString(a,P.messages[a])),_.createElement("div",{className:"k-form-field-wrap"},_.createElement(x.Input,{id:"findWhat",type:"text",value:k,onChange:e.onSearchChange,onFocus:e.onSearchChange,onKeyDown:e.onKeyDown,autoFocus:!0}))))}}),p=_.createElement(j.Form,{render:function(){return _.createElement(j.FormElement,{horizontal:!0},_.createElement(j.FieldWrapper,null,_.createElement("label",{htmlFor:"replaceWith",className:"k-form-label"},t.toLanguageString(l,P.messages[l])),_.createElement("div",{className:"k-form-field-wrap"},_.createElement(x.Input,{id:"replaceWith",type:"text",value:O,onChange:e.onReplaceChange}))))}});return _.createElement(S.Window,{title:t.toLanguageString(o,P.messages[o]),onClose:this.onClose,style:{width:"auto",height:"auto",userSelect:"none"},resizable:!1,minimizeButton:function(){return null},maximizeButton:function(){return null}},_.createElement(C.TabStrip,{selected:this.state.selectedTab,className:"k-editor-find-replace",onSelect:this.onTabSelect,animation:!1},_.createElement(C.TabStripTab,{title:t.toLanguageString(r,P.messages[r])},v,y,u),_.createElement(C.TabStripTab,{title:t.toLanguageString(i,P.messages[i])},v,p,_.createElement("div",{className:"k-actions k-hstack k-justify-content-end"},_.createElement(T.Button,{disabled:!Boolean(h),onClick:this.onReplace},t.toLanguageString(s,P.messages[s])),_.createElement(T.Button,{disabled:!Boolean(h),onClick:this.onReplaceAll},t.toLanguageString(c,P.messages[c]))),y,u)))},p);function p(e){var s=r.call(this,e)||this;return s.onTabSelect=function(e){s.setState({selectedTab:e.selected})},s.onClose=function(){var e=s.props.view,t=e.state,n=t.tr.setSelection(u.TextSelection.create(t.doc,t.selection.from,t.selection.to));e.updateState(t.apply(n)),e.focus(),s.props.onClose.call(void 0)},s.matchesMessage=function(e){var t,n=s.state.matches,o=s.state.nextMatch,r=0,i=0;return n&&o&&(r=-1===(t=n.findIndex(function(e){return e.eq(o)}))?n.length:t+1,i=n.length),(0,l.formatString)(e,r,i)},s.onFindNext=function(){s.onFind()},s.onFindPrev=function(){s.onFind(!0)},s.onFind=function(e){var t=s.props.view,n=s.state,o=n.searchText,r=n.matchCase,i=n.matchCyclic,o={text:o,matchWord:n.matchWord,matchCase:r,useRegExp:n.useRegExp,backward:e=void 0===e?!1:e,matchCyclic:i},r=(0,u.find)(t.state,o);r&&((n=t.state.tr.setSelection(r)).scrollIntoView(),t.updateState(t.state.apply(n)),s.setState({nextMatch:r}))},s.onReplace=function(){var e,t,n=s.props.view,o=n.state.selection,r=s.state.replaceText;o.empty||(t=(e=o.from)+r.length,(o=(0,u.replace)(o,r,n.state.tr)).setSelection(u.TextSelection.create(o.doc,e,t)),o.scrollIntoView(),n.dispatch(o),s.setNextState({}))},s.onReplaceAll=function(){var e=s.props.view,t=s.state,n=t.searchText,o=t.replaceText,r=t.matchCase,n={text:n,matchWord:t.matchWord,matchCase:r,useRegExp:t.useRegExp},r=(0,u.replaceAll)(e.state,o,n);r&&e.dispatch(r),s.setNextState({})},s.onKeyDown=function(e){13===e.keyCode?s.onFindNext():27===e.keyCode&&s.onClose()},s.onMatchCaseChecked=function(e){return s.setNextState({matchCase:e.value})},s.onMatchWordChecked=function(e){return s.setNextState({matchWord:e.value})},s.onMatchCyclicChecked=function(e){return s.setNextState({matchCyclic:e.value})},s.onUseRegExpChecked=function(e){return s.setNextState({useRegExp:e.value})},s.onSearchChange=function(e){return s.setNextState({searchText:e.target.value})},s.onReplaceChange=function(e){return s.setNextState({replaceText:e.target.value})},s.setNextState=function(e){var t,n,o,r,i,a,e=c(c(c({},s.state),e),{matches:void 0,nextMatch:void 0}),l=s.props.view;e.searchText?(a=e.searchText,t=e.matchWord,n=e.matchCase,o=e.useRegExp,r=e.matchCyclic,i=l.state.selection,l=(0,u.findAll)(l.state.doc,{text:a,matchWord:t,matchCase:n,useRegExp:o}),a=!s.state.searchText&&l[0]||l.find(function(e){return e.from>=i.from})||r&&l[0]||void 0,s.setState(c(c({},e),{matches:l,nextMatch:a}))):s.setState(e)},s.state={selectedTab:0,searchText:(0,u.selectedLineTextOnly)(e.view.state),replaceText:"",matchCase:!1,matchWord:!1,matchCyclic:!1,useRegExp:!1},s}t.FindAndReplaceDialog=n,(0,E.registerForLocalization)(n)},3856:function(e,t,n){var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},h=(Object.defineProperty(t,"__esModule",{value:!0}),t.InsertImageDialog=void 0,n(5954)),y=n(8343),v=n(3536),b=n(7403),w=n(4987),k=n(3364),O=n(4021),_=n(1448),n=(r=h.Component,i(a,r),a.prototype.render=function(){var t=this,e=this.props,n=e.view,o=e.settings,r=e.dir,e=e.render,i=o.messages,a=i.insertImageDialogTitle,l=i.insertImageAddress,s=i.insertImageTitle,c=i.insertImageAltText,u=i.insertImageWidth,p=i.insertImageHeight,d=i.insertImageCancel,i=i.insertImageInsert,f=(0,w.provideLocalizationService)(this),n=n&&n.state,m={},o=(n&&n.selection instanceof b.NodeSelection&&n.selection.node.type===n.schema.nodes[o.node]&&(m=n.selection.node.attrs),h.createElement(_.Form,{render:function(){return h.createElement(_.FormElement,{horizontal:!0},h.createElement(_.FieldWrapper,null,h.createElement("label",{htmlFor:"k-editor-image-url",className:"k-form-label"},f.toLanguageString(l,k.messages[l])),h.createElement("div",{className:"k-form-field-wrap"},h.createElement(O.Input,{type:"text",id:"k-editor-image-url",defaultValue:m.src,ref:function(e){return t.src=e},autoFocus:!0}))),h.createElement(_.FieldWrapper,null,h.createElement("label",{htmlFor:"k-editor-image-url",className:"k-form-label"},f.toLanguageString(c,k.messages[c])),h.createElement("div",{className:"k-form-field-wrap"},h.createElement(O.Input,{type:"text",id:"k-editor-image-alt",defaultValue:m.alt,ref:function(e){return t.altText=e}}))),h.createElement(_.FieldWrapper,null,h.createElement("label",{htmlFor:"k-editor-image-title",className:"k-form-label"},f.toLanguageString(s,k.messages[s])),h.createElement("div",{className:"k-form-field-wrap"},h.createElement(O.Input,{type:"text",id:"k-editor-image-title",defaultValue:m.title,ref:function(e){return t.title=e}}))),h.createElement(_.FieldWrapper,null,h.createElement("label",{htmlFor:"k-editor-image-width",className:"k-form-label"},f.toLanguageString(u,k.messages[u])),h.createElement("div",{className:"k-form-field-wrap"},h.createElement(O.Input,{type:"text",id:"k-editor-image-width",defaultValue:m.width,ref:function(e){return t.width=e}}))),h.createElement(_.FieldWrapper,null,h.createElement("label",{htmlFor:"k-editor-image-height",className:"k-form-label"},f.toLanguageString(p,k.messages[p])),h.createElement("div",{className:"k-form-field-wrap"},h.createElement(O.Input,{id:"k-editor-image-height",defaultValue:m.height,ref:function(e){return t.height=e}}))))}})),n=[h.createElement(v.Button,{onClick:this.onClose,dir:r,key:"cancel"},f.toLanguageString(d,k.messages[d])),h.createElement(v.Button,{onClick:this.onInsert,themeColor:"primary",dir:r,key:"insert"},f.toLanguageString(i,k.messages[i]))],d=h.createElement(y.Window,{initialWidth:500,initialHeight:350,className:"k-editor-window",title:f.toLanguageString(a,k.messages[a]),onClose:this.onClose,key:"dialog",style:"rtl"===r?{textAlign:"right"}:void 0,modal:!0,minimizeButton:function(){return null},maximizeButton:function(){return null},resizable:!1},o,h.createElement.apply(h,g([y.WindowActionsBar,null],n,!1)));return e?e(d,{content:o,actionButtons:n}):d},a);function a(){var i=null!==r&&r.apply(this,arguments)||this;return i.src=null,i.altText=null,i.title=null,i.width=null,i.height=null,i.onClose=function(){i.props.view.focus(),i.props.onClose()},i.onInsert=function(){var e=i.props,t=e.view,n=e.settings,e=t.state.schema.nodes[n.node],o={src:i.src?i.src.value:null,title:i.title?i.title.value:null,alt:i.altText?i.altText.value:null,width:i.width?i.width.value:null,height:i.height?i.height.value:null},r=Object.keys(o).filter(function(e){return null!==o[e]&&""!==o[e]}).reduce(function(e,t){return Object.assign(e,((e={})[t]=o[t],e))},{}),e=e.createAndFill(r);e&&(0,b.insertNode)(e,!0)(t.state,function(e){return t.dispatch(e.setMeta("commandName",n.commandName).setMeta("args",r))}),i.onClose()},i}t.InsertImageDialog=n,(0,w.registerForLocalization)(n)},4150:function(e,t,n){var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},m=(Object.defineProperty(t,"__esModule",{value:!0}),t.InsertLinkDialog=void 0,n(5954)),g=n(8343),h=n(3536),y=n(4021),v=n(1448),b=n(7403),w=n(4987),k=n(3364),n=(r=m.Component,i(a,r),a.prototype.render=function(){var t=this,e=this.props,n=e.view,o=e.settings,r=e.dir,e=e.render,i=(0,w.provideLocalizationService)(this),a=o.messages,l=a.insertHyperlinkDialogTitle,s=a.insertHyperlinkAddress,c=a.insertHyperlinkTitle,u=a.insertHyperlinkNewWindow,p=a.insertHyperlinkCancel,a=a.insertHyperlinkInsert,d=!!n&&(0,b.getMark)(n.state,n.state.schema.marks[o.mark]),n=m.createElement(v.Form,{render:function(){return m.createElement(v.FormElement,{horizontal:!0},m.createElement(v.FieldWrapper,null,m.createElement("label",{htmlFor:"k-editor-link-url",className:"k-form-label"},i.toLanguageString(s,k.messages[s])),m.createElement("div",{className:"k-form-field-wrap"},m.createElement(y.Input,{type:"text",id:"k-editor-link-url",ref:function(e){return t.href=e},defaultValue:d&&d.attrs.href||void 0,autoFocus:!0}))),m.createElement(v.FieldWrapper,null,m.createElement("label",{htmlFor:"k-editor-link-text",className:"k-form-label"},i.toLanguageString(c,k.messages[c])),m.createElement("div",{className:"k-form-field-wrap"},m.createElement(y.Input,{type:"text",id:"k-editor-link-text",ref:function(e){return t.title=e},defaultValue:d&&d.attrs.title||void 0}))),!1!==o.linkTarget&&m.createElement(v.FieldWrapper,null,m.createElement("label",{htmlFor:"k-editor-link-target",className:"k-checkbox-label"},m.createElement(y.Checkbox,{id:"k-editor-link-target",ref:function(e){return t.target=e},defaultChecked:d&&!!d.attrs.target||void 0}),i.toLanguageString(u,k.messages[u]))))}}),p=[m.createElement(h.Button,{onClick:this.onClose,dir:r,key:"cancel"},i.toLanguageString(p,k.messages[p])),m.createElement(h.Button,{onClick:this.onInsert,themeColor:"primary",dir:r,key:"insert"},i.toLanguageString(a,k.messages[a]))],a=m.createElement(g.Window,{initialWidth:450,initialHeight:250,className:"k-editor-window",title:i.toLanguageString(l,k.messages[l]),onClose:this.onClose,style:"rtl"===r?{textAlign:"right"}:void 0,modal:!0,minimizeButton:function(){return null},maximizeButton:function(){return null},resizable:!1},n,m.createElement.apply(m,f([g.WindowActionsBar,null],p,!1)));return e?e(a,{content:n,actionButtons:p}):a},a);function a(){var o=null!==r&&r.apply(this,arguments)||this;return o.href=null,o.title=null,o.target=null,o.onClose=function(){o.props.view.focus(),o.props.onClose()},o.onInsert=function(){var e=o.props.view,t=o.props.settings.mark,n={href:o.href?o.href.value:void 0,title:o.title?o.title.value:void 0,target:o.target&&o.target.element&&o.target.element.checked?"_blank":void 0};(0,b.applyLink)({mark:t,attrs:n},o.props.settings.commandName)(e.state,e.dispatch),o.onClose()},o}t.InsertLinkDialog=n,(0,w.registerForLocalization)(n)},3695:function(e,t,n){var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.EditorDialogs=void 0,n(4150)),l=n(3856),s=n(5391),n=n(9953),t=t.EditorDialogs||(t.EditorDialogs={});function c(){return null!==r&&r.apply(this,arguments)||this}r=a.InsertLinkDialog,i(c,r),t.InsertLinkDialog=c,u=l.InsertImageDialog,i(p,u);var u;function p(){return null!==u&&u.apply(this,arguments)||this}t.InsertImageDialog=p,d=s.ViewHtmlDialog,i(f,d);var d;function f(){return null!==d&&d.apply(this,arguments)||this}t.ViewHtmlDialog=f,m=n.FindAndReplaceDialog,i(g,m);var m;function g(){return null!==m&&m.apply(this,arguments)||this}t.FindAndReplaceDialog=g},5391:function(e,t,n){var o,i,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlDialog=void 0,n(5954)),c=n(8343),u=n(3536),p=n(7403),d=n(4987),f=n(3364),a=n(580),m=n(4021),n=(i=s.Component,r(g,i),g.prototype.render=function(){var e=this.props,t=e.view,n=e.settings,o=e.dir,e=e.render,r=(0,d.provideLocalizationService)(this),n=n.messages,i=n.viewHtmlDialogTitle,a=n.viewHtmlCancel,n=n.viewHtmlUpdate,t=s.createElement(m.TextArea,{className:"k-editor-textarea",defaultValue:(0,p.indentHtml)((0,p.getHtml)(t.state)),autoFocus:!0,autoSize:!1,ref:this.textAreaRef}),a=[s.createElement(u.Button,{onClick:this.onClose,dir:o,key:"cancel"},r.toLanguageString(a,f.messages[a])),s.createElement(u.Button,{onClick:this.onUpdate,themeColor:"primary",dir:o,key:"update"},r.toLanguageString(n,f.messages[n]))],n=s.createElement(c.Window,{className:"k-editor-window",title:r.toLanguageString(i,f.messages[i]),onClose:this.onClose,key:"dialog",style:"rtl"===o?{textAlign:"right"}:void 0,modal:!0,minimizeButton:function(){return null},maximizeButton:function(){return null},resizable:!0,initialHeight:400,initialWidth:500},t,s.createElement.apply(s,l([c.WindowActionsBar,null],a,!1)));return e?e(n,{content:t,actionButtons:a}):n},g);function g(){var r=null!==i&&i.apply(this,arguments)||this;return r.htmlArea=null,r.textAreaRef=function(e){e=(r.htmlArea=e)&&e.element.current;e&&(e.style.resize="none")},r.onUpdate=function(){var e=r.props,t=e.view,e=e.settings,n=(0,p.trimWhitespace)(r.htmlArea&&r.htmlArea.value||""),o=a.editorPropsKey.getState(t.state).preserveWhitespace;(0,p.setHtml)(n,e.commandName,{preserveWhitespace:o})(t.state,t.dispatch),r.onClose()},r.onClose=function(){r.props.view.focus(),r.props.onClose()},r}t.ViewHtmlDialog=n,(0,d.registerForLocalization)(n)},3364:(F,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.keys=e.messages=void 0;var t,n="editor.bold",o="editor.italic",r="editor.underline",i="editor.strikethrough",a="editor.subscript",l="editor.superscript",s="editor.hyperlink",c="editor.insertFile",u="editor.print",p="editor.selectAll",d="editor.cleanFormatting",f="editor.pdf",m="editor.foregroundColor",g="editor.backgroundColor",h="editor.createTable",y="editor.insertTableHint",v="editor.addRowBefore",b="editor.addRowAfter",w="editor.addColumnBefore",k="editor.addColumnAfter",O="editor.deleteRow",_="editor.deleteColumn",T="editor.deleteTable",S="editor.mergeCells",C="editor.splitCell",E="editor.hyperlink-dialog-title",P="editor.hyperlink-dialog-content-address",I="editor.hyperlink-dialog-content-title",x="editor.hyperlink-dialog-content-newwindow",j="editor.hyperlink-dialog-cancel",N="editor.hyperlink-dialog-insert",R="editor.insertfile-dialog-title",M="editor.insertfile-dialog-content-address",L="editor.insertfile-dialog-content-title",A="editor.insertfile-dialog-cancel",D="editor.insertfile-dialog-insert",z="editor.image",B="editor.image-dialog-title",H="editor.image-address",W="editor.image-title",U="editor.image-altText",K="editor.image-width",V="editor.image-height",G="editor.image-cancel",q="editor.image-insert",J="editor.viewHtml",Q="editor.viewHtml-dialog-title",$="editor.viewHtml-cancel",X="editor.viewHtml-update",Y="editor.unlink",Z="editor.undo",ee="editor.redo",te="editor.fontSize",ne="editor.fontName",oe="editor.format",re="editor.alignLeft",ie="editor.alignRight",ae="editor.alignCenter",le="editor.alignJustify",se="editor.indent",ce="editor.outdent",ue="editor.orderedList",pe="editor.bulletList",de="editor.findReplace-tool-title",fe="editor.findReplace-dialog-title",me="editor.findReplace-tab-find",ge="editor.findReplace-tab-replace",he="editor.findReplace-findWhat",ye="editor.findReplace-replaceWith",ve="editor.findReplace-replace",be="editor.findReplace-replaceAll",we="editor.findReplace-matchCase",ke="editor.findReplace-matchWord",Oe="editor.findReplace-matchCyclic",_e="editor.findReplace-useRegExp",Te="editor.findReplace-prevMatch",Se="editor.findReplace-nextMatch",Ce="editor.findReplace-matches",Ee="editor.iframeTitle",Pe="editorTools.foreColorLabel",Ie="editorTools.backColorLabel";e.messages=((t={})[n]="Bold",t[o]="Italic",t[r]="Underline",t[i]="Strikethrough",t[a]="Subscript",t[l]="Superscript",t[Y]="Remove hyperlink",t[Z]="Undo",t[ee]="Redo",t[te]="Font Size",t[ne]="Font Name",t[oe]="Format",t[re]="Align text left",t[ie]="Align text right",t[ae]="Center text",t[le]="Justify",t[se]="Indent",t[ce]="Outdent",t[ue]="Insert ordered list",t[pe]="Insert unordered list",t[u]="Print",t[p]="Select All",t[d]="Clean formatting",t[f]="Export as PDF",t[m]="Color",t[g]="Background color",t[h]="Create a table",t[y]="Create a {0} x {1} table",t[v]="Add row above",t[b]="Add row below",t[w]="Add column on the left",t[k]="Add column on the right",t[O]="Delete row",t[_]="Delete column",t[T]="Delete table",t[S]="Merge cells",t[C]="Split cell",t[s]="Insert hyperlink",t[E]="Insert hyperlink",t[P]="Web address",t[I]="Title",t[x]="Open link in new window",t[j]="Cancel",t[N]="Insert",t[c]="Insert file",t[R]="Insert file",t[M]="Web address",t[L]="Title",t[A]="Cancel",t[D]="Insert",t[z]="Insert image",t[B]="Insert image",t[H]="Web address",t[W]="Title",t[U]="Alternate text",t[K]="Width (px)",t[V]="Height (px)",t[G]="Cancel",t[q]="Insert",t[J]="View HTML",t[Q]="View HTML",t[$]="Cancel",t[X]="Update",t[de]="Find and Replace",t[fe]="Find and Replace",t[me]="Find",t[ge]="Replace",t[he]="Find What:",t[ye]="Replace With",t[ve]="Replace",t[be]="Replace All",t[we]="Match Case",t[ke]="Match whole word only",t[Oe]="Match cyclic (Wrap around)",t[_e]="Regular Expression",t[Te]="Prev",t[Se]="Next",t[Ce]="{0} of {1} matches",t[Ee]="Editable area. Press Alt + F10 for toolbar.",t[Pe]="Fore Color",t[Ie]="Back Color",t),e.keys={bold:n,italic:o,underline:r,strikethrough:i,subscript:a,superscript:l,unlink:Y,undo:Z,redo:ee,fontSize:te,fontName:ne,format:oe,alignLeft:re,alignRight:ie,alignCenter:ae,alignJustify:le,indent:se,outdent:ce,orderedList:ue,bulletList:pe,print:u,selectAll:p,cleanFormatting:d,pdf:f,foregroundColor:m,backgroundColor:g,createTable:h,createTableHint:y,addRowBefore:v,addRowAfter:b,addColumnBefore:w,addColumnAfter:k,deleteRow:O,deleteColumn:_,deleteTable:T,mergeCells:S,splitCell:C,insertHyperlink:s,insertHyperlinkDialogTitle:E,insertHyperlinkAddress:P,insertHyperlinkTitle:I,insertHyperlinkNewWindow:x,insertHyperlinkCancel:j,insertHyperlinkInsert:N,insertFile:c,insertFileDialogTitle:R,insertFileAddress:M,insertFileTitle:L,insertFileCancel:A,insertFileInsert:D,insertImage:z,insertImageDialogTitle:B,insertImageAddress:H,insertImageTitle:W,insertImageAltText:U,insertImageWidth:K,insertImageHeight:V,insertImageCancel:G,insertImageInsert:q,viewHtml:J,viewHtmlDialogTitle:Q,viewHtmlCancel:$,viewHtmlUpdate:X,findReplaceToolTitle:de,findReplaceDialogTitle:fe,findReplaceTabFind:me,findReplaceTabReplace:ge,findReplaceFindWhat:he,findReplaceReplaceWith:ye,findReplaceReplace:ve,findReplaceReplaceAll:be,findReplaceMatchCase:we,findReplaceMatchWord:ke,findReplaceMatchCyclic:Oe,findReplaceUseRegExp:_e,findReplacePrevMatch:Te,findReplaceNextMatch:Se,findReplaceMatches:Ce,iframeTitle:Ee,foreColorLabel:Pe,backColorLabel:Ie}},7363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-editor",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1685981407,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},7628:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},p=(Object.defineProperty(t,"__esModule",{value:!0}),t.createAlignTool=void 0,n(5954)),d=n(3536),i=n(2804),f=n(7403),m=n(2226),g=n(4987),h=n(3364),y=i.EditorToolsSettings.alignRemove;t.createAlignTool=function(s){e=p.Component,r(n,e),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=u(e,["view","render"]),o=t&&t.state,o=!!o&&(0,f.isAligned)(o,s.actions),r=(o?y:s).actions,i=(o?y:s).commandName,a=(0,g.provideLocalizationService)(this),l=s.messages.title,o=p.createElement(d.Button,c({onClick:function(){return t&&(0,f.alignBlocks)(r,i)(t.state,t.dispatch)},selected:o,togglable:!0},m.onDownPreventDefault,{title:a.toLanguageString(l,h.messages[l])},s.props,e));return n?n.call(void 0,o,{view:t}):o};var e,t=n;function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.registerForLocalization)(t),t}},8631:function(e,t,n){var s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=(Object.defineProperty(t,"__esModule",{value:!0}),t.ApplyColorTool=void 0,n(5954)),u=n(4021),p=n(7403),d=n(4987),f=n(3364);t.ApplyColorTool=function(e){var t=e.view,n=e.style,o=e.colorPickerProps,r=e.commandName,e=o.title,i=o.ariaLabel,a=o.view,l=void 0===a?"palette":a,a=c.useCallback(function(e){t&&((0,p.applyInlineStyle)({style:n,value:e.value},r)(t.state,t.dispatch),"palette"===l)&&t.focus()},[t,n,l,r]);return c.createElement(u.ColorPicker,s({onChange:a,onActiveColorClick:a},o,{title:e&&(0,d.useLocalization)().toLanguageString(e,f.messages[e]),ariaLabel:i&&(0,d.useLocalization)().toLanguageString(i,f.messages[i])}))}},3280:function(e,t,n){var s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.CleanFormatting=void 0,n(5954)),p=n(3536),d=n(4987),f=n(2226),m=n(3364),o=n(7403),r=n(2804),g=n(3811),h=r.EditorToolsSettings.cleanFormatting,y=(0,o.cleanFormatting)();t.CleanFormatting=function(e){var t=e.view,n=e.render,o=e.settings,r=void 0===o?h:o,o=c(e,["view","render","settings"]),i=r.messages.title,a=!t||!y(t.state),l=u.useCallback(function(){t&&y(t.state,function(e){e.setMeta("commandName",r.commandName),t.dispatch(e)})},[t]),l=u.createElement(p.Button,s({onClick:a?void 0:l,"aria-disabled":!!a||void 0,title:(0,d.useLocalization)().toLanguageString(i,m.messages[i])},f.onDownPreventDefault,r.props,o,{className:(0,g.classNames)(e.className,r.props.className,{"k-disabled":a})}));return n?n.call(void 0,l,{view:t}):l}},3037:function(e,t,n){var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},l=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplace=void 0,n(5954)),c=n(3536),u=n(9953),p=n(2226),d=n(3364),f=n(2804),m=n(4987),g=n(3811),h=f.EditorToolsSettings.findAndReplace,n=(r=s.Component,i(y,r),y.prototype.render=function(){var e=this.props,t=e.view,e=l(e,["view"]),n=h.props,o=(0,m.provideLocalizationService)(this),r=h.messages.findReplaceToolTitle,i=!t;return[s.createElement(c.Button,a({onClick:i?void 0:this.onOpen,"aria-disabled":!!i||void 0},p.onDownPreventDefault,{title:o.toLanguageString(r,d.messages[r]),key:"tool"},n,e,{className:(0,g.classNames)(e.className,n.className,{"k-disabled":i})})),this.state.showDialog&&t&&s.createElement(u.FindAndReplaceDialog,{view:t,onClose:this.onClose,dir:e.dir,key:"dialog"})]},y);function y(){var e=null!==r&&r.apply(this,arguments)||this;return e.state={showDialog:!1},e.onClose=function(){return e.setState({showDialog:!1})},e.onOpen=function(){return e.setState({showDialog:!0})},e}t.FindAndReplace=n,(0,m.registerForLocalization)(n)},1403:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},p=(Object.defineProperty(t,"__esModule",{value:!0}),t.FontStyleToolNS=void 0,n(5954)),d=n(445),f=n(7403),m=n(2226),g=n(4987),h=n(3364);(t.FontStyleToolNS||(t.FontStyleToolNS={})).createStyleDropDownList=function(s){e=p.Component,r(n,e),n.prototype.render=function(){var e=s.style,t=this.props,n=t.view,o=t.render,r=t.data,i=t.defaultItem,t=u(t,["view","render","data","defaultItem"]),r=r||s.items,i=i||s.defaultItem,e=n?(0,f.getInlineStyles)(n.state,{name:e,value:/^.+$/}):[],a=(0,g.provideLocalizationService)(this),l=(i&&i.localizationKey&&((i=c({},i)).text=i.localizationKey?a.toLanguageString(i.localizationKey,h.messages[i.localizationKey]):i.text),1===new Set(e).size?e[0]:null),a=p.createElement(d.DropDownList,c({value:l&&r.find(function(e){return e.value===l}),data:r,defaultItem:i,itemRender:m.itemRender,textField:"text",dataItemKey:"value",onChange:this.onChange,style:m.userSelectNone,leftRightKeysNavigation:!1,title:i.text},t));return o?o.call(void 0,a,{view:n}):a};var e,t=n;function n(){var r=null!==e&&e.apply(this,arguments)||this;return r.onChange=function(e){var t=e.target.value,n=r.props.view,o=s.style;n&&((0,f.applyInlineStyle)({style:o,value:t.value},s.commandName)(n.state,n.dispatch),o=e.syntheticEvent)&&"click"===o.type&&n.focus()},r}return(0,g.registerForLocalization)(t),t}},3493:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},p=(Object.defineProperty(t,"__esModule",{value:!0}),t.FormatBlockToolNS=void 0,n(5954)),d=n(445),f=n(7403),m=n(2226),g=n(4987),h=n(3364);(t.FormatBlockToolNS||(t.FormatBlockToolNS={})).createFormatBlockDropDownList=function(s){e=p.Component,r(n,e),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,o=e.data,r=e.defaultItem,e=u(e,["view","render","data","defaultItem"]),o=o||s.items,r=r||s.defaultItem,i=t&&t.state,i=i?(0,f.getBlockFormats)(i):[],a=(0,g.provideLocalizationService)(this),l=(r&&r.localizationKey&&((r=c({},r)).text=r.localizationKey?a.toLanguageString(r.localizationKey,h.messages[r.localizationKey]):r.text),1===new Set(i).size?i[0]:null),a=p.createElement(d.DropDownList,c({value:l&&o.find(function(e){return e.value===l}),onChange:this.onChange,itemRender:m.itemRender,data:o,defaultItem:r,textField:"text",dataItemKey:"value",style:m.userSelectNone,leftRightKeysNavigation:!1,title:r.text},e));return n?n.call(void 0,a,{view:t}):a};var e,t=n;function n(){var o=null!==e&&e.apply(this,arguments)||this;return o.onChange=function(e){var t=e.target.value,n=o.props.view;n&&(0,f.formatBlockElements)(t.value,s.commandName)(n.state,n.dispatch)&&(t=e.syntheticEvent)&&"click"===t.type&&n.focus()},o}return(0,g.registerForLocalization)(t),t}},3270:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryToolNS=void 0;var o=n(7403),r=n(8980);(n=t.HistoryToolNS||(t.HistoryToolNS={})).createUndoTool=function(e){return(0,r.createProseMirrorTool)(e,o.undo)},n.createRedoTool=function(e){return(0,r.createProseMirrorTool)(e,o.redo)}},9476:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=this&&this.__assign||function(){return(m=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},g=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},h=(Object.defineProperty(t,"__esModule",{value:!0}),t.IndentToolNS=void 0,n(5954)),y=n(3536),v=n(7403),b=n(2226),w=n(4987),k=n(3364),O=n(3811);(t.IndentToolNS||(t.IndentToolNS={})).createIndentTool=function(f){e=h.Component,r(n,e),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=g(e,["view","render"]),o=e.dir,r=t&&t.state,i=r&&r.schema.nodes,a=i&&i[f.listsTypes.listItem],l=f.actions,s=!!r&&!!a&&((0,v.isIndented)(r,l,o)||l.some(function(e){return i&&i[e.node]&&(0,v.hasNode)(r,i[e.node])}))&&!(0,v.hasNode)(r,a),c=!!r&&(0,v.canIndentAsListItem)(r,a),u=s||c,p=(0,w.provideLocalizationService)(this),d=f.messages.title,u=!u,p=h.createElement(y.Button,m({onClick:u?void 0:function(){t&&c&&a?(0,v.sinkListItem)(a)(t.state,t.dispatch):t&&s&&(0,v.indentBlocks)(l,f.commandName,o)(t.state,t.dispatch)},"aria-disabled":!!u||void 0,title:p.toLanguageString(d,k.messages[d])},b.onDownPreventDefault,f.props,e,{className:(0,O.classNames)(e.className,f.props.className,{"k-disabled":u})}));return n?n.call(void 0,p,{view:t}):p};var e,t=n;function n(){return null!==e&&e.apply(this,arguments)||this}return(0,w.registerForLocalization)(t),t}},5436:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.InlineFormatToolNS=void 0,n(5954)),p=n(3536),d=n(7403),f=n(2226),m=n(4987),g=n(3364);(t.InlineFormatToolNS||(t.InlineFormatToolNS={})).createInlineFormatTool=function(l){e=u.Component,r(n,e),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=c(e,["view","render"]),o=t&&t.state,r={mark:l.mark,altMarks:l.altMarks,altStyle:l.altStyle},i=(0,m.provideLocalizationService)(this),a=l.messages.title,i=u.createElement(p.Button,s({onClick:function(){return t&&(0,d.toggleInlineFormat)(r,o&&o.tr.setMeta("commandName",l.commandName))(t.state,t.dispatch)},selected:!!o&&(0,d.hasMark)(o,r),togglable:!0},f.onDownPreventDefault,{title:i.toLanguageString(a,g.messages[a])},l.props,e));return n?n.call(void 0,i,{view:t}):i};var e,t=n;function n(){return null!==e&&e.apply(this,arguments)||this}return(0,m.registerForLocalization)(t),t}},8210:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.createInsertImageTool=void 0,n(5954)),p=n(7403),d=n(3536),f=n(2226),m=n(3695),g=n(4987),h=n(3364),y=n(3811);t.createInsertImageTool=function(l){t=u.Component,r(n,t),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=c(e,["view","render"]),o=t&&t.state,r=o?o.schema.nodes[l.node]:void 0,i=(0,g.provideLocalizationService)(this),a=l.messages.insertImage,o=!r||!o||!(0,p.canInsert)(o,r),r=[u.createElement(d.Button,s({onClick:o?void 0:this.toggleDialog,"aria-disabled":!!o||void 0,key:"insertImage"},f.onDownPreventDefault,{title:i.toLanguageString(a,h.messages[a])},l.props,e,{className:(0,y.classNames)(e.className,l.props.className,{"k-disabled":o})})),this.state.openedDialog&&t&&u.createElement(m.EditorDialogs.InsertImageDialog,{key:"insertImageDialog",view:t,settings:l,dir:e.dir,onClose:this.toggleDialog})||null];return n?n.call(void 0,r,{view:t}):r};var t,e=n;function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={openedDialog:!1},e.toggleDialog=function(){e.setState({openedDialog:!e.state.openedDialog})},e}return(0,g.registerForLocalization)(e),e}},1493:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.LinkToolNS=void 0,n(5954)),p=n(3536),d=n(7403),f=n(2226),m=n(3695),g=n(4987),h=n(3364),y=n(3811);(t.LinkToolNS||(t.LinkToolNS={})).createLinkTool=function(l){t=u.Component,r(n,t),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=c(e,["view","render"]),o=t&&t.state,r=!o||o.selection.empty,o=o&&(0,d.getMark)(o,o.schema.marks[l.mark]),i=(0,g.provideLocalizationService)(this),a=l.messages.insertHyperlink,r=r&&!o,o=[u.createElement(p.Button,s({onClick:r?void 0:this.toggleDialog,"aria-disabled":!!r||void 0,key:"link"},f.onDownPreventDefault,{title:i.toLanguageString(a,h.messages[a])},l.props,e,{className:(0,y.classNames)(e.className,l.props.className,{"k-disabled":r})})),this.state.openedDialog&&t&&u.createElement(m.EditorDialogs.InsertLinkDialog,{key:"insertLinkDialog",settings:l,dir:e.dir,view:t,onClose:this.toggleDialog})||null];return n?n.call(void 0,o,{view:t}):o};var t,e=n;function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={openedDialog:!1},e.toggleDialog=function(){e.setState({openedDialog:!e.state.openedDialog})},e}return(0,g.registerForLocalization)(e),e}},5962:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTablePopupNS=t.InsertTableToolNS=void 0;var o=n(3895),r=(Object.defineProperty(t,"InsertTableToolNS",{enumerable:!0,get:function(){return o.InsertTableToolNS}}),n(5388));Object.defineProperty(t,"InsertTablePopupNS",{enumerable:!0,get:function(){return r.InsertTablePopupNS}})},5388:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTablePopupNS=void 0;var i,a=n(5954),l=n(1895),s=n(2556),c=n(2011);function u(){var n=null!==i&&i.apply(this,arguments)||this;return n.pointerdown=!1,n.onWindowDown=function(e){var t=n.props.anchor;t&&(t===e.target||t.firstElementChild===e.target)||(n.props.show&&!n.pointerdown&&n.props.onClose(),n.pointerdown=!1)},n.onPointerDown=function(){return n.pointerdown=!0},n}n=t.InsertTablePopupNS||(t.InsertTablePopupNS={}),i=a.Component,r(u,i),u.prototype.componentDidUpdate=function(e){e.show&&this.props.show&&this.props.onClose()},u.prototype.componentDidMount=function(){window.addEventListener("mousedown",this.onWindowDown),window.addEventListener("pointerdown",this.onWindowDown)},u.prototype.componentWillUnmount=function(){window.removeEventListener("mousedown",this.onWindowDown),window.removeEventListener("pointerdown",this.onWindowDown)},u.prototype.render=function(){var e=this.props,t=e.show,n=e.anchor,o=e.dir,r=e.rows,r=void 0===r?u.defaultProps.rows:r,e=e.columns,e=void 0===e?u.defaultProps.columns:e,i="rtl"===o?"right":"left";return a.createElement(s.Popup,{anchor:n,anchorAlign:{horizontal:i,vertical:"bottom"},popupAlign:{horizontal:i,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-state-border-up",show:t,style:"rtl"===o?{direction:"rtl"}:void 0},a.createElement(c.default,{rows:r,columns:e,createTableMessage:this.props.createTableMessage,createTableHintMessage:this.props.createTableHintMessage,onCellClick:this.props.onTableInsert,onDown:this.onPointerDown}))},u.propTypes={show:l.bool.isRequired,createTableMessage:l.string.isRequired,createTableHintMessage:l.string.isRequired,onClose:l.func.isRequired,onTableInsert:l.func.isRequired,anchor:l.any,rows:l.number,columns:l.number,dir:l.string},u.defaultProps={rows:6,columns:8},n.InsertTablePopup=u},2011:function(e,t,n){var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(5954)),c=n(2226),n=(r=s.Component,i(a,r),a.prototype.renderCell=function(e,t,n){var o=this,r=Math.floor(e/this.props.columns),i=e%this.props.columns;return s.createElement("span",{className:"k-ct-cell k-disabled"+(i<=n&&r<=t?" ".concat("k-selected"):""),onMouseEnter:function(){return o.setState({row:r,col:i})},onClick:function(){return o.props.onCellClick.call(void 0,r,i)},key:e})},a.prototype.render=function(){var e=this,t=[],n=this.props.columns*this.props.rows,o=this.state,r=o.row,i=o.col,o=this.props.onDown,a=this.props.createTableMessage;-1<i&&(a=(0,c.formatString)(this.props.createTableHintMessage,r+1,i+1));for(var l=0;l<n;l++)t.push(this.renderCell(l,r,i));return[s.createElement("div",{onMouseLeave:function(){return e.setState({row:-1,col:-1})},key:"cells",style:{borderColor:"inherit"},onPointerDown:o,onMouseDown:o},t),s.createElement("div",{className:"k-status",key:"status",onPointerDown:o,onMouseDown:o},a)]},a);function a(){var e=null!==r&&r.apply(this,arguments)||this;return e.state={row:-1,col:-1},e}t.default=n},3895:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},p=(Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTableToolNS=void 0,n(5954)),d=n(3536),f=n(2226),m=n(4987),g=n(3364),h=n(5388),y=n(7403),v=n(3811);(t.InsertTableToolNS||(t.InsertTableToolNS={})).createInsertTableTool=function(s){e=p.Component,r(n,e),n.prototype.render=function(){var t=this,e=this.props,n=e.view,o=e.render,e=u(e,["view","render"]),r=n&&n.state,i=(0,m.provideLocalizationService)(this),a=s.messages,l=a.createTable,a=a.createTableHint,l=i.toLanguageString(l,g.messages[l]),i=i.toLanguageString(a,g.messages[a]),a=!r||!(0,y.canInsert)(r,r.schema.nodes.table),r=[p.createElement(d.Button,c({onClick:a?void 0:this.togglePopup,"aria-disabled":!!a||void 0,ref:function(e){return t.button=e&&e.element},key:"InsertTable"},f.onDownPreventDefault,{title:l},s.props,e,{className:(0,v.classNames)(e.className,s.props.className,{"k-disabled":a})})),n&&!a&&p.createElement(h.InsertTablePopupNS.InsertTablePopup,{key:"insertTablePopup",createTableMessage:l,createTableHintMessage:i,dir:e.dir,anchor:this.button,show:this.state.openedPopup,onClose:this.closePopup,onTableInsert:this.onTableInsert})||null];return o?o.call(void 0,r,{view:n}):r};var e,t=n;function n(){var a=null!==e&&e.apply(this,arguments)||this;return a.state={openedPopup:!1},a.button=null,a.togglePopup=function(){a.setState({openedPopup:!a.state.openedPopup})},a.closePopup=function(){a.state.openedPopup&&a.togglePopup()},a.onTableInsert=function(e,t){var n,o,r,i=a.props.view;i&&(r=(o=i.state.schema.nodes).table,n=o.table_row,o=o.table_cell,(r=(0,y.createTable)({table:r,table_row:n,table_cell:o},e,t))&&(0,y.insertNode)(r,!0)(i.state,i.dispatch),i.focus(),a.closePopup())},a}return(0,m.registerForLocalization)(t),t}},3377:function(e,t,n){function d(e,t){var n=(o=e.selection).from,o=o.to,r=null;return e.doc.nodesBetween(n,o,function(e){return!(r=r||(e.type===t?e:null))}),r}var f=this&&this.__assign||function(){return(f=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},m=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},g=(Object.defineProperty(t,"__esModule",{value:!0}),t.ListTool=void 0,n(5954)),h=n(7403),y=n(3536),v=n(2804),b=n(4987),w=n(3364);t.ListTool=function(e){var t,n,o,r,i,a=!1,l=e.view,s=v.listsTypes,c=e.listType,u=(0,b.useLocalization)(),p=m([],e.items||[],!0);return l&&(n=(t=l.state)&&t.schema.nodes,o=n&&d(t,n[s.orderedList]),r=n&&d(t,n[s.bulletList]),a=Boolean(c===s.orderedList?o&&!r:!o&&r)),a&&(o||r)&&(i=(0,h.listStyle)((o||r).attrs),p=p.map(function(e,t){return f(f({},e),{selected:i?e.style===i:0===t})})),g.createElement("span",{onMouseDown:function(e){e.preventDefault()}},g.createElement(y.SplitButton,{textField:"text",items:p,icon:e.icon,svgIcon:e.svgIcon,onButtonClick:function(e){l&&((0,h.toggleList)(l.state,l.dispatch,l,f(f({listType:c},s),{listAttrs:{}}),"InsertList"),l.focus())},onItemClick:function(e){var t,n;l&&(t=e.item.style?{style:"list-style-type: "+e.item.style+";"}:{},(n=o||r)&&(0,h.listStyle)(n.attrs)!==e.item.style?(n=l.state.selection.$head.posAtIndex(0,-2)-1,l.dispatch(l.state.tr.setNodeMarkup(n,l.state.schema.nodes[c],t))):(0,h.toggleList)(l.state,l.dispatch,l,f(f({listType:c},s),{listAttrs:t}),"InsertList"),l.focus())},buttonClass:a?"k-selected":void 0,title:void 0!==e.title?e.title:u.toLanguageString(e.titleKey,w.messages[e.titleKey])}))}},7441:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=this&&this.__assign||function(){return(d=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},f=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},m=(Object.defineProperty(t,"__esModule",{value:!0}),t.ListToolNS=void 0,n(5954)),g=n(3536),h=n(7403),y=n(2226),v=n(4987),b=n(3364);(t.ListToolNS||(t.ListToolNS={})).createListTool=function(p){e=m.Component,r(n,e),n.prototype.render=function(){var e,t,n=this.props,o=n.view,r=n.render,n=f(n,["view","render"]),i=!1,a=(0,v.provideLocalizationService)(this),l=p.messages.title,s=p.types,c=p.listType,u=(o&&(u=(t=o.state).schema.nodes,e=(0,h.hasNode)(t,u[s.orderedList]),t=(0,h.hasNode)(t,u[s.bulletList]),i=c===s.orderedList?e&&!t:!e&&t),m.createElement(g.Button,d({onClick:function(){return o&&(0,h.toggleList)(o.state,o.dispatch,o,d({listType:c},s),p.commandName)},togglable:!0,selected:i,title:a.toLanguageString(l,b.messages[l])},y.onDownPreventDefault,p.props,n)));return r?r.call(void 0,u,{view:o}):u};var e,t=n;function n(){return null!==e&&e.apply(this,arguments)||this}return(0,v.registerForLocalization)(t),t}},8671:function(F,e,t){var A,n,o=this&&this.__extends||(A=function(e,t){return(A=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},i=(Object.defineProperty(e,"__esModule",{value:!0}),e.EditorTools=void 0,t(5954)),a=t(2804),D=t(5962),z=t(7628),B=t(1403),H=t(8631),W=t(3493),U=t(3270),K=t(9476),V=t(5436),G=t(8210),q=t(1493),J=t(7441),Q=t(4997),l=t(3350),$=t(8389),X=t(7306),Y=t(219),Z=t(3061),ee=t(9460),te=t(3280),ne=t(3037),oe=t(3377),s=t(6233),t=e.EditorTools||(e.EditorTools={});function c(e){return z.createAlignTool(e)}function re(){return null!==n&&n.apply(this,arguments)||this}t.createAlignTool=c,n=c(a.EditorToolsSettings.alignLeft),o(re,n),t.AlignLeft=re,u=c(a.EditorToolsSettings.alignRight),o(ie,u);var u;function ie(){return null!==u&&u.apply(this,arguments)||this}t.AlignRight=ie,p=c(a.EditorToolsSettings.alignCenter),o(ae,p);var p;function ae(){return null!==p&&p.apply(this,arguments)||this}t.AlignCenter=ae,d=c(a.EditorToolsSettings.alignJustify),o(le,d);var d;function le(){return null!==d&&d.apply(this,arguments)||this}function se(e){return D.InsertTableToolNS.createInsertTableTool(e)}t.AlignJustify=le,t.createInsertTableTool=se,f=se(a.EditorToolsSettings.insertTable),o(ce,f);var f;function ce(){return null!==f&&f.apply(this,arguments)||this}t.InsertTable=ce,m=D.InsertTablePopupNS.InsertTablePopup,o(ue,m);var m;function ue(){return null!==m&&m.apply(this,arguments)||this}function pe(e){return B.FontStyleToolNS.createStyleDropDownList(e)}t.InsertTablePopup=ue,t.createStyleDropDownList=pe,g=pe(a.EditorToolsSettings.fontSize),o(de,g);var g;function de(){return null!==g&&g.apply(this,arguments)||this}t.FontSize=de,h=pe(a.EditorToolsSettings.fontName),o(fe,h);var h;function fe(){return null!==h&&h.apply(this,arguments)||this}function me(e){return W.FormatBlockToolNS.createFormatBlockDropDownList(e)}t.FontName=fe,t.ForeColor=function(e){return i.createElement(H.ApplyColorTool,r({},a.EditorToolsSettings.foreColor,e))},t.BackColor=function(e){return i.createElement(H.ApplyColorTool,r({},a.EditorToolsSettings.backColor,e))},t.createFormatBlockDropDownList=me,y=me(a.EditorToolsSettings.formatBlock),o(ge,y);var y;function ge(){return null!==y&&y.apply(this,arguments)||this}function he(e){return U.HistoryToolNS.createUndoTool(e)}function ye(e){return U.HistoryToolNS.createRedoTool(e)}t.FormatBlock=ge,t.createUndoTool=he,t.createRedoTool=ye,v=he(a.EditorToolsSettings.undo),o(ve,v);var v;function ve(){return null!==v&&v.apply(this,arguments)||this}t.Undo=ve,b=ye(a.EditorToolsSettings.redo),o(be,b);var b;function be(){return null!==b&&b.apply(this,arguments)||this}function we(e){return K.IndentToolNS.createIndentTool(e)}t.Redo=be,t.createIndentTool=we,w=we(a.EditorToolsSettings.indent),o(ke,w);var w;function ke(){return null!==w&&w.apply(this,arguments)||this}function k(e){return V.InlineFormatToolNS.createInlineFormatTool(e)}t.Indent=ke,t.createInlineFormatTool=k,O=k(a.EditorToolsSettings.bold),o(Oe,O);var O;function Oe(){return null!==O&&O.apply(this,arguments)||this}t.Bold=Oe,_=k(a.EditorToolsSettings.italic),o(_e,_);var _;function _e(){return null!==_&&_.apply(this,arguments)||this}t.Italic=_e,T=k(a.EditorToolsSettings.underline),o(Te,T);var T;function Te(){return null!==T&&T.apply(this,arguments)||this}t.Underline=Te,S=k(a.EditorToolsSettings.strikethrough),o(Se,S);var S;function Se(){return null!==S&&S.apply(this,arguments)||this}t.Strikethrough=Se,C=k(a.EditorToolsSettings.subscript),o(Ce,C);var C;function Ce(){return null!==C&&C.apply(this,arguments)||this}t.Subscript=Ce,E=k(a.EditorToolsSettings.superscript),o(Ee,E);var E;function Ee(){return null!==E&&E.apply(this,arguments)||this}function Pe(e){return G.createInsertImageTool(e)}t.Superscript=Ee,t.createInsertImageTool=Pe,P=Pe(a.EditorToolsSettings.image),o(Ie,P);var P;function Ie(){return null!==P&&P.apply(this,arguments)||this}function xe(e){return q.LinkToolNS.createLinkTool(e)}t.InsertImage=Ie,t.createLinkTool=xe,I=xe(a.EditorToolsSettings.link),o(je,I);var I;function je(){return null!==I&&I.apply(this,arguments)||this}t.Link=je,x=xe(a.EditorToolsSettings.insertFile),o(Ne,x);var x;function Ne(){return null!==x&&x.apply(this,arguments)||this}function Re(e){return J.ListToolNS.createListTool(e)}t.InsertFile=Ne,t.createListTool=Re,j=Re(a.EditorToolsSettings.orderedList),o(Me,j);var j;function Me(){return null!==j&&j.apply(this,arguments)||this}t.OrderedList=Me,N=Re(a.EditorToolsSettings.bulletList),o(Le,N);var N;function Le(){return null!==N&&N.apply(this,arguments)||this}function Fe(e){return Q.OutdentToolNS.createOutdentTool(e)}t.UnorderedList=Le,t.BulletedList=function(e){var t=[{icon:"list-unordered",svgIcon:s.listUnorderedIcon,text:"Disc",style:"disc"},{icon:"list-unordered-outline",svgIcon:s.listUnorderedOutlineIcon,text:"Circle",style:"circle"},{icon:"list-unordered-square",svgIcon:s.listUnorderedSquareIcon,text:"Square",style:"square"}];return i.createElement(oe.ListTool,r({listType:a.EditorToolsSettings.bulletList.listType,items:t,icon:"list-unordered",svgIcon:s.listUnorderedIcon,titleKey:a.EditorToolsSettings.bulletList.messages.title},e))},t.NumberedList=function(e){var t=[{icon:"list-ordered",svgIcon:s.listOrderedIcon,text:"Decimal"},{icon:"list-roman-upper",svgIcon:s.listRomanUpperIcon,text:"Upper roman",style:"upper-roman"},{icon:"list-roman-lower",svgIcon:s.listRomanLowerIcon,text:"Lower roman",style:"lower-roman"},{icon:"list-latin-big",svgIcon:s.listLatinBigIcon,text:"Upper latin",style:"upper-latin"},{icon:"list-latin-small",svgIcon:s.listLatinSmallIcon,text:"Lower latin",style:"lower-latin"}];return i.createElement(oe.ListTool,r({listType:a.EditorToolsSettings.orderedList.listType,items:t,icon:"list-ordered",svgIcon:s.listOrderedIcon,titleKey:a.EditorToolsSettings.orderedList.messages.title},e))},t.createOutdentTool=Fe,R=Fe(a.EditorToolsSettings.outdent),o(Ae,R);var R;function Ae(){return null!==R&&R.apply(this,arguments)||this}function De(e){return l.TableEditNS.createAddRowBeforeTool(e)}function ze(e){return l.TableEditNS.createAddRowAfterTool(e)}function Be(e){return l.TableEditNS.createAddColumnBeforeTool(e)}function He(e){return l.TableEditNS.createAddColumnAfterTool(e)}function We(e){return l.TableEditNS.createDeleteRowTool(e)}function Ue(e){return l.TableEditNS.createDeleteColumnTool(e)}function Ke(e){return l.TableEditNS.createDeleteTableTool(e)}function Ve(e){return l.TableEditNS.createMergeCellsTool(e)}function Ge(e){return l.TableEditNS.createSplitCellTool(e)}t.Outdent=Ae,t.Print=function(e){return i.createElement(Y.Print,r({},e))},t.Pdf=function(e){return i.createElement(Z.Pdf,r({},e))},t.SelectAll=function(e){return i.createElement(ee.SelectAll,r({},e))},t.CleanFormatting=function(e){return i.createElement(te.CleanFormatting,r({},e))},t.createAddRowBeforeTool=De,t.createAddRowAfterTool=ze,t.createAddColumnBeforeTool=Be,t.createAddColumnAfterTool=He,t.createDeleteRowTool=We,t.createDeleteColumnTool=Ue,t.createDeleteTableTool=Ke,t.createMergeCellsTool=Ve,t.createSplitCellTool=Ge,M=De(a.EditorToolsSettings.addRowBefore),o(qe,M);var M;function qe(){return null!==M&&M.apply(this,arguments)||this}t.AddRowBefore=qe,L=ze(a.EditorToolsSettings.addRowAfter),o(Je,L);var L;function Je(){return null!==L&&L.apply(this,arguments)||this}t.AddRowAfter=Je,Qe=Be(a.EditorToolsSettings.addColumnBefore),o($e,Qe);var Qe;function $e(){return null!==Qe&&Qe.apply(this,arguments)||this}t.AddColumnBefore=$e,Xe=He(a.EditorToolsSettings.addColumnAfter),o(Ye,Xe);var Xe;function Ye(){return null!==Xe&&Xe.apply(this,arguments)||this}t.AddColumnAfter=Ye,Ze=We(a.EditorToolsSettings.deleteRow),o(et,Ze);var Ze;function et(){return null!==Ze&&Ze.apply(this,arguments)||this}t.DeleteRow=et,tt=Ue(a.EditorToolsSettings.deleteColumn),o(nt,tt);var tt;function nt(){return null!==tt&&tt.apply(this,arguments)||this}t.DeleteColumn=nt,ot=Ke(a.EditorToolsSettings.deleteTable),o(rt,ot);var ot;function rt(){return null!==ot&&ot.apply(this,arguments)||this}t.DeleteTable=rt,it=Ve(a.EditorToolsSettings.mergeCells),o(at,it);var it;function at(){return null!==it&&it.apply(this,arguments)||this}t.MergeCells=at,lt=Ge(a.EditorToolsSettings.splitCell),o(st,lt);var lt;function st(){return null!==lt&<.apply(this,arguments)||this}function ct(e){return $.UnlinkToolNS.createUnlinkTool(e)}t.SplitCell=st,t.createUnlinkTool=ct,ut=ct(a.EditorToolsSettings.unlink),o(pt,ut);var ut;function pt(){return null!==ut&&ut.apply(this,arguments)||this}function dt(e){return X.ViewHtmlToolNS.createViewHtmlTool(e)}t.Unlink=pt,t.createViewHtmlTool=dt,ft=dt(a.EditorToolsSettings.viewHtml),o(mt,ft);var ft;function mt(){return null!==ft&&ft.apply(this,arguments)||this}t.ViewHtml=mt,gt=ne.FindAndReplace,o(ht,gt);var gt;function ht(){return null!==gt&>.apply(this,arguments)||this}t.FindAndReplace=ht},4997:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=this&&this.__assign||function(){return(p=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},d=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},f=(Object.defineProperty(t,"__esModule",{value:!0}),t.OutdentToolNS=void 0,n(5954)),m=n(3536),g=n(7403),h=n(2226),y=n(4987),v=n(3364),b=n(3811);(t.OutdentToolNS||(t.OutdentToolNS={})).createOutdentTool=function(u){e=f.Component,r(n,e),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=d(e,["view","render"]),o=t&&t.state,r=e.dir,i=!!o&&(0,g.isIndented)(o,u.actions,r),a=o&&o.schema.nodes[u.listsTypes.listItem],l=!!o&&(0,g.canOutdentAsListItem)(o,{nodes:u.actions,listsTypes:u.listsTypes}),o=i||l,s=(0,y.provideLocalizationService)(this),c=u.messages.title,o=!o,s=f.createElement(m.Button,p({onClick:o?void 0:function(){t&&l&&a?(0,g.liftListItem)(a)(t.state,t.dispatch):t&&i&&(0,g.indentBlocks)(u.actions,u.commandName,r)(t.state,t.dispatch)},"aria-disabled":!!o||void 0,title:s.toLanguageString(c,v.messages[c])},h.onDownPreventDefault,u.props,e,{className:(0,b.classNames)(e.className,u.props.className,{"k-disabled":o})}));return n?n.call(void 0,s,{view:t}):s};var e,t=n;function n(){return null!==e&&e.apply(this,arguments)||this}return(0,y.registerForLocalization)(t),t}},3061:function(e,t,n){var s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.Pdf=void 0,n(5954)),p=n(3536),d=n(4987),f=n(8324),m=n(2226),g=n(3364),n=n(2804),h=n.EditorToolsSettings.pdf,y=n.EditorToolsSettings.savePdfOptions;t.Pdf=function(e){var t=e.view,n=e.render,o=e.settings,o=void 0===o?h:o,r=e.savePdfOptions,i=e.savePdfCallback,e=c(e,["view","render","settings","savePdfOptions","savePdfCallback"]),a=o.messages.title,l=u.useCallback(function(){t&&(0,f.savePDF)(t.dom,s(s({},y),r||{}),i)},[t,r,i]),l=u.createElement(p.Button,s({onClick:l,title:(0,d.useLocalization)().toLanguageString(a,g.messages[a])},m.onDownPreventDefault,o.props,e));return n?n.call(void 0,l,{view:t}):l}},219:function(e,t,n){var s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.Print=void 0,n(5954)),p=n(3536),d=n(4987),f=n(2226),m=n(3364),o=n(2804),g=n(3811),h=o.EditorToolsSettings.print;t.Print=function(e){var t=e.view,n=e.render,o=e.settings,o=void 0===o?h:o,e=c(e,["view","render","settings"]),r=t&&t.dom,r=r&&r.ownerDocument,i=r&&r.defaultView,r=o.messages.title,a=!i||i===window,l=u.useCallback(function(){i&&i.print()},[i]),l=u.createElement(p.Button,s({onClick:a?void 0:l,"aria-disabled":!!a||void 0,title:(0,d.useLocalization)().toLanguageString(r,m.messages[r])},f.onDownPreventDefault,o.props,e,{className:(0,g.classNames)(e.className,o.props.className,{"k-disabled":a})}));return n?n.call(void 0,l,{view:t}):l}},8980:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.createProseMirrorTool=void 0,n(5954)),p=n(3536),d=n(2226),f=n(4987),m=n(3364),g=n(3811);t.createProseMirrorTool=function(a,l){e=u.Component,r(n,e),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=c(e,["view","render"]),o=(0,f.provideLocalizationService)(this),r=a.messages.title,i=t&&t.state,i=!!i&&!l(i),o=u.createElement(p.Button,s({onClick:i?void 0:function(){return t&&l(t.state,function(e){return t.dispatch(e.setMeta("commandName",a.commandName))})},"aria-disabled":!!i||void 0},d.onDownPreventDefault,{title:o.toLanguageString(r,m.messages[r])},a.props,e,{className:(0,g.classNames)(e.className,a.props.className,{"k-disabled":i})}));return n?n.call(void 0,o,{view:t}):o};var e,t=n;function n(){return null!==e&&e.apply(this,arguments)||this}return(0,f.registerForLocalization)(t),t}},9460:function(e,t,n){var a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},l=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.SelectAll=void 0,n(5954)),c=n(3536),u=n(4987),p=n(2226),d=n(3364),f=n(7403),m=n(2804).EditorToolsSettings.selectAll;t.SelectAll=function(e){var t=e.view,n=e.render,o=e.settings,o=void 0===o?m:o,e=l(e,["view","render","settings"]),r=o.messages.title,i=s.useCallback(function(){t&&((0,f.selectAll)(t.state,t.dispatch),t.focus())},[t]),i=s.createElement(c.Button,a({onClick:i,title:(0,u.useLocalization)().toLanguageString(r,d.messages[r])},p.onDownPreventDefault,o.props,e));return n?n.call(void 0,i,{view:t}):i}},3350:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TableEditNS=void 0;function o(e,t){var n=(0,i.deleteColumn)(e,t);if(n&&!t){t=(0,i.selectionCell)(e),e=t&&t.node(t.depth);if(e&&1===e.content.childCount)return!1}return n}function r(e,t){var n=(0,i.deleteRow)(e,t);if(n&&!t){t=(0,i.selectionCell)(e),e=t&&t.node(t.depth-1);if(e&&1===e.content.childCount)return!1}return n}var i=n(7403),a=n(8980);(n=t.TableEditNS||(t.TableEditNS={})).createAddRowBeforeTool=function(e){return(0,a.createProseMirrorTool)(e,i.addRowBefore)},n.createAddRowAfterTool=function(e){return(0,a.createProseMirrorTool)(e,i.addRowAfter)},n.createAddColumnBeforeTool=function(e){return(0,a.createProseMirrorTool)(e,i.addColumnBefore)},n.createAddColumnAfterTool=function(e){return(0,a.createProseMirrorTool)(e,i.addColumnAfter)},n.createDeleteRowTool=function(e){return(0,a.createProseMirrorTool)(e,r)},n.createDeleteColumnTool=function(e){return(0,a.createProseMirrorTool)(e,o)},n.createDeleteTableTool=function(e){return(0,a.createProseMirrorTool)(e,i.deleteTable)},n.createMergeCellsTool=function(e){return(0,a.createProseMirrorTool)(e,i.mergeCells)},n.createSplitCellTool=function(e){return(0,a.createProseMirrorTool)(e,i.splitCell)}},8389:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.UnlinkToolNS=void 0,n(5954)),p=n(3536),d=n(7403),f=n(2226),m=n(4987),g=n(3364),h=n(3811);(t.UnlinkToolNS||(t.UnlinkToolNS={})).createUnlinkTool=function(l){e=u.Component,r(n,e),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=c(e,["view","render"]),o={mark:l.mark},r=!!t&&(0,d.hasMark)(t.state,o),i=(0,m.provideLocalizationService)(this),a=l.messages.title,r=!r,i=u.createElement(p.Button,s({onClick:r?void 0:function(){return t&&(0,d.removeLink)(o,t.state.tr.setMeta("commandName",l.commandName))(t.state,t.dispatch)},"aria-disabled":!!r||void 0},f.onDownPreventDefault,{title:i.toLanguageString(a,g.messages[a])},l.props,e,{className:(0,h.classNames)(e.className,l.props.className,{"k-disabled":r})}));return n?n.call(void 0,i,{view:t}):i};var e,t=n;function n(){return null!==e&&e.apply(this,arguments)||this}return(0,m.registerForLocalization)(t),t}},2226:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.userSelectNone=t.itemRender=t.formatString=t.onDownPreventDefault=void 0;var o=n(5954);t.onDownPreventDefault={onMouseDown:function(e){return e.preventDefault()},onPointerDown:function(e){return e.preventDefault()}},t.userSelectNone={userSelect:"none"},t.formatString=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return e.forEach(function(e,t){n=n.replace("{"+t+"}",String(e))}),n},t.itemRender=function(e,t){return t.dataItem.style?o.cloneElement(e,e.props,o.createElement("span",{style:t.dataItem.style},e.props.children)):e}},7306:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},l=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlToolNS=void 0,n(5954)),c=n(3536),u=n(2226),p=n(3695),d=n(4987),f=n(3364);(t.ViewHtmlToolNS||(t.ViewHtmlToolNS={})).createViewHtmlTool=function(i){t=s.Component,r(n,t),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=l(e,["view","render"]),o=(0,d.provideLocalizationService)(this),r=i.messages.viewHtml,o=[s.createElement(c.Button,a({onClick:this.toggleDialog,key:"viewHtml"},u.onDownPreventDefault,{title:o.toLanguageString(r,f.messages[r])},i.props,e)),this.state.openedDialog&&t&&s.createElement(p.EditorDialogs.ViewHtmlDialog,{key:"viewHtmlDialog",view:t,settings:i,dir:e.dir,onClose:this.toggleDialog})||null];return n?n.call(void 0,o,{view:t}):o};var t,e=n;function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={openedDialog:!1},e.toggleDialog=function(){e.setState({openedDialog:!e.state.openedDialog})},e}return(0,d.registerForLocalization)(e),e}},3131:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.firefox=void 0,t.firefox="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent)},1457:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateEditorValue=void 0;function i(e,t){t=t.tr||e.state.tr.setSelection(new o.AllSelection(e.state.doc)).replaceSelectionWith(t.doc||r.EditorUtils.createDocument(e.state.schema,t.html||"")).setMeta("commandName","setHTML"),e.updateState(e.state.apply(t))}var o=n(7403),r=n(5538);t.updateEditorValue=function(e,t,n,o,r){"string"==typeof t?o&&t===r?i(e,{tr:o}):t!==n&&i(e,{html:t}):o&&t.eq(o.doc)?i(e,{tr:o}):e.state.doc.eq(t)||i(e,{doc:t})}},5538:function(e,t,n){var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorUtils=void 0;var r=n(4394),i=n(2346),a=n(7403),n=n(580);(t=t.EditorUtils||(t.EditorUtils={})).alignBlocks=function(e,t,n){return Boolean((0,a.alignBlocks)(t,n)(e.state,e.dispatch))},t.applyInlineStyle=function(e,t,n){return(0,a.applyInlineStyle)(t,n)(e.state,e.dispatch)},t.applyLink=function(e,t,n){return(0,a.applyLink)(t,n)(e.state,e.dispatch)},t.canIndentList=function(e,t){return(0,a.canIndentAsListItem)(e,t)},t.canInsert=function(e,t){return(0,a.canInsert)(e,t)},t.canOutdentList=function(e,t){return(0,a.canOutdentAsListItem)(e,{listsTypes:t,nodes:[]})},t.convertMsLists=function(e){return(0,a.convertMsLists)(e)},t.createDocument=function(e,t,n){return(0,a.parseContent)((0,a.trimWhitespace)(t),e,void 0!==n?n:{preserveWhitespace:"full"})},t.createTable=function(e,t,n){return(0,a.createTable)(e,t,n)},t.formatBlockElements=function(e,t,n){return(0,a.formatBlockElements)(t,n)(e.state,e.dispatch)},t.getBlockFormats=function(e){return(0,a.getBlockFormats)(e)},t.getHtml=function(e){return(0,a.getHtml)(e)},t.getInlineStyles=function(e,t){return(0,a.getInlineStyles)(e,t)},t.getMark=function(e,t){return(0,a.getMark)(e,t)},t.hasMark=function(e,t){return(0,a.hasMark)(e,t)},t.hasNode=function(e,t){return(0,a.hasNode)(e,t)},t.indentBlocks=function(e,t,n,o){return Boolean((0,a.indentBlocks)(t,n,o)(e.state,e.dispatch))},t.indentHtml=function(e){return(0,a.indentHtml)(e)},t.insertNode=function(e,t,n){(0,a.insertNode)(t,n)(e.state,e.dispatch)},t.isAligned=function(e,t){return(0,a.isAligned)(e,t)},t.isIndented=function(e,t,n){return(0,a.isIndented)(e,t,n)},t.removeComments=function(e){return(0,a.removeComments)(e)},t.removeTag=function(e,t){return(0,a.removeTag)(e,t)},t.pasteCleanup=function(e,t){return(0,a.pasteCleanup)(e,t)},t.sanitizeClassAttr=function(e){(0,a.sanitizeClassAttr)(e)},t.sanitizeStyleAttr=function(e){(0,a.sanitizeStyleAttr)(e)},t.removeAttribute=function(e){(0,a.removeAttribute)(e)},t.sanitize=function(e){return(0,a.sanitize)(e)},t.replaceImageSourcesFromRtf=function(e,t){return(0,a.replaceImageSourcesFromRtf)(e,t)},t.textHighlight=function(e){return(0,a.textHighlight)(e)},t.imageResizing=function(e){return(0,a.imageResizing)(e)},t.tableResizing=function(){return(0,a.tableResizing)()},t.setHtml=function(e,t,n,o){t=(0,a.trimWhitespace)(t);(0,a.setHtml)(t,n,o)(e.state,e.dispatch)},t.toggleInlineFormat=function(e,t,n,o){return(0,a.toggleInlineFormat)(t,n,o)(e.state,e.dispatch)},t.toggleList=function(e,t,n){return(0,a.toggleList)(e.state,e.dispatch,e,t,n)},t.getShortcuts=function(e){return r.getShortcuts(e)},t.propsKey=n.editorPropsKey,t.imageResizeKey=a.imageResizeKey,t.marks=o({},i.marks),t.nodes=o({},i.nodes)},580:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.editorPropsKey=void 0;n=n(7403);t.editorPropsKey=new n.PluginKey("editor-props")},1448:(e,t,n)=>{n.r(t),n.d(t,{Field:()=>o,FieldArray:()=>p,FieldWrapper:()=>f,Form:()=>r,FormElement:()=>v});var m=n(5954),g=m.createContext(null),d=function(){return(d=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},o=function(e){var t,n=e.name,o=e.component,r=e.validator,i=e.children,a=e.onChange,e=function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}(e,["name","component","validator","children","onChange"]),l=m.useContext(g),s=l?l.id:"",c=(m.useEffect(function(){if(l)return l.registerField(n,r)},[n,s,r]),m.useCallback(function(e){var t=e&&(void 0!==e.value?e.value:e.target&&e.target.value);l.onChange(n,{value:t}),a&&a.call(void 0,e)},[n,s,a])),u=m.useCallback(function(e){return l.onChange(n,{value:e.target.value})},[n,s]),p=m.useCallback(function(){return l.onBlur(n)},[n,s]),s=m.useCallback(function(){return l.onFocus(n)},[n,s]);return l?(t=l.valueGetter(n),"string"==typeof o?m.createElement(o,d({onChange:u,onBlur:p,onFocus:s,value:t,children:i},e)):m.createElement(o,d(d({children:i},e),{onChange:c,onBlur:p,onFocus:s,value:t,validationMessage:l.errors[n],touched:l.touched[n],modified:l.modified[n],visited:l.visited[n],valid:!(Boolean(l.errors[n])&&l.touched[n]),name:n}))):null};o.displayName="KendoReactField";function a(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var i,l=n(1895),c=n(3811),s={name:"@progress/kendo-react-form",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1685981066,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},u=(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(){return(u=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}),r=function(t){function e(e){var i=t.call(this,e)||this;return i._id=(0,c.guid)(),i._touched={},i._visited={},i._modified={},i._validatorsByField={},i._values={},i._fields={},i._unmounted=!1,i._submitted=!1,i.isValid=function(){return i.isFormValid(i.errors)},i.accumulatedForceUpdate=function(){i._accumulatorTimeout&&clearTimeout(i._accumulatorTimeout),i._accumulatorTimeout=window.setTimeout(function(){i._accumulatorTimeout=void 0,i.forceUpdate()},0)},i.resetForm=function(){i.values=(0,c.clone)(i.props.initialValues),i._id=(0,c.guid)(),i._touched={},i._visited={},i._modified={},i._validatorsByField={},i._fields={},i._submitted=!1,i.forceUpdate()},i.onReset=function(){return i.resetForm()},i.addField=function(e){i._fields[e]=!0},i.onSubmit=function(e){var t={},n=i.fields,o=(e&&("function"==typeof e.preventDefault&&e.preventDefault(),"function"==typeof e.stopPropagation)&&e.stopPropagation(),n.forEach(function(e){t[e]=!0}),i.visited=u({},t),i.touched=u({},t),i.values),r=i.isFormValid(i.errors),n=i.isFormModified(i.modified,n);i.props.onSubmitClick&&i.props.onSubmitClick.call(void 0,{values:o,isValid:r,isModified:n,event:e}),r&&(i.props.ignoreModified||n)&&i.props.onSubmit&&(i._submitted=!0,i.props.onSubmit.call(void 0,o,e)),i.forceUpdate()},i.onChange=function(e,t){var n,t=t.value;i.addField(e),i.modified[e]||(i.modified=u(u({},i.modified),((n={})[e]=!0,n))),i.valueSetter(e,t),i.forceUpdate()},i.onFocus=function(e,t){var n;i.visited[e]||(i.visited=u(u({},i.visited),((n={})[e]=!0,n)),t)||i.forceUpdate()},i.onBlur=function(e,t){var n;i.touched[e]||(i.onFocus(e,t),i.touched=u(u({},i.touched),((n={})[e]=!0,n)),t)||i.forceUpdate()},i.onFieldRegister=function(o,e){i.addField(o);var t,n=i.validatorsByField[o]||[],r=n.length;return i.validatorsByField=u(u({},i.validatorsByField),((t={})[o]=a(a([],n,!0),[e],!1),t)),i.accumulatedForceUpdate(),function(){var e,t,n;i._unmounted||(t=a([],i.validatorsByField[o]||[],!0),n=Boolean(t[r]),t[r]=void 0,i.validatorsByField=u(u({},i.validatorsByField),((e={})[o]=t,e)),n&&i.accumulatedForceUpdate())}},i.isFormValid=function(t){return!Object.keys(t).some(function(e){return Boolean(t[e])})},i.isFormModified=function(t,e){return e.some(function(e){return t[e]})},i.isFormHasNotTouched=function(t,e){return e.some(function(e){return!t[e]})},i.isFormTouched=function(t,e){return e.some(function(e){return t[e]})},i.isFormVisited=function(t,e){return e.some(function(e){return t[e]})},i.valueGetter=function(e){return(0,c.getter)(e)(i.values)},i.valueSetter=function(e,t){return(0,c.setter)(e)(i.values,t)},i.onArrayAction=function(e){var t;i.addField(e),i.modified[e]||(i.modified=u(u({},i.modified),((t={})[e]=!0,t))),i.onBlur(e,!0)},i.onInsert=function(e,t){i.onArrayAction(e);var n=a([],i.valueGetter(e)||[],!0);n.splice(t.index,0,t.value),i.valueSetter(e,n),i.forceUpdate()},i.onUnshift=function(e,t){i.onInsert(e,{value:t.value,index:0})},i.onPush=function(e,t){i.onArrayAction(e);t=a(a([],i.valueGetter(e)||[],!0),[t.value],!1);i.valueSetter(e,t),i.forceUpdate()},i.onPop=function(e){i.onArrayAction(e);var t=a([],i.valueGetter(e)||[],!0),n=t.pop();return i.valueSetter(e,t),i.forceUpdate(),n},i.onRemove=function(e,t){i.onArrayAction(e);var n=a([],i.valueGetter(e)||[],!0),t=n.splice(t.index,1);return i.valueSetter(e,n),i.forceUpdate(),t},i.onReplace=function(e,t){i.onArrayAction(e);var n=a([],i.valueGetter(e)||[],!0);n.splice(t.index,1,t.value),i.valueSetter(e,n),i.forceUpdate()},i.onMove=function(e,t){i.onArrayAction(e);var n=a([],i.valueGetter(e)||[],!0),o=n[t.prevIndex];n.splice(t.prevIndex,1),n.splice(t.nextIndex,0,o),i.valueSetter(e,n),i.forceUpdate()},(0,c.validatePackage)(s),i.values=(0,c.clone)(e.initialValues),i}var n=e,o=t;if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=n}return i(n,o),n.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r),Object.defineProperty(e.prototype,"touched",{get:function(){return this._touched},set:function(e){this._touched=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visited",{get:function(){return this._visited},set:function(e){this._visited=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modified",{get:function(){return this._modified},set:function(e){this._modified=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validatorsByField",{get:function(){return this._validatorsByField},set:function(e){this._validatorsByField=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){return this._values},set:function(e){this._values=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fields",{get:function(){return Object.keys(this._fields)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"formErrors",{get:function(){if(this.props.validator)return this.props.validator(this.values,this.valueGetter)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){var o=this,r={},e=this.fields,i=this.validatorsByField;return e.forEach(function(t){var n;r[t]="",i[t]&&(n=[],i[t].forEach(function(e){Array.isArray(e)?n.push.apply(n,e):n.push(e)}),n.find(function(e){if(e){e=e(o.valueGetter(t),o.valueGetter,{name:t});if(e)return r[t]=e,!0}return!1}))}),this.formErrors&&(0,c.cloneObject)(this.formErrors,r),r},enumerable:!1,configurable:!0}),e.prototype.componentWillUnmount=function(){this._unmounted=!0,this._accumulatorTimeout&&clearTimeout(this._accumulatorTimeout)},e.prototype.render=function(){var e=this.props.render,t=this.touched,n=this.visited,o=this.modified,r=this.fields,i=this.errors,a=this.isFormValid(i),l=this.isFormModified(o,r),s=this.isFormTouched(t,r),c=this.isFormVisited(n,r),r=this.isFormHasNotTouched(t,r)&&!a||a&&(this.props.ignoreModified||l);return m.createElement(g.Provider,{key:this._id,value:{id:this._id,valueGetter:this.valueGetter,errors:i,modified:o,touched:t,visited:n,registerField:this.onFieldRegister,onSubmit:this.onSubmit,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,onUnshift:this.onUnshift,onPush:this.onPush,onInsert:this.onInsert,onPop:this.onPop,onRemove:this.onRemove,onReplace:this.onReplace,onMove:this.onMove}},e({valid:a,modified:l,touched:s,visited:c,submitted:this._submitted,valueGetter:this.valueGetter,errors:i,allowSubmit:r,onChange:this.onChange,onSubmit:this.onSubmit,onFormReset:this.resetForm}))},e.displayName="KendoReactForm",e.propTypes={initialValues:l.any,onSubmit:l.func,onSubmitClick:l.func,render:l.func.isRequired},e}(m.Component),h=function(){return(h=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},p=function(e){var t,n=e.name,o=e.component,r=e.validator,i=(e.type,e.children),e=function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}(e,["name","component","validator","type","children"]),a=m.useContext(g),l=a?a.id:"",s=(m.useEffect(function(){if(a)return a.registerField(n,r)},[n,l,r]),m.useCallback(function(e){return a.onUnshift(n,e)},[n,l])),c=m.useCallback(function(e){return a.onPush(n,e)},[n,l]),u=m.useCallback(function(e){return a.onInsert(n,e)},[n,l]),p=m.useCallback(function(){return a.onPop(n)},[n,l]),d=m.useCallback(function(e){return a.onRemove(n,e)},[n,l]),f=m.useCallback(function(e){return a.onReplace(n,e)},[n,l]),l=m.useCallback(function(e){return a.onMove(n,e)},[n,l]);return a?(t=a.valueGetter(n),m.createElement(o,h({value:t,validationMessage:a.errors[n],touched:a.touched[n],modified:a.modified[n],visited:a.visited[n],valid:!(Boolean(a.errors[n])&&a.touched[n]),onUnshift:s,onPush:c,onInsert:u,onPop:p,onRemove:d,onReplace:f,onMove:l,children:i,name:n},e))):null},f=(p.displayName="KendoReactFieldArray",function(e){var t=(0,c.classNames)({"k-form-field":!0,"k-rtl":"rtl"===e.dir},e.className);return m.createElement("div",{className:t,style:e.style},e.children)}),y=(f.displayName="KendoReactFieldWrapper",function(){return(y=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}),v=m.forwardRef(function(e,t){var n,o=m.useRef(null),r=m.useRef(null),t=(m.useImperativeHandle(r,function(){return{element:o.current,props:e}}),m.useImperativeHandle(t,function(){return r.current}),m.useContext(g)),i=e.className,a=(e.onSubmit,e.style,e.horizontal),l=e.size,s=function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}(e,["className","onSubmit","style","horizontal","size"]),l=(0,c.classNames)(((n={"k-form":!0})["k-form-".concat(c.kendoThemeMaps.sizeMap[l]||l)]=l,n["k-form-horizontal"]=!0===a,n),i);return m.createElement("form",y({ref:o},s,{style:e.style,className:l,onSubmit:t?t.onSubmit:void 0}),e.children)});v.displayName="KendoReactFormElement",v.defaultProps={size:"medium"}},7403:e=>{e.exports=y},2527:e=>{e.exports=_},3536:e=>{e.exports=g},3811:e=>{e.exports=h},8343:e=>{e.exports=b},445:e=>{e.exports=S},4021:e=>{e.exports=w},4987:e=>{e.exports=k},6561:e=>{e.exports=O},8324:e=>{e.exports=C},2556:e=>{e.exports=T},6233:e=>{e.exports=v},1895:e=>{e.exports=m},5954:e=>{e.exports=f}},o={};function r(e){var t=o[e];return void 0!==t||(t=o[e]={exports:{}},n[e].call(t.exports,t,t.exports,r)),t.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var e,t,i,a,l,s,c,u,p,d={};return e=d,Object.defineProperty(e,"__esModule",{value:!0}),e.editorPropsKey=e.parseContent=e.getHtml=e.marks=e.nodes=e.EditorDialogs=e.EditorUtils=e.EditorToolsSettings=e.EditorTools=e.Editor=e.ProseMirror=void 0,t=r(1801),Object.defineProperty(e,"Editor",{enumerable:!0,get:function(){return t.Editor}}),i=r(8671),Object.defineProperty(e,"EditorTools",{enumerable:!0,get:function(){return i.EditorTools}}),a=r(2804),Object.defineProperty(e,"EditorToolsSettings",{enumerable:!0,get:function(){return a.EditorToolsSettings}}),l=r(5538),Object.defineProperty(e,"EditorUtils",{enumerable:!0,get:function(){return l.EditorUtils}}),s=r(3695),Object.defineProperty(e,"EditorDialogs",{enumerable:!0,get:function(){return s.EditorDialogs}}),c=r(580),Object.defineProperty(e,"editorPropsKey",{enumerable:!0,get:function(){return c.editorPropsKey}}),u=r(2346),Object.defineProperty(e,"nodes",{enumerable:!0,get:function(){return u.nodes}}),Object.defineProperty(e,"marks",{enumerable:!0,get:function(){return u.marks}}),p=r(7403),Object.defineProperty(e,"getHtml",{enumerable:!0,get:function(){return p.getHtml}}),Object.defineProperty(e,"parseContent",{enumerable:!0,get:function(){return p.parseContent}}),e.ProseMirror={Selection:p.Selection,SelectionRange:p.SelectionRange,TextSelection:p.TextSelection,NodeSelection:p.NodeSelection,AllSelection:p.AllSelection,EditorState:p.EditorState,Plugin:p.Plugin,PluginKey:p.PluginKey,Transaction:p.Transaction,Decoration:p.Decoration,DecorationSet:p.DecorationSet,EditorView:p.EditorView,Node:p.Node,ResolvedPos:p.ResolvedPos,NodeRange:p.NodeRange,Fragment:p.Fragment,Slice:p.Slice,ReplaceError:p.ReplaceError,Mark:p.Mark,Schema:p.Schema,NodeType:p.NodeType,MarkType:p.MarkType,ContentMatch:p.ContentMatch,DOMParser:p.DOMParser,DOMSerializer:p.DOMSerializer,Transform:p.Transform,Step:p.Step,StepResult:p.StepResult,joinPoint:p.joinPoint,canJoin:p.canJoin,canSplit:p.canSplit,insertPoint:p.insertPoint,dropPoint:p.dropPoint,liftTarget:p.liftTarget,findWrapping:p.findWrapping,StepMap:p.StepMap,MapResult:p.MapResult,Mapping:p.Mapping,AddMarkStep:p.AddMarkStep,RemoveMarkStep:p.RemoveMarkStep,ReplaceStep:p.ReplaceStep,ReplaceAroundStep:p.ReplaceAroundStep,replaceStep:p.replaceStep,deleteSelection:p.deleteSelection,joinBackward:p.joinBackward,selectNodeBackward:p.selectNodeBackward,joinForward:p.joinForward,selectNodeForward:p.selectNodeForward,joinUp:p.joinUp,joinDown:p.joinDown,lift:p.lift,newlineInCode:p.newlineInCode,exitCode:p.exitCode,createParagraphNear:p.createParagraphNear,liftEmptyBlock:p.liftEmptyBlock,splitBlock:p.splitBlock,splitBlockKeepMarks:p.splitBlockKeepMarks,selectParentNode:p.selectParentNode,selectAll:p.selectAll,wrapIn:p.wrapIn,setBlockType:p.setBlockType,toggleMark:p.toggleMark,autoJoin:p.autoJoin,chainCommands:p.chainCommands,pcBaseKeymap:p.pcBaseKeymap,macBaseKeymap:p.macBaseKeymap,baseKeymap:p.baseKeymap,history:p.history,undo:p.undo,redo:p.redo,undoDepth:p.undoDepth,redoDepth:p.redoDepth,InputRule:p.InputRule,inputRules:p.inputRules,undoInputRule:p.undoInputRule,emDash:p.emDash,ellipsis:p.ellipsis,openDoubleQuote:p.openDoubleQuote,closeDoubleQuote:p.closeDoubleQuote,openSingleQuote:p.openSingleQuote,closeSingleQuote:p.closeSingleQuote,smartQuotes:p.smartQuotes,wrappingInputRule:p.wrappingInputRule,textblockTypeInputRule:p.textblockTypeInputRule,keymap:p.keymap,keydownHandler:p.keydownHandler,orderedList:p.orderedList,bulletList:p.bulletList,listItem:p.listItem,addListNodes:p.addListNodes,wrapInList:p.wrapInList,splitListItem:p.splitListItem,liftListItem:p.liftListItem,sinkListItem:p.sinkListItem,dropCursor:p.dropCursor,gapCursor:p.gapCursor,tableEditing:p.tableEditing,fixTables:p.fixTables,fixTablesKey:p.fixTablesKey,cellAround:p.cellAround,isInTable:p.isInTable,selectionCell:p.selectionCell,moveCellForward:p.moveCellForward,inSameTable:p.inSameTable,findCell:p.findCell,colCount:p.colCount,nextCell:p.nextCell,removeColSpan:p.removeColSpan,addColSpan:p.addColSpan,columnIsHeader:p.columnIsHeader,tableNodes:p.tableNodes,tableNodeTypes:p.tableNodeTypes,CellSelection:p.CellSelection,TableMap:p.TableMap,tableEditingKey:p.tableEditingKey,columnResizing:p.columnResizing,columnResizingPluginKey:p.columnResizingPluginKey,updateColumnsOnResize:p.updateColumnsOnResize,selectedRect:p.selectedRect,addColumn:p.addColumn,addColumnBefore:p.addColumnBefore,addColumnAfter:p.addColumnAfter,deleteColumn:p.deleteColumn,rowIsHeader:p.rowIsHeader,addRow:p.addRow,addRowBefore:p.addRowBefore,addRowAfter:p.addRowAfter,deleteRow:p.deleteRow,mergeCells:p.mergeCells,splitCell:p.splitCell,splitCellWithType:p.splitCellWithType,setCellAttr:p.setCellAttr,toggleHeader:p.toggleHeader,toggleHeaderRow:p.toggleHeaderRow,toggleHeaderColumn:p.toggleHeaderColumn,toggleHeaderCell:p.toggleHeaderCell,goToNextCell:p.goToNextCell,deleteTable:p.deleteTable},d})())}}});
|
|
1
|
+
System.register("@progress/kendo-react-editor",["react","prop-types","@progress/kendo-react-buttons","@progress/kendo-react-common","@progress/kendo-editor-common","@progress/kendo-svg-icons","@progress/kendo-react-dialogs","@progress/kendo-react-inputs","@progress/kendo-react-intl","@progress/kendo-react-layout","@progress/kendo-licensing","@progress/kendo-react-popup","@progress/kendo-react-dropdowns","@progress/kendo-react-pdf"],function(e,t){var f={},m={},g={},h={},y={},v={},b={},w={},k={},O={},_={},T={},S={},C={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.defineProperty(m,"__esModule",{value:!0}),Object.defineProperty(g,"__esModule",{value:!0}),Object.defineProperty(h,"__esModule",{value:!0}),Object.defineProperty(y,"__esModule",{value:!0}),Object.defineProperty(v,"__esModule",{value:!0}),Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(w,"__esModule",{value:!0}),Object.defineProperty(k,"__esModule",{value:!0}),Object.defineProperty(O,"__esModule",{value:!0}),Object.defineProperty(_,"__esModule",{value:!0}),Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(S,"__esModule",{value:!0}),Object.defineProperty(C,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){f[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){m[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){g[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){h[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){y[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){v[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){b[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){w[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){k[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){O[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){_[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){T[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){S[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){C[e]=t[e]})}],execute:function(){e((()=>{"use strict";var n={1801:function(e,t,n){var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},l=(Object.defineProperty(t,"__esModule",{value:!0}),t.Editor=void 0,n(5954)),a=n(1895),p=n(3536),s=n(3811),d=n(7403),f=n(2346),m=n(3605),g=n(2804),h=n(3695),y=n(5538),v=n(580),b=n(1457),w=g.EditorToolsSettings.link,k=g.EditorToolsSettings.bold,O=g.EditorToolsSettings.italic,_=g.EditorToolsSettings.underline,T=n(3131),S=n(2527),C=n(7363),E=n(3364),P=n(4987),g=(r=l.Component,i(I,r),Object.defineProperty(I.prototype,"value",{get:function(){return null!==this.trOnChange?this.trOnChange.doc:void 0!==this.props.value?this.props.value:this.view?this.view.state.doc:this.props.defaultContent||""},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"contentElement",{get:function(){return this._contentElement},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"view",{get:function(){return this._view},enumerable:!1,configurable:!0}),I.prototype.componentDidMount=function(){this.iframe&&T.firefox||this.initialize()},I.prototype.componentDidUpdate=function(e){var t=this.props.value,n=this.view;void 0!==t&&n&&((0,b.updateEditorValue)(n,t,e.value,this.trOnChange,this.htmlOnChange),this.trOnChange=null,this.htmlOnChange=null)},I.prototype.componentWillUnmount=function(){this.view&&this.view.destroy(),this._view=void 0;var e=this.iframe&&this.iframe.contentWindow;if(e){this._contentElement&&this._contentElement.parentNode&&this._contentElement.parentNode.removeChild(this._contentElement);for(var t=e.document.head;t&&t.firstChild;)t.removeChild(t.firstChild)}},I.prototype.render=function(){var n=this,e=this.props,t=e.tools,t=void 0===t?[]:t,o=e.defaultEditMode,o=void 0===o?"iframe":o,r=e.preserveWhitespace,r=void 0===r?"full":r,i=e.style,e=e.className,a=(0,P.provideLocalizationService)(this),r=(this.view&&(v.editorPropsKey.getState(this.view.state).preserveWhitespace=r),this.props.contentStyle),t=(void 0===r&&void 0===(i||{}).height&&(r={height:"300px"}),t.map(function(e,t){return Array.isArray(e)?l.createElement(p.ButtonGroup,{key:t},e.map(n.renderTool,t)):n.renderTool(e,t)}));return l.createElement("div",{ref:function(e){return n._element=e},className:(0,s.classNames)("k-editor",e,{"k-editor-resizable":this.props.resizable}),dir:this.props.dir,style:i},0<t.length&&l.createElement(p.Toolbar,{className:"k-editor-toolbar",keyboardNavigation:this.props.keyboardNavigation},t),"iframe"===o?l.createElement("div",{className:"k-editor-content"},l.createElement("iframe",{onLoad:T.firefox?function(){n.initialize()}:void 0,ref:function(e){return n.iframe=e},frameBorder:"0",title:a.toLanguageString(E.keys.iframeTitle,E.messages[E.keys.iframeTitle]),style:r,className:"k-iframe"})):l.createElement("div",{style:r,className:"k-editor-content"},l.createElement("div",{ref:function(e){return n._contentElement=e},suppressContentEditableWarning:!0,role:"textbox","aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,"aria-label":this.props.ariaLabel})),this.renderDialog(h.EditorDialogs.InsertLinkDialog,w,"linkDialog"))},I.prototype.initialize=function(){var n,e,t,o,r,i,a,l=this,s=this.iframe&&this.iframe.contentWindow,s=(s&&(n=s.document,[m.defaultStyle,m.tablesStyles,"rtl"===this.props.dir?m.rtlStyles:void 0].forEach(function(e){var t;e&&((t=n.createElement("style")).appendChild(n.createTextNode(e)),n.head.appendChild(t))}),(s=n.createElement("meta")).setAttribute("charset","utf-8"),n.head.appendChild(s),this._contentElement=n.createElement("div"),n.body.appendChild(this._contentElement),this._contentElement.classList.add("k-content")),this._contentElement);s&&(t=this.props.preserveWhitespace,e=void 0===t?"full":t,t=[new d.Plugin({view:function(){return{update:l.updateTools}},key:new d.PluginKey("toolbar-tools-update-plugin")}),new d.Plugin({filterTransaction:this.filterTransaction,key:new d.PluginKey("onExecute-event-plugin")}),new d.Plugin({key:v.editorPropsKey,state:{init:function(){return{preserveWhitespace:e}},apply:function(e,t){return t}}}),(0,d.spacesFix)(),(0,d.caretColor)(),(0,d.history)(),(0,d.dropCursor)(),(0,d.gapCursor)(),(0,d.tableEditing)()],o=c(c({},y.EditorUtils.getShortcuts({types:{listItem:"list_item",hardBreak:"hard_break"},toolsSettings:{bold:k,italic:O,underline:_}})),{"Mod-k":function(){var e,t=l.state.linkDialog,n=l.view;return n&&(e=(n=n.state).selection.empty,n=(0,d.getMark)(n,n.schema.marks[w.mark]),t||e&&!n||l.setState({linkDialog:!0})),!t},"Alt-F10":function(){var e=null==(e=l.element)?void 0:e.querySelector(".k-toolbar");if(e){e=e.querySelector(p.toolbarButtons.join(","));if(e)return e.focus(),!0}return!1}}),i=void 0===(i=(r=this.props).defaultContent)?"":i,a=r.value,r=r.onMount,a=a&&"string"!=typeof a?a:y.EditorUtils.createDocument(new d.Schema({nodes:f.nodes,marks:f.marks}),a||i,{preserveWhitespace:e}),i={state:d.EditorState.create({plugins:u(u([],t,!0),[(0,d.keymap)(o),(0,d.keymap)(d.baseKeymap)],!1),doc:a}),transformPastedHTML:this.onPasteHtml,dispatchTransaction:this.dispatchTransaction,handleDOMEvents:{focus:this.onFocus,blur:this.onBlur,paste:this.onPaste}},a=this._view=r&&r.call(void 0,{plugins:t,shortcuts:o,target:this,viewProps:i,dom:s})||new d.EditorView({mount:s},i),this.setState({view:a}))},I.propTypes={defaultContent:a.string,value:a.oneOfType([a.object,a.string]),defaultEditMode:a.oneOf(["iframe","div"]),contentStyle:a.object,dir:a.string,className:a.string,ariaDescribedBy:a.string,ariaLabelledBy:a.string,ariaLabel:a.string,style:a.object,tools:a.arrayOf(a.any),keyboardNavigation:a.bool,resizable:a.bool,preserveWhitespace:a.oneOf([!0,!1,"full"]),onMount:a.func,onFocus:a.func,onBlur:a.func,onChange:a.func,onPasteHtml:a.func,onExecute:a.func},I);function I(e){var i=r.call(this,e)||this;return i.state={view:void 0,linkDialog:!1},i._element=null,i._contentElement=null,i.iframe=null,i.trOnChange=null,i.htmlOnChange=null,i.focus=function(){i.view&&i.view.focus()},i.renderDialog=function(e,t,n){return i.state[n]&&l.createElement(e,{view:i.view,settings:t,dir:i.props.dir,onClose:function(){var e;return i.setState(((e={})[n]=!1,e))}})},i.renderTool=function(e,t){var n=l.createElement(e,{view:i.view,dir:i.props.dir,key:t});return n.type===p.ToolbarSeparator?l.createElement(e,{key:t}):n},i.updateTools=function(e,t){i.setState({view:e})},i.filterTransaction=function(e,t){return!1!==(i.props.onExecute&&i.props.onExecute.call(void 0,{target:i,transaction:e,state:t}))},i.onPasteHtml=function(e){if(i.props.onPasteHtml&&i.pasteEvent){var t={target:i,pastedHtml:e,nativeEvent:i.pasteEvent},t=i.props.onPasteHtml.call(void 0,t);if(i.pasteEvent=void 0,"string"==typeof t)return t}return e},i.dispatchTransaction=function(e){var t,n,o,r=e.docChanged;i.props.onChange&&r&&(t=(i.trOnChange=e).doc,n=e.doc.type.schema,(o=i).props.onChange.call(void 0,{target:o,value:t,get html(){return o.htmlOnChange=y.EditorUtils.getHtml({doc:t,schema:n}),o.htmlOnChange},transaction:e,schema:n})),!i.view||void 0!==i.props.value&&r||i.view.updateState(i.view.state.apply(e))},i.onFocus=function(e,t){return i.props.onFocus&&i.props.onFocus.call(void 0,{target:i,nativeEvent:t}),!1},i.onBlur=function(e,t){return i.props.onBlur&&i.props.onBlur.call(void 0,{target:i,nativeEvent:t}),!1},i.onPaste=function(e,t){return i.props.onPasteHtml&&(i.pasteEvent=t),!1},void 0!==S?S.validatePackage(C.packageMetadata):(e="License activation failed for ".concat(C.packageMetadata.name,"\n"),e=(e+="The @progress/kendo-licensing script is not loaded.\n")+"See ".concat(C.packageMetadata.licensingDocsUrl," for more information.\n"),console.warn(e)),i}t.Editor=g,(0,P.registerForLocalization)(g)},3605:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.rtlStyles=t.tablesStyles=t.defaultStyle=void 0,t.defaultStyle='\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n word-wrap: break-word;\n padding: 8px;\n}\n\nbody > .k-content {\n outline: 0;\n height: 100%;\n white-space: pre-wrap;\n}\n\n.k-content > p {\n margin: 0 0 1em;\n}\n\n.k-content table {\n white-space: pre-wrap;\n}\n\n.k-content .k-text-selected, .k-content::selection {\n color: HighlightText;\n background-color: Highlight;\n}\n\n.k-content .k-text-highlighted {\n background-color: #bbdefb;\n}\n\n.k-content .ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.k-editor-resize-handles-wrapper {\n position: absolute;\n visibility: hidden;\n}\n\n.k-editor-resize-handle {\n position: absolute;\n visibility: visible;\n background-color: #fff;\n border: 1px solid #000;\n z-index: 100;\n width: 5px;\n height: 5px;\n}\n\n.k-editor-resize-handle.northwest {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n}\n\n.k-editor-resize-handle.north {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n}\n\n.k-editor-resize-handle.northeast {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n}\n\n.k-editor-resize-handle.southwest {\n left: 0;\n bottom: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n}\n\n.k-editor-resize-handle.south {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n}\n\n.k-editor-resize-handle.southeast {\n right: 0;\n bottom: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n}\n\n.k-editor-resize-handle.west {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n}\n\n.k-editor-resize-handle.east {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n}\n\n.k-editor-resize-wrap-element {\n display: inline-block;\n position: relative;\n}\n\n.ProseMirror .row-resize-handle {\n position: absolute;\n right: 0; left: 0; bottom: 0;\n transform: translate(0, 50%);\n height: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n}\n\n.ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n}\n\n.ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n}\n\n.ProseMirror.resize-cursor-vertical {\n cursor: sn-resize;\n cursor: row-resize;\n}\n\n.k-editor-resize-wrap-element table td p,\n.k-editor-resize-wrap-element table th p {\n margin: 0 auto;\n}\n',t.tablesStyles='\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n',t.rtlStyles="body { direction: rtl }"},2346:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=t.marks=void 0;var o=n(7403);Object.defineProperty(t,"marks",{enumerable:!0,get:function(){return o.marks}}),Object.defineProperty(t,"nodes",{enumerable:!0,get:function(){return o.nodes}})},4394:function(e,t,n){var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=(Object.defineProperty(t,"__esModule",{value:!0}),t.getShortcuts=void 0,n(7403)),n=n(2804),l=n.EditorToolsSettings.bold,s=n.EditorToolsSettings.underline,c=n.EditorToolsSettings.italic,u="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.getShortcuts=function(o){var e=(0,a.chainCommands)(a.exitCode,function(e,t){var n=o&&o.types&&o.types.hardBreak||"hard_break",n=e.schema.nodes[n];return t&&t(e.tr.replaceSelectionWith(n.create()).scrollIntoView()),!0}),n=o&&o.types&&o.types.listItem||"list_item",r=o&&o.toolsSettings||{};return i(i(i(i({"Mod-b":function(e,t){return(0,a.toggleInlineFormat)(r.bold||l)(e,t)},"Mod-i":function(e,t){return(0,a.toggleInlineFormat)(r.italic||c)(e,t)},"Mod-u":function(e,t){return(0,a.toggleInlineFormat)(r.underline||s)(e,t)},"Mod-z":a.undo,"Shift-Mod-z":a.redo},i({},u?{}:{"Mod-y":a.redo})),{Backspace:a.undoInputRule,"Mod-Enter":e,"Shift-Enter":e}),i({},u?{"Ctrl-Enter":e}:{})),{Enter:function(e,t){return(0,a.splitListItem)(e.schema.nodes[n])(e,t)},Tab:(0,a.goToNextCell)(1),"Shift-Tab":(0,a.goToNextCell)(-1)})}},2804:function(e,t,n){var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorToolsSettings=t.listsTypes=void 0;var i,a,l=n(3364),s=n(6233),n=n(7403);t.listsTypes=o({},n.indentRules.listsTypes),a={type:"button"},(i=t.EditorToolsSettings||(t.EditorToolsSettings={})).bold=o(o({},n.bold),{props:o({icon:"bold",svgIcon:s.boldIcon},a),messages:{title:l.keys.bold},commandName:"Bold"}),i.italic=o(o({},n.italic),{props:o({icon:"italic",svgIcon:s.italicIcon},a),messages:{title:l.keys.italic},commandName:"Italic"}),i.underline=o(o({},n.underline),{props:o({icon:"underline",svgIcon:s.underlineIcon},a),messages:{title:l.keys.underline},commandName:"Underline"}),i.strikethrough=o(o({},n.strikethrough),{props:o({icon:"strikethrough",svgIcon:s.strikethroughIcon},a),messages:{title:l.keys.strikethrough},commandName:"Strikethrough"}),i.subscript=o(o({},n.subscript),{props:o({icon:"subscript",svgIcon:s.subscriptIcon},a),messages:{title:l.keys.subscript},commandName:"Subscript"}),i.superscript=o(o({},n.superscript),{props:o({icon:"supscript",svgIcon:s.supscriptIcon},a),messages:{title:l.keys.superscript},commandName:"Superscript"}),i.link=o(o({},n.link),{props:o({icon:"link",svgIcon:s.linkIcon},a),messages:{insertHyperlink:l.keys.insertHyperlink,insertHyperlinkDialogTitle:l.keys.insertHyperlinkDialogTitle,insertHyperlinkAddress:l.keys.insertHyperlinkAddress,insertHyperlinkTitle:l.keys.insertHyperlinkTitle,insertHyperlinkNewWindow:l.keys.insertHyperlinkNewWindow,insertHyperlinkCancel:l.keys.insertHyperlinkCancel,insertHyperlinkInsert:l.keys.insertHyperlinkInsert},commandName:"Link"}),i.insertFile=o(o({},n.link),{props:o({icon:"file-add",svgIcon:s.fileAddIcon},a),messages:{insertHyperlink:l.keys.insertFile,insertHyperlinkDialogTitle:l.keys.insertFileDialogTitle,insertHyperlinkAddress:l.keys.insertFileAddress,insertHyperlinkTitle:l.keys.insertFileTitle,insertHyperlinkNewWindow:"",insertHyperlinkCancel:l.keys.insertFileCancel,insertHyperlinkInsert:l.keys.insertFileInsert},commandName:"InsertFile",linkTarget:!1}),i.insertTable={props:o({icon:"table-add",svgIcon:s.tableAddIcon},a),messages:{createTable:l.keys.createTable,createTableHint:l.keys.createTableHint},commandName:"InsertTable"},i.addRowBefore={props:o({icon:"table-row-insert-above",svgIcon:s.tableRowInsertAboveIcon},a),messages:{title:l.keys.addRowBefore},commandName:"AddRowBefore"},i.addRowAfter={props:o({icon:"table-row-insert-below",svgIcon:s.tableRowInsertBelowIcon},a),messages:{title:l.keys.addRowAfter},commandName:"AddRowAfter"},i.addColumnBefore={props:o({icon:"table-column-insert-left",svgIcon:s.tableColumnInsertLeftIcon},a),messages:{title:l.keys.addColumnBefore},commandName:"AddColumnBefore"},i.addColumnAfter={props:o({icon:"table-column-insert-right",svgIcon:s.tableColumnInsertRightIcon},a),messages:{title:l.keys.addColumnAfter},commandName:"AddColumnAfter"},i.deleteRow={props:o({icon:"table-row-delete",svgIcon:s.tableRowDeleteIcon},a),messages:{title:l.keys.deleteRow},commandName:"DeleteRow"},i.deleteColumn={props:o({icon:"table-column-delete",svgIcon:s.tableColumnDeleteIcon},a),messages:{title:l.keys.deleteColumn},commandName:"DeleteColumn"},i.deleteTable={props:o({icon:"table-delete",svgIcon:s.tableDeleteIcon},a),messages:{title:l.keys.deleteTable},commandName:"DeleteTable"},i.mergeCells={props:o({icon:"cells-merge",svgIcon:s.cellsMergeIcon},a),messages:{title:l.keys.mergeCells},commandName:"MergeCells"},i.splitCell={props:o({icon:"cell-split-horizontally",svgIcon:s.cellSplitHorizontallyIcon},a),messages:{title:l.keys.splitCell},commandName:"SplitCell"},i.print={props:o({icon:"print",svgIcon:s.printIcon},a),messages:{title:l.keys.print}},i.selectAll={props:o({icon:"select-all",svgIcon:s.selectAllIcon},a),messages:{title:l.keys.selectAll}},i.pdf={props:o({icon:"file-pdf",svgIcon:s.filePdfIcon},a),messages:{title:l.keys.pdf}},i.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},i.cleanFormatting={props:o({icon:"clear-css",svgIcon:s.clearCssIcon},a),messages:{title:l.keys.cleanFormatting},commandName:"CleanFormatting"},i.image={node:"image",props:o({icon:"image",svgIcon:s.imageIcon},a),messages:{insertImage:l.keys.insertImage,insertImageDialogTitle:l.keys.insertImageDialogTitle,insertImageAddress:l.keys.insertImageAddress,insertImageTitle:l.keys.insertImageTitle,insertImageAltText:l.keys.insertImageAltText,insertImageWidth:l.keys.insertImageWidth,insertImageHeight:l.keys.insertImageHeight,insertImageCancel:l.keys.insertImageCancel,insertImageInsert:l.keys.insertImageInsert},commandName:"InsertImage"},i.viewHtml={props:o({icon:"code",svgIcon:s.codeIcon},a),messages:{viewHtml:l.keys.viewHtml,viewHtmlDialogTitle:l.keys.viewHtmlDialogTitle,viewHtmlCancel:l.keys.viewHtmlCancel,viewHtmlUpdate:l.keys.viewHtmlUpdate},commandName:"SetContent"},i.findAndReplace={props:o({icon:"find",svgIcon:s.binocularsIcon},a),messages:{findReplaceToolTitle:l.keys.findReplaceToolTitle,findReplaceDialogTitle:l.keys.findReplaceDialogTitle,findReplaceTabFind:l.keys.findReplaceTabFind,findReplaceTabReplace:l.keys.findReplaceTabReplace,findReplaceFindWhat:l.keys.findReplaceFindWhat,findReplaceReplaceWith:l.keys.findReplaceReplaceWith,findReplaceReplace:l.keys.findReplaceReplace,findReplaceReplaceAll:l.keys.findReplaceReplaceAll,findReplaceMatchCase:l.keys.findReplaceMatchCase,findReplaceMatchWord:l.keys.findReplaceMatchWord,findReplaceMatchCyclic:l.keys.findReplaceMatchCyclic,findReplaceUseRegExp:l.keys.findReplaceUseRegExp,findReplacePrevMatch:l.keys.findReplacePrevMatch,findReplaceNextMatch:l.keys.findReplaceNextMatch,findReplaceMatches:l.keys.findReplaceMatches}},i.unlink=o(o({},n.link),{props:o({icon:"unlink",svgIcon:s.unlinkIcon},a),messages:{title:l.keys.unlink},commandName:"Unlink"}),i.undo={props:o({icon:"undo",svgIcon:s.undoIcon},a),messages:{title:l.keys.undo},commandName:"Undo"},i.redo={props:o({icon:"redo",svgIcon:s.redoIcon},a),messages:{title:l.keys.redo},commandName:"Redo"},i.fontSize={style:"font-size",defaultItem:{text:l.messages[l.keys.fontSize],value:"",localizationKey:l.keys.fontSize},items:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],commandName:"FontSize"},i.fontName={style:"font-family",defaultItem:{text:l.messages[l.keys.fontName],value:"",localizationKey:l.keys.fontName},items:[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],commandName:"FontName"},i.formatBlock={defaultItem:{text:l.messages[l.keys.format],value:"",localizationKey:l.keys.format},items:[{text:"Paragraph",value:"p",style:{display:"block",marginLeft:0}},{text:"Heading 1",value:"h1",style:{display:"block",fontSize:"2em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 2",value:"h2",style:{display:"block",fontSize:"1.5em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 3",value:"h3",style:{display:"block",fontSize:"1.17em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 4",value:"h4",style:{display:"block",fontSize:"1em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 5",value:"h5",style:{display:"block",fontSize:"0.83em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 6",value:"h6",style:{display:"block",fontSize:"0.67em",marginLeft:0,fontWeight:"bold"}}],commandName:"FormatBlock"},i.foreColor={style:"color",colorPickerProps:{icon:"foreground-color",svgIcon:s.foregroundColorIcon,view:"palette",title:l.keys.foregroundColor,ariaLabel:l.keys.foreColorLabel},commandName:"ForeColor"},i.backColor={style:"background-color",colorPickerProps:{icon:"droplet",svgIcon:s.dropletIcon,view:"palette",title:l.keys.backgroundColor,ariaLabel:l.keys.backColorLabel},commandName:"BackColor"},i.alignLeft={actions:r([],n.alignLeftRules,!0),props:o({icon:"align-left",svgIcon:s.alignLeftIcon},a),messages:{title:l.keys.alignLeft},commandName:"AlignLeft"},i.alignRight={actions:r([],n.alignRightRules,!0),props:o({icon:"align-right",svgIcon:s.alignRightIcon},a),messages:{title:l.keys.alignRight},commandName:"AlignRight"},i.alignCenter={actions:r([],n.alignCenterRules,!0),props:o({icon:"align-center",svgIcon:s.alignCenterIcon},a),messages:{title:l.keys.alignCenter},commandName:"AlignCenter"},i.alignJustify={actions:r([],n.alignJustifyRules,!0),props:o({icon:"align-justify",svgIcon:s.alignJustifyIcon},a),messages:{title:l.keys.alignJustify},commandName:"AlignJustify"},i.alignRemove={actions:r([],n.alignRemoveRules,!0),props:o({icon:"align-remove",svgIcon:s.alignRemoveIcon},a),messages:{},commandName:"AlignRemove"},i.indent={actions:n.indentRules.nodes,listsTypes:t.listsTypes,props:o({icon:"indent",svgIcon:s.indentIcon},a),messages:{title:l.keys.indent},commandName:"Indent"},i.outdent={actions:n.outdentRules.nodes,listsTypes:t.listsTypes,props:o({icon:"outdent",svgIcon:s.outdentIcon},a),messages:{title:l.keys.outdent},commandName:"Outdent"},i.orderedList={listType:t.listsTypes.orderedList,props:o({icon:"list-ordered",svgIcon:s.listOrderedIcon},a),messages:{title:l.keys.orderedList},commandName:"OrderedList",types:o({},t.listsTypes)},i.bulletList={listType:t.listsTypes.bulletList,props:o({icon:"list-unordered",svgIcon:s.listUnorderedIcon},a),messages:{title:l.keys.bulletList},commandName:"UnorderedList",types:o({},t.listsTypes)}},9953:function(e,t,n){var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},_=(Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplaceDialog=void 0,n(5954)),T=n(3536),S=n(8343),C=n(6561),E=n(4987),P=n(3364),a=n(2804),l=n(2226),u=n(7403),I=n(3811),x=n(4021),j=n(1448),N=n(6233),s=a.EditorToolsSettings.findAndReplace,n=(r=_.Component,i(p,r),Object.defineProperty(p.prototype,"settings",{get:function(){return this.props.settings||s},enumerable:!1,configurable:!0}),p.prototype.componentDidUpdate=function(e,t){var n,o=this.props.view,r=this.state,i=r.matches,i=void 0===i?[]:i,a=r.nextMatch;t.nextMatch!==a&&(t=(r=o.state).tr,n=[],i.forEach(function(e){n.push({from:e.from,to:e.to,attrs:{class:a&&e.eq(a)?"k-text-selected":"k-text-highlighted"}})}),t.setMeta(u.textHighlightKey,n),t.setSelection(a||u.TextSelection.create(r.doc,r.selection.from)),o.dispatch(t))},p.prototype.render=function(){var e=this,t=(0,E.provideLocalizationService)(this),n=this.settings.messages,o=n.findReplaceDialogTitle,r=n.findReplaceTabFind,i=n.findReplaceTabReplace,a=n.findReplaceFindWhat,l=n.findReplaceReplaceWith,s=n.findReplaceReplace,c=n.findReplaceReplaceAll,u=n.findReplaceMatchCase,p=n.findReplaceMatchWord,d=n.findReplaceMatchCyclic,f=n.findReplaceUseRegExp,m=n.findReplacePrevMatch,g=n.findReplaceNextMatch,n=n.findReplaceMatches,h=this.state,y=h.matchCase,v=h.matchWord,b=h.matchCyclic,w=h.useRegExp,k=h.searchText,O=h.replaceText,h=h.nextMatch,y=_.createElement("div",{className:"k-search-options"},_.createElement("span",null,_.createElement(x.Checkbox,{id:"match-case",checked:y,onChange:this.onMatchCaseChecked}),_.createElement("label",{htmlFor:"match-case",className:"k-checkbox-label"},t.toLanguageString(u,P.messages[u]))),_.createElement("span",null,_.createElement(x.Checkbox,{id:"match-whole",checked:v,onChange:this.onMatchWordChecked}),_.createElement("label",{htmlFor:"match-whole",className:"k-checkbox-label"},t.toLanguageString(p,P.messages[p]))),_.createElement("span",null,_.createElement(x.Checkbox,{id:"match-cyclic",checked:b,onChange:this.onMatchCyclicChecked}),_.createElement("label",{htmlFor:"match-cyclic",className:"k-checkbox-label"},t.toLanguageString(d,P.messages[d]))),_.createElement("span",null,_.createElement(x.Checkbox,{id:"regular-expression",checked:w,onChange:this.onUseRegExpChecked}),_.createElement("label",{htmlFor:"regular-expression",className:"k-checkbox-label"},t.toLanguageString(f,P.messages[f])))),u=_.createElement("div",{className:"k-matches-container"},_.createElement(T.Button,{fillMode:"flat",themeColor:"primary",onClick:this.onFindPrev},_.createElement(I.IconWrap,{name:"chevron-left",icon:N.chevronLeftIcon}),t.toLanguageString(m,P.messages[m])),_.createElement("span",null,this.matchesMessage(t.toLanguageString(n,P.messages[n]))),_.createElement(T.Button,{fillMode:"flat",themeColor:"primary",onClick:this.onFindNext},t.toLanguageString(g,P.messages[g]),_.createElement(I.IconWrap,{name:"chevron-right",icon:N.chevronRightIcon}))),v=_.createElement(j.Form,{render:function(){return _.createElement(j.FormElement,{horizontal:!0},_.createElement(j.FieldWrapper,null,_.createElement("label",{htmlFor:"findWhat",className:"k-form-label"},t.toLanguageString(a,P.messages[a])),_.createElement("div",{className:"k-form-field-wrap"},_.createElement(x.Input,{id:"findWhat",type:"text",value:k,onChange:e.onSearchChange,onFocus:e.onSearchChange,onKeyDown:e.onKeyDown,autoFocus:!0}))))}}),p=_.createElement(j.Form,{render:function(){return _.createElement(j.FormElement,{horizontal:!0},_.createElement(j.FieldWrapper,null,_.createElement("label",{htmlFor:"replaceWith",className:"k-form-label"},t.toLanguageString(l,P.messages[l])),_.createElement("div",{className:"k-form-field-wrap"},_.createElement(x.Input,{id:"replaceWith",type:"text",value:O,onChange:e.onReplaceChange}))))}});return _.createElement(S.Window,{title:t.toLanguageString(o,P.messages[o]),onClose:this.onClose,style:{width:"auto",height:"auto",userSelect:"none"},resizable:!1,minimizeButton:function(){return null},maximizeButton:function(){return null}},_.createElement(C.TabStrip,{selected:this.state.selectedTab,className:"k-editor-find-replace",onSelect:this.onTabSelect,animation:!1},_.createElement(C.TabStripTab,{title:t.toLanguageString(r,P.messages[r])},v,y,u),_.createElement(C.TabStripTab,{title:t.toLanguageString(i,P.messages[i])},v,p,_.createElement("div",{className:"k-actions k-hstack k-justify-content-end"},_.createElement(T.Button,{disabled:!Boolean(h),onClick:this.onReplace},t.toLanguageString(s,P.messages[s])),_.createElement(T.Button,{disabled:!Boolean(h),onClick:this.onReplaceAll},t.toLanguageString(c,P.messages[c]))),y,u)))},p);function p(e){var s=r.call(this,e)||this;return s.onTabSelect=function(e){s.setState({selectedTab:e.selected})},s.onClose=function(){var e=s.props.view,t=e.state,n=t.tr.setSelection(u.TextSelection.create(t.doc,t.selection.from,t.selection.to));e.updateState(t.apply(n)),e.focus(),s.props.onClose.call(void 0)},s.matchesMessage=function(e){var t,n=s.state.matches,o=s.state.nextMatch,r=0,i=0;return n&&o&&(r=-1===(t=n.findIndex(function(e){return e.eq(o)}))?n.length:t+1,i=n.length),(0,l.formatString)(e,r,i)},s.onFindNext=function(){s.onFind()},s.onFindPrev=function(){s.onFind(!0)},s.onFind=function(e){var t=s.props.view,n=s.state,o=n.searchText,r=n.matchCase,i=n.matchCyclic,o={text:o,matchWord:n.matchWord,matchCase:r,useRegExp:n.useRegExp,backward:e=void 0===e?!1:e,matchCyclic:i},r=(0,u.find)(t.state,o);r&&((n=t.state.tr.setSelection(r)).scrollIntoView(),t.updateState(t.state.apply(n)),s.setState({nextMatch:r}))},s.onReplace=function(){var e,t,n=s.props.view,o=n.state.selection,r=s.state.replaceText;o.empty||(t=(e=o.from)+r.length,(o=(0,u.replace)(o,r,n.state.tr)).setSelection(u.TextSelection.create(o.doc,e,t)),o.scrollIntoView(),n.dispatch(o),s.setNextState({}))},s.onReplaceAll=function(){var e=s.props.view,t=s.state,n=t.searchText,o=t.replaceText,r=t.matchCase,n={text:n,matchWord:t.matchWord,matchCase:r,useRegExp:t.useRegExp},r=(0,u.replaceAll)(e.state,o,n);r&&e.dispatch(r),s.setNextState({})},s.onKeyDown=function(e){13===e.keyCode?s.onFindNext():27===e.keyCode&&s.onClose()},s.onMatchCaseChecked=function(e){return s.setNextState({matchCase:e.value})},s.onMatchWordChecked=function(e){return s.setNextState({matchWord:e.value})},s.onMatchCyclicChecked=function(e){return s.setNextState({matchCyclic:e.value})},s.onUseRegExpChecked=function(e){return s.setNextState({useRegExp:e.value})},s.onSearchChange=function(e){return s.setNextState({searchText:e.target.value})},s.onReplaceChange=function(e){return s.setNextState({replaceText:e.target.value})},s.setNextState=function(e){var t,n,o,r,i,a,e=c(c(c({},s.state),e),{matches:void 0,nextMatch:void 0}),l=s.props.view;e.searchText?(a=e.searchText,t=e.matchWord,n=e.matchCase,o=e.useRegExp,r=e.matchCyclic,i=l.state.selection,l=(0,u.findAll)(l.state.doc,{text:a,matchWord:t,matchCase:n,useRegExp:o}),a=!s.state.searchText&&l[0]||l.find(function(e){return e.from>=i.from})||r&&l[0]||void 0,s.setState(c(c({},e),{matches:l,nextMatch:a}))):s.setState(e)},s.state={selectedTab:0,searchText:(0,u.selectedLineTextOnly)(e.view.state),replaceText:"",matchCase:!1,matchWord:!1,matchCyclic:!1,useRegExp:!1},s}t.FindAndReplaceDialog=n,(0,E.registerForLocalization)(n)},3856:function(e,t,n){var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},h=(Object.defineProperty(t,"__esModule",{value:!0}),t.InsertImageDialog=void 0,n(5954)),y=n(8343),v=n(3536),b=n(7403),w=n(4987),k=n(3364),O=n(4021),_=n(1448),n=(r=h.Component,i(a,r),a.prototype.render=function(){var t=this,e=this.props,n=e.view,o=e.settings,r=e.dir,e=e.render,i=o.messages,a=i.insertImageDialogTitle,l=i.insertImageAddress,s=i.insertImageTitle,c=i.insertImageAltText,u=i.insertImageWidth,p=i.insertImageHeight,d=i.insertImageCancel,i=i.insertImageInsert,f=(0,w.provideLocalizationService)(this),n=n&&n.state,m={},o=(n&&n.selection instanceof b.NodeSelection&&n.selection.node.type===n.schema.nodes[o.node]&&(m=n.selection.node.attrs),h.createElement(_.Form,{render:function(){return h.createElement(_.FormElement,{horizontal:!0},h.createElement(_.FieldWrapper,null,h.createElement("label",{htmlFor:"k-editor-image-url",className:"k-form-label"},f.toLanguageString(l,k.messages[l])),h.createElement("div",{className:"k-form-field-wrap"},h.createElement(O.Input,{type:"text",id:"k-editor-image-url",defaultValue:m.src,ref:function(e){return t.src=e},autoFocus:!0}))),h.createElement(_.FieldWrapper,null,h.createElement("label",{htmlFor:"k-editor-image-url",className:"k-form-label"},f.toLanguageString(c,k.messages[c])),h.createElement("div",{className:"k-form-field-wrap"},h.createElement(O.Input,{type:"text",id:"k-editor-image-alt",defaultValue:m.alt,ref:function(e){return t.altText=e}}))),h.createElement(_.FieldWrapper,null,h.createElement("label",{htmlFor:"k-editor-image-title",className:"k-form-label"},f.toLanguageString(s,k.messages[s])),h.createElement("div",{className:"k-form-field-wrap"},h.createElement(O.Input,{type:"text",id:"k-editor-image-title",defaultValue:m.title,ref:function(e){return t.title=e}}))),h.createElement(_.FieldWrapper,null,h.createElement("label",{htmlFor:"k-editor-image-width",className:"k-form-label"},f.toLanguageString(u,k.messages[u])),h.createElement("div",{className:"k-form-field-wrap"},h.createElement(O.Input,{type:"text",id:"k-editor-image-width",defaultValue:m.width,ref:function(e){return t.width=e}}))),h.createElement(_.FieldWrapper,null,h.createElement("label",{htmlFor:"k-editor-image-height",className:"k-form-label"},f.toLanguageString(p,k.messages[p])),h.createElement("div",{className:"k-form-field-wrap"},h.createElement(O.Input,{id:"k-editor-image-height",defaultValue:m.height,ref:function(e){return t.height=e}}))))}})),n=[h.createElement(v.Button,{onClick:this.onClose,dir:r,key:"cancel"},f.toLanguageString(d,k.messages[d])),h.createElement(v.Button,{onClick:this.onInsert,themeColor:"primary",dir:r,key:"insert"},f.toLanguageString(i,k.messages[i]))],d=h.createElement(y.Window,{initialWidth:500,initialHeight:350,className:"k-editor-window",title:f.toLanguageString(a,k.messages[a]),onClose:this.onClose,key:"dialog",style:"rtl"===r?{textAlign:"right"}:void 0,modal:!0,minimizeButton:function(){return null},maximizeButton:function(){return null},resizable:!1},o,h.createElement.apply(h,g([y.WindowActionsBar,null],n,!1)));return e?e(d,{content:o,actionButtons:n}):d},a);function a(){var i=null!==r&&r.apply(this,arguments)||this;return i.src=null,i.altText=null,i.title=null,i.width=null,i.height=null,i.onClose=function(){i.props.view.focus(),i.props.onClose()},i.onInsert=function(){var e=i.props,t=e.view,n=e.settings,e=t.state.schema.nodes[n.node],o={src:i.src?i.src.value:null,title:i.title?i.title.value:null,alt:i.altText?i.altText.value:null,width:i.width?i.width.value:null,height:i.height?i.height.value:null},r=Object.keys(o).filter(function(e){return null!==o[e]&&""!==o[e]}).reduce(function(e,t){return Object.assign(e,((e={})[t]=o[t],e))},{}),e=e.createAndFill(r);e&&(0,b.insertNode)(e,!0)(t.state,function(e){return t.dispatch(e.setMeta("commandName",n.commandName).setMeta("args",r))}),i.onClose()},i}t.InsertImageDialog=n,(0,w.registerForLocalization)(n)},4150:function(e,t,n){var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},m=(Object.defineProperty(t,"__esModule",{value:!0}),t.InsertLinkDialog=void 0,n(5954)),g=n(8343),h=n(3536),y=n(4021),v=n(1448),b=n(7403),w=n(4987),k=n(3364),n=(r=m.Component,i(a,r),a.prototype.render=function(){var t=this,e=this.props,n=e.view,o=e.settings,r=e.dir,e=e.render,i=(0,w.provideLocalizationService)(this),a=o.messages,l=a.insertHyperlinkDialogTitle,s=a.insertHyperlinkAddress,c=a.insertHyperlinkTitle,u=a.insertHyperlinkNewWindow,p=a.insertHyperlinkCancel,a=a.insertHyperlinkInsert,d=!!n&&(0,b.getMark)(n.state,n.state.schema.marks[o.mark]),n=m.createElement(v.Form,{render:function(){return m.createElement(v.FormElement,{horizontal:!0},m.createElement(v.FieldWrapper,null,m.createElement("label",{htmlFor:"k-editor-link-url",className:"k-form-label"},i.toLanguageString(s,k.messages[s])),m.createElement("div",{className:"k-form-field-wrap"},m.createElement(y.Input,{type:"text",id:"k-editor-link-url",ref:function(e){return t.href=e},defaultValue:d&&d.attrs.href||void 0,autoFocus:!0}))),m.createElement(v.FieldWrapper,null,m.createElement("label",{htmlFor:"k-editor-link-text",className:"k-form-label"},i.toLanguageString(c,k.messages[c])),m.createElement("div",{className:"k-form-field-wrap"},m.createElement(y.Input,{type:"text",id:"k-editor-link-text",ref:function(e){return t.title=e},defaultValue:d&&d.attrs.title||void 0}))),!1!==o.linkTarget&&m.createElement(v.FieldWrapper,null,m.createElement("label",{htmlFor:"k-editor-link-target",className:"k-checkbox-label"},m.createElement(y.Checkbox,{id:"k-editor-link-target",ref:function(e){return t.target=e},defaultChecked:d&&!!d.attrs.target||void 0}),i.toLanguageString(u,k.messages[u]))))}}),p=[m.createElement(h.Button,{onClick:this.onClose,dir:r,key:"cancel"},i.toLanguageString(p,k.messages[p])),m.createElement(h.Button,{onClick:this.onInsert,themeColor:"primary",dir:r,key:"insert"},i.toLanguageString(a,k.messages[a]))],a=m.createElement(g.Window,{initialWidth:450,initialHeight:250,className:"k-editor-window",title:i.toLanguageString(l,k.messages[l]),onClose:this.onClose,style:"rtl"===r?{textAlign:"right"}:void 0,modal:!0,minimizeButton:function(){return null},maximizeButton:function(){return null},resizable:!1},n,m.createElement.apply(m,f([g.WindowActionsBar,null],p,!1)));return e?e(a,{content:n,actionButtons:p}):a},a);function a(){var o=null!==r&&r.apply(this,arguments)||this;return o.href=null,o.title=null,o.target=null,o.onClose=function(){o.props.view.focus(),o.props.onClose()},o.onInsert=function(){var e=o.props.view,t=o.props.settings.mark,n={href:o.href?o.href.value:void 0,title:o.title?o.title.value:void 0,target:o.target&&o.target.element&&o.target.element.checked?"_blank":void 0};(0,b.applyLink)({mark:t,attrs:n},o.props.settings.commandName)(e.state,e.dispatch),o.onClose()},o}t.InsertLinkDialog=n,(0,w.registerForLocalization)(n)},3695:function(e,t,n){var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.EditorDialogs=void 0,n(4150)),l=n(3856),s=n(5391),n=n(9953),t=t.EditorDialogs||(t.EditorDialogs={});function c(){return null!==r&&r.apply(this,arguments)||this}r=a.InsertLinkDialog,i(c,r),t.InsertLinkDialog=c,u=l.InsertImageDialog,i(p,u);var u;function p(){return null!==u&&u.apply(this,arguments)||this}t.InsertImageDialog=p,d=s.ViewHtmlDialog,i(f,d);var d;function f(){return null!==d&&d.apply(this,arguments)||this}t.ViewHtmlDialog=f,m=n.FindAndReplaceDialog,i(g,m);var m;function g(){return null!==m&&m.apply(this,arguments)||this}t.FindAndReplaceDialog=g},5391:function(e,t,n){var o,i,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlDialog=void 0,n(5954)),c=n(8343),u=n(3536),p=n(7403),d=n(4987),f=n(3364),a=n(580),m=n(4021),n=(i=s.Component,r(g,i),g.prototype.render=function(){var e=this.props,t=e.view,n=e.settings,o=e.dir,e=e.render,r=(0,d.provideLocalizationService)(this),n=n.messages,i=n.viewHtmlDialogTitle,a=n.viewHtmlCancel,n=n.viewHtmlUpdate,t=s.createElement(m.TextArea,{className:"k-editor-textarea",defaultValue:(0,p.indentHtml)((0,p.getHtml)(t.state)),autoFocus:!0,autoSize:!1,ref:this.textAreaRef}),a=[s.createElement(u.Button,{onClick:this.onClose,dir:o,key:"cancel"},r.toLanguageString(a,f.messages[a])),s.createElement(u.Button,{onClick:this.onUpdate,themeColor:"primary",dir:o,key:"update"},r.toLanguageString(n,f.messages[n]))],n=s.createElement(c.Window,{className:"k-editor-window",title:r.toLanguageString(i,f.messages[i]),onClose:this.onClose,key:"dialog",style:"rtl"===o?{textAlign:"right"}:void 0,modal:!0,minimizeButton:function(){return null},maximizeButton:function(){return null},resizable:!0,initialHeight:400,initialWidth:500},t,s.createElement.apply(s,l([c.WindowActionsBar,null],a,!1)));return e?e(n,{content:t,actionButtons:a}):n},g);function g(){var r=null!==i&&i.apply(this,arguments)||this;return r.htmlArea=null,r.textAreaRef=function(e){e=(r.htmlArea=e)&&e.element.current;e&&(e.style.resize="none")},r.onUpdate=function(){var e=r.props,t=e.view,e=e.settings,n=(0,p.trimWhitespace)(r.htmlArea&&r.htmlArea.value||""),o=a.editorPropsKey.getState(t.state).preserveWhitespace;(0,p.setHtml)(n,e.commandName,{preserveWhitespace:o})(t.state,t.dispatch),r.onClose()},r.onClose=function(){r.props.view.focus(),r.props.onClose()},r}t.ViewHtmlDialog=n,(0,d.registerForLocalization)(n)},3364:(F,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.keys=e.messages=void 0;var t,n="editor.bold",o="editor.italic",r="editor.underline",i="editor.strikethrough",a="editor.subscript",l="editor.superscript",s="editor.hyperlink",c="editor.insertFile",u="editor.print",p="editor.selectAll",d="editor.cleanFormatting",f="editor.pdf",m="editor.foregroundColor",g="editor.backgroundColor",h="editor.createTable",y="editor.insertTableHint",v="editor.addRowBefore",b="editor.addRowAfter",w="editor.addColumnBefore",k="editor.addColumnAfter",O="editor.deleteRow",_="editor.deleteColumn",T="editor.deleteTable",S="editor.mergeCells",C="editor.splitCell",E="editor.hyperlink-dialog-title",P="editor.hyperlink-dialog-content-address",I="editor.hyperlink-dialog-content-title",x="editor.hyperlink-dialog-content-newwindow",j="editor.hyperlink-dialog-cancel",N="editor.hyperlink-dialog-insert",R="editor.insertfile-dialog-title",M="editor.insertfile-dialog-content-address",L="editor.insertfile-dialog-content-title",A="editor.insertfile-dialog-cancel",D="editor.insertfile-dialog-insert",z="editor.image",B="editor.image-dialog-title",H="editor.image-address",W="editor.image-title",U="editor.image-altText",K="editor.image-width",V="editor.image-height",G="editor.image-cancel",q="editor.image-insert",J="editor.viewHtml",Q="editor.viewHtml-dialog-title",$="editor.viewHtml-cancel",X="editor.viewHtml-update",Y="editor.unlink",Z="editor.undo",ee="editor.redo",te="editor.fontSize",ne="editor.fontName",oe="editor.format",re="editor.alignLeft",ie="editor.alignRight",ae="editor.alignCenter",le="editor.alignJustify",se="editor.indent",ce="editor.outdent",ue="editor.orderedList",pe="editor.bulletList",de="editor.findReplace-tool-title",fe="editor.findReplace-dialog-title",me="editor.findReplace-tab-find",ge="editor.findReplace-tab-replace",he="editor.findReplace-findWhat",ye="editor.findReplace-replaceWith",ve="editor.findReplace-replace",be="editor.findReplace-replaceAll",we="editor.findReplace-matchCase",ke="editor.findReplace-matchWord",Oe="editor.findReplace-matchCyclic",_e="editor.findReplace-useRegExp",Te="editor.findReplace-prevMatch",Se="editor.findReplace-nextMatch",Ce="editor.findReplace-matches",Ee="editor.iframeTitle",Pe="editorTools.foreColorLabel",Ie="editorTools.backColorLabel";e.messages=((t={})[n]="Bold",t[o]="Italic",t[r]="Underline",t[i]="Strikethrough",t[a]="Subscript",t[l]="Superscript",t[Y]="Remove hyperlink",t[Z]="Undo",t[ee]="Redo",t[te]="Font Size",t[ne]="Font Name",t[oe]="Format",t[re]="Align text left",t[ie]="Align text right",t[ae]="Center text",t[le]="Justify",t[se]="Indent",t[ce]="Outdent",t[ue]="Insert ordered list",t[pe]="Insert unordered list",t[u]="Print",t[p]="Select All",t[d]="Clean formatting",t[f]="Export as PDF",t[m]="Color",t[g]="Background color",t[h]="Create a table",t[y]="Create a {0} x {1} table",t[v]="Add row above",t[b]="Add row below",t[w]="Add column on the left",t[k]="Add column on the right",t[O]="Delete row",t[_]="Delete column",t[T]="Delete table",t[S]="Merge cells",t[C]="Split cell",t[s]="Insert hyperlink",t[E]="Insert hyperlink",t[P]="Web address",t[I]="Title",t[x]="Open link in new window",t[j]="Cancel",t[N]="Insert",t[c]="Insert file",t[R]="Insert file",t[M]="Web address",t[L]="Title",t[A]="Cancel",t[D]="Insert",t[z]="Insert image",t[B]="Insert image",t[H]="Web address",t[W]="Title",t[U]="Alternate text",t[K]="Width (px)",t[V]="Height (px)",t[G]="Cancel",t[q]="Insert",t[J]="View HTML",t[Q]="View HTML",t[$]="Cancel",t[X]="Update",t[de]="Find and Replace",t[fe]="Find and Replace",t[me]="Find",t[ge]="Replace",t[he]="Find What:",t[ye]="Replace With",t[ve]="Replace",t[be]="Replace All",t[we]="Match Case",t[ke]="Match whole word only",t[Oe]="Match cyclic (Wrap around)",t[_e]="Regular Expression",t[Te]="Prev",t[Se]="Next",t[Ce]="{0} of {1} matches",t[Ee]="Editable area. Press Alt + F10 for toolbar.",t[Pe]="Fore Color",t[Ie]="Back Color",t),e.keys={bold:n,italic:o,underline:r,strikethrough:i,subscript:a,superscript:l,unlink:Y,undo:Z,redo:ee,fontSize:te,fontName:ne,format:oe,alignLeft:re,alignRight:ie,alignCenter:ae,alignJustify:le,indent:se,outdent:ce,orderedList:ue,bulletList:pe,print:u,selectAll:p,cleanFormatting:d,pdf:f,foregroundColor:m,backgroundColor:g,createTable:h,createTableHint:y,addRowBefore:v,addRowAfter:b,addColumnBefore:w,addColumnAfter:k,deleteRow:O,deleteColumn:_,deleteTable:T,mergeCells:S,splitCell:C,insertHyperlink:s,insertHyperlinkDialogTitle:E,insertHyperlinkAddress:P,insertHyperlinkTitle:I,insertHyperlinkNewWindow:x,insertHyperlinkCancel:j,insertHyperlinkInsert:N,insertFile:c,insertFileDialogTitle:R,insertFileAddress:M,insertFileTitle:L,insertFileCancel:A,insertFileInsert:D,insertImage:z,insertImageDialogTitle:B,insertImageAddress:H,insertImageTitle:W,insertImageAltText:U,insertImageWidth:K,insertImageHeight:V,insertImageCancel:G,insertImageInsert:q,viewHtml:J,viewHtmlDialogTitle:Q,viewHtmlCancel:$,viewHtmlUpdate:X,findReplaceToolTitle:de,findReplaceDialogTitle:fe,findReplaceTabFind:me,findReplaceTabReplace:ge,findReplaceFindWhat:he,findReplaceReplaceWith:ye,findReplaceReplace:ve,findReplaceReplaceAll:be,findReplaceMatchCase:we,findReplaceMatchWord:ke,findReplaceMatchCyclic:Oe,findReplaceUseRegExp:_e,findReplacePrevMatch:Te,findReplaceNextMatch:Se,findReplaceMatches:Ce,iframeTitle:Ee,foreColorLabel:Pe,backColorLabel:Ie}},7363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-editor",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1685989426,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},7628:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},p=(Object.defineProperty(t,"__esModule",{value:!0}),t.createAlignTool=void 0,n(5954)),d=n(3536),i=n(2804),f=n(7403),m=n(2226),g=n(4987),h=n(3364),y=i.EditorToolsSettings.alignRemove;t.createAlignTool=function(s){e=p.Component,r(n,e),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=u(e,["view","render"]),o=t&&t.state,o=!!o&&(0,f.isAligned)(o,s.actions),r=(o?y:s).actions,i=(o?y:s).commandName,a=(0,g.provideLocalizationService)(this),l=s.messages.title,o=p.createElement(d.Button,c({onClick:function(){return t&&(0,f.alignBlocks)(r,i)(t.state,t.dispatch)},selected:o,togglable:!0},m.onDownPreventDefault,{title:a.toLanguageString(l,h.messages[l])},s.props,e));return n?n.call(void 0,o,{view:t}):o};var e,t=n;function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.registerForLocalization)(t),t}},8631:function(e,t,n){var s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=(Object.defineProperty(t,"__esModule",{value:!0}),t.ApplyColorTool=void 0,n(5954)),u=n(4021),p=n(7403),d=n(4987),f=n(3364);t.ApplyColorTool=function(e){var t=e.view,n=e.style,o=e.colorPickerProps,r=e.commandName,e=o.title,i=o.ariaLabel,a=o.view,l=void 0===a?"palette":a,a=c.useCallback(function(e){t&&((0,p.applyInlineStyle)({style:n,value:e.value},r)(t.state,t.dispatch),"palette"===l)&&t.focus()},[t,n,l,r]);return c.createElement(u.ColorPicker,s({onChange:a,onActiveColorClick:a},o,{title:e&&(0,d.useLocalization)().toLanguageString(e,f.messages[e]),ariaLabel:i&&(0,d.useLocalization)().toLanguageString(i,f.messages[i])}))}},3280:function(e,t,n){var s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.CleanFormatting=void 0,n(5954)),p=n(3536),d=n(4987),f=n(2226),m=n(3364),o=n(7403),r=n(2804),g=n(3811),h=r.EditorToolsSettings.cleanFormatting,y=(0,o.cleanFormatting)();t.CleanFormatting=function(e){var t=e.view,n=e.render,o=e.settings,r=void 0===o?h:o,o=c(e,["view","render","settings"]),i=r.messages.title,a=!t||!y(t.state),l=u.useCallback(function(){t&&y(t.state,function(e){e.setMeta("commandName",r.commandName),t.dispatch(e)})},[t]),l=u.createElement(p.Button,s({onClick:a?void 0:l,"aria-disabled":!!a||void 0,title:(0,d.useLocalization)().toLanguageString(i,m.messages[i])},f.onDownPreventDefault,r.props,o,{className:(0,g.classNames)(e.className,r.props.className,{"k-disabled":a})}));return n?n.call(void 0,l,{view:t}):l}},3037:function(e,t,n){var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},l=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplace=void 0,n(5954)),c=n(3536),u=n(9953),p=n(2226),d=n(3364),f=n(2804),m=n(4987),g=n(3811),h=f.EditorToolsSettings.findAndReplace,n=(r=s.Component,i(y,r),y.prototype.render=function(){var e=this.props,t=e.view,e=l(e,["view"]),n=h.props,o=(0,m.provideLocalizationService)(this),r=h.messages.findReplaceToolTitle,i=!t;return[s.createElement(c.Button,a({onClick:i?void 0:this.onOpen,"aria-disabled":!!i||void 0},p.onDownPreventDefault,{title:o.toLanguageString(r,d.messages[r]),key:"tool"},n,e,{className:(0,g.classNames)(e.className,n.className,{"k-disabled":i})})),this.state.showDialog&&t&&s.createElement(u.FindAndReplaceDialog,{view:t,onClose:this.onClose,dir:e.dir,key:"dialog"})]},y);function y(){var e=null!==r&&r.apply(this,arguments)||this;return e.state={showDialog:!1},e.onClose=function(){return e.setState({showDialog:!1})},e.onOpen=function(){return e.setState({showDialog:!0})},e}t.FindAndReplace=n,(0,m.registerForLocalization)(n)},1403:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},p=(Object.defineProperty(t,"__esModule",{value:!0}),t.FontStyleToolNS=void 0,n(5954)),d=n(445),f=n(7403),m=n(2226),g=n(4987),h=n(3364);(t.FontStyleToolNS||(t.FontStyleToolNS={})).createStyleDropDownList=function(s){e=p.Component,r(n,e),n.prototype.render=function(){var e=s.style,t=this.props,n=t.view,o=t.render,r=t.data,i=t.defaultItem,t=u(t,["view","render","data","defaultItem"]),r=r||s.items,i=i||s.defaultItem,e=n?(0,f.getInlineStyles)(n.state,{name:e,value:/^.+$/}):[],a=(0,g.provideLocalizationService)(this),l=(i&&i.localizationKey&&((i=c({},i)).text=i.localizationKey?a.toLanguageString(i.localizationKey,h.messages[i.localizationKey]):i.text),1===new Set(e).size?e[0]:null),a=p.createElement(d.DropDownList,c({value:l&&r.find(function(e){return e.value===l}),data:r,defaultItem:i,itemRender:m.itemRender,textField:"text",dataItemKey:"value",onChange:this.onChange,style:m.userSelectNone,leftRightKeysNavigation:!1,title:i.text},t));return o?o.call(void 0,a,{view:n}):a};var e,t=n;function n(){var r=null!==e&&e.apply(this,arguments)||this;return r.onChange=function(e){var t=e.target.value,n=r.props.view,o=s.style;n&&((0,f.applyInlineStyle)({style:o,value:t.value},s.commandName)(n.state,n.dispatch),o=e.syntheticEvent)&&"click"===o.type&&n.focus()},r}return(0,g.registerForLocalization)(t),t}},3493:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},p=(Object.defineProperty(t,"__esModule",{value:!0}),t.FormatBlockToolNS=void 0,n(5954)),d=n(445),f=n(7403),m=n(2226),g=n(4987),h=n(3364);(t.FormatBlockToolNS||(t.FormatBlockToolNS={})).createFormatBlockDropDownList=function(s){e=p.Component,r(n,e),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,o=e.data,r=e.defaultItem,e=u(e,["view","render","data","defaultItem"]),o=o||s.items,r=r||s.defaultItem,i=t&&t.state,i=i?(0,f.getBlockFormats)(i):[],a=(0,g.provideLocalizationService)(this),l=(r&&r.localizationKey&&((r=c({},r)).text=r.localizationKey?a.toLanguageString(r.localizationKey,h.messages[r.localizationKey]):r.text),1===new Set(i).size?i[0]:null),a=p.createElement(d.DropDownList,c({value:l&&o.find(function(e){return e.value===l}),onChange:this.onChange,itemRender:m.itemRender,data:o,defaultItem:r,textField:"text",dataItemKey:"value",style:m.userSelectNone,leftRightKeysNavigation:!1,title:r.text},e));return n?n.call(void 0,a,{view:t}):a};var e,t=n;function n(){var o=null!==e&&e.apply(this,arguments)||this;return o.onChange=function(e){var t=e.target.value,n=o.props.view;n&&(0,f.formatBlockElements)(t.value,s.commandName)(n.state,n.dispatch)&&(t=e.syntheticEvent)&&"click"===t.type&&n.focus()},o}return(0,g.registerForLocalization)(t),t}},3270:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryToolNS=void 0;var o=n(7403),r=n(8980);(n=t.HistoryToolNS||(t.HistoryToolNS={})).createUndoTool=function(e){return(0,r.createProseMirrorTool)(e,o.undo)},n.createRedoTool=function(e){return(0,r.createProseMirrorTool)(e,o.redo)}},9476:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=this&&this.__assign||function(){return(m=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},g=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},h=(Object.defineProperty(t,"__esModule",{value:!0}),t.IndentToolNS=void 0,n(5954)),y=n(3536),v=n(7403),b=n(2226),w=n(4987),k=n(3364),O=n(3811);(t.IndentToolNS||(t.IndentToolNS={})).createIndentTool=function(f){e=h.Component,r(n,e),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=g(e,["view","render"]),o=e.dir,r=t&&t.state,i=r&&r.schema.nodes,a=i&&i[f.listsTypes.listItem],l=f.actions,s=!!r&&!!a&&((0,v.isIndented)(r,l,o)||l.some(function(e){return i&&i[e.node]&&(0,v.hasNode)(r,i[e.node])}))&&!(0,v.hasNode)(r,a),c=!!r&&(0,v.canIndentAsListItem)(r,a),u=s||c,p=(0,w.provideLocalizationService)(this),d=f.messages.title,u=!u,p=h.createElement(y.Button,m({onClick:u?void 0:function(){t&&c&&a?(0,v.sinkListItem)(a)(t.state,t.dispatch):t&&s&&(0,v.indentBlocks)(l,f.commandName,o)(t.state,t.dispatch)},"aria-disabled":!!u||void 0,title:p.toLanguageString(d,k.messages[d])},b.onDownPreventDefault,f.props,e,{className:(0,O.classNames)(e.className,f.props.className,{"k-disabled":u})}));return n?n.call(void 0,p,{view:t}):p};var e,t=n;function n(){return null!==e&&e.apply(this,arguments)||this}return(0,w.registerForLocalization)(t),t}},5436:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.InlineFormatToolNS=void 0,n(5954)),p=n(3536),d=n(7403),f=n(2226),m=n(4987),g=n(3364);(t.InlineFormatToolNS||(t.InlineFormatToolNS={})).createInlineFormatTool=function(l){e=u.Component,r(n,e),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=c(e,["view","render"]),o=t&&t.state,r={mark:l.mark,altMarks:l.altMarks,altStyle:l.altStyle},i=(0,m.provideLocalizationService)(this),a=l.messages.title,i=u.createElement(p.Button,s({onClick:function(){return t&&(0,d.toggleInlineFormat)(r,o&&o.tr.setMeta("commandName",l.commandName))(t.state,t.dispatch)},selected:!!o&&(0,d.hasMark)(o,r),togglable:!0},f.onDownPreventDefault,{title:i.toLanguageString(a,g.messages[a])},l.props,e));return n?n.call(void 0,i,{view:t}):i};var e,t=n;function n(){return null!==e&&e.apply(this,arguments)||this}return(0,m.registerForLocalization)(t),t}},8210:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.createInsertImageTool=void 0,n(5954)),p=n(7403),d=n(3536),f=n(2226),m=n(3695),g=n(4987),h=n(3364),y=n(3811);t.createInsertImageTool=function(l){t=u.Component,r(n,t),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=c(e,["view","render"]),o=t&&t.state,r=o?o.schema.nodes[l.node]:void 0,i=(0,g.provideLocalizationService)(this),a=l.messages.insertImage,o=!r||!o||!(0,p.canInsert)(o,r),r=[u.createElement(d.Button,s({onClick:o?void 0:this.toggleDialog,"aria-disabled":!!o||void 0,key:"insertImage"},f.onDownPreventDefault,{title:i.toLanguageString(a,h.messages[a])},l.props,e,{className:(0,y.classNames)(e.className,l.props.className,{"k-disabled":o})})),this.state.openedDialog&&t&&u.createElement(m.EditorDialogs.InsertImageDialog,{key:"insertImageDialog",view:t,settings:l,dir:e.dir,onClose:this.toggleDialog})||null];return n?n.call(void 0,r,{view:t}):r};var t,e=n;function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={openedDialog:!1},e.toggleDialog=function(){e.setState({openedDialog:!e.state.openedDialog})},e}return(0,g.registerForLocalization)(e),e}},1493:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.LinkToolNS=void 0,n(5954)),p=n(3536),d=n(7403),f=n(2226),m=n(3695),g=n(4987),h=n(3364),y=n(3811);(t.LinkToolNS||(t.LinkToolNS={})).createLinkTool=function(l){t=u.Component,r(n,t),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=c(e,["view","render"]),o=t&&t.state,r=!o||o.selection.empty,o=o&&(0,d.getMark)(o,o.schema.marks[l.mark]),i=(0,g.provideLocalizationService)(this),a=l.messages.insertHyperlink,r=r&&!o,o=[u.createElement(p.Button,s({onClick:r?void 0:this.toggleDialog,"aria-disabled":!!r||void 0,key:"link"},f.onDownPreventDefault,{title:i.toLanguageString(a,h.messages[a])},l.props,e,{className:(0,y.classNames)(e.className,l.props.className,{"k-disabled":r})})),this.state.openedDialog&&t&&u.createElement(m.EditorDialogs.InsertLinkDialog,{key:"insertLinkDialog",settings:l,dir:e.dir,view:t,onClose:this.toggleDialog})||null];return n?n.call(void 0,o,{view:t}):o};var t,e=n;function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={openedDialog:!1},e.toggleDialog=function(){e.setState({openedDialog:!e.state.openedDialog})},e}return(0,g.registerForLocalization)(e),e}},5962:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTablePopupNS=t.InsertTableToolNS=void 0;var o=n(3895),r=(Object.defineProperty(t,"InsertTableToolNS",{enumerable:!0,get:function(){return o.InsertTableToolNS}}),n(5388));Object.defineProperty(t,"InsertTablePopupNS",{enumerable:!0,get:function(){return r.InsertTablePopupNS}})},5388:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTablePopupNS=void 0;var i,a=n(5954),l=n(1895),s=n(2556),c=n(2011);function u(){var n=null!==i&&i.apply(this,arguments)||this;return n.pointerdown=!1,n.onWindowDown=function(e){var t=n.props.anchor;t&&(t===e.target||t.firstElementChild===e.target)||(n.props.show&&!n.pointerdown&&n.props.onClose(),n.pointerdown=!1)},n.onPointerDown=function(){return n.pointerdown=!0},n}n=t.InsertTablePopupNS||(t.InsertTablePopupNS={}),i=a.Component,r(u,i),u.prototype.componentDidUpdate=function(e){e.show&&this.props.show&&this.props.onClose()},u.prototype.componentDidMount=function(){window.addEventListener("mousedown",this.onWindowDown),window.addEventListener("pointerdown",this.onWindowDown)},u.prototype.componentWillUnmount=function(){window.removeEventListener("mousedown",this.onWindowDown),window.removeEventListener("pointerdown",this.onWindowDown)},u.prototype.render=function(){var e=this.props,t=e.show,n=e.anchor,o=e.dir,r=e.rows,r=void 0===r?u.defaultProps.rows:r,e=e.columns,e=void 0===e?u.defaultProps.columns:e,i="rtl"===o?"right":"left";return a.createElement(s.Popup,{anchor:n,anchorAlign:{horizontal:i,vertical:"bottom"},popupAlign:{horizontal:i,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-state-border-up",show:t,style:"rtl"===o?{direction:"rtl"}:void 0},a.createElement(c.default,{rows:r,columns:e,createTableMessage:this.props.createTableMessage,createTableHintMessage:this.props.createTableHintMessage,onCellClick:this.props.onTableInsert,onDown:this.onPointerDown}))},u.propTypes={show:l.bool.isRequired,createTableMessage:l.string.isRequired,createTableHintMessage:l.string.isRequired,onClose:l.func.isRequired,onTableInsert:l.func.isRequired,anchor:l.any,rows:l.number,columns:l.number,dir:l.string},u.defaultProps={rows:6,columns:8},n.InsertTablePopup=u},2011:function(e,t,n){var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),n(5954)),c=n(2226),n=(r=s.Component,i(a,r),a.prototype.renderCell=function(e,t,n){var o=this,r=Math.floor(e/this.props.columns),i=e%this.props.columns;return s.createElement("span",{className:"k-ct-cell k-disabled"+(i<=n&&r<=t?" ".concat("k-selected"):""),onMouseEnter:function(){return o.setState({row:r,col:i})},onClick:function(){return o.props.onCellClick.call(void 0,r,i)},key:e})},a.prototype.render=function(){var e=this,t=[],n=this.props.columns*this.props.rows,o=this.state,r=o.row,i=o.col,o=this.props.onDown,a=this.props.createTableMessage;-1<i&&(a=(0,c.formatString)(this.props.createTableHintMessage,r+1,i+1));for(var l=0;l<n;l++)t.push(this.renderCell(l,r,i));return[s.createElement("div",{onMouseLeave:function(){return e.setState({row:-1,col:-1})},key:"cells",style:{borderColor:"inherit"},onPointerDown:o,onMouseDown:o},t),s.createElement("div",{className:"k-status",key:"status",onPointerDown:o,onMouseDown:o},a)]},a);function a(){var e=null!==r&&r.apply(this,arguments)||this;return e.state={row:-1,col:-1},e}t.default=n},3895:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},p=(Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTableToolNS=void 0,n(5954)),d=n(3536),f=n(2226),m=n(4987),g=n(3364),h=n(5388),y=n(7403),v=n(3811);(t.InsertTableToolNS||(t.InsertTableToolNS={})).createInsertTableTool=function(s){e=p.Component,r(n,e),n.prototype.render=function(){var t=this,e=this.props,n=e.view,o=e.render,e=u(e,["view","render"]),r=n&&n.state,i=(0,m.provideLocalizationService)(this),a=s.messages,l=a.createTable,a=a.createTableHint,l=i.toLanguageString(l,g.messages[l]),i=i.toLanguageString(a,g.messages[a]),a=!r||!(0,y.canInsert)(r,r.schema.nodes.table),r=[p.createElement(d.Button,c({onClick:a?void 0:this.togglePopup,"aria-disabled":!!a||void 0,ref:function(e){return t.button=e&&e.element},key:"InsertTable"},f.onDownPreventDefault,{title:l},s.props,e,{className:(0,v.classNames)(e.className,s.props.className,{"k-disabled":a})})),n&&!a&&p.createElement(h.InsertTablePopupNS.InsertTablePopup,{key:"insertTablePopup",createTableMessage:l,createTableHintMessage:i,dir:e.dir,anchor:this.button,show:this.state.openedPopup,onClose:this.closePopup,onTableInsert:this.onTableInsert})||null];return o?o.call(void 0,r,{view:n}):r};var e,t=n;function n(){var a=null!==e&&e.apply(this,arguments)||this;return a.state={openedPopup:!1},a.button=null,a.togglePopup=function(){a.setState({openedPopup:!a.state.openedPopup})},a.closePopup=function(){a.state.openedPopup&&a.togglePopup()},a.onTableInsert=function(e,t){var n,o,r,i=a.props.view;i&&(r=(o=i.state.schema.nodes).table,n=o.table_row,o=o.table_cell,(r=(0,y.createTable)({table:r,table_row:n,table_cell:o},e,t))&&(0,y.insertNode)(r,!0)(i.state,i.dispatch),i.focus(),a.closePopup())},a}return(0,m.registerForLocalization)(t),t}},3377:function(e,t,n){function d(e,t){var n=(o=e.selection).from,o=o.to,r=null;return e.doc.nodesBetween(n,o,function(e){return!(r=r||(e.type===t?e:null))}),r}var f=this&&this.__assign||function(){return(f=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},m=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},g=(Object.defineProperty(t,"__esModule",{value:!0}),t.ListTool=void 0,n(5954)),h=n(7403),y=n(3536),v=n(2804),b=n(4987),w=n(3364);t.ListTool=function(e){var t,n,o,r,i,a=!1,l=e.view,s=v.listsTypes,c=e.listType,u=(0,b.useLocalization)(),p=m([],e.items||[],!0);return l&&(n=(t=l.state)&&t.schema.nodes,o=n&&d(t,n[s.orderedList]),r=n&&d(t,n[s.bulletList]),a=Boolean(c===s.orderedList?o&&!r:!o&&r)),a&&(o||r)&&(i=(0,h.listStyle)((o||r).attrs),p=p.map(function(e,t){return f(f({},e),{selected:i?e.style===i:0===t})})),g.createElement("span",{onMouseDown:function(e){e.preventDefault()}},g.createElement(y.SplitButton,{textField:"text",items:p,icon:e.icon,svgIcon:e.svgIcon,onButtonClick:function(e){l&&((0,h.toggleList)(l.state,l.dispatch,l,f(f({listType:c},s),{listAttrs:{}}),"InsertList"),l.focus())},onItemClick:function(e){var t,n;l&&(t=e.item.style?{style:"list-style-type: "+e.item.style+";"}:{},(n=o||r)&&(0,h.listStyle)(n.attrs)!==e.item.style?(n=l.state.selection.$head.posAtIndex(0,-2)-1,l.dispatch(l.state.tr.setNodeMarkup(n,l.state.schema.nodes[c],t))):(0,h.toggleList)(l.state,l.dispatch,l,f(f({listType:c},s),{listAttrs:t}),"InsertList"),l.focus())},buttonClass:a?"k-selected":void 0,title:void 0!==e.title?e.title:u.toLanguageString(e.titleKey,w.messages[e.titleKey])}))}},7441:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=this&&this.__assign||function(){return(d=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},f=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},m=(Object.defineProperty(t,"__esModule",{value:!0}),t.ListToolNS=void 0,n(5954)),g=n(3536),h=n(7403),y=n(2226),v=n(4987),b=n(3364);(t.ListToolNS||(t.ListToolNS={})).createListTool=function(p){e=m.Component,r(n,e),n.prototype.render=function(){var e,t,n=this.props,o=n.view,r=n.render,n=f(n,["view","render"]),i=!1,a=(0,v.provideLocalizationService)(this),l=p.messages.title,s=p.types,c=p.listType,u=(o&&(u=(t=o.state).schema.nodes,e=(0,h.hasNode)(t,u[s.orderedList]),t=(0,h.hasNode)(t,u[s.bulletList]),i=c===s.orderedList?e&&!t:!e&&t),m.createElement(g.Button,d({onClick:function(){return o&&(0,h.toggleList)(o.state,o.dispatch,o,d({listType:c},s),p.commandName)},togglable:!0,selected:i,title:a.toLanguageString(l,b.messages[l])},y.onDownPreventDefault,p.props,n)));return r?r.call(void 0,u,{view:o}):u};var e,t=n;function n(){return null!==e&&e.apply(this,arguments)||this}return(0,v.registerForLocalization)(t),t}},8671:function(F,e,t){var A,n,o=this&&this.__extends||(A=function(e,t){return(A=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},i=(Object.defineProperty(e,"__esModule",{value:!0}),e.EditorTools=void 0,t(5954)),a=t(2804),D=t(5962),z=t(7628),B=t(1403),H=t(8631),W=t(3493),U=t(3270),K=t(9476),V=t(5436),G=t(8210),q=t(1493),J=t(7441),Q=t(4997),l=t(3350),$=t(8389),X=t(7306),Y=t(219),Z=t(3061),ee=t(9460),te=t(3280),ne=t(3037),oe=t(3377),s=t(6233),t=e.EditorTools||(e.EditorTools={});function c(e){return z.createAlignTool(e)}function re(){return null!==n&&n.apply(this,arguments)||this}t.createAlignTool=c,n=c(a.EditorToolsSettings.alignLeft),o(re,n),t.AlignLeft=re,u=c(a.EditorToolsSettings.alignRight),o(ie,u);var u;function ie(){return null!==u&&u.apply(this,arguments)||this}t.AlignRight=ie,p=c(a.EditorToolsSettings.alignCenter),o(ae,p);var p;function ae(){return null!==p&&p.apply(this,arguments)||this}t.AlignCenter=ae,d=c(a.EditorToolsSettings.alignJustify),o(le,d);var d;function le(){return null!==d&&d.apply(this,arguments)||this}function se(e){return D.InsertTableToolNS.createInsertTableTool(e)}t.AlignJustify=le,t.createInsertTableTool=se,f=se(a.EditorToolsSettings.insertTable),o(ce,f);var f;function ce(){return null!==f&&f.apply(this,arguments)||this}t.InsertTable=ce,m=D.InsertTablePopupNS.InsertTablePopup,o(ue,m);var m;function ue(){return null!==m&&m.apply(this,arguments)||this}function pe(e){return B.FontStyleToolNS.createStyleDropDownList(e)}t.InsertTablePopup=ue,t.createStyleDropDownList=pe,g=pe(a.EditorToolsSettings.fontSize),o(de,g);var g;function de(){return null!==g&&g.apply(this,arguments)||this}t.FontSize=de,h=pe(a.EditorToolsSettings.fontName),o(fe,h);var h;function fe(){return null!==h&&h.apply(this,arguments)||this}function me(e){return W.FormatBlockToolNS.createFormatBlockDropDownList(e)}t.FontName=fe,t.ForeColor=function(e){return i.createElement(H.ApplyColorTool,r({},a.EditorToolsSettings.foreColor,e))},t.BackColor=function(e){return i.createElement(H.ApplyColorTool,r({},a.EditorToolsSettings.backColor,e))},t.createFormatBlockDropDownList=me,y=me(a.EditorToolsSettings.formatBlock),o(ge,y);var y;function ge(){return null!==y&&y.apply(this,arguments)||this}function he(e){return U.HistoryToolNS.createUndoTool(e)}function ye(e){return U.HistoryToolNS.createRedoTool(e)}t.FormatBlock=ge,t.createUndoTool=he,t.createRedoTool=ye,v=he(a.EditorToolsSettings.undo),o(ve,v);var v;function ve(){return null!==v&&v.apply(this,arguments)||this}t.Undo=ve,b=ye(a.EditorToolsSettings.redo),o(be,b);var b;function be(){return null!==b&&b.apply(this,arguments)||this}function we(e){return K.IndentToolNS.createIndentTool(e)}t.Redo=be,t.createIndentTool=we,w=we(a.EditorToolsSettings.indent),o(ke,w);var w;function ke(){return null!==w&&w.apply(this,arguments)||this}function k(e){return V.InlineFormatToolNS.createInlineFormatTool(e)}t.Indent=ke,t.createInlineFormatTool=k,O=k(a.EditorToolsSettings.bold),o(Oe,O);var O;function Oe(){return null!==O&&O.apply(this,arguments)||this}t.Bold=Oe,_=k(a.EditorToolsSettings.italic),o(_e,_);var _;function _e(){return null!==_&&_.apply(this,arguments)||this}t.Italic=_e,T=k(a.EditorToolsSettings.underline),o(Te,T);var T;function Te(){return null!==T&&T.apply(this,arguments)||this}t.Underline=Te,S=k(a.EditorToolsSettings.strikethrough),o(Se,S);var S;function Se(){return null!==S&&S.apply(this,arguments)||this}t.Strikethrough=Se,C=k(a.EditorToolsSettings.subscript),o(Ce,C);var C;function Ce(){return null!==C&&C.apply(this,arguments)||this}t.Subscript=Ce,E=k(a.EditorToolsSettings.superscript),o(Ee,E);var E;function Ee(){return null!==E&&E.apply(this,arguments)||this}function Pe(e){return G.createInsertImageTool(e)}t.Superscript=Ee,t.createInsertImageTool=Pe,P=Pe(a.EditorToolsSettings.image),o(Ie,P);var P;function Ie(){return null!==P&&P.apply(this,arguments)||this}function xe(e){return q.LinkToolNS.createLinkTool(e)}t.InsertImage=Ie,t.createLinkTool=xe,I=xe(a.EditorToolsSettings.link),o(je,I);var I;function je(){return null!==I&&I.apply(this,arguments)||this}t.Link=je,x=xe(a.EditorToolsSettings.insertFile),o(Ne,x);var x;function Ne(){return null!==x&&x.apply(this,arguments)||this}function Re(e){return J.ListToolNS.createListTool(e)}t.InsertFile=Ne,t.createListTool=Re,j=Re(a.EditorToolsSettings.orderedList),o(Me,j);var j;function Me(){return null!==j&&j.apply(this,arguments)||this}t.OrderedList=Me,N=Re(a.EditorToolsSettings.bulletList),o(Le,N);var N;function Le(){return null!==N&&N.apply(this,arguments)||this}function Fe(e){return Q.OutdentToolNS.createOutdentTool(e)}t.UnorderedList=Le,t.BulletedList=function(e){var t=[{icon:"list-unordered",svgIcon:s.listUnorderedIcon,text:"Disc",style:"disc"},{icon:"list-unordered-outline",svgIcon:s.listUnorderedOutlineIcon,text:"Circle",style:"circle"},{icon:"list-unordered-square",svgIcon:s.listUnorderedSquareIcon,text:"Square",style:"square"}];return i.createElement(oe.ListTool,r({listType:a.EditorToolsSettings.bulletList.listType,items:t,icon:"list-unordered",svgIcon:s.listUnorderedIcon,titleKey:a.EditorToolsSettings.bulletList.messages.title},e))},t.NumberedList=function(e){var t=[{icon:"list-ordered",svgIcon:s.listOrderedIcon,text:"Decimal"},{icon:"list-roman-upper",svgIcon:s.listRomanUpperIcon,text:"Upper roman",style:"upper-roman"},{icon:"list-roman-lower",svgIcon:s.listRomanLowerIcon,text:"Lower roman",style:"lower-roman"},{icon:"list-latin-big",svgIcon:s.listLatinBigIcon,text:"Upper latin",style:"upper-latin"},{icon:"list-latin-small",svgIcon:s.listLatinSmallIcon,text:"Lower latin",style:"lower-latin"}];return i.createElement(oe.ListTool,r({listType:a.EditorToolsSettings.orderedList.listType,items:t,icon:"list-ordered",svgIcon:s.listOrderedIcon,titleKey:a.EditorToolsSettings.orderedList.messages.title},e))},t.createOutdentTool=Fe,R=Fe(a.EditorToolsSettings.outdent),o(Ae,R);var R;function Ae(){return null!==R&&R.apply(this,arguments)||this}function De(e){return l.TableEditNS.createAddRowBeforeTool(e)}function ze(e){return l.TableEditNS.createAddRowAfterTool(e)}function Be(e){return l.TableEditNS.createAddColumnBeforeTool(e)}function He(e){return l.TableEditNS.createAddColumnAfterTool(e)}function We(e){return l.TableEditNS.createDeleteRowTool(e)}function Ue(e){return l.TableEditNS.createDeleteColumnTool(e)}function Ke(e){return l.TableEditNS.createDeleteTableTool(e)}function Ve(e){return l.TableEditNS.createMergeCellsTool(e)}function Ge(e){return l.TableEditNS.createSplitCellTool(e)}t.Outdent=Ae,t.Print=function(e){return i.createElement(Y.Print,r({},e))},t.Pdf=function(e){return i.createElement(Z.Pdf,r({},e))},t.SelectAll=function(e){return i.createElement(ee.SelectAll,r({},e))},t.CleanFormatting=function(e){return i.createElement(te.CleanFormatting,r({},e))},t.createAddRowBeforeTool=De,t.createAddRowAfterTool=ze,t.createAddColumnBeforeTool=Be,t.createAddColumnAfterTool=He,t.createDeleteRowTool=We,t.createDeleteColumnTool=Ue,t.createDeleteTableTool=Ke,t.createMergeCellsTool=Ve,t.createSplitCellTool=Ge,M=De(a.EditorToolsSettings.addRowBefore),o(qe,M);var M;function qe(){return null!==M&&M.apply(this,arguments)||this}t.AddRowBefore=qe,L=ze(a.EditorToolsSettings.addRowAfter),o(Je,L);var L;function Je(){return null!==L&&L.apply(this,arguments)||this}t.AddRowAfter=Je,Qe=Be(a.EditorToolsSettings.addColumnBefore),o($e,Qe);var Qe;function $e(){return null!==Qe&&Qe.apply(this,arguments)||this}t.AddColumnBefore=$e,Xe=He(a.EditorToolsSettings.addColumnAfter),o(Ye,Xe);var Xe;function Ye(){return null!==Xe&&Xe.apply(this,arguments)||this}t.AddColumnAfter=Ye,Ze=We(a.EditorToolsSettings.deleteRow),o(et,Ze);var Ze;function et(){return null!==Ze&&Ze.apply(this,arguments)||this}t.DeleteRow=et,tt=Ue(a.EditorToolsSettings.deleteColumn),o(nt,tt);var tt;function nt(){return null!==tt&&tt.apply(this,arguments)||this}t.DeleteColumn=nt,ot=Ke(a.EditorToolsSettings.deleteTable),o(rt,ot);var ot;function rt(){return null!==ot&&ot.apply(this,arguments)||this}t.DeleteTable=rt,it=Ve(a.EditorToolsSettings.mergeCells),o(at,it);var it;function at(){return null!==it&&it.apply(this,arguments)||this}t.MergeCells=at,lt=Ge(a.EditorToolsSettings.splitCell),o(st,lt);var lt;function st(){return null!==lt&<.apply(this,arguments)||this}function ct(e){return $.UnlinkToolNS.createUnlinkTool(e)}t.SplitCell=st,t.createUnlinkTool=ct,ut=ct(a.EditorToolsSettings.unlink),o(pt,ut);var ut;function pt(){return null!==ut&&ut.apply(this,arguments)||this}function dt(e){return X.ViewHtmlToolNS.createViewHtmlTool(e)}t.Unlink=pt,t.createViewHtmlTool=dt,ft=dt(a.EditorToolsSettings.viewHtml),o(mt,ft);var ft;function mt(){return null!==ft&&ft.apply(this,arguments)||this}t.ViewHtml=mt,gt=ne.FindAndReplace,o(ht,gt);var gt;function ht(){return null!==gt&>.apply(this,arguments)||this}t.FindAndReplace=ht},4997:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=this&&this.__assign||function(){return(p=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},d=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},f=(Object.defineProperty(t,"__esModule",{value:!0}),t.OutdentToolNS=void 0,n(5954)),m=n(3536),g=n(7403),h=n(2226),y=n(4987),v=n(3364),b=n(3811);(t.OutdentToolNS||(t.OutdentToolNS={})).createOutdentTool=function(u){e=f.Component,r(n,e),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=d(e,["view","render"]),o=t&&t.state,r=e.dir,i=!!o&&(0,g.isIndented)(o,u.actions,r),a=o&&o.schema.nodes[u.listsTypes.listItem],l=!!o&&(0,g.canOutdentAsListItem)(o,{nodes:u.actions,listsTypes:u.listsTypes}),o=i||l,s=(0,y.provideLocalizationService)(this),c=u.messages.title,o=!o,s=f.createElement(m.Button,p({onClick:o?void 0:function(){t&&l&&a?(0,g.liftListItem)(a)(t.state,t.dispatch):t&&i&&(0,g.indentBlocks)(u.actions,u.commandName,r)(t.state,t.dispatch)},"aria-disabled":!!o||void 0,title:s.toLanguageString(c,v.messages[c])},h.onDownPreventDefault,u.props,e,{className:(0,b.classNames)(e.className,u.props.className,{"k-disabled":o})}));return n?n.call(void 0,s,{view:t}):s};var e,t=n;function n(){return null!==e&&e.apply(this,arguments)||this}return(0,y.registerForLocalization)(t),t}},3061:function(e,t,n){var s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.Pdf=void 0,n(5954)),p=n(3536),d=n(4987),f=n(8324),m=n(2226),g=n(3364),n=n(2804),h=n.EditorToolsSettings.pdf,y=n.EditorToolsSettings.savePdfOptions;t.Pdf=function(e){var t=e.view,n=e.render,o=e.settings,o=void 0===o?h:o,r=e.savePdfOptions,i=e.savePdfCallback,e=c(e,["view","render","settings","savePdfOptions","savePdfCallback"]),a=o.messages.title,l=u.useCallback(function(){t&&(0,f.savePDF)(t.dom,s(s({},y),r||{}),i)},[t,r,i]),l=u.createElement(p.Button,s({onClick:l,title:(0,d.useLocalization)().toLanguageString(a,g.messages[a])},m.onDownPreventDefault,o.props,e));return n?n.call(void 0,l,{view:t}):l}},219:function(e,t,n){var s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.Print=void 0,n(5954)),p=n(3536),d=n(4987),f=n(2226),m=n(3364),o=n(2804),g=n(3811),h=o.EditorToolsSettings.print;t.Print=function(e){var t=e.view,n=e.render,o=e.settings,o=void 0===o?h:o,e=c(e,["view","render","settings"]),r=t&&t.dom,r=r&&r.ownerDocument,i=r&&r.defaultView,r=o.messages.title,a=!i||i===window,l=u.useCallback(function(){i&&i.print()},[i]),l=u.createElement(p.Button,s({onClick:a?void 0:l,"aria-disabled":!!a||void 0,title:(0,d.useLocalization)().toLanguageString(r,m.messages[r])},f.onDownPreventDefault,o.props,e,{className:(0,g.classNames)(e.className,o.props.className,{"k-disabled":a})}));return n?n.call(void 0,l,{view:t}):l}},8980:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.createProseMirrorTool=void 0,n(5954)),p=n(3536),d=n(2226),f=n(4987),m=n(3364),g=n(3811);t.createProseMirrorTool=function(a,l){e=u.Component,r(n,e),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=c(e,["view","render"]),o=(0,f.provideLocalizationService)(this),r=a.messages.title,i=t&&t.state,i=!!i&&!l(i),o=u.createElement(p.Button,s({onClick:i?void 0:function(){return t&&l(t.state,function(e){return t.dispatch(e.setMeta("commandName",a.commandName))})},"aria-disabled":!!i||void 0},d.onDownPreventDefault,{title:o.toLanguageString(r,m.messages[r])},a.props,e,{className:(0,g.classNames)(e.className,a.props.className,{"k-disabled":i})}));return n?n.call(void 0,o,{view:t}):o};var e,t=n;function n(){return null!==e&&e.apply(this,arguments)||this}return(0,f.registerForLocalization)(t),t}},9460:function(e,t,n){var a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},l=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.SelectAll=void 0,n(5954)),c=n(3536),u=n(4987),p=n(2226),d=n(3364),f=n(7403),m=n(2804).EditorToolsSettings.selectAll;t.SelectAll=function(e){var t=e.view,n=e.render,o=e.settings,o=void 0===o?m:o,e=l(e,["view","render","settings"]),r=o.messages.title,i=s.useCallback(function(){t&&((0,f.selectAll)(t.state,t.dispatch),t.focus())},[t]),i=s.createElement(c.Button,a({onClick:i,title:(0,u.useLocalization)().toLanguageString(r,d.messages[r])},p.onDownPreventDefault,o.props,e));return n?n.call(void 0,i,{view:t}):i}},3350:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TableEditNS=void 0;function o(e,t){var n=(0,i.deleteColumn)(e,t);if(n&&!t){t=(0,i.selectionCell)(e),e=t&&t.node(t.depth);if(e&&1===e.content.childCount)return!1}return n}function r(e,t){var n=(0,i.deleteRow)(e,t);if(n&&!t){t=(0,i.selectionCell)(e),e=t&&t.node(t.depth-1);if(e&&1===e.content.childCount)return!1}return n}var i=n(7403),a=n(8980);(n=t.TableEditNS||(t.TableEditNS={})).createAddRowBeforeTool=function(e){return(0,a.createProseMirrorTool)(e,i.addRowBefore)},n.createAddRowAfterTool=function(e){return(0,a.createProseMirrorTool)(e,i.addRowAfter)},n.createAddColumnBeforeTool=function(e){return(0,a.createProseMirrorTool)(e,i.addColumnBefore)},n.createAddColumnAfterTool=function(e){return(0,a.createProseMirrorTool)(e,i.addColumnAfter)},n.createDeleteRowTool=function(e){return(0,a.createProseMirrorTool)(e,r)},n.createDeleteColumnTool=function(e){return(0,a.createProseMirrorTool)(e,o)},n.createDeleteTableTool=function(e){return(0,a.createProseMirrorTool)(e,i.deleteTable)},n.createMergeCellsTool=function(e){return(0,a.createProseMirrorTool)(e,i.mergeCells)},n.createSplitCellTool=function(e){return(0,a.createProseMirrorTool)(e,i.splitCell)}},8389:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=(Object.defineProperty(t,"__esModule",{value:!0}),t.UnlinkToolNS=void 0,n(5954)),p=n(3536),d=n(7403),f=n(2226),m=n(4987),g=n(3364),h=n(3811);(t.UnlinkToolNS||(t.UnlinkToolNS={})).createUnlinkTool=function(l){e=u.Component,r(n,e),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=c(e,["view","render"]),o={mark:l.mark},r=!!t&&(0,d.hasMark)(t.state,o),i=(0,m.provideLocalizationService)(this),a=l.messages.title,r=!r,i=u.createElement(p.Button,s({onClick:r?void 0:function(){return t&&(0,d.removeLink)(o,t.state.tr.setMeta("commandName",l.commandName))(t.state,t.dispatch)},"aria-disabled":!!r||void 0},f.onDownPreventDefault,{title:i.toLanguageString(a,g.messages[a])},l.props,e,{className:(0,h.classNames)(e.className,l.props.className,{"k-disabled":r})}));return n?n.call(void 0,i,{view:t}):i};var e,t=n;function n(){return null!==e&&e.apply(this,arguments)||this}return(0,m.registerForLocalization)(t),t}},2226:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.userSelectNone=t.itemRender=t.formatString=t.onDownPreventDefault=void 0;var o=n(5954);t.onDownPreventDefault={onMouseDown:function(e){return e.preventDefault()},onPointerDown:function(e){return e.preventDefault()}},t.userSelectNone={userSelect:"none"},t.formatString=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return e.forEach(function(e,t){n=n.replace("{"+t+"}",String(e))}),n},t.itemRender=function(e,t){return t.dataItem.style?o.cloneElement(e,e.props,o.createElement("span",{style:t.dataItem.style},e.props.children)):e}},7306:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},l=this&&this.__rest||function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlToolNS=void 0,n(5954)),c=n(3536),u=n(2226),p=n(3695),d=n(4987),f=n(3364);(t.ViewHtmlToolNS||(t.ViewHtmlToolNS={})).createViewHtmlTool=function(i){t=s.Component,r(n,t),n.prototype.render=function(){var e=this.props,t=e.view,n=e.render,e=l(e,["view","render"]),o=(0,d.provideLocalizationService)(this),r=i.messages.viewHtml,o=[s.createElement(c.Button,a({onClick:this.toggleDialog,key:"viewHtml"},u.onDownPreventDefault,{title:o.toLanguageString(r,f.messages[r])},i.props,e)),this.state.openedDialog&&t&&s.createElement(p.EditorDialogs.ViewHtmlDialog,{key:"viewHtmlDialog",view:t,settings:i,dir:e.dir,onClose:this.toggleDialog})||null];return n?n.call(void 0,o,{view:t}):o};var t,e=n;function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={openedDialog:!1},e.toggleDialog=function(){e.setState({openedDialog:!e.state.openedDialog})},e}return(0,d.registerForLocalization)(e),e}},3131:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.firefox=void 0,t.firefox="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent)},1457:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateEditorValue=void 0;function i(e,t){t=t.tr||e.state.tr.setSelection(new o.AllSelection(e.state.doc)).replaceSelectionWith(t.doc||r.EditorUtils.createDocument(e.state.schema,t.html||"")).setMeta("commandName","setHTML"),e.updateState(e.state.apply(t))}var o=n(7403),r=n(5538);t.updateEditorValue=function(e,t,n,o,r){"string"==typeof t?o&&t===r?i(e,{tr:o}):t!==n&&i(e,{html:t}):o&&t.eq(o.doc)?i(e,{tr:o}):e.state.doc.eq(t)||i(e,{doc:t})}},5538:function(e,t,n){var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorUtils=void 0;var r=n(4394),i=n(2346),a=n(7403),n=n(580);(t=t.EditorUtils||(t.EditorUtils={})).alignBlocks=function(e,t,n){return Boolean((0,a.alignBlocks)(t,n)(e.state,e.dispatch))},t.applyInlineStyle=function(e,t,n){return(0,a.applyInlineStyle)(t,n)(e.state,e.dispatch)},t.applyLink=function(e,t,n){return(0,a.applyLink)(t,n)(e.state,e.dispatch)},t.canIndentList=function(e,t){return(0,a.canIndentAsListItem)(e,t)},t.canInsert=function(e,t){return(0,a.canInsert)(e,t)},t.canOutdentList=function(e,t){return(0,a.canOutdentAsListItem)(e,{listsTypes:t,nodes:[]})},t.convertMsLists=function(e){return(0,a.convertMsLists)(e)},t.createDocument=function(e,t,n){return(0,a.parseContent)((0,a.trimWhitespace)(t),e,void 0!==n?n:{preserveWhitespace:"full"})},t.createTable=function(e,t,n){return(0,a.createTable)(e,t,n)},t.formatBlockElements=function(e,t,n){return(0,a.formatBlockElements)(t,n)(e.state,e.dispatch)},t.getBlockFormats=function(e){return(0,a.getBlockFormats)(e)},t.getHtml=function(e){return(0,a.getHtml)(e)},t.getInlineStyles=function(e,t){return(0,a.getInlineStyles)(e,t)},t.getMark=function(e,t){return(0,a.getMark)(e,t)},t.hasMark=function(e,t){return(0,a.hasMark)(e,t)},t.hasNode=function(e,t){return(0,a.hasNode)(e,t)},t.indentBlocks=function(e,t,n,o){return Boolean((0,a.indentBlocks)(t,n,o)(e.state,e.dispatch))},t.indentHtml=function(e){return(0,a.indentHtml)(e)},t.insertNode=function(e,t,n){(0,a.insertNode)(t,n)(e.state,e.dispatch)},t.isAligned=function(e,t){return(0,a.isAligned)(e,t)},t.isIndented=function(e,t,n){return(0,a.isIndented)(e,t,n)},t.removeComments=function(e){return(0,a.removeComments)(e)},t.removeTag=function(e,t){return(0,a.removeTag)(e,t)},t.pasteCleanup=function(e,t){return(0,a.pasteCleanup)(e,t)},t.sanitizeClassAttr=function(e){(0,a.sanitizeClassAttr)(e)},t.sanitizeStyleAttr=function(e){(0,a.sanitizeStyleAttr)(e)},t.removeAttribute=function(e){(0,a.removeAttribute)(e)},t.sanitize=function(e){return(0,a.sanitize)(e)},t.replaceImageSourcesFromRtf=function(e,t){return(0,a.replaceImageSourcesFromRtf)(e,t)},t.textHighlight=function(e){return(0,a.textHighlight)(e)},t.imageResizing=function(e){return(0,a.imageResizing)(e)},t.tableResizing=function(){return(0,a.tableResizing)()},t.setHtml=function(e,t,n,o){t=(0,a.trimWhitespace)(t);(0,a.setHtml)(t,n,o)(e.state,e.dispatch)},t.toggleInlineFormat=function(e,t,n,o){return(0,a.toggleInlineFormat)(t,n,o)(e.state,e.dispatch)},t.toggleList=function(e,t,n){return(0,a.toggleList)(e.state,e.dispatch,e,t,n)},t.getShortcuts=function(e){return r.getShortcuts(e)},t.propsKey=n.editorPropsKey,t.imageResizeKey=a.imageResizeKey,t.marks=o({},i.marks),t.nodes=o({},i.nodes)},580:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.editorPropsKey=void 0;n=n(7403);t.editorPropsKey=new n.PluginKey("editor-props")},1448:(e,t,n)=>{n.r(t),n.d(t,{Field:()=>o,FieldArray:()=>p,FieldWrapper:()=>f,Form:()=>r,FormElement:()=>v});var m=n(5954),g=m.createContext(null),d=function(){return(d=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},o=function(e){var t,n=e.name,o=e.component,r=e.validator,i=e.children,a=e.onChange,e=function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}(e,["name","component","validator","children","onChange"]),l=m.useContext(g),s=l?l.id:"",c=(m.useEffect(function(){if(l)return l.registerField(n,r)},[n,s,r]),m.useCallback(function(e){var t=e&&(void 0!==e.value?e.value:e.target&&e.target.value);l.onChange(n,{value:t}),a&&a.call(void 0,e)},[n,s,a])),u=m.useCallback(function(e){return l.onChange(n,{value:e.target.value})},[n,s]),p=m.useCallback(function(){return l.onBlur(n)},[n,s]),s=m.useCallback(function(){return l.onFocus(n)},[n,s]);return l?(t=l.valueGetter(n),"string"==typeof o?m.createElement(o,d({onChange:u,onBlur:p,onFocus:s,value:t,children:i},e)):m.createElement(o,d(d({children:i},e),{onChange:c,onBlur:p,onFocus:s,value:t,validationMessage:l.errors[n],touched:l.touched[n],modified:l.modified[n],visited:l.visited[n],valid:!(Boolean(l.errors[n])&&l.touched[n]),name:n}))):null};o.displayName="KendoReactField";function a(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var i,l=n(1895),c=n(3811),s={name:"@progress/kendo-react-form",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1685989150,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},u=(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(){return(u=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}),r=function(t){function e(e){var i=t.call(this,e)||this;return i._id=(0,c.guid)(),i._touched={},i._visited={},i._modified={},i._validatorsByField={},i._values={},i._fields={},i._unmounted=!1,i._submitted=!1,i.isValid=function(){return i.isFormValid(i.errors)},i.accumulatedForceUpdate=function(){i._accumulatorTimeout&&clearTimeout(i._accumulatorTimeout),i._accumulatorTimeout=window.setTimeout(function(){i._accumulatorTimeout=void 0,i.forceUpdate()},0)},i.resetForm=function(){i.values=(0,c.clone)(i.props.initialValues),i._id=(0,c.guid)(),i._touched={},i._visited={},i._modified={},i._validatorsByField={},i._fields={},i._submitted=!1,i.forceUpdate()},i.onReset=function(){return i.resetForm()},i.addField=function(e){i._fields[e]=!0},i.onSubmit=function(e){var t={},n=i.fields,o=(e&&("function"==typeof e.preventDefault&&e.preventDefault(),"function"==typeof e.stopPropagation)&&e.stopPropagation(),n.forEach(function(e){t[e]=!0}),i.visited=u({},t),i.touched=u({},t),i.values),r=i.isFormValid(i.errors),n=i.isFormModified(i.modified,n);i.props.onSubmitClick&&i.props.onSubmitClick.call(void 0,{values:o,isValid:r,isModified:n,event:e}),r&&(i.props.ignoreModified||n)&&i.props.onSubmit&&(i._submitted=!0,i.props.onSubmit.call(void 0,o,e)),i.forceUpdate()},i.onChange=function(e,t){var n,t=t.value;i.addField(e),i.modified[e]||(i.modified=u(u({},i.modified),((n={})[e]=!0,n))),i.valueSetter(e,t),i.forceUpdate()},i.onFocus=function(e,t){var n;i.visited[e]||(i.visited=u(u({},i.visited),((n={})[e]=!0,n)),t)||i.forceUpdate()},i.onBlur=function(e,t){var n;i.touched[e]||(i.onFocus(e,t),i.touched=u(u({},i.touched),((n={})[e]=!0,n)),t)||i.forceUpdate()},i.onFieldRegister=function(o,e){i.addField(o);var t,n=i.validatorsByField[o]||[],r=n.length;return i.validatorsByField=u(u({},i.validatorsByField),((t={})[o]=a(a([],n,!0),[e],!1),t)),i.accumulatedForceUpdate(),function(){var e,t,n;i._unmounted||(t=a([],i.validatorsByField[o]||[],!0),n=Boolean(t[r]),t[r]=void 0,i.validatorsByField=u(u({},i.validatorsByField),((e={})[o]=t,e)),n&&i.accumulatedForceUpdate())}},i.isFormValid=function(t){return!Object.keys(t).some(function(e){return Boolean(t[e])})},i.isFormModified=function(t,e){return e.some(function(e){return t[e]})},i.isFormHasNotTouched=function(t,e){return e.some(function(e){return!t[e]})},i.isFormTouched=function(t,e){return e.some(function(e){return t[e]})},i.isFormVisited=function(t,e){return e.some(function(e){return t[e]})},i.valueGetter=function(e){return(0,c.getter)(e)(i.values)},i.valueSetter=function(e,t){return(0,c.setter)(e)(i.values,t)},i.onArrayAction=function(e){var t;i.addField(e),i.modified[e]||(i.modified=u(u({},i.modified),((t={})[e]=!0,t))),i.onBlur(e,!0)},i.onInsert=function(e,t){i.onArrayAction(e);var n=a([],i.valueGetter(e)||[],!0);n.splice(t.index,0,t.value),i.valueSetter(e,n),i.forceUpdate()},i.onUnshift=function(e,t){i.onInsert(e,{value:t.value,index:0})},i.onPush=function(e,t){i.onArrayAction(e);t=a(a([],i.valueGetter(e)||[],!0),[t.value],!1);i.valueSetter(e,t),i.forceUpdate()},i.onPop=function(e){i.onArrayAction(e);var t=a([],i.valueGetter(e)||[],!0),n=t.pop();return i.valueSetter(e,t),i.forceUpdate(),n},i.onRemove=function(e,t){i.onArrayAction(e);var n=a([],i.valueGetter(e)||[],!0),t=n.splice(t.index,1);return i.valueSetter(e,n),i.forceUpdate(),t},i.onReplace=function(e,t){i.onArrayAction(e);var n=a([],i.valueGetter(e)||[],!0);n.splice(t.index,1,t.value),i.valueSetter(e,n),i.forceUpdate()},i.onMove=function(e,t){i.onArrayAction(e);var n=a([],i.valueGetter(e)||[],!0),o=n[t.prevIndex];n.splice(t.prevIndex,1),n.splice(t.nextIndex,0,o),i.valueSetter(e,n),i.forceUpdate()},(0,c.validatePackage)(s),i.values=(0,c.clone)(e.initialValues),i}var n=e,o=t;if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=n}return i(n,o),n.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r),Object.defineProperty(e.prototype,"touched",{get:function(){return this._touched},set:function(e){this._touched=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visited",{get:function(){return this._visited},set:function(e){this._visited=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modified",{get:function(){return this._modified},set:function(e){this._modified=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validatorsByField",{get:function(){return this._validatorsByField},set:function(e){this._validatorsByField=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){return this._values},set:function(e){this._values=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fields",{get:function(){return Object.keys(this._fields)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"formErrors",{get:function(){if(this.props.validator)return this.props.validator(this.values,this.valueGetter)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){var o=this,r={},e=this.fields,i=this.validatorsByField;return e.forEach(function(t){var n;r[t]="",i[t]&&(n=[],i[t].forEach(function(e){Array.isArray(e)?n.push.apply(n,e):n.push(e)}),n.find(function(e){if(e){e=e(o.valueGetter(t),o.valueGetter,{name:t});if(e)return r[t]=e,!0}return!1}))}),this.formErrors&&(0,c.cloneObject)(this.formErrors,r),r},enumerable:!1,configurable:!0}),e.prototype.componentWillUnmount=function(){this._unmounted=!0,this._accumulatorTimeout&&clearTimeout(this._accumulatorTimeout)},e.prototype.render=function(){var e=this.props.render,t=this.touched,n=this.visited,o=this.modified,r=this.fields,i=this.errors,a=this.isFormValid(i),l=this.isFormModified(o,r),s=this.isFormTouched(t,r),c=this.isFormVisited(n,r),r=this.isFormHasNotTouched(t,r)&&!a||a&&(this.props.ignoreModified||l);return m.createElement(g.Provider,{key:this._id,value:{id:this._id,valueGetter:this.valueGetter,errors:i,modified:o,touched:t,visited:n,registerField:this.onFieldRegister,onSubmit:this.onSubmit,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,onUnshift:this.onUnshift,onPush:this.onPush,onInsert:this.onInsert,onPop:this.onPop,onRemove:this.onRemove,onReplace:this.onReplace,onMove:this.onMove}},e({valid:a,modified:l,touched:s,visited:c,submitted:this._submitted,valueGetter:this.valueGetter,errors:i,allowSubmit:r,onChange:this.onChange,onSubmit:this.onSubmit,onFormReset:this.resetForm}))},e.displayName="KendoReactForm",e.propTypes={initialValues:l.any,onSubmit:l.func,onSubmitClick:l.func,render:l.func.isRequired},e}(m.Component),h=function(){return(h=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},p=function(e){var t,n=e.name,o=e.component,r=e.validator,i=(e.type,e.children),e=function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}(e,["name","component","validator","type","children"]),a=m.useContext(g),l=a?a.id:"",s=(m.useEffect(function(){if(a)return a.registerField(n,r)},[n,l,r]),m.useCallback(function(e){return a.onUnshift(n,e)},[n,l])),c=m.useCallback(function(e){return a.onPush(n,e)},[n,l]),u=m.useCallback(function(e){return a.onInsert(n,e)},[n,l]),p=m.useCallback(function(){return a.onPop(n)},[n,l]),d=m.useCallback(function(e){return a.onRemove(n,e)},[n,l]),f=m.useCallback(function(e){return a.onReplace(n,e)},[n,l]),l=m.useCallback(function(e){return a.onMove(n,e)},[n,l]);return a?(t=a.valueGetter(n),m.createElement(o,h({value:t,validationMessage:a.errors[n],touched:a.touched[n],modified:a.modified[n],visited:a.visited[n],valid:!(Boolean(a.errors[n])&&a.touched[n]),onUnshift:s,onPush:c,onInsert:u,onPop:p,onRemove:d,onReplace:f,onMove:l,children:i,name:n},e))):null},f=(p.displayName="KendoReactFieldArray",function(e){var t=(0,c.classNames)({"k-form-field":!0,"k-rtl":"rtl"===e.dir},e.className);return m.createElement("div",{className:t,style:e.style},e.children)}),y=(f.displayName="KendoReactFieldWrapper",function(){return(y=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}),v=m.forwardRef(function(e,t){var n,o=m.useRef(null),r=m.useRef(null),t=(m.useImperativeHandle(r,function(){return{element:o.current,props:e}}),m.useImperativeHandle(t,function(){return r.current}),m.useContext(g)),i=e.className,a=(e.onSubmit,e.style,e.horizontal),l=e.size,s=function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}(e,["className","onSubmit","style","horizontal","size"]),l=(0,c.classNames)(((n={"k-form":!0})["k-form-".concat(c.kendoThemeMaps.sizeMap[l]||l)]=l,n["k-form-horizontal"]=!0===a,n),i);return m.createElement("form",y({ref:o},s,{style:e.style,className:l,onSubmit:t?t.onSubmit:void 0}),e.children)});v.displayName="KendoReactFormElement",v.defaultProps={size:"medium"}},7403:e=>{e.exports=y},2527:e=>{e.exports=_},3536:e=>{e.exports=g},3811:e=>{e.exports=h},8343:e=>{e.exports=b},445:e=>{e.exports=S},4021:e=>{e.exports=w},4987:e=>{e.exports=k},6561:e=>{e.exports=O},8324:e=>{e.exports=C},2556:e=>{e.exports=T},6233:e=>{e.exports=v},1895:e=>{e.exports=m},5954:e=>{e.exports=f}},o={};function r(e){var t=o[e];return void 0!==t||(t=o[e]={exports:{}},n[e].call(t.exports,t,t.exports,r)),t.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var e,t,i,a,l,s,c,u,p,d={};return e=d,Object.defineProperty(e,"__esModule",{value:!0}),e.editorPropsKey=e.parseContent=e.getHtml=e.marks=e.nodes=e.EditorDialogs=e.EditorUtils=e.EditorToolsSettings=e.EditorTools=e.Editor=e.ProseMirror=void 0,t=r(1801),Object.defineProperty(e,"Editor",{enumerable:!0,get:function(){return t.Editor}}),i=r(8671),Object.defineProperty(e,"EditorTools",{enumerable:!0,get:function(){return i.EditorTools}}),a=r(2804),Object.defineProperty(e,"EditorToolsSettings",{enumerable:!0,get:function(){return a.EditorToolsSettings}}),l=r(5538),Object.defineProperty(e,"EditorUtils",{enumerable:!0,get:function(){return l.EditorUtils}}),s=r(3695),Object.defineProperty(e,"EditorDialogs",{enumerable:!0,get:function(){return s.EditorDialogs}}),c=r(580),Object.defineProperty(e,"editorPropsKey",{enumerable:!0,get:function(){return c.editorPropsKey}}),u=r(2346),Object.defineProperty(e,"nodes",{enumerable:!0,get:function(){return u.nodes}}),Object.defineProperty(e,"marks",{enumerable:!0,get:function(){return u.marks}}),p=r(7403),Object.defineProperty(e,"getHtml",{enumerable:!0,get:function(){return p.getHtml}}),Object.defineProperty(e,"parseContent",{enumerable:!0,get:function(){return p.parseContent}}),e.ProseMirror={Selection:p.Selection,SelectionRange:p.SelectionRange,TextSelection:p.TextSelection,NodeSelection:p.NodeSelection,AllSelection:p.AllSelection,EditorState:p.EditorState,Plugin:p.Plugin,PluginKey:p.PluginKey,Transaction:p.Transaction,Decoration:p.Decoration,DecorationSet:p.DecorationSet,EditorView:p.EditorView,Node:p.Node,ResolvedPos:p.ResolvedPos,NodeRange:p.NodeRange,Fragment:p.Fragment,Slice:p.Slice,ReplaceError:p.ReplaceError,Mark:p.Mark,Schema:p.Schema,NodeType:p.NodeType,MarkType:p.MarkType,ContentMatch:p.ContentMatch,DOMParser:p.DOMParser,DOMSerializer:p.DOMSerializer,Transform:p.Transform,Step:p.Step,StepResult:p.StepResult,joinPoint:p.joinPoint,canJoin:p.canJoin,canSplit:p.canSplit,insertPoint:p.insertPoint,dropPoint:p.dropPoint,liftTarget:p.liftTarget,findWrapping:p.findWrapping,StepMap:p.StepMap,MapResult:p.MapResult,Mapping:p.Mapping,AddMarkStep:p.AddMarkStep,RemoveMarkStep:p.RemoveMarkStep,ReplaceStep:p.ReplaceStep,ReplaceAroundStep:p.ReplaceAroundStep,replaceStep:p.replaceStep,deleteSelection:p.deleteSelection,joinBackward:p.joinBackward,selectNodeBackward:p.selectNodeBackward,joinForward:p.joinForward,selectNodeForward:p.selectNodeForward,joinUp:p.joinUp,joinDown:p.joinDown,lift:p.lift,newlineInCode:p.newlineInCode,exitCode:p.exitCode,createParagraphNear:p.createParagraphNear,liftEmptyBlock:p.liftEmptyBlock,splitBlock:p.splitBlock,splitBlockKeepMarks:p.splitBlockKeepMarks,selectParentNode:p.selectParentNode,selectAll:p.selectAll,wrapIn:p.wrapIn,setBlockType:p.setBlockType,toggleMark:p.toggleMark,autoJoin:p.autoJoin,chainCommands:p.chainCommands,pcBaseKeymap:p.pcBaseKeymap,macBaseKeymap:p.macBaseKeymap,baseKeymap:p.baseKeymap,history:p.history,undo:p.undo,redo:p.redo,undoDepth:p.undoDepth,redoDepth:p.redoDepth,InputRule:p.InputRule,inputRules:p.inputRules,undoInputRule:p.undoInputRule,emDash:p.emDash,ellipsis:p.ellipsis,openDoubleQuote:p.openDoubleQuote,closeDoubleQuote:p.closeDoubleQuote,openSingleQuote:p.openSingleQuote,closeSingleQuote:p.closeSingleQuote,smartQuotes:p.smartQuotes,wrappingInputRule:p.wrappingInputRule,textblockTypeInputRule:p.textblockTypeInputRule,keymap:p.keymap,keydownHandler:p.keydownHandler,orderedList:p.orderedList,bulletList:p.bulletList,listItem:p.listItem,addListNodes:p.addListNodes,wrapInList:p.wrapInList,splitListItem:p.splitListItem,liftListItem:p.liftListItem,sinkListItem:p.sinkListItem,dropCursor:p.dropCursor,gapCursor:p.gapCursor,tableEditing:p.tableEditing,fixTables:p.fixTables,fixTablesKey:p.fixTablesKey,cellAround:p.cellAround,isInTable:p.isInTable,selectionCell:p.selectionCell,moveCellForward:p.moveCellForward,inSameTable:p.inSameTable,findCell:p.findCell,colCount:p.colCount,nextCell:p.nextCell,removeColSpan:p.removeColSpan,addColSpan:p.addColSpan,columnIsHeader:p.columnIsHeader,tableNodes:p.tableNodes,tableNodeTypes:p.tableNodeTypes,CellSelection:p.CellSelection,TableMap:p.TableMap,tableEditingKey:p.tableEditingKey,columnResizing:p.columnResizing,columnResizingPluginKey:p.columnResizingPluginKey,updateColumnsOnResize:p.updateColumnsOnResize,selectedRect:p.selectedRect,addColumn:p.addColumn,addColumnBefore:p.addColumnBefore,addColumnAfter:p.addColumnAfter,deleteColumn:p.deleteColumn,rowIsHeader:p.rowIsHeader,addRow:p.addRow,addRowBefore:p.addRowBefore,addRowAfter:p.addRowAfter,deleteRow:p.deleteRow,mergeCells:p.mergeCells,splitCell:p.splitCell,splitCellWithType:p.splitCellWithType,setCellAttr:p.setCellAttr,toggleHeader:p.toggleHeader,toggleHeaderRow:p.toggleHeaderRow,toggleHeaderColumn:p.toggleHeaderColumn,toggleHeaderCell:p.toggleHeaderCell,goToNextCell:p.goToNextCell,deleteTable:p.deleteTable},d})())}}});
|